:root {
	--ink: #0f172a;
	--muted: #64748b;
	--canvas: #f5f7fa;
	--line: #e6ebf1;
	--accent: #2463eb;
	--bs-primary: #2463eb;
	--bs-body-color: #172337;
	--bs-body-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--canvas);
	font-size: 14px;
}
a {
	text-decoration: none;
}
button,
input,
select,
textarea {
	font: inherit;
}
[hidden] {
	display: none !important;
}
h1,
h2,
h3 {
	color: var(--ink);
	font-weight: 650;
	letter-spacing: -0.035em;
}
h1 {
	font-size: clamp(25px, 2.4vw, 33px);
	margin-bottom: 10px;
}
h2 {
	font-size: 18px;
	letter-spacing: -0.025em;
}
h3 {
	font-size: 18px;
}
.btn {
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	padding: 11px 17px;
}
.btn-primary {
	--bs-btn-bg: #2463eb;
	--bs-btn-border-color: #2463eb;
	--bs-btn-hover-bg: #1c50c5;
	--bs-btn-hover-border-color: #1c50c5;
	box-shadow: 0 3px 6px #2463eb14;
}
.btn-outline-secondary {
	--bs-btn-color: #475569;
	--bs-btn-border-color: #d7dfe9;
	--bs-btn-hover-bg: #f1f5f9;
	--bs-btn-hover-color: #0f172a;
	--bs-btn-hover-border-color: #c1cddd;
}
.btn-lg {
	font-size: 14px;
	padding: 14px 20px;
}
.btn-sm {
	padding: 7px 11px;
	font-size: 12px;
}
.form-label,
.stack-form > label {
	font-size: 13px;
	font-weight: 600;
}
.form-control,
.form-select {
	min-height: 44px;
	border-color: #dce3ec;
	border-radius: 7px;
	font-size: 14px;
	color: var(--ink);
	background-color: #fff;
}
.form-control:focus,
.form-select:focus {
	border-color: #90b4ff;
	box-shadow: 0 0 0 3px #2463eb16;
}
.form-control::placeholder {
	color: #94a0b1;
}
.form-text {
	font-size: 12px;
	line-height: 1.7;
}
.optional {
	color: var(--muted);
	font-size: 11px;
	font-weight: 400;
	margin-left: 5px;
}
.eyebrow {
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.15em;
	color: #64748b;
	display: inline-block;
	margin-bottom: 13px;
}
.eyebrow.light {
	color: #a8c1f4;
}
.text-link {
	font-size: 12px;
	font-weight: 650;
	color: #345c97;
	white-space: nowrap;
}
.mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	overflow-wrap: anywhere;
}
.stack-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.skip-link {
	position: fixed;
	top: -70px;
	left: 15px;
	z-index: 200;
	padding: 12px;
	background: white;
}
.skip-link:focus {
	top: 10px;
}
.sidebar {
	width: 246px;
	position: fixed;
	inset: 0 auto 0 0;
	background: #101c30;
	color: #ced7e5;
	display: flex;
	flex-direction: column;
	z-index: 50;
	overflow-y: auto;
}
.sidebar-brand {
	display: block;
	padding: 21px 10px 22px;
	border-bottom: 1px solid #263147;
}
.sidebar-brand img {
	display: block;
	width: 100%;
	height: auto;
}
.sidebar-caption {
	font-size: 9px;
	letter-spacing: 0.14em;
	color: #8090a8;
	font-weight: 700;
	margin: 29px 23px 14px;
}
.sidebar-nav {
	padding: 0 14px;
}
.sidebar-nav .sidebar-caption {
	margin-left: 10px;
}
.nav-item {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 12px 14px;
	margin: 4px 0;
	color: #aebbd0;
	border-radius: 7px;
	font-weight: 500;
	font-size: 13px;
	transition:
		background 0.15s,
		color 0.15s;
}
.nav-item:hover {
	color: white;
	background: #1b2940;
}
.nav-item.active {
	color: #fff;
	background: #254369;
	box-shadow: inset 3px 0 #75a5ff;
}
.nav-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	font-size: 21px;
	line-height: 1;
}
.sidebar-bottom {
	margin-top: auto;
	padding: 30px 24px;
	font-size: 11px;
	color: #c7d2e2;
}
.sidebar-bottom > div {
	margin-top: 8px;
	color: #8191a9;
	font-size: 10px;
}
.status-dot {
	width: 6px;
	height: 6px;
	background: #63cda6;
	border-radius: 50%;
	display: inline-block;
	margin-right: 5px;
}
.workspace {
	margin-left: 246px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.topbar {
	height: 78px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 38px;
	border-bottom: 1px solid var(--line);
	background: #fff;
	gap: 15px;
}
.breadcrumb-label {
	font-size: 12px;
	color: #65748a;
}
.breadcrumb-label > span {
	margin: 0 13px;
	color: #c4cedd;
}
.account-area {
	display: flex;
	align-items: center;
	gap: 11px;
}
.account-name {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	margin-right: 8px;
}
.account-name small {
	display: block;
	font-size: 10px;
	font-weight: 400;
	color: var(--muted);
}
.avatar {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #eaf0fb;
	color: #3f618e;
	font-weight: 650;
}
/* Botón de notificaciones de la barra superior: alertas sin revisar (etapa 4). */
.notification-button {
	position: relative;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: #3f618e;
}
.notification-count {
	position: absolute;
	top: -5px;
	right: -6px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 10px;
	background: #c23b3b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}
.notification-menu {
	min-width: 290px;
	font-size: 13px;
}
.notification-menu .dropdown-item {
	white-space: normal;
}
.notification-menu .dropdown-item small {
	display: block;
	color: var(--muted);
}
.alert-item.alert-open {
	border-left: 3px solid #c23b3b;
}
.alert-item.alert-reviewed {
	opacity: 0.8;
}
.menu-toggle {
	display: none;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: #fff;
	padding: 3px 9px;
	font-size: 21px;
}
.main-content {
	width: 100%;
	max-width: 1680px;
	margin: 0 auto;
	padding: 37px 38px 44px;
	flex: 1;
}
.page-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 29px;
}
.page-heading p {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 0;
	line-height: 1.7;
}
.panel {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 11px;
	box-shadow: 0 2px 3px #0f172a02;
	overflow: hidden;
}
.panel-heading {
	padding: 23px 25px 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}
.panel-heading h2 {
	margin: 0 0 6px;
	font-size: 16px;
}
.panel-heading p {
	font-size: 12px;
	margin: 0;
	color: var(--muted);
}
.form-panel {
	padding: 28px;
}
.metric-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}
.metric-card {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 23px 22px 17px;
	background: #fff;
	color: var(--ink);
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s;
}
.metric-card:hover {
	border-color: #93b5ee;
}
.metric-card > span {
	font-size: 12px;
	font-weight: 500;
	color: #65738a;
}
.metric-card strong {
	font-size: 35px;
	font-weight: 650;
	margin: 14px 0 16px;
	line-height: 1;
	letter-spacing: -0.05em;
}
.metric-card small {
	font-size: 10px;
	color: #8090a4;
	border-top: 1px solid #eff2f6;
	padding-top: 12px;
	display: flex;
	justify-content: space-between;
}
.metric-card small span {
	font-size: 15px;
	color: #7293c7;
}
.table {
	font-size: 12px;
	margin: 0;
	--bs-table-border-color: #edf0f5;
}
.table-responsive {
	position: relative;
}
.table th {
	padding: 13px 24px;
	color: #79869a;
	background: #fafbfd;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 650;
	white-space: nowrap;
}
.table td {
	padding: 19px 24px;
	vertical-align: middle;
}
.table td strong {
	font-weight: 600;
	font-size: 12px;
}
.cell-sub {
	display: block;
	font-size: 11px;
	color: #8290a2;
	margin-top: 5px;
	max-width: 450px;
	overflow-wrap: anywhere;
}
.tag {
	padding: 5px 9px;
	display: inline-block;
	border-radius: 5px;
	background: #edf1f7;
	color: #586980;
	font-size: 10px;
	font-weight: 600;
	white-space: nowrap;
}
.tag-green {
	background: #edf8f3;
	color: #267858;
}
.tag-red {
	background: #fceff0;
	color: #b13d4c;
}
.large-tag {
	padding: 9px 14px;
	font-size: 12px;
}
.empty-state {
	text-align: center;
	padding: 52px 24px;
	color: var(--muted);
}
.empty-state p {
	font-size: 12px;
}
.empty-symbol {
	width: 48px;
	height: 48px;
	margin: 0 auto 19px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: #eef3fa;
	color: #6f88a9;
	font-size: 30px;
}
.activity-panel {
	height: 100%;
	padding-bottom: 23px;
}
.activity-panel > .text-link {
	margin-left: 25px;
}
.activity-list {
	list-style: none;
	margin: 10px 25px 25px 33px;
	padding-left: 17px;
	border-left: 1px solid #e4eaf2;
}
.activity-list li {
	position: relative;
	padding: 0 0 22px;
}
.activity-list li:last-child {
	padding-bottom: 0;
}
.activity-list li::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9ab3d6;
	position: absolute;
	left: -21px;
	top: 5px;
	border: 2px solid #fff;
	box-sizing: content-box;
}
.activity-list strong,
.activity-list span,
.activity-list small {
	display: block;
}
.activity-list strong {
	font-size: 11px;
	font-weight: 600;
}
.activity-list span {
	font-size: 10px;
	color: #6d7e96;
	margin-top: 4px;
}
.activity-list small {
	font-size: 10px;
	color: #95a1b2;
	margin-top: 4px;
}
.brand-banner {
	margin-top: 29px;
	display: flex;
	align-items: center;
	gap: 25px;
	border: 1px solid #e1e8f2;
	background: #edf2f9;
	border-radius: 10px;
	padding: 19px 25px;
}
.brand-banner img {
	width: 310px;
	max-width: 42%;
}
.brand-banner strong {
	font-size: 12px;
	color: #3b4e69;
}
.brand-banner p {
	font-size: 11px;
	line-height: 1.7;
	margin: 6px 0 0;
	color: #72829a;
}
.workspace-footer {
	padding: 18px 38px;
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: #94a0b1;
	border-top: 1px solid var(--line);
}
.filter-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--line);
}
.search-field {
	flex: 1;
	min-width: 190px;
}
.filter-select {
	width: auto;
	max-width: 220px;
	min-width: 135px;
}
.filter-bar .form-control,
.filter-bar .form-select {
	font-size: 12px;
	min-height: 39px;
}
.pagination-bar {
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	gap: 15px;
	align-items: center;
	color: #8491a4;
	font-size: 11px;
}
.section-heading {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 21px;
}
.section-heading span {
	font-size: 10px;
	color: #607fa9;
	background: #eff4fc;
	width: 27px;
	height: 27px;
	display: grid;
	place-items: center;
	border-radius: 7px;
}
.section-heading h2 {
	margin: 0;
	font-size: 16px;
}
.form-footer {
	margin-top: 32px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}
.product-card {
	padding: 25px;
	height: 100%;
}
.product-symbol {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #eff3fa;
	display: grid;
	place-items: center;
	font-size: 25px;
	color: #5e7b9f;
}
.product-logo {
	width: 100%;
	max-width: 450px;
	height: 85px;
	margin: 18px 0 12px;
	object-fit: contain;
	object-position: left;
}
.product-card > p {
	color: var(--muted);
	font-size: 12px;
}
.product-footer {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.product-footer > span {
	font-size: 12px;
	font-weight: 600;
}
.product-footer small {
	display: block;
	font-weight: 400;
	color: var(--muted);
	font-size: 10px;
	margin-top: 5px;
}
.capability-row {
	padding: 15px 0;
	border-bottom: 1px solid var(--line);
}
.capability-row strong {
	font-size: 12px;
}
.capability-row code,
.capability-row small {
	display: block;
	font-size: 10px;
	color: var(--muted);
	margin-top: 5px;
}
.note-box {
	border: 1px solid #dfe8f6;
	border-radius: 7px;
	background: #f5f8fd;
	padding: 15px;
	font-size: 12px;
	color: #5d7392;
	line-height: 1.8;
}
.choice-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 15px;
	border: 1px solid #dce4ef;
	border-radius: 8px;
	cursor: pointer;
	height: 100%;
}
.choice-card:has(input:checked) {
	border-color: #5489ed;
	background: #f7faff;
}
.choice-card input {
	margin-top: 3px;
	accent-color: var(--accent);
}
.choice-card strong,
.choice-card small {
	display: block;
}
.choice-card strong {
	font-size: 13px;
}
.choice-card small {
	font-size: 11px;
	color: var(--muted);
	margin-top: 6px;
	line-height: 1.6;
}
.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.feature-choice {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 14px;
	background: #fafbfd;
	border: 1px solid #e8edf4;
	border-radius: 7px;
	font-size: 12px;
	cursor: pointer;
}
.feature-choice small {
	display: block;
	font-size: 10px;
	color: var(--muted);
	margin-top: 5px;
}
.feature-choice input {
	flex: 0 0 auto;
	margin-top: 2px;
}
.check-list {
	list-style: none;
	padding: 8px 0 6px;
}
.check-list li {
	font-size: 12px;
	margin: 17px 0;
	color: #62738b;
	padding-left: 22px;
	position: relative;
}
.check-list li::before {
	content: '✓';
	color: #39866c;
	position: absolute;
	left: 0;
}
.sticky-summary {
	position: sticky;
	top: 25px;
}
.detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 25px;
	margin: 29px 0;
}
.detail-grid .wide {
	grid-column: 1/-1;
}
.detail-grid dt {
	font-size: 11px;
	font-weight: 500;
	color: #8693a7;
	margin-bottom: 7px;
}
.detail-grid dd {
	font-size: 13px;
	font-weight: 500;
	margin: 0;
}
.danger-panel {
	border-color: #f1d9dd;
}
.danger-panel summary {
	color: #aa3b4d;
}
summary {
	font-size: 12px;
	font-weight: 600;
	color: #466d9f;
	cursor: pointer;
}
.audit-detail {
	padding-top: 15px;
	max-width: 300px;
}
.audit-detail dt {
	font-size: 10px;
	color: var(--muted);
	font-weight: 400;
}
.audit-detail dd {
	font-size: 11px;
	overflow-wrap: anywhere;
}
.user-record {
	padding: 24px;
	border-top: 1px solid var(--line);
}
.user-role-line {
	color: #789;
	font-size: 11px;
	margin: 15px 0;
}
.user-role-line span {
	margin: 0 8px;
}
.security-form,
.issuance-panel,
.recovery-panel {
	max-width: 760px;
}
.success-emblem {
	background: #ebf7f1;
	color: #2c8260;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	font-size: 23px;
	margin-bottom: 20px;
}
.issuance-panel > p {
	color: var(--muted);
	font-size: 13px;
}
.secret-key {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
}
.recovery-panel {
	padding: 28px;
}
.recovery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
.recovery-grid code {
	background: #f2f5fa;
	color: #334b6a;
	border-radius: 6px;
	padding: 15px;
	letter-spacing: 0.05em;
	font-size: 13px;
	text-align: center;
}
.alert {
	font-size: 12px;
	line-height: 1.75;
	border-radius: 8px;
}
.error-state {
	max-width: 640px;
	margin: 55px auto;
}
.error-state p {
	line-height: 1.8;
	color: var(--muted);
}
.auth-shell {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.auth-brand-panel {
	background: #102036;
	padding: 55px clamp(30px, 5vw, 90px) 30px;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}
.auth-brand-panel::after {
	content: '';
	width: 400px;
	height: 400px;
	border: 1px solid #28415d;
	border-radius: 90px;
	position: absolute;
	right: -310px;
	bottom: 150px;
	transform: rotate(35deg);
	pointer-events: none;
}
.auth-logo {
	width: 100%;
	max-width: 560px;
}
.auth-intro {
	margin: auto 0;
	padding: 60px 0 70px;
}
.auth-login .auth-logo {
	max-width: 460px;
	align-self: center;
}
.auth-login .auth-intro {
	padding: 35px 0 50px;
}
.auth-intro h1 {
	color: #fff;
	font-size: clamp(35px, 3.8vw, 58px);
	letter-spacing: -0.045em;
	line-height: 1.2;
	font-weight: 600;
}
.auth-intro > p {
	color: #99abc2;
	font-size: 14px;
	line-height: 1.9;
	max-width: 345px;
	margin: 28px 0 40px;
}
.auth-proof {
	display: flex;
	align-items: center;
	gap: 17px;
	color: #cbd7e7;
	font-size: 12px;
}
.auth-proof > span {
	border: 1px solid #3d536e;
	border-radius: 8px;
	padding: 10px;
	color: #9bb6d8;
}
.auth-proof small {
	display: block;
	color: #8097b3;
	font-size: 11px;
	margin-top: 6px;
}
.auth-brand-panel footer {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 10px;
	color: #cbd6e7;
}
.auth-brand-panel footer > span {
	color: #7d94b0;
}
.auth-form-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 50px 40px 25px;
	background: #fff;
}
.auth-form-wrap {
	width: 100%;
	max-width: 400px;
	margin: auto;
	padding: 45px 0;
}
.auth-title {
	font-size: 29px;
	margin-bottom: 14px;
}
.auth-form-wrap > p {
	font-size: 13px;
	line-height: 1.8;
}
.auth-note {
	margin-top: 33px;
	border-top: 1px solid var(--line);
	padding-top: 24px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: #8290a2;
}
.auth-note p {
	font-size: 11px;
	line-height: 1.8;
	margin: 0;
}
.auth-note small {
	display: block;
	font-size: 10px;
}
.secure-mark {
	color: #597b9c;
	border: 1px solid #d6e2ee;
	border-radius: 50%;
	padding: 0 4px;
	font-size: 10px;
	margin-top: 2px;
}
.auth-footnote {
	font-size: 10px;
	color: #9aa6b6;
	margin: 0;
	padding-top: 15px;
}
.mobile-brand {
	display: none;
}
.qr-wrap {
	text-align: center;
	padding: 10px;
}
.qr-wrap img {
	max-width: 100%;
}
.secret-code {
	display: block;
	padding: 13px;
	background: #f2f5f9;
	color: #364e70;
	font-size: 11px;
	overflow-wrap: anywhere;
	margin-top: 10px;
}
.code-input {
	font-family: ui-monospace, monospace;
	letter-spacing: 0.15em;
}
.service-message {
	max-width: 640px;
	margin: 10vh auto;
	padding: 30px;
	background: #fff;
	border-radius: 15px;
	font-family: sans-serif;
}
.service-message img {
	width: 100%;
	margin-bottom: 30px;
}
.service-message p,
.service-message small {
	color: #64748b;
	line-height: 1.8;
}

.auth-proof-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #a9c5e9;
}

.auth-proof-icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

@media (min-width: 1600px) {
	.main-content {
		padding-top: 48px;
	}
}
@media (max-width: 1200px) {
	.metric-grid {
		gap: 12px;
	}
	.metric-card {
		padding: 19px 16px;
	}
	.main-content {
		padding: 28px 24px;
	}
	.topbar {
		padding: 0 24px;
	}
	.brand-banner {
		flex-direction: column;
		align-items: flex-start;
	}
	.brand-banner img {
		max-width: 100%;
	}
}
@media (max-width: 991px) {
	.sidebar {
		transform: translateX(-100%);
		transition: transform 0.2s;
	}
	.sidebar.is-open {
		transform: translateX(0);
		box-shadow: 20px 0 60px #0f172a44;
	}
	.workspace {
		margin-left: 0;
	}
	.menu-toggle {
		display: block;
	}
	.auth-brand-panel {
		padding: 30px;
	}
	.auth-brand-panel footer > span {
		display: none;
	}
	.auth-intro h1 {
		font-size: 40px;
	}
	.auth-form-panel {
		padding: 35px 30px 20px;
	}
}
@media (max-width: 767px) {
	.auth-shell {
		grid-template-columns: 1fr;
	}
	.auth-brand-panel {
		display: none;
	}
	.auth-form-panel {
		min-height: 100vh;
		padding: 30px 24px 20px;
	}
	.mobile-brand {
		display: block;
		width: min(100%, 430px);
	}
	.mobile-brand img {
		width: 100%;
	}
	.auth-form-wrap {
		padding: 35px 0;
	}
	.auth-title {
		font-size: 26px;
	}
	.metric-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.page-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
		margin-bottom: 24px;
	}
	.topbar {
		height: 66px;
		padding: 0 18px;
	}
	.breadcrumb-label {
		display: none;
	}
	.account-name {
		display: none;
	}
	.account-area {
		gap: 9px;
	}
	.main-content {
		padding: 25px 17px 35px;
	}
	.workspace-footer {
		padding: 17px;
	}
	.workspace-footer span {
		display: none;
	}
	.form-panel {
		padding: 22px;
	}
	.filter-bar {
		flex-wrap: wrap;
		padding: 17px;
	}
	.filter-select {
		flex: 1;
		max-width: none;
	}
	.pagination-bar {
		padding: 15px;
	}
	.feature-grid {
		grid-template-columns: 1fr;
	}
	.detail-grid {
		gap: 23px 15px;
	}
	.detail-grid dd {
		font-size: 12px;
	}
	.brand-banner {
		padding: 20px;
	}
	.brand-banner img {
		width: 100%;
	}
	.recovery-grid {
		grid-template-columns: 1fr;
	}
	.recovery-panel {
		padding: 22px;
	}
	.table td,
	.table th {
		padding-left: 18px;
		padding-right: 18px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------------------------------------------
 * Panel definitivo (etapa 5; docs/PANEL.md). Componentes nuevos y ajustes del estilo de base.
 * ------------------------------------------------------------------------------------------------- */
:root {
	--help: #5b6678;
	--focus: #2463eb;
	--tone-green-text: #14653a;
	--tone-green-bg: #e3f5ea;
	--tone-blue-text: #1d4fb8;
	--tone-blue-bg: #e5eeff;
	--tone-amber-text: #8a4b00;
	--tone-amber-bg: #fff1d6;
	--tone-red-text: #a1251b;
	--tone-red-bg: #fde8e6;
	--tone-darkred-text: #7a1b14;
	--tone-darkred-bg: #f6dedb;
	--tone-gray-text: #475467;
	--tone-gray-bg: #eef1f5;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}
.icon {
	flex: 0 0 auto;
	vertical-align: -3px;
}
.text-secondary,
.cell-sub,
.page-heading p,
.panel-heading p {
	color: var(--help) !important;
}

/* Navegación lateral en tres grupos, con contadores. */
.sidebar-nav .sidebar-caption {
	margin: 22px 10px 8px;
}
.nav-item {
	padding: 10px 12px;
	margin: 2px 0;
}
.nav-label {
	flex: 1;
}
.nav-count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 11px;
	background: #f2b544;
	color: #2a1a00;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
}

/* Barra superior: ruta y «Emitir licencia». */
.breadcrumb-label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	font-size: 13px;
}
.breadcrumb-label a {
	color: #4b5d78;
}
.breadcrumb-label a:hover {
	color: var(--ink);
	text-decoration: underline;
}
.breadcrumb-label > span {
	margin: 0;
}
.breadcrumb-label > .crumb-separator {
	color: #9aa7b8;
}
.breadcrumb-label > .crumb-current {
	color: var(--ink);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.topbar-issue {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 6px;
}
.heading-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Insignias de estado: punto de color más texto (docs/PANEL.md, sección 5). */
.badge-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	vertical-align: middle;
}
.badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.tone-green {
	--tone-text: var(--tone-green-text);
	--tone-bg: var(--tone-green-bg);
}
.tone-blue {
	--tone-text: var(--tone-blue-text);
	--tone-bg: var(--tone-blue-bg);
}
.tone-amber {
	--tone-text: var(--tone-amber-text);
	--tone-bg: var(--tone-amber-bg);
}
.tone-red {
	--tone-text: var(--tone-red-text);
	--tone-bg: var(--tone-red-bg);
}
.tone-darkred {
	--tone-text: var(--tone-darkred-text);
	--tone-bg: var(--tone-darkred-bg);
}
.tone-gray {
	--tone-text: var(--tone-gray-text);
	--tone-bg: var(--tone-gray-bg);
}
.tone-outline {
	--tone-text: #3d4a5c;
	--tone-bg: #fff;
}
.badge-state[class*='tone-'] {
	color: var(--tone-text);
	background: var(--tone-bg);
}
.badge-state.tone-outline {
	box-shadow: inset 0 0 0 1px #c3ccd8;
}

/* Tarjetas de conteo del resumen. */
.metric-card {
	border-top: 4px solid var(--tone-text, #c8d3e2);
	color: var(--ink);
}
.metric-card > span {
	font-size: 13px;
	color: #42526b;
}
.metric-card small {
	font-size: 12px;
	color: var(--help);
	line-height: 1.5;
}
.metric-card small a {
	color: #345c97;
	font-weight: 600;
}
.metric-breakdown {
	list-style: none;
	margin: -4px 0 14px;
	padding: 0;
	font-size: 13px;
}
.metric-breakdown li {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
}
.metric-breakdown a {
	color: #345c97;
}

/* Filtros con etiqueta, búsqueda y casillas. */
.filter-grid {
	display: grid;
	grid-template-columns: minmax(240px, 2.2fr) repeat(4, minmax(130px, 1fr));
	align-items: end;
	gap: 14px;
}
.filter-grid .form-label {
	font-size: 12px;
	margin-bottom: 6px;
}
.filter-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	grid-column: 1 / span 3;
	font-size: 13px;
}
.filter-buttons {
	display: flex;
	gap: 10px;
	grid-column: 4 / -1;
	justify-content: flex-end;
}
.result-count {
	margin: 0;
	padding: 12px 24px 0;
	font-size: 12px;
	color: var(--help);
}
.row-title {
	color: var(--ink);
	font-weight: 600;
	font-size: 13px;
}
.row-title:hover {
	color: var(--accent);
	text-decoration: underline;
}
.table td {
	font-size: 13px;
}
.cell-action {
	text-align: right;
	white-space: nowrap;
}
.empty-line {
	margin: 0;
	padding: 4px 25px 24px;
	color: var(--help);
}
.panel-body {
	padding: 0 25px 24px;
}

/* «Por vencer»: filtro de tres botones. */
.segmented {
	display: inline-flex;
	border: 1px solid #d3dce8;
	border-radius: 9px;
	overflow: hidden;
	flex: 0 0 auto;
}
.segmented a {
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #42526b;
	background: #fff;
}
.segmented a + a {
	border-left: 1px solid #d3dce8;
}
.segmented a.active {
	background: #e8f0ff;
	color: #1d4fb8;
}

/* Cobros del periodo. */
.collection-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	padding: 0 25px 25px;
}
.collection {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 16px;
}
.collection > span {
	display: block;
	font-size: 12px;
	color: var(--help);
}
.collection > strong {
	display: block;
	font-size: 22px;
	margin: 8px 0 2px;
	letter-spacing: -0.02em;
}
.collection > small {
	color: var(--help);
}
.collection ul {
	list-style: none;
	margin: 12px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid #eef1f5;
	font-size: 12px;
}
.collection li {
	display: flex;
	justify-content: space-between;
	padding: 2px 0;
}

/* Alertas. */
.alert-item {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-top: 12px;
	background: #fff;
}
.alert-item.alert-open {
	border-left: 4px solid #d98e04;
}
.alert-item-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.alert-item-head strong {
	margin-right: 8px;
}

/* Cabecera de un registro (licencia o cliente) y su barra de acciones. */
.record-header {
	padding: 24px 26px;
	overflow: visible;
}
.record-title {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}
.record-title h1 {
	margin: 0 0 6px;
}
.record-title h1 a {
	color: var(--ink);
}
.record-title h1 a:hover {
	text-decoration: underline;
}
.record-title p {
	margin: 0;
	color: var(--help);
	font-size: 13px;
}
.record-facts {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid #eef1f5;
}
.record-facts dt {
	font-size: 12px;
	font-weight: 500;
	color: var(--help);
	margin-bottom: 4px;
}
.record-facts dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	overflow-wrap: anywhere;
}
.record-facts dd small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--help);
	margin-top: 2px;
}
.record-notes {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 16px 0 0;
	padding: 0;
	font-size: 13px;
}
.record-notes .badge-state {
	margin-right: 4px;
}
.action-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #eef1f5;
}
.action-bar .btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.action-end {
	margin-left: auto;
}

/* Secciones del detalle: pestañas en escritorio, lista desplegable en el teléfono. */
.section-tabs {
	margin: 22px 0 18px;
}
.section-tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #dfe5ee;
}
.section-tabs a {
	display: block;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #4b5d78;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}
.section-tabs a:hover {
	color: var(--ink);
}
.section-tabs a.active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}
.section-select {
	display: none;
}
.detail-grid-wide {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.note-warning {
	border-color: #f1d49a;
	background: #fff8e8;
}
.plain-list {
	list-style: none;
	padding: 0;
	font-size: 12px;
}
.plain-list li {
	padding: 8px 0;
	border-bottom: 1px solid #eef1f5;
}
.plain-list li > * {
	display: block;
}

/* Resultado de una operación: antes y después. */
.result-panel {
	border-color: #c9daf8;
}
.change-list {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}
.change-list li {
	display: grid;
	grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 12px;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid #eef1f5;
	font-size: 14px;
}
.change-list li > span {
	color: var(--help);
	font-size: 13px;
}
.change-list del {
	color: #6b778a;
	text-decoration-color: #b4bfcf;
}
.change-list strong {
	color: var(--ink);
}

/* Confirmación explícita de una operación sensible. */
.confirm-panel h2 {
	margin-bottom: 0;
}
.confirm-danger {
	border-color: #efc7c2;
}
.consequence-list {
	margin: 0;
	padding-left: 20px;
	line-height: 1.7;
}
.confirm-check {
	font-weight: 600;
}
.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

/* Filtros cortos (alertas, solicitudes, auditoría): búsqueda y uno o dos selectores. */
.filter-grid-compact {
	grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) auto;
}
.filter-grid-compact .filter-buttons {
	grid-column: auto;
}

/* Contraste de al menos 4.5:1 en los grises heredados (docs/PANEL.md, sección 8). */
.workspace-footer,
.table th,
.detail-grid dt,
.activity-list span,
.activity-list small,
.user-role-line,
.eyebrow,
.empty-state,
.form-text {
	color: var(--help);
}
.form-control::placeholder {
	color: #667085;
}

@media (max-width: 1200px) {
	.filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.filter-search,
	.filter-checks,
	.filter-buttons {
		grid-column: 1 / -1;
	}
	.filter-buttons {
		justify-content: flex-start;
	}
	.record-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.detail-grid-wide {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.breadcrumb-label {
		display: none;
	}
	.filter-grid {
		grid-template-columns: 1fr;
	}
	.topbar-issue span {
		display: none;
	}
	.record-header {
		padding: 18px;
	}
	.record-title {
		flex-direction: column;
	}
	.record-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.action-bar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.action-bar .btn,
	.action-bar .dropdown,
	.action-bar .dropdown .btn {
		width: 100%;
		justify-content: center;
	}
	.action-end {
		margin-left: 0;
	}
	.section-tabs ul {
		display: none;
	}
	.section-select {
		display: block;
	}
	.collection-grid {
		grid-template-columns: 1fr;
		padding: 0 17px 17px;
	}
	.change-list li {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.panel-heading {
		flex-direction: column;
		align-items: flex-start;
	}
	.panel-body,
	.empty-line {
		padding-left: 17px;
		padding-right: 17px;
	}
	.detail-grid-wide {
		grid-template-columns: 1fr;
	}
	/* Tablas como tarjetas: cada fila es una tarjeta con la etiqueta de cada dato. */
	.table-stack thead {
		display: none;
	}
	.table-stack,
	.table-stack tbody,
	.table-stack tr,
	.table-stack td {
		display: block;
		width: 100%;
	}
	.table-stack tr {
		padding: 12px 17px;
		border-bottom: 1px solid var(--line);
	}
	.table-stack td {
		display: grid;
		grid-template-columns: 38% minmax(0, 1fr);
		gap: 10px;
		padding: 5px 0 !important;
		border: 0;
		text-align: left;
		overflow-wrap: anywhere;
	}
	.table-stack td::before {
		content: attr(data-label);
		font-size: 12px;
		font-weight: 600;
		color: var(--help);
	}
	.table-stack td:not([data-label]) {
		display: block;
	}
	.table-stack td:not([data-label])::before {
		content: none;
	}
	.table-stack td > * {
		grid-column: 2;
		justify-self: start;
	}
	.cell-action {
		text-align: left;
	}
}
