/* Identidad visual y tipografia compartidas por todas las pantallas. */
.password-control { position: relative; margin-top: 7px; }
.password-control>input { margin-top: 0; padding-right: 52px; }
.password-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0 9px 9px 0; background: transparent; color: #526b8d; }
.password-toggle:hover { background: #eaf1ff; color: #2563eb; }
.password-toggle svg { width: 21px; height: 21px; }
.password-toggle .eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.audit-deleted { background: #fff0ef; color: #ae343c; }
.audit-username { display: block; color: var(--muted); margin-top: 4px; }
.audit-summary { min-width: 310px; max-width: 520px; overflow-wrap: anywhere; }
.audit-summary>strong { color: var(--ink); }
.audit-summary>p { font-size: 13px; margin: 5px 0 10px; }
.audit-summary summary { color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; }
.audit-summary summary:focus-visible { outline: 3px solid #81aefb; outline-offset: 3px; }
.audit-data { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 16px; margin: 12px 0 0; background: #f5f8fd; border-radius: 10px; }
.audit-data dd { font-size: 13px; }
.audit-observations { grid-column: 1/-1; }
.audit-observations dd { white-space: pre-wrap; }
.news-bell { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 11px; color: #466181; background: #fff; }
.news-bell:hover { background: #eaf1ff; color: var(--blue); }
.news-bell svg { width: 22px; height: 22px; }
.news-bell [data-news-count] { position: absolute; top: -6px; right: -6px; min-width: 20px; padding: 2px 5px; border-radius: 12px; background: #d13d48; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.news-nav-count { margin-left: auto; padding: 1px 7px; border-radius: 7px; background: #4974b4; color: white; font-size: 12px; }
[data-news-count][hidden],.news-alert[hidden] { display: none; }
.news-bell[hidden] { display: none; }
.news-alert a { font-weight: 600; }
.news-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 26px; align-items: start; }
.news-layout.news-readonly { grid-template-columns: 1fr; max-width: 1000px; }
.news-compose { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
.news-compose .card-heading { padding: 24px 24px 0; }
.news-compose-form { display: flex; flex-direction: column; gap: 18px; padding: 20px 24px 24px; }
.news-compose-form .checkbox { font-weight: 500; }
.news-channel { grid-column: 1; grid-row: 1; min-width: 0; }
.news-channel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 18px; flex-wrap: wrap; }
.news-channel-heading h2 { margin: 0; }
.news-channel-heading>span { font-size: 12px; }
.news-message { padding: 24px; }
.news-message-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.news-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-message time { color: var(--muted); font-size: 12px; }
.news-pending { color: #466bb2; font-size: 12px; font-weight: 600; }
.news-urgent { border-left: 4px solid #d13d48; }
.news-unread { box-shadow: 0 3px 16px #2563eb0a; }
.news-author { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.news-author strong { color: #405875; }
.news-message h2,.news-author { overflow-wrap: anywhere; }
.news-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #354e6a; font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.news-record { margin-bottom: 20px; font-size: 13px; }
.news-message-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.news-read { font-size: 13px; color: #23744c; }
.news-receipts { margin-top: 18px; }
.news-receipts summary { color: #526780; font-size: 13px; font-weight: 600; cursor: pointer; }
.news-receipt-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 18px; background: #f5f8fd; border-radius: 12px; margin-top: 12px; }
.news-receipt-columns h3 { font-size: 14px; }
.news-receipt-columns p { font-size: 13px; margin-bottom: 12px; overflow-wrap: anywhere; }
.news-receipt-columns small { display: block; font-size: 12px; color: var(--muted); }
.news-message.news-collapsible { padding: 0; margin-bottom: 8px; border-radius: 12px; }
.news-disclosure>summary { display: block; list-style: none; padding: 10px 14px; cursor: pointer; border-radius: 11px; }
.news-disclosure>summary::-webkit-details-marker { display: none; }
.news-disclosure>summary:hover { background: #f8faff; }
.news-disclosure>summary:focus-visible { outline: 3px solid #81aefb; outline-offset: 2px; }
.news-disclosure .news-message-meta { margin-bottom: 5px; gap: 6px; }
.news-disclosure .news-tags { gap: 6px; }
.news-disclosure .news-tags .badge { padding: 2px 7px; font-size: 11px; }
.news-disclosure .news-pending,.news-disclosure time { font-size: 11px; }
.news-summary-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.news-summary-title h2 { font-size: 15px; margin: 0; line-height: 1.4; }
.news-chevron { width: 20px; height: 20px; flex-shrink: 0; color: #62748b; }
.news-disclosure[open]>summary .news-chevron { transform: rotate(180deg); }
.news-message-content { padding: 14px; border-top: 1px solid var(--line); }
@media(max-width:1150px) { .news-layout { grid-template-columns: 1fr; } .news-compose { grid-column: 1; grid-row: 1; position: static; } .news-channel { grid-row: 2; } }
@media(max-width:760px) { .news-message { padding: 20px; } .news-layout { gap: 8px; } .news-bell { width: 38px; height: 38px; } }
@media(max-width:450px) { .news-receipt-columns { grid-template-columns: 1fr; } .news-message-actions .button { font-size: 13px; } }
:root {
  --bg: #f3f6fb;
  --ink: #172b46;
  --muted: #62748b;
  --line: #e1e8f1;
  --blue: #2563eb;
  --nav: #101f36;
  --radius: 16px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body { background: var(--bg); -webkit-font-smoothing: antialiased; }
h1,h2,h3 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(28px, 2.5vw, 36px); letter-spacing: -1px; line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 20px; letter-spacing: -.4px; line-height: 1.35; }
h3 { font-size: 17px; }
small { font-size: 13px; }
.eyebrow { font-size: 11px; letter-spacing: 1.6px; font-weight: 700; color: #4268a4; margin-bottom: 12px; }
.sidebar { background: linear-gradient(165deg, #162b48, #101e33 65%); padding: 32px 16px 24px; border-right: 1px solid #20334e; }
.brand { font-size: 25px; gap: 12px; padding: 0 8px 30px; letter-spacing: -.6px; }
.brand img { width: 44px; height: 44px; }
.brand small { font-size: 9px; letter-spacing: 1.4px; color: #a6b8d1; }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; color: #93a7c3; padding: 20px 12px 10px; }
.sidebar nav>a { min-height: 48px; padding: 12px; gap: 12px; border-radius: 10px; font-size: 14px; color: #c0cee1; transition: background .15s, color .15s; }
.sidebar nav>a:hover { background: #233955; }
.sidebar nav>a.active { color: #fff; background: #284b7a; box-shadow: inset 3px 0 #78aaff; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; flex-shrink: 0; }
.nav-icon svg,.menu-toggle svg { width: 20px; height: 20px; }
.source-note { font-size: 12px; color: #a5b7cf; }
.profile { font-size: 14px; gap: 12px; }
.profile>span:last-child { min-width: 0; overflow-wrap: anywhere; }
.profile small { font-size: 12px; color: #9fb2cb; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: #29476c; color: #e2edff; flex-shrink: 0; }
.logout { font-size: 13px; color: #b0c1d8; padding: 8px 0; }
.sidebar-close { color: #a5b7cf; }
.topbar { height: 80px; padding: 0 36px; background: #fff; }
.breadcrumb { font-size: 14px; font-weight: 500; color: #526780; }
.breadcrumb span { color: #a0afc2; }
.today { font-size: 12px; color: #526780; }
.menu-toggle { width: 40px; height: 40px; border-radius: 10px; }
.main { padding: 36px 36px 24px; }
.page-heading { margin-bottom: 28px; gap: 24px; }
.page-heading p:last-child { font-size: 15px; color: var(--muted); line-height: 1.6; }
.button { min-height: 44px; font-size: 14px; padding: 11px 18px; border-radius: 10px; font-weight: 600; transition: background .15s, box-shadow .15s; }
.primary { background: var(--blue); box-shadow: 0 4px 10px #2563eb1c; }
.primary:hover { background: #1d4ed8; box-shadow: 0 5px 14px #2563eb30; }
.secondary { color: #405875; border-color: #d6dfec; }
.danger { color: #ae343c; }
.text-link { font-size: 13px; }
.card,.metric { border-color: var(--line); box-shadow: 0 3px 14px #172b4605; }
.card { border-radius: var(--radius); margin-bottom: 24px; }
.card-heading { padding: 24px 26px 20px; }
.card-heading p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.badge { border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.blue { background: #eaf1ff; color: #285ab5; }
.amber { background: #fff3dc; color: #8b6018; }
.green { background: #e7f6ee; color: #23744c; }
.neutral,.gray { background: #edf1f6; color: #52647c; }
.period-banner { border-radius: 12px; background: #eaf1fd; border-color: #d8e5fb; padding: 15px 18px; font-size: 14px; color: #4f6380; }
.period-banner a { font-size: 13px; font-weight: 600; }
.metrics { gap: 20px; }
.metrics>.metric { min-height: 168px; padding: 24px; border-radius: 16px; }
.metrics>.metric>span { font-size: 14px; color: #51647d; }
.metrics>.metric>strong { font-size: 40px; font-weight: 700; letter-spacing: -1.4px; color: #172b46; margin: 14px 0 8px; }
.metrics>.metric>small { font-size: 13px; color: var(--muted); }
.metric-symbol { width: 36px; height: 36px; border-radius: 10px; font-size: 20px; }
.dashboard-grid { gap: 24px; }
.bars { padding: 0 26px 24px; }
.bar-row { grid-template-columns: minmax(105px, 150px) minmax(40px, 1fr) 38px; font-size: 13px; gap: 14px; padding: 11px 0; }
.bar-row>span { overflow-wrap: anywhere; }
.bar-row strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.bar-row progress { height: 8px; }
.bar-row progress::-webkit-progress-value { background: #5e8eed; }
.bar-row progress::-moz-progress-bar { background: #5e8eed; }
.jurisdictions { padding: 0 26px 22px; }
.jurisdictions a { font-size: 14px; padding: 14px 0; }
.jurisdictions small { font-size: 12px; color: var(--muted); }
.jurisdictions strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.rank { width: 34px; height: 34px; border-radius: 10px; color: #4e6a91; font-size: 12px; flex-shrink: 0; }
.month-chart { padding: 16px 28px 28px; }
.month strong,.month small { font-size: 12px; color: #526780; }
.month rect { fill: #97b5f1; }
.month:nth-last-child(1) rect { fill: var(--blue); }
.chart-card .card-heading>.muted { font-size: 13px; }
table { font-size: 14px; }
th,.table-card th { background: #edf3fb; color: #466181; font-size: 12px; font-weight: 700; letter-spacing: .2px; padding: 15px 20px; border-top: 1px solid #e1e9f4; border-bottom: 1px solid #d7e2f0; }
td { color: #475d77; padding: 18px 20px; line-height: 1.6; border-bottom-color: #edf1f6; }
tbody tr:hover { background: #f5f8fe; }
td.subscriber { color: #213b5c; font-weight: 600; }
.subscriber small { font-size: 12px; color: var(--muted); margin-top: 5px; }
.pagination { padding: 18px 24px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.pagination .button { font-size: 13px; min-height: 38px; padding: 8px 12px; }
.filters { padding: 26px; }
label { font-size: 14px; color: #3d536f; font-weight: 600; }
input,select,textarea { font-size: 15px; border-radius: 10px; border-color: #d5dfec; padding: 11px 13px; min-height: 46px; color: #213954; background: #fcfdff; }
input:hover,select:hover,textarea:hover { border-color: #a6bddb; }
input:focus,select:focus,textarea:focus { border-color: #5485e7; background: #fff; }
input::placeholder,textarea::placeholder { font-size: 14px; color: #6b7e95; }
textarea { resize: vertical; line-height: 1.7; }
label small { font-size: 12px; font-weight: 400; color: var(--muted); }
.checkbox { font-size: 13px; }
.filter-top,.filter-grid { gap: 20px; }
.filter-bottom { padding-top: 20px; }
.form-card { padding: 30px; }
.form-grid { gap: 24px; }
.form-section>p { font-size: 14px; }
.stack { gap: 20px; }
.option-toggle { width: 40px; border-radius: 0 9px 9px 0; color: #48648a; }
.option-menu { border-radius: 12px; padding: 6px; font-size: 14px; box-shadow: 0 12px 36px #172b4626; }
.option-item { padding: 11px 12px; border-radius: 7px; }
.option-empty { font-size: 13px; color: var(--muted); }
dt { font-size: 12px; color: var(--muted); font-weight: 600; }
dd { font-size: 15px; color: #263f60; overflow-wrap: anywhere; }
.detail-grid { gap: 28px; }
.observations p { font-size: 15px; color: #475d77; }
.record-meta { font-size: 12px; color: var(--muted); }
.danger-zone p { font-size: 14px; }
.notice { font-size: 14px; border-radius: 12px; padding: 18px 22px; }
.empty { color: var(--muted); padding: 48px 24px; }
.empty p { font-size: 14px; }
.footer { font-size: 12px; color: #65788f; padding: 8px 0 14px; }
.auth-body { background: radial-gradient(ellipse at 12% 18%, #e2ecff, transparent 55%), #f4f7fc; }
.auth-wrap { max-width: 1160px; gap: 80px; padding: 56px 40px; }
.auth-intro>img { width: 108px; height: 108px; margin-bottom: 28px; }
.auth-intro h1 { font-size: clamp(32px, 3vw, 42px); line-height: 1.2; letter-spacing: -1.4px; }
.auth-intro>p:not(.eyebrow) { font-size: 16px; color: #5e728f; max-width: 420px; }
.intro-detail { font-size: 13px; color: #526b8d; }
.auth-card { padding: 40px; border-radius: 22px; border-color: #e0e7f2; box-shadow: 0 20px 60px #2545790d; }
.auth-card h2 { font-size: 28px; margin-top: 22px; }
.auth-card>p { font-size: 15px; color: var(--muted); }
.auth-foot { font-size: 12px; color: #62748b; }
.auth-card .primary { min-height: 48px; margin-top: 4px; }
@media(min-width:1600px) { .main { padding-top: 42px; } }
@media(max-width:1200px) {
  .main { padding: 30px 24px 22px; }
  .topbar { padding: 0 24px; }
  .auth-wrap { gap: 44px; }
  .metrics { gap: 16px; }
  .metrics>.metric { padding: 20px; }
}
@media(min-width:761px) and (max-width:1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .metrics>.metric>span { font-size: 13px; }
  .metrics>.metric>strong { font-size: 34px; }
}
@media(max-width:950px) { .auth-card { padding: 30px; } }
@media(max-width:760px) {
  .topbar { height: 68px; padding: 0 18px; gap: 12px; }
  .breadcrumb { font-size: 13px; }
  .breadcrumb span { padding: 0 6px; }
  .main { padding: 28px 18px 20px; }
  .page-heading { gap: 18px; flex-wrap: wrap; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p:last-child { font-size: 14px; }
  .metrics { grid-template-columns: 1fr; gap: 14px; }
  .metrics>.metric { min-height: 148px; }
  .metrics>.metric>strong { font-size: 36px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .card-heading { padding: 22px; }
  .bars,.jurisdictions { padding-left: 22px; padding-right: 22px; }
  .bar-row { grid-template-columns: minmax(90px, 125px) minmax(40px, 1fr) 32px; gap: 10px; }
  .period-banner { font-size: 13px; }
  .filters,.form-card { padding: 22px; }
  .filter-top,.filter-grid { gap: 16px; }
  .auth-wrap { max-width: 520px; grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; }
  .auth-intro>img { width: 84px; height: 84px; margin-bottom: 16px; }
  .auth-intro h1 { font-size: 30px; margin-bottom: 0; }
  .auth-card { padding: 30px; }
  .auth-body>.notice { margin: 18px 22px 0; }
  input,select,textarea { font-size: 16px; }
}
@media(max-width:450px) {
  .filter-top { grid-template-columns: 1fr; }
  .search { grid-column: auto; }
  .filter-grid,.form-grid,.detail-grid { grid-template-columns: 1fr; }
  .detail-grid { margin-left: 22px; margin-right: 22px; }
  .auth-card { padding: 26px; }
  .auth-card h2 { font-size: 26px; }
  .form-footer { flex-wrap: wrap; }
  .pagination .actions { flex-wrap: wrap; }
  .period-banner { gap: 10px; }
}
@media(prefers-reduced-motion:reduce) { .button,.metric,.sidebar nav>a { transition: none; } .metric:hover { transform: none; } }
