[v-cloak] { display: none; }

.agent-portal,
.agent-login-page {
	background: #f3f6f4;
	padding-top: 0 !important;
	min-height: 100vh;
}

.agent-navbar {
	background: #1b4332 !important;
	border-bottom: 3px solid #d4a017;
	box-shadow: 0 2px 10px rgba(27, 67, 50, 0.25);
}

.agent-navbar .navbar-brand img {
	border-radius: 50%;
	background: #fff;
	padding: 2px;
}

.agent-navbar .navbar-collapse {
	display: flex !important;
}

.agent-navbar .navbar-nav {
	flex-direction: row;
	flex-wrap: wrap;
}

.agent-navbar .nav-link {
	color: rgba(255, 255, 255, 0.92) !important;
	font-weight: 600;
	letter-spacing: 0.4px;
	border-radius: 6px;
	padding: 0.45rem 0.9rem !important;
}

.agent-navbar .nav-link:hover,
.agent-navbar .nav-link.active {
	background: rgba(255, 255, 255, 0.16);
	color: #fff !important;
}

.agent-wrap { padding: 24px 0 48px; }

.agent-hero {
	background: linear-gradient(120deg, #1b4332, #2d6a4f 70%, #40916c);
	color: #fff;
	border-radius: 18px;
	padding: 22px 24px;
	margin-bottom: 20px;
}

.agent-hero h3 { margin: 0 0 6px; font-weight: 800; }
.agent-hero p { margin: 0; opacity: .9; }

.agent-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.agent-card {
	background: #fff;
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 8px 20px rgba(27, 67, 50, .08);
	border: 1px solid #e5efe9;
}

.agent-card .label { color: #64748b; font-size: .85rem; }
.agent-card .value { font-size: 1.45rem; font-weight: 800; color: #1b4332; }
.agent-card.warn .value { color: #b45309; }
.agent-card.ok .value { color: #15803d; }

.agent-section {
	background: #fff;
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 18px;
	box-shadow: 0 8px 20px rgba(27, 67, 50, .06);
}

.agent-section h5 { font-weight: 800; margin-bottom: 14px; color: #1b4332; }
.agent-table td, .agent-table th { vertical-align: middle; }
.agent-phone { font-weight: 700; white-space: nowrap; }
.agent-lang { float: right; }
.agent-empty { color: #64748b; padding: 12px 0; }
.agent-call-btn { margin-left: 8px; }

.agent-login-wrap { padding: 32px 0 48px; position: relative; z-index: 2; }

.agent-login-card {
	max-width: 460px;
	margin: 40px auto;
	background: #fff;
	border: none;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(27, 67, 50, .12);
}

.agent-login-head {
	background: #1b4332;
	color: #fff;
	border: none;
	font-weight: 800;
}

.agent-login-page .btn-primary,
.agent-portal .btn-primary {
	background: #1b4332;
	border-color: #1b4332;
}

.agent-login-page .btn-primary:hover,
.agent-portal .btn-primary:hover {
	background: #2d6a4f;
	border-color: #2d6a4f;
}

.agent-login-page a,
.agent-portal a { color: #1b4332; }

.agent-profile-card {
	border: none;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(27, 67, 50, .1);
	background: #fff;
}

.agent-profile-top {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.5rem;
	background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 72%, #52b788 100%);
	color: #fff;
	flex-wrap: wrap;
}

.agent-profile-avatar,
.agent-profile-avatar-img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.agent-profile-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.2);
	font-size: 1.75rem;
	font-weight: 800;
}

.agent-profile-avatar-img {
	object-fit: cover;
	background: #fff;
}

.agent-profile-name {
	font-weight: 800;
	font-size: 1.4rem;
	margin: 0;
	color: #fff;
}

.agent-profile-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.65rem;
	border-radius: 20px;
}

.agent-profile-badge.active { background: #d4a017; color: #1b4332; }
.agent-profile-badge.inactive { background: rgba(0, 0, 0, 0.25); color: #fff; }

.agent-profile-accounts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.agent-profile-accounts-label {
	font-size: 0.78rem;
	opacity: 0.85;
	margin-right: 4px;
}

.agent-profile-account-chip {
	background: #fff;
	color: #1b4332;
	border-radius: 6px;
	padding: 0.15rem 0.55rem;
	font-size: 0.82rem;
	font-weight: 700;
}

.agent-profile-details { padding: 1.25rem 1.5rem 0.5rem; }

.agent-profile-field {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.agent-profile-field > i {
	color: #2d6a4f;
	width: 18px;
	text-align: center;
	margin-top: 3px;
	flex-shrink: 0;
}

.agent-profile-field-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #88968f;
	margin-bottom: 0.1rem;
}

.agent-profile-field-value {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #24302b;
	line-height: 1.4;
	word-break: break-word;
}

.agent-acc-card {
	border: 1px solid #e3eee8;
	border-left: 6px solid #d4a017;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(27, 67, 50, 0.06);
	overflow: hidden;
}

.agent-acc-card__head {
	padding: 10px 16px;
	background: #1b4332;
	color: #fff;
}

.agent-acc-card__head strong {
	font-size: 1.05rem;
	letter-spacing: 0.3px;
}

.agent-acc-card__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	padding: 12px 16px;
}

.agent-acc-stat span {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	color: #6b7a72;
}

.agent-acc-stat strong {
	font-size: 1.02rem;
	color: #1b4332;
}

.agent-portal .spinner-border { color: #1b4332; }

@media (max-width: 767.98px) {
	.agent-profile-top { flex-direction: column; text-align: center; }
	.agent-profile-accounts { justify-content: center; }
	.agent-acc-card__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
