@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#172b42;--muted:#718197;--line:#e7edf3;--navy:#102d4d;--blue:#2878c7;--bg:#f5f8fb;--white:#fff;--shadow:0 8px 28px rgba(20,48,76,.055)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:'DM Sans',Arial,sans-serif;background:var(--bg);font-size:14px}a{color:inherit;text-decoration:none}h1,h2,h3,strong{font-family:Manrope,'DM Sans',sans-serif}h1,h2,h3,p{margin-top:0}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 10%,#e4f1ff 0,transparent 34%),#f5f8fb}.auth-card{width:min(100%,430px);padding:42px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.brand-mark{display:grid;place-items:center;width:52px;height:52px;background:var(--navy);color:#fff;border-radius:15px;font:800 17px Manrope,sans-serif;letter-spacing:-1px}.eyebrow{margin:0 0 9px;color:#7e8fa4;font-size:10px;font-weight:700;letter-spacing:1.25px}.auth-card .eyebrow{margin-top:22px}.auth-card h1{margin:0 0 9px;font-size:27px;letter-spacing:-.7px}.lead{color:var(--muted);line-height:1.55}.form-stack{display:grid;gap:16px;margin-top:24px}.form-stack label{display:grid;gap:7px;font-size:12px;font-weight:600;color:#334a61}.form-stack input{width:100%;height:44px;border:1px solid #dce5ed;border-radius:9px;padding:0 12px;font:400 14px 'DM Sans',sans-serif;color:var(--ink);outline:none}.form-stack input:focus{border-color:#4d93d1;box-shadow:0 0 0 3px #e6f2fd}.form-stack small{color:var(--muted);font-weight:400}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;min-height:42px;padding:0 17px;font:600 13px 'DM Sans',sans-serif;cursor:pointer}.button-primary{background:var(--navy);color:#fff}.button-primary:hover{background:#19436d}.button-block{width:100%;margin-top:4px}.button-quiet{background:#fff;border:1px solid var(--line);color:#52677d}.setup-note{margin:22px 0 0;text-align:center;color:var(--muted);font-size:12px}.setup-note a,.text-link{color:#2169a9;font-weight:700}.notice{margin:16px 0;padding:12px 14px;border-radius:9px;line-height:1.45}.notice-error{background:#fff0ef;border:1px solid #f3d0ce;color:#9d3a34}.app-page{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#fff;border-right:1px solid var(--line);padding:24px 15px;display:flex;flex-direction:column;z-index:2}.side-brand{display:flex;gap:11px;align-items:center;padding:0 8px 29px}.brand-mark-small{width:39px;height:39px;border-radius:11px;font-size:13px}.side-brand strong{display:block;font-size:14px}.side-brand small{display:block;color:#8797a8;font-size:11px;margin-top:3px}.side-label{margin:0 10px 9px;color:#99a7b6;font-size:9px;font-weight:700;letter-spacing:1.15px}.side-nav{display:grid;gap:4px}.side-nav a{height:41px;display:flex;align-items:center;gap:12px;padding:0 12px;border-radius:8px;color:#566b80;font-size:12px;font-weight:500}.side-nav a span{font-size:16px;width:17px;text-align:center;color:#8093a7}.side-nav a.active{background:#eaf3fb;color:#174b77;font-weight:700}.side-nav a.active span{color:#2878c7}.sidebar-bottom{margin-top:auto;padding:14px 10px;color:#52687d;font-size:11px;border-top:1px solid var(--line)}.sidebar-bottom small{margin-left:14px;color:#8a9aab}.status-dot{display:inline-block;width:7px;height:7px;background:#34ad80;border-radius:50%;margin-right:7px}.main-content{max-width:1460px;margin-left:248px;padding:28px 38px 20px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.topbar .eyebrow{margin-bottom:5px}.topbar h1{margin:0;font-size:22px;letter-spacing:-.4px}.welcome-panel{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;min-height:157px;padding:25px 30px;background:linear-gradient(115deg,#102d4d,#17466e);border-radius:14px;color:#fff;box-shadow:var(--shadow)}.welcome-panel .eyebrow{color:#a9c9e5}.welcome-panel h2{max-width:530px;margin:0 0 7px;font-size:21px;letter-spacing:-.5px}.welcome-panel p:last-child{margin:0;color:#c5d7e7;font-size:12px}.welcome-icon{display:grid;place-items:center;width:98px;height:98px;border:1px solid #ffffff38;border-radius:50%;font-size:49px;color:#b7d8f2;margin-right:8%;background:#ffffff0b}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 26px}.stat-card{padding:16px 17px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#697d91;font-size:11px;font-weight:600}.stat-card>strong{display:block;font-size:25px;letter-spacing:-.8px;margin:9px 0 2px}.stat-card>small{color:#91a0af;font-size:10px}.stat-icon,.quick-icon,.module-icon{display:grid;place-items:center;border-radius:9px;font-weight:700}.stat-icon{width:31px;height:31px;font-size:16px}.blue{background:#e9f3fc;color:#2878c7}.violet{background:#f0edfc;color:#7758bd}.orange{background:#fff2e6;color:#ca7b2c}.red{background:#fff0ef;color:#c75a54}.teal{background:#e8f6f4;color:#299583}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:0 0 12px}.section-heading .eyebrow{margin-bottom:4px}.section-heading h2{margin:0;font-size:16px;letter-spacing:-.3px}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.quick-card{display:flex;align-items:center;gap:12px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:11px;transition:transform .15s,border-color .15s}.quick-card:hover{transform:translateY(-2px);border-color:#c9d9e7}.quick-icon{flex:0 0 38px;width:38px;height:38px;font-size:18px}.quick-card span:nth-child(2){flex:1}.quick-card strong,.quick-card small{display:block}.quick-card strong{font-size:11px}.quick-card small{margin-top:4px;color:#8393a3;font-size:9px}.quick-card>b{color:#9babb9;font-size:16px}.section-lower{margin-top:27px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.module-card{min-height:150px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:11px;scroll-margin-top:20px}.module-icon{width:34px;height:34px;margin-bottom:11px;font-size:18px}.module-card h3{margin:0 0 6px;font-size:12px}.module-card p{min-height:32px;margin:0 0 9px;color:#8190a0;font-size:10px;line-height:1.55}.module-state{display:inline-flex;padding:4px 7px;border-radius:20px;background:#f0f4f7;color:#728399;font-size:9px;font-weight:600}.app-footer{padding:20px 0 4px;color:#95a2b1;font-size:10px}
@media(max-width:1050px){.sidebar{width:215px}.main-content{margin-left:215px;padding:25px}.stats-grid{grid-template-columns:repeat(2,1fr)}.module-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.sidebar{position:static;width:auto;height:auto;padding:13px 14px;border-right:0;border-bottom:1px solid var(--line)}.side-brand{padding:0 0 12px}.side-label,.sidebar-bottom{display:none}.side-nav{display:flex;overflow:auto;gap:5px}.side-nav a{flex:0 0 auto;height:34px;padding:0 10px;font-size:10px}.side-nav a span{display:none}.main-content{margin:0;padding:19px 15px}.topbar{margin-bottom:18px}.topbar h1{font-size:19px}.welcome-panel{min-height:145px;padding:21px}.welcome-panel h2{font-size:18px}.welcome-icon{width:65px;height:65px;font-size:33px;margin-right:0}.stats-grid{gap:9px;margin:12px 0 22px}.stat-card{padding:13px}.stat-top{font-size:9px}.stat-card>strong{font-size:22px}.quick-grid{grid-template-columns:1fr}.quick-card{padding:12px}.module-grid{grid-template-columns:1fr 1fr;gap:9px}.module-card{padding:13px;min-height:151px}.module-card p{font-size:9px}.auth-card{padding:29px 23px}}
@media(max-width:390px){.module-grid{grid-template-columns:1fr}.welcome-icon{display:none}}
.workspace-grid{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(420px,1.18fr);gap:16px;align-items:start}.content-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px;box-shadow:var(--shadow)}.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.card-heading .eyebrow{margin-bottom:4px}.card-heading h2{margin:0;font-size:15px}.data-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.data-form label{display:grid;gap:6px;color:#43596e;font-size:10px;font-weight:700}.data-form input:not([type=checkbox]),.data-form select,.data-form textarea,.search-form input{width:100%;min-width:0;border:1px solid #dfe7ee;border-radius:8px;padding:10px;font:400 12px 'DM Sans',sans-serif;color:var(--ink);outline:none;background:#fff}.data-form input:focus,.data-form select:focus,.data-form textarea:focus,.search-form input:focus{border-color:#5797cf;box-shadow:0 0 0 3px #eaf4fc}.data-form textarea{resize:vertical}.form-wide{grid-column:1/-1}.check-line{display:flex!important;align-items:center;gap:8px!important;font-weight:500!important}.check-line input{accent-color:#2878c7}.search-form{display:flex;gap:8px;margin-bottom:12px}.search-form input{height:39px}.count-pill{display:grid;place-items:center;min-width:26px;height:26px;padding:0 8px;border-radius:20px;background:#edf3f8;color:#526c84;font-size:10px;font-weight:700}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:10px}th{padding:9px 7px;border-bottom:1px solid var(--line);color:#8797a7;font-size:9px;font-weight:700}td{padding:10px 7px;border-bottom:1px solid #f0f3f6;color:#63778a;vertical-align:middle}td strong,td small{display:block}td strong{color:#294057;font-size:10px}td small{margin-top:4px;color:#97a4b1;font-size:9px}.table-action{border:0;background:transparent;color:#a35b52;font:600 9px 'DM Sans',sans-serif;cursor:pointer;padding:5px}.empty-state{text-align:center;padding:30px 8px;color:#92a0af}.notice-success{background:#eaf7f1;border:1px solid #cce9dc;color:#267451}
@media(max-width:1150px){.workspace-grid{grid-template-columns:1fr}.content-card{width:100%}}
@media(max-width:720px){.content-card{padding:15px}.data-form{gap:10px}.search-form{align-items:stretch}.table-wrap{margin:0 -5px}}
.budget-form-card,.budget-list-card{margin-bottom:16px}.budget-meta{max-width:900px}.line-items-head{display:flex;align-items:center;justify-content:space-between;margin:23px 0 10px}.line-items-head .eyebrow{margin:0 0 4px}.line-items-head h3{margin:0;font-size:13px}.line-items{display:grid;gap:8px}.line-item{display:grid;grid-template-columns:1.15fr 1.5fr .55fr .8fr .65fr 28px;gap:8px;align-items:end;padding:10px;background:#f8fafc;border:1px solid #edf1f5;border-radius:9px}.line-item label{display:grid;gap:5px;color:#65788b;font-size:9px;font-weight:700}.line-item input,.line-item select{min-width:0;width:100%;height:37px;padding:0 8px;border:1px solid #dfe7ee;border-radius:7px;background:#fff;color:var(--ink);font:400 11px 'DM Sans',sans-serif}.remove-line{height:35px;border:0;background:transparent;color:#b24f4a;font-size:21px;cursor:pointer}.budget-footer{display:grid;grid-template-columns:minmax(240px,1fr) minmax(220px,300px);gap:22px;align-items:end;margin:18px 0}.budget-footer>label{display:grid;gap:7px;color:#52687d;font-size:10px;font-weight:700}.budget-footer textarea{width:100%;border:1px solid #dfe7ee;border-radius:8px;padding:10px;font:400 12px 'DM Sans',sans-serif}.totals{display:grid;gap:7px}.totals div{display:flex;justify-content:space-between;color:#718197;font-size:11px}.totals strong{color:#334a61}.totals .grand-total{padding-top:8px;border-top:1px solid var(--line);font-size:14px;color:var(--ink)}.grand-total strong{font-size:17px;color:var(--navy)}.status-pill{display:inline-block;padding:5px 8px;border-radius:20px;background:#eef2f6;color:#5e7185;font-size:9px;font-weight:700}.status-enviado,.status-aceptado,.status-pagada{background:#e7f5ed;color:#28734e}.status-rechazado,.status-anulada{background:#fff0ef;color:#a94d48}.status-convertido{background:#e9f3fc;color:#276ca6}.status-parcial{background:#fff4e5;color:#a36719}.row-actions{display:flex;flex-wrap:wrap;gap:4px}.row-actions form{margin:0}.payment-row td{padding-top:0;background:#fcfdfe}.payment-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.payment-form>strong{margin-right:5px;color:#52687d;font-size:10px}.payment-form input,.payment-form select{height:35px;min-width:105px;padding:0 8px;border:1px solid #dfe7ee;border-radius:7px;background:#fff;font:400 10px 'DM Sans',sans-serif}.payment-form input[name=referencia]{min-width:145px}.payment-form .button{min-height:35px;font-size:10px}.notice-error a{color:#2169a9}@media(max-width:900px){.line-item{grid-template-columns:1fr 1fr .6fr .8fr .7fr 24px}.budget-footer{grid-template-columns:1fr 260px}}@media(max-width:720px){.line-item{grid-template-columns:1fr 1fr;align-items:end}.line-item label:nth-child(2){grid-column:1/-1}.line-item .remove-line{grid-column:2;justify-self:end}.budget-footer{grid-template-columns:1fr}.payment-form{align-items:stretch}.payment-form>*{flex:1}.payment-form>strong{flex-basis:100%}}

.report-filter{margin-bottom:16px}.report-range{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.report-range label{display:grid;gap:6px;color:#52687d;font-size:10px;font-weight:700}.report-range input{height:39px;border:1px solid #dfe7ee;border-radius:8px;padding:0 10px;font:400 12px 'DM Sans',sans-serif;color:var(--ink)}.report-period{margin-left:auto;color:#8190a0;font-size:11px}.report-stats{margin-top:0}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.report-grid .content-card{min-width:0}.status-en_curso{background:#fff4e5;color:#a36719}@media(max-width:800px){.report-grid{grid-template-columns:1fr}.report-period{flex-basis:100%;margin:0}}@media print{.sidebar,.topbar button,.report-filter,.app-footer{display:none!important}.main-content{margin:0;padding:0;max-width:none}.report-grid{grid-template-columns:1fr 1fr}.content-card,.stat-card{box-shadow:none;break-inside:avoid}.stats-grid{grid-template-columns:repeat(4,1fr)}}

/* Identidad Cuyo Smart: Azul dinámico, lima fresca, tinta y blanco frío. */
:root{--ink:#141923;--muted:#657087;--line:#e7eaf2;--navy:#141923;--blue:#4267d5;--lime:#b8d85a;--bg:#f4f6fc;--white:#fff;--shadow:0 10px 32px rgba(20,25,35,.075)}
body{font-family:Manrope,Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}
h1,h2,h3,strong{font-family:Manrope,Inter,Arial,sans-serif}
.auth-page{background:radial-gradient(circle at 15% 10%,#e3e9ff 0,transparent 35%),radial-gradient(circle at 90% 90%,#edf4d6 0,transparent 30%),var(--bg)}
.brand-mark{background:var(--blue)}
.auth-logo{display:block;width:min(100%,320px);height:auto;margin:0 auto 15px}
.side-brand{gap:10px;padding-bottom:29px}
.side-brand .side-mark{width:39px;height:39px;flex:none;border-radius:11px}
.side-brand strong{font-size:14px;letter-spacing:-.35px}
.side-brand small{color:var(--muted)}
.side-nav a.active{background:#eef1ff;color:#2947aa}
.side-nav a.active span{color:var(--blue)}
.button-primary{background:var(--blue);color:#fff}
.button-primary:hover{background:#3452b2}
.button-accent{background:var(--lime);color:var(--ink)}
.button-accent:hover{background:#a8c84b}
.form-stack input:focus,.data-form input:focus,.data-form select:focus,.data-form textarea:focus,.search-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #4267d526}
.setup-note a,.text-link{color:#3452b2}
.welcome-panel{background:linear-gradient(115deg,#4267d5,#3452b2)}
.welcome-panel .eyebrow{color:#e1e7ff}
.welcome-panel h2{color:#fff}
.welcome-panel p:last-child{color:#e6ebff}
.welcome-icon{border-color:#b8d85a88;color:var(--ink);background:var(--lime)}
.stat-card,.module-card,.content-card{border-radius:15px}
.blue{background:#eef1ff;color:#3452b2}
.violet{background:#f0edfc;color:#6952a8}
.orange{background:#f3f5dc;color:#687b25}
.red{background:#fff0ef;color:#b74c48}
.teal{background:#e8f6f4;color:#258373}
.data-form input:focus,.data-form select:focus,.data-form textarea:focus,.search-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #4267d526}
.check-line input{accent-color:var(--blue)}
.count-pill{background:#eef1ff;color:#3452b2}
.module-state{background:#eef1ff;color:#3452b2}
.status-enviado,.status-aceptado,.status-pagada{background:#eff7d2;color:#485d0c}
.status-convertido{background:#eef1ff;color:#3452b2}
.report-range input:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px #4267d526}
.side-brand .side-mark{display:block}
@media(max-width:720px){.side-brand{padding-bottom:12px}.side-brand .side-mark{width:34px;height:34px}}
.brand-mark-image{width:43px;height:43px;flex:none;border-radius:11px}

.side-label-system{margin-top:18px}

.side-badge{margin-left:auto;min-width:20px;padding:3px 6px;border-radius:999px;background:#d93343;color:#fff;font-size:9px;font-weight:900;text-align:center;line-height:1.2}

.notice-warning{display:block;background:#fff7df;border:1px solid #f1dda0;color:#745910;text-decoration:none;font-weight:700}
