﻿/* dasaar · Interfaz compartida. Sin dependencias externas. */
:root {
  --tn-navy: #10283f;
  --tn-navy-deep: #0b1e30;
  --tn-teal: #137f81;
  --tn-teal-dark: #0d6467;
  --tn-teal-soft: #e7f5f3;
  --tn-ink: #20364a;
  --tn-muted: #617588;
  --tn-line: #dce5ec;
  --tn-bg: #f4f7fa;
  --tn-white: #fff;
  --tn-sidebar-width: 264px;
  --tn-radius: 16px;
  --tn-shadow: 0 6px 22px rgb(16 40 63 / 5%);
  --tn-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
.tn-app, .tn-login { margin: 0 !important; padding: 0; background: var(--tn-bg); color: var(--tn-ink); font: 14px/1.5 var(--tn-font); text-align: left; }
.tn-app *, .tn-login * { box-sizing: border-box; }
.tn-app button, .tn-app input, .tn-app select, .tn-app textarea, .tn-login button, .tn-login input, .tn-login select { font-family: var(--tn-font); }
.tn-app a, .tn-login a { text-underline-offset: 3px; }
.tn-app :focus-visible, .tn-login :focus-visible { outline: 3px solid #20a9ad !important; outline-offset: 3px; }
.tn-app [hidden], .tn-login [hidden] { display: none !important; }
.tn-skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px 20px; border-radius: 8px; background: white; color: var(--tn-navy); font-weight: 700; }
.tn-skip-link:focus { top: 12px; }
.tn-sr-only, #tn-live { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tn-shell { min-height: 100vh; }
.tn-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; width: var(--tn-sidebar-width); display: flex; flex-direction: column; background: var(--tn-navy); color: #e5edf4; padding: 28px 18px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4b657a transparent; }
.tn-brand { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 10px 30px; color: white; text-decoration: none; }
.tn-brand-symbol { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #27b5b0; color: #082d3b; font-size: 25px; font-weight: 800; letter-spacing: -4px; padding-right: 4px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%); }
.tn-brand-name { display: block; color: inherit; font-size: 22px; font-weight: 750; letter-spacing: 1.7px; line-height: 1.15; }
.tn-brand-caption { display: block; color: #b2c6d6; font-size: 11px; letter-spacing: .65px; margin-top: 4px; }
.tn-search-field { position: relative; margin: 0 3px 22px; }
.tn-search-field > svg, .tn-search-field > .tn-search-icon { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; color: #b7c9d9; pointer-events: none; }
#tn-module-search { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #50667a; border-radius: 10px; background: #19354c; color: white; font-size: 13px; }
.tn-search-field:has(.tn-search-icon) #tn-module-search, .tn-search-field:has(> svg) #tn-module-search { padding-left: 38px; }
#tn-module-search::placeholder { color: #b8c8d6; opacity: 1; }
#tn-module-search:focus { border-color: #42c6c1; outline: none; box-shadow: 0 0 0 3px rgb(66 198 193 / 17%); }
.tn-search-hint { margin: 7px 3px 0; color: #b2c6d6; font-size: 11px; }
.tn-search-hint kbd { font-family: inherit; border: 1px solid #52697d; border-radius: 4px; padding: 0 4px; }
#tn-nav { flex: 1 0 auto; }
.tn-nav-group { margin: 0 0 20px; }
.tn-nav-group h3, .tn-nav-group-title { margin: 0 12px 8px; color: #a7bdce; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.5; text-transform: uppercase; }
.tn-nav-list { list-style: none; padding: 0; margin: 0; }
.tn-nav-item { position: relative; display: flex; align-items: center; gap: 2px; margin-bottom: 3px; border-radius: 9px; }
.tn-nav-link { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; min-height: 42px; padding: 10px 11px; border-radius: 9px; color: #d5e1eb; font-size: 13px; line-height: 1.4; text-decoration: none; transition: background .15s ease, color .15s ease; }
.tn-nav-link:hover { color: white; background: #213e55; text-decoration: none; }
.tn-nav-link.is-active, .tn-nav-link[aria-current="page"] { color: white; background: #17666d; box-shadow: inset 3px 0 #5fd7cb; font-weight: 650; }
.tn-nav-icon { display: inline-grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; color: #b6cddc; font-size: 16px; line-height: 1; }
.tn-nav-link.is-active .tn-nav-icon { color: #baf4ed; }
/* Override the legacy a:link/a:visited rules without changing their module styles. */
.tn-sidebar a.tn-brand, .tn-sidebar a.tn-brand:visited { color: white; }
.tn-sidebar a.tn-nav-link, .tn-sidebar a.tn-nav-link:visited { color: #d5e1eb; }
.tn-sidebar a.tn-nav-link:hover, .tn-sidebar a.tn-nav-link.is-active, .tn-sidebar a.tn-nav-link[aria-current="page"] { color: white; }
.tn-nav-label { min-width: 0; overflow-wrap: anywhere; }
.tn-star { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 32px; padding: 0; border: 0; border-radius: 7px; color: #a9bdce; background: transparent; font-size: 18px; cursor: pointer; }
.tn-star:hover { background: #2e4c61; color: white; }
.tn-star.is-favorite, .tn-star[aria-pressed="true"] { color: #f6cd76; }
#tn-nav-empty { padding: 16px 12px; color: #d1e0ec; font-size: 13px; }
.tn-sidebar-footer { margin-top: 24px; padding: 18px 10px 0; border-top: 1px solid #314c62; color: #aac1d1; font-size: 11px; line-height: 1.7; }
.tn-sidebar-footer strong { display: block; color: #e1edf6; font-size: 12px; font-weight: 600; }
.tn-workspace { min-width: 0; margin-left: var(--tn-sidebar-width); }
.tn-topbar { position: sticky; top: 0; z-index: 40; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 36px; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--tn-line); backdrop-filter: blur(10px); }
.tn-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--tn-muted); font-size: 12px; }
.tn-breadcrumb a { color: var(--tn-muted); text-decoration: none; }
.tn-breadcrumb a:hover { color: var(--tn-teal-dark); }
.tn-breadcrumb strong { color: var(--tn-ink); font-weight: 600; }
.tn-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tn-icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 40px; min-height: 40px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #536b7f; font-size: 13px; line-height: 1.4; text-decoration: none; cursor: pointer; }
.tn-icon-button:hover { background: #edf3f7; color: var(--tn-navy); border-color: #dce6ee; }
.tn-icon-button[aria-pressed="true"] { background: var(--tn-teal-soft); color: var(--tn-teal-dark); border-color: #b9ded9; }
.tn-icon-button svg { width: 18px; height: 18px; }
.tn-icon-button input[type="image"] { width: 22px !important; height: 22px !important; object-fit: contain; }
.tn-user-chip { display: flex; align-items: center; gap: 10px; max-width: 240px; margin-left: 7px; padding-left: 15px; border-left: 1px solid var(--tn-line); color: var(--tn-ink); font-size: 12px; }
.tn-user-chip > .tn-avatar, .tn-avatar { display: grid; place-items: center; flex: 0 0 35px; height: 35px; width: 35px; border-radius: 50%; background: #e7f1f5; color: #285d75; font-size: 13px; font-weight: 700; }
.tn-user-chip [id$="lblNombreUsuario"] { display: block !important; width: auto !important; max-width: 160px; overflow: hidden; text-overflow: ellipsis; font: 600 12px/1.5 var(--tn-font) !important; color: var(--tn-ink) !important; }
.tn-user-chip [id$="lblNombreEmpresa"] { display: block !important; width: auto !important; color: var(--tn-muted) !important; font: 11px/1.4 var(--tn-font) !important; }
.tn-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 36px 24px; }
.tn-eyebrow { display: block; margin: 0 0 8px; color: var(--tn-teal-dark); font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; }
#tn-page-title { margin: 0; color: var(--tn-navy); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -.8px; }
.tn-page-heading p { margin: 8px 0 0; color: var(--tn-muted); font-size: 13px; }
#tn-favorite-toggle { flex: 0 0 auto; border-color: var(--tn-line); background: white; color: #536b7f; }
#tn-favorite-toggle[aria-pressed="true"] { border-color: #e8c66b; background: #fff8e5; color: #805c04; }
.tn-content { min-width: 0; margin: 0 36px 24px; padding: 24px; border: 1px solid var(--tn-line); border-radius: var(--tn-radius); background: white; box-shadow: var(--tn-shadow); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b5c7d5 transparent; }
.tn-content:has(> #tn-dashboard), .tn-content.tn-dashboard-content { border: 0; border-radius: 0; box-shadow: none; padding: 0; background: transparent; overflow: visible; }
.tn-workspace > .tn-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 36px 26px; color: #687d8e; font-size: 11px; }
.tn-workspace > .tn-footer [id$="Label2"] { color: #687d8e !important; font: 11px/1.5 var(--tn-font) !important; }
#tn-legacy-nav { margin: 0 36px 20px; padding: 12px; border: 1px solid var(--tn-line); border-radius: 10px; background: white; overflow: auto; }
#tn-sidebar-close, #tn-menu-toggle { display: none; }
#tn-nav-shade { position: fixed; inset: 0; z-index: 60; border: 0; padding: 0; background: rgb(5 20 34 / 55%); cursor: pointer; }

/* Controles heredados: se preservan los campos, eventos y validadores originales. */
.tn-content input[type="text"], .tn-content input[type="password"], .tn-content input[type="number"], .tn-content input[type="date"], .tn-content input[type="search"], .tn-content input[type="email"], .tn-content select, .tn-content textarea {
  min-height: 36px; max-width: 100%; padding: 7px 10px; border: 1px solid #bacbd8 !important; border-radius: 7px; background-color: white; color: var(--tn-ink); font: 13px/1.4 var(--tn-font) !important; vertical-align: middle;
}
.tn-content input[type="text"]:focus, .tn-content select:focus, .tn-content textarea:focus { border-color: var(--tn-teal) !important; box-shadow: 0 0 0 3px rgb(19 127 129 / 10%); }
.tn-content input[type="checkbox"], .tn-content input[type="radio"] { width: 16px; height: 16px; accent-color: var(--tn-teal); vertical-align: middle; cursor: pointer; }
.tn-content input[type="submit"], .tn-content input[type="button"], .tn-content button:not(.tn-star):not(.tn-icon-button) { min-height: 36px; padding: 8px 14px; border: 1px solid var(--tn-teal-dark) !important; border-radius: 7px; background-color: var(--tn-teal); color: white; font: 600 12px/1.4 var(--tn-font) !important; white-space: normal; cursor: pointer; }
.tn-content input[type="submit"]:hover, .tn-content input[type="button"]:hover, .tn-content button:not(.tn-star):not(.tn-icon-button):hover { background-color: var(--tn-teal-dark); }
.tn-content input:disabled, .tn-content select:disabled, .tn-content button:disabled { opacity: .6; cursor: not-allowed; }
.tn-content input[readonly], .tn-content textarea[readonly] { background-color: #f0f4f7; color: #536b7f; }
.tn-content a { color: #0d697b; }
.tn-content a:hover { color: #064b5a; }
.tn-content fieldset { border: 1px solid var(--tn-line); border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.tn-content legend { padding: 0 6px; color: var(--tn-navy); font-weight: 650; }
.tn-content label { font-family: var(--tn-font); }
.tn-content table[id*="GridView"], .tn-content table[id*="grid"], .tn-content table[id*="gv"], .tn-content table[id*="dg"], .tn-content table[id*="DG"], .tn-content table[role="grid"] { border-collapse: separate !important; border-spacing: 0; border: 1px solid var(--tn-line) !important; font: 12px/1.5 var(--tn-font) !important; color: var(--tn-ink); }
.tn-content table[id*="GridView"] > tbody > tr > th, .tn-content table[id*="grid"] > tbody > tr > th, .tn-content table[id*="gv"] > tbody > tr > th, .tn-content table[id*="dg"] > tbody > tr > th, .tn-content table[id*="DG"] > tbody > tr > th, .tn-content table[role="grid"] th { padding: 11px 10px; border: 0 !important; border-bottom: 1px solid #cddae5 !important; background: #edf3f7 !important; color: #29475c !important; font: 650 11px/1.5 var(--tn-font) !important; text-align: left; vertical-align: middle; }
.tn-content table[id*="GridView"] > tbody > tr > td, .tn-content table[id*="grid"] > tbody > tr > td, .tn-content table[id*="gv"] > tbody > tr > td, .tn-content table[id*="dg"] > tbody > tr > td, .tn-content table[id*="DG"] > tbody > tr > td, .tn-content table[role="grid"] > tbody > tr > td { padding: 9px 10px; border: 0 !important; border-bottom: 1px solid #e6edf2 !important; vertical-align: middle; }
.tn-content table[id*="GridView"] > tbody > tr:hover > td, .tn-content table[id*="grid"] > tbody > tr:hover > td, .tn-content table[id*="gv"] > tbody > tr:hover > td, .tn-content table[id*="dg"] > tbody > tr:hover > td, .tn-content table[id*="DG"] > tbody > tr:hover > td { background-color: #f0f7f8; }
.tn-content table[id*="GridView"] th a, .tn-content table[id*="grid"] th a, .tn-content table[id*="gv"] th a, .tn-content table[id*="dg"] th a { color: #29475c !important; }
.tn-content table[id*="GridView"] input[type="image"], .tn-content table[id*="grid"] input[type="image"], .tn-content table[id*="gv"] input[type="image"], .tn-content table[id*="dg"] input[type="image"] { box-sizing: content-box; padding: 5px; border-radius: 5px; vertical-align: middle; }
.tn-content [role="alert"] { border-radius: 8px; }

/* Inicio: directorio real de módulos autorizados, favoritos y actividad local. */
.tn-hero { position: relative; display: flex; justify-content: space-between; gap: 24px; min-height: 230px; padding: 34px 38px; border-radius: 20px; background: var(--tn-navy); color: white; overflow: hidden; }
.tn-hero-copy { position: relative; z-index: 2; max-width: 590px; }
.tn-hero .tn-eyebrow { color: #8ee0d8; }
.tn-hero h2 { margin: 9px 0 14px; max-width: 540px; color: white; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 650; letter-spacing: -1.2px; }
.tn-hero p { margin: 0; max-width: 490px; color: #c0d0dc; font-size: 14px; line-height: 1.75; }
.tn-hero-art { position: relative; flex: 0 0 160px; align-self: center; height: 155px; margin-right: 16px; border: 1px solid #416777; border-radius: 32px; transform: rotate(-9deg); background: #183e52; }
.tn-hero-art::before { position: absolute; content: ""; inset: 23px -20px -18px 24px; border: 1px solid #498b91; border-radius: 28px; background: #21656f; box-shadow: 0 15px 25px rgb(0 0 0 / 10%); }
.tn-hero-art::after { position: absolute; content: "T"; inset: 37px 0 0 43px; display: grid; place-items: center; height: 85px; width: 85px; border-radius: 24px; background: #83ded1; color: #184658; font-size: 60px; line-height: 1; font-weight: 750; transform: rotate(9deg); }
.tn-hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.tn-hero-actions a { color: white; }
.tn-dashboard-stat { display: flex; align-items: center; gap: 12px; margin: 20px 0 28px; color: var(--tn-muted); font-size: 13px; }
#tn-module-count { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 3px 10px; border: 1px solid #cfe2e4; border-radius: 12px; background: var(--tn-teal-soft); color: var(--tn-teal-dark); font-size: 22px; font-weight: 700; line-height: 1.2; }
.tn-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 16px; }
.tn-section-heading h2, .tn-section-heading h3 { margin: 0; color: var(--tn-navy); font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -.25px; }
.tn-section-heading p { margin: 5px 0 0; color: var(--tn-muted); font-size: 12px; }
.tn-section-heading > span { color: var(--tn-muted); font-size: 12px; }
.tn-module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.tn-module-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 190px; padding: 23px; border: 1px solid var(--tn-line); border-radius: 14px; background: white; color: var(--tn-ink); text-decoration: none; box-shadow: 0 3px 10px rgb(16 40 63 / 2%); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
a.tn-module-card:hover { color: var(--tn-ink); text-decoration: none; border-color: #73b6b5; box-shadow: 0 8px 24px rgb(16 40 63 / 9%); transform: translateY(-2px); }
.tn-module-card a { text-decoration: none; }
.tn-module-card > a { color: var(--tn-ink); }
.tn-card-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 11px; background: var(--tn-teal-soft); color: var(--tn-teal-dark); font-size: 21px; line-height: 1; }
.tn-card-group, .tn-card-category { display: block; margin-bottom: 5px; color: #667f91; font-size: 10px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; }
.tn-card-title, .tn-module-card h3 { display: block; margin: 0 0 8px; padding-right: 8px; color: var(--tn-navy); font-size: 16px; line-height: 1.35; font-weight: 650; letter-spacing: -.25px; }
.tn-card-description { display: block; margin: 0; color: var(--tn-muted); font-size: 12px; line-height: 1.65; }
.tn-card-arrow { position: absolute; bottom: 20px; right: 20px; color: var(--tn-teal); font-size: 20px; }
.tn-module-card .tn-star { position: absolute; top: 15px; right: 14px; color: #7d91a1; }
.tn-module-card .tn-star:hover { color: #865f10; background: #fff4d7; }
.tn-module-card .tn-star.is-favorite { color: #9e710c; background: #fff7df; }
.tn-dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.tn-dashboard-panel { min-width: 0; padding: 0 22px 22px; border: 1px solid var(--tn-line); border-radius: 14px; background: white; }
.tn-dashboard-panel .tn-section-heading { margin-top: 22px; }
.tn-favorites-list, .tn-recent-list, #tn-dashboard-favorites, #tn-dashboard-recent { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tn-favorites-list a, .tn-recent-list a, #tn-dashboard-favorites > a, #tn-dashboard-recent > a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #e0e9f0; border-radius: 9px; background: white; color: var(--tn-ink); font-size: 13px; text-decoration: none; }
.tn-favorites-list a:hover, .tn-recent-list a:hover, #tn-dashboard-favorites > a:hover, #tn-dashboard-recent > a:hover { border-color: #90bdbf; background: #f1f9f8; }
.tn-empty { margin: 0; padding: 20px; border: 1px dashed #bdcfdc; border-radius: 10px; background: #f7fafc; color: #61778a; font-size: 13px; line-height: 1.65; }
.tn-module-grid > .tn-empty { grid-column: 1 / -1; }
.tn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; background: #e8f4f0; color: #276451; font-size: 11px; font-weight: 600; }

/* Ayuda y preferencias: accesibles con teclado y sin envíos al servidor. */
.tn-dialog, #tn-help-dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 28px; border: 1px solid var(--tn-line); border-radius: 18px; background: white; color: var(--tn-ink); box-shadow: 0 28px 90px rgb(0 20 35 / 28%); font: 14px/1.6 var(--tn-font); overflow-y: auto; }
.tn-dialog::backdrop, #tn-help-dialog::backdrop { background: rgb(5 20 34 / 55%); backdrop-filter: blur(2px); }
.tn-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.tn-dialog h2 { margin: 0 0 10px; color: var(--tn-navy); font-size: 24px; line-height: 1.2; }
.tn-dialog h3 { margin: 22px 0 7px; color: var(--tn-navy); font-size: 15px; }
.tn-dialog p { color: var(--tn-muted); }
.tn-dialog ul { padding-left: 20px; }
.tn-dialog li { padding-bottom: 9px; }
.tn-dialog kbd { display: inline-block; padding: 1px 6px; border: 1px solid #cbd8e2; border-radius: 5px; background: #f1f5f8; box-shadow: 0 1px 0 #cbd8e2; font: 12px/1.5 var(--tn-font); }
.tn-density-compact .tn-content, [data-density="compact"] .tn-content { padding: 16px; }
.tn-density-compact .tn-page-heading, [data-density="compact"] .tn-page-heading { padding-top: 20px; padding-bottom: 18px; }
.tn-density-compact .tn-content input[type="text"], .tn-density-compact .tn-content select, [data-density="compact"] .tn-content input[type="text"], [data-density="compact"] .tn-content select { min-height: 30px; padding-top: 4px; padding-bottom: 4px; }
.tn-density-compact .tn-content table[id] > tbody > tr > td, [data-density="compact"] .tn-content table[id] > tbody > tr > td { padding-top: 5px; padding-bottom: 5px; }
.tn-density-compact .tn-module-card, [data-density="compact"] .tn-module-card { padding: 18px; min-height: 165px; }
.tn-density-compact .tn-content:has(> #tn-dashboard), [data-density="compact"] .tn-content:has(> #tn-dashboard) { padding: 0; }

/* Acceso: conserva la autenticación y los mensajes del servidor. */
.tn-login > form, .tn-login > center > form { margin: 0; }
.tn-login-shell { display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(380px, 1fr); min-height: 100vh; }
.tn-login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 54px clamp(32px, 5.5vw, 88px); background: var(--tn-navy); color: white; overflow: hidden; }
.tn-login-story::after { content: ""; position: absolute; width: 440px; height: 440px; right: -250px; bottom: -230px; border: 1px solid #2b5266; border-radius: 50%; box-shadow: 0 0 0 65px rgb(30 72 91 / 40%), 0 0 0 130px rgb(30 72 91 / 25%); pointer-events: none; }
.tn-login-story .tn-brand { position: relative; z-index: 1; margin: 0 0 70px; }
.tn-login-story .tn-eyebrow { color: #89ddd6; }
.tn-login-story h1 { position: relative; z-index: 1; margin: 16px 0 22px; max-width: 530px; font-size: clamp(36px, 4vw, 58px); line-height: 1.08; font-weight: 650; letter-spacing: -1.8px; }
.tn-login-story h1 span { color: #8ae0d4; }
.tn-login-story p { position: relative; z-index: 1; max-width: 450px; color: #c0d1de; font-size: 15px; line-height: 1.8; }
.tn-login-benefits { position: relative; z-index: 1; display: flex; gap: 28px; list-style: none; padding: 0; margin: 34px 0 24px; }
.tn-login-benefits li { padding-top: 14px; border-top: 2px solid #3d7b87; color: #d4e4ed; font-size: 12px; }
.tn-login-story-footer { position: relative; z-index: 1; margin-top: 70px; color: #a8c1d2; font-size: 11px; letter-spacing: .4px; }
.tn-login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 52px 38px; }
.tn-login-card { width: 100%; max-width: 420px; padding: 34px; border: 1px solid var(--tn-line); border-radius: 20px; background: white; box-shadow: 0 12px 40px rgb(16 40 63 / 6%); text-align: left; }
.tn-login-card h2 { margin: 0 0 10px; color: var(--tn-navy); font-size: 28px; line-height: 1.2; letter-spacing: -.7px; }
.tn-login-card > p { margin: 0 0 26px; color: var(--tn-muted); font-size: 13px; line-height: 1.6; }
.tn-login-card label, .tn-field > label { display: block; margin-bottom: 7px; color: #39546a; font-size: 12px; font-weight: 650; }
.tn-login .tn-field { margin-bottom: 19px; }
.tn-login-card input[type="text"], .tn-login-card input[type="password"], .tn-login-card select { display: block; width: 100% !important; min-height: 46px; padding: 11px 12px; border: 1px solid #b9ccd9; border-radius: 8px; background: white; color: var(--tn-ink); font: 14px/1.4 var(--tn-font); }
.tn-login-card input:focus, .tn-login-card select:focus { border-color: var(--tn-teal); box-shadow: 0 0 0 3px rgb(19 127 129 / 11%); }
.tn-password-field { position: relative; }
.tn-password-field input { padding-right: 78px !important; }
#tn-password-toggle { position: absolute; top: 5px; right: 5px; min-height: 36px; padding: 6px 9px; border: 0; border-radius: 5px; color: #376676; background: transparent; font: 600 11px/1.4 var(--tn-font); cursor: pointer; }
#tn-password-toggle:hover { background: #edf5f6; }
.tn-primary-button, .tn-login-card input.tn-primary-button[type="submit"] { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 12px 18px; border: 1px solid var(--tn-teal-dark); border-radius: 8px; background: var(--tn-teal); color: white; font: 650 14px/1.4 var(--tn-font); text-decoration: none; cursor: pointer; }
.tn-primary-button:hover { background: var(--tn-teal-dark); color: white; }
.tn-login-card .tn-primary-button { width: 100% !important; }
.tn-secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 9px 16px; border: 1px solid #cfdae3; border-radius: 8px; background: white; color: #4a6579; font: 600 12px/1.4 var(--tn-font); text-decoration: none; cursor: pointer; }
.tn-secondary-button:hover { background: #eff5f8; }
.tn-login-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.tn-login-actions a { color: #17687b !important; font: 12px/1.4 var(--tn-font) !important; }
.tn-login-note { width: 100%; max-width: 400px; margin: 22px 0 0; color: #6a7e8f; font-size: 11px; line-height: 1.7; text-align: center; }
.tn-login-card [id$="ErrorLogIn"] { max-width: 100%; width: 100% !important; margin-top: 18px; color: #aa3035 !important; font: 600 12px/1.5 var(--tn-font) !important; }

/* Alineación con las plantillas reales. */
.tn-brand-symbol { display: flex; align-items: center; justify-content: center; gap: 1px; font-size: 35px; letter-spacing: -3px; line-height: 1; padding: 0 4px 4px 0; }
.tn-brand-symbol > span { color: white; align-self: flex-end; margin-bottom: 4px; font-size: 26px; }
.tn-search-field { display: block; }
.tn-search-field > span { position: absolute; top: 9px; left: 12px; color: #b7c9d9; font-size: 22px; line-height: 1; }
.tn-search-field #tn-module-search { padding-left: 35px; padding-right: 48px; }
.tn-search-field > kbd { position: absolute; right: 8px; top: 14px; color: #b9cbd9; border: 1px solid #536e82; padding: 1px 3px; border-radius: 4px; font: 9px/1.2 var(--tn-font); pointer-events: none; }
.tn-sidebar #tn-legacy-nav { margin: 0 0 18px; padding: 8px; }
.tn-sidebar #tn-legacy-menu { margin: 15px 4px 0; padding-top: 14px; border-top: 1px solid #314c62; color: #b7cbdc; font-size: 11px; }
.tn-sidebar #tn-legacy-menu summary { padding: 8px 4px; cursor: pointer; border-radius: 6px; }
.tn-sidebar #tn-legacy-menu summary:hover { color: white; background: #213e55; }
.tn-sidebar #tn-legacy-menu[open] summary { margin-bottom: 10px; }
.tn-sidebar #tn-legacy-menu #tn-legacy-nav { max-width: 100%; overflow: auto; padding: 8px; background: white; border: 1px solid #48677c; border-radius: 7px; }
.tn-sidebar #tn-legacy-menu #tn-legacy-nav a { color: #173e54 !important; font-family: var(--tn-font) !important; font-size: 12px !important; }
.tn-sidebar #tn-legacy-menu #tn-legacy-nav table { background: white !important; }
.tn-sidebar #tn-nav-empty { background: #18354c; border-color: #416178; }
.tn-sidebar-footer { display: flex; align-items: flex-start; gap: 9px; }
.tn-sidebar-footer small { display: block; font-size: 10px; color: #9ab4c7; margin-top: 3px; }
.tn-status-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #72ccc0; margin-top: 6px; }
.tn-user-avatar { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 50%; color: #267a7b; background: #e5f3f0; font-size: 16px; }
.tn-legacy-icon { display: inline-block; width: 31px !important; height: 31px !important; padding: 6px; border: 1px solid #d7e2ea !important; border-radius: 8px; background: white; object-fit: contain; cursor: pointer; }
.tn-legacy-icon:hover { background: #edf4f7; }
.tn-hero-copy > .tn-primary-button { margin-top: 22px; gap: 18px; min-height: 42px; border-color: #64c7bf; background: #70d6c9; color: #143d4c; font-size: 12px; }
.tn-hero-copy > .tn-primary-button:hover { background: #98e7dc; }
.tn-home-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.tn-home-panel { min-width: 0; padding: 20px 22px; border: 1px solid var(--tn-line); border-radius: 14px; background: white; }
.tn-home-panel .tn-section-heading { margin: 0 0 16px; }
.tn-home-panel .tn-eyebrow { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 5px; }
.tn-home-panel .tn-section-heading h2 { font-size: 17px; }
.tn-section-symbol { font-size: 24px; color: #7c95a6; }
.tn-home-panel .tn-empty { font-size: 12px; min-height: 82px; padding: 16px; }
.tn-home-panel .tn-module-card { min-height: 0; padding: 14px 45px 14px 50px; border-radius: 9px; box-shadow: none; }
.tn-home-panel .tn-card-icon { position: absolute; top: 15px; left: 12px; width: 28px; height: 28px; border-radius: 7px; font-size: 16px; }
.tn-home-panel .tn-card-group { margin-bottom: 2px; font-size: 9px; }
.tn-home-panel .tn-card-title { margin: 0; font-size: 13px; }
.tn-home-panel .tn-card-description { display: none; }
.tn-home-panel .tn-star { top: 13px; right: 8px; }
.tn-card-title a { color: var(--tn-navy); }
.tn-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.tn-module-card .tn-star { z-index: 2; }
.tn-module-card:hover { border-color: #7eb8b9; }
.tn-module-card:focus-within { border-color: var(--tn-teal); }
.tn-section-heading .tn-dashboard-stat { margin: 0; gap: 8px; font-size: 11px; white-space: nowrap; }
.tn-section-heading #tn-module-count { min-width: 34px; min-height: 34px; font-size: 18px; border-radius: 9px; }
.tn-company-mark { display: block; max-width: 85px; max-height: 60px; width: auto; height: auto; object-fit: contain; margin: 28px 0 0; opacity: .75; }
.tn-hero-art:has(.tn-art-core) { border: 0; border-radius: 0; background: none; transform: none; flex-basis: 210px; height: 195px; margin: 0; }
.tn-hero-art:has(.tn-art-core)::before, .tn-hero-art:has(.tn-art-core)::after { display: none; }
.tn-art-orbit { position: absolute; width: 160px; height: 160px; border: 1px solid #426a7d; border-radius: 50%; top: 15px; left: 25px; transform: rotate(-20deg); }
.tn-art-orbit::before { content: ""; position: absolute; inset: 14px -14px; border: 1px solid #2c7f8a; border-radius: 50%; transform: rotate(55deg); }
.tn-art-core { position: absolute; top: 48px; left: 67px; display: flex; align-items: center; justify-content: center; width: 82px; height: 82px; padding-right: 5px; border-radius: 24px; background: #79d9cb; box-shadow: 0 12px 28px rgb(0 0 0 / 20%); color: #143d4c; font-size: 64px; font-weight: 750; line-height: 1; letter-spacing: -6px; transform: rotate(-8deg); }
.tn-art-core span { align-self: flex-end; margin-bottom: 13px; color: white; font-size: 45px; }
.tn-art-label { position: absolute; border: 1px solid #456a7f; border-radius: 8px; padding: 7px 12px; background: #193b53; color: #d9edf3; font-size: 11px; box-shadow: 0 5px 12px rgb(0 0 0 / 10%); }
.tn-art-label-one { left: 0; top: 20px; }
.tn-art-label-two { right: 0; top: 95px; }
.tn-art-label-three { bottom: 6px; left: 35px; }
.tn-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.tn-dialog-heading .tn-eyebrow { margin: 0; }
.tn-dialog-heading .tn-icon-button { margin: -8px -10px -8px 0; font-size: 22px; }
.tn-help-note { padding-top: 15px; border-top: 1px solid var(--tn-line); font-size: 12px; }
.tn-login-story h1 em { color: #8ae0d4; font-style: normal; }
.tn-login-benefits { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tn-login-benefits > span { display: flex; align-items: baseline; gap: 6px; color: #b4cbd9; font-size: 12px; }
.tn-login-benefits > span strong { color: #e7f0f5; font-weight: 600; }
.tn-login-brandline { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; margin-top: 46px; padding-top: 24px; border-top: 1px solid #355168; color: #b1c9d9; font-size: 11px; }
.tn-login-brandline img { width: auto; max-width: 75px; max-height: 45px; padding: 5px; border-radius: 5px; background: white; object-fit: contain; }
.tn-login-description { display: block; margin: 0 0 26px; color: var(--tn-muted); font-size: 13px; line-height: 1.65; }
.tn-login-card .tn-login-actions { margin-top: 12px; gap: 10px; }
.tn-login-card .tn-login-actions .tn-secondary-button { width: 100% !important; }
.tn-login-change-password { display: block; margin: 18px 0 0; color: #17687b; text-align: center; font-size: 12px; }
.tn-login-card .tn-login-footnote { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--tn-line); color: #718594; font-size: 11px; line-height: 1.65; }
.tn-login-bottom { margin: 20px 0 0; color: #6e8394; font-size: 11px; letter-spacing: .5px; }
.tn-login-error [id$="ErrorLogIn"] { margin: 0 0 10px; }

/* Gestión de personal conserva sus componentes y estados; comparte la identidad. */
body.tn-personnel { --ink: #20364a; --muted: #617588; --green: #137f81; --green-soft: #e7f5f3; --gold: #ad7d27; --paper: #f4f7fa; --line: #dce5ec; --red: #aa3b43; --radius: 16px; background: var(--paper); color: var(--ink); font-family: var(--tn-font); }
.tn-personnel .topbar { min-height: 76px; border-bottom: 1px solid var(--tn-line); background: white; }
.tn-personnel .brand { color: var(--tn-navy); letter-spacing: 1.4px; }
.tn-personnel .brand-mark { width: 42px; height: 42px; border: 0; border-radius: 13px; background: #27b5b0; color: #0e3948; font: 750 27px/1 var(--tn-font); }
.tn-personnel .brand small { color: var(--tn-muted); letter-spacing: .2px; }
.tn-personnel .back-link { border-color: #cadbe6; border-radius: 9px; color: #245972; font-size: 12px; }
.tn-personnel .back-link:hover { background: #eff5f8; }
.tn-personnel .app { padding-top: 34px; }
.tn-personnel .hero h1 { color: var(--tn-navy); }
.tn-personnel .eyebrow { color: var(--tn-teal-dark); letter-spacing: 1.7px; }
.tn-personnel .hero-note { background: #e8f4f2; border: 1px solid #c9e3de; }
.tn-personnel .note-icon { color: #226e65; background: #cfece5; }
.tn-personnel .tabs { gap: 5px; padding: 6px; border: 1px solid var(--tn-line); border-radius: 12px; background: white; box-shadow: 0 3px 10px rgb(16 40 63 / 3%); }
.tn-personnel .tab { padding: 11px 16px; border: 0; border-radius: 8px; font-size: 13px; }
.tn-personnel .tab:hover { background: #edf6f6; color: var(--tn-teal-dark); }
.tn-personnel .tab.active { background: var(--tn-teal); color: white; }
.tn-personnel .step { background: #e6f3f1; border-color: #c4dfda; color: #216d68; }
.tn-personnel .period-card, .tn-personnel .calendar-card, .tn-personnel .day-card, .tn-personnel .card { box-shadow: var(--tn-shadow); }
.tn-personnel input, .tn-personnel select, .tn-personnel textarea { border-color: #bdcfdc; border-radius: 8px; }
.tn-personnel input:focus, .tn-personnel select:focus, .tn-personnel textarea:focus, .tn-personnel button:focus-visible, .tn-personnel a:focus-visible { outline: 3px solid #28a6a8; outline-offset: 3px; }
.tn-personnel .button.primary:hover { background: #0d6467; }
.tn-personnel .button.secondary { border-color: #c4d5e0; }
.tn-personnel .button.secondary:hover { background: #edf5f7; }
.tn-personnel .welcome { border-color: #b9cedd; }
.tn-personnel .calendar-grid thead th { background: #eef4f7; color: #486276; }
.tn-personnel .calendar-grid .person-heading { background: #e6eff4; }
.tn-personnel .calendar-grid th, .tn-personnel .calendar-grid td { border-color: #e0e9ef; }
.tn-personnel .day-cell.selected { box-shadow: inset 0 0 0 2px #137f81; background: #e8f5f2; }
.tn-personnel .calendar-scroll { scrollbar-color: #afc6d5 #f0f5f8; }
.tn-personnel .calendar-foot { background: #f7fafc; }
.tn-personnel .source-badge { background: #edf5f7; color: #456c7a; }

/* Páginas independientes: misma identidad sin modificar sus tablas o eventos. */
body.tn-standalone { margin: 0 !important; padding: 0; background: var(--tn-bg) !important; color: var(--tn-ink); text-align: left !important; font: 14px/1.6 var(--tn-font); }
.tn-standalone *, .tn-standalone *::before, .tn-standalone *::after { box-sizing: border-box; }
.tn-standalone-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px max(24px, calc((100vw - 1392px) / 2)); border-bottom: 1px solid var(--tn-line); background: var(--tn-navy); color: white; }
.tn-standalone-header .tn-brand { min-height: 0; margin: 0; color: white; font-size: 22px; font-weight: 750; letter-spacing: 1.7px; }
.tn-standalone-header .tn-back-link { padding: 8px 14px; border: 1px solid #648093; border-radius: 9px; background: #1d3a50; color: #e1eef6; font-size: 12px; text-decoration: none; }
.tn-standalone-header .tn-back-link:hover { border-color: #8cd6d0; background: #285369; color: white; }
.tn-standalone > form { max-width: 1440px; width: calc(100% - 48px); margin: 28px auto 36px; padding: 24px; border: 1px solid var(--tn-line); border-radius: 16px; background: white; box-shadow: var(--tn-shadow); overflow-x: auto; }
.tn-standalone > form > main { width: 100%; max-width: 1440px; margin: 24px auto 0; padding: 0; }
.tn-standalone h1, .tn-standalone h2 { color: var(--tn-navy); font-family: var(--tn-font); letter-spacing: -.4px; }
.tn-standalone label { color: #3e586c; font-family: var(--tn-font); font-size: 13px; }
.tn-standalone input[type="text"], .tn-standalone input[type="password"], .tn-standalone input[type="number"], .tn-standalone input[type="date"], .tn-standalone select, .tn-standalone textarea { min-height: 38px; max-width: 100%; padding: 8px 11px; border: 1px solid #bacbd8 !important; border-radius: 8px; background: white; color: var(--tn-ink); font: 13px/1.5 var(--tn-font) !important; vertical-align: middle; }
.tn-standalone input[type="checkbox"], .tn-standalone input[type="radio"] { accent-color: var(--tn-teal); width: 16px; height: 16px; vertical-align: middle; }
.tn-standalone input[type="file"] { max-width: 100%; margin: 5px 0; padding: 8px; border: 1px dashed #aec7d6; border-radius: 8px; background: #f5f9fb; color: #3c5e73; font: 12px/1.5 var(--tn-font); }
.tn-standalone input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 1px solid #bfd1dd; border-radius: 5px; color: #255c6a; background: white; font: 600 11px/1.4 var(--tn-font); cursor: pointer; }
.tn-standalone input[type="submit"], .tn-standalone input[type="button"], .tn-standalone button { min-height: 38px; padding: 9px 16px; border: 1px solid var(--tn-teal-dark) !important; border-radius: 8px; background: var(--tn-teal); color: white; font: 600 13px/1.5 var(--tn-font) !important; cursor: pointer; }
.tn-standalone input[type="submit"]:hover, .tn-standalone input[type="button"]:hover, .tn-standalone button:hover { background: var(--tn-teal-dark); }
.tn-standalone input:disabled, .tn-standalone select:disabled, .tn-standalone button:disabled { opacity: .6; cursor: not-allowed; }
.tn-standalone input[readonly], .tn-standalone textarea[readonly] { background: #f1f5f8; }
.tn-standalone :focus-visible { outline: 3px solid #20a9ad !important; outline-offset: 3px; }
.tn-standalone form a { color: #126c7a; text-underline-offset: 3px; }
.tn-standalone .cabecera { border-radius: 10px; background: #17384f; padding: 16px 20px; color: #e2edf5; font: 13px/1.5 var(--tn-font); }
.tn-standalone .cabecera a { color: #b7ebe4; }
.tn-standalone .panel { padding: 23px; border: 1px solid var(--tn-line); border-radius: 12px; background: white; }
.tn-standalone .ayuda { color: var(--tn-muted); font-size: 13px; line-height: 1.7; }
.tn-standalone .tabla th { border-bottom-color: #c6d7e1; background: #eaf2f7; color: #2e5268; font-weight: 650; }
.tn-standalone .tabla td { border-bottom-color: #e2eaf0; }
.tn-standalone .dato { color: var(--tn-teal-dark); }
.tn-standalone #Panel1 { width: 100% !important; max-width: 540px; margin: 8px auto; padding: 22px; border: 1px solid var(--tn-line) !important; border-radius: 12px; background: #f8fbfc !important; }
.tn-standalone #Panel1 table { width: 100%; }
.tn-standalone #Panel1 td { padding: 6px 5px; }
.tn-standalone #Panel1 input[type="text"], .tn-standalone #Panel1 input[type="password"] { width: 100% !important; }
.tn-standalone #Panel1 span:not([id$="cvvalida"]) { font-family: var(--tn-font) !important; font-size: 12px !important; }

@media (min-width: 901px) and (max-width: 1190px) {
  :root { --tn-sidebar-width: 238px; }
  .tn-sidebar { padding-right: 13px; padding-left: 13px; }
  .tn-topbar { padding-right: 24px; padding-left: 24px; }
  .tn-page-heading { padding-right: 24px; padding-left: 24px; }
  .tn-content { margin-right: 24px; margin-left: 24px; padding: 20px; }
  .tn-hero { padding: 28px; }
  .tn-hero-art { flex-basis: 120px; height: 130px; margin-right: 0; }
  .tn-hero-art::after { left: 30px; width: 75px; height: 75px; font-size: 50px; }
  .tn-user-chip { max-width: 180px; }
  .tn-user-chip [id$="lblNombreUsuario"] { max-width: 110px; }
  .tn-hero-art:has(.tn-art-core) { flex-basis: 180px; transform: scale(.9); transform-origin: right center; }
}
@media (max-width: 900px) {
  .tn-sidebar { width: min(300px, calc(100vw - 48px)); transform: translateX(-104%); visibility: hidden; transition: transform .2s ease, visibility .2s ease; box-shadow: 12px 0 36px rgb(5 20 34 / 20%); }
  .tn-sidebar-open .tn-sidebar { transform: translateX(0); visibility: visible; }
  .tn-workspace { margin-left: 0; }
  .tn-topbar { min-height: 68px; gap: 10px; padding: 10px 20px; }
  #tn-menu-toggle, #tn-sidebar-close { display: inline-flex; }
  #tn-sidebar-close { position: absolute; right: 12px; top: 10px; color: #cfdfeb; min-width: 32px; min-height: 32px; }
  .tn-sidebar .tn-brand { margin-top: 16px; }
  .tn-breadcrumb { flex: 1; }
  .tn-top-actions { flex-wrap: nowrap; gap: 3px; }
  .tn-page-heading { padding: 24px 22px 20px; }
  .tn-content { margin: 0 22px 22px; padding: 20px; }
  .tn-workspace > .tn-footer { padding: 0 22px 24px; }
  #tn-legacy-nav { margin-right: 22px; margin-left: 22px; }
  .tn-user-chip { max-width: 180px; padding-left: 10px; margin-left: 4px; }
  .tn-hero { min-height: 220px; padding: 28px; }
  .tn-hero h2 { font-size: 34px; }
  .tn-hero-art { flex-basis: 130px; height: 140px; }
  .tn-dashboard-columns { gap: 16px; }
  .tn-login-shell { grid-template-columns: minmax(280px, .85fr) minmax(340px, 1fr); }
  .tn-login-story { padding: 40px 28px; }
  .tn-login-story h1 { font-size: 39px; }
  .tn-login-benefits { flex-direction: column; gap: 14px; }
  .tn-login-panel { padding: 36px 24px; }
  .tn-login-card { padding: 28px; }
  .tn-home-panels { gap: 16px; }
}
@media (max-width: 620px) {
  .tn-topbar { min-height: 62px; padding: 9px 12px; }
  .tn-breadcrumb { font-size: 11px; max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .tn-top-actions .tn-icon-button { min-width: 35px; min-height: 36px; padding: 7px; }
  .tn-top-actions .tn-button-label, .tn-top-actions .tn-user-details { display: none; }
  .tn-user-chip { padding-left: 7px; max-width: 42px; }
  .tn-user-chip > div:not(.tn-avatar), .tn-user-chip > span:not(.tn-avatar) { display: none; }
  .tn-avatar, .tn-user-chip > .tn-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .tn-user-chip > .tn-user-avatar { display: grid !important; width: 30px; height: 30px; flex-basis: 30px; }
  .tn-legacy-icon { width: 28px !important; height: 28px !important; padding: 5px; }
  .tn-page-heading { padding: 24px 16px 18px; gap: 12px; }
  #tn-page-title { font-size: 25px; letter-spacing: -.55px; }
  .tn-page-heading .tn-eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  #tn-favorite-toggle { min-width: 38px; padding: 8px; font-size: 11px; }
  .tn-content { margin: 0 16px 20px; padding: 15px; border-radius: 12px; }
  .tn-content input[type="text"], .tn-content input[type="password"], .tn-content input[type="number"], .tn-content select, .tn-content textarea { font-size: 16px !important; }
  .tn-workspace > .tn-footer { align-items: flex-start; flex-direction: column; gap: 4px; padding: 0 16px 24px; font-size: 10px; }
  #tn-legacy-nav { margin-left: 16px; margin-right: 16px; }
  .tn-hero { min-height: auto; padding: 27px 24px 30px; border-radius: 15px; }
  .tn-hero h2 { font-size: 32px; letter-spacing: -.9px; }
  .tn-hero p { font-size: 13px; }
  .tn-hero-art { display: none; }
  .tn-dashboard-stat { margin: 16px 0 24px; font-size: 12px; }
  .tn-module-grid { grid-template-columns: 1fr; gap: 12px; }
  .tn-module-card { min-height: 150px; padding: 21px; }
  .tn-card-icon { margin-bottom: 13px; width: 36px; height: 36px; }
  .tn-section-heading { margin-top: 25px; gap: 8px; }
  .tn-section-heading h2 { font-size: 17px; }
  .tn-dashboard-columns { grid-template-columns: 1fr; gap: 16px; }
  .tn-home-panels { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .tn-home-panel { padding: 18px; }
  .tn-dialog, #tn-help-dialog { padding: 23px; }
  .tn-login-shell { display: block; }
  .tn-login-story { min-height: 0; padding: 27px 26px 32px; }
  .tn-login-story .tn-brand { margin-bottom: 28px; }
  .tn-login-story h1 { max-width: 420px; font-size: 35px; letter-spacing: -1px; margin-bottom: 12px; }
  .tn-login-story p { margin: 0; max-width: 420px; font-size: 13px; }
  .tn-login-benefits, .tn-login-story-footer, .tn-login-brandline { display: none; }
  .tn-login-panel { padding: 24px 18px 32px; }
  .tn-login-card { max-width: 440px; padding: 26px; border-radius: 15px; }
  .tn-login-card input[type="text"], .tn-login-card input[type="password"], .tn-login-card select { font-size: 16px; }
  .tn-login-card h2 { font-size: 25px; }
  .tn-personnel .topbar { padding: 14px 18px; gap: 12px; }
  .tn-personnel .session { gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 11px; }
  .tn-personnel .brand { font-size: 17px; gap: 8px; }
  .tn-personnel .brand small { font-size: 10px; }
  .tn-personnel .tab { padding: 10px 13px; }
  .tn-standalone-header { padding: 17px 18px; gap: 15px; }
  .tn-standalone-header .tn-brand { font-size: 19px; }
  .tn-standalone-header .tn-back-link { padding: 7px 10px; font-size: 11px; }
  .tn-standalone > form { width: calc(100% - 28px); margin: 18px auto 28px; padding: 16px; border-radius: 12px; }
  .tn-standalone .panel { padding: 16px; }
  .tn-standalone .cabecera { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .tn-standalone input[type="text"], .tn-standalone input[type="password"], .tn-standalone input[type="number"], .tn-standalone select { font-size: 16px !important; }
  .tn-standalone #Panel1 { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-app *, .tn-login * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .tn-app, .tn-login { background: white !important; color: black !important; }
  .tn-sidebar, .tn-topbar, #tn-nav-shade, #tn-favorite-toggle, #tn-legacy-nav, #tn-help-dialog, .tn-skip-link, .tn-star, .tn-login-story { display: none !important; }
  .tn-workspace { margin: 0 !important; }
  .tn-page-heading { padding: 0 0 16px; }
  .tn-content { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .tn-workspace > .tn-footer { padding: 16px 0 0; }
  .tn-hero { background: white !important; color: black !important; border: 1px solid #bbb; min-height: 0; }
  .tn-hero h2, .tn-hero p, .tn-hero .tn-eyebrow { color: black !important; }
  .tn-hero-art { display: none; }
  .tn-module-card { box-shadow: none; break-inside: avoid; min-height: 0; }
  .tn-module-grid { grid-template-columns: 1fr 1fr; }
  .tn-content table[id] th { background: #eee !important; color: black !important; }
  .tn-login-shell { display: block; min-height: 0; }
  body.tn-standalone { background: white !important; color: black !important; }
  .tn-standalone-header { display: none !important; }
  .tn-standalone > form { width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .tn-standalone > form > main { margin: 0; }
}
