:root {
  --navy: #0f2747;
  --navy-2: #173a63;
  --blue: #1d70c9;
  --blue-soft: #eaf3ff;
  --ink: #172638;
  --muted: #68778a;
  --line: #e5ebf2;
  --canvas: #f4f7fb;
  --white: #ffffff;
  --green: #18875a;
  --green-soft: #e8f7ef;
  --amber: #bd7811;
  --amber-soft: #fff4df;
  --red: #c6424a;
  --red-soft: #fff0f1;
  --shadow: 0 5px 18px rgba(21, 47, 75, .07);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 258px; background: var(--navy); color: #dce8f5; padding: 25px 14px 18px; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 10; }
.brand, .login-brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; color: white; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: #fff; font-size: 13px; font-weight: 800; background: linear-gradient(145deg, #3993eb, #1d5fae); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.brand strong, .login-brand strong { display: block; letter-spacing: .8px; line-height: 1.1; font-size: 17px; }
.brand small, .login-brand small { display: block; color: #a8bed6; line-height: 1.1; font-size: 10px; text-transform: uppercase; letter-spacing: .35px; }
.menu-caption { margin: 43px 12px 11px; color: #7895b5; font-size: 10px; letter-spacing: 1.15px; font-weight: 700; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 0 13px; color: #b7cbe0; border-radius: 8px; font-weight: 600; }
.nav-link:hover { background: rgba(255,255,255,.065); color: white; }
.nav-link.active { background: #205082; color: white; box-shadow: inset 3px 0 0 #52a3ef; }
.nav-link span { width: 18px; font-size: 18px; text-align: center; font-weight: 400; }
.sidebar-bottom { margin-top: auto; padding: 14px 11px 3px; color: #89a4c0; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.sidebar-bottom p { margin: 9px 0 0; line-height: 1.5; }
.pilot-tag { display: inline-block; color: #9ed5ff; background: rgba(65,151,229,.15); border: 1px solid rgba(116,189,246,.25); border-radius: 4px; padding: 2px 6px; font-size: 9px; font-weight: 800; letter-spacing: .7px; }

.main-content { min-width: 0; min-height: 100vh; margin-left: 258px; width: calc(100% - 258px); display: flex; flex-direction: column; }
.topbar { height: 72px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { color: var(--muted); display: flex; align-items: center; gap: 9px; font-size: 13px; }
.breadcrumb b { font-weight: 400; color: #bac5d0; }.breadcrumb strong { color: var(--ink); }
.menu-button { display: none; border: none; background: transparent; font-size: 23px; color: var(--navy); }
.user-menu { display: flex; align-items: center; gap: 9px; }.user-menu .avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: #245787; background: #dceeff; font-weight: 800; }.user-menu div { display: grid; line-height: 1.2; }.user-menu strong { font-size: 12px; }.user-menu small { font-size: 11px; color: var(--muted); }.user-menu a { margin-left: 8px; color: #7890a7; font-size: 22px; }
.page-content { width: min(1440px, 100%); margin: 0 auto; padding: 31px 38px 35px; flex: 1; }.footer { padding: 18px 38px 24px; color: #8493a4; font-size: 11px; }
.page-heading { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }.page-heading h1, .detail-hero h1 { margin: 2px 0 4px; font-size: 26px; letter-spacing: -.45px; line-height: 1.25; }.eyebrow { margin: 0; color: var(--blue); font-size: 10px; letter-spacing: 1.1px; font-weight: 800; }.muted { color: var(--muted); margin: 0; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 37px; border: 1px solid transparent; padding: 0 15px; border-radius: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: .15s ease; }.button.primary { color: white; background: var(--blue); box-shadow: 0 3px 8px rgba(29,112,201,.18); }.button.primary:hover { background: #155ca7; }.button.secondary { color: #35516e; background: white; border-color: #cbd7e3; }.button.secondary:hover { background: #f7f9fc; }.button.full { width: 100%; }
.text-link { color: var(--blue); font-size: 12px; font-weight: 700; white-space: nowrap; }.text-link:hover { color: #124f91; text-decoration: underline; }.icon-link { color: var(--blue); font-size: 18px; font-weight: 700; }.back-link { display: inline-block; margin-bottom: 17px; color: #53718e; font-size: 12px; font-weight: 700; }.back-link:hover { color: var(--blue); }

.flash { position: relative; margin: 0 0 20px; padding: 11px 14px; border-radius: 7px; border: 1px solid; font-size: 13px; font-weight: 600; }.flash.success { color: #0b6e47; border-color: #afdfc7; background: var(--green-soft); }.flash.error { color: #a12d38; border-color: #f0b9bd; background: var(--red-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 19px; }.stat-card { position: relative; min-height: 132px; overflow: hidden; padding: 19px 19px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }.stat-card::before { content: ""; width: 4px; position: absolute; inset: 0 auto 0 0; background: var(--blue); }.stat-card.green::before { background: var(--green); }.stat-card.amber::before { background: #e29a22; }.stat-card.red::before { background: var(--red); }.stat-card p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }.stat-card strong { display: block; margin: 8px 0 2px; font-size: 25px; line-height: 1.05; letter-spacing: -.7px; }.stat-card small { color: #8492a3; font-size: 10px; }.stat-icon { position: absolute; right: 16px; top: 16px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; border-radius: 7px; color: var(--blue); background: var(--blue-soft); }.green .stat-icon { color: var(--green); background: var(--green-soft); }.amber .stat-icon { color: var(--amber); background: var(--amber-soft); }.red .stat-icon { color: var(--red); background: var(--red-soft); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); gap: 18px; margin-bottom: 19px; }.panel { background: var(--white); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }.panel-heading { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 20px 13px; border-bottom: 1px solid #edf1f5; }.panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.15px; }.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }.legend { color: var(--muted); font-size: 10px; }.dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }.blue-dot { background: var(--blue); }.green-dot { background: var(--green); }.amber-dot { background: #e09a22; }.red-dot { background: var(--red); }
.chart-area { height: 220px; padding: 18px 25px 12px; }.bar-chart { height: 100%; display: flex; align-items: stretch; gap: 20px; border-bottom: 1px solid #d9e1e9; }.bar-col { flex: 1; min-width: 35px; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 5px; }.bar-col > span { font-size: 10px; color: #60758b; font-weight: 700; }.bar-wrap { flex: 1; width: 100%; max-width: 36px; display: flex; align-items: end; }.bar-wrap i { width: 100%; display: block; min-height: 7px; border-radius: 5px 5px 0 0; background: linear-gradient(#3d9aed, #1d70c9); }.bar-col small { color: #76879a; font-size: 10px; text-transform: capitalize; }
.status-panel { min-height: 286px; }.donut-line { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 216px; padding: 16px; }.donut { --total: max(1, calc(var(--good) + var(--warning) + var(--danger))); position: relative; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 calc(var(--good) / var(--total) * 1turn), #e39a21 calc(var(--good) / var(--total) * 1turn) calc((var(--good) + var(--warning)) / var(--total) * 1turn), var(--red) calc((var(--good) + var(--warning)) / var(--total) * 1turn) 1turn); }.donut::before { content:""; position: absolute; width: 86px; height: 86px; background: white; border-radius: 50%; }.donut span { z-index: 1; color: #334f6e; font-size: 27px; font-weight: 800; }.status-list { display: grid; gap: 8px; }.status-list p { display: grid; grid-template-columns: 9px auto 20px; align-items: center; gap: 7px; margin: 0; color: #687a8d; font-size: 11px; }.status-list b { color: var(--ink); text-align: right; }

.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th { height: 42px; padding: 0 18px; color: #708197; background: #fbfcfd; border-bottom: 1px solid var(--line); text-align: left; text-transform: uppercase; font-size: 9.5px; letter-spacing: .65px; white-space: nowrap; } td { padding: 13px 18px; border-bottom: 1px solid #edf1f5; color: #3c536a; font-size: 12px; vertical-align: middle; } tr:last-child td { border-bottom: 0; } td strong { color: #253c56; font-size: 12px; }.table-subtitle { display: block; margin-top: 2px; color: #8291a1; font-size: 10.5px; line-height: 1.35; max-width: 330px; }.row-actions { display: flex; gap: 11px; }.progress-cell { min-width: 96px; }.progress-cell > span { display: block; color: #4d647b; font-size: 11px; font-weight: 700; }.mini-progress { height: 5px; margin-top: 4px; overflow: hidden; border-radius: 5px; background: #e7edf3; }.mini-progress i { display: block; height: 100%; border-radius: 5px; background: var(--blue); }.mini-progress i.good { background: var(--green); }.mini-progress i.warning { background: #db9220; }.mini-progress i.danger { background: var(--red); }.mini-progress i.blue { background: var(--blue); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 5px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.badge.good { color: #118052; background: var(--green-soft); }.badge.warning { color: #aa6809; background: var(--amber-soft); }.badge.danger { color: #b7343c; background: var(--red-soft); }.badge.neutral { color: #677b90; background: #edf1f5; }.empty-state { margin: 20px; color: #8190a0; text-align: center; font-size: 12px; }.empty-state.small { margin: 25px 5px; font-size: 11px; }

.filter-bar { display: flex; gap: 10px; margin: 0 0 18px; }.filter-bar input, .filter-bar select { height: 37px; border: 1px solid #cfdbe6; border-radius: 6px; padding: 0 11px; color: #3b536d; background: white; outline: none; }.filter-bar input { min-width: 280px; flex: 1; }.filter-bar input:focus, input:focus, select:focus, textarea:focus { border-color: #62a4e2; box-shadow: 0 0 0 3px rgba(58,143,225,.12); }
.form-panel { margin-bottom: 20px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px 16px; padding: 20px; }.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); padding-bottom: 0; }.form-grid .wide { grid-column: 1 / -1; }.form-panel label, .compact-form label, .login-card label { display: grid; gap: 6px; color: #425b73; font-size: 11px; font-weight: 800; }.form-panel input, .form-panel select, .form-panel textarea, .compact-form input, .compact-form select, .compact-form textarea, .login-card input { width: 100%; border: 1px solid #cfdbe6; border-radius: 6px; padding: 8px 10px; color: var(--ink); background: white; outline: none; font-size: 13px; }.form-panel input, .form-panel select, .compact-form input, .compact-form select { min-height: 37px; }.form-panel textarea, .compact-form textarea { resize: vertical; }.form-actions { display: flex; justify-content: flex-end; padding: 0 20px 20px; }.compact-form { padding-bottom: 20px; }.compact-form > label { margin: 0 20px 13px; }.compact-form > .button { margin: 4px 20px 0; width: calc(100% - 40px); }

.detail-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 20px; padding: 23px 25px; color: white; border-radius: 10px; background: linear-gradient(114deg, #183a63, #205e97); box-shadow: 0 6px 17px rgba(15,39,71,.16); }.detail-hero h1 { max-width: 820px; color: white; font-size: 25px; }.detail-hero p:not(.eyebrow) { max-width: 760px; margin: 0; color: #c5dbef; font-size: 12px; }.detail-hero .eyebrow { color: #95caf5; }.detail-status { min-width: 135px; padding: 2px 0 2px 22px; border-left: 1px solid rgba(255,255,255,.25); }.detail-status strong { display: block; margin-top: 7px; font-size: 25px; line-height: 1.05; }.detail-status small { color: #b9d0e3; font-size: 10px; }.tab-nav { display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid #dce5ed; }.tab-nav a { padding: 10px 14px; color: #718296; border-bottom: 2px solid transparent; font-size: 12px; font-weight: 700; }.tab-nav a.active { color: var(--blue); border-color: var(--blue); }.tab-nav span { padding: 1px 5px; border-radius: 10px; color: #718296; background: #e9eff5; font-size: 9px; }.detail-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(275px, .8fr); gap: 18px; }.definition-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; margin: 0; padding: 8px 20px 20px; }.definition-list div { padding: 12px 0; border-bottom: 1px solid #edf1f5; }.definition-list div:nth-last-child(2):not(.full), .definition-list div:last-child:not(.full) { border-bottom: 0; }.definition-list .full { grid-column: 1 / -1; }.definition-list dt { margin-bottom: 3px; color: #7b8b9b; text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .5px; }.definition-list dd { margin: 0; color: #314c67; font-size: 12px; }.action-mini-list { padding: 4px 18px 14px; }.action-mini-list > div { display: flex; align-items: flex-start; gap: 9px; padding: 14px 0; border-bottom: 1px solid #edf1f5; }.action-mini-list > div:last-child { border-bottom: 0; }.action-state { width: 7px; height: 7px; flex: none; margin-top: 6px; border-radius: 50%; background: #9aa9b8; }.action-state.en-curso { background: #e09a22; }.action-state.completada { background: var(--green); }.action-mini-list section { flex: 1; min-width: 0; }.action-mini-list strong { display: block; color: #3b516a; font-size: 11px; }.action-mini-list small { display: block; margin: 2px 0 5px; color: #8593a2; font-size: 10px; }.action-mini-list b { color: #50708c; font-size: 10px; }

.action-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: start; }.action-column { min-height: 245px; padding: 12px; border: 1px solid #dfe7ee; border-radius: 9px; background: #edf2f6; }.action-column header { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 12px; }.action-column h2 { margin: 0; color: #4a6179; font-size: 12px; }.action-column header span { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; color: #60778f; background: #dce6ef; font-size: 10px; font-weight: 800; }.action-card { margin: 0 0 10px; padding: 13px; border: 1px solid #e0e7ee; border-radius: 7px; background: white; box-shadow: 0 2px 5px rgba(20,55,83,.04); }.action-card-top { display: flex; justify-content: space-between; }.action-card h3 { margin: 11px 0 4px; color: #324c68; font-size: 12px; line-height: 1.35; }.action-card p { min-height: 27px; margin: 0 0 9px; color: #8392a2; font-size: 10px; }.action-card-footer { display: flex; justify-content: space-between; gap: 5px; margin-top: 8px; color: #6c8195; font-size: 10px; font-weight: 700; }.action-card small { display: block; margin-top: 7px; color: #8a98a6; font-size: 9.5px; }
.report-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 11px 14px; color: #476989; border: 1px solid #cfe2f6; border-radius: 7px; background: #edf6ff; font-size: 12px; }.report-note > span { width: 17px; height: 17px; flex: none; display: grid; place-items: center; color: white; border-radius: 50%; background: #3b88cd; font-size: 11px; font-weight: 800; }.report-note p { margin: 0; }

.login-body { min-height: 100vh; background: #edf3f8; }.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.25fr .75fr; }.login-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 54px clamp(42px, 8vw, 150px) 48px; color: white; background: radial-gradient(circle at 75% 15%, #286aa3 0, #163962 34%, #0c2545 83%); }.login-brand { padding: 0; }.login-intro .brand-mark { width: 41px; height: 41px; font-size: 15px; }.login-intro .login-brand strong { font-size: 20px; }.login-intro .login-brand small { font-size: 11px; }.login-intro > div:nth-child(2) { max-width: 565px; }.login-intro .eyebrow { color: #9fcefa; }.login-intro h1 { margin: 10px 0 13px; max-width: 520px; font-size: clamp(32px, 4.1vw, 57px); line-height: 1.1; letter-spacing: -1.8px; }.login-intro p:not(.eyebrow) { max-width: 455px; margin: 0; color: #bfd4e7; font-size: 15px; line-height: 1.65; }.intro-points { display: flex; flex-wrap: wrap; gap: 11px 21px; color: #b7d6ef; font-size: 12px; font-weight: 700; }.login-panel { display: grid; place-items: center; padding: 35px; background: white; }.login-card { width: min(350px, 100%); }.login-card h2 { margin: 9px 0 4px; color: #203b57; font-size: 26px; letter-spacing: -.4px; }.login-card .muted { margin-bottom: 27px; font-size: 13px; }.login-card label { margin: 0 0 17px; }.login-card input { min-height: 42px; }.login-card .button { margin-top: 6px; min-height: 42px; }.demo-box { display: grid; gap: 2px; margin-top: 20px; padding: 10px 12px; color: #537089; border-left: 3px solid #62a4e2; background: #f1f7fc; font-size: 11px; }.demo-box strong { color: #315978; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }.error-card { width: min(530px, calc(100% - 40px)); margin: 0 auto; padding: 38px; text-align: center; border: 1px solid #e0e8ef; border-radius: 12px; background: white; box-shadow: var(--shadow); }.error-card .error-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 17px; color: #b7343c; border-radius: 50%; background: var(--red-soft); font-weight: 900; font-size: 23px; }.error-card h1 { font-size: 21px; }.error-card p { margin: 11px 0 22px; color: #5f7488; }.error-card code { padding: 1px 4px; border-radius: 3px; background: #eef2f6; }

@media (max-width: 1050px) { .stat-grid { grid-template-columns: repeat(2, 1fr); }.detail-grid { grid-template-columns: 1fr; }.dashboard-grid { grid-template-columns: 1fr; }.status-panel { min-height: 0; }.donut-line { min-height: 170px; }.action-board { grid-template-columns: 1fr; }.action-column { min-height: 0; }.login-layout { grid-template-columns: 1fr 1fr; }.login-intro { padding-inline: 50px; } }
@media (max-width: 760px) { .sidebar { width: 258px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 5px 0 18px rgba(0,0,0,.2); }.sidebar.open { transform: translateX(0); }.main-content { width: 100%; margin-left: 0; }.topbar { height: 60px; padding: 0 18px; }.menu-button { display: block; }.breadcrumb { display: none; }.user-menu div { display: none; }.page-content { padding: 23px 16px; }.footer { padding: 18px 16px; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }.page-heading h1 { font-size: 23px; }.stat-grid { gap: 10px; }.stat-card { min-height: 113px; padding: 15px; }.stat-card strong { font-size: 21px; }.stat-card small { display: none; }.dashboard-grid { gap: 12px; }.panel-heading { padding: 15px; }.chart-area { padding-inline: 15px; }.bar-chart { gap: 10px; }.donut-line { justify-content: flex-start; }.filter-bar { align-items: stretch; flex-direction: column; }.filter-bar input { min-width: 0; }.filter-bar .button { width: 100%; }.form-grid, .form-grid.three { grid-template-columns: 1fr; padding: 15px; }.form-actions { padding: 0 15px 15px; }.form-actions .button { width: 100%; }.detail-hero { align-items: flex-start; flex-direction: column; padding: 19px; }.detail-hero h1 { font-size: 21px; }.detail-status { min-width: 0; padding: 13px 0 0; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; }.tab-nav { overflow-x: auto; }.tab-nav a { white-space: nowrap; }.definition-list { grid-template-columns: 1fr; padding: 7px 15px 15px; }.definition-list div { grid-column: 1 / -1; }.definition-list div:nth-last-child(2):not(.full) { border-bottom: 1px solid #edf1f5; }.action-board { gap: 10px; }.login-layout { grid-template-columns: 1fr; }.login-intro { min-height: 42vh; padding: 31px 28px; }.login-intro h1 { font-size: 33px; }.login-intro > div:nth-child(2) { margin: 38px 0; }.login-intro p:not(.eyebrow) { font-size: 13px; }.login-panel { padding: 36px 25px; }.row-actions { gap: 8px; }.report-note { font-size: 11px; } }

.setup-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.setup-panel { width: min(520px, 100%); }
.setup-panel .panel-heading h1 { margin: 5px 0 3px; font-size: 22px; }
.setup-content { padding: 20px; }
.setup-content .muted { margin-bottom: 18px; font-size: 12px; }
.setup-content form { display: grid; gap: 13px; }
.setup-content label { display: grid; gap: 6px; color: #425b73; font-size: 11px; font-weight: 800; }
.setup-content input { width: 100%; min-height: 38px; border: 1px solid #cfdbe6; border-radius: 6px; padding: 8px 10px; color: var(--ink); background: white; }
.setup-content .button { margin-top: 6px; }
.indicator-examples { margin-bottom: 22px; padding: 18px 22px; }
.indicator-examples summary { cursor: pointer; font-weight: 700; color: #173653; }
.indicator-examples[open] summary { margin-bottom: 14px; }
.indicator-examples p { margin: 12px 0 0; }
