:root {
    --navy: #09384b;
    --navy-2: #0b4a60;
    --cyan: #67acd1;
    --cyan-soft: #eaf5fb;
    --teal: #1d7b8c;
    --ink: #17252c;
    --muted: #6f7d86;
    --line: #dfe7eb;
    --surface: #ffffff;
    --canvas: #f4f7f8;
    --success: #228765;
    --success-soft: #e7f5ef;
    --warning: #c78b2c;
    --warning-soft: #fff4df;
    --danger: #bd5261;
    --danger-soft: #fae9ec;
    --shadow: 0 10px 30px rgba(9, 56, 75, .07);
    --sidebar: 248px;
    --topbar: 72px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100%; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: radial-gradient(circle at 93% 8%, rgba(103,172,209,.10), transparent 26%), var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--navy-2); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; margin-bottom: .45rem; color: var(--navy); }
h2 { color: var(--navy); letter-spacing: -.025em; }
.eyebrow { margin-bottom: .42rem; color: var(--teal); font-size: .69rem; line-height: 1.2; font-weight: 800; letter-spacing: .13em; }
.subtitle { margin: 0; max-width: 780px; color: var(--muted); line-height: 1.55; }
.surface { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }

.app-shell { min-height: 100vh; }
.topbar { position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: var(--topbar); display: grid; grid-template-columns: var(--sidebar) minmax(300px, 1fr) auto; align-items: center; gap: 22px; padding: 0 26px 0 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); box-shadow: 0 3px 18px rgba(9,56,75,.05); backdrop-filter: blur(16px); }
.brand-lockup { height: var(--topbar); display: flex; align-items: center; gap: 8px; padding: 8px 18px; overflow: hidden; background: #fff; text-decoration: none; border-right: 1px solid var(--line); }
.brand-gam { width: 108px; height: 52px; object-fit: cover; object-position: 50% 50%; border-radius: 5px; }
.brand-aicm { width: 92px; height: 43px; object-fit: contain; }
.brand-divider { width: 1px; height: 35px; flex: 0 0 auto; background: var(--line); }
.topbar-product { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.topbar-product strong { color: var(--navy); font-size: 1.16rem; letter-spacing: -.03em; }
.topbar-product em { font-style: normal; color: var(--cyan); }
.topbar-product small { color: var(--muted); font-size: .74rem; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.icon-button svg { width: 19px; }
.notification-button { position: relative; }
.notification-button span { position: absolute; top: -4px; right: -3px; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: var(--danger); border: 2px solid #fff; border-radius: 50%; font-size: .6rem; font-weight: 800; }
.profile-chip { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.profile-chip > span { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--navy-2), var(--teal)); border-radius: 11px; font-size: .74rem; font-weight: 800; }
.profile-chip div { display: grid; gap: 2px; }
.profile-chip strong { font-size: .76rem; }
.profile-chip small { color: var(--muted); font-size: .67rem; }
.menu-toggle { display: none; }
.menu-state { position: fixed; opacity: 0; pointer-events: none; }

.sidebar { position: fixed; z-index: 70; top: var(--topbar); left: 0; bottom: 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 24px 14px 18px; color: #dce9ed; background: linear-gradient(180deg, #08384b 0%, #062e3f 100%); }
/* MANAGER watermark: approved ship-helm logo over the existing petroleum-blue menu. */
.sidebar { isolation: isolate; }
.sidebar::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 0% 8%, #67acd11a, transparent 58%), linear-gradient(145deg, transparent 25%, #a5defc06 25.2%, transparent 55%), radial-gradient(ellipse at -140% 45%, transparent 66%, #67acd112 66.2%, transparent 66.5%); }
.sidebar::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../brand/gam-nexus-5-manager-timon.png") center 76% / 82% auto no-repeat; opacity: .16; filter: grayscale(1); mix-blend-mode: screen; }
.sidebar-heading { display: flex; align-items: center; gap: 10px; padding: 0 9px 22px; border-bottom: 1px solid rgba(255,255,255,.10); }
.sidebar-product-logo { width: 46px; height: 46px; flex: 0 0 auto; object-fit: cover; border-radius: 13px; box-shadow: 0 7px 18px rgba(0,0,0,.20); }
.sidebar-heading div { display: grid; gap: 3px; }
.sidebar-heading strong { color: #fff; font-size: .92rem; }
.sidebar-heading small { color: #9fb8c1; font-size: .64rem; }
.side-nav { display: grid; gap: 6px; margin-top: 21px; }
.side-nav a { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #b9ccd3; border-radius: 11px; text-decoration: none; font-size: .8rem; font-weight: 600; transition: .18s ease; }
.side-nav a svg { width: 19px; height: 19px; flex: 0 0 auto; }
.side-nav a span { flex: 1; }
.side-nav a b { min-width: 24px; padding: 3px 7px; color: #cdeaf8; background: rgba(103,172,209,.16); border-radius: 20px; text-align: center; font-size: .62rem; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.side-nav a.active { color: #fff; background: linear-gradient(95deg, rgba(103,172,209,.30), rgba(103,172,209,.10)); box-shadow: inset 3px 0 var(--cyan); }
.side-nav .logout-nav { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 0 12px; color: #d8c8cc; background: transparent; border: 0; border-radius: 11px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; text-align: left; transition: .18s ease; }
.side-nav .logout-nav svg { width: 19px; height: 19px; flex: 0 0 auto; }
.side-nav .logout-nav span { flex: 1; }
.side-nav .logout-nav:hover { color: #fff; background: rgba(189,82,97,.18); }
.sidebar-status { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 13px 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.sidebar-status > span { width: 9px; height: 9px; background: #59d19d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(89,209,157,.12); }
.sidebar-status div { display: grid; gap: 3px; }
.sidebar-status strong { color: #fff; font-size: .7rem; }
.sidebar-status small { color: #9fb8c1; font-size: .6rem; }
.status-pulse { animation: pulse 1.7s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(89,209,157,0); } }

.content { min-height: 100vh; margin-left: var(--sidebar); padding: calc(var(--topbar) + 34px) clamp(20px, 3.4vw, 52px) 50px; }
.bottom-nav { display: none; }
.menu-scrim { display: none; }
.page-title-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.page-title-row.compact { align-items: flex-end; }
.today-card { min-width: 250px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 14px; }
.today-card svg { width: 24px; color: var(--teal); }
.today-card div { display: grid; gap: 3px; }
.today-card small { color: var(--muted); font-size: .68rem; }
.today-card strong { font-size: .74rem; text-transform: capitalize; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--teal); font-size: .74rem; font-weight: 700; text-decoration: none; }
.period-switch { width: max-content; display: flex; gap: 4px; margin: 0 0 24px; padding: 4px; background: #e8eef1; border-radius: 12px; }
.period-switch button { padding: 8px 17px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: .73rem; font-weight: 700; cursor: pointer; }
.period-switch button.active { color: var(--navy); background: #fff; box-shadow: 0 3px 10px rgba(9,56,75,.10); }
.period-switch.small { margin: 0; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: .74rem; font-weight: 700; cursor: pointer; }
.button svg { width: 18px; }
.button.primary { color: #fff; background: linear-gradient(110deg, var(--navy-2), var(--teal)); border-color: var(--navy-2); box-shadow: 0 6px 16px rgba(11,74,96,.18); }
.button.ghost { color: var(--navy); background: #fff; }
.button.large { min-height: 44px; padding: 0 19px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.kpi-card { min-height: 124px; display: flex; align-items: center; gap: 13px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.kpi-card > div:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.kpi-card span { color: var(--muted); font-size: .71rem; }
.kpi-card strong { color: var(--navy); font-size: 1.78rem; letter-spacing: -.05em; }
.kpi-card strong em { color: #a2adb3; font-size: .8rem; font-style: normal; letter-spacing: 0; }
.kpi-card small { color: var(--muted); font-size: .61rem; white-space: nowrap; }
.kpi-card small b { color: var(--success); }
.kpi-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; color: var(--teal); background: var(--cyan-soft); border-radius: 12px; }
.kpi-icon svg { width: 22px; }
.kpi-icon.success { color: var(--success); background: var(--success-soft); }
.kpi-icon.warning { color: var(--warning); background: var(--warning-soft); }
.kpi-icon.team { color: #64758b; background: #edf1f5; }
.kpi-progress { position: relative; background: linear-gradient(145deg, #fff, #f1fafd); }
.mini-ring { --value: 0; width: 51px; height: 51px; margin-left: auto; display: grid; place-items: center; flex: 0 0 auto; background: conic-gradient(var(--teal) calc(var(--value) * 1%), #dfecef 0); border-radius: 50%; }
.mini-ring::before { content: ""; grid-area: 1/1; width: 39px; height: 39px; background: #fff; border-radius: 50%; }
.mini-ring span { z-index: 1; grid-area: 1/1; color: var(--navy); font-size: .7rem; font-weight: 800; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(350px, .83fr); gap: 17px; margin-bottom: 17px; }
.chart-card, .team-card, .activity-panel, .comparison-card, .report-team { padding: 21px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-heading h2 { margin: 0; font-size: 1.02rem; }
.section-heading a { font-size: .69rem; font-weight: 700; text-decoration: none; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .6rem; }
.live-pill i { width: 7px; height: 7px; background: var(--success); border-radius: 50%; }
.trend-chart { height: 210px; display: flex; align-items: stretch; gap: clamp(11px, 2.3vw, 27px); padding: 26px 9px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 50px, #eaf0f2 51px); }
.trend-column { flex: 1; min-width: 29px; display: grid; grid-template-rows: 18px 1fr 26px; gap: 5px; text-align: center; }
.trend-value { color: var(--navy); font-size: .62rem; font-weight: 800; }
.trend-track { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.trend-track i { width: min(34px, 76%); min-height: 4px; display: block; background: linear-gradient(180deg, var(--cyan), var(--navy-2)); border-radius: 6px 6px 2px 2px; box-shadow: 0 5px 12px rgba(29,123,140,.16); transition: height .35s ease; }
.trend-column small { color: var(--muted); font-size: .59rem; }
.chart-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: .6rem; }
.chart-foot span { width: 14px; height: 4px; background: var(--teal); border-radius: 4px; }
.team-ranking { display: grid; margin-top: 12px; }
.ranking-row { display: grid; grid-template-columns: 36px 1fr 32px 35px; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #edf1f3; }
.ranking-row:last-child { border-bottom: 0; }
.avatar-initial { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--avatar, var(--teal)); border-radius: 50%; font-size: .61rem; font-style: normal; font-weight: 800; box-shadow: 0 0 0 3px color-mix(in srgb, var(--avatar, var(--teal)) 14%, transparent); }
.ranking-main { min-width: 0; display: grid; gap: 7px; }
.ranking-main > div:first-child { display: grid; gap: 2px; }
.ranking-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.ranking-main small { color: var(--muted); font-size: .57rem; }
.performance-bar, .score-cell i, .report-team article div > i, .report-kpis article > i { height: 5px; display: block; overflow: hidden; background: #e8eef0; border-radius: 6px; }
.performance-bar i, .score-cell i b, .report-team article div > i b, .report-kpis article > i b { height: 100%; display: block; background: linear-gradient(90deg, var(--cyan), var(--teal)); border-radius: inherit; }
.score { color: var(--navy); font-size: .8rem; }
.trend-up { color: var(--success); font-size: .61rem; font-weight: 800; }
.trend-down { color: var(--danger); font-size: .61rem; font-weight: 800; }

.activity-panel .section-heading { margin-bottom: 14px; }
.heading-actions { display: flex; gap: 8px; }
.ticket-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.ticket-row { min-height: 67px; display: grid; grid-template-columns: minmax(260px, 2fr) minmax(140px, 1fr) 75px 100px minmax(105px,.8fr) 18px; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); border-bottom: 1px solid #eaf0f2; text-decoration: none; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:not(.ticket-header):hover { background: #f8fbfc; }
.ticket-row.ticket-header { min-height: 38px; color: var(--muted); background: #f6f9fa; font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ticket-row > span:first-child { min-width: 0; display: grid; gap: 2px; }
.ticket-row > span:first-child small { color: var(--teal); font-size: .55rem; font-weight: 800; }
.ticket-row > span:first-child strong { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: .68rem; white-space: nowrap; }
.ticket-row > span:first-child em { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .55rem; font-style: normal; white-space: nowrap; }
.assignee-cell { display: flex; align-items: center; gap: 7px; font-size: .6rem; }
.assignee-cell i { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--avatar); border-radius: 50%; font-size: .5rem; font-style: normal; font-weight: 800; }
.priority, .status { width: max-content; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-size: .55rem; font-weight: 800; }
.priority.crítica { color: #a53f4e; background: #f9e5e8; }
.priority.alta { color: #b7781f; background: #fff1d8; }
.priority.media { color: #266a82; background: #e5f2f7; }
.priority.baja { color: #66777e; background: #edf1f2; }
.status::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status.done { color: var(--success); background: var(--success-soft); }
.status.blocked { color: var(--danger); background: var(--danger-soft); }
.status.working { color: #287796; background: #e6f3f9; }
.status.pending { color: #987127; background: var(--warning-soft); }
.table-progress { display: flex; align-items: center; gap: 7px; }
.table-progress i, .mobile-progress i, .ticket-card-progress > i, .preview-progress i { height: 6px; flex: 1; display: block; overflow: hidden; background: #e7edef; border-radius: 5px; }
.table-progress i b, .mobile-progress i b, .ticket-card-progress > i b, .preview-progress i b { height: 100%; display: block; background: linear-gradient(90deg, var(--cyan), var(--teal)); border-radius: inherit; }
.table-progress strong { color: var(--navy); font-size: .6rem; }
.row-arrow { color: var(--cyan); font-size: 1.25rem; }
.mobile-ticket-list { display: none; }

.filter-panel { display: grid; grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(135px, .65fr)); gap: 12px; padding: 15px; }
.filter-panel label { margin: 0; }
.filter-panel label > span { display: block; margin: 0 0 5px 2px; color: var(--muted); font-size: .58rem; font-weight: 700; }
.search-field { position: relative; align-self: end; }
.search-field svg { position: absolute; left: 12px; top: 50%; width: 17px; transform: translateY(-50%); color: #8a989e; }
.search-field input { padding-left: 39px; }
input, textarea, select { width: 100%; min-height: 42px; padding: 10px 12px; color: var(--ink); background: #fbfcfd; border: 1px solid #d6e0e4; border-radius: 9px; outline: none; font-size: .72rem; transition: .18s; }
textarea { min-height: 105px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { background: #fff; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,172,209,.13); }
.list-summary { margin: 16px 3px 11px; color: var(--muted); font-size: .66rem; }
.list-summary strong { color: var(--navy); }
.list-summary b { color: var(--teal); }
.list-summary span { margin: 0 6px; }
.ticket-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ticket-card { position: relative; padding: 18px; overflow: hidden; transition: .18s ease; }
.ticket-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(9,56,75,.10); }
.ticket-card.is-blocked { border-left: 4px solid var(--danger); }
.ticket-card-link { position: absolute; inset: 0; z-index: 0; }
.ticket-card > *:not(.ticket-card-link) { position: relative; z-index: 1; pointer-events: none; }
.ticket-card a:not(.ticket-card-link) { pointer-events: auto; }
.ticket-card-top, .ticket-card-top > div, .ticket-card-footer, .ticket-card-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-card-top > div { justify-content: flex-start; }
.folio { color: var(--teal); font-size: .61rem; font-weight: 800; letter-spacing: .04em; }
.ticket-card h2 { margin: 14px 0 7px; font-size: .95rem; line-height: 1.35; }
.ticket-card > p { height: 36px; overflow: hidden; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 9px 14px; margin: 13px 0; }
.ticket-meta span { display: inline-flex; align-items: center; gap: 5px; color: #67777e; font-size: .58rem; }
.ticket-meta svg { width: 14px; color: var(--teal); }
.ticket-card-progress > div { margin-bottom: 6px; color: var(--muted); font-size: .59rem; }
.ticket-card-progress > div strong { color: var(--navy); }
.ticket-card-footer { margin-top: 13px; padding-top: 11px; border-top: 1px solid #edf1f3; }
.ticket-card-footer span { color: var(--muted); font-size: .56rem; }
.ticket-card-footer a { font-size: .62rem; font-weight: 700; text-decoration: none; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 300px; align-items: start; gap: 15px; }
.form-section { padding: 22px; }
.form-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
.form-section-title > span { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--navy-2); border-radius: 10px; font-size: .72rem; font-weight: 800; }
.form-section-title h2 { margin: 0 0 3px; font-size: .94rem; }
.form-section-title p { margin: 0; color: var(--muted); font-size: .62rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label { margin: 0; }
.form-grid label > span, .update-grid label > span { display: flex; justify-content: space-between; margin: 0 0 6px 2px; color: #46565d; font-size: .64rem; font-weight: 700; }
.form-grid label > span b { color: var(--danger); }
.form-grid .span-2, .update-grid .span-2 { grid-column: 1 / -1; }
.check-field { min-height: 57px; display: flex; align-items: center; gap: 10px; padding: 11px; background: #f7fafb; border: 1px solid var(--line); border-radius: 10px; }
.check-field input { width: 18px; min-height: 18px; }
.check-field > span { display: grid !important; gap: 2px; margin: 0 !important; }
.check-field small { color: var(--muted); font-size: .57rem; font-weight: 400; }
.range-field input { text-align: center; }
.form-aside { position: sticky; top: calc(var(--topbar) + 20px); padding: 19px; }
.form-aside > img { width: 100%; height: 85px; object-fit: cover; border-radius: 10px; }
.form-aside > h2 { margin: 16px 0 11px; font-size: .78rem; }
.form-aside h3 { margin: 10px 0 6px; color: var(--navy); font-size: .91rem; line-height: 1.35; }
.form-aside > p { color: var(--muted); font-size: .62rem; line-height: 1.5; }
.form-aside dl, .owner-card dl { display: grid; grid-template-columns: 85px 1fr; gap: 8px; margin: 15px 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .59rem; }
.form-aside dt, .owner-card dt { color: var(--muted); }
.form-aside dd, .owner-card dd { margin: 0; color: var(--ink); font-weight: 600; }
.preview-progress { display: grid; grid-template-columns: 1fr auto; gap: 6px; color: var(--muted); font-size: .6rem; }
.preview-progress strong { color: var(--navy); }
.preview-progress i { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 17px; }
.validation-summary { margin: 0 0 14px; padding: 12px 16px; color: #8f3542; background: var(--danger-soft); border: 1px solid #f0cbd1; border-radius: 10px; font-size: .68rem; }
.success-panel { display: grid; gap: 3px; margin: 15px 0; padding: 14px 16px; color: #155e4b; background: #effaf6; border: 1px solid #a8dfca; border-radius: 11px; font-size: .68rem; }
.success-panel strong { font-size: .61rem; letter-spacing: .07em; }
.success-panel small { color: #4f756a; }
.managed-user-layout .governance-aside { border-top: 4px solid var(--teal); }
.governance-lock { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: 1rem; font-weight: 900; }

.detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); align-items: start; gap: 16px; }
.detail-main { padding: 23px; }
.progress-hero { display: flex; align-items: center; gap: 21px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.progress-hero h2 { margin: 0 0 5px; font-size: 1.25rem; }
.progress-hero p:last-child { margin: 0; color: var(--muted); font-size: .64rem; }
.progress-ring { --value: 0; display: grid; place-items: center; flex: 0 0 auto; background: conic-gradient(var(--teal) calc(var(--value) * 1%), #dfe9ec 0); border-radius: 50%; }
.progress-ring::before { content: ""; grid-area: 1/1; background: #fff; border-radius: 50%; }
.progress-ring > span { z-index: 1; grid-area: 1/1; display: grid; text-align: center; }
.large-ring { width: 112px; height: 112px; }
.large-ring::before { width: 90px; height: 90px; }
.large-ring strong { color: var(--navy); font-size: 1.55rem; letter-spacing: -.05em; }
.large-ring small { color: var(--muted); font-size: .57rem; }
.blocker-alert { display: flex; gap: 11px; margin: 18px 0 0; padding: 13px; color: #843846; background: var(--danger-soft); border: 1px solid #f0cbd1; border-radius: 11px; }
.blocker-alert svg { width: 22px; flex: 0 0 auto; }
.blocker-alert strong { font-size: .7rem; }
.blocker-alert p { margin: 3px 0 0; font-size: .62rem; line-height: 1.5; }
.detail-description { padding: 20px 0; }
.detail-description h2 { margin-bottom: 8px; font-size: .88rem; }
.detail-description p { margin: 0; color: #4f5e65; font-size: .73rem; line-height: 1.65; }
.update-box { padding: 18px; background: #f5f9fa; border: 1px solid var(--line); border-radius: 13px; }
.value-badge { padding: 6px 10px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: .7rem; font-weight: 800; }
.progress-slider { display: block; margin: 16px 0; }
.progress-slider input { min-height: 20px; padding: 0; accent-color: var(--teal); }
.progress-slider div { display: flex; justify-content: space-between; color: var(--muted); font-size: .52rem; }
.update-grid { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.update-grid label { margin: 0; }
.success-message { margin: 12px 0 0; color: var(--success); font-size: .64rem; font-weight: 700; }
.update-box > button { margin-top: 13px; }
.detail-side { display: grid; gap: 16px; }
.owner-card, .timeline-card { padding: 20px; }
.owner-card > div { display: flex; align-items: center; gap: 12px; }
.owner-card h2 { margin: 0 0 3px; font-size: .86rem; }
.owner-card p { margin: 0; color: var(--muted); font-size: .6rem; }
.large-avatar { width: 48px; height: 48px; }
.owner-card dl { grid-template-columns: 78px 1fr; margin-bottom: 0; }
.overdue { color: var(--danger) !important; }
.timeline { display: grid; margin-top: 13px; }
.timeline article { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 9px; padding-bottom: 18px; }
.timeline article::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: -2px; width: 1px; background: var(--line); }
.timeline article:last-child::before { display: none; }
.timeline article > i { z-index: 1; width: 11px; height: 11px; margin-top: 3px; background: var(--cyan); border: 3px solid #e9f5fa; border-radius: 50%; }
.timeline article > div > div { display: flex; justify-content: space-between; gap: 8px; }
.timeline strong { font-size: .62rem; }
.timeline span { color: var(--teal); font-size: .6rem; font-weight: 800; }
.timeline p { margin: 4px 0; color: #56666d; font-size: .6rem; line-height: 1.45; }
.timeline small { color: var(--muted); font-size: .52rem; }

.team-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 16px; margin-bottom: 16px; }
.podium-card, .formula-card { padding: 22px; }
.score-legend { color: var(--muted); font-size: .58rem; }
.podium { min-height: 190px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(20px, 5vw, 60px); padding: 28px 10px 0; }
.podium-person { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.podium-person.place-1 { order: 2; transform: translateY(-16px); }
.podium-person.place-2 { order: 1; }
.podium-person.place-3 { order: 3; }
.podium-avatar { width: 62px; height: 62px; font-size: .82rem; }
.place-1 .podium-avatar { width: 76px; height: 76px; border: 3px solid #e5b94e; }
.medal { position: absolute; z-index: 2; top: -8px; right: 2px; width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--teal); border: 2px solid #fff; border-radius: 50%; font-size: .55rem; font-weight: 800; }
.place-1 .medal { background: #d4a437; }
.podium-person > strong { max-width: 120px; font-size: .66rem; }
.podium-person > b { color: var(--navy); font-size: 1.05rem; }
.podium-person > small { color: var(--muted); font-size: .53rem; }
.formula-card > p:nth-of-type(2) { color: var(--muted); font-size: .65rem; line-height: 1.55; }
.formula-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.formula-row > span { width: 42px; color: var(--teal); font-size: .84rem; font-weight: 800; }
.formula-row div { display: grid; gap: 2px; }
.formula-row strong { font-size: .64rem; }
.formula-row small { color: var(--muted); font-size: .55rem; }
.performance-table { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.performance-row { min-height: 63px; display: grid; grid-template-columns: minmax(230px, 1.65fr) repeat(4, .55fr) minmax(130px, .85fr) .55fr; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid #edf1f3; font-size: .66rem; }
.performance-row.with-management { grid-template-columns: minmax(220px, 1.5fr) repeat(4, .5fr) minmax(120px, .78fr) minmax(145px, .9fr) .5fr; }
.performance-row:last-child { border-bottom: 0; }
.management-cell button { width: 100%; min-height: 43px; display: grid; place-items: center; gap: 2px; padding: 6px 8px; color: var(--navy); background: #eef8fa; border: 1px solid #bee0e7; border-radius: 9px; cursor: pointer; }
.management-cell button:hover, .management-cell button:focus-visible { background: #e3f3f6; border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(29,123,140,.12); }
.management-cell button strong { font-size: .7rem; }
.management-cell button small { color: var(--muted); font-size: .49rem; }

.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(5,24,35,.58); backdrop-filter: blur(4px); }
.management-dialog { width: min(560px, 100%); display: grid; gap: 15px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(3,31,45,.28); }
.management-dialog-heading { display: flex; justify-content: space-between; gap: 20px; }
.management-dialog-heading h2 { margin: 2px 0 3px; color: var(--navy); font-size: 1.05rem; }
.management-dialog-heading p:last-child { margin: 0; color: var(--muted); font-size: .64rem; }
.dialog-close { width: 34px; height: 34px; flex: 0 0 auto; color: var(--muted); background: #f4f7f8; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 1.15rem; }
.app-dialog-backdrop { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(5,24,35,.66); backdrop-filter: blur(5px); }
.app-error-dialog { position: relative; width: min(520px, 100%); display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px; gap: 14px; padding: 24px; color: var(--ink); background: #fff; border: 1px solid #e4c8cd; border-radius: 18px; box-shadow: 0 26px 80px rgba(3,31,45,.34); }
.app-error-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--danger); border-radius: 14px; font-size: 1.35rem; font-weight: 900; box-shadow: 0 8px 20px rgba(180,73,88,.24); }
.app-error-content { min-width: 0; }
.app-error-content .eyebrow { margin: 1px 0 4px; color: #9d3c49; }
.app-error-content h2 { margin: 0; color: var(--navy); font-size: 1.12rem; }
.app-error-message { margin: 11px 0 0; color: #465b64; font-size: .72rem; line-height: 1.65; overflow-wrap: anywhere; }
.app-error-close { align-self: start; }
.app-error-technical { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; margin: 14px 0 0; padding: 10px 12px; color: #62757d; background: #f5f8f9; border-radius: 9px; font-size: .55rem; }
.app-error-technical dt { font-weight: 800; }
.app-error-technical dd { margin: 0; overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace; }
.app-error-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; margin-top: 3px; }
.app-error-actions .button { min-width: 122px; }
.calculated-reference { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; color: #45606b; background: #f4f8f9; border-radius: 10px; font-size: .65rem; }
.calculated-reference strong { color: var(--teal); font-size: 1rem; }
.management-dialog label { display: grid; gap: 6px; color: #46565d; font-size: .64rem; font-weight: 700; }
.management-dialog label b { color: var(--danger); }
.management-dialog textarea { min-height: 125px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.performance-header { min-height: 37px; color: var(--muted); background: #f6f9fa; font-size: .55rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.employee-cell { display: flex; align-items: center; gap: 9px; }
.employee-cell > span { min-width: 0; display: grid; gap: 2px; }
.employee-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-cell small { color: var(--muted); font-size: .54rem; }
.score-cell { display: grid; grid-template-columns: 1fr 25px; align-items: center; gap: 7px; }
.score-cell strong { color: var(--navy); }
.risk-value { color: var(--danger) !important; }

.report-cover { display: flex; align-items: center; gap: 22px; margin-bottom: 15px; padding: 17px 21px; overflow: hidden; background: linear-gradient(110deg, #fff, #f2f9fb); }
.report-brand { width: 240px; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.report-brand img:first-child { width: 120px; height: 62px; object-fit: cover; }
.report-brand img:last-child { width: 100px; }
.report-brand span { width: 1px; height: 42px; background: var(--line); }
.report-cover > div:nth-child(2) { flex: 1; }
.report-cover h2 { margin: 0 0 4px; font-size: 1.06rem; text-transform: capitalize; }
.report-cover > div:nth-child(2) > p:last-child { margin: 0; color: var(--muted); font-size: .61rem; }
.report-folio { color: var(--muted); font-size: .57rem; }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 15px; }
.report-kpis article { display: grid; gap: 5px; padding: 17px; }
.report-kpis span { color: var(--muted); font-size: .61rem; }
.report-kpis strong { color: var(--navy); font-size: 1.55rem; }
.report-kpis small { color: var(--muted); font-size: .55rem; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 15px; margin-bottom: 15px; }
.report-trend, .status-distribution { padding: 20px; }
.report-total { color: var(--teal); font-size: 1.2rem; }
.line-chart { height: 205px; display: flex; align-items: flex-end; gap: 10px; margin-top: 20px; padding: 10px 8px 0; background: repeating-linear-gradient(to bottom, #edf2f3 0, #edf2f3 1px, transparent 1px, transparent 48px); border-bottom: 1px solid var(--line); }
.line-chart > div { position: relative; height: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.line-chart > div > i { width: min(38px, 56%); display: block; background: linear-gradient(180deg, rgba(103,172,209,.95), rgba(29,123,140,.9)); border-radius: 6px 6px 0 0; }
.line-chart > div > span { position: absolute; left: 50%; transform: translate(-50%, -4px); color: var(--navy); font-size: .55rem; }
.line-chart > div > small { position: absolute; top: 100%; margin-top: 7px; color: var(--muted); font-size: .53rem; }
.distribution-body { min-height: 200px; display: flex; align-items: center; justify-content: space-evenly; gap: 22px; }
.report-ring { width: 128px; height: 128px; }
.report-ring::before { width: 100px; height: 100px; }
.report-ring strong { color: var(--navy); font-size: 1.35rem; }
.report-ring small { color: var(--muted); font-size: .55rem; }
.distribution-legend { min-width: 150px; display: grid; gap: 12px; }
.distribution-legend > div { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: .61rem; }
.distribution-legend strong { color: var(--navy); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.done { background: var(--success); }.dot.working { background: #348bb0; }.dot.pending { background: var(--warning); }.dot.blocked { background: var(--danger); }
.report-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.report-team article { display: grid; grid-template-columns: 35px 1fr 30px; align-items: center; gap: 9px; padding: 12px; background: #f7fafb; border: 1px solid #e7edef; border-radius: 10px; }
.report-team article div { min-width: 0; display: grid; gap: 4px; }
.report-team article strong { overflow: hidden; text-overflow: ellipsis; font-size: .61rem; white-space: nowrap; }
.report-team article small { color: var(--muted); font-size: .52rem; }
.report-team article em { color: var(--navy); font-size: .75rem; font-style: normal; font-weight: 800; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 15% 15%, rgba(103,172,209,.22), transparent 32%), linear-gradient(135deg, #f5f9fa, #e9f1f3); }
.login-shell { width: min(980px, 100%); min-height: 590px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 30px 80px rgba(9,56,75,.16); }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; color: #fff; background: linear-gradient(155deg, rgba(7,48,66,.92), rgba(12,83,102,.92)), url('../brand/gam-aicm-lockup.jpg') center/cover; }
.login-logo-card { width: 260px; height: 120px; display: grid; place-items: center; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.login-logo-card img { width: 104px; height: 104px; object-fit: cover; border-radius: 22px; }
.login-visual .eyebrow { color: #96d5ee; }
.login-visual h1 { max-width: 480px; color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.login-visual p:not(.eyebrow) { max-width: 460px; color: #d4e5eb; line-height: 1.6; }
.login-visual > small { color: #9bbbc6; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 60px); }
.login-product { display: flex; align-items: center; gap: 11px; margin-bottom: 52px; }
.login-product > img { width: 58px; height: 58px; flex: 0 0 auto; object-fit: cover; border-radius: 15px; box-shadow: 0 5px 14px rgba(9,56,75,.18); }
.login-product div { display: grid; gap: 2px; }
.login-product strong { color: var(--navy); font-size: 1.2rem; letter-spacing: -.03em; }
.login-product em { color: var(--cyan); font-style: normal; }
.login-product small { color: var(--muted); font-size: .6rem; }
.login-panel h2 { margin-bottom: 6px; font-size: 1.35rem; }
.login-panel > p:not(.eyebrow):not(.login-note) { color: var(--muted); font-size: .69rem; }
.demo-role { width: 100%; display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 10px; margin-top: 10px; padding: 12px; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.demo-role.selected { border-color: var(--cyan); background: #f2f9fc; box-shadow: 0 0 0 3px rgba(103,172,209,.10); }
.demo-role > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 9px; font-size: .62rem; font-weight: 800; }
.demo-role div { display: grid; gap: 3px; }
.demo-role strong { font-size: .68rem; }
.demo-role small { color: var(--muted); font-size: .56rem; }
.demo-role > b { color: var(--teal); }
.login-button { width: 100%; margin-top: 20px; }
.login-field { display: grid; gap: 5px; margin-top: 12px; color: var(--muted); font-size: .59rem; font-weight: 700; }
.login-field input { width: 100%; min-height: 42px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.login-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,172,209,.12); }
/* PASSWORD_VISIBILITY_1522: compartido por Web + MAUI. */
.login-password-wrap { position: relative; display: block; }
.login-password-wrap input { padding-right: 48px; }
.login-password-toggle { position: absolute; top: 50%; right: 5px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; transform: translateY(-50%); color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.login-password-toggle:hover { color: var(--navy); background: var(--cyan-soft); }
.login-password-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.login-password-toggle svg { width: 18px; height: 18px; pointer-events: none; }
.login-error { margin-top: 10px; color: #a83e4b !important; font-size: .62rem !important; font-weight: 700; }
.login-note { margin: 12px 0 0; color: var(--muted); font-size: .55rem; text-align: center; }

.empty-state { padding: 60px 24px; text-align: center; }
.empty-code { display: block; color: var(--cyan); font-size: 3.5rem; font-weight: 800; opacity: .6; }
.empty-state p { color: var(--muted); }
.boot-message { min-height: 100vh; display: grid; place-items: center; color: var(--navy); font-weight: 700; }
#blazor-error-ui { display: none; position: fixed; z-index: 9999; left: 0; right: 0; bottom: 0; padding: 13px; color: #773642; background: #fdebee; text-align: center; }

@media (max-width: 1180px) {
    :root { --sidebar: 220px; }
    .topbar { grid-template-columns: var(--sidebar) 1fr auto; }
    .brand-gam { width: 93px; }.brand-aicm { width: 78px; }
    .form-layout { grid-template-columns: 1.2fr 1fr; }.form-aside { position: static; grid-column: 1 / -1; }.form-aside > img { width: 220px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --topbar: 64px; }
    .topbar { grid-template-columns: 44px 1fr auto; padding: 0 13px 0 8px; gap: 8px; }
    .brand-lockup { height: 58px; padding: 5px 2px; border: 0; justify-self: start; }
    .brand-gam { width: 96px; height: 48px; }.brand-aicm { width: 83px; height: 40px; }
    .topbar-product { display: none; }.profile-chip div { display: none; }.topbar-actions { gap: 7px; }
    .menu-toggle { width: 38px; height: 38px; display: grid; place-content: center; gap: 4px; border-radius: 10px; cursor: pointer; }
    .menu-toggle span { width: 19px; height: 2px; display: block; background: var(--navy); border-radius: 3px; }
    .sidebar { z-index: 100; top: 0; width: min(300px, 82vw); transform: translateX(-103%); transition: transform .2s ease; }
    .menu-state:checked ~ .sidebar { transform: translateX(0); }
    .menu-scrim { position: fixed; z-index: 90; inset: 0; background: rgba(4,30,42,.46); backdrop-filter: blur(2px); }
    .menu-state:checked ~ .menu-scrim { display: block; }
    .content { margin-left: 0; padding: calc(var(--topbar) + 25px) 20px 94px; }
    .dashboard-grid, .report-grid, .team-hero-grid { grid-template-columns: 1fr; }
    .filter-panel { grid-template-columns: 1fr 1fr; }.search-field { grid-column: 1 / -1; }
    .desktop-table { display: none; }.mobile-ticket-list { display: grid; gap: 9px; }
    .mobile-ticket { display: grid; gap: 8px; padding: 13px; color: var(--ink); background: #f9fbfc; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; }
    .mobile-ticket > div:first-child, .mobile-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .mobile-ticket > div:first-child small { color: var(--teal); font-size: .55rem; font-weight: 800; }.mobile-ticket > strong { font-size: .7rem; }.mobile-ticket p { margin: 0; color: var(--muted); font-size: .58rem; }
    .mobile-progress i { flex: 1; }.mobile-progress span { color: var(--navy); font-size: .6rem; font-weight: 800; }
    .bottom-nav { position: fixed; z-index: 75; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); height: 66px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 10px 32px rgba(9,56,75,.18); backdrop-filter: blur(16px); }
    .bottom-nav a { display: grid; justify-items: center; gap: 3px; color: #738188; text-decoration: none; font-size: .52rem; font-weight: 700; }.bottom-nav svg { width: 20px; height: 20px; }.bottom-nav a.active { color: var(--teal); }
    .bottom-nav .bottom-create { transform: translateY(-15px); }.bottom-nav .bottom-create svg { width: 43px; height: 43px; padding: 12px; color: #fff; background: var(--teal); border-radius: 50%; box-shadow: 0 6px 17px rgba(29,123,140,.3); }.bottom-nav .bottom-create span { color: var(--teal); }
    .report-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .content { padding-left: 12px; padding-right: 12px; }
    .brand-gam { width: 79px; }.brand-aicm { width: 66px; }.brand-divider { height: 28px; }.notification-button { display: none; }
    .page-title-row, .page-title-row.compact { align-items: flex-start; flex-direction: column; gap: 13px; }.today-card { width: 100%; min-width: 0; }.page-title-row > .button { width: 100%; }
    .period-switch { width: 100%; }.period-switch button { flex: 1; padding-left: 8px; padding-right: 8px; }
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.kpi-card { min-height: 112px; align-items: flex-start; padding: 14px; }.kpi-icon { width: 36px; height: 36px; }.kpi-icon svg { width: 18px; }.kpi-card strong { font-size: 1.42rem; }.kpi-card small { white-space: normal; }.mini-ring { display: none; }
    .chart-card, .team-card, .activity-panel, .comparison-card, .report-team { padding: 15px; }.heading-actions .ghost { display: none; }.trend-chart { height: 190px; gap: 6px; padding-left: 1px; padding-right: 1px; }
    .ticket-cards { grid-template-columns: 1fr; }.filter-panel { grid-template-columns: 1fr; }.search-field { grid-column: auto; }
    .form-layout { grid-template-columns: 1fr; }.form-aside { grid-column: auto; }.form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }.form-actions { position: sticky; z-index: 20; bottom: 82px; padding: 8px; background: rgba(244,247,248,.94); border-radius: 12px; backdrop-filter: blur(10px); }.form-actions > * { flex: 1; }
    .detail-grid { grid-template-columns: 1fr; }.progress-hero { align-items: flex-start; }.large-ring { width: 90px; height: 90px; }.large-ring::before { width: 72px; height: 72px; }.large-ring strong { font-size: 1.2rem; }.update-grid { grid-template-columns: 1fr; }.update-grid .span-2 { grid-column: auto; }
    .podium { gap: 16px; padding-left: 0; padding-right: 0; }.podium-person > strong { max-width: 90px; font-size: .58rem; }.podium-avatar { width: 52px; height: 52px; }.place-1 .podium-avatar { width: 64px; height: 64px; }
    .performance-header { display: none; }.performance-row, .performance-row.with-management { grid-template-columns: 1fr 1fr 1fr; gap: 11px; padding: 14px; }.employee-cell { grid-column: 1 / -1; }.performance-row > span:not(.employee-cell)::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: .49rem; }.score-cell { display: grid !important; grid-template-columns: 1fr 24px; }.score-cell::before { grid-column: 1 / -1; }
    .report-cover { align-items: flex-start; flex-direction: column; }.report-brand { width: 100%; }.report-folio { align-self: flex-end; }.report-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }.report-team-grid { grid-template-columns: 1fr; }.distribution-body { flex-direction: column; }
    .login-shell { grid-template-columns: 1fr; }.login-visual { display: none; }.login-panel { min-height: 570px; padding: 30px 24px; }.login-product { margin-bottom: 60px; }
    .app-error-dialog { grid-template-columns: 42px minmax(0, 1fr) 34px; gap: 11px; padding: 18px; }.app-error-icon { width: 42px; height: 42px; }.app-error-actions { grid-column: 1 / -1; }.app-error-actions .button { width: 100%; }
}

@media (max-width: 380px) {
    .brand-gam { width: 67px; }.brand-aicm { width: 57px; }.profile-chip > span { width: 34px; height: 34px; }
    .kpi-card { gap: 9px; padding: 12px; }.kpi-icon { display: none; }.kpi-card span { font-size: .63rem; }
    .section-heading { align-items: flex-start; }.live-pill { display: none; }.heading-actions .button { padding: 0 10px; }
    .progress-hero { gap: 12px; }.large-ring { width: 78px; height: 78px; }.large-ring::before { width: 62px; height: 62px; }.large-ring strong { font-size: 1rem; }
}

@media print {
    .topbar, .sidebar, .bottom-nav, .page-title-row .button, .period-switch, .heading-actions { display: none !important; }
    .content { margin: 0; padding: 15px; }.surface { box-shadow: none; break-inside: avoid; }.report-cover { border: 2px solid var(--navy); }
}

/* GAMPulse5.0 Dashboard · seguimiento proveniente de la app Tickets */
.executive-feed-filters { display: grid; grid-template-columns: minmax(260px, 1fr) 230px 190px; gap: 12px; margin-bottom: 16px; padding: 15px; }
.executive-feed-filters > label:not(.search-field) { display: grid; gap: 5px; }
.executive-feed-filters > label > span { color: var(--muted); font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.executive-feed-filters select { min-height: 42px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.executive-feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 16px; }
.executive-feed-list { display: grid; gap: 12px; }
.executive-post { padding: 18px; }
.executive-post-head { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.executive-post-head > div { display: grid; gap: 2px; }
.executive-post-head strong { font-size: .7rem; }
.executive-post-head small { color: var(--muted); font-size: .54rem; }
.executive-post > p { margin: 14px 0 0; color: #45575f; font-size: .7rem; line-height: 1.65; }
.executive-ticket-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 12px; color: var(--ink); background: #f6f9fa; border: 1px solid #e7edef; border-radius: 10px; text-decoration: none; }
.executive-ticket-link span { color: var(--teal); font-size: .57rem; font-weight: 800; }
.executive-ticket-link strong { overflow: hidden; text-overflow: ellipsis; font-size: .64rem; white-space: nowrap; }
.executive-ticket-link b { color: var(--teal); font-size: 1rem; }
.executive-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.executive-attachments > span { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; padding: 9px; background: #f3f8fa; border: 1px solid #dce9ed; border-radius: 9px; }
.executive-attachments i { width: 30px; height: 30px; display: grid; place-items: center; color: var(--teal); background: #fff; border-radius: 8px; font-style: normal; }
.executive-attachments span span { min-width: 0; display: grid; gap: 2px; }
.executive-attachments strong { overflow: hidden; text-overflow: ellipsis; font-size: .56rem; white-space: nowrap; }
.executive-attachments small { color: var(--muted); font-size: .49rem; }
.executive-attachments > span > b { color: var(--teal); font-size: .48rem; }
.executive-feed-summary { position: sticky; top: calc(var(--topbar) + 25px); padding: 20px; }
.executive-feed-summary h2 { font-size: 1rem; }
.executive-feed-summary > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.executive-feed-summary > div span { display: grid; gap: 3px; padding: 12px; background: var(--cyan-soft); border-radius: 10px; }
.executive-feed-summary > div strong { color: var(--navy); font-size: 1.35rem; }
.executive-feed-summary > div small { color: var(--muted); font-size: .52rem; }
.executive-feed-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 17px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .62rem; }
.executive-feed-summary dt { color: var(--muted); }.executive-feed-summary dd { margin: 0; color: var(--navy); font-weight: 800; }
.executive-feed-summary > p:last-child { margin: 0; color: var(--muted); font-size: .59rem; line-height: 1.55; }

@media (max-width: 900px) { .executive-feed-layout { grid-template-columns: 1fr; }.executive-feed-summary { position: static; }.executive-feed-filters { grid-template-columns: 1fr 1fr; }.executive-feed-filters .search-field { grid-column: 1 / -1; } }
@media (max-width: 600px) { .executive-feed-filters { grid-template-columns: 1fr; }.executive-feed-filters .search-field { grid-column: auto; }.executive-post-head { grid-template-columns: 36px 1fr; }.executive-post-head > .status { grid-column: 2; justify-self: start; }.executive-attachments { grid-template-columns: 1fr; } }
.executive-attachments .evidence-download { padding: 4px 7px; color: var(--teal); background: transparent; border: 1px solid #b8d4dc; border-radius: 6px; font-size: .48rem; font-weight: 800; cursor: pointer; }


/* Estado global de espera: Web, Windows MAUI, Android e iOS */
.app-busy-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(244,247,248,.56); backdrop-filter: blur(2px); cursor: wait; pointer-events: all; }
.app-busy-card { min-width: min(360px, calc(100vw - 40px)); display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ink); background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 18px 50px rgba(9,56,75,.18); }
.app-busy-card > div { display: grid; gap: 3px; }
.app-busy-card strong { color: var(--navy); font-size: .78rem; }
.app-busy-card small { color: var(--muted); font-size: .58rem; }
.app-busy-spinner { width: 31px; height: 31px; flex: 0 0 auto; border: 3px solid #d9e9ef; border-top-color: var(--teal); border-radius: 50%; animation: app-busy-spin .75s linear infinite; }
@keyframes app-busy-spin { to { transform: rotate(360deg); } }
body:has(.app-busy-overlay), body:has(.app-busy-overlay) * { cursor: wait !important; }

/* Administración de usuarios: tickets creados por el usuario autenticado */
.managed-lower-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; margin-top: 18px; }
.managed-created-tickets { min-width: 0; padding: 20px; }
.managed-user-actions { margin-top: 0; white-space: nowrap; }
.managed-ticket-heading { margin-bottom: 14px; }
.managed-ticket-heading h2 { margin-bottom: 4px; font-size: 1rem; }
.managed-ticket-heading p:last-child { margin: 0; color: var(--muted); font-size: .62rem; }
.created-ticket-count { padding: 7px 11px; color: var(--teal); background: var(--cyan-soft); border-radius: 999px; font-size: .6rem; font-weight: 800; white-space: nowrap; }
.created-ticket-table { max-height: 350px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.created-ticket-row { min-height: 62px; display: grid; grid-template-columns: minmax(260px, 2fr) minmax(145px, 1fr) 80px 105px minmax(115px,.8fr) 112px; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #eaf0f2; }
.created-ticket-row:last-child { border-bottom: 0; }
.created-ticket-row:not(.created-ticket-header):hover { background: #f8fbfc; }
.created-ticket-header { position: sticky; z-index: 2; top: 0; min-height: 38px; color: var(--muted); background: #f6f9fa; font-size: .56rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.created-ticket-row > span { min-width: 0; font-size: .6rem; }
.created-ticket-row > span:first-child { display: grid; gap: 2px; }
.created-ticket-row > span:first-child small { color: var(--teal); font-size: .54rem; font-weight: 800; }
.created-ticket-row > span:first-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .67rem; }
.created-ticket-row > span:first-child em { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .53rem; font-style: normal; white-space: nowrap; }
.created-ticket-date { color: var(--muted); font-size: .55rem !important; }
.managed-ticket-empty { min-height: 116px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 18px; color: var(--muted); background: #f8fbfc; border: 1px dashed #cadbe1; border-radius: 12px; }
.managed-ticket-empty > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--teal); background: var(--cyan-soft); border-radius: 50%; font-size: 1rem; font-weight: 900; }
.managed-ticket-empty > div { display: grid; gap: 3px; }
.managed-ticket-empty strong { color: var(--navy); font-size: .7rem; }
.managed-ticket-empty small { font-size: .58rem; }
.created-ticket-mobile { display: none; }


@media (max-width: 900px) {
    .managed-lower-layout { grid-template-columns: 1fr; }
    .managed-user-actions { justify-self: stretch; }
    .managed-user-actions > * { flex: 1; }
    .managed-ticket-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .created-ticket-table { display: none; }
    .created-ticket-mobile { max-height: 420px; display: grid; gap: 9px; overflow: auto; }
    .created-ticket-mobile article { display: grid; gap: 7px; padding: 13px; background: #f9fbfc; border: 1px solid var(--line); border-radius: 11px; }
    .created-ticket-mobile article > div:first-child, .created-ticket-mobile .mobile-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .created-ticket-mobile article > div:first-child small { color: var(--teal); font-size: .54rem; font-weight: 800; }
    .created-ticket-mobile article > strong { color: var(--ink); font-size: .68rem; }
    .created-ticket-mobile article > p { margin: 0; color: var(--muted); font-size: .57rem; }
    .created-ticket-mobile article > small { color: var(--muted); font-size: .52rem; }
}

/* ========================================================================
   GAMPulse5.0 - Login visual refinement
   ======================================================================== */

.login-visual {
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 14%, rgba(52, 190, 229, .22), transparent 27%),
        radial-gradient(circle at 88% 74%, rgba(30, 139, 171, .20), transparent 33%),
        linear-gradient(155deg, #082f43 0%, #0c4d63 56%, #073247 100%);
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .28;
    background:
        linear-gradient(120deg, transparent 0 55%, rgba(255,255,255,.045) 55% 56%, transparent 56%),
        radial-gradient(circle at 72% 38%, rgba(109, 210, 239, .18), transparent 12%);
}

.login-logo-card {
    width: 152px;
    height: 152px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(5, 34, 51, .84), rgba(7, 63, 83, .74));
    border: 1px solid rgba(135, 221, 245, .34);
    border-radius: 30px;
    box-shadow:
        0 18px 42px rgba(0, 14, 25, .32),
        inset 0 1px 0 rgba(255,255,255,.08),
        0 0 30px rgba(50, 192, 230, .10);
    backdrop-filter: blur(12px);
}

.login-logo-card img {
    width: 118px;
    height: 118px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow:
        0 12px 28px rgba(0, 15, 28, .36),
        0 0 0 1px rgba(154, 224, 242, .18);
}

.login-visual h1 {
    text-shadow: 0 3px 18px rgba(0, 20, 32, .28);
}

.login-visual .eyebrow {
    color: #8bdcf2;
    letter-spacing: .16em;
}

.login-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
}

.login-product > img {
    border: 1px solid rgba(12, 83, 102, .12);
    box-shadow:
        0 7px 18px rgba(9,56,75,.16),
        0 0 0 4px rgba(103,172,209,.05);
}

.login-field input {
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-field input:hover {
    border-color: rgba(41, 133, 162, .35);
}

.login-button {
    box-shadow: 0 9px 22px rgba(7, 89, 112, .18);
}


/* ============================================================
   GAMPULSE5X 1518 - MODULO DE EVALUACION Y DESEMPENO
   ============================================================ */

.login-module-brand {
    align-items: flex-start;
}

.login-module-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            var(--teal),
            #38a9c8
        );
    border: 1px solid rgba(12, 83, 102, .10);
    border-radius: 15px;
    box-shadow:
        0 9px 24px rgba(9, 86, 109, .20),
        0 0 0 4px rgba(103, 172, 209, .06);
}

.login-module-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-module-brand > div {
    min-width: 0;
    padding-top: 2px;
}

.login-module-brand strong {
    display: block;
    max-width: 310px;
    font-size: 1rem;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.login-module-brand small {
    display: block;
    max-width: 320px;
    margin-top: 5px;
    font-size: .58rem;
    line-height: 1.42;
}

@media (max-width: 680px) {
    .login-module-icon {
        width: 54px;
        height: 54px;
    }

    .login-module-icon svg {
        width: 29px;
        height: 29px;
    }

    .login-module-brand strong {
        font-size: .94rem;
    }

    .login-module-brand small {
        font-size: .56rem;
    }
}


/* AeroCCO 360 - panel aprobado para Login */
.login-visual {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    background: #031a2e;
    user-select: none;
    -webkit-user-select: none;
}

.login-visual::before,
.login-visual::after {
    display: none;
}

.login-hero-approved {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none !important;
    border: 0 !important;
}


/* ============================================================
   GAM Nexus 5 - PROFILE POPOVER
   ============================================================ */

.profile-chip {
    padding: 5px 7px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease;
}

.profile-chip:hover,
.profile-chip.is-open {
    background: #f1f7f8;
    box-shadow: inset 0 0 0 1px rgba(8,56,75,.08);
}

.profile-popover {
    position: absolute;
    z-index: 130;
    top: calc(100% - 7px);
    right: 22px;
    width: min(360px, calc(100vw - 30px));
    padding: 18px;
    color: var(--ink);
    background: rgba(255,255,255,.99);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(8,46,63,.18);
    backdrop-filter: blur(18px);
}

.profile-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 35px;
    width: 13px;
    height: 13px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    transform: rotate(45deg);
}

.profile-popover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.profile-popover-head > div {
    display: grid;
    gap: 3px;
}

.profile-popover-head strong {
    color: var(--navy);
    font-size: .92rem;
}

.profile-popover-eyebrow {
    color: var(--teal);
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.profile-popover-close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--muted);
    background: #f5f8f9;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
}

.profile-popover-close:hover {
    color: var(--navy);
    background: #eef5f6;
}

.profile-popover-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 0;
}

.profile-popover-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, var(--navy-2), var(--teal));
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(8,56,75,.18);
    font-size: .88rem;
    font-weight: 900;
}

.profile-popover-identity > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.profile-popover-identity strong {
    color: var(--navy);
    font-size: .88rem;
    line-height: 1.25;
}

.profile-popover-identity small {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.profile-popover-session {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    background: #f5faf8;
    border: 1px solid #dceee7;
    border-radius: 12px;
}

.profile-popover-session > div {
    display: grid;
    gap: 2px;
}

.profile-popover-session strong {
    color: #195d49;
    font-size: .69rem;
}

.profile-popover-session small {
    color: var(--muted);
    font-size: .61rem;
}

.profile-popover-actions {
    display: grid;
    margin-top: 14px;
}

.profile-signout {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 14px;
    color: #9a2f35;
    background: #fff7f7;
    border: 1px solid #f0d6d8;
    border-radius: 11px;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 800;
}

.profile-signout:hover {
    background: #fdefef;
}

.profile-signout svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 720px) {
    .profile-popover {
        top: calc(100% - 3px);
        right: 10px;
        width: min(340px, calc(100vw - 20px));
    }

    .profile-popover::before {
        right: 20px;
    }
}

/* ============================================================
   GAM Nexus 5 - PROFILE PERSONALIZATION
   ============================================================ */

.profile-chip-avatar {
    width: 39px;
    height: 39px;
    display: block;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: center;
    border-radius: 11px;
    box-shadow: 0 0 0 1px rgba(8,56,75,.09);
}

.profile-chip div {
    max-width: 235px;
}

.profile-chip small {
    max-width: 235px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-popover-avatar-image {
    display: block;
    object-fit: cover;
    object-position: center;
}

.profile-photo-controls {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: -3px;
    margin-bottom: 15px;
}

.profile-photo-action,
.profile-photo-remove {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 9px;
    cursor: pointer;
    font-size: .64rem;
    font-weight: 800;
}

.profile-photo-action {
    position: relative;
    color: var(--teal);
    background: #f1f8f9;
    border: 1px solid #d5e9ec;
}

.profile-photo-action:hover {
    background: #eaf5f6;
}

.profile-photo-action svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.profile-photo-remove {
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
}

.profile-photo-remove:hover {
    color: var(--navy);
    background: #f7fafb;
}

.profile-thought-editor {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 13px;
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.profile-thought-editor label {
    display: grid;
    gap: 2px;
}

.profile-thought-editor label > span {
    color: var(--navy);
    font-size: .72rem;
    font-weight: 900;
}

.profile-thought-editor label > small {
    color: var(--muted);
    font-size: .59rem;
}

.profile-thought-editor textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    padding: 10px 11px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d8e4e7;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: .7rem;
    line-height: 1.45;
}

.profile-thought-editor textarea:focus {
    border-color: #6bb8c3;
    box-shadow: 0 0 0 3px rgba(36,137,153,.10);
}

.profile-thought-editor textarea::placeholder {
    color: #9baeb5;
}

.profile-thought-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-thought-meta small,
.profile-thought-meta strong {
    color: var(--muted);
    font-size: .56rem;
}

.profile-edit-message {
    margin: -3px 0 13px;
    padding: 9px 11px;
    color: #195d49;
    background: #f1faf6;
    border: 1px solid #d8eee4;
    border-radius: 10px;
    font-size: .62rem;
    font-weight: 700;
}

.profile-popover-actions {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.profile-save {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-2), var(--teal));
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(8,56,75,.14);
}

.profile-save:hover {
    filter: brightness(1.04);
}

.profile-save svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-popover {
    max-height: calc(100vh - 88px);
    overflow-y: auto;
}

@media (max-width: 720px) {
    .profile-chip-avatar {
        width: 34px;
        height: 34px;
    }

    .profile-popover-actions {
        grid-template-columns: 1fr;
    }

    .profile-photo-controls {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ============================================================
   GAM Nexus 5 - PROFILE SAVE NOTICE
   ============================================================ */

.profile-save-notice {
    position: absolute;
    z-index: 145;
    top: calc(100% + 8px);
    right: 22px;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    color: #195d49;
    background: rgba(244,252,248,.98);
    border: 1px solid #cfe9dc;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(8,56,75,.14);
    backdrop-filter: blur(14px);
    font-size: .68rem;
    font-weight: 850;
    pointer-events: none;
    animation: profile-save-notice-life 2.5s ease forwards;
}

.profile-save-notice svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #23835f;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes profile-save-notice-life {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

    12%,
    72% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

@media (max-width: 720px) {
    .profile-save-notice {
        right: 10px;
    }
}

/* GAM Nexus 5 MFA SECOND FACTOR */
.mfa-panel {
    overflow-y: auto;
}

.mfa-qr-card {
    width: fit-content;
    margin: 20px auto 4px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(9,56,75,.12);
}

.mfa-qr {
    display: block;
    width: 210px;
    height: 210px;
    image-rendering: pixelated;
}

.mfa-manual {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(103,172,209,.08);
    border: 1px solid rgba(103,172,209,.22);
    border-radius: 10px;
}

.mfa-manual span {
    color: var(--muted);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.mfa-manual code {
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.mfa-manual small {
    color: var(--muted);
    font-size: .55rem;
}

.mfa-shield {
    display: grid;
    width: 92px;
    height: 92px;
    margin: 24px auto 10px;
    place-items: center;
    background: rgba(103,172,209,.10);
    border: 1px solid rgba(103,172,209,.22);
    border-radius: 50%;
    font-size: 2.5rem;
}

.mfa-loading {
    margin-top: 22px;
    padding: 18px;
    color: var(--muted);
    background: rgba(103,172,209,.08);
    border: 1px solid rgba(103,172,209,.18);
    border-radius: 12px;
    text-align: center;
}

.mfa-cancel {
    margin-top: 10px;
    padding: 8px 4px;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: .58rem;
    text-decoration: underline;
}

.mfa-cancel:hover {
    color: var(--navy);
}

@media (max-width: 720px) {
    .mfa-qr {
        width: 190px;
        height: 190px;
    }
}

/* =========================================================
   REPORTES V2 · CENTRO DE REPORTES
   ========================================================= */

.report-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.report-hub-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-height: 190px;
    padding: 26px;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.report-hub-card:hover {
    transform: translateY(-5px);
}

.report-hub-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(15, 91, 120, .08);
}

.report-hub-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-hub-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.report-hub-copy h2 {
    margin: 3px 0 10px;
}

.report-hub-copy p:not(.eyebrow) {
    margin: 0 0 18px;
    line-height: 1.55;
}

.report-hub-copy span {
    margin-top: auto;
    font-weight: 700;
}

.report-hub-card-featured::after {
    content: "TITULAR";
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    background: rgba(15, 91, 120, .08);
}

@media (max-width: 720px) {
    .report-hub-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .report-hub-card {
        min-height: auto;
        padding: 20px;
    }

    .report-hub-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .report-hub-icon svg {
        width: 25px;
        height: 25px;
    }
}

/* =========================================================
   REPORTES V2 · DOCUMENTO, FILTROS Y TABLAS
   ========================================================= */

.report-filter-panel {
    margin-top: 22px;
    padding: 22px;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    gap: 16px;
    align-items: end;
}

.report-filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.report-filter-grid label > span {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.report-filter-grid input,
.report-filter-grid select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(20, 55, 70, .18);
    background: var(--surface, #fff);
    color: inherit;
    font: inherit;
}

.report-empty-state {
    margin-top: 22px;
}

.report-document {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}

.report-institutional-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 24px 26px;
}

.report-institutional-header h2 {
    margin: 4px 0 6px;
}

.report-institutional-header p {
    margin-bottom: 0;
}

.report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.report-chart-placeholder {
    padding: 24px;
}

.report-chart-empty {
    min-height: 230px;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 8px;
    margin-top: 18px;
    border: 1px dashed rgba(20, 55, 70, .22);
    border-radius: 16px;
    background: rgba(15, 91, 120, .025);
}

.report-chart-empty strong {
    font-size: 1.2rem;
}

.report-chart-empty span {
    max-width: 480px;
    opacity: .72;
}

.report-data-table {
    display: grid;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    margin-top: 16px;
}

.report-data-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(105px, .8fr));
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid rgba(20, 55, 70, .08);
}

.report-data-header {
    border-top: 0;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
    background: rgba(15, 91, 120, .055);
}

.report-data-row span:not(:first-child) {
    text-align: center;
}

@media (max-width: 900px) {
    .report-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-filter-grid .button {
        min-height: 44px;
    }

    .report-institutional-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .report-filter-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-panel,
    .report-chart-placeholder {
        padding: 18px;
    }

    .report-institutional-header {
        padding: 20px;
    }

    .report-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .report-data-table {
        gap: 10px;
        overflow: visible;
    }

    .report-data-header {
        display: none;
    }

    .report-data-row {
        grid-template-columns: 1fr 1fr;
        padding: 16px;
        border: 1px solid rgba(20, 55, 70, .10);
        border-radius: 12px;
    }

    .report-data-row span:first-child {
        grid-column: 1 / -1;
        padding-bottom: 8px;
    }

    .report-data-row span:not(:first-child) {
        text-align: left;
    }

    .report-data-row span[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .035em;
        text-transform: uppercase;
        opacity: .62;
    }
}

@media print {
    .sidebar,
    .bottom-nav,
    .topbar,
    .menu-scrim,
    .report-filter-panel,
    .report-actions,
    .page-title-row {
        display: none !important;
    }

    .content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .report-document {
        margin: 0;
    }

    .report-document .surface {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

/* =========================================================
   REPORTES V2 · GRAFICAS DEL REPORTE DE ACTIVIDADES
   ========================================================= */

.report-brand-institutional {
    display: flex;
    align-items: center;
}

.report-brand-institutional img {
    width: auto;
    height: 92px;
    max-width: 250px;
    max-height: 92px;
    object-fit: contain;
    display: block;
}

.report-chart-panel {
    padding: 24px;
    min-height: 360px;
}

.report-bar-chart {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(12px, 2vw, 28px);
    min-height: 275px;
    padding: 28px 12px 4px;
    overflow-x: auto;
}

.report-bar-item {
    display: grid;
    grid-template-rows: 24px 210px auto;
    gap: 8px;
    min-width: 54px;
    text-align: center;
}

.report-bar-item > strong {
    font-size: .82rem;
}

.report-bar-item > small {
    font-size: .72rem;
    white-space: nowrap;
}

.report-bar-track {
    position: relative;
    width: 34px;
    height: 210px;
    margin: 0 auto;
    border-radius: 10px 10px 5px 5px;
    background: rgba(15, 91, 120, .07);
    overflow: hidden;
}

.report-bar-track i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    min-height: 2px;
    border-radius: 8px 8px 4px 4px;
    background: currentColor;
    opacity: .78;
}

.report-line-chart {
    position: relative;
    min-height: 285px;
    margin-top: 20px;
    padding: 16px 8px 0;
}

.report-line-chart svg {
    display: block;
    width: 100%;
    height: 220px;
    overflow: visible;
    border-bottom: 1px solid rgba(20, 55, 70, .12);
    background:
        linear-gradient(to bottom,
            transparent 24%,
            rgba(20, 55, 70, .055) 25%,
            transparent 26%,
            transparent 49%,
            rgba(20, 55, 70, .055) 50%,
            transparent 51%,
            transparent 74%,
            rgba(20, 55, 70, .055) 75%,
            transparent 76%);
}

.report-line-chart polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-line-chart circle {
    fill: currentColor;
    vector-effect: non-scaling-stroke;
}

.report-line-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.report-line-labels span {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: center;
}

.report-line-labels strong {
    font-size: .76rem;
}

.report-line-labels small {
    font-size: .68rem;
    white-space: nowrap;
}

.report-donut-focus {
    min-height: 265px;
    justify-content: center;
    align-items: center;
    gap: clamp(30px, 7vw, 90px);
    padding: 28px 10px 8px;
}

.report-status-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.report-status-summary > div {
    padding: 14px;
    border-radius: 12px;
    background: rgba(15, 91, 120, .035);
}

@media (max-width: 720px) {
    .report-chart-panel {
        min-height: auto;
        padding: 18px;
    }

    .report-bar-chart {
        justify-content: flex-start;
    }

    .report-line-chart {
        overflow-x: auto;
    }

    .report-line-chart svg,
    .report-line-labels {
        min-width: 560px;
    }

    .report-donut-focus {
        flex-direction: column;
    }

    .report-status-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-brand-institutional img {
        max-width: 190px;
        max-height: 62px;
    }
}

@media print {
    .report-chart-panel {
        break-inside: avoid;
    }

    .report-bar-chart,
    .report-line-chart,
    .report-donut-focus {
        break-inside: avoid;
    }

    .report-bar-track i,
    .report-line-chart polyline,
    .report-line-chart circle {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* =========================================================
   REPORTES V2 · COMPARATIVO DE DESEMPEÑO
   ========================================================= */

.performance-report-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
}

.performance-report-filters label,
.comparison-selector > label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.performance-report-filters label > span,
.comparison-selector > label > span {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.performance-report-filters input,
.performance-report-filters select,
.comparison-selector select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(20, 55, 70, .18);
    background: var(--surface, #fff);
    color: inherit;
    font: inherit;
}

.comparison-selector {
    margin-top: 22px;
}

.comparison-employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.comparison-employee-option {
    display: grid;
    grid-template-columns: auto 42px 1fr;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(20, 55, 70, .10);
    border-radius: 13px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.comparison-employee-option:hover {
    transform: translateY(-1px);
    background: rgba(15, 91, 120, .035);
}

.comparison-employee-option input {
    width: 17px;
    height: 17px;
}

.comparison-employee-option > span:last-child {
    display: grid;
    gap: 2px;
}

.comparison-employee-option small {
    opacity: .66;
}

.comparison-generate-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.report-institutional-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.report-institutional-brand img {
    width: auto;
    height: 84px;
    max-width: 210px;
    max-height: 84px;
    object-fit: contain;
    display: block;
}

.performance-comparison-bars {
    display: grid;
    gap: 17px;
    margin-top: 26px;
}

.performance-comparison-bar {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(220px, 3fr) 58px;
    gap: 18px;
    align-items: center;
}

.performance-comparison-bar > div:first-child {
    display: grid;
    gap: 2px;
}

.performance-comparison-bar small {
    opacity: .62;
}

.performance-comparison-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 91, 120, .08);
}

.performance-comparison-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
    opacity: .78;
}

.performance-comparison-bar > strong:last-child {
    text-align: right;
}

.performance-radar-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(180px, .55fr);
    gap: 30px;
    align-items: center;
    margin-top: 18px;
}

.performance-radar {
    min-height: 360px;
}

.performance-radar svg {
    display: block;
    width: 100%;
    height: 360px;
    overflow: visible;
}

.performance-radar .radar-grid {
    fill: rgba(15, 91, 120, .025);
    stroke: rgba(20, 55, 70, .20);
    stroke-width: .7;
}

.performance-radar .radar-grid-outer {
    fill: rgba(15, 91, 120, .018);
}

.performance-radar line {
    stroke: rgba(20, 55, 70, .13);
    stroke-width: .6;
}

.performance-radar .radar-series {
    fill-opacity: .10;
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
}

.performance-radar text {
    font-size: 4px;
    font-weight: 700;
    fill: currentColor;
}

.performance-radar-legend {
    display: grid;
    gap: 10px;
}

.performance-radar-legend > div {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 9px;
    align-items: center;
}

.performance-radar-legend i {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.comparison-report-table,
.performance-methodology {
    padding: 24px;
}

.performance-report-table {
    display: grid;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 14px;
}

.performance-report-row {
    display: grid;
    grid-template-columns: minmax(230px, 2fr) repeat(6, minmax(90px, .72fr));
    gap: 10px;
    align-items: center;
    padding: 13px 15px;
    border-top: 1px solid rgba(20, 55, 70, .08);
}

.performance-report-header {
    border-top: 0;
    background: rgba(15, 91, 120, .055);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.performance-report-row > span:not(:first-child) {
    text-align: center;
}

.performance-methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.performance-methodology-grid > div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 13px;
    background: rgba(15, 91, 120, .035);
}

.performance-methodology-grid strong {
    font-size: 1.5rem;
}

@media (max-width: 900px) {
    .performance-report-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .performance-radar-layout {
        grid-template-columns: 1fr;
    }

    .performance-radar-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .performance-report-table {
        overflow-x: auto;
    }

    .performance-report-row {
        min-width: 920px;
    }
}

@media (max-width: 680px) {
    .performance-report-filters {
        grid-template-columns: 1fr;
    }

    .comparison-employee-grid {
        grid-template-columns: 1fr;
    }

    .comparison-generate-row .button {
        width: 100%;
    }

    .report-institutional-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-institutional-brand img {
        max-width: 170px;
    }

    .performance-comparison-bar {
        grid-template-columns: 1fr 50px;
        gap: 8px 12px;
    }

    .performance-comparison-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .performance-radar {
        min-height: 300px;
    }

    .performance-radar svg {
        height: 300px;
    }

    .performance-radar-legend {
        grid-template-columns: 1fr;
    }

    .performance-methodology-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .comparison-selector,
    .comparison-generate-row {
        display: none !important;
    }

    .performance-comparison-bars,
    .performance-radar-layout,
    .performance-report-table,
    .performance-methodology {
        break-inside: avoid;
    }

    .performance-radar .radar-series,
    .performance-comparison-track i {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}


/* =========================================================
   REPORTES V2 · GRAFICAS DE PERSONAL
   ========================================================= */

.personnel-bar-chart {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(12px, 2vw, 28px);
    min-height: 280px;
    padding: 28px 10px 4px;
    overflow-x: auto;
}

.personnel-bar-item {
    display: grid;
    grid-template-rows: 24px 210px auto;
    gap: 8px;
    min-width: 62px;
    text-align: center;
}

.personnel-bar-track {
    position: relative;
    width: 38px;
    height: 210px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px 10px 5px 5px;
    background: rgba(15, 91, 120, .07);
}

.personnel-bar-track i {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    min-height: 2px;
    border-radius: 8px 8px 4px 4px;
    background: currentColor;
    opacity: .78;
}

.personnel-bar-item small {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.personnel-horizontal-bars {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.personnel-horizontal-row {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(220px, 3fr) 50px;
    gap: 16px;
    align-items: center;
}

.personnel-horizontal-row > div:first-child {
    display: grid;
    gap: 2px;
}

.personnel-horizontal-row small {
    opacity: .62;
}

.personnel-horizontal-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 91, 120, .08);
}

.personnel-horizontal-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
    opacity: .78;
}

.personnel-donut-layout {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(220px, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 24px;
}

.personnel-donut {
    position: relative;
    width: min(320px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
}

.personnel-donut svg {
    display: block;
    width: 100%;
    height: 100%;
}

.personnel-donut-base,
.personnel-donut-segment {
    fill: none;
    stroke-width: 14;
}

.personnel-donut-base {
    stroke: rgba(15, 91, 120, .07);
}

.personnel-donut-segment {
    stroke-linecap: butt;
}

.personnel-donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.personnel-donut-center strong {
    font-size: 2rem;
}

.personnel-donut-center span {
    font-size: .76rem;
    font-weight: 700;
    opacity: .65;
}

.personnel-donut-legend {
    display: grid;
    gap: 10px;
}

.personnel-donut-legend > div {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 9px;
    align-items: center;
}

.personnel-donut-legend i {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .personnel-bar-chart {
        justify-content: flex-start;
    }

    .personnel-horizontal-row {
        grid-template-columns: 1fr 44px;
        gap: 8px 12px;
    }

    .personnel-horizontal-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .personnel-donut-layout {
        grid-template-columns: 1fr;
    }

    .personnel-donut {
        width: min(280px, 100%);
    }
}

@media print {
    .personnel-bar-chart,
    .personnel-horizontal-bars,
    .personnel-donut-layout {
        break-inside: avoid;
    }

    .personnel-donut-segment,
    .personnel-bar-track i,
    .personnel-horizontal-track i {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ==========================================================
   GAM Nexus 5 - Dialogo institucional
   ========================================================== */
.app-error-dialog {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(8, 56, 75, .18);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(3, 31, 45, .34);
}

.app-error-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 13px 16px;
    color: #fff;
    background: var(--navy);
}

.app-error-logo-wrap {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 46px;
    padding: 3px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
}

.app-error-logo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    transform: translateY(-5px);
    border-radius: inherit;
}

.app-error-header-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.app-error-header-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-error-header-copy strong {
    color: #fff;
    font-size: 1rem;
}

.app-error-header .app-error-close {
    position: static;
    flex: 0 0 auto;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .20);
}

.app-error-body {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    padding: 22px 24px 12px;
}

.app-error-body .app-error-icon {
    margin: 0;
}

.app-error-content h2 {
    margin: 1px 0 7px;
    color: var(--navy);
}

.app-error-message {
    margin: 0;
    white-space: pre-line;
}

.app-error-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 24px 22px;
}

.app-error-actions .button {
    min-width: 122px;
}

@media (max-width: 640px) {
    .app-dialog-backdrop {
        padding: 14px;
    }

    .app-error-header {
        min-height: 66px;
        padding: 11px 13px;
    }

    .app-error-logo-wrap {
        width: 48px;
        height: 40px;
        min-height: 40px;
        padding: 2px;
    }

    .app-error-body {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding: 18px 17px 10px;
    }

    .app-error-actions {
        padding: 8px 17px 17px;
    }

    .app-error-actions .button {
        width: 100%;
    }
}

/* Destino tecnico de foco despues de navegacion.
   Evita aplicar foco visual a encabezados o etiquetas de texto. */
.route-focus-target {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    outline: none;
}

.route-focus-target:focus {
    outline: none;
}

/* ============================================================
   GAMPULSE 1518 - PERFORMANCE REPORT FIX
   ============================================================ */


/* ------------------------------------------------------------
   BOTON IMPRIMIR
   AMBAR SUAVE + TEXTO NAVY
   ------------------------------------------------------------ */

.performance-print-button {
    color: #08384b !important;
    background: #f4c95d !important;
    border: 1px solid #deb344 !important;
    box-shadow:
        0 4px 12px rgba(184, 137, 31, .18);
}

.performance-print-button:hover {
    color: #062e3f !important;
    background: #f7d477 !important;
    border-color: #d7a936 !important;
    transform: translateY(-1px);
}

.performance-print-button:active {
    color: #062e3f !important;
    background: #edbd4c !important;
    transform: translateY(0);
}

.performance-print-button:focus-visible {
    outline:
        3px solid rgba(244, 201, 93, .35);
    outline-offset: 2px;
}


/* ------------------------------------------------------------
   TABLET / MOBILE
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    /*
       El reporte no puede quedar por encima
       del menu Mobile.
    */

    .topbar {
        z-index: 400 !important;
    }

    .menu-toggle {
        position: relative;
        z-index: 410 !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    .menu-scrim {
        z-index: 420 !important;
    }

    .sidebar {
        z-index: 430 !important;
    }


    /*
       Filtros
    */

    .performance-report-filters {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .performance-report-filters > * {
        min-width: 0;
        max-width: 100%;
    }

    .performance-report-filters input,
    .performance-report-filters select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .comparison-selector,
    .comparison-generate-row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }


    /*
       Documento
    */

    #performance-report-document {
        position: relative;
        z-index: 1;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    #performance-report-document *,
    #performance-report-document *::before,
    #performance-report-document *::after {
        box-sizing: border-box;
    }

    #performance-report-document > *,
    #performance-report-document .surface,
    #performance-report-document .report-chart-panel,
    #performance-report-document .comparison-report-table,
    #performance-report-document .performance-methodology {
        max-width: 100%;
        min-width: 0;
    }

    .performance-comparison-bars,
    .performance-report-table,
    .performance-radar-layout,
    .performance-radar,
    .performance-line-chart {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .performance-radar-layout {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    .performance-radar svg,
    .performance-line-chart svg {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}


/* ------------------------------------------------------------
   TELEFONO VERTICAL
   ------------------------------------------------------------ */

@media (max-width: 680px) {

    .performance-report-filters {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }


    /*
       Encabezado institucional
    */

    #performance-report-document
    .report-institutional-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #performance-report-document
    .report-institutional-brand {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #performance-report-document
    .report-institutional-brand img {
        flex: 0 0 auto;
        width: min(108px, 30vw) !important;
        max-width: 108px !important;
        height: auto !important;
    }

    #performance-report-document
    .report-institutional-brand > div {
        flex:
            1 1 180px;
        min-width: 0;
        max-width: 100%;
    }

    #performance-report-document
    .report-institutional-brand h2,
    #performance-report-document
    .report-institutional-brand p {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }


    /*
       Acciones
       Imprimir ambar
       Exportar PDF azul
    */

    #performance-report-document
    .report-actions {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #performance-report-document
    .report-actions .button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
    }


    /*
       KPIs una columna
       para evitar ancho de escritorio.
    */

    #performance-report-document
    .report-kpis {
        grid-template-columns:
            minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100%;
        max-width: 100%;
    }


    /*
       Cabeceras internas
    */

    #performance-report-document
    .section-heading {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 7px !important;
        min-width: 0;
        max-width: 100%;
    }


    /*
       Grafica de barras
    */

    .performance-comparison-bar {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .performance-comparison-bar > div,
    .performance-comparison-track {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .performance-comparison-bar strong,
    .performance-comparison-bar small {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }


    /*
       Linea
    */

    .performance-line-chart {
        overflow: hidden;
    }

    .report-line-labels {
        display: grid !important;
        grid-template-columns:
            repeat(
                auto-fit,
                minmax(70px, 1fr)
            ) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .report-line-labels span {
        min-width: 0;
        text-align: center;
    }

    .report-line-labels small {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }


    /*
       Radar
    */

    .performance-radar {
        width: min(100%, 320px) !important;
        margin-inline: auto;
    }

    .performance-radar-legend {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }


    /*
       Tabla comparativa -> tarjetas Mobile
    */

    .performance-report-header {
        display: none !important;
    }

    .performance-report-row {
        display: grid !important;
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
        gap: 11px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 14px !important;
    }

    .performance-report-row
    .employee-cell {
        grid-column:
            1 / -1;
        min-width: 0 !important;
        max-width: 100%;
    }

    .performance-report-row
    > span:not(.employee-cell)::before {
        content:
            attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: .49rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .performance-report-row
    .employee-cell > span {
        min-width: 0;
        max-width: 100%;
    }

    .performance-report-row
    .employee-cell strong,
    .performance-report-row
    .employee-cell small {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .performance-report-row
    .score-cell {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr) auto !important;
        gap: 7px;
        min-width: 0;
    }

    .performance-report-row
    .score-cell::before {
        grid-column:
            1 / -1;
    }


    /*
       Metodologia
    */

    .performance-methodology-grid {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }
}


/* ------------------------------------------------------------
   TELEFONOS MUY ANGOSTOS
   ------------------------------------------------------------ */

@media (max-width: 380px) {

    .performance-report-row {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    .performance-report-row
    .employee-cell {
        grid-column: auto;
    }
}


/* ------------------------------------------------------------
   IMPRESION
   ------------------------------------------------------------ */

@media print {

    #performance-report-document
    .report-actions {
        display: none !important;
    }
}

/* END GAMPULSE 1518 - PERFORMANCE REPORT FIX */

/* GAMPULSE 1518 - HTML2PDF COLOR COMPATIBILITY */

/*
   html2canvas/html2pdf no soporta algunas funciones
   CSS Color 4 que Chromium/WebView devuelve como color(...).

   El estilo general de la aplicacion conserva color-mix().
   Solamente el documento exportable usa un rgba clasico.
*/

#performance-report-document .avatar-initial {
    box-shadow:
        0 0 0 3px rgba(12, 83, 102, .14) !important;
}

/* END GAMPULSE 1518 - HTML2PDF COLOR COMPATIBILITY */

/* ============================================================
   GAMPULSE 1518 - REPORT PRINT COMPATIBILITY
   ============================================================ */

/*
   html2canvas incluido en html2pdf no interpreta
   correctamente algunas funciones CSS Color 4.

   La aplicacion conserva su estilo normal.
   Solamente el documento exportable usa una sombra RGBA
   tradicional.
*/

#performance-report-document
.avatar-initial {
    box-shadow:
        0 0 0 3px
        rgba(12, 83, 102, .14)
        !important;
}


/*
   Impresion Web y Windows WebView2:
   imprimir solamente el documento ejecutivo.
*/

@media print {

    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html,
    body {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    body * {
        visibility: hidden !important;
    }

    #performance-report-document,
    #performance-report-document * {
        visibility: visible !important;
    }

    #performance-report-document {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;

        border: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    #performance-report-document
    .report-actions {
        display: none !important;
    }
}

/* END GAMPULSE 1518 - REPORT PRINT COMPATIBILITY */


/* ============================================================
   DASHBOARD 1.5.19 - ACERCA DE GAM Nexus 5 ED
   ============================================================ */

.about-page {
    display: grid;
    gap: 18px;
}

.about-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 25px;
}

.about-hero img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(9,56,75,.14);
}

.about-hero h1 {
    margin-bottom: 6px;
}

.about-hero p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.about-section {
    padding: 23px;
}

.about-section > p:last-child {
    margin-bottom: 0;
}

.about-function-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.about-function-card {
    padding: 16px;
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.about-function-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy);
}

.about-function-card span {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.55;
}

.about-team {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.about-member {
    display: grid;
    grid-template-columns: 42px minmax(220px, .9fr) minmax(280px, 1.1fr);
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.about-member:first-child {
    background: linear-gradient(110deg, #eef8fa, #f8fbfc);
    border-color: #bedde5;
}

.about-rank {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--navy-2);
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 800;
}

.about-member strong {
    color: var(--navy);
    font-size: .76rem;
}

.about-member span:last-child {
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.45;
}

.about-version {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
}

.about-version strong {
    color: var(--navy);
}

.about-version span {
    color: var(--muted);
    font-size: .68rem;
}

@media (max-width: 850px) {
    .about-function-grid {
        grid-template-columns: 1fr;
    }

    .about-member {
        grid-template-columns: 38px 1fr;
    }

    .about-member span:last-child {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .about-hero {
        grid-template-columns: 1fr;
    }

    .about-hero img {
        width: 70px;
        height: 70px;
    }
}


/* ============================================================
   GAM Nexus 5 1519 FINAL VISUAL HOTFIX
   Login / MFA + Reporte de Personal
   ============================================================ */

/*
   LOGIN / MFA
   La imagen institucional debe mostrarse COMPLETA.
   Nunca recortar con cover.
*/
.login-hero-approved {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
}

/*
   Evitar que un contenedor del panel fuerce un recorte visual.
*/
.login-shell .login-hero-approved,
.login-page .login-hero-approved,
.auth-page .login-hero-approved {
    object-fit: contain !important;
    object-position: center center !important;
}

/*
   REPORTE DE PERSONAL
   Branding institucional visible en pantalla, impresión y PDF.
*/
.report-institutional-brand {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    min-width: 0 !important;
}

.report-institutional-brand > img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 320px !important;
    max-height: 90px !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.report-institutional-header {
    overflow: visible !important;
}

@media (max-width: 680px) {
    .report-institutional-brand {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .report-institutional-brand > img {
        max-width: min(100%, 280px) !important;
        max-height: 82px !important;
    }
}

@media print {
    .report-institutional-header,
    .report-institutional-brand {
        overflow: visible !important;
    }

    .report-institutional-brand > img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 260px !important;
        max-height: 78px !important;
        object-fit: contain !important;
        object-position: center center !important;
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
}

/* END GAM Nexus 5 1519 FINAL VISUAL HOTFIX */


/* ============================================================
   GAM Nexus 5 1519 LOGIN MFA X FIX FINAL

   OBJETIVO:
   - Expandir SOLO en X
   - Conservar altura Y
   - No recortar imagen
   - No dejar franja azul inferior
   - Aplicar Login y MFA
   ============================================================ */

.login-shell {
    width: min(1220px, 96vw) !important;
    max-width: 1220px !important;

    /*
       Mas ancho para imagen, sin aumentar altura.
    */
    grid-template-columns: 56% 44% !important;

    /*
       Evita que ambas columnas se estiren en Y.
    */
    align-items: start !important;
}

/*
   Panel izquierdo.
   No forzar altura contra el panel derecho.
*/
.login-visual {
    display: block !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    align-self: start !important;

    padding: 0 !important;
    margin: 0 !important;

    overflow: hidden !important;

    background: transparent !important;
}

/*
   Imagen institucional.
   Ocupa todo el ancho disponible,
   pero la altura depende de su proporcion real.
*/
.login-hero-approved {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    min-height: 0 !important;

    max-width: 100% !important;
    max-height: none !important;

    margin: 0 !important;

    object-fit: contain !important;
    object-position: top center !important;

    aspect-ratio: auto !important;
}

/*
   Blindaje contra reglas anteriores de cover/100%.
*/
.login-shell .login-visual .login-hero-approved {
    width: 100% !important;
    height: auto !important;

    object-fit: contain !important;
    object-position: top center !important;
}

/*
   Panel derecho conserva su altura natural.
*/
.login-panel {
    height: auto !important;
    align-self: start !important;
}

/*
   Pantallas angostas:
   comportamiento existente en una sola columna.
*/
@media (max-width: 900px) {

    .login-shell {
        grid-template-columns: 1fr !important;
        width: min(680px, 94vw) !important;
    }

    .login-visual {
        display: none !important;
    }
}

/* END GAM Nexus 5 1519 LOGIN MFA X FIX FINAL */


/* ============================================================
   GAM Nexus 5 1519 REPORT NOT BLANK CSS FINAL

   OBJETIVO:
   - evitar reporte blanco;
   - visibilidad del documento;
   - logo institucional centrado;
   - cabecera limpia para PDF/print.
   ============================================================ */

.report-institutional-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    overflow: visible !important;
}

.report-institutional-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 16px auto !important;
    overflow: visible !important;
}

.report-institutional-brand > img,
.report-institutional-brand img {
    display: block !important;
    margin: 0 auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 280px !important;
    max-height: 90px !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: 1 !important;
}

@media print {

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        min-height: 100% !important;
        background: #ffffff !important;
    }

    body * {
        visibility: hidden !important;
    }

    #activity-report-document,
    #personnel-report-document,
    #performance-report-document,
    #activity-report-document *,
    #personnel-report-document *,
    #performance-report-document * {
        visibility: visible !important;
    }

    #activity-report-document,
    #personnel-report-document,
    #performance-report-document {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 10mm !important;
        overflow: visible !important;
        background: #ffffff !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    .report-actions,
    .performance-print-button,
    [data-html2canvas-ignore="true"] {
        display: none !important;
        visibility: hidden !important;
    }

    .report-document,
    .report-document * {
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }

    @page {
        size: A4;
        margin: 8mm;
    }
}

/* END GAM Nexus 5 1519 REPORT NOT BLANK CSS FINAL */


/* ============================================================
   GAM Nexus 5 1519 TINIEBLAS KILLER FINAL

   OBJETIVO:
   - La altura del card la determina SOLO la imagen.
   - Imagen completa, sin crop y sin deformacion.
   - Panel Login/MFA ocupa exactamente la misma altura.
   - Si MFA necesita mas espacio, hace scroll interno.
   - CERO BLOQUE BLANCO INFERIOR.
   ============================================================ */

@media (min-width: 901px) {

    /*
       El shell deja de ser grid.

       Su altura la produce exclusivamente login-visual,
       que contiene la imagen en flujo normal.
    */
    .login-shell {
        position: relative !important;

        display: block !important;

        width: min(1220px, 96vw) !important;
        max-width: 1220px !important;

        min-height: 0 !important;
        height: auto !important;

        padding: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;

        overflow: hidden !important;

        background: #ffffff !important;

        border-radius: 25px !important;
    }

    /*
       Lado izquierdo:
       permanece en flujo normal y define la altura.
    */
    .login-visual {
        position: relative !important;

        display: block !important;

        width: 56% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 0 !important;
        margin: 0 !important;

        overflow: hidden !important;

        background: transparent !important;
    }

    /*
       Imagen:
       ancho completo y altura NATURAL.
    */
    .login-hero-approved {
        position: relative !important;

        display: block !important;

        width: 100% !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: 100% !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: top center !important;

        aspect-ratio: auto !important;
    }

    /*
       El panel derecho sale del flujo normal.

       Por eso NO puede aumentar la altura del shell.
       Queda exactamente entre top:0 y bottom:0.
    */
    .login-panel {
        position: absolute !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;

        width: 44% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        box-sizing: border-box !important;

        padding:
            clamp(24px, 3vw, 42px)
            clamp(30px, 3.4vw, 48px) !important;

        margin: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        background: #ffffff !important;
    }

    /*
       Login normal:
       compactar espacios sin cambiar funcionalidad.
    */
    .login-panel .login-product {
        margin-bottom: 28px !important;
    }

    .login-panel .eyebrow {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }

    .login-panel h2 {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }

    .login-panel .login-field {
        margin-top: 10px !important;
    }

    .login-panel .login-button {
        margin-top: 14px !important;
    }

    .login-panel .login-note {
        margin-top: 9px !important;
    }

    /*
       MFA:
       misma altura exacta de la imagen.

       Si enrolamiento/QR requiere mas alto,
       SOLO scrollea el lado derecho.
    */
    .login-panel.mfa-panel {
        justify-content: flex-start !important;
        overflow-y: auto !important;
        scrollbar-gutter: stable !important;
    }

    .login-panel.mfa-panel .login-product {
        margin-bottom: 24px !important;
    }
}

/*
   Mobile/tablet conserva flujo normal.
   No usamos posicion absoluta.
*/
@media (max-width: 900px) {

    .login-shell {
        position: relative !important;

        display: grid !important;

        width: min(680px, 94vw) !important;
        max-width: 680px !important;

        min-height: 0 !important;
        height: auto !important;

        grid-template-columns: 1fr !important;
    }

    .login-visual {
        display: none !important;
    }

    .login-panel,
    .login-panel.mfa-panel {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;

        min-height: 0 !important;
        height: auto !important;

        overflow: visible !important;

        padding: 30px 24px !important;
    }
}

/* END GAM Nexus 5 1519 TINIEBLAS KILLER FINAL */


/* ============================================================
   GAM Nexus 5 1519 LOGIN MFA VERTICAL BALANCE FINAL

   LOGIN Y MFA:
   - misma altura que imagen izquierda;
   - margen superior = margen inferior;
   - contenido centrado en Y;
   - sin bloque blanco;
   - sin deformar imagen.
   ============================================================ */

@media (min-width: 901px) {

    /*
       Ambos paneles usan exactamente la altura
       determinada por la imagen izquierda.
    */
    .login-panel,
    .login-panel.mfa-panel {
        position: absolute !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;

        width: 44% !important;

        min-height: 0 !important;
        height: auto !important;

        box-sizing: border-box !important;

        /*
           MISMA DISTANCIA ARRIBA Y ABAJO.
        */
        padding-top: 36px !important;
        padding-bottom: 36px !important;

        padding-left: clamp(30px, 3.4vw, 48px) !important;
        padding-right: clamp(30px, 3.4vw, 48px) !important;

        margin: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        /*
           Centra el stack completo de elementos.
           Resultado:
           aire superior = aire inferior.
        */
        justify-content: center !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        background: #ffffff !important;
    }

    /*
       Ritmo común Login + MFA.
    */
    .login-panel .login-product,
    .login-panel.mfa-panel .login-product {
        margin-top: 0 !important;
        margin-bottom: 22px !important;
    }

    .login-panel .eyebrow,
    .login-panel.mfa-panel .eyebrow {
        margin-top: 0 !important;
        margin-bottom: 7px !important;
    }

    .login-panel h2,
    .login-panel.mfa-panel h2 {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
        line-height: 1.16 !important;
    }

    .login-panel .login-field,
    .login-panel.mfa-panel .login-field {
        margin-top: 10px !important;
    }

    .login-panel .login-button,
    .login-panel.mfa-panel .login-button {
        margin-top: 14px !important;
    }

    .login-panel .login-note,
    .login-panel.mfa-panel .login-note {
        margin-top: 9px !important;
        margin-bottom: 0 !important;
    }

    /*
       MFA puede ser mas largo por QR/enrolamiento.
       Conserva scroll interno si alguna variante lo requiere,
       pero mientras quepa permanece centrado.
    */
    .login-panel.mfa-panel {
        scrollbar-gutter: stable !important;
    }
}

/*
   Pantallas pequenas:
   layout natural de una columna.
*/
@media (max-width: 900px) {

    .login-panel,
    .login-panel.mfa-panel {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;

        min-height: 0 !important;
        height: auto !important;

        padding: 30px 24px !important;

        overflow: visible !important;
    }
}

/* END GAM Nexus 5 1519 LOGIN MFA VERTICAL BALANCE FINAL */


/* ============================================================
   GAM Nexus 5 1519 LOGIN MFA REAL MARINA LOGO FINAL

   - Imagen completa arriba.
   - Segmento blanco inferior.
   - Logo institucional real centrado.
   - Login y MFA.
   ============================================================ */

@media (min-width: 901px) {

    .login-shell {
        display: grid !important;
        grid-template-columns: minmax(0, 56%) minmax(0, 44%) !important;

        width: min(1220px, 96vw) !important;
        max-width: 1220px !important;

        min-height: 620px !important;
        height: auto !important;

        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;

        align-items: stretch !important;

        overflow: hidden !important;
        background: #ffffff !important;
        border-radius: 28px !important;
    }

    .login-visual {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        min-height: 100% !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;
        overflow: hidden !important;
    }

    .login-hero-approved {
        display: block !important;

        width: 100% !important;
        height: auto !important;

        max-width: 100% !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: top center !important;

        flex: 0 0 auto !important;
    }

    /*
       BLOQUE BLANCO INFERIOR
       con el logo institucional REAL que ya existe.
    */
    .login-visual::after {
        content: "" !important;

        display: block !important;

        flex: 1 1 auto !important;
        min-height: 165px !important;

        background-color: #ffffff !important;

        background-image:
            url("_content/GAMPulse.UI/brand/gam-aicm-lockup.jpg") !important;

        background-repeat: no-repeat !important;
        background-position: center center !important;

        /*
           Tamaño institucional sobrio.
        */
        background-size: min(52%, 280px) auto !important;
    }

    .login-panel,
    .login-panel.mfa-panel {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;

        min-height: 100% !important;
        height: auto !important;

        box-sizing: border-box !important;

        padding-top: 34px !important;
        padding-bottom: 34px !important;

        padding-left: clamp(28px, 3.2vw, 44px) !important;
        padding-right: clamp(28px, 3.2vw, 44px) !important;

        margin: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;

        overflow-x: hidden !important;
        overflow-y: visible !important;

        background: #ffffff !important;
    }
}

@media (max-width: 900px) {

    .login-shell {
        display: grid !important;
        grid-template-columns: 1fr !important;

        width: min(680px, 94vw) !important;
        max-width: 680px !important;

        min-height: 0 !important;
        height: auto !important;
    }

    .login-visual {
        display: none !important;
    }

    .login-panel,
    .login-panel.mfa-panel {
        position: relative !important;

        width: 100% !important;

        min-height: 0 !important;
        height: auto !important;

        padding: 30px 24px !important;

        overflow: visible !important;
    }
}

/* END GAM Nexus 5 1519 LOGIN MFA REAL MARINA LOGO FINAL */


/* ============================================================
   GAM Nexus 5 1519 REAL DOM MARINA LOGO FINAL

   Logo institucional como elemento HTML real.
   Evita dependencia de pseudo-elemento/background WebView2.
   ============================================================ */

@media (min-width: 901px) {

    /*
       Desactivar completamente el mecanismo anterior.
    */
    .login-visual::after {
        content: none !important;
        display: none !important;
        background-image: none !important;
        min-height: 0 !important;
        flex: 0 0 0 !important;
    }

    /*
       Segmento blanco REAL debajo de la imagen.
    */
    .login-brand-fill {
        display: flex !important;
        flex: 1 1 auto !important;

        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-height: 165px !important;

        box-sizing: border-box !important;

        padding: 20px 28px !important;
        margin: 0 !important;

        background: #ffffff !important;

        overflow: hidden !important;
    }

    /*
       Imagen institucional REAL.
    */
    .login-brand-fill > img {
        display: block !important;

        width: 52% !important;
        max-width: 280px !important;

        height: auto !important;
        max-height: 125px !important;

        margin: 0 auto !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center center !important;

        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 900px) {

    .login-brand-fill {
        display: none !important;
    }
}

/* END GAM Nexus 5 1519 REAL DOM MARINA LOGO FINAL */


/* ============================================================
   GAM Nexus 5 1519 WEB MOBILE UI STANDARD FINAL

   DESKTOP / WEB:
   - conserva distribucion Windows aprobada;
   - imagen izquierda;
   - franja blanca inferior;
   - logo institucional como background.

   MOBILE:
   - layout vertical;
   - imagen arriba;
   - franja blanca con logo debajo;
   - Login / MFA despues.
   ============================================================ */


/* ------------------------------------------------------------
   DESKTOP / WEB
   Solo normalizamos la ruta fisica del background.
   No alteramos la geometria aprobada en Windows.
   ------------------------------------------------------------ */

@media (min-width: 901px) {

    .login-brand-fill {
        background-image:
            url("../brand/gam-aicm-lockup.jpg") !important;

        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: min(52%, 280px) auto !important;

        background-color: #ffffff !important;
    }
}


/* ------------------------------------------------------------
   MOBILE / RESPONSIVE
   Imagen -> Logo -> Formulario
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    /*
       Tarjeta vertical completa.
    */
    .login-shell {
        position: relative !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;

        width: min(520px, 94vw) !important;
        max-width: 520px !important;

        min-height: 0 !important;
        height: auto !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding: 0 !important;

        border-radius: 22px !important;

        overflow: hidden !important;

        background: #ffffff !important;
    }

    /*
       En Mobile YA NO se oculta la parte visual.
    */
    .login-visual {
        position: relative !important;

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;

        overflow: hidden !important;
    }

    /*
       Imagen GAM Nexus 5 completa arriba.
    */
    .login-hero-approved {
        position: relative !important;

        display: block !important;

        width: 100% !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: 100% !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: top center !important;

        flex: 0 0 auto !important;
    }

    /*
       Franja institucional Mobile.

       Menor que desktop para no consumir
       demasiado espacio vertical.
    */
    .login-brand-fill {
        display: block !important;

        width: 100% !important;

        flex: 0 0 108px !important;
        min-height: 108px !important;
        height: 108px !important;

        margin: 0 !important;
        padding: 0 !important;

        background-color: #ffffff !important;

        background-image:
            url("../brand/gam-aicm-lockup.jpg") !important;

        background-repeat: no-repeat !important;
        background-position: center center !important;

        background-size:
            min(42%, 165px) auto !important;

        opacity: 1 !important;
        visibility: visible !important;

        overflow: hidden !important;
    }

    /*
       Deshabilitar cualquier pseudo-elemento heredado.
    */
    .login-visual::after {
        content: none !important;
        display: none !important;
        background: none !important;
        background-image: none !important;
    }

    /*
       Formulario debajo del branding.
    */
    .login-panel,
    .login-panel.mfa-panel {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;

        min-height: 0 !important;
        height: auto !important;

        box-sizing: border-box !important;

        padding:
            26px
            22px
            30px
            22px !important;

        margin: 0 !important;

        justify-content: flex-start !important;

        overflow-x: hidden !important;
        overflow-y: visible !important;

        background: #ffffff !important;
    }

    /*
       Ajuste de ritmo para telefono.
    */
    .login-panel .login-product,
    .login-panel.mfa-panel .login-product {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    .login-panel h2,
    .login-panel.mfa-panel h2 {
        line-height: 1.16 !important;
    }

    .login-panel .login-button,
    .login-panel.mfa-panel .login-button {
        width: 100% !important;
    }
}


/* ------------------------------------------------------------
   TELEFONOS MAS ANGOSTOS
   ------------------------------------------------------------ */

@media (max-width: 480px) {

    .login-shell {
        width: 96vw !important;
        border-radius: 18px !important;
    }

    .login-brand-fill {
        flex-basis: 92px !important;
        min-height: 92px !important;
        height: 92px !important;

        background-size:
            min(44%, 145px) auto !important;
    }

    .login-panel,
    .login-panel.mfa-panel {
        padding:
            22px
            18px
            26px
            18px !important;
    }
}

/* END GAM Nexus 5 1519 WEB MOBILE UI STANDARD FINAL */


/* ============================================================
   GAM Nexus 5 1519 WEB MOBILE STANDARD FINAL

   DESKTOP WEB:
   Imagen izquierda + zona blanca inferior con logo Marina.

   MOBILE:
   Imagen arriba + zona blanca con logo Marina + formulario.
   ============================================================ */


/* ============================================================
   WEB / DESKTOP
   No cambiamos la geometria que ya fue aprobada en Windows.
   Solo usamos ruta relativa CSS -> brand.
   ============================================================ */

@media (min-width: 901px) {

    .login-brand-fill {
        background-color: #ffffff !important;

        background-image:
            url("../brand/gam-aicm-lockup.jpg") !important;

        background-repeat: no-repeat !important;
        background-position: center center !important;

        background-size:
            min(52%, 280px) auto !important;

        opacity: 1 !important;
        visibility: visible !important;
    }
}


/* ============================================================
   MOBILE
   Imagen -> Marina -> formulario
   ============================================================ */

@media (max-width: 900px) {

    .login-shell {
        position: relative !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;

        width: min(520px, 94vw) !important;
        max-width: 520px !important;

        min-height: 0 !important;
        height: auto !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding: 0 !important;

        overflow: hidden !important;

        border-radius: 22px !important;
        background: #ffffff !important;
    }

    /*
       En Mobile mostramos nuevamente la zona visual.
    */
    .login-visual {
        position: relative !important;

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;

        min-height: 0 !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;

        background: #ffffff !important;
    }

    /*
       Imagen GAM Nexus 5 arriba.
    */
    .login-hero-approved {
        position: relative !important;

        display: block !important;

        width: 100% !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: 100% !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: top center !important;

        flex: 0 0 auto !important;
    }

    /*
       Zona institucional bajo la imagen.
       Logo como BACKGROUND, igual que desktop.
    */
    .login-brand-fill {
        display: block !important;

        flex: 0 0 108px !important;

        width: 100% !important;

        min-height: 108px !important;
        height: 108px !important;

        margin: 0 !important;
        padding: 0 !important;

        background-color: #ffffff !important;

        background-image:
            url("../brand/gam-aicm-lockup.jpg") !important;

        background-repeat: no-repeat !important;
        background-position: center center !important;

        background-size:
            min(42%, 165px) auto !important;

        opacity: 1 !important;
        visibility: visible !important;

        overflow: hidden !important;
    }

    /*
       Apagamos cualquier mecanismo anterior.
    */
    .login-visual::after {
        content: none !important;

        display: none !important;

        background: none !important;
        background-image: none !important;

        min-height: 0 !important;
    }

    /*
       Formulario abajo.
    */
    .login-panel,
    .login-panel.mfa-panel {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;

        min-height: 0 !important;
        height: auto !important;

        box-sizing: border-box !important;

        padding:
            26px
            22px
            30px
            22px !important;

        margin: 0 !important;

        justify-content: flex-start !important;

        overflow-x: hidden !important;
        overflow-y: visible !important;

        background: #ffffff !important;
    }

    .login-panel .login-product,
    .login-panel.mfa-panel .login-product {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    .login-panel h2,
    .login-panel.mfa-panel h2 {
        line-height: 1.16 !important;
    }

    .login-panel .login-button,
    .login-panel.mfa-panel .login-button {
        width: 100% !important;
    }
}


/* Telefonos angostos */

@media (max-width: 480px) {

    .login-shell {
        width: 96vw !important;
        border-radius: 18px !important;
    }

    .login-brand-fill {
        flex-basis: 92px !important;

        min-height: 92px !important;
        height: 92px !important;

        background-size:
            min(44%, 145px) auto !important;
    }

    .login-panel,
    .login-panel.mfa-panel {
        padding:
            22px
            18px
            26px
            18px !important;
    }
}

/* END GAM Nexus 5 1519 WEB MOBILE STANDARD FINAL */

/* GAM Nexus 5 1519 LOGO TUNING FINAL START
   Ajuste fino:
   - Desktop/Web: reducir un poco hero image y logo MARINA
   - Mobile: reducir logo MARINA y mejorar acomodo
*/
@media (min-width: 901px) {

    .login-hero-approved {
        display: block !important;
        width: calc(100% - 38px) !important;
        max-width: calc(100% - 38px) !important;
        margin: 0 auto !important;
    }

    .login-brand-fill {
        display: block !important;
        width: 100% !important;
        min-height: 148px !important;
        background-color: #ffffff !important;
        background-image: url("../brand/gam-aicm-lockup.jpg") !important;
        background-repeat: no-repeat !important;
        background-position: center 60% !important;
        background-size: min(35%, 190px) auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 900px) {

    .login-hero-approved {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .login-brand-fill {
        display: block !important;
        width: 100% !important;
        min-height: 122px !important;
        background-color: #ffffff !important;
        background-image: url("../brand/gam-aicm-lockup.jpg") !important;
        background-repeat: no-repeat !important;
        background-position: center 60% !important;
        background-size: min(29%, 128px) auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
/* GAM Nexus 5 1519 LOGO TUNING FINAL END */

/* GAM Nexus 5 1519 CANONICAL LOGIN MFA START

   REGLA FINAL DE GEOMETRIA LOGIN + MFA

   WEB / DESKTOP
   - tarjeta centrada
   - 54% visual / 46% formulario
   - imagen completa
   - logo MARINA en bloque blanco inferior

   MOBILE
   - una sola columna
   - imagen
   - logo
   - formulario
   - sin desplazamiento horizontal
*/

.login-shell,
.login-shell * {
    box-sizing: border-box !important;
}


/* ============================================================
   WEB / DESKTOP
   ============================================================ */

@media (min-width: 901px) {

    .login-shell {
        position: relative !important;

        display: grid !important;
        grid-template-columns:
            minmax(0, 54%)
            minmax(0, 46%) !important;

        width: min(1180px, 94vw) !important;
        max-width: 1180px !important;

        min-width: 0 !important;

        min-height: 620px !important;
        height: auto !important;

        margin:
            32px
            auto !important;

        padding: 0 !important;

        align-items: stretch !important;

        overflow: hidden !important;

        background: #ffffff !important;

        border-radius: 28px !important;

        transform: none !important;

        left: auto !important;
        right: auto !important;
    }


    .login-visual {
        position: relative !important;

        display: flex !important;
        flex-direction: column !important;

        align-self: stretch !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: 100% !important;
        min-height: 620px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;

        background: #ffffff !important;

        transform: none !important;
    }


    .login-hero-approved,
    .login-shell .login-hero-approved {
        position: relative !important;

        display: block !important;

        flex: 0 0 auto !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        max-height: none !important;

        min-width: 0 !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: top center !important;

        transform: none !important;
    }


    /*
       Logo institucional.
       Asset YA APROBADO.
    */
    .login-brand-fill {
        position: relative !important;

        display: block !important;

        flex: 1 1 auto !important;

        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;
        min-height: 145px !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        background-color: #ffffff !important;

        background-image:
            url("../brand/gam-aicm-lockup.jpg") !important;

        background-repeat: no-repeat !important;
        background-position: center center !important;

        background-size:
            145px auto !important;

        opacity: 1 !important;
        visibility: visible !important;

        overflow: hidden !important;

        transform: none !important;
    }


    /*
       Matar cualquier pseudo-elemento viejo.
    */
    .login-visual::before,
    .login-visual::after {
        content: none !important;
        display: none !important;

        width: 0 !important;
        height: 0 !important;

        min-width: 0 !important;
        min-height: 0 !important;

        background: none !important;
        background-image: none !important;
    }


    .login-panel,
    .login-panel.mfa-panel {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: flex !important;
        flex-direction: column !important;

        justify-content: center !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        min-height: 620px !important;
        height: auto !important;

        margin: 0 !important;

        padding:
            34px
            clamp(30px, 3.3vw, 46px) !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        background: #ffffff !important;

        transform: none !important;
    }


    .login-panel input,
    .login-panel button,
    .login-panel .login-button,
    .login-panel.mfa-panel input,
    .login-panel.mfa-panel button,
    .login-panel.mfa-panel .login-button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px) {

    .login-shell {
        position: relative !important;

        display: block !important;

        width: calc(100% - 24px) !important;
        max-width: 520px !important;
        min-width: 0 !important;

        height: auto !important;
        min-height: 0 !important;

        margin:
            22px
            auto
            30px
            auto !important;

        padding: 0 !important;

        overflow: hidden !important;

        background: #ffffff !important;

        border-radius: 22px !important;

        transform: none !important;

        left: auto !important;
        right: auto !important;
    }


    .login-visual {
        position: relative !important;

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;

        background: #ffffff !important;

        transform: none !important;
    }


    .login-hero-approved,
    .login-shell .login-hero-approved {
        position: relative !important;

        display: block !important;

        flex: 0 0 auto !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        max-height: none !important;

        min-width: 0 !important;
        min-height: 0 !important;

        margin: 0 auto !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: top center !important;

        transform: none !important;
    }


    /*
       Logo institucional:
       mismo asset aprobado,
       ligeramente mas pequeno en telefono.
    */
    .login-brand-fill {
        position: relative !important;

        display: block !important;

        flex: 0 0 104px !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: 104px !important;
        min-height: 104px !important;

        margin: 0 !important;
        padding: 0 !important;

        background-color: #ffffff !important;

        background-image:
            url("../brand/gam-aicm-lockup.jpg") !important;

        background-repeat: no-repeat !important;
        background-position: center center !important;

        background-size:
            118px auto !important;

        opacity: 1 !important;
        visibility: visible !important;

        overflow: hidden !important;

        transform: none !important;
    }


    .login-visual::before,
    .login-visual::after {
        content: none !important;
        display: none !important;

        width: 0 !important;
        height: 0 !important;

        min-width: 0 !important;
        min-height: 0 !important;

        background: none !important;
        background-image: none !important;
    }


    .login-panel,
    .login-panel.mfa-panel {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;

        padding:
            26px
            20px
            32px
            20px !important;

        overflow-x: hidden !important;
        overflow-y: visible !important;

        background: #ffffff !important;

        transform: none !important;
    }


    .login-panel input,
    .login-panel button,
    .login-panel .login-button,
    .login-panel.mfa-panel input,
    .login-panel.mfa-panel button,
    .login-panel.mfa-panel .login-button {
        width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box !important;
    }


    .login-panel .login-product,
    .login-panel.mfa-panel .login-product {
        max-width: 100% !important;
        min-width: 0 !important;
    }


    .login-panel h1,
    .login-panel h2,
    .login-panel p,
    .login-panel.mfa-panel h1,
    .login-panel.mfa-panel h2,
    .login-panel.mfa-panel p {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }
}


/* ============================================================
   TELEFONOS ANGOSTOS
   ============================================================ */

@media (max-width: 480px) {

    .login-shell {
        width: calc(100% - 16px) !important;

        margin-top: 14px !important;

        border-radius: 18px !important;
    }


    .login-brand-fill {
        flex-basis: 92px !important;

        height: 92px !important;
        min-height: 92px !important;

        background-size:
            108px auto !important;
    }


    .login-panel,
    .login-panel.mfa-panel {
        padding:
            22px
            18px
            28px
            18px !important;
    }
}

/* GAM Nexus 5 1519 CANONICAL LOGIN MFA END */

/* GAM Nexus 5 1519 PERSONNEL REPORT LOGO V2 START */


/* ------------------------------------------------------------
   ESTADO PREVIO AL REPORTE
   ------------------------------------------------------------ */

.report-empty-state > .empty-code {
    display: none !important;
}


/* ------------------------------------------------------------
   CABECERA DEL REPORTE PERSONAL
   ------------------------------------------------------------ */

#personnel-report-document .report-institutional-header {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;

    overflow: visible !important;

    background: #ffffff !important;
    background-color: #ffffff !important;

    text-align: center !important;
}


#personnel-report-document .report-institutional-brand {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto 14px auto !important;
    padding: 0 !important;

    overflow: visible !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 0 !important;

    box-shadow: none !important;

    text-align: center !important;
}


#personnel-report-document
.report-institutional-brand::before,

#personnel-report-document
.report-institutional-brand::after {

    content: none !important;

    display: none !important;

    width: 0 !important;
    height: 0 !important;

    background: none !important;
}


/* ------------------------------------------------------------
   LOGO EXCLUSIVO
   ------------------------------------------------------------ */

#personnel-report-document
img.personnel-report-logo {

    position: relative !important;

    z-index: 100 !important;

    display: block !important;

    width: 165px !important;
    height: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 165px !important;
    max-height: none !important;

    margin: 0 auto 10px auto !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 0 !important;

    outline: 0 !important;

    box-shadow: none !important;

    opacity: 1 !important;

    filter: none !important;
    backdrop-filter: none !important;

    mix-blend-mode: normal !important;

    transform: none !important;

    clip-path: none !important;

    mask: none !important;
    -webkit-mask: none !important;

    overflow: visible !important;
}


#personnel-report-document
.report-institutional-brand
> div {

    position: relative !important;

    z-index: 10 !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    text-align: center !important;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 680px) {

    #personnel-report-document
    img.personnel-report-logo {

        width: 125px !important;
        max-width: 125px !important;

        margin-bottom: 8px !important;
    }
}


/* ------------------------------------------------------------
   PRINT
   ------------------------------------------------------------ */

@media print {

    #personnel-report-document
    .report-institutional-header,

    #personnel-report-document
    .report-institutional-brand {

        overflow: visible !important;

        background: #ffffff !important;
        background-color: #ffffff !important;
    }


    #personnel-report-document
    img.personnel-report-logo {

        display: block !important;

        width: 145px !important;
        height: auto !important;

        max-width: 145px !important;
        max-height: none !important;

        margin: 0 auto 8px auto !important;

        background: transparent !important;
        background-color: transparent !important;

        border: 0 !important;

        box-shadow: none !important;

        filter: none !important;

        opacity: 1 !important;

        transform: none !important;

        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
}


/* GAM Nexus 5 1519 PERSONNEL REPORT LOGO V2 END */

/* ============================================================
   GAM Nexus 5 - v1.5.20 build 77 - CAMPANITA DE NOTIFICACIONES
   ============================================================ */

.notification-button.is-open {
    background: #f1f7f8;
    box-shadow: inset 0 0 0 1px rgba(8,56,75,.10);
}

.notification-button span {
    width: auto;
    min-width: 18px;
    padding: 0 4px;
    border-radius: 999px;
}

.notification-scrim {
    position: fixed;
    z-index: 125;
    inset: 0;
    background: transparent;
}

.notification-popover {
    position: absolute;
    z-index: 130;
    top: calc(100% - 7px);
    right: 84px;
    width: min(410px, calc(100vw - 24px));
    max-height: min(72vh, 600px);
    display: flex;
    flex-direction: column;
    padding: 16px 16px 10px;
    color: var(--ink);
    background: rgba(255,255,255,.99);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(8,46,63,.18);
    backdrop-filter: blur(18px);
}

.notification-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 26px;
    width: 13px;
    height: 13px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    transform: rotate(45deg);
}

.notification-popover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.notification-popover-head > div {
    display: grid;
    gap: 3px;
}

.notification-popover-head strong {
    color: var(--navy);
    font-size: .92rem;
}

.notification-popover-head small {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
}

.notification-mark-all {
    align-self: flex-end;
    margin: 10px 0 4px;
    padding: 6px 10px;
    color: var(--teal);
    background: var(--cyan-soft);
    border: 1px solid #d3e9f3;
    border-radius: 9px;
    cursor: pointer;
    font-size: .66rem;
    font-weight: 800;
}

.notification-mark-all:hover { background: #def0f8; }
.notification-mark-all:disabled { opacity: .6; cursor: progress; }

.notification-list {
    min-height: 0;
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding-right: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notification-empty {
    margin: 0;
    padding: 26px 10px;
    color: var(--muted);
    font-size: .74rem;
    text-align: center;
}

.notification-empty p { margin: 0 0 6px; }

.notification-item {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: start;
    gap: 11px;
    padding: 11px 26px 11px 10px;
    color: var(--ink);
    text-align: left;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
}

.notification-item:hover {
    background: #f6fafb;
    border-color: var(--line);
}

.notification-item.is-unread {
    background: #f2f9fc;
    border-color: #d9edf6;
}

.notification-kind {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--navy-2);
    background: var(--cyan-soft);
    border-radius: 11px;
}

.notification-kind svg { width: 17px; height: 17px; }
.notification-kind.kind-assigned   { color: #195d49; background: var(--success-soft); }
.notification-kind.kind-comment    { color: var(--navy-2); background: var(--cyan-soft); }
.notification-kind.kind-evidence   { color: #6a4b9a; background: #f1ecfa; }
.notification-kind.kind-status     { color: #8a5d12; background: var(--warning-soft); }
.notification-kind.kind-assignment { color: var(--teal); background: #e5f4f6; }
.notification-kind.kind-progress   { color: var(--success); background: var(--success-soft); }
.notification-kind.kind-details    { color: #8b3442; background: var(--danger-soft); }

.notification-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.notification-body strong {
    color: var(--navy);
    font-size: .74rem;
}

.notification-body > span {
    color: var(--ink);
    font-size: .72rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.notification-body em {
    color: var(--teal);
    font-size: .64rem;
    font-style: normal;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.notification-body small {
    color: var(--muted);
    font-size: .6rem;
}

.notification-dot {
    position: absolute;
    top: 15px;
    right: 11px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

/* NOTIFICATION_HISTORY_1522: historico compartido Web + MAUI. */
.notification-item.is-history {
    padding-right: 10px;
    background: #fbfcfd;
}

.notification-history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.notification-history-actions.is-history {
    justify-content: space-between;
}

.notification-history-button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    color: var(--navy-2);
    background: var(--cyan-soft);
    border: 1px solid #d3e9f3;
    border-radius: 9px;
    cursor: pointer;
    font-size: .66rem;
    font-weight: 800;
}

.notification-history-button:hover:not(:disabled) {
    background: #def0f8;
}

.notification-history-button.is-secondary {
    color: var(--muted);
    background: #fff;
    border-color: var(--line);
}

.notification-history-button:disabled {
    opacity: .6;
    cursor: progress;
}

.notification-history-list {
    min-height: 120px;
}

@media (max-width: 720px) {
    .notification-popover {
        position: fixed;
        top: calc(var(--topbar) + 4px);
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - var(--topbar) - 100px);
    }

    .notification-popover::before { display: none; }
}

/* En telefonos la campanita tambien se muestra (antes estaba oculta). */
@media (max-width: 680px) {
    .notification-button {
        width: 36px;
        height: 36px;
        display: grid;
    }
}

/* ============================================================
   WEB_DING_DONG_1521 - TOAST DE NOTIFICACION WEB
   ============================================================ */

.web-notification-toast {
    position: fixed;
    z-index: 180;
    top: calc(var(--topbar) + 16px);
    right: 18px;
    width: min(430px, calc(100vw - 36px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: start;
    overflow: hidden;
    color: var(--ink);
    background: rgba(255,255,255,.99);
    border: 1px solid #d9edf6;
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(8,46,63,.22);
    backdrop-filter: blur(18px);
    animation: web-notification-toast-in .22s ease-out;
}

.web-notification-toast-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 13px 8px 13px 13px;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.web-notification-toast-main:hover {
    background: #f6fafb;
}

.web-notification-toast-main .notification-kind {
    width: 38px;
    height: 38px;
}

.web-notification-toast-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.web-notification-toast-body small {
    color: var(--teal);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.web-notification-toast-body strong {
    color: var(--navy);
    font-size: .82rem;
}

.web-notification-toast-body > span {
    color: var(--ink);
    font-size: .74rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.web-notification-toast-body em {
    color: var(--teal);
    font-size: .66rem;
    font-style: normal;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.web-notification-toast-body b {
    width: max-content;
    margin-top: 4px;
    color: var(--navy-2);
    font-size: .66rem;
    font-weight: 900;
}

.web-notification-toast-close {
    width: 34px;
    height: 34px;
    margin: 7px 7px 0 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
}

.web-notification-toast-close:hover {
    color: var(--navy);
    background: #eef5f7;
}

@keyframes web-notification-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    .web-notification-toast {
        top: calc(var(--topbar) + 8px);
        left: 10px;
        right: 10px;
        width: auto;
    }
}

/* WEB_REFRESH_1521 + WINDOWS_REFRESH_1521: boton Actualizar (Web + Windows).
   Mismo amarillo crema que el boton IMPRIMIR de reportes (.performance-print-button). */
.refresh-button {
    color: #08384b;
    background: #f4c95d;
    border: 1px solid #deb344;
    box-shadow: 0 4px 12px rgba(184, 137, 31, .18);
}
.refresh-button:hover:not(:disabled) {
    color: #062e3f;
    background: #f7d477;
    border-color: #d7a936;
}
.refresh-button:active:not(:disabled) {
    color: #062e3f;
    background: #edbd4c;
}
.refresh-button:focus-visible {
    outline: 3px solid rgba(244, 201, 93, .35);
    outline-offset: 2px;
}
.refresh-button:disabled { cursor: progress; opacity: .8; }
.refresh-button.is-busy svg { animation: app-busy-spin .9s linear infinite; }
@media (max-width: 680px) {
    .refresh-button {
        width: 36px;
        height: 36px;
    }
}
@media print {
    .refresh-button { display: none !important; }
}


/* ============================================================
   PASSWORD_VISIBILITY_MOBILE_FIX_1522
   En Mobile hay reglas legacy que fuerzan todos los botones del
   login a width:100% !important. El ojo debe seguir siendo un
   control compacto dentro del extremo derecho del input.
   ============================================================ */
@media (max-width: 900px) {
    .login-password-wrap {
        position: relative !important;
        display: block !important;
        width: 100% !important;
    }

    .login-password-wrap input {
        width: 100% !important;
        padding-right: 54px !important;
    }

    .login-panel .login-password-toggle,
    .login-panel.mfa-panel .login-password-toggle {
        position: absolute !important;
        top: 50% !important;
        right: 6px !important;
        bottom: auto !important;
        left: auto !important;

        width: 40px !important;
        max-width: 40px !important;
        min-width: 40px !important;

        height: 40px !important;
        min-height: 40px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: grid !important;
        place-items: center !important;

        transform: translateY(-50%) !important;

        color: var(--muted) !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 8px !important;

        z-index: 2 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .login-panel .login-password-toggle:active,
    .login-panel.mfa-panel .login-password-toggle:active {
        color: var(--navy) !important;
        background: var(--cyan-soft) !important;
    }

    .login-panel .login-password-toggle svg,
    .login-panel.mfa-panel .login-password-toggle svg {
        width: 20px !important;
        height: 20px !important;
        pointer-events: none !important;
    }
}

.nexus-logout-button svg{width:20px;height:20px}
.nexus-notifications{position:relative}
.nexus-notifications .nexus-notification-panel{top:calc(100% + 12px);right:0;max-height:70dvh;overflow:auto;width:min(400px,calc(100vw - 24px));padding:18px}
.nexus-notification-panel h2{font-size:1.1rem;margin:0}
.nexus-notification-items{display:grid;gap:8px;margin:12px 0}
.nexus-notification-item{display:grid;gap:4px;width:100%;text-align:left;border:1px solid #c9e6dd;border-radius:12px;background:#eef9f5;color:#09384b;padding:12px;cursor:pointer}
.nexus-notification-item.is-read{background:#fff;border-color:#d9e5e8}
.nexus-notification-item small{color:#596c77}.nexus-notification-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px){.nexus-notifications .nexus-notification-panel{position:fixed;top:145px;left:12px;right:12px;max-height:calc(100dvh - 165px);width:auto}}

/* Keep both institutional logos inside their own mobile column as toolbar actions grow. */
@media(max-width:900px){.app-shell .topbar{grid-template-columns:38px minmax(0,1fr) auto}.app-shell .brand-lockup{min-width:0;width:100%;max-width:100%;gap:5px}.app-shell .brand-lockup .brand-gam,.app-shell .brand-lockup .brand-aicm{min-width:0;flex-shrink:1;object-fit:contain}}

.nexus-action-icon{width:20px;height:20px;flex-shrink:0}
.nexus-icon-action{display:inline-flex!important;align-items:center;justify-content:center;min-width:42px;width:42px;min-height:42px;padding:0!important;flex-shrink:0}
.nexus-icon-action:focus-visible{outline:3px solid #67acd1;outline-offset:3px}
.profile-photo-controls .profile-photo-action{min-width:42px;min-height:42px;justify-content:center;padding:0 12px}
.profile-popover-actions{grid-template-columns:minmax(0,1fr) 44px}
.profile-popover-actions .profile-signout.nexus-icon-action{width:44px;justify-content:center}
