:root {
  --ink: #18211d;
  --muted: #68746d;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --line: #dfe6e1;
  --green: #176b4d;
  --green-soft: #e5f3ec;
  --blue: #245c78;
  --blue-soft: #e7f0f5;
  --amber: #9a6113;
  --amber-soft: #fbf0dc;
  --shadow: 0 18px 50px rgba(22, 49, 37, .08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.topbar { min-height: 70px; display: flex; align-items: center; gap: 34px; padding: 0 5vw; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: var(--green); font: 700 20px Georgia, serif; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
nav { display: flex; gap: 24px; color: #415048; font-size: 14px; }
nav a:hover { color: var(--green); }
.logout-form { margin: 0; }
.link-button { border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.page { width: min(1440px, 92vw); margin: 0 auto; padding: 42px 0 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 5px 0 8px; font: 500 clamp(30px, 4vw, 46px)/1.05 Georgia, serif; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.muted { color: var(--muted); }
.heading-actions, .month-form, .inline-form { display: flex; align-items: flex-end; gap: 12px; }
.month-form label { display: block; color: var(--muted); font-size: 12px; }
input, select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #cfd9d3; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
input[type="checkbox"], input[type="radio"] { width:18px; height:18px; min-height:18px; padding:0; flex:0 0 18px; accent-color:var(--green); vertical-align:middle; }
.month-form input { width: 160px; margin-top: 5px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; font-size: 13px; cursor: pointer; }
.button.primary { background: var(--green); color: white; }
.button.secondary { background: white; border-color: var(--line); color: var(--ink); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.balance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.balance-card { min-height: 220px; border: 1px solid var(--line); border-radius: 20px; padding: 23px; background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.balance-card::after { content: ""; width: 150px; height: 150px; border-radius: 50%; position: absolute; right: -65px; top: -55px; opacity: .45; }
.balance-card.cash::after { background: var(--green-soft); }.balance-card.bank::after { background: var(--blue-soft); }.balance-card.workshop::after { background: var(--amber-soft); }
.card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #eff4f1; font-weight: 900; margin-bottom: 24px; }
.card-label { display: block; color: var(--muted); font-weight: 700; }
.money { display: block; margin: 4px 0; font: 600 clamp(29px, 3vw, 40px)/1.1 Georgia, serif; letter-spacing: -.02em; }
.balance-card small { color: var(--muted); }
.card-detail { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card-detail b { color: var(--ink); }
.reconciliation-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.reconciliation-link span { display: inline-block; font-size: 16px; transition: transform .18s ease; }.reconciliation-link.is-open span { transform: rotate(180deg); }
.reconciliation-panel { margin: 18px 0 20px; padding: 24px; border: 1px solid #cfe1d7; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f7fbf9 100%); box-shadow: 0 12px 36px rgba(22,49,37,.06); }
.reconciliation-panel[hidden] { display: none; }
.reconciliation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.reconciliation-heading h2 { margin: 4px 0 5px; font: 600 25px Georgia,serif; }.reconciliation-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.reconciliation-status { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }.reconciliation-status.balanced { background: var(--green-soft); color: var(--green); }.reconciliation-status.mismatch { background: #fde8e7; color: #982d2a; }.reconciliation-status.unavailable { background: #eef1ef; color: var(--muted); }
.reconciliation-formula { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr; gap: 12px; align-items: stretch; }.reconciliation-formula > div { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }.reconciliation-formula span,.reconciliation-comparison span { display: block; color: var(--muted); font-size: 11px; }.reconciliation-formula strong,.reconciliation-comparison strong { display: block; margin-top: 4px; font-size: 20px; }.reconciliation-formula .formula-result { border-color: #afd0bf; background: var(--green-soft); }.formula-sign { align-self: center; color: var(--muted); font-size: 21px; font-weight: 600; }
.reconciliation-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }.reconciliation-comparison > div { padding: 16px 18px; border-radius: 12px; background: #f0f3f1; }.reconciliation-comparison .difference.balanced { background: var(--green-soft); color: var(--green); }.reconciliation-comparison .difference.mismatch { background: #fde8e7; color: #982d2a; }.reconciliation-comparison .difference span,.reconciliation-comparison .difference small { color: currentColor; }.reconciliation-comparison small { display: block; margin-top: 4px; font-size: 11px; }
.reconciliation-outflow-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }.reconciliation-outflow-breakdown div { padding: 3px 7px; border-right: 1px solid var(--line); }.reconciliation-outflow-breakdown div:last-child { border-right: 0; }.reconciliation-outflow-breakdown span { display: block; color: var(--muted); font-size: 11px; }.reconciliation-outflow-breakdown strong { display: block; margin-top: 3px; font-size: 16px; }
.reconciliation-empty { padding: 18px; border-radius: 12px; background: #f0f3f1; color: var(--muted); font-size: 13px; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0; padding: 19px 22px; background: #1f2c26; color: white; border-radius: 16px; }
.summary-strip div { padding: 0 18px; border-right: 1px solid rgba(255,255,255,.14); }.summary-strip div:last-child { border: 0; }
.summary-strip span, .summary-strip strong { display: block; }.summary-strip span { color: #bfc9c3; font-size: 12px; }.summary-strip strong { margin-top: 4px; font-size: 19px; }
.finance-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: -8px 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.finance-strip div { padding: 15px 18px; background: white; }.finance-strip span,.finance-strip strong { display: block; }.finance-strip span { color: var(--muted); font-size: 12px; }.finance-strip strong { margin-top: 4px; font-size: 18px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, .7fr); gap: 20px; }
.content-grid > *,.analysis-grid > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 10px 34px rgba(22,49,37,.05); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel h2 { margin: 4px 0 0; font: 600 24px Georgia, serif; }
.badge { padding: 7px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 750; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
th:first-child, td:first-child { text-align: left; }
td { text-align: right; padding: 13px 12px; border-bottom: 1px solid #edf1ee; white-space: nowrap; }
.daily-list { display: grid; gap: 2px; max-height: 430px; overflow-y: auto; }
.daily-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid #edf1ee; }
.daily-row time { font-weight: 800; }.daily-row div span { display: block; color: var(--muted); font-size: 11px; }.daily-row strong { font-size: 14px; }
.empty-cell { color: var(--muted); text-align: center !important; padding: 28px; }
.sync-footer { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.messages { display: grid; gap: 8px; margin-bottom: 18px; }.message { padding: 13px 15px; border-radius: 10px; background: var(--blue-soft); }.message.error { background: #fde8e7; color: #8f2e2b; }.message.success { background: var(--green-soft); color: var(--green); }
.setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }.setup-card { position: relative; padding-top: 56px; }.step-number { position: absolute; top: 18px; left: 20px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; }
.stack-form { display: grid; gap: 14px; }.stack-form p { margin: 0; }.stack-form label { display: grid; gap: 6px; color: #344139; font-size: 13px; font-weight: 700; }.helptext { color: var(--muted); font-size: 11px; font-weight: 400; }.callout { padding: 13px; border-radius: 10px; background: var(--amber-soft); color: #66410c; }.status-line { font-weight: 800; }.success-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #1e9b68; }
.test-import { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }.inline-form p { margin: 0; }.inline-form input { max-width: 260px; }.status-pill { padding: 5px 8px; border-radius: 999px; background: #eef1ef; }.status-pill.imported { background: var(--green-soft); color: var(--green); }.status-pill.failed,.status-pill.rejected { background: #fde8e7; color: #8f2e2b; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }.metric-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(22,49,37,.04); }.metric-card span,.metric-card strong { display: block; }.metric-card span { color: var(--muted); font-size: 12px; }.metric-card strong { margin-top: 5px; font: 600 25px Georgia,serif; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }.form-panel .stack-form { grid-template-columns: 1fr 1fr; }.form-panel .stack-form p { min-width: 0; }.form-panel .stack-form p:nth-last-of-type(2),.form-panel .stack-form p:nth-last-of-type(1),.form-panel .stack-form .errorlist,.form-panel .stack-form button { grid-column: 1 / -1; }.form-panel .stack-form ul.errorlist { margin: 0; padding: 10px 13px; list-style: none; border-radius: 9px; background: #fde8e7; color: #8f2e2b; font-size: 12px; }.compact-copy { margin: -8px 0 18px; font-size: 13px; }
.analysis-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(320px,.6fr); gap: 20px; margin-bottom: 20px; }.panel-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }.origin-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }.origin-summary span { padding: 13px; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 12px; }.origin-summary strong { display: block; margin-top: 3px; color: var(--ink); font-size: 17px; }
.movement-history { margin-top: 20px; }.movement-history table { min-width: 1160px; }.text-cell { max-width: 270px; overflow: hidden; text-align: left; text-overflow: ellipsis; }.danger-link { padding: 0; border: 0; background: none; color: #a63131; font: inherit; font-size: 12px; cursor: pointer; }.period-warning { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #efd39f; border-radius: 12px; background: var(--amber-soft); color: #66410c; }
.outflow-summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:4px 0 20px; }.outflow-summary-card { display:grid; gap:5px; min-height:108px; padding:17px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--muted); text-align:left; font:inherit; cursor:pointer; box-shadow:0 8px 24px rgba(22,49,37,.04); }.outflow-summary-card:hover { border-color:#b8cec3; }.outflow-summary-card.is-active { border-color:#98bead; background:var(--green-soft); color:var(--green); box-shadow:none; }.outflow-summary-card span { font-size:12px; font-weight:800; }.outflow-summary-card strong { align-self:end; margin-top:auto; color:var(--ink); font:600 25px Georgia,serif; }.outflow-summary-card small { color:currentColor; font-size:11px; }
.outflow-view-panel { padding:22px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:0 10px 34px rgba(22,49,37,.05); }.outflow-view-panel[hidden] { display:none; }.outflow-view-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:16px; }.outflow-view-heading h2 { margin:4px 0 0; font:600 24px Georgia,serif; }.outflow-view-heading > div:last-child { display:grid; justify-items:end; }.outflow-view-heading > div:last-child span { color:var(--muted); font-size:11px; }.outflow-view-heading > div:last-child strong { margin-top:3px; font:600 22px Georgia,serif; }
.expense-center-groups { overflow:hidden; border:1px solid var(--line); border-radius:14px; }.expense-center-group + .expense-center-group { border-top:1px solid var(--line); }.expense-center-group summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 17px; cursor:pointer; list-style:none; }.expense-center-group summary::-webkit-details-marker { display:none; }.expense-center-group summary:hover { background:var(--paper); }.expense-center-group summary > span:first-child { display:grid; }.expense-center-group summary small { margin-top:3px; color:var(--muted); font-size:11px; }.expense-center-total { display:flex; align-items:center; gap:10px; font-weight:800; }.expense-center-total b { color:var(--muted); font-size:17px; transition:transform .18s ease; }.expense-center-group[open] .expense-center-total b { transform:rotate(180deg); }.expense-center-group .table-wrap { border-top:1px solid var(--line); }.outflow-table { min-width:900px; }.expense-table { min-width:980px; }.all-outflows-table { min-width:1180px; }.outflow-empty { padding:28px; border-radius:12px; background:var(--paper); color:var(--muted); text-align:center; }
.issue-line { display: block; max-width: 480px; margin-bottom: 4px; white-space: normal; text-align: left; color: #8f2e2b; }
.auth-shell { min-height: calc(100vh - 170px); display: grid; place-items: center; }.auth-card { width: min(480px, 92vw); background: white; border: 1px solid var(--line); border-radius: 24px; padding: 42px; box-shadow: var(--shadow); }.auth-card h1 { font: 500 38px/1.05 Georgia,serif; margin: 8px 0 12px; }.auth-card p { color: var(--muted); }.form-error { color: #a63131 !important; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 28px; align-items: center; min-height: 540px; }
.public-hero h1 { max-width: 850px; margin: 10px 0 20px; font: 500 clamp(44px, 7vw, 78px)/.98 Georgia, serif; letter-spacing: -.035em; }
.public-hero .lead { max-width: 720px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.trust-card h2 { margin: 10px 0 18px; font: 600 28px Georgia, serif; }
.trust-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.trust-list li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; }
.trust-list li:last-child { border: 0; }
.trust-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.legal-shell { display: grid; grid-template-columns: minmax(210px, .35fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-intro { position: sticky; top: 104px; }
.legal-intro h1 { margin: 7px 0 14px; font: 500 clamp(36px, 5vw, 58px)/1.02 Georgia, serif; }
.legal-intro p, .legal-document p, .legal-document li { color: var(--muted); line-height: 1.72; }
.legal-document { padding: 34px 38px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.legal-document section + section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-document h2 { margin: 0 0 12px; font: 600 25px Georgia, serif; }
.legal-document a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.site-footer { width: min(1440px, 92vw); margin: 0 auto; padding: 24px 0 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; gap: 20px; font-size: 13px; }
@media (max-width: 1000px) { .balance-grid,.setup-grid,.entry-grid { grid-template-columns: 1fr; }.content-grid,.analysis-grid { grid-template-columns: 1fr; }.summary-strip,.finance-strip,.metric-grid,.outflow-summary-grid { grid-template-columns: 1fr 1fr; gap: 18px; }.summary-strip div:nth-child(2) { border: 0; }.test-import,.inline-form { align-items: stretch; flex-direction: column; }.reconciliation-formula { grid-template-columns: 1fr 1fr; }.formula-sign { display: none; } }
@media (max-width: 900px) { .public-hero,.legal-shell { grid-template-columns: 1fr; }.public-hero { min-height: auto; }.legal-intro { position: static; }.legal-document { padding: 28px; } }
@media (max-width: 720px) { .topbar nav { display: none; }.page { width: min(94vw, 680px); padding-top: 25px; }.page-heading,.heading-actions,.outflow-view-heading { align-items: stretch; flex-direction: column; }.month-form { align-items: flex-end; }.summary-strip,.finance-strip,.metric-grid,.entry-grid,.outflow-summary-grid,.reconciliation-formula,.reconciliation-comparison,.reconciliation-outflow-breakdown { grid-template-columns: 1fr; }.summary-strip div { padding: 6px 0; border: 0; }.reconciliation-outflow-breakdown div { border-right: 0; border-bottom: 1px solid var(--line); }.reconciliation-outflow-breakdown div:last-child { border-bottom: 0; }.form-panel .stack-form { grid-template-columns: 1fr; }.form-panel .stack-form p { grid-column: 1; }.balance-card { min-height: auto; }.reconciliation-heading { flex-direction: column; }.outflow-view-heading > div:last-child { justify-items:start; }.auth-card { padding: 28px; }.public-hero h1 { font-size: 45px; }.legal-document { padding: 23px; }.site-footer { align-items: flex-start; flex-direction: column; }.site-footer nav { display: flex; } }

/* Salarios */
.metis-back-row { margin-bottom:14px; }
.metis-back-button { display:inline-flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font:inherit; font-size:12px; font-weight:800; cursor:pointer; }
.metis-back-button:hover { border-color:#a9c5b7; color:var(--green); }
.metis-back-button.has-unsaved-changes { border-color:#d8b36e; background:var(--amber-soft); color:#70460b; }
.payroll-alert { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:20px; padding:15px 18px; border-radius:13px; background:var(--amber-soft); color:#70460b; font-size:13px; }
.payroll-alert span { color:var(--muted); }.payroll-alert.overdue { background:#fde8e7; color:#982d2a; }.payroll-alert.settled { background:var(--green-soft); color:var(--green); }
.payroll-centers { overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:0 10px 34px rgba(22,49,37,.04); }
.payroll-center + .payroll-center { border-top:1px solid var(--line); }.payroll-center summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 19px; cursor:pointer; list-style:none; }.payroll-center summary::-webkit-details-marker { display:none; }.payroll-center summary:hover { background:var(--paper); }.payroll-center summary small { margin-left:8px; color:var(--muted); font-size:11px; font-weight:400; }.summary-chevron { color:var(--muted); font-size:18px; transition:transform .18s ease; }.payroll-center[open] .summary-chevron { transform:rotate(180deg); }
.payroll-center .table-wrap { border-top:1px solid var(--line); }.payroll-table { min-width:1180px; }.payroll-table th:first-child,.payroll-table td:first-child { text-align:left; }.payroll-table th,.payroll-table td { text-align:right; }.payroll-table th:last-child,.payroll-table td:last-child { text-align:left; }.employee-link { color:var(--ink); text-decoration:none; }.employee-link:hover { color:var(--green); }
.payroll-money-input { width:118px; min-height:38px; padding:7px 9px; border:1px solid var(--line); border-radius:8px; background:#fff; text-align:right; }
.payroll-money-input:focus { outline:2px solid #b9d8ca; border-color:var(--green); }
.commission-entry { display:grid; justify-items:end; gap:4px; }.commission-entry small { color:var(--muted); font-size:10px; white-space:nowrap; }
.payroll-bulk-editor { margin:0; }.payroll-footer-actions { gap:10px; }
.payroll-unsaved-notice { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; padding:11px 14px; border-radius:10px; background:var(--amber-soft); color:#70460b; font-size:12px; }
.payroll-unsaved-notice[hidden] { display:none; }
.payroll-status { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:800; white-space:nowrap; }.payroll-status::before { content:""; width:8px; height:8px; border-radius:50%; background:currentColor; }.payroll-status.pending { color:#a36408; }.payroll-status.partial { color:#16755a; }.payroll-status.paid { color:#18805f; }.payroll-status.overdue { color:#a63131; }
.button.compact { padding:8px 11px; font-size:11px; }.payroll-footer-actions { display:flex; justify-content:flex-end; margin-top:18px; }.payroll-form-panel { max-width:820px; margin:0 auto; }.form-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; grid-column:1/-1; }
.button.archive { background:#fff; border-color:#d8a4a2; color:#96312e; }.employee-status-tabs { display:flex; gap:10px; margin-bottom:16px; }.employee-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }.employee-row-actions form { margin:0; }.employee-archive-control summary { font-weight:800; cursor:pointer; }.employee-archive-control p { margin:10px 0; }.employee-archived-notice { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:20px; padding:16px 18px; border:1px solid #d8a4a2; border-radius:12px; background:#fff3f2; }.employee-archived-notice p { margin:4px 0 0; color:var(--muted); }
.employee-profile-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin-bottom:20px; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--line); }.employee-profile-strip div { padding:16px 18px; background:var(--surface); }.employee-profile-strip span,.employee-profile-strip strong { display:block; }.employee-profile-strip span { color:var(--muted); font-size:11px; }.employee-profile-strip strong { margin-top:4px; font-size:14px; }
.payroll-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }.salary-breakdown { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px; }.salary-breakdown span { padding:12px; border-radius:10px; background:var(--paper); color:var(--muted); font-size:11px; }.salary-breakdown strong { display:block; margin-top:4px; color:var(--ink); font-size:15px; }.inline-payroll-form { display:flex; align-items:flex-end; gap:10px; }.inline-payroll-form p { flex:1; margin:0; }.inline-payroll-form label { display:block; margin-bottom:5px; color:var(--muted); font-size:11px; font-weight:700; }
.mini-history { margin-top:18px; border-top:1px solid var(--line); }.mini-history p { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:0; padding:11px 0; border-bottom:1px solid #edf1ee; font-size:12px; }.mini-history span { color:var(--muted); }.annul-inline summary { color:#a63131; cursor:pointer; font-size:11px; }.annul-inline form { display:grid; gap:6px; min-width:210px; padding-top:7px; }.annul-inline textarea { min-height:60px; padding:7px; border:1px solid var(--line); border-radius:7px; resize:vertical; }
.payment-review h2 { margin:0 0 18px; font:600 24px Georgia,serif; }.payment-review dl { margin:0; border-top:1px solid var(--line); }.payment-review dl div { display:flex; justify-content:space-between; gap:20px; padding:12px 0; border-bottom:1px solid var(--line); }.payment-review dt { color:var(--muted); }.payment-review dd { margin:0; font-weight:800; text-align:right; }.payment-review .form-actions { margin-top:20px; }
.import-preview { min-width:1180px; }.import-preview select { min-width:190px; padding:8px; border:1px solid var(--line); border-radius:8px; background:white; }.import-preview input[type="checkbox"] { width:18px; height:18px; }
@media (max-width:1000px) { .employee-profile-strip { grid-template-columns:1fr 1fr; }.payroll-detail-grid { grid-template-columns:1fr; } }
@media (max-width:720px) { .payroll-alert { align-items:flex-start; flex-direction:column; }.employee-profile-strip,.salary-breakdown { grid-template-columns:1fr; }.payroll-footer-actions,.form-actions,.inline-payroll-form { align-items:stretch; flex-direction:column; }.payroll-footer-actions .button,.form-actions .button,.inline-payroll-form .button { width:100%; text-align:center; }.payment-review dl div { align-items:flex-start; flex-direction:column; gap:4px; }.payment-review dd { text-align:left; }.employee-status-tabs { align-items:stretch; flex-direction:column; }.employee-archived-notice { align-items:stretch; flex-direction:column; } }

/* Herramientas · Conteo de efectivo */
.cash-count-heading { margin-bottom:20px; }
.cash-count-workspace { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:20px; align-items:start; }
.cash-count-entry { display:grid; gap:16px; min-width:0; }
.cash-currency-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.cash-denomination-panel { padding:18px; }
.cash-currency-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:10px; }
.cash-currency-heading h2 { margin:4px 0 0; font:600 22px Georgia,serif; }
.cash-currency-heading > span { color:var(--muted); font-size:11px; }
.cash-denomination-table th:nth-child(2),.cash-denomination-table td:nth-child(2) { width:92px; }
.cash-denomination-table input { min-height:36px; padding:6px 9px; text-align:right; }
.cash-denomination-table td { padding:7px 8px; }
.cash-denomination-table th { padding:8px; }
.cash-denomination-table tfoot th { color:var(--ink); font-size:12px; }
.cash-bill { color:var(--green); font-weight:800; }
.cash-count-fields { display:grid; grid-template-columns:1fr 1fr 1.35fr; gap:14px; padding:18px; align-items:end; }
.cash-count-fields label { display:grid; gap:6px; color:#344139; font-size:13px; font-weight:800; }
.cash-count-fields label small { color:var(--muted); font-size:11px; font-weight:400; }
.cash-conversion-toggle { align-self:center; }
.cash-conversion-toggle span { display:flex; align-items:center; gap:9px; min-height:42px; }
.cash-conversion-toggle input { width:18px; min-height:18px; height:18px; margin:0; accent-color:var(--green); }
[data-rate-field][hidden],[data-conversion-summary][hidden],[data-separate-summary][hidden] { display:none; }
.cash-receipt-preview { position:sticky; top:92px; padding:24px; border-left:4px solid var(--green); background:var(--surface); box-shadow:var(--shadow); }
.cash-receipt-header { display:grid; justify-items:center; gap:5px; padding-bottom:16px; border-bottom:1px solid var(--line); text-align:center; }
.cash-receipt-header .receipt-brand { color:var(--green); font:600 20px Georgia,serif; }
.cash-receipt-header > strong { letter-spacing:.08em; }
.cash-receipt-header small { color:var(--muted); }
.cash-receipt-currency { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 0; border-bottom:1px solid var(--line); }
.cash-receipt-currency span,.cash-receipt-summary span { color:var(--muted); font-size:12px; }
.cash-receipt-summary { display:grid; gap:10px; padding-top:14px; }
.cash-receipt-summary > div { display:flex; justify-content:space-between; gap:14px; }
.cash-grand-total { margin-top:3px; padding:12px; border-radius:10px; background:var(--green-soft); color:var(--green); }
.cash-grand-total span { color:currentColor; }
.cash-tool-actions { display:grid; grid-template-columns:1fr 1.5fr; gap:9px; margin-top:18px; }
.cash-tool-actions .button { width:100%; }
.cash-separate-result { margin-top:3px; padding:12px; border-radius:10px; background:var(--paper); }
.cash-print-help { margin:10px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.cash-count-error { padding:13px 15px; border-radius:10px; background:#fde8e7; color:#8f2e2b; }
.cash-count-error[hidden] { display:none; }
@media (max-width:1100px) { .cash-count-workspace { grid-template-columns:1fr; }.cash-receipt-preview { position:static; } }
@media (max-width:800px) { .cash-currency-grid,.cash-count-fields { grid-template-columns:1fr; } }
@media (max-width:480px) { .cash-tool-actions { grid-template-columns:1fr; } }
