:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background-color:#f1f5f9;line-height:1.5}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#e2e8f0,#f8fafc);min-height:100vh}input,select,textarea,button{font:inherit}button{cursor:pointer}.container{width:min(1140px,100%);margin:0 auto;padding:clamp(1rem,2vw,2rem)}.auth-layout{display:flex;min-height:100vh;align-items:center;justify-content:center}.login-card{background:#fff;border-radius:22px;box-shadow:0 30px 75px #0f172a24;padding:clamp(2rem,4vw,3rem);width:min(440px,92vw);display:flex;flex-direction:column;gap:1.25rem}.login-card h1{margin:0;font-size:clamp(1.8rem,2.6vw,2.1rem)}.login-subtitle{margin:0;color:#64748b}.input-group{display:flex;flex-direction:column;gap:.45rem}.input-group span{font-weight:600;color:#0f172a}.input-group input,.input-group textarea,.input-group select{border:1px solid #cbd5f5;border-radius:12px;padding:.65rem .85rem;transition:border-color .18s ease,box-shadow .18s ease;background:#f8fafc}.input-group input:focus,.input-group textarea:focus,.input-group select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 4px #2563eb29;background:#fff}.hint{color:#94a3b8;font-size:.85rem}.form-error{background:#f8717129;color:#b91c1c;border-radius:12px;padding:.85rem 1rem}button.primary{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border:none;border-radius:12px;padding:.75rem 1.6rem;font-weight:600;transition:transform .15s ease,box-shadow .15s ease;box-shadow:0 10px 30px #2563eb40}button.primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 32px #2563eb52}button.primary:disabled{background:#94a3b8;box-shadow:none;cursor:not-allowed}button.primary.send-counter{background:linear-gradient(135deg,#f97316,#db2777);box-shadow:0 12px 34px #fb923c59}button.primary.send-counter:disabled{background:#f59e0b;box-shadow:none}button.secondary{background:#fff;color:#1e293b;border:1px solid #cbd5f5;border-radius:12px;padding:.65rem 1.4rem;transition:border-color .18s ease,box-shadow .18s ease}button.secondary:hover:not(:disabled){border-color:#2563eb;box-shadow:0 4px 14px #2563eb26}button.ghost{background:transparent;border:none;font-size:1rem;color:#ef4444}button.secondary:disabled,button.ghost:disabled{opacity:.5;cursor:not-allowed}.app-layout{display:flex;flex-direction:column;gap:1.6rem;padding-bottom:4rem}.app-header{background:#fff;border-radius:22px;padding:clamp(1.2rem,2vw,1.6rem);display:flex;justify-content:space-between;align-items:center;gap:1.5rem;box-shadow:0 18px 45px #0f172a1f}.app-header h1{margin:0 0 .25rem;font-size:clamp(1.6rem,2.4vw,1.9rem)}.app-header .muted,.muted{color:#64748b;font-size:.95rem}.header-actions{display:flex;gap:.75rem}.period-controls{background:#fff;border-radius:22px;padding:clamp(1rem,2vw,1.3rem);box-shadow:0 16px 40px #0f172a1a;display:flex;flex-wrap:wrap;gap:1.2rem;align-items:flex-end;margin-top:-.4rem}.period-field{display:flex;flex-direction:column;gap:.4rem;min-width:220px}.period-field label{font-weight:600;color:#0f172a}.period-field input[type=month]{border:1px solid #cbd5f5;border-radius:12px;padding:.55rem .75rem;background:#f8fafc;transition:border-color .16s ease,box-shadow .16s ease}.period-field input[type=month]:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb2e;background:#fff}.period-buttons{display:flex;gap:.75rem;flex-wrap:wrap}.period-buttons button{min-width:150px}.banner{border-radius:18px;padding:.9rem 1.2rem;font-weight:500;box-shadow:0 10px 30px #0f172a14}.banner.success{background:#22c55e2e;color:#047857}.banner.error{background:#f871712e;color:#b91c1c}.table-section{background:#fff;border-radius:22px;padding:clamp(1rem,2vw,1.4rem);box-shadow:0 20px 50px #0f172a1a;display:flex;flex-direction:column;gap:1rem}.table-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;align-items:flex-start}.table-header h2{margin:0;font-size:clamp(1.3rem,2vw,1.5rem)}.table-meta{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;font-size:.9rem}.badge{display:inline-flex;align-items:center;justify-content:center;padding:.25rem .75rem;border-radius:999px;background:#3b82f61f;color:#1d4ed8;font-weight:600}.table-wrapper{overflow-x:auto;border-radius:18px;border:1px solid #e2e8f0;background:linear-gradient(180deg,#f8fafcd9,#fff 60%)}.table-wrapper table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px}.table-wrapper thead th{position:sticky;top:0;background:#94a3b826;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:left;padding:.8rem 1rem;font-size:.9rem;color:#1f2937;border-bottom:1px solid #cbd5f5;z-index:1}.table-wrapper tbody tr{transition:background .16s ease}.table-wrapper tbody tr:hover{background:#e2e8f059}.table-wrapper tbody tr.is-new{background:#2563eb14}.table-wrapper tbody tr.is-ready{background:#22c55e2e}.table-wrapper tbody tr.is-ready:hover{background:#22c55e3d}.table-wrapper tbody tr.is-counter{background:#f9d25738}.table-wrapper tbody tr.is-counter:hover{background:#f9d25747}.table-wrapper tbody tr.is-counter input,.table-wrapper tbody tr.is-counter textarea{background:#f9d25729;color:#92400e}.table-wrapper tbody tr.is-cancelled{background:#f8717133}.table-wrapper tbody tr.is-cancelled:hover{background:#f8717142}.table-wrapper tbody tr.is-ready input,.table-wrapper tbody tr.is-ready textarea{background:#22c55e1f;color:#065f46}.table-wrapper tbody td[data-column=rutTrabajador] input,.table-wrapper tbody td[data-column=nombreTrabajador] input{background:#f8fafc;color:#0f172a}.table-wrapper tbody tr.is-cancelled input,.table-wrapper tbody tr.is-cancelled textarea{background:#f8717129;color:#7f1d1d}.table-wrapper tbody tr.is-ready input:disabled,.table-wrapper tbody tr.is-cancelled input:disabled,.table-wrapper tbody tr.is-ready textarea:disabled,.table-wrapper tbody tr.is-cancelled textarea:disabled{color:inherit}.table-wrapper tbody td{padding:.6rem .75rem;border-bottom:1px solid #e2e8f0;vertical-align:top}.table-wrapper tbody td[data-column=rutTrabajador],.table-wrapper tbody td[data-column=rutTrabajador] input{min-width:170px}.table-wrapper tbody td[data-column=nombreTrabajador],.table-wrapper tbody td[data-column=nombreTrabajador] input{min-width:220px}.table-wrapper tbody td[data-column=horasAtraso],.table-wrapper tbody td[data-column=horasAtraso] input{min-width:160px}.table-wrapper tbody td[data-column=observaciones],.table-wrapper tbody td[data-column=observaciones] textarea{min-width:260px}.table-wrapper tbody td input,.table-wrapper tbody td textarea{width:100%;border:1px solid #cbd5f5;border-radius:12px;padding:.58rem .75rem;font-size:.95rem;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}.table-wrapper tbody td input:focus,.table-wrapper tbody td textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb2e;background:#fff}.table-wrapper tbody td input:disabled,.table-wrapper tbody td textarea:disabled,.table-wrapper tbody td select:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed;box-shadow:none}.actions{text-align:center;width:70px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (max-width: 960px){.app-header{flex-direction:column;align-items:flex-start}.header-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:.6rem}.header-actions button{flex:1}.period-controls{flex-direction:column;align-items:stretch}.period-buttons{width:100%}.period-buttons button{flex:1;min-width:unset}}@media (max-width: 720px){.period-controls{padding:1rem;gap:.9rem}.period-field{width:100%}.period-buttons{width:100%;gap:.6rem}.period-buttons button{width:100%}.container{padding:1rem}.table-wrapper{border:none;background:transparent}.table-wrapper table,.table-wrapper thead,.table-wrapper tbody,.table-wrapper th,.table-wrapper td,.table-wrapper tr{display:block}.table-wrapper thead{display:none}.table-wrapper tbody tr{border:1px solid #e2e8f0;border-radius:16px;padding:.75rem;margin-bottom:1rem;background:#fff}.table-wrapper tbody td{border:none;padding:.35rem 0;position:relative}.table-wrapper tbody td:before{content:attr(data-label);display:block;font-size:.85rem;font-weight:600;color:#475569;margin-bottom:.2rem}.table-wrapper tbody td input,.table-wrapper tbody td textarea{font-size:1rem}.actions{width:100%;margin-top:.4rem;text-align:right}}.estado-pill-wrapper{display:flex;align-items:center;justify-content:flex-start}.estado-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.28rem .75rem;font-size:.78rem;font-weight:600;white-space:nowrap;background:#94a3b840;color:#1f2937;text-transform:capitalize}.estado-pill.pending{background:#facc152e;color:#92400e}.estado-pill.counter{background:#f9d25738;color:#92400e}.estado-pill.ready{background:#22c55e2e;color:#047857}.estado-pill.cancelled{background:#ef444433;color:#991b1b}.role-switch{display:flex;justify-content:center;gap:.75rem;margin-bottom:1.5rem}.role-switch button{border:none;background:#94a3b833;color:#475569;padding:.55rem 1.4rem;border-radius:999px;font-weight:600;transition:background .18s ease,color .18s ease}.role-switch button.active{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff}.counter-card{background:#fff;border-radius:20px;box-shadow:0 24px 60px #0f172a1f;padding:clamp(2rem,4vw,2.6rem);width:min(520px,92vw);display:flex;flex-direction:column;gap:1.25rem;margin:0 auto}.counter-dashboard{display:flex;flex-direction:column;gap:1.5rem}.counter-header{background:#fff;border-radius:22px;padding:clamp(1.2rem,2vw,1.6rem);box-shadow:0 18px 45px #0f172a1f;display:grid;gap:1.2rem}.counter-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}.stat-card{background:#3b82f614;border-radius:16px;padding:.85rem 1rem;display:flex;flex-direction:column;gap:.35rem}.stat-card span{font-size:.85rem;color:#475569}.stat-card strong{font-size:1.4rem;color:#1f2937}.stat-card.warning{background:#f9d25733}.stat-card.info{background:#38bdf82e}.stat-card.success{background:#22c55e2e}.counter-filters{display:flex;gap:.6rem;flex-wrap:wrap}.counter-filters button{border:1px solid #cbd5f5;background:#fff;color:#475569;border-radius:999px;padding:.45rem 1.1rem;font-weight:600}.counter-filters button.active{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border-color:transparent}.counter-list{display:grid;gap:1rem}.counter-card-item{background:#fff;border-radius:20px;padding:1.2rem 1.4rem;box-shadow:0 14px 40px #0f172a1a;display:flex;justify-content:space-between;align-items:center;gap:1rem}.counter-card-item h3{margin:0 0 .3rem}.status-tags{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.6rem}.tag{display:inline-flex;align-items:center;justify-content:center;padding:.25rem .7rem;border-radius:999px;font-size:.8rem;font-weight:600}.tag.warning{background:#f9d2573d;color:#92400e}.tag.info{background:#38bdf83d;color:#0e7490}.tag.success{background:#22c55e3d;color:#047857}@media (max-width: 720px){.counter-card-item{flex-direction:column;align-items:flex-start}.counter-card-item button{width:100%}}.counter-dashboard-wrapper{display:flex;flex-direction:column;gap:1rem}.counter-header-actions{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:flex-end}.counter-header-actions button{flex:1;min-width:140px}.counter-search{display:flex;margin-bottom:.8rem}.counter-search input{width:100%;border:1px solid #cbd5f5;border-radius:12px;padding:.6rem .8rem;font-size:.95rem;background:#f8fafc}.counter-search input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb2e;background:#fff}.tag-meta{display:inline-block;margin-left:.4rem;font-size:.75rem;color:#475569}.tag.id-tag{display:inline-flex;flex-direction:column;align-items:flex-start;gap:.2rem}.counter-accounts{display:flex;flex-direction:column;gap:1.4rem}.counter-accounts__header{background:#fff;border-radius:22px;padding:clamp(1.2rem,2vw,1.6rem);box-shadow:0 18px 45px #0f172a1f;display:flex;justify-content:space-between;gap:1.2rem}.counter-accounts__actions{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:flex-end}.accounts-table{border-radius:18px;border:1px solid #e2e8f0;overflow-x:auto}.accounts-table table{width:100%;min-width:880px;border-collapse:separate;border-spacing:0}.accounts-table thead th{background:#e2e8f099;padding:.8rem .9rem;text-align:left;font-size:.88rem;color:#475569}.accounts-table tbody td{padding:.55rem .7rem;border-bottom:1px solid #e2e8f0}.accounts-table tbody input{width:100%;border:1px solid #cbd5f5;border-radius:10px;padding:.5rem;font-size:.9rem}.accounts-table tbody input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb2e}.counter-columns{display:flex;flex-direction:column;gap:1.4rem}.counter-columns__header{background:#fff;border-radius:22px;padding:clamp(1.2rem,2vw,1.6rem);box-shadow:0 18px 45px #0f172a1f;display:flex;justify-content:space-between;gap:1.2rem}.counter-columns__actions{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:flex-end}.columns-table{border-radius:18px;border:1px solid #e2e8f0;overflow-x:auto}.columns-table table{width:100%;min-width:920px;border-collapse:separate;border-spacing:0}.columns-table thead th{background:#e2e8f099;padding:.8rem .9rem;text-align:left;font-size:.88rem;color:#475569}.columns-table tbody td{padding:.55rem .7rem;border-bottom:1px solid #e2e8f0}.columns-table tbody input,.columns-table tbody select{width:100%;border:1px solid #cbd5f5;border-radius:10px;padding:.5rem;font-size:.9rem}.columns-table tbody input:focus,.columns-table tbody select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb2e}.columns-table .boolean-cell{display:flex;align-items:center;gap:.4rem}.columns-table .boolean-cell input{width:auto;border:none;box-shadow:none}
