*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f5f7fb}body{margin:0}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#111827;color:#dbe3f0;padding:22px 16px;display:flex;flex-direction:column;z-index:40}.brand{display:flex;align-items:center;gap:11px;padding:4px 8px 24px}.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#6d5dfc,#8d79ff);display:grid;place-items:center;color:#fff;font-weight:900;box-shadow:0 8px 22px #6d5dfc44}.brand-mark.big{width:58px;height:58px;border-radius:18px;font-size:24px}.brand strong,.brand small{display:block}.brand small{font-size:12px;color:#8591a7;margin-top:2px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{display:flex;gap:12px;align-items:center;padding:11px 12px;border-radius:10px;color:#aeb9cc;font-weight:650}.sidebar nav a:hover,.sidebar nav a.active{background:#202b3c;color:#fff}.sidebar-foot{margin-top:auto;border-top:1px solid #263145;padding:16px 8px 4px;display:flex;align-items:center;justify-content:space-between;gap:8px}.user-mini strong,.user-mini small{display:block}.user-mini small{font-size:11px;color:#8c98ad}.logout-link{font-size:13px;color:#ffb4b4}.main{margin-left:250px;min-height:100vh}.topbar{height:78px;background:#fff;border-bottom:1px solid #e7ebf2;display:flex;align-items:center;padding:0 28px;gap:14px;position:sticky;top:0;z-index:20}.topbar h1{font-size:18px;margin:0}.topbar .muted{font-size:12px}.menu-btn{display:none;border:0;background:#eef1f7;border-radius:9px;padding:8px 10px}.content{padding:28px;max-width:1500px;margin:auto}.muted{color:#7b869a}.page-head,.split-head,.panel-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.page-head h2,.split-head h2{font-size:26px;margin:0 0 4px}.page-head p,.split-head p,.panel-title p{margin:0}.period-select select,.filter-bar select{min-width:180px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat-grid.compact .stat-card{min-height:112px}.stat-card{background:#fff;border:1px solid #e5e9f0;border-radius:16px;padding:18px 20px;box-shadow:0 5px 18px rgba(16,24,40,.035);min-height:126px;display:flex;flex-direction:column;justify-content:center}.stat-card span{font-size:13px;color:#788398;font-weight:650}.stat-card strong{font-size:28px;margin:8px 0 3px;letter-spacing:-.6px}.stat-card small{color:#9aa3b2}.status-text{font-size:20px!important}.panel{background:#fff;border:1px solid #e5e9f0;border-radius:16px;padding:20px;margin-bottom:20px;box-shadow:0 5px 18px rgba(16,24,40,.03)}.panel h3{margin:0 0 16px}.panel-title h3{margin:0 0 4px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8490a3;padding:11px 12px;border-bottom:1px solid #e7ebf1}td{padding:13px 12px;border-bottom:1px solid #eff2f6;font-size:14px}tr:last-child td{border-bottom:0}.name-link{font-weight:700;color:#4f46e5}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;margin-left:5px;white-space:nowrap}.badge.success{background:#e9f9ef;color:#167746}.badge.warning{background:#fff4dd;color:#9a6300}.badge.danger{background:#ffebeb;color:#b82727}.badge.neutral{background:#eef1f5;color:#606b7c}.btn{border:1px solid #dce1ea;background:#fff;color:#263248;padding:9px 13px;border-radius:10px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn:hover{filter:brightness(.98)}.btn-primary{background:#5b52f2;border-color:#5b52f2;color:#fff}.btn-secondary{background:#f0f2f7}.btn-success{background:#168a52;border-color:#168a52;color:#fff}.btn-danger{background:#fff0f0;border-color:#ffc8c8;color:#b51d1d}.btn-small{font-size:12px;padding:6px 9px}.btn-block{width:100%;margin-top:10px}.cards-list{display:grid;gap:10px}.person-card{background:#fff;border:1px solid #e5e9f0;border-radius:14px;padding:14px 16px;display:flex;align-items:center;gap:13px;transition:.15s}.person-card:hover:not(.no-link){border-color:#c9c4ff;transform:translateY(-1px)}.avatar,.job-icon{width:42px;height:42px;border-radius:12px;background:#eeecff;color:#564af0;display:grid;place-items:center;font-weight:900}.person-info{flex:1;min-width:0}.person-info strong,.person-info span{display:block}.person-info span{font-size:12px;color:#8791a3;margin-top:3px}.chev{font-size:26px;color:#a4adbb}.grid-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:20px;align-items:start}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{display:block;font-size:12px;font-weight:750;color:#596579;margin:11px 0}input,select,textarea{width:100%;border:1px solid #d9dee8;border-radius:10px;padding:10px 11px;background:#fff;color:#1c2638;outline:none;margin-top:5px}input:focus,select:focus,textarea:focus{border-color:#8c83ff;box-shadow:0 0 0 3px #8c83ff1c}.hint{font-size:11px;color:#8a94a5;line-height:1.5}.divider{border-top:1px solid #edf0f5;margin:18px 0}.modal{position:fixed;inset:0;background:#10172799;display:none;place-items:center;padding:20px;z-index:100}.modal.show{display:grid}.modal-card{background:#fff;width:min(620px,100%);max-height:90vh;overflow:auto;border-radius:18px;padding:24px;position:relative;box-shadow:0 24px 70px #0004}.modal-card h3{margin:0 0 5px}.modal-x{position:absolute;right:15px;top:13px;border:0;background:#eef1f5;width:32px;height:32px;border-radius:50%;font-size:20px}.job-row,.activity-row,.job-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 2px;border-bottom:1px solid #edf0f4}.job-row:last-child,.activity-row:last-child,.job-summary:last-child{border-bottom:0}.job-row strong,.job-row span,.activity-row strong,.activity-row span,.job-summary strong,.job-summary span,.job-summary b{display:block}.job-row span,.activity-row span,.job-summary span{font-size:12px;color:#8791a3;margin-top:3px}.row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.inline{display:inline}.back{font-size:12px;color:#5b52f2;font-weight:700}.filter-bar{display:flex;gap:10px;margin-bottom:17px;align-items:center;flex-wrap:wrap}.empty{text-align:center;color:#8b95a5;padding:32px 16px}.period-list{display:grid;gap:7px}.period-item{display:flex;justify-content:space-between;align-items:center;border:1px solid #e7eaf0;padding:11px 12px;border-radius:10px}.period-item.selected{border-color:#8d83ff;background:#f5f3ff}.top-space{margin-top:15px}.block{display:block;color:#8d97a7;margin-top:4px}.hero-worker{background:linear-gradient(120deg,#242043,#4f46e5);color:#fff;border-radius:20px;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;box-shadow:0 15px 35px #4f46e533}.hero-worker span,.hero-worker p{color:#d6d2ff;margin:0}.hero-worker h2{font-size:28px;margin:2px 0 4px}.hero-money{text-align:right}.hero-money strong{display:block;font-size:34px;margin-top:4px}.progress{height:7px;background:#ebedf3;border-radius:99px;overflow:hidden;margin-top:7px}.progress i{display:block;height:100%;background:linear-gradient(90deg,#5b52f2,#8f81ff);border-radius:inherit}.mark-card{background:#fff;border:1px solid #e4e8ef;border-radius:17px;padding:20px;margin-bottom:15px}.mark-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.mark-head h3{margin:0 0 4px}.mark-head p{margin:0;color:#8490a2;font-size:12px}.status-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}.choice{margin:0;border:1px solid #dfe4ec;border-radius:13px;padding:14px 8px;text-align:center;cursor:pointer}.choice input{display:none}.choice span,.choice b{display:block}.choice span{font-size:25px;margin-bottom:4px}.choice:has(input:checked){border-color:#665cf5;background:#f3f1ff;color:#4e43dc}.choice.partial:has(input:checked){border-color:#efb83c;background:#fff9ea;color:#966303}.choice.absent:has(input:checked){border-color:#ef7b7b;background:#fff1f1;color:#b02929}.history-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.history-card{background:#fff;border:1px solid #e4e8ef;border-radius:15px;padding:17px}.history-card>div:first-child{display:flex;justify-content:space-between;align-items:center}.history-card>div:first-child>span:first-child{font-weight:750}.history-card strong{font-size:25px;display:block;margin:13px 0 5px}.history-card p,.history-card small{font-size:12px;color:#8490a2}.notice{background:#f0efff;border:1px solid #d9d5ff;color:#5147c6;padding:14px 16px;border-radius:12px;margin-bottom:16px}.notice.danger{background:#fff2f2;border-color:#ffd0d0;color:#a32a2a}.auth-shell,.setup-body{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 10%,#e9e6ff 0,transparent 28%),#f5f7fb}.login-card,.setup-card{width:min(460px,100%);background:#fff;border:1px solid #e3e7ee;border-radius:20px;padding:30px;box-shadow:0 20px 60px #25304d14}.setup-card{width:min(760px,100%)}.login-card{text-align:center}.login-card form{text-align:left;margin-top:20px}.login-logo{display:flex;justify-content:center}.login-card h1{margin:13px 0 3px}.setup-brand{display:flex;align-items:center;gap:13px;margin-bottom:20px}.setup-brand h1,.setup-brand p{margin:0}.alert{max-width:1500px;margin:0 auto 15px;padding:12px 14px;border-radius:10px;font-size:13px}.alert-success{background:#eaf9ef;color:#166b42;border:1px solid #c8eed6}.alert-error{background:#fff0f0;color:#a52d2d;border:1px solid #ffd0d0}.overlay{display:none}
@media(max-width:1050px){.stat-grid{grid-template-columns:repeat(2,1fr)}.grid-main{grid-template-columns:1fr}.history-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.sidebar{transform:translateX(-102%);transition:.2s}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.menu-btn{display:block}.overlay.show{display:block;position:fixed;inset:0;background:#0006;z-index:30}.topbar{height:68px;padding:0 15px}.content{padding:17px 13px}.page-head,.split-head,.panel-title{align-items:flex-start}.stat-grid{gap:10px}.stat-card{padding:15px;min-height:106px}.stat-card strong{font-size:23px}.hero-worker{padding:20px;display:block}.hero-money{text-align:left;margin-top:19px}.hero-money strong{font-size:30px}.history-grid{grid-template-columns:1fr}.grid-2{grid-template-columns:1fr}.status-choice{gap:6px}.choice{padding:12px 4px;font-size:12px}.job-row{align-items:flex-start;flex-direction:column}.row-actions{justify-content:flex-start}.period-select select{min-width:135px}.page-head h2,.split-head h2{font-size:22px}}
@media(max-width:480px){.stat-grid{grid-template-columns:1fr 1fr}.stat-card{min-height:96px}.stat-card span{font-size:11px}.stat-card strong{font-size:20px}.page-head,.split-head{gap:10px}.btn{padding:8px 10px;font-size:12px}.modal-card{padding:20px 16px}}

.or-divider{display:flex;align-items:center;gap:10px;color:#98a2b3;font-size:11px;margin:10px 0}.or-divider:before,.or-divider:after{content:"";height:1px;background:#e8ebf1;flex:1}
.check-line{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:650}.check-line input{width:auto;margin:2px 0 0}.calc-preview{background:#f7f8fc;border:1px solid #e5e9f1;border-radius:12px;padding:13px 14px;margin:14px 0}.calc-preview>strong{display:block;margin-bottom:8px}.calc-preview>div{display:flex;justify-content:space-between;padding:5px 0;font-size:13px}
.date-tabs{display:flex;gap:7px;overflow:auto;padding-bottom:4px;margin-bottom:16px}.date-tabs a{white-space:nowrap;background:#fff;border:1px solid #e0e5ed;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:750;color:#697488}.date-tabs a.active{background:#5b52f2;color:#fff;border-color:#5b52f2}
.pay-summary .panel-title{margin-bottom:14px}.pay-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.pay-numbers>div{background:#f8f9fc;border:1px solid #edf0f5;border-radius:12px;padding:13px}.pay-numbers span,.pay-numbers strong{display:block}.pay-numbers span{font-size:11px;color:#7d8798}.pay-numbers strong{font-size:19px;margin-top:4px}.pay-numbers .pay-final{background:#f1efff;border-color:#dcd7ff}.payment-destination{font-size:12px;color:#707b8e;margin:13px 0 0}.adjustment-list{margin-top:12px;border-top:1px solid #edf0f4;padding-top:8px}.adjustment-list>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:12px}.worker-period-head{margin-bottom:14px}
@media(max-width:780px){.pay-numbers{grid-template-columns:1fr 1fr}.worker-period-head{align-items:flex-end}}

.dual-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.dual-buttons .btn{margin:0}@media(max-width:560px){.dual-buttons{grid-template-columns:1fr}}


/* V3 · Descuentos durante el mes */
.worker-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.discount-panel{overflow:hidden}
.discount-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:4px 0 14px}
.discount-summary>div{background:#f7f8fb;border:1px solid #e8ebf1;border-radius:12px;padding:13px 14px}
.discount-summary span,.discount-summary strong{display:block}
.discount-summary span{font-size:11px;color:#7c8799;font-weight:750}
.discount-summary strong{font-size:19px;margin-top:5px}
.negative{color:#bb2d3b!important}
.discount-list{border-top:1px solid #edf0f4}
.discount-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 2px;border-bottom:1px solid #edf0f4}
.discount-row:last-child{border-bottom:0}
.discount-main strong,.discount-main span{display:block}
.discount-main span{font-size:11px;color:#8791a3;margin-top:3px}
.discount-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}
.compact-empty{padding:16px 8px}
.adjustment-list small{display:block;color:#8a94a5;font-size:10px;margin-top:2px;font-weight:500}
@media(max-width:780px){
  .worker-head-actions{justify-content:flex-start}
  .discount-summary{grid-template-columns:1fr}
  .discount-row{align-items:flex-start}
}


/* V4 · tarjetas de color degradadas */
.stat-card{position:relative;overflow:hidden;color:#fff;border:0;box-shadow:0 14px 34px rgba(17,24,39,.08)}
.stat-card::before{content:"";position:absolute;inset:0;opacity:1;background:linear-gradient(135deg,#5b52f2,#7c72ff)}
.stat-card>*{position:relative;z-index:1}
.stat-card span,.stat-card small{color:rgba(255,255,255,.82)}
.stat-card strong,.stat-card .status-text{color:#fff}
.stat-card .progress{background:rgba(255,255,255,.23)}
.stat-card .progress i{background:linear-gradient(90deg,rgba(255,255,255,.95),rgba(255,255,255,.72))}
.stat-active::before{background:linear-gradient(135deg,#f4b400,#ffd54f)}
.stat-active strong,.stat-active .status-text,.stat-active span,.stat-active small{color:#3c2f00}
.stat-generated::before{background:linear-gradient(135deg,#2563eb,#60a5fa)}
.stat-paid::before,.stat-worked::before{background:linear-gradient(135deg,#16a34a,#4ade80)}
.stat-pending::before,.stat-partial::before{background:linear-gradient(135deg,#f97316,#fdba74)}
.stat-pending strong,.stat-pending .status-text,.stat-partial strong,.stat-pending span,.stat-pending small,.stat-partial span,.stat-partial small{color:#fff7ed}
.stat-absent::before{background:linear-gradient(135deg,#dc2626,#f87171)}
.stat-total::before{background:linear-gradient(135deg,#7c3aed,#a78bfa)}
.stat-period::before,.stat-score::before{background:linear-gradient(135deg,#0f766e,#2dd4bf)}
.stat-period .status-text,.stat-score strong{color:#fff}
.pay-numbers>div{position:relative;overflow:hidden;border:0;color:#fff;box-shadow:0 12px 26px rgba(17,24,39,.06)}
.pay-numbers>div::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#334155,#64748b)}
.pay-numbers>div>*{position:relative;z-index:1}
.pay-numbers span{color:rgba(255,255,255,.8)}
.pay-numbers strong{color:#fff}
.pay-numbers>div:nth-child(1)::before{background:linear-gradient(135deg,#2563eb,#60a5fa)}
.pay-numbers>div:nth-child(2)::before{background:linear-gradient(135deg,#f97316,#fdba74)}
.pay-numbers>div:nth-child(3)::before{background:linear-gradient(135deg,#ef4444,#fca5a5)}
.pay-numbers>div:nth-child(4)::before{background:linear-gradient(135deg,#16a34a,#4ade80)}
.pay-numbers .pay-final::before{background:linear-gradient(135deg,#16a34a,#4ade80)!important}
@media(max-width:780px){.stat-card{box-shadow:0 10px 22px rgba(17,24,39,.08)}}

.stat-grid-5{grid-template-columns:repeat(5,1fr)}
.stat-discount::before{background:linear-gradient(135deg,#ef4444,#fb7185)}
.negative{color:#b91c1c!important;font-weight:800}
.stat-card .negative{color:#fff!important}
@media(max-width:1100px){.stat-grid-5{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.stat-grid-5{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.stat-grid-5{grid-template-columns:1fr 1fr}}


/* V5.1 - corrección definitiva de colores + cache bust */
.stat-grid .stat-card{
  color:#fff !important;
  border:0 !important;
  background:#5b52f2 !important;
}
.stat-grid .stat-card::before{display:none !important}
.stat-grid .stat-card span,
.stat-grid .stat-card small,
.stat-grid .stat-card strong,
.stat-grid .stat-card .status-text{
  color:#fff !important;
}
.stat-grid .stat-card.stat-active{
  background:linear-gradient(135deg,#f4b400 0%,#ffd54f 100%) !important;
  color:#3b2e00 !important;
}
.stat-grid .stat-card.stat-active span,
.stat-grid .stat-card.stat-active small,
.stat-grid .stat-card.stat-active strong{
  color:#3b2e00 !important;
}
.stat-grid .stat-card.stat-generated{
  background:linear-gradient(135deg,#1d4ed8 0%,#60a5fa 100%) !important;
}
.stat-grid .stat-card.stat-discount,
.stat-grid .stat-card.stat-absent{
  background:linear-gradient(135deg,#dc2626 0%,#fb7185 100%) !important;
}
.stat-grid .stat-card.stat-paid,
.stat-grid .stat-card.stat-worked{
  background:linear-gradient(135deg,#15803d 0%,#4ade80 100%) !important;
}
.stat-grid .stat-card.stat-pending,
.stat-grid .stat-card.stat-partial{
  background:linear-gradient(135deg,#ea580c 0%,#fb923c 100%) !important;
}
.stat-grid .stat-card.stat-total{
  background:linear-gradient(135deg,#6d28d9 0%,#a78bfa 100%) !important;
}
.stat-grid .stat-card.stat-period,
.stat-grid .stat-card.stat-score{
  background:linear-gradient(135deg,#0f766e 0%,#2dd4bf 100%) !important;
}
.stat-grid .stat-card{
  box-shadow:0 14px 30px rgba(15,23,42,.12) !important;
}


/* V6 · eliminación segura de trabajadores */
.danger-zone{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fff7f7)}
.danger-zone h3{color:#991b1b}
.delete-blocked{background:#fff1f2;border:1px solid #fecdd3;border-radius:12px;padding:13px 14px;color:#9f1239}
.delete-blocked strong,.delete-blocked span{display:block}
.delete-blocked span{font-size:12px;margin-top:4px;line-height:1.5;color:#9f1239}
.danger-warning{background:#fff1f2;border:1px solid #fecdd3;border-radius:11px;padding:12px 13px;color:#9f1239;font-size:12px;line-height:1.5;margin:14px 0}
.danger-modal h3{color:#991b1b}


/* V7 · cierre, alertas, actividad y cuenta */
.stat-grid-6{grid-template-columns:repeat(6,1fr)}
.attention-panel{border-left:4px solid #f59e0b}
.attention-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.attention-grid a{display:flex;flex-direction:column;gap:4px;background:#f8fafc;border:1px solid #e7ebf2;border-radius:12px;padding:14px;transition:.15s}
.attention-grid a:hover{border-color:#c7c2ff;transform:translateY(-1px)}
.attention-grid b{font-size:24px;color:#1f2937}.attention-grid span{font-size:12px;color:#6b7280;line-height:1.3}
.workflow-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0}
.workflow-step{position:relative;background:#f3f4f6;color:#7b8494;border-radius:12px;padding:13px 9px;text-align:center;font-size:12px;font-weight:800}
.workflow-step i{display:block;width:12px;height:12px;border-radius:50%;background:#cbd1db;margin:0 auto 7px}
.workflow-step.done{background:#ecfdf3;color:#187548}.workflow-step.done i{background:#22c55e}
.workflow-step.current{background:#eeecff;color:#5046cf;box-shadow:inset 0 0 0 1px #cfcaff}.workflow-step.current i{background:#665cf5}
.filter-pills{display:flex;gap:7px;margin:0 0 14px;flex-wrap:wrap}
.filter-pills a{padding:8px 12px;border-radius:999px;background:#eef1f5;color:#667085;font-size:12px;font-weight:800}
.filter-pills a.active{background:#5b52f2;color:#fff}
.activity-list{padding-top:8px}.activity-log{display:flex;gap:12px;padding:14px 4px;border-bottom:1px solid #edf0f4}.activity-log:last-child{border-bottom:0}
.activity-dot{width:10px;height:10px;border-radius:50%;background:#6d5dfc;margin-top:5px;flex:0 0 auto}.activity-log strong,.activity-log span{display:block}.activity-log strong{font-size:13px}.activity-log span{font-size:11px;color:#8a94a5;margin-top:4px}
.account-card{max-width:720px}.account-ident{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0f4;padding-bottom:16px;margin-bottom:10px}.account-ident strong,.account-ident span{display:block}.account-ident span{font-size:12px;color:#8791a3;margin-top:2px}
.pay-numbers-5{grid-template-columns:repeat(5,1fr)}.pay-numbers small{display:block;color:rgba(255,255,255,.78);font-size:10px;margin-top:3px;position:relative;z-index:1}
.discount-summary-4{grid-template-columns:repeat(4,1fr)!important}.success-note{background:#eaf9ef!important;border-color:#c8eed6!important;color:#176b43!important}
.test-tools{border-top:4px solid #665cf5}
.stat-grid .stat-card.stat-total{background:linear-gradient(135deg,#6d28d9 0%,#a78bfa 100%) !important}
@media(max-width:1280px){.stat-grid-6{grid-template-columns:repeat(3,1fr)}.attention-grid{grid-template-columns:repeat(3,1fr)}.pay-numbers-5{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.stat-grid-6{grid-template-columns:repeat(2,1fr)}.attention-grid{grid-template-columns:repeat(2,1fr)}.workflow-steps{grid-template-columns:1fr 1fr}.pay-numbers-5{grid-template-columns:1fr 1fr}.discount-summary-4{grid-template-columns:1fr 1fr!important}}
@media(max-width:480px){.attention-grid{grid-template-columns:1fr 1fr}.workflow-steps{grid-template-columns:1fr 1fr}.pay-numbers-5{grid-template-columns:1fr}.discount-summary-4{grid-template-columns:1fr!important}}


/* V7.1 · gestión segura de trabajadores */
.worker-filters{display:flex;gap:8px;flex-wrap:wrap;margin:-5px 0 16px}
.worker-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.test-delete-box{margin-top:14px;padding:14px;border:1px dashed #f59e0b;background:#fffaf0;border-radius:12px}
.test-delete-box strong,.test-delete-box span{display:block}
.test-delete-box span{font-size:12px;color:#786349;margin:5px 0 10px;line-height:1.5}
.btn-test-delete{background:#fff7e6;border-color:#f6c76f;color:#9a5b00}
.btn-test-delete:hover{background:#ffefc7}
.test-confirm-check{display:flex!important;align-items:flex-start;gap:9px;background:#fff7e6;border:1px solid #f6c76f;padding:12px;border-radius:10px;color:#6b4a10!important;line-height:1.45}
.test-confirm-check input{width:auto;margin:2px 0 0;flex:0 0 auto}
@media(max-width:780px){.worker-head-actions{justify-content:flex-start;width:100%}.worker-head-actions .period-select{width:100%}.worker-head-actions .period-select select{width:100%}}


/* V7.3 · método de pago CUP */
.payment-card-panel .panel-title{margin-bottom:14px}
.payment-method-current{border:1px solid #dfe6ef;background:#f8fafc;border-radius:13px;padding:14px 16px;margin:8px 0 14px}
.payment-method-current span,.revealed-card span,.revealed-card small{display:block;font-size:11px;color:#7b8799}
.payment-method-current strong,.revealed-card strong{display:block;font-size:20px;margin-top:4px;letter-spacing:.03em}
.payment-notice{margin:8px 0 14px}
.secure-reveal{border:1px solid #e2e7ef;border-radius:12px;padding:12px 14px;background:#fafbfc}
.secure-reveal summary{font-weight:800;cursor:pointer;color:#4f46e5}
.revealed-card{border:1px solid #cfe8d7;background:#f0fbf4;border-radius:13px;padding:14px 16px}
.revealed-card strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* V7.3.1 · método de pago solo en Mi cuenta */
.account-payment-panel{margin-bottom:20px}
.account-payment-panel .payment-method-current{margin-bottom:14px}

/* V7.3.2 · aviso método de pago pendiente */
.payment-setup-alert{
  display:flex;
  align-items:center;
  gap:14px;
  padding:15px 17px;
  margin:0 0 18px;
  border:1px solid #fed7aa;
  border-radius:15px;
  background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%);
  color:#9a3412;
}
.payment-setup-alert-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 36px;
  background:#f97316;
  color:#fff;
  font-size:20px;
  font-weight:900;
}
.payment-setup-alert-copy{flex:1;min-width:0}
.payment-setup-alert-copy strong,
.payment-setup-alert-copy span{display:block}
.payment-setup-alert-copy strong{font-size:14px;margin-bottom:3px;color:#9a3412}
.payment-setup-alert-copy span{font-size:12px;color:#b45309}
.payment-setup-alert-btn{
  border-color:#f97316!important;
  background:#f97316!important;
  color:#fff!important;
  white-space:nowrap;
}
#payment-method{scroll-margin-top:95px}
@media(max-width:650px){
  .payment-setup-alert{align-items:flex-start;flex-wrap:wrap}
  .payment-setup-alert-copy{min-width:calc(100% - 52px)}
  .payment-setup-alert-btn{width:100%;margin-top:2px}
}

/* V7.3.3 · Centro de avisos del trabajador */
.worker-alert-center{background:#fff;border:1px solid #e5e9f0;border-radius:17px;padding:17px;margin:0 0 18px;box-shadow:0 5px 18px rgba(16,24,40,.035)}
.worker-alert-center-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:11px}
.worker-alert-center-head h3{margin:0 0 3px;font-size:16px}
.worker-alert-center-head p{margin:0;color:#7b869a;font-size:12px}
.worker-alert-count{display:grid;place-items:center;min-width:29px;height:29px;padding:0 8px;border-radius:999px;background:#fff1e8;color:#c2410c;font-weight:900;font-size:12px}
.worker-alert-list{display:grid;gap:8px}
.worker-alert-item{display:flex;align-items:center;gap:11px;padding:12px 13px;border:1px solid #e7ebf2;border-radius:13px;background:#f8fafc}
.worker-alert-mark{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:0 0 30px;font-weight:900;background:#e2e8f0;color:#475569}
.worker-alert-copy{flex:1;min-width:0}
.worker-alert-copy strong,.worker-alert-copy span,.worker-alert-copy small{display:block}
.worker-alert-copy strong{font-size:13px;color:#172033;margin-bottom:2px}
.worker-alert-copy span{font-size:12px;color:#596579}
.worker-alert-copy small{font-size:10px;color:#8a94a5;margin-top:3px}
.worker-alert-item.warning{background:#fffaf0;border-color:#fde3a7}.worker-alert-item.warning .worker-alert-mark{background:#f59e0b;color:#fff}
.worker-alert-item.danger{background:#fff4f4;border-color:#fecaca}.worker-alert-item.danger .worker-alert-mark{background:#ef4444;color:#fff}
.worker-alert-item.info{background:#eff6ff;border-color:#bfdbfe}.worker-alert-item.info .worker-alert-mark{background:#3b82f6;color:#fff}
.worker-alert-item.neutral{background:#f8fafc;border-color:#e2e8f0}
.worker-alert-action{white-space:nowrap}
@media(max-width:650px){.worker-alert-item{align-items:flex-start;flex-wrap:wrap}.worker-alert-copy{min-width:calc(100% - 46px)}.worker-alert-action{width:100%;margin-top:2px}}


/* V7.3.4 · centro de control del administrador */
.attention-grid-6{grid-template-columns:repeat(6,1fr)}
.attention-grid a{position:relative}
.attention-grid a small{display:block;margin-top:3px;font-size:10px;color:#98a2b3;font-weight:600}
.attention-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.attention-detail{scroll-margin-top:95px}
.attention-list{display:grid;gap:0}
.attention-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 2px;border-bottom:1px solid #edf0f4}
.attention-list>div:last-child{border-bottom:0}
.attention-list>div>div:first-child{min-width:0}
.attention-list strong,.attention-list span{display:block}
.attention-list span{font-size:11px;color:#8791a3;margin-top:3px}
.attention-payments>div>strong{font-size:16px;white-space:nowrap}
#pending-discounts,#missing-yesterday,#missing-payment,#missing-jobs,#pending-payments,#stale-workers{scroll-margin-top:95px}
@media(max-width:1200px){.attention-grid-6{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.attention-detail-grid{grid-template-columns:1fr}}
@media(max-width:650px){.attention-grid-6{grid-template-columns:repeat(2,1fr)}.attention-list>div{align-items:flex-start}.attention-list .btn{flex:0 0 auto}}


/* V7.3.5 · mantenimiento técnico */
.maintenance-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.maintenance-summary>div{border:1px solid #e8ebf1;background:#f8f9fc;border-radius:12px;padding:12px}
.maintenance-summary span,.maintenance-summary strong{display:block}
.maintenance-summary span{font-size:11px;color:#7d8798;margin-bottom:5px}
.maintenance-summary strong{font-size:14px;color:#172033}
.maintenance-safe-note{margin:12px 0;background:#edf9f2;border:1px solid #cfeedd;border-radius:11px;padding:11px 12px;color:#176b43;font-size:12px;line-height:1.55}
@media(max-width:520px){.maintenance-summary{grid-template-columns:1fr}}
