/* Common visual layer. Selectors are scoped to existing dashboard sections. */
:root{--ui-blue:#3159a7;--ui-ink:#223149;--ui-muted:#6b7e97;--ui-line:#e4eaf2;--ui-bg:#f5f7fb;--report-blue:#3159a7;--report-ink:#223149;--report-muted:#6b7e97;--report-line:#e4eaf2;--settings-blue:#3159a7;--settings-ink:#223149;--settings-muted:#6b7e97;--settings-line:#e4eaf2}
body.app-workspace:has(:is(.home-stage,.reports-shell,.settings-shell)){background:var(--ui-bg);color:var(--ui-ink)}
.home-stage,.reports-shell,.settings-shell{max-width:1200px;width:100%;margin:auto;padding:34px 30px 150px;font-family:Aptos,'Segoe UI',system-ui,sans-serif}
.reports-header h1,.settings-header h1{font-size:44px;font-weight:780;letter-spacing:-.05em;line-height:1.12}
.reports-header p:last-child,.settings-header>p:last-child{font-size:13px;color:var(--ui-muted);line-height:1.7}
.reports-breadcrumb,.settings-breadcrumb{font-size:12px;gap:12px;margin-bottom:30px;color:#91a0b4}
.reports-breadcrumb a,.settings-breadcrumb a{text-decoration:none}
.reports-eyebrow,.settings-eyebrow{font-size:10px;letter-spacing:.15em;font-weight:800}
.settings-card,.reports-panel,.reports-filters,.reports-metric,.followups-panel,.home-stage .action-card{border-color:var(--ui-line);border-radius:22px;box-shadow:0 4px 20px #19335b04;background:#fff}
.settings-card,.reports-panel{padding:26px}
.reports-panel h2,.settings-card h2{font-size:19px;font-weight:750;letter-spacing:-.035em;line-height:1.35}
.settings-field input,.settings-field textarea,.reports-filters input,.reports-filters select{min-height:46px;border:1px solid #dfe6ef;border-radius:11px;background:#fbfcfe;transition:border-color .18s,box-shadow .18s}
.settings-field input:hover,.settings-field textarea:hover,.reports-filters input:hover,.reports-filters select:hover{border-color:#b8c9df}
.settings-field>label,.reports-filters label{font-size:11px;font-weight:700;color:#576a85}
.settings-actions button,.reports-filters button,.home-stage .welcome-action{display:inline-flex;align-items:center;justify-content:center;min-height:43px;border:1px solid transparent;border-radius:11px;background:var(--ui-blue);color:white;font-size:12px;font-weight:730;padding:10px 17px;transition:box-shadow .18s,transform .18s}
.settings-actions button:hover,.reports-filters button:hover,.home-stage .welcome-action:hover{background:#294d93;box-shadow:0 4px 12px #263e6814;transform:translateY(-1px)}
.settings-help,.reports-note{font-size:12px;line-height:1.8}
.settings-field small,.settings-fixed small{font-size:11px;line-height:1.7}
.reports-empty,.followups-empty{border:1px dashed #e2e8f0;border-radius:14px;background:#fafbfd;color:#788aa3;font-size:12px;line-height:1.8;padding:22px}
.reports-currency{border-color:#e2e9f3;background:#f9fbfe;border-radius:999px;padding:8px 12px;font-size:9px;color:#7286a4;letter-spacing:.08em}
.reports-filters{padding:22px 24px;gap:16px}
.reports-filters>p{font-size:11px;line-height:1.8;color:#7e8da3}
.reports-metrics{gap:18px}
.reports-metric{padding:25px;gap:14px;background:#f9fbfe}
.reports-metric>p{font-size:9px;letter-spacing:.1em;color:#7789a3}
.reports-metric>strong{font-size:clamp(23px,2.6vw,33px);color:#36577f;letter-spacing:-.045em}
.reports-metric>span{font-size:11px;color:#7789a3}
.reports-metric--income{background:#eff7f3;border-color:#dcebe3;color:#2f7255}
.reports-metric--income>strong{color:#34795b}
.reports-metric--income>p,.reports-metric--income>span{color:#648473}
.reports-lead-metrics{gap:14px}
.reports-lead-metric{background:#f7f9fd;border:1px solid #e9eef5;border-radius:15px;padding:21px}
.reports-lead-metric>p{color:#7c8da6;letter-spacing:.08em;font-size:9px}
.reports-lead-metric>strong{color:#3d587c;font-size:27px;letter-spacing:-.04em}
.reports-lead-metric--won{background:#f2f9f5;border-color:#deeee4}
.reports-lead-metric--won>strong{color:#39805c}
.reports-lead-metric--lost{background:#fff7f3;border-color:#f1e3da}
.reports-lead-metric--lost>strong{color:#aa7759}
.reports-table-wrap{border:1px solid #e8edf4;border-radius:13px;overflow:auto}
.reports-shell table{color:#435773}
.reports-shell thead th{background:#f7f9fd;color:#8391a6;font-size:9px;letter-spacing:.07em;font-weight:700;padding:14px 13px}
.reports-shell td,.reports-shell tbody th{padding:16px 13px;border-bottom:1px solid #edf1f6;vertical-align:middle}
.reports-shell tbody tr:last-child :is(th,td){border-bottom:0}
.reports-shell tbody tr:hover{background:#fafcff}
.reports-shell td small{color:#8a99ae;line-height:1.6}
.reports-shell td a{font-size:11px;font-weight:650;text-decoration:none;display:inline-flex;padding:6px 9px;background:#f1f5fc;border-radius:8px}
.reports-status{display:inline-flex;align-items:center;gap:5px;background:#f0f4fb;color:#647f9f;border:1px solid #e3ebf6;border-radius:999px;font-size:10px;padding:5px 9px}
.reports-status::before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}
.reports-status[data-state=aprobada],.reports-status[data-state=registrado]{background:#edf8f2;color:#3b7e5d;border-color:#dceee2}
.reports-status[data-state=rechazada],.reports-status[data-state=cancelado]{background:#fff4ef;color:#aa755e;border-color:#f1e1d8}
.reports-status[data-state=borrador]{background:#f4f5f8;color:#8793a5;border-color:#e9ecf1}
.reports-section-head>span{border:1px solid #e6ecf4;border-radius:8px;padding:5px 9px;background:#f7f9fd;font-size:10px;color:#8a99af;white-space:nowrap}
.reports-pagination a,.followups-pagination a{display:inline-flex;align-items:center;min-height:34px;border:1px solid #e1e8f2;background:#fff;border-radius:9px;padding:5px 10px;text-decoration:none}
.settings-layout{grid-template-columns:210px minmax(0,1fr);gap:25px}
.settings-index{border:1px solid var(--ui-line);border-radius:17px;padding:19px;background:#fff;box-shadow:0 4px 20px #19335b04;gap:6px}
.settings-index>p{font-size:9px;color:#8c9bb0;margin:0 0 12px}
.settings-index>a{display:flex;align-items:center;gap:8px;padding:11px 10px;border-radius:9px;color:#677f9e;font-size:11px;transition:background .15s}
.settings-index>a:hover{background:#f0f5fd;color:var(--ui-blue)}
.settings-index>div{font-size:10px;color:#90a0b5;margin-top:12px;padding-top:16px}
.settings-card-heading{gap:13px;margin-bottom:20px}
.settings-card-heading>span{border:1px solid #e1eafa;border-radius:12px;background:#f1f5fd;color:#7190bb;font-size:11px;width:40px;height:40px;flex:none}
.settings-card-heading p{font-size:9px;letter-spacing:.1em;color:#8c9bb0;margin-bottom:6px}
.settings-account{background:#f8fafd;border:1px solid #e9eef6;border-radius:13px;padding:18px 20px;gap:20px}
.settings-account dt{font-size:10px;color:#8a9ab1}
.settings-account dd{font-size:12px;color:#4e6686;font-weight:650}
.settings-role{display:inline-flex;align-items:center;gap:6px;background:#eef4ff;border:1px solid #dde8fa;border-radius:999px;padding:4px 9px;font-size:10px}
.settings-role::before{content:'';width:5px;height:5px;border-radius:50%;background:#779aca}
.settings-fixed{background:#f6f9fe;border:1px solid #e5edf7;border-radius:12px;padding:16px}
.settings-fixed>span{color:#8698b2;font-size:9px}
.settings-fixed strong{color:#49668f;font-size:12px}
.settings-actions{border-color:var(--ui-line);padding-top:23px;gap:12px}
.settings-hosting{border-color:var(--ui-line);margin-top:32px;padding-top:27px}
.settings-check{border:1px solid #e4ebf5;border-radius:13px;background:#f8fafd;padding:16px;align-items:center;color:#536d8e;font-size:12px;gap:13px}
.settings-check input{appearance:none;position:relative;box-sizing:border-box;width:39px;height:23px;margin:0;border:1px solid #d4deea;border-radius:999px;background:#dfe6ef;cursor:pointer;transition:background .18s,border-color .18s}
.settings-check input::before{content:'';position:absolute;width:17px;height:17px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #324b7222;transition:transform .18s}
.settings-check input:checked{background:var(--ui-blue);border-color:var(--ui-blue)}
.settings-check input:checked::before{transform:translateX(15px)}
.settings-check input:disabled{cursor:default;opacity:.55}
.home-stage .welcome{min-height:310px;padding:38px 42px;border:1px solid var(--ui-line);border-radius:24px;background:radial-gradient(ellipse at 100% 0,#edf3fd,transparent 65%),#fff;color:var(--ui-ink);box-shadow:0 4px 20px #19335b04}
.home-stage .welcome .eyebrow{color:#6e89b0;font-size:10px;font-weight:800;letter-spacing:.15em}
.home-stage .welcome h1{font-size:clamp(34px,4.2vw,49px);font-weight:780;letter-spacing:-.055em;line-height:1.07}
.home-stage .welcome-description{font-size:13px;line-height:1.8;color:#7b8ca4;max-width:370px}
.home-stage .welcome-action{margin-top:22px;gap:22px;text-decoration:none}
.home-stage .visual-sheet--front{border:1px solid #e0e9f5;background:#fff;box-shadow:0 14px 40px #3159a715;color:#435f87}
.home-stage .visual-sheet--back{background:#e2eaf8;border:1px solid #d8e4f5;box-shadow:none}
.home-stage .visual-sheet-heading{color:#6f8aad}
.home-stage .visual-sheet-title{color:#354e74}
.home-stage .visual-row{background:#f4f7fd;color:#768dab;border:1px solid #edf1f8}
.home-stage .section-heading{margin-bottom:20px}
.home-stage .section-heading p{color:#8597b1;font-size:9px;letter-spacing:.13em}
.home-stage .section-heading h2{font-size:25px;color:var(--ui-ink);letter-spacing:-.04em}
.home-stage .section-heading>span{font-size:11px;color:#8b9bb2}
.home-stage .followups-help{font-size:11px;color:#8393aa;line-height:1.8}
.home-stage .followups-panel>header{padding:23px;background:#fff;border-bottom:1px solid #edf1f6}
.home-stage .followups-panel>header p{color:#8498b5;font-size:9px;letter-spacing:.1em}
.home-stage .followups-panel h3{font-size:18px;font-weight:740;color:#3a526f}
.home-stage .followups-count{width:40px;height:40px;border:1px solid #e1e9f6;border-radius:12px;background:#f2f6fd;color:#6382b1;font-size:19px;font-weight:750}
.home-stage .followups-panel--vencidos .followups-count{background:#fff7ef;color:#b1865e;border-color:#f3e5d6}
.home-stage .followups-list{padding:0 23px}
.home-stage .followups-list li{padding:23px 0;border-color:#edf1f6}
.home-stage .followup-time time{font-size:13px;color:#5b7ca8}
.home-stage .followup-time>span{font-size:10px;background:#f4f7fc;padding:4px 7px;border-radius:6px;color:#8196b2}
.home-stage .followup-time .followup-late{color:#a87a52;background:#fff7ee}
.home-stage .followup-folio{color:#8799b2;letter-spacing:.05em;margin:15px 0 8px}
.home-stage .followups-list h4{font-size:15px;color:#3b516e}
.home-stage .followup-client{color:#8191a8;line-height:1.8}
.home-stage .followup-actions a{font-size:11px;text-decoration:none;color:#5f80b0}
.home-stage .followup-actions a:first-child{padding:5px 9px;border:1px solid #e1eafa;border-radius:8px;background:#f4f7fd}
.home-stage .followups-empty{margin:18px 22px;padding:22px;font-size:12px}
.home-stage .home-refresh{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid #dfe7f3;border-radius:9px;background:#fff;color:#7189ab;text-decoration:none;font-size:10px}
.home-stage .followups-footer a{font-size:11px;text-decoration:none;color:#6885ad}
.home-stage .action-grid{gap:16px}
.home-stage .action-card{padding:20px;min-height:190px;transition:box-shadow .18s,border-color .18s,transform .18s}
.home-stage .action-card:hover{border-color:#c3d3e9;box-shadow:0 8px 26px #1d3a6310;transform:translateY(-2px)}
.home-stage .action-top{min-height:74px;background:#f5f8fd;border:1px solid #edf2f9;border-radius:14px}
.home-stage .action-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #dfe9f7;border-radius:13px;background:#eef4fc;color:#7190b9;font-size:25px;box-shadow:none}
.home-stage .action-arrow{color:#8ba0bd}
.home-stage .action-copy strong{font-size:15px;color:#435b7c;letter-spacing:-.02em}
.home-stage .action-copy small{font-size:11px;color:#8b9bb0;line-height:1.7}
:is(.home-stage,.reports-shell,.settings-shell) :focus-visible{outline:3px solid #83a7df;outline-offset:4px}
@media(max-width:850px){.settings-layout{grid-template-columns:1fr;gap:16px}.settings-index{position:static;display:flex;flex-wrap:wrap;gap:5px;padding:8px 10px}.settings-index>p,.settings-index>div{display:none}.settings-index>a{font-size:10px;padding:8px}.reports-lead-metrics{grid-template-columns:1fr 1fr}.reports-lead-metric:last-child{grid-column:1/-1}}
@media(max-width:760px){.home-stage,.reports-shell,.settings-shell{padding:25px 18px 135px}.reports-header h1,.settings-header h1{font-size:34px}.home-stage .welcome{padding:28px 26px;min-height:0}.home-stage .welcome h1{font-size:37px}.home-stage .welcome-description{font-size:13px}.settings-card,.reports-panel{padding:21px}.reports-filters{padding:19px;gap:13px}.reports-header{flex-wrap:wrap}.reports-metric{padding:20px}.reports-metric>strong{font-size:25px}.home-stage .action-card{padding:15px;min-height:175px}.home-stage .action-top{min-height:72px}}
@media(max-width:540px){.home-stage .welcome-visual{margin-top:12px;height:165px}.home-stage .welcome{padding-bottom:20px}.home-stage .section-heading h2{font-size:23px}.home-stage .action-grid{gap:11px}.home-stage .action-card{padding:12px}.reports-filters input,.reports-filters select{min-width:0}.reports-filters>div{min-width:0}.reports-filters>div:not(.reports-client){flex-basis:calc(50% - 7px)}.reports-filters .reports-client{min-width:0;flex-basis:100%}.reports-metrics{gap:11px}.reports-metric strong{font-size:22px}.reports-currency{font-size:9px}.settings-card{border-radius:18px;padding:20px}.settings-account{grid-template-columns:1fr;gap:15px}.settings-grid{grid-template-columns:1fr}.settings-field--wide{grid-column:auto}.settings-actions button{width:100%}.reports-lead-metrics{grid-template-columns:1fr}.reports-lead-metric:last-child{grid-column:auto}.reports-table-wrap{margin-top:15px}.home-stage .followups-panel>header{padding:20px}.home-stage .followups-list{padding:0 20px}}
@media(prefers-reduced-motion:reduce){:is(.home-stage,.reports-shell,.settings-shell) *{transition:none!important;scroll-behavior:auto!important}}
@media print{.home-stage,.reports-shell,.settings-shell{padding:0;max-width:none}.home-stage .welcome,.reports-panel,.reports-metric,.settings-card{box-shadow:none;break-inside:avoid}.reports-table-wrap{overflow:visible;border:0}.home-stage .welcome{background:white;color:#223149}.home-stage .welcome-action{display:none}}
