#auth-screen{display:none}.locked #auth-screen{display:flex;flex-direction:column;align-items:center;min-height:100vh;padding:45px 20px;background:radial-gradient(ellipse at 15% 10%,#dfefec,transparent 65%),#f5f8f8}.locked>.sidebar,.locked>.shell{display:none}.access-brand{display:flex;gap:12px;align-items:center;margin-bottom:29px}.access-brand strong{font-size:29px;letter-spacing:1px}.access-brand>span{font-size:13px;color:var(--muted);border-left:1px solid #c6d9d9;padding-left:14px;margin-left:3px}.access-card{width:470px;max-width:100%;padding:32px;border:1px solid #e0e9e8;border-radius:17px;background:white;box-shadow:0 20px 80px #20484809}.access-card h1{font-size:28px}.access-card form{display:flex;flex-direction:column;gap:16px;margin-top:23px}.access-card .hint{font-size:12px;color:var(--muted)}.access-card .btn{width:100%;margin-top:5px;padding:13px}.access-note{font-size:11px;color:#8d7047;background:#fff7e7;border-radius:8px;padding:13px;line-height:1.6;margin-top:23px}.access-footer{font-size:11px;color:var(--muted);margin-top:20px}.workflow{display:grid;grid-template-columns:1fr 22px 1fr 22px 1fr 22px 1fr;gap:9px;margin-bottom:23px;align-items:center}.workflow button{text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px;display:grid;grid-template-columns:31px 1fr;column-gap:10px}.workflow button:hover{border-color:#63a8a8}.workflow span{grid-row:1/3;background:#edf7f5;color:var(--teal);border-radius:8px;width:29px;height:29px;display:grid;place-items:center;font-size:11px;font-weight:700}.workflow strong{font-size:13px}.workflow small{font-size:10px;color:var(--muted)}.workflow i{font-style:normal;color:#9badb2;text-align:center}.start-card{padding:25px}.start-card p{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 20px}.start-card .btn{margin-top:4px}.patient-meta{display:grid;grid-template-columns:1fr 1fr 1fr 1.5fr;gap:14px;background:#eaf4f3;border:1px solid #d7e7e4;border-radius:12px;padding:19px 23px;font-size:13px}.patient-meta b{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-bottom:6px}.record-content{padding:23px}.record-columns{display:grid;grid-template-columns:1.3fr 1fr;gap:30px}.record-columns h3{font-size:15px;margin-bottom:14px}.record-note{border:1px solid var(--line);border-radius:10px;padding:17px;margin-bottom:14px}.record-note .row-actions{font-size:11px;align-items:center}.note-text{white-space:pre-wrap;font-size:13px;line-height:1.8;overflow-wrap:anywhere;margin-top:13px}.note-meta{font-size:11px;line-height:1.8;color:var(--muted);margin:13px 0}.attachment{display:flex;gap:12px;border-bottom:1px solid var(--line);padding:14px 0;font-size:12px}.attachment strong{display:block;overflow-wrap:anywhere}.attachment .secondary{display:block;font-size:10px;color:var(--muted);margin:6px 0}.attachment-icon{background:#edf5f5;padding:9px;border-radius:8px;height:36px;color:var(--teal)}.attachment-icon svg{width:19px;height:19px}.cash-movements{padding:0 22px 15px;font-size:12px;color:var(--muted)}.cash-movements p{padding:8px 0}.cash-movements b{float:right;color:var(--ink)}.daily-cash{display:grid;grid-template-columns:1fr auto;font-size:13px;gap:12px}.daily-cash dt{color:var(--muted)}.daily-cash dd{margin:0;font-weight:600;text-align:right}.card-head{padding-bottom:15px}.nav-item{padding-top:9px;padding-bottom:9px}.brand{padding-bottom:24px}.sidebar-bottom{padding-top:15px}.nav-label.second{margin-top:20px}.guide-section .btn{margin-top:18px}.record-content .empty{padding:26px 15px}
@media(max-width:1100px){.workflow small{display:none}.workflow span{grid-row:auto}.workflow button{padding:12px}.patient-meta{grid-template-columns:1fr 1fr}.record-columns{grid-template-columns:1fr}.card-tabhead{flex-wrap:wrap}.sidebar-bottom p{display:none}}
@media(max-width:700px){.workflow{grid-template-columns:1fr 15px 1fr;gap:8px}.workflow>i:nth-of-type(2){display:none}.workflow button{padding:13px}.access-card{padding:25px}.access-brand>span{display:none}.patient-meta{padding:15px;gap:17px}.record-content{padding:17px}.start-card{padding:20px}.daily-cash{font-size:12px}}
@media print{body{background:white;font-size:11px}.sidebar,.topbar,.app-footer,.page-heading .row-actions,.btn,.table-link,.trial-banner,#toast,dialog,#auth-screen{display:none!important}.shell{margin:0}main{max-width:none;padding:0}.kpis{grid-template-columns:repeat(4,1fr)}.kpi{min-height:0;box-shadow:none;padding:12px}.kpi-value{font-size:22px}.kpi.primary{color:#19313b;background:white}.kpi.primary .kpi-label,.kpi.primary .kpi-description{color:#687985}.two-col{grid-template-columns:1fr 1fr}.card{break-inside:avoid;box-shadow:none}.table-wrap{overflow:visible}h1{font-size:24px}.recent{margin-top:12px}}
.production-tabs{display:flex;gap:8px;margin:0 0 21px}.production-tabs button{background:white;border:1px solid var(--line);border-radius:10px;text-align:left;padding:13px 22px;font-size:13px;font-weight:600;color:var(--muted);min-width:210px}.production-tabs small{display:block;font-size:10px;font-weight:400;margin-top:4px}.production-tabs .selected{background:#e5f3f1;border-color:#8fc5c1;color:var(--teal-dark)}.production-date{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:7px}.production-inner{margin:0 22px 16px}.source-hash{font-family:Consolas,monospace;font-size:12px}.nav-item{padding-top:8px;padding-bottom:8px}.sidebar{overflow:auto}.sidebar-bottom{min-height:90px}.production-tabs button:focus-visible{outline:2px solid var(--teal)}
@media(max-width:700px){.production-tabs{gap:8px}.production-tabs button{min-width:0;flex:1;padding:13px;font-size:12px}.production-date{flex:1}.production-date input{min-width:120px;width:100%}.production-inner{margin:0 14px 12px}}
.team-card .card-head{align-items:flex-start}.team-card h2{font-size:17px}.team-card .card-head p{max-width:280px}.team-card .btn{white-space:nowrap}.medical-tariff-fields{background:#f1f7f6;border:1px solid #dbe9e6;border-radius:10px;padding:15px}.medical-tariff-fields>.hint{margin:12px 0 0}.line-medical{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:13px;border-top:1px solid var(--line)}.line-medical .hint{display:block;margin-top:6px;font-size:11px;line-height:1.5;color:var(--muted)}.line-medical-preview{padding:7px 0;font-size:13px}.medical-line-detail{display:flex;flex-direction:column;gap:4px;max-width:270px;font-size:12px}.medical-line-detail .hint{font-size:10px;line-height:1.5;color:var(--muted)}.medical-line-detail strong{font-size:12px}.medical-sale-table{min-width:720px}.field input:disabled{background:#e8eeee;color:#899696}.medical-tariff-fields .field{min-width:0}
@media(max-width:700px){.line-medical{grid-template-columns:1fr;gap:7px}.team-card .card-head{flex-wrap:wrap}.medical-tariff-fields{padding:12px}}

/* Daily collections stay separate from the physical cash reconciliation. */
.cash-collection-summary{margin-bottom:20px}
.cash-collection-heading{padding:18px 22px 15px}
.cash-collection-heading h2{font-size:21px;line-height:1.4}
.cash-collection-heading p{margin-top:5px;color:var(--muted);font-size:14px;line-height:1.6}
.cash-collection-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;margin:0;background:var(--line);border-top:1px solid var(--line)}
.cash-collection-grid>div{min-width:0;padding:16px 18px 18px;background:#fff}
.cash-collection-grid dt{min-height:44px;font-size:14px;line-height:1.5;font-weight:500;color:var(--muted)}
.cash-collection-grid dd{margin:5px 0 0;font-size:24px;line-height:1.3;font-weight:650;letter-spacing:-.4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cash-collection-grid .cash-collection-total{background:#eaf7f1}
.cash-collection-total dt,.cash-collection-total dd{color:#0c5a53;font-weight:700}
@media(max-width:1180px){.cash-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cash-collection-grid dt{min-height:0}}
@media(max-width:700px){.cash-collection-heading{padding:16px}.cash-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-collection-grid>div{padding:14px 16px}.cash-collection-grid dd{font-size:22px}.cash-collection-grid dt{min-height:42px}}
@media(max-width:360px){.cash-collection-grid{grid-template-columns:minmax(0,1fr)}.cash-collection-grid dt{min-height:0}}

/* Cash day: context, three distinct totals, a single comparison and the ledger. */
.cash-day-view .cash-day-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}
.cash-day-view .cash-day-totals>article{min-width:0;display:flex;flex-direction:column;gap:5px;padding:12px 16px;border-radius:14px}
.cash-day-view .cash-total-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-height:24px}
.cash-day-view .cash-total-top h2{font-size:17px;line-height:1.4;font-weight:600}
.cash-day-view .cash-total-top>span{display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;border-radius:7px;background:#edf5f4;font-size:18px}
.cash-day-view .cash-total-top svg{width:14px;height:14px}
.cash-day-view .cash-total-value{font-size:clamp(26px,1.8vw,29px);line-height:1.2;letter-spacing:-.5px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cash-day-view .cash-day-totals p{font-size:14px;line-height:1.5}
.cash-day-view .cash-physical-total{background:#0d6168;border-color:#0d6168;color:white}
.cash-day-view .cash-physical-total .cash-total-top>span{background:#ffffff20}
.cash-day-view .cash-physical-total p{color:#deefef}
.cash-day-view .cash-opening-line{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #ffffff30;padding-top:8px;margin-top:auto;font-size:15px;line-height:1.5;color:#fff}
.cash-day-view .cash-opening-line>span{font-weight:600}
.cash-day-view .cash-opening-line strong{font-size:17px;font-variant-numeric:tabular-nums;color:white}
.cash-day-view .cash-day-collected-total{background:#fff;border-top:3px solid #4d9984}
.cash-day-view .cash-day-collected-total .cash-total-value{color:#146b5b}
.cash-day-view .cash-day-outflow-total{background:#fff;border-top:3px solid #c39a52}
.cash-day-view .cash-day-outflow-total .cash-total-value{color:#815622}
.cash-day-view .cash-day-outflow-total .cash-total-top>span{background:#fff4e3;color:#815622}
.cash-day-view .cash-day-collected-total p,.cash-day-view .cash-day-outflow-total p,.cash-day-view .cash-total-caption{color:var(--muted)}
.cash-day-view .cash-total-caption{font-size:13px;line-height:1.5;margin-top:auto;padding-top:7px;border-top:1px solid var(--line)}
.cash-day-view .cash-session-strip{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;font-size:14px;line-height:1.5}
.cash-session-strip>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cash-session-date{font-weight:600}
.cash-session-code{color:var(--muted);border-left:1px solid #cddcde;padding-left:14px}
.cash-session-pending{color:var(--muted)}
.cash-day-view .cash-method-summary{margin-bottom:20px}
.cash-method-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 16px}
.cash-day-view .cash-method-heading h2{font-size:20px;line-height:1.4}
.cash-method-heading p{font-size:13px;color:var(--muted);line-height:1.6;margin-top:4px}
.cash-summary-date{font-size:13px;white-space:nowrap;color:var(--muted)}
.cash-method-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 8px 18px}
.cash-method-grid .cash-method-item{min-width:0;padding:0 16px;border-left:1px solid var(--line)}
.cash-method-grid .cash-method-item:first-child{border-left:0}
.cash-day-view .cash-method-item h3{font-size:15px;line-height:1.5;font-weight:650;margin:0 0 12px}
.cash-method-item dl{margin:0;display:grid;gap:10px}
.cash-method-item dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.cash-method-item dt{font-size:13px;line-height:1.5;color:var(--muted)}
.cash-method-item dd{margin:0;font-size:17px;line-height:1.4;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cash-method-item [data-cash-collections]{color:#146b5b}
.cash-method-item [data-cash-outflows]{color:#815622}
.cash-outflow-detail{border-top:1px solid var(--line)}
.cash-outflow-detail>summary{padding:13px 22px;cursor:pointer;font-size:15px;color:var(--teal-dark);min-height:44px;line-height:1.5}
.cash-outflow-detail>summary:hover{background:#f6faf9}
.cash-outflow-types{display:flex;flex-wrap:wrap;gap:12px 28px;margin:0;padding:4px 22px 12px}
.cash-outflow-types>div{display:flex;align-items:baseline;gap:10px}
.cash-outflow-types dt{font-size:14px;color:var(--muted)}
.cash-outflow-types dd{margin:0;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
.cash-outflow-note{padding:0 22px 16px;font-size:13px;line-height:1.6;color:var(--muted)}
.cash-outflow-breakdown{margin:2px 22px 14px;padding-top:12px;border-top:1px solid var(--line)}
.cash-day-view .cash-outflow-breakdown h3{font-size:14px;line-height:1.5;font-weight:600;margin:0 0 9px}
.cash-outflow-methods{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.cash-outflow-methods>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;min-width:160px;padding:9px 12px;border:1px solid #e3eaed;border-radius:8px;background:#f8fafb}
.cash-outflow-methods dt{font-size:13px;line-height:1.5;color:var(--muted)}
.cash-outflow-methods dd{margin:0;font-size:15px;line-height:1.5;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cash-day-view .cash-outflow-breakdown>p{font-size:13px;line-height:1.6;color:var(--muted);margin:0}
@media screen{.cash-outflow-methods dd{color:#975e63}}
@media(max-width:700px){.cash-outflow-breakdown{margin-left:18px;margin-right:18px}.cash-outflow-methods>div{flex:1 1 180px;min-width:0}}
.cash-day-view .cash-payment-card .card-tabhead{padding:18px 22px;gap:14px}
.cash-day-view .cash-payment-card h2{font-size:20px;line-height:1.4}
.cash-movement-caption{font-size:13px;color:var(--muted);line-height:1.5;margin-top:4px}
.cash-day-view .cash-payment-card th,.cash-day-view .cash-history th{padding:13px 22px;background:#f3f7f8;font-size:14px}
.cash-day-view .cash-payment-card td,.cash-day-view .cash-history td{padding:15px 22px;font-size:15px}
.cash-day-view .cash-payment-card td .secondary{margin-top:4px;font-size:13px}
.cash-day-view .cash-payment-card td:nth-child(2){color:var(--muted)}
.cash-day-view .cash-payment-card td:nth-child(3){font-weight:600;color:#0d6168}
.cash-day-view .cash-payment-card td.numeric{font-weight:650}
.cash-day-view .cash-history{margin-top:20px}
.cash-history>summary{display:flex;gap:14px;align-items:center;cursor:pointer;list-style:none;padding:18px 22px}
.cash-history>summary::-webkit-details-marker{display:none}
.cash-history>summary>span:first-child{flex:1;min-width:0}
.cash-history>summary strong{display:block;font-size:17px;line-height:1.5}
.cash-history>summary small{display:block;font-size:13px;line-height:1.5;color:var(--muted);margin-top:3px}
.cash-history-count{font-size:13px;color:var(--muted);white-space:nowrap}
.cash-disclosure-arrow{font-size:26px;color:var(--teal);transition:transform .15s}
.cash-history[open] .cash-disclosure-arrow{transform:rotate(90deg)}
.cash-history[open]>summary{border-bottom:1px solid var(--line)}
.cash-history>summary:hover{background:#f6faf9}
.cash-day-view summary:focus-visible{outline:3px solid var(--teal);outline-offset:-4px;border-radius:10px}
@media screen{
 #content:has(>.cash-day-view){width:100%;max-width:none}
 .cash-day-view>.page-heading{margin-bottom:18px;flex-wrap:wrap}
 .cash-day-view>.page-heading h1{font-size:32px;line-height:1.3}
 .cash-day-view>.page-heading .subtitle{font-size:15px;line-height:1.6}
 .cash-day-view>.page-heading .btn[data-modal="cash_close"]{min-width:190px;min-height:56px;padding:14px 26px;font-size:18px;gap:10px;white-space:nowrap}
 .cash-day-view>.page-heading .btn[data-modal="cash_close"] svg{width:20px;height:20px}
 @media(max-width:1450px){
  .cash-day-view .cash-day-totals>article{padding:12px 16px}
  .cash-method-grid .cash-method-item{padding:0 14px}
  .cash-method-item dl>div{display:block}
  .cash-method-item dd{margin-top:3px}
 }
 @media(max-width:1050px){
  .cash-day-view .cash-day-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cash-day-view .cash-physical-total{grid-column:1/-1}
  .cash-method-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 0}
  .cash-method-grid .cash-method-item:nth-child(2n+1){border-left:0}
 }
 @media(max-width:700px){
  .cash-day-view>.page-heading h1{font-size:28px}
  .cash-day-view .cash-day-totals{gap:12px}
  .cash-day-view .cash-day-totals>article{padding:12px 14px}
  .cash-day-view .cash-total-top h2{font-size:16px}
  .cash-day-view .cash-total-top>span{display:none}
  .cash-day-view .cash-total-value{font-size:26px}
  .cash-method-heading{padding:18px;align-items:flex-start;flex-direction:column;gap:5px}
  .cash-summary-date{display:none}
  .cash-method-grid{display:block;padding:0 18px 10px}
  .cash-method-grid .cash-method-item{display:grid;grid-template-columns:minmax(80px,1fr) 2fr;gap:12px;border-left:0;border-top:1px solid var(--line);padding:14px 0}
  .cash-day-view .cash-method-item h3{font-size:14px;margin:0;align-self:center;overflow-wrap:anywhere}
  .cash-method-item dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
  .cash-method-item dd{font-size:16px}
  .cash-outflow-detail>summary{padding-left:18px;padding-right:18px}
  .cash-outflow-types,.cash-outflow-note{padding-left:18px;padding-right:18px}
  .cash-history>summary{padding:17px 18px}
  .cash-day-view .cash-payment-card .card-tabhead{padding:17px 18px}
  .cash-day-view .cash-payment-card th,.cash-day-view .cash-payment-card td,.cash-day-view .cash-history th,.cash-day-view .cash-history td{padding-left:18px;padding-right:18px}
 }
 @media(max-width:480px){
  .cash-day-view .cash-day-totals{grid-template-columns:minmax(0,1fr)}
  .cash-day-view .cash-physical-total{grid-column:auto}
  .cash-day-view .cash-day-totals>article{gap:5px}
  .cash-day-view .cash-total-value{font-size:26px}
  .cash-session-strip>div{gap:8px}
  .cash-session-code{padding-left:8px}
 }
}
@media print{
 .cash-day-view .cash-physical-total{background:white;color:var(--ink);border-color:var(--line)}
 .cash-day-view .cash-physical-total p,.cash-day-view .cash-opening-line,.cash-day-view .cash-opening-line strong{color:var(--ink)}
 .cash-day-view .cash-total-value{font-size:24px}
 .cash-day-view .cash-day-totals>article{padding:12px}
 .cash-day-view .cash-total-top>span,.cash-day-actions{display:none}
 .cash-day-view .cash-method-item dl>div{display:block}
 .cash-day-view .cash-method-item dd{font-size:15px}
 .cash-day-view .cash-history:not([open]){display:none}
}

/* Daily net flow is separate from physical cash and prior balances. */
.cash-day-view .cash-day-net{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(280px,1fr) minmax(190px,.7fr);align-items:center;gap:20px 28px;margin-bottom:20px;padding:18px 20px;background:#fff;border-color:#d6e1e5}
.cash-day-net-main{min-width:0}
.cash-day-view .cash-day-net h2{font-size:18px;line-height:1.4}
.cash-day-view .cash-day-net p{font-size:13px;line-height:1.6;color:var(--muted);margin-top:4px}
.cash-day-net-value{font-size:30px;line-height:1.2;letter-spacing:-.4px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.cash-day-net-calculation{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px;margin:0;padding:4px 0 4px 24px;border-left:1px solid var(--line);min-width:0}
.cash-day-net-calculation>div{display:grid;flex:1 1 110px;gap:5px;min-width:0}
.cash-day-net-calculation dt{font-size:13px;line-height:1.6;color:var(--muted)}
.cash-day-net-calculation dd{margin:0;font-size:18px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cash-day-view p.cash-day-net-note{font-size:12px;margin-top:8px}
.cash-day-net-result{min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:14px 18px;border:1px solid #dfe7eb;border-radius:10px;background:#f3f7f8}
.cash-day-net-result>span{font-size:13px;line-height:1.5;color:var(--muted)}
@media screen{
 .cash-day-view{container:cash-day / inline-size}
 .cash-day-net-value[data-direction="positive"]{color:#4f7362}
 .cash-day-net-value[data-direction="negative"]{color:#975e63}
 @container cash-day (max-width:1000px){
  .cash-day-view .cash-day-net{grid-template-columns:minmax(0,1fr) minmax(190px,.7fr);gap:16px 24px}
  .cash-day-net-main{grid-column:1/-1}
  .cash-day-net-calculation{border:0;padding:0}
 }
 @container cash-day (max-width:580px){
  .cash-day-view .cash-day-net{padding:18px}
  .cash-day-view .cash-day-net{grid-template-columns:minmax(0,1fr);gap:16px}
  .cash-day-net-main{grid-column:auto}
  .cash-day-net-calculation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
  .cash-day-net-result{padding:12px 14px;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}
  .cash-day-net-value{font-size:28px}
 }
}
@media print{.cash-day-view .cash-day-net{grid-template-columns:minmax(0,1fr) minmax(150px,.6fr);background:white;padding:12px}.cash-day-net-main{grid-column:1/-1}.cash-day-net-calculation{border:0;padding:0}.cash-day-net-value{font-size:24px}}

/* Simple cashier payments use the same dialog and spacing as other forms. */
.cash-day-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cash-day-actions>[data-modal="cash_outflow"]{min-height:50px;padding:12px 22px;font-size:16px}
.cash-outflow-tabs{display:flex;gap:8px;margin:0 0 20px}
.cash-outflow-tabs button{flex:1;padding:13px 18px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:15px;font-weight:600}
.cash-outflow-tabs button.selected{background:#e7f4f2;border-color:#7bbcb7;color:var(--teal-dark)}
.cash-outflow-tabs button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.cash-outflow-help{margin:18px 0 0;padding:12px 14px;background:#f4f8f9;border-radius:8px;color:var(--muted);font-size:13px;line-height:1.6}
#cash-outflow-form .form-grid>datalist{display:none}
.cash-movement-row{display:flex;align-items:center;gap:20px;padding:15px 0;border-top:1px solid var(--line)}
.cash-movement-person{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.cash-movement-person strong{font-size:15px;color:var(--ink);overflow-wrap:anywhere}
.cash-movement-person span{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.cash-movement-method{font-size:13px;padding:5px 10px;border-radius:6px;background:#fff4e2;color:#755e3d}
.cash-movements .cash-movement-row b{float:none;flex-shrink:0;font-size:16px;font-variant-numeric:tabular-nums}
@media(max-width:700px){.cash-day-actions{width:100%;justify-content:flex-end}.cash-movement-row{gap:12px;flex-wrap:wrap}.cash-movement-person{flex-basis:60%}}
@media(max-width:420px){.cash-day-actions>.btn{width:100%}.cash-day-actions>[data-modal="cash_outflow"]{min-height:50px}.cash-movement-person{flex-basis:100%}}

/* All cash operations share aligned type, payment method and amount columns. */
.cash-day-view .cash-operation-table{table-layout:fixed;min-width:760px}
.cash-operation-table th:first-child{width:42%}
.cash-operation-table th:nth-child(2){width:22%}
.cash-operation-table th:nth-child(3),.cash-operation-table th:nth-child(4){width:18%}
.cash-operation-table td:first-child{overflow-wrap:anywhere}
.cash-operation-table td:first-child .secondary{line-height:1.6}

/* Compact payment entry; recovery dialogs retain their existing layout. */
@media screen{
 #modal:has(#cash-outflow-form[data-mode="new"]){width:min(660px,calc(100vw - 32px))}
 #modal:has(#cash-outflow-form[data-mode="new"]) .modal-head{padding:20px 22px 16px}
 #modal:has(#cash-outflow-form[data-mode="new"]) .modal-head h2{font-size:22px}
 #modal:has(#cash-outflow-form[data-mode="new"]) .modal-head p{font-size:14px;margin-top:4px}
 #modal:has(#cash-outflow-form[data-mode="new"]) .modal-content{padding:18px 22px 20px}
 #cash-outflow-form[data-mode="new"]>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
 #cash-outflow-form[data-mode="new"] .field{gap:5px;min-width:0}
 #cash-outflow-form[data-mode="new"] .field label{margin:0}
 #cash-outflow-form[data-mode="new"] .field input,#cash-outflow-form[data-mode="new"] .field select{min-height:44px;padding:9px 12px;font-size:16px}
 #cash-outflow-form[data-mode="new"] .cash-outflow-concept{grid-column:1/-1;min-width:0;border-top:1px solid var(--line)}
 #cash-outflow-form[data-mode="new"] .cash-outflow-concept>summary{min-height:44px;padding:10px 0;cursor:pointer;color:var(--teal-dark);font-size:14px;line-height:1.5}
 #cash-outflow-form[data-mode="new"] .cash-outflow-concept>.field{margin:4px 0 2px}
 #cash-outflow-form[data-mode="new"] .cash-outflow-help{margin:10px 0 0;padding:0;background:transparent;font-size:13px;line-height:1.5}
 #cash-outflow-form[data-mode="new"] .form-actions{margin-top:18px;padding:16px 0 0;gap:10px}
 #cash-outflow-form[data-mode="new"] .form-actions>.btn{min-height:44px;padding:10px 18px}
 @media(max-width:560px){
  #modal:has(#cash-outflow-form[data-mode="new"]){width:calc(100vw - 24px)}
  #modal:has(#cash-outflow-form[data-mode="new"]) .modal-head{padding:18px 18px 14px}
  #modal:has(#cash-outflow-form[data-mode="new"]) .modal-content{padding:16px 18px 18px}
  #cash-outflow-form[data-mode="new"]>.form-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  #cash-outflow-form[data-mode="new"] .form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #cash-outflow-form[data-mode="new"] .form-actions>.btn{width:100%;padding:10px 8px;font-size:15px;justify-content:center}
 }
}

/* Subtle direction colors retain the explicit amount signs. */
@media screen{
 .cash-day-view .cash-operation-table .cash-operation-in{color:#4f7362}
 .cash-day-view .cash-operation-table .cash-operation-out{color:#975e63}
}

/* The historical summary shares the cash-day layout and retains closing reconciliation. */
.cash-day-view .cash-history-closing{margin-bottom:20px}
.cash-day-view .cash-history-closing .card-head{padding:18px 22px 14px;border-bottom:1px solid var(--line)}
.cash-day-view .cash-history-closing h2{font-size:20px;line-height:1.4}
.cash-closing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0;padding:18px 22px}
.cash-closing-grid>div{min-width:0}
.cash-closing-grid dt{font-size:14px;line-height:1.5;color:var(--muted)}
.cash-closing-grid dd{margin:5px 0 0;font-size:22px;line-height:1.4;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cash-closing-note{padding:0 22px 18px;font-size:14px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.cash-history-closing .card-head+.cash-closing-note{padding-top:16px}
@media(max-width:700px){.cash-day-view .cash-history-closing .card-head{padding:17px 18px}.cash-closing-grid{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 18px}.cash-closing-grid>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px}.cash-closing-grid dd{margin:0;font-size:19px}.cash-closing-note{padding-left:18px;padding-right:18px}}
@media print{.cash-closing-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px}.cash-closing-grid dd{font-size:17px}}
