:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f4f6fb}*{box-sizing:border-box}body{margin:0}.topbar{background:#172033;color:white;padding:14px 4vw;display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}.topbar nav{display:flex;gap:14px;flex-wrap:wrap}.topbar a{color:white;text-decoration:none;font-size:14px}.container{max-width:1250px;margin:26px auto;padding:0 18px}h1{margin-top:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.card,.panel{background:white;border-radius:14px;padding:20px;box-shadow:0 4px 18px rgba(25,35,58,.07)}.card span{display:block;color:#697386;font-size:13px}.card strong{font-size:26px;display:block;margin-top:7px}.panel{margin-top:18px;overflow:auto}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.button,button{background:#172033;color:white;border:0;border-radius:9px;padding:10px 14px;text-decoration:none;cursor:pointer}.button.secondary,button.secondary{background:#e8ecf5;color:#172033}.button.danger,button.danger{background:#b42318}table{width:100%;border-collapse:collapse;min-width:800px}th,td{text-align:left;border-bottom:1px solid #e8ecf2;padding:11px 9px;font-size:14px}th{color:#697386;font-size:12px;text-transform:uppercase}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.field label{display:block;font-size:13px;margin-bottom:6px;color:#526078}.field input,.field select,.field textarea{width:100%;padding:10px;border:1px solid #cdd5df;border-radius:8px;background:white}.field textarea{min-height:90px}.actions{display:flex;gap:8px;align-items:center}.actions form{margin:0}.alert{padding:12px 15px;border-radius:9px;margin-bottom:15px}.alert.success{background:#dcfae6;color:#067647}.alert.error{background:#fee4e2;color:#b42318}.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef2f7;font-size:12px}.badge.paid{background:#dcfae6;color:#067647}.badge.pending{background:#fff3d6;color:#934f00}.muted{color:#697386}.login{max-width:430px;margin:80px auto}footer{text-align:center;padding:30px;color:#697386;font-size:13px}@media(max-width:700px){.topbar{align-items:flex-start}.topbar nav{width:100%}.container{margin-top:18px}}
.readonly-box{width:100%;padding:10px;border:1px solid #cdd5df;border-radius:8px;background:#f7f8fb;min-height:40px;font-weight:700}.notice{background:#eef4ff;border-left:4px solid #172033;padding:12px;border-radius:8px;color:#35415a}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dashboard-grid .panel{min-width:0}.mini strong{font-size:21px}canvas{width:100%;display:block}.stats-grid{animation:rise .5s ease}.card,.panel{animation:rise .45s ease both;transition:transform .2s ease,box-shadow .2s ease}.card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(25,35,58,.11)}@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:850px){.dashboard-grid{grid-template-columns:1fr}}
.filter-panel{padding:16px 20px}.filter-form{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.filter-form .field{min-width:180px}.filter-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.week-block{padding:16px 0;border-top:1px solid #edf0f5}.week-block:first-of-type{border-top:0}.week-block h3{margin:0 0 12px;font-size:15px;color:#526078}.weekly-bars{display:grid;gap:9px}.weekly-row{display:grid;grid-template-columns:minmax(130px,210px) minmax(160px,1fr) 100px;gap:12px;align-items:center;padding:9px 11px;border-radius:10px}.weekly-person{font-weight:600}.weekly-track{height:10px;border-radius:999px;background:rgba(23,32,51,.08);overflow:hidden}.weekly-fill{height:100%;border-radius:inherit;background:#7384a3;transition:width .5s ease}.weekly-row strong{font-size:13px;text-align:right}.row-eduardo{background:#eef7ff!important}.row-irene{background:#fffbea!important}.row-other{background:#effaf2!important}tr.row-eduardo td,tr.row-irene td,tr.row-other td{background:transparent}.weekly-row.row-eduardo .weekly-fill{background:#8bbce7}.weekly-row.row-irene .weekly-fill{background:#dfc66d}.weekly-row.row-other .weekly-fill{background:#86c59a}@media(max-width:700px){.weekly-row{grid-template-columns:1fr}.weekly-row strong{text-align:left}.filter-form{align-items:stretch}.filter-form .field{width:100%}}

/* V4 · organización visual por semanas */
.hero-dashboard{background:linear-gradient(135deg,#172033,#2a3959);color:#fff;border-radius:20px;padding:28px 30px;display:flex;justify-content:space-between;align-items:flex-end;gap:24px;box-shadow:0 12px 30px rgba(23,32,51,.17)}.hero-dashboard h1{font-size:34px;margin:5px 0 7px}.hero-dashboard p{margin:0;color:#d8e0ef}.hero-delivery{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:13px 17px;min-width:190px}.hero-delivery span{display:block;font-size:12px;color:#d8e0ef}.hero-delivery strong{display:block;margin-top:4px;font-size:20px}.eyebrow{display:block;font-size:11px;letter-spacing:.12em;font-weight:800;color:#71809d;text-transform:uppercase}.hero-dashboard .eyebrow{color:#b9c8e4}.week-selector{overflow:visible}.week-selector-head,.week-panel-title{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.week-selector h2,.week-panel-title h2{margin:4px 0}.week-pills{display:grid;grid-template-columns:repeat(8,minmax(105px,1fr));gap:8px;margin:16px 0}.week-pill{display:flex;flex-direction:column;gap:3px;padding:11px 12px;border-radius:11px;background:#f0f3f8;border:1px solid transparent;text-decoration:none;color:#172033;transition:.2s ease}.week-pill strong{font-size:13px}.week-pill span{font-size:11px;color:#71809d}.week-pill:hover{transform:translateY(-2px);background:#e9eef7}.week-pill.active{background:#172033;color:#fff;border-color:#172033;box-shadow:0 6px 18px rgba(23,32,51,.18)}.week-pill.active span{color:#ccd6e8}.filter-form.compact{margin-top:12px;padding-top:14px;border-top:1px solid #edf0f5}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-heading h2{margin:4px 0 0}.week-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.week-card{border:1px solid #e5eaf2;border-radius:16px;padding:16px;background:#fbfcfe;min-width:0;transition:.2s ease}.week-card:hover{border-color:#cdd6e5;box-shadow:0 7px 20px rgba(25,35,58,.07);transform:translateY(-1px)}.week-card header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:12px;border-bottom:1px solid #e9edf4}.week-card header span{font-size:10px;letter-spacing:.1em;font-weight:800;color:#71809d}.week-card h3{font-size:15px;margin:4px 0 0}.week-card header>strong{font-size:18px}.week-card footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:12px;margin-top:12px;border-top:1px solid #e9edf4;font-size:12px;color:#71809d}.minimal-bars{display:grid;gap:8px;margin-top:13px}.minimal-row{display:grid;grid-template-columns:8px minmax(100px,150px) 1fr 78px;gap:9px;align-items:center;background:transparent!important;padding:4px 0}.person-dot{width:8px;height:8px;border-radius:50%;background:#86c59a}.minimal-row.row-eduardo .person-dot,.minimal-row.row-eduardo .bar-fill{background:#8bbce7}.minimal-row.row-irene .person-dot,.minimal-row.row-irene .bar-fill{background:#dfc66d}.minimal-row.row-other .person-dot,.minimal-row.row-other .bar-fill{background:#86c59a}.person-name{font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:7px;border-radius:999px;background:#e9edf4;overflow:hidden}.bar-fill{height:100%;border-radius:inherit;transition:width .55s ease}.minimal-row>strong{font-size:12px;text-align:right}.empty-state{background:#f5f7fa;color:#7b879c;border-radius:10px;padding:12px;font-size:13px}.expense-warning{color:#a15c00!important;font-weight:750}.week-money{display:flex;flex-direction:column;align-items:flex-end}.week-money span,.week-money small{font-size:11px;color:#71809d}.week-money strong{font-size:22px}.week-expense-panel,.invoice-week{border-top:4px solid #dce4f0}.invoice-reminder{margin-top:17px;background:#fff8df;border:1px solid #f3dda0;border-radius:12px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:20px}.invoice-reminder span{font-size:12px;color:#765700;display:block}.invoice-reminder strong{font-size:21px;color:#5d4300}.invoice-reminder small{color:#765700}.span-2{grid-column:span 2}.check-field{display:flex;flex-direction:column;justify-content:center;gap:10px}.check-field label{margin:0}.check-field input{width:auto;margin-right:7px}
@media(max-width:1050px){.week-pills{grid-template-columns:repeat(4,1fr)}.week-cards{grid-template-columns:1fr}}@media(max-width:700px){.hero-dashboard{align-items:flex-start;flex-direction:column}.hero-dashboard h1{font-size:27px}.week-pills{grid-template-columns:repeat(2,1fr)}.minimal-row{grid-template-columns:8px 1fr 70px}.bar-track{grid-column:2/4}.minimal-row>strong{grid-column:3;grid-row:1}.span-2{grid-column:auto}.invoice-reminder{align-items:flex-start;flex-direction:column}.week-money{align-items:flex-start}}
.week-check-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:9px;margin-top:8px;margin-bottom:18px}.week-check{display:flex!important;align-items:center;gap:9px;padding:11px 12px;border:1px solid #dce3ed;border-radius:11px;background:#f8fafc;cursor:pointer}.week-check input{width:auto!important;margin:0}.week-check span{display:flex;flex-direction:column;gap:2px}.week-check strong{font-size:13px}.week-check small,.field-help{font-size:11px;color:#71809d}.readonly-box{padding:10px;border:1px solid #dce3ed;border-radius:8px;background:#f8fafc;min-height:39px}.pending-week-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}.pending-week-card{border:1px solid #e5eaf2;border-radius:12px;padding:12px;background:#fbfcfe;display:flex;flex-direction:column;gap:3px}.pending-week-card span,.pending-week-card small{font-size:11px;color:#71809d}.pending-week-card strong{font-size:18px}@media(max-width:800px){.week-check-grid,.pending-week-grid{grid-template-columns:repeat(2,1fr)}}
