/* NAXOS · identidad corporativa roja, azul marino y gris. */
:root {
  --brand: #cf293b;
  --brand-dark: #af1d2e;
  --brand-light: #fff1f3;
  --navy: #182b47;
  --navy-light: #233d60;
  --accent: #285a91;
  --bg: #f3f5f9;
  --ink: #21324b;
  --muted: #586980;
  --line: #e1e7ef;
  --green: #247157;
  --green-light: #eaf5ef;
  --blue: #2a5f9b;
  --blue-light: #eaf1fc;
  --amber: #93600c;
  --amber-light: #fff6e6;
  --red: #b02d41;
  --red-light: #fff0f2;
  --purple: #71569a;
  --radius: 14px;
  --side: 248px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
}
body { background: var(--bg); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #80a9dc;
  outline-offset: 3px;
}
h1 { font-size: 2.3rem; font-weight: 700; letter-spacing: -.8px; color: var(--navy); line-height: 1.2; }
h2, h3 { color: var(--navy); }
.link { color: var(--accent); }
.link:hover { color: #163d6c; text-decoration: underline; text-underline-offset: 3px; }
.btn { min-height: 43px; padding: 10px 17px; border-color: #d8e0eb; border-radius: 9px; font-weight: 600; color: var(--navy); box-shadow: 0 1px 2px #182b4705; }
.btn:hover { background: #f0f4fa; border-color: #9ab1cb; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 3px 8px #182b4715; }
.btn.primary:hover { background: var(--navy-light); border-color: var(--navy-light); }
.btn[data-action="new"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 10px #cf293b1a; }
.btn[data-action="new"]:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.compact { min-height: 35px; }
.btn.danger { color: var(--red); border-color: #efcbd2; background: #fff; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; }
.icon-btn:hover { background: #edf2f9; }
.badge { border-radius: 6px; font-weight: 600; background: #eef2f6; color: #596d85; padding: 5px 9px; }
.avatar { background: #e7edf7; color: #304d79; width: 36px; height: 36px; }
.avatar.blue { background: #eaf1fc; color: var(--blue); }
.avatar.purple { background: #f0eaf8; color: var(--purple); }
.avatar.amber { background: var(--amber-light); color: var(--amber); }
.tiny-avatar { width: 27px; height: 27px; }
.sidebar { background: var(--navy); border: 0; padding: 31px 17px 19px; color: #dae4f3; scrollbar-width: thin; scrollbar-color: #425b7a transparent; }
.brand { gap: 11px; padding: 0 12px 29px; }
.brand-symbol { width: 39px; height: 39px; flex-shrink: 0; font-size: 28px; font-weight: 900; letter-spacing: -3px; border-radius: 9px 3px 9px 3px; background: var(--brand); color: #fff; transform: none; box-shadow: 0 4px 12px #00000014; }
.brand-name { color: #ff6370; font-size: 29px; font-weight: 800; letter-spacing: 2px; }
.brand-sub { color: #b2c0d3; font-size: 9px; letter-spacing: 1.1px; margin-top: 8px; }
.nav-caption { color: #91a5c0; font-size: 10px; letter-spacing: 1.35px; padding: 16px 13px 9px; }
.nav-item { color: #cbd7e7; font-size: 14px; padding: 13px 13px; margin: 3px 0; border-radius: 9px; min-height: 45px; position: relative; line-height: 1.45; gap: 12px; }
.nav-item svg { color: #aabed6; width: 19px; height: 19px; }
.nav-item:hover { color: #fff; background: #233d5d; }
.nav-item.active { background: #2b4363; color: #fff; font-weight: 650; box-shadow: inset 3px 0 0 #ff6572; }
.nav-item.active svg { color: #fff; }
.nav-count { color: #fff; background: #415c7e; min-width: 22px; padding: 2px 6px; text-align: center; }
.nav-spacer { height: 8px; }
.sidebar-bottom { padding-top: 25px; }
.demo-card { background: #203754; border-color: #334964; color: #acbdd2; border-radius: 10px; margin: 0 0 18px; font-size: 12px; }
.demo-card strong { color: #eef3fb; font-weight: 600; }
.profile { border-color: #344863; padding: 17px 4px 0; align-items: center; }
.profile .name { color: #fff; font-size: 13px; }
.profile .role { color: #b7c6d9; font-size: 11px; }
.profile .avatar { background: #385171; color: #fff; }
.profile button { color: #c4d1e2; }
.nav-close { display: none; }
.topbar { height: 77px; padding: 0 35px; background: #fff; }
.breadcrumb { color: #75859b; }
.breadcrumb strong { color: var(--navy); font-weight: 600; }
.breadcrumb svg { width: 14px; height: 14px; color: #9aa8b9; }
.top-actions { gap: 15px; }
.top-actions .local { color: #687d91; }
.top-actions .icon-btn { background: #f5f7fb; }
.notification-dot { background: var(--brand); }
.main { padding: 25px 35px 32px; }
.demo-strip { color: #667991; background: #eaf0f8; border-color: #dce6f2; border-radius: 8px; padding: 10px 14px; margin-bottom: 27px; font-size: 12px; }
.demo-strip strong { color: #395879; }
.demo-strip .link { font-size: 12px; }
.page-heading { margin-bottom: 25px; }
.page-heading p { font-size: 15px; line-height: 1.6; color: #677991; margin-top: 9px; }
.page-heading .btn { padding: 12px 19px; }
.stats { gap: 16px; margin-bottom: 21px; }
.stat { padding: 20px; position: relative; box-shadow: 0 3px 12px #182b4703; border-color: var(--line); }
.stat-top { color: #62748c; font-size: 14px; gap: 10px; margin-bottom: 12px; }
.stat-icon { width: 36px; height: 36px; background: #edf2fa; color: #3b6092; border-radius: 10px; }
.stat-icon svg { width: 18px; height: 18px; }
.stat.blue .stat-icon { background: var(--blue-light); color: var(--blue); }
.stat-number { display: block; color: var(--navy); font-size: 34px; letter-spacing: -.8px; }
.stat-foot { display: block; color: #718097; line-height: 1.4; }
.stat.interactive { appearance: none; text-align: left; width: 100%; font: inherit; transition: border-color .15s, box-shadow .15s; }
.stat.interactive:hover { border-color: #9fb6d4; box-shadow: 0 4px 15px #182b4709; }
.stat.interactive.selected { border-color: #6085b2; box-shadow: 0 0 0 2px #dce7f5; }
.stat.interactive .stat-top, .stat.interactive .stat-number, .stat.interactive .stat-foot { display: flex; }
.stat.interactive .stat-number { display: block; font-size: 34px; font-weight: 650; }
.stat.interactive .stat-foot { display: block; font-size: 12px; }
.next-step { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #dce5f0; border-left: 4px solid var(--accent); border-radius: 11px; padding: 17px 20px; margin: 0 0 26px; }
.next-step-icon { height: 43px; width: 43px; display: grid; place-items: center; background: #edf3fb; border-radius: 12px; color: var(--accent); flex-shrink: 0; }
.next-step-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #5d7390; margin-bottom: 5px; }
.next-step h2 { font-size: 15px; letter-spacing: 0; line-height: 1.45; }
.next-step p { font-size: 12px; color: #6d7e95; margin-top: 3px; }
.next-step .btn { margin-left: auto; }
.dashboard-grid { gap: 22px; grid-template-columns: minmax(0,1fr) 285px; }
.card { border-color: var(--line); box-shadow: 0 3px 12px #182b4703; }
.card-head { padding: 22px 22px 18px; }
.card-head h2 { font-size: 17px; font-weight: 650; }
.card-head p { color: #748398; font-size: 13px; line-height: 1.6; }
.card-body { padding: 0 22px 24px; }
.count { color: #456288; background: #edf2f9; border-radius: 6px; font-weight: 600; }
.tabs { gap: 24px; padding: 0 22px; }
.tab { color: #63758d; font-size: 14px; padding: 13px 0 15px; transition: color .15s; }
.tab:hover { color: var(--navy); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
th { background: #f8fafd; color: #6f7f96; font-size: 11px; padding: 14px 21px; }
td { border-top-color: #edf1f6; padding: 20px 21px; color: #3c4e65; }
tr.clickable:hover td { background: #f5f8fd; }
.task-title { color: #243a56; font-weight: 600; font-size: 14px; }
.task-meta { color: #718298; }
.task-code { color: #5f7595; font-size: 12px; }
.task-open { color: #46668e; padding: 5px 0; font-size: 12px; display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.task-open svg { width: 15px; height: 15px; }
.table-footer { color: #718298; padding: 16px 21px; gap: 12px; }
.due { color: #42556e; }
.due.overdue { color: var(--red); }
.priority { padding: 20px; gap: 12px; }
.priority-mark { height: 34px; width: 34px; border-radius: 9px; }
.priority h3 { font-size: 14px; font-weight: 650; }
.priority p { font-size: 13px; }
.priority .link { font-size: 13px; }
.note-card { background: #eaf0f8; border-color: #dce5f1; padding: 23px; }
.note-card h3 { color: #29496e; font-size: 15px; line-height: 1.5; }
.note-card p { color: #627993; font-size: 13px; }
.note-card>svg { color: #42668f; }
.workflow { padding: 10px 24px 27px; }
.workflow-item strong { color: #536c8b; }
.workflow-item:after { background: #b0c2da; box-shadow: 0 0 0 1px #dde5f0; }
.workflow-item.active:after { background: var(--accent); }
.workflow-item .number { color: var(--navy); font-weight: 600; }
.footnote { color: #7e8ca0; }
.search, .filter, .field input, .field select, .field textarea, .route-row select { border-color: #d9e1ed; border-radius: 8px; color: #344c68; }
.search { min-height: 45px; }
.filter { min-height: 44px; }
.field>span, .field>label { color: #485e7a; }
.field input, .field select, .field textarea { padding: 11px 12px; }
.field textarea { min-height: 110px; }
.check { align-items: flex-start; }
.check input { accent-color: var(--accent); }
.proposed { color: #83612b; background: #fff8e9; border-color: #efe2c7; border-radius: 8px; }
.empty h3 { color: #435f7f; }
.empty svg { color: #7f99b9; }
.stage { color: #78889d; font-size: 11px; }
.stage.current { color: var(--accent); }
.stage.current .stage-num { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px #ebf0f8; }
.stage.done .stage-num { background: #edf3fa; color: var(--accent); border-color: #d7e3f3; }
.timeline-item { border-left-color: #dbe4ef; }
.timeline-item:before { background: #718dab; box-shadow: 0 0 0 1px #dee7f2; }
.file-row svg { color: #738eae; }
.upload { border-color: #b1c4dc; background: #f8fafd; border-radius: 10px; }
.progress-track { background: #eaf0f7; height: 6px; }
.progress-fill { background: #547bac; }
.gantt-header { color: #6a809b; background: #f8fafd; }
.gantt-cell { border-color: #eef2f8; }
.gantt-bar { color: #244d7f; background: #dce8f8; border-color: #b2cae8; }
.gantt-today { background: #eef3fb; }
.notification.unread { background: #f1f5fc; }
dialog { border: 0; border-radius: 16px; box-shadow: 0 28px 100px #14264040; }
dialog::backdrop { background: #0b1e386e; }
.modal-head { padding: 27px 28px 19px; }
.modal-head h2 { font-size: 23px; }
.modal-body { padding: 4px 28px 28px; }
.account-choice { border-color: #e0e6ef; border-radius: 11px; padding: 16px; }
.account-choice:hover { background: #f5f8fd; border-color: #9bb5d3; }
.account-choice.selected { background: #edf3fb; border-color: #608bbf; box-shadow: inset 3px 0 0 var(--accent); }
.account-choice strong { color: var(--navy); }
.login-aside { background: var(--navy); }
.login-aside .brand-symbol { background: var(--brand); color: #fff; }
.login-aside .brand-sub { color: #bdcadc; }
.login-aside h1 { color: #fff; font-size: 48px; }
.login-aside p, .login-aside .eyebrow, .login-route { color: #bbcade; }
.login-aside .eyebrow { color: #ff8590; }
.login-box h2 { font-size: 30px; color: var(--navy); }
.login-box .btn.primary { background: var(--brand); border-color: var(--brand); min-height: 48px; }
.login-box .btn.primary:hover { background: var(--brand-dark); }
.demo-login-label { color: #526e92; background: #edf2f9; border-color: #dce6f2; }
#toast { background: var(--navy); box-shadow: 0 8px 28px #10233d22; }
@media (min-width:1550px) {
  :root { --side: 260px; }
  .main, .topbar { padding-left: 44px; padding-right: 44px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 315px; }
}
@media (max-width:1180px) {
  :root { --side: 224px; }
  .main { padding: 24px; }
  .topbar { padding: 0 24px; }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .brand { padding-left: 9px; padding-right: 7px; gap: 9px; }
  .brand-name { font-size: 26px; }
  .brand-symbol { width: 34px; height: 36px; font-size: 27px; }
  .brand-sub { font-size: 8px; letter-spacing: .85px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-side { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
  .dashboard-side .note-card { margin-top: 0; }
  .stats { gap: 12px; }
  .stat { padding: 17px; }
  .stat-top { font-size: 13px; }
  .stat-icon { width: 30px; height: 30px; }
  .sidebar .demo-card { display: none; }
}
@media (max-width:1000px) {
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .next-step { padding: 16px; gap: 12px; }
}
@media (max-width:820px) {
  :root { --side: 205px; }
  .sidebar { padding: 27px 11px 17px; }
  .nav-item { font-size: 13px; gap: 10px; padding: 12px 10px; }
  .brand { gap: 8px; padding-left: 8px; }
  .brand-name { font-size: 24px; }
  .brand-symbol { width: 30px; height: 33px; font-size: 25px; }
  .brand-sub { font-size: 8px; letter-spacing: .45px; }
  .main { padding: 23px 20px; }
  .topbar { padding: 0 20px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading .btn { font-size: 13px; padding: 11px 13px; }
  .next-step { flex-wrap: wrap; }
  .next-step .btn { margin-left: 55px; }
  .dashboard-side { grid-template-columns: 1fr; }
  .login-aside { padding: 27px; }
}
@media (max-width:620px) {
  :root { --side: 0px; }
  .sidebar { width: 250px; padding: 30px 16px 18px; }
  .sidebar .brand { padding-right: 27px; }
  .sidebar .brand-name { font-size: 25px; }
  .sidebar .brand-sub { font-size: 7px; }
  .sidebar .brand-symbol { width: 30px; }
  .sidebar.open:after { content: none; }
  .nav-close { display: grid; position: absolute; top: 26px; right: 9px; width: 28px; height: 28px; min-height: 28px; border: 0; background: transparent; color: #becfe4; }
  .nav-item { font-size: 14px; }
  .topbar { height: 65px; padding: 0 14px; gap: 7px; }
  .topbar>.row { gap: 8px; min-width: 0; }
  .breadcrumb { min-width: 0; }
  .breadcrumb>span { display: none; }
  .breadcrumb>svg { display: none; }
  .breadcrumb strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
  .top-actions { gap: 8px; }
  .main { padding: 19px 15px 25px; }
  .demo-strip { margin-bottom: 24px; padding: 10px 12px; line-height: 1.7; }
  .page-heading { gap: 16px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { font-size: 14px; }
  .stats { gap: 11px; }
  .stat { padding: 15px; }
  .stat.interactive .stat-number { font-size: 31px; }
  .stat-top { font-size: 13px; gap: 5px; }
  .stat-icon { width: 28px; height: 28px; }
  .next-step { gap: 12px; padding: 17px 15px; }
  .next-step .grow { flex-basis: calc(100% - 60px); }
  .next-step .btn { width: 100%; margin-left: 0; }
  .next-step h2 { font-size: 15px; }
  .card-head { padding: 20px 18px 15px; }
  .card-head h2 { font-size: 16px; }
  .tabs { gap: 22px; padding: 0 18px; }
  .table-footer { flex-wrap: wrap; line-height: 1.7; }
  .dashboard-side { display: grid; }
  .dashboard-side .note-card { margin-top: 0; }
  .modal-head { padding: 23px 20px 16px; }
  .modal-body { padding: 3px 20px 24px; }
  .login-aside { padding: 25px; }
  .login-aside .brand { padding: 0; }
  .login-aside .brand-name { font-size: 28px; }
  .login-aside .brand-symbol { width: 35px; }
  .account-choice { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none!important; } }
