:root{--ink:#101820;--night:#111c26;--night2:#182633;--steel:#344454;--accent:#a7b8c7;--text:#233140;--muted:#74818e;--line:#e2e7eb;--soft:#f4f6f8;--white:#fff;--radius:13px;--shadow:0 5px 30px rgba(16,24,32,.035);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:#f7f8fa;font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}a{text-decoration:none;color:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}.layout{display:flex;min-height:100vh}.sidebar{width:255px;min-width:255px;background:var(--ink);color:#dce6ed;min-height:100vh;padding:29px 18px 17px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:13px;padding:2px 12px 42px}.brand-symbol{height:35px;width:35px;border:1px solid #668096;transform:rotate(45deg);border-radius:7px;display:flex;flex-flow:column;align-items:center;justify-content:center;gap:3px}.brand-symbol i{background:#b2c2cf;border-radius:2px;height:3px;width:17px;display:block}.brand>span:last-child{display:flex;flex-direction:column}.brand strong{color:#fff;letter-spacing:.17em;font-size:18px;font-weight:750;line-height:1.3}.brand small{font-size:8px;letter-spacing:.19em;color:#8396a7;margin-top:3px}.sidebar-caption{font-size:9px;color:#738797;letter-spacing:.2em;font-weight:750;padding:0 15px 14px}.sidebar-caption.spaced{margin-top:26px}.nav{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:14px;padding:11px 14px;border-radius:9px;color:#99abb9;font-size:12px;font-weight:550;transition:background .15s,color .15s}.nav-item:hover{background:#243340;color:#e1eff8}.nav-item.active{background:#273744;color:#eef7ff;box-shadow:inset 3px 0 #a7b8c7}.nav-icon{font-size:20px;width:22px;line-height:1;text-align:center;font-weight:300}.sidebar-bottom{margin-top:auto}.side-status{font-size:10px;letter-spacing:.14em;border-bottom:1px solid #2c3a47;padding:20px 10px;color:#9aaebd}.status-dot,.online-circle{display:inline-block;width:6px;height:6px;border-radius:50%;background:#95bcaf;margin-right:9px}.user-card{display:flex;align-items:center;gap:10px;padding:17px 4px 10px}.avatar{width:33px;height:33px;border-radius:9px;background:#344759;color:white;display:grid;place-items:center;font-weight:700}.user-overflow{overflow:hidden;display:flex;flex-direction:column}.user-overflow strong{font-size:12px;font-weight:650;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.user-overflow small{font-size:10px;color:#8a9ca9;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.logout{width:100%;border:0;background:transparent;display:flex;justify-content:space-between;color:#869aa9;font-size:11px;text-align:left;padding:9px 10px}.logout:hover{color:white}.mainwrap{display:flex;flex-direction:column;flex:1;min-width:0}.topbar{height:74px;padding:0 43px;background:white;border-bottom:1px solid #edf0f2;display:flex;align-items:center;justify-content:space-between}.crumb{font-size:11px;color:#596875;letter-spacing:.035em;font-weight:580}.crumb>span:first-child{color:#172631;font-weight:790;letter-spacing:.15em}.crumb-divider{margin:0 12px;color:#b8c3cb}.topright{font-size:11px;color:#8795a0}.mobile-toggle{display:none;background:none;border:0;font-size:22px}.content{width:100%;max-width:1430px;margin:0 auto;padding:44px 46px 60px;flex:1}.foot{padding:25px 46px;color:#9aa5ae;font-size:10px;letter-spacing:.08em;border-top:1px solid #ebeff1}.foot span{padding:0 12px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:32px}.eyebrow,.kicker{font-size:9px;font-weight:770;letter-spacing:.19em;color:#6d8090;text-transform:uppercase}.page-heading .eyebrow{margin:0 0 12px}.page-heading h1{font-size:32px;line-height:1.2;color:#15232f;font-weight:690;letter-spacing:-.055em;margin:0 0 10px}.period{color:#91aabd}.page-heading p:not(.eyebrow){margin:0;color:#87939d;font-size:12px}.btn{min-height:40px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:10px 17px;border:1px solid transparent;font-weight:700;font-size:11px;letter-spacing:.01em;white-space:nowrap;transition:background .15s,transform .15s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:#172633;color:white}.btn.primary:hover{background:#30465a}.btn.outline{background:white;border-color:#d5dfe6;color:#263847}.btn.outline:hover{background:#edf2f5}.btn.soft{background:#f0f3f6;color:#344655}.btn.small{min-height:34px;padding:8px 13px}.btn.full{width:100%}.action-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.metric-card{background:white;border:1px solid #e7ecef;border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);min-height:172px}.metric-icon{color:#a3b2bf;font-size:23px;line-height:1;margin-bottom:18px}.metric-label{font-size:9px;letter-spacing:.12em;color:#81919e;font-weight:710;margin-bottom:9px}.metric-value{color:#142331;font-size:33px;font-weight:690;letter-spacing:-.05em;line-height:1.1;overflow-wrap:anywhere}.metric-value.smaller{font-size:26px}.metric-bottom{font-size:11px;color:#98a4ae;margin-top:11px}.section-card{background:white;border:1px solid #e7ecef;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-bottom:24px}.section-heading{padding:24px 28px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading h2,.section-card h2{font-size:18px;letter-spacing:-.035em;color:#1e2c38;font-weight:670;margin:7px 0 0}.text-link{color:#526b7e;font-size:11px;font-weight:720}.text-link:hover{text-decoration:underline}.table-wrap{overflow-x:auto}.data-table{border-collapse:collapse;text-align:left;width:100%;min-width:620px}.data-table th{background:#f8f9fa;font-size:9px;color:#8795a1;letter-spacing:.10em;font-weight:800;border-bottom:1px solid #e8edf0;padding:14px 20px;white-space:nowrap}.data-table td{padding:17px 20px;border-bottom:1px solid #edf1f3;vertical-align:middle;font-size:12px}.data-table tr:last-child td{border-bottom:none}.data-table tr:hover td{background:#fbfcfd}.code-cell{font-size:11px!important;font-weight:750;white-space:nowrap;color:#273d50}.money-cell{font-weight:730;color:#263c4b;white-space:nowrap}.muted-cell{color:#768695}.status{font-size:10px;border:1px solid #e1e8ed;background:#f0f3f6;color:#587083;padding:5px 10px;border-radius:20px;font-weight:700;display:inline-flex;white-space:nowrap}.status.aceptada{background:#eef7f2;color:#3e7763;border-color:#d8ebdf}.status.enviada{background:#eef3f8;color:#426a91;border-color:#dae6f1}.status.rechazada{background:#f9f0f0;color:#986262;border-color:#f2dddd}.icon-link{font-size:18px;color:#8497a7}.tip-card{padding:26px 30px;border-radius:13px;background:#172633;color:white;display:flex;align-items:center;gap:40px}.tip-card .tip-label{color:#8da7ba;font-size:9px;letter-spacing:.16em;min-width:125px}.tip-card div:nth-child(2){flex:1}.tip-card h3{font-size:17px;font-weight:620;margin:0 0 6px}.tip-card p{color:#a7b6c2;font-size:11px;margin:0}.tip-card>span{font-size:25px;color:#98adbc}.empty{text-align:center;padding:55px 25px;color:#8a98a4}.empty-symbol{font-size:34px;color:#a9b9c5}.empty h3{color:#314451;font-weight:600;font-size:17px}.empty p{font-size:12px}.card-pad{padding:30px}.two-cols{display:grid;grid-template-columns:1fr 1.15fr;gap:21px}.two-cols .section-card{margin:0}.form-stack{display:flex;flex-direction:column;gap:17px;margin-top:23px}.form-actions{display:flex;gap:10px;margin-top:8px}.form-stack label,.fields-grid label{display:flex;flex-direction:column;gap:8px;font-weight:650;font-size:11px;color:#4f6170}.form-stack input,.fields-grid input,.form-stack select,.fields-grid select,.form-stack textarea,.fields-grid textarea{width:100%;height:42px;border:1px solid #dee5eb;border-radius:7px;background:#fff;padding:9px 12px;color:#223441;outline:0;font-size:12px;font-weight:450}.form-stack textarea{height:auto;resize:vertical}.form-stack input:focus,.fields-grid input:focus,.form-stack select:focus,.fields-grid select:focus,.form-stack textarea:focus,.items-table-wrap input:focus,.filters input:focus,.filters select:focus{border-color:#98adbc;box-shadow:0 0 0 3px rgba(167,184,199,.2)}.client-list{display:flex;flex-direction:column}.client-item{display:flex;gap:13px;align-items:center;padding:16px 22px;border-bottom:1px solid #edf1f4}.client-item:last-child{border:0}.client-initial{width:38px;height:38px;border-radius:10px;background:#eaf0f3;display:grid;place-items:center;color:#536d7f;font-weight:750}.client-content{display:flex;flex-direction:column;min-width:0;flex:1}.client-content strong{font-size:12px;color:#253849;overflow-wrap:anywhere}.client-content span{font-size:11px;color:#98a3ad;margin-top:3px}.section-heading.compact{padding:23px}.count-tag{border-radius:20px;background:#eff3f6;padding:5px 11px;font-size:10px;color:#7b8d9b}.compact-empty{padding:45px 24px}.alert{padding:15px 18px;margin-bottom:22px;border:1px solid;border-radius:8px;font-size:12px}.alert.error{background:#fff2f2;color:#953c43;border-color:#f1d8da}.alert.success{background:#eef8f2;color:#366850;border-color:#d9ecdf}.alert.info{background:#edf4f7;color:#43677b;border-color:#d5e4ec}.alert a{text-decoration:underline}.fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 22px;margin-top:27px}.section-title{display:flex;align-items:center;gap:15px}.section-title>span{color:#9cafbd;display:grid;place-items:center;width:40px;height:40px;border:1px solid #e5ebef;border-radius:11px;font-size:13px;font-weight:650}.section-title h2{margin:1px 0 0}.section-title.between{justify-content:space-between}.section-title.between>.section-title{gap:15px}.items-table-wrap{border:1px solid #e3e9ed;border-radius:9px;margin-top:25px;overflow:hidden}.items-head{background:#f4f7f9;display:grid;grid-template-columns:1fr 105px 150px 30px;gap:12px;padding:13px 14px;color:#8c9aa6;font-size:9px;letter-spacing:.08em;font-weight:750}.item-row{display:grid;grid-template-columns:1fr 105px 150px 30px;gap:12px;padding:13px 14px;border-top:1px solid #e9eef1;align-items:center}.item-row input{width:100%;height:41px;min-width:0;border:1px solid #dce4e9;border-radius:6px;padding:10px;font-size:12px;outline:0}.item-main{display:flex;flex-direction:column;gap:7px}.item-row input.item-sub{height:32px;background:#fafbfc;color:#778898;font-size:11px}.remove-item{background:#f4f7f9;border:0;border-radius:6px;color:#8a9aa6;font-size:22px;height:35px;width:30px}.remove-item:hover{background:#fce9e9;color:#a74d4d}.field-help{color:#8796a2;font-size:11px;margin:15px 0 0}.financial{grid-template-columns:1fr 1fr}.total-card{padding:30px;display:flex;flex-direction:column}.total-card h2{margin:8px 0 32px}.summary-rows{display:flex;flex-direction:column;gap:18px}.summary-rows>div,.detail-totals>div{display:flex;justify-content:space-between;gap:10px;font-size:12px}.summary-rows span,.detail-totals span{color:#8896a1}.summary-rows strong{color:#233846;font-weight:710}.grand-total{border-top:1px solid #dfe6ec;border-bottom:1px solid #dfe6ec;padding:25px 0;margin:27px 0}.grand-total span{font-size:10px;letter-spacing:.16em;font-weight:760;color:#7e8f9d}.grand-total strong{display:block;font-size:36px;font-weight:700;letter-spacing:-.06em;margin-top:10px;color:#183044}.total-card p{font-size:11px;color:#91a1ac;margin-top:auto}.bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:35px}.bottom-actions>span{color:#8796a3;font-size:11px}.filters{display:flex;gap:10px;padding:20px;align-items:center}.search-field{position:relative;flex:1}.search-field span{position:absolute;left:12px;top:7px;font-size:22px;color:#96a5b0}.filters input,.filters select{width:100%;height:40px;background:#fff;border:1px solid #dfe6ea;border-radius:7px;color:#425666;padding:8px 12px;font-size:11px;outline:none}.filters input{padding-left:39px}.filters select{min-width:160px}.cell-stack{display:flex;flex-direction:column;gap:3px}.cell-stack strong{font-size:12px;color:#253848}.cell-stack small{color:#92a0aa;font-size:11px}.row-actions{display:flex;gap:15px;white-space:nowrap}.row-actions a{font-size:11px;font-weight:700;color:#536f82}.detail-meta{display:flex;gap:22px;align-items:center;margin:-10px 0 26px;color:#80909b;font-size:11px}.detail-meta a{margin-left:auto;color:#49677c;font-weight:700}.detail-totals{max-width:340px;margin:22px 0 0 auto;display:flex;flex-direction:column;gap:12px}.detail-final{border-top:1px solid #e5eaf0;padding-top:16px}.detail-final strong{font-size:23px;color:#192f40}.detail-actions{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.settings-card{max-width:940px}.settings-card .form-actions{margin-top:30px}.section-description{color:#8997a2;font-size:12px}.account-avatar{margin:33px 0 12px;width:58px;height:58px;border-radius:14px;background:#253e50;color:white;display:grid;place-items:center;font-size:23px}.account-info p{color:#8495a1;font-size:12px}.security-list{display:flex;flex-direction:column;gap:12px;margin-top:30px;padding-top:25px;border-top:1px solid #e8edf0;color:#738998;font-size:11px}
/* Inicio de sesión */
.login-page{background:#101820}.login-split{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-left{background:#132330;color:#edf4f8;display:flex;flex-direction:column;padding:43px 60px;position:relative;overflow:hidden}.login-left:before{content:"";position:absolute;left:22%;top:19%;width:670px;height:670px;border-radius:50%;border:1px solid rgba(170,200,220,.08);box-shadow:0 0 0 95px rgba(170,200,220,.024),0 0 0 190px rgba(170,200,220,.013)}.login-logo{font-size:20px;font-weight:720;letter-spacing:.18em;z-index:1}.login-logo small{display:block;margin:8px 0 0 39px;color:#809aac;font-size:8px;letter-spacing:.22em;font-weight:600}.login-hero{margin:auto 0;z-index:1}.login-hero .kicker{color:#9bb6c9;font-size:10px}.login-hero h1{letter-spacing:-.065em;font-size:clamp(40px,5vw,70px);font-weight:600;line-height:1.04;margin:24px 0}.login-hero h1 em{color:#a7b8c7;font-style:normal}.login-hero p{max-width:385px;line-height:1.85;color:#9fb2bf;font-size:14px}.lines{display:flex;align-items:end;gap:8px;height:87px;margin-top:35px}.lines div{background:#94acbe;opacity:.3;width:28px;height:28px;border-radius:3px 3px 0 0}.lines div:nth-child(2){height:44px}.lines div:nth-child(3){height:36px}.lines div:nth-child(4){height:66px}.lines div:nth-child(5){height:84px;opacity:.67}.login-bottom{font-size:9px;letter-spacing:.16em;color:#7994a7;z-index:1}.login-bottom span{padding:0 10px}.login-right{background:#fff;display:flex;align-items:center;justify-content:center;position:relative;padding:60px 45px}.login-card{width:100%;max-width:410px}.login-eyebrow{font-size:10px;font-weight:750;letter-spacing:.2em;color:#849cad}.login-card h2{font-size:39px;letter-spacing:-.065em;font-weight:670;margin:14px 0 2px}.login-card>p{color:#83949f;font-size:13px;margin-bottom:36px}.login-card form{display:flex;flex-direction:column;gap:22px}.login-card label{display:flex;flex-direction:column;gap:10px;font-size:12px;color:#4e6272;font-weight:700}.login-card input{height:49px;border:1px solid #dde6eb;border-radius:7px;padding:12px 15px;font-size:13px;outline:0}.login-card input:focus{border-color:#98b2c3;box-shadow:0 0 0 3px #ebf1f5}.login-card form .btn{height:50px;margin-top:7px;justify-content:space-between;padding-left:20px;padding-right:20px}.login-assurance{margin-top:32px;font-size:11px;color:#8c9ca8}.login-small{position:absolute;bottom:28px;font-size:10px;letter-spacing:.18em;color:#a2afb8}
@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{min-width:230px;width:230px}.content{padding:34px 28px 50px}.topbar{padding:0 28px}.two-cols{grid-template-columns:1fr 1fr}}@media(max-width:780px){.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:20;transform:translateX(-101%);transition:transform .2s;width:255px}.sidebar.open{transform:translateX(0)}.mobile-toggle{display:block;margin-right:15px}.topbar{height:63px;justify-content:flex-start;padding:0 20px}.topright{margin-left:auto}.content{padding:29px 19px 40px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:29px}.two-cols,.financial{grid-template-columns:1fr}.fields-grid{grid-template-columns:1fr}.login-split{grid-template-columns:1fr}.login-left{display:none}.login-right{min-height:100vh}.items-head,.item-row{grid-template-columns:minmax(0,1fr) 65px 95px 25px;gap:6px;padding:10px 7px}.items-head{font-size:7px}.item-row input{font-size:11px;padding:6px}.item-row input.item-sub{font-size:10px}.bottom-actions{align-items:flex-start;flex-direction:column}.metric-grid{gap:9px}.metric-card{padding:17px;min-height:155px}.metric-value{font-size:27px}.metric-value.smaller{font-size:20px}.tip-card{gap:12px}.tip-card .tip-label{display:none}.filters{flex-wrap:wrap}.filters .search-field{width:100%;flex:none}.detail-meta{flex-wrap:wrap}.detail-meta a{margin-left:0}.foot{padding:21px}.card-pad{padding:21px}.section-title.between{gap:10px;align-items:flex-start;flex-direction:column}}@media(max-width:420px){.metric-grid{grid-template-columns:1fr 1fr}.metric-label{font-size:8px}.metric-value{font-size:24px}.metric-value.smaller{font-size:17px}.grand-total strong{font-size:29px}.action-inline .btn{flex:1}.login-right{padding:35px 23px}}
