
/* Corporate-card ledger and photo review */
.card-ledger-heading,.card-review-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.card-ledger-title{display:flex;align-items:center;gap:10px}
.card-ledger-heading h2{font-size:20px}
.card-ledger-title span,.card-export-note{color:#4e677e;font-size:12px}
.card-filters{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:0 0 12px}
.card-filters input,.card-filters select{width:auto;padding:8px 9px;height:38px}
.card-date-range{display:flex;align-items:center;gap:5px;background:#fff;border:1px solid #d6e1ec;border-radius:8px;color:#4e677e}
.card-date-range input{min-width:0;border:0;background:none}
.card-filters .card-search{min-width:230px;margin-left:auto}
.card-export-note{margin-top:10px}
.card-ledger-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.card-ledger-stat{padding:15px 16px;display:grid;gap:6px;border:1px solid #dae3ec;border-radius:11px;background:#fff;color:#173c65}
.card-ledger-stat span{font-size:13px;color:#4a6278;font-weight:700}.card-ledger-stat strong{font-size:21px;overflow-wrap:anywhere}
.card-ledger-stat small{color:#4a6278;font-size:11px}
.card-ledger-net{background:#f5f9ff;border-color:#b8cce3}
.card-negative,.card-ledger-stat.card-negative strong{color:#a24545}
.card-ledger-table .card-header{padding:12px 16px}.card-ledger-table .card-header h3{font-size:15px}
.card-ledger-table table{min-width:1055px}
.card-ledger-table th,.card-ledger-table td{padding:9px 10px}
.card-ledger-table thead th{color:#365775;font-weight:700}
.card-ledger-table th small,.card-ledger-table td small{display:block;margin-top:3px;color:#52697f;font-size:11px}
.card-ledger-table .card-wrap{max-width:180px;white-space:normal;overflow-wrap:anywhere}
.card-ledger-table .card-amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.card-total{font-weight:800}
.card-ledger-table .card-title-link{padding:0;min-height:0;border:0;background:none;color:#184b80;font-weight:800;white-space:normal;text-align:left}
.card-proof{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.card-proof .card-proof-link{padding:3px 7px;min-height:25px;font-size:11px;color:#215383}
.card-ledger-table tfoot{background:#ecf3fb;color:#183c60}
.card-pages{display:flex;gap:12px;align-items:center;justify-content:center;margin:12px 0}
.card-empty{padding:17px;color:#50667a;font-size:13px}
.card-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 13px}
.card-detail-facts div{padding:10px;border:1px solid #dce5ed;border-radius:8px;background:#f7f9fc}
.card-detail-facts dt{color:#4d657c;font-size:12px}
.card-detail-facts dd{margin:4px 0 0;overflow-wrap:anywhere;font-weight:750}
.card-evidence-heading{font-size:15px;margin:13px 0 8px}
.card-evidence-list{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.card-evidence-item{display:flex;gap:5px;align-items:flex-start}
.card-duplicate-check{display:flex;align-items:center;gap:7px;margin:12px 0;color:#53677b}
.card-duplicate-check input,.card-review-row input[type=checkbox]{width:auto;margin:0}
.card-mobile-actions{display:flex;gap:8px;flex-wrap:wrap;padding:14px;margin-bottom:13px}
.btn.card-camera{background:#164a83;color:white;border-color:#164a83}.btn.card-camera:hover{background:#173c65;color:white}
.card-mobile-queue .card-header{padding:13px 15px}
.card-queue-item{display:flex;align-items:center;gap:8px;padding-right:14px;border-top:1px solid #e5ebf0;background:white}
.card-queue-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 9px;text-align:left;align-items:center;flex:1;min-width:0;padding:12px 14px;background:white;border:0;color:#243f5a}
.card-queue-row strong{overflow-wrap:anywhere}.card-queue-row small{grid-row:2;color:#536d85}
.card-queue-row>span{grid-column:2;grid-row:1 / 3;font-size:12px;color:#20578e}
.card-capture h3,.card-review h3{font-size:18px;margin-bottom:5px}
.card-photo-slot{min-height:185px;background:#294863;border:1px solid #28445e;border-radius:10px;display:grid;justify-items:center;align-content:center;padding:13px;color:#fff;text-align:center;gap:7px}
.card-scan-hint,.card-scan-status{font-size:13px;color:#46617c;margin:0 0 12px}
.card-source-row:not(:empty){margin-top:8px}
.card-source-row .heading-actions{justify-content:flex-end}
.card-review-top{padding:9px 11px;border:1px solid #dce6ef;border-radius:9px;background:#fff}
.card-photo-slot img{display:block;max-height:340px;max-width:100%;margin:auto;object-fit:contain;border-radius:6px}
.card-capture-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:11px 0}
.card-capture-options label{cursor:pointer;position:relative;justify-content:center}
.card-capture-options label:focus-within{outline:2px solid #31669d;outline-offset:2px}
.card-capture-options input:disabled{cursor:wait}
.card-capture-options label:has(input:disabled){opacity:.55;cursor:wait}
.card-scan-status{min-height:19px;margin:10px 0}
.card-review .badge-list{margin-bottom:9px}
.card-review-row{display:grid;grid-template-columns:19px minmax(0,1fr) auto;gap:8px;align-items:start;border:1px solid #dce6ef;border-radius:9px;padding:10px;margin-bottom:8px;background:#fff}
.card-review-row input[type=checkbox]{margin-top:3px;accent-color:#164a83}
.card-review-row small{display:block;color:#4c6880;margin-top:3px}
.card-review-row p{font-size:12px;color:#4c647a;margin-top:4px;overflow-wrap:anywhere}
.card-review-amount{display:grid;gap:6px;justify-items:end;text-align:right;white-space:nowrap}
.card-review-links{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.card-review-links .btn{font-size:11px;min-height:28px;padding:3px 7px}
.card-review-actions{flex-wrap:wrap;margin-top:12px}
.card-confirm-form .card-entry-fields{margin-top:11px}
.card-entry-fields label:has([name=total]){grid-column:1/-1}
.card-confirm-form input[required]:invalid{background:#fff8e9;border-color:#debf87}
#editor:has(.card-capture,.card-review) #modal-extra-actions:not(:empty){display:flex;flex-wrap:wrap;gap:6px}
.raon-mobile #editor[open]:has(.card-capture,.card-review,.card-confirm-form){position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;display:flex;flex-direction:column}
.raon-mobile #editor:has(.card-capture,.card-review,.card-confirm-form) .modal-head{flex-shrink:0;background:#fff}
.raon-mobile #editor:has(.card-capture,.card-review,.card-confirm-form) .label-caps{display:none}
.raon-mobile #editor:has(.card-capture,.card-review,.card-confirm-form) #editor-form{display:flex;flex:1;min-height:0;flex-direction:column}
.raon-mobile #editor:has(.card-capture,.card-review,.card-confirm-form) #modal-body{flex:1;min-height:0;max-height:none;overflow:auto;background:#f2f6fa;padding:14px 16px}
.raon-mobile #editor:has(.card-capture,.card-review,.card-confirm-form) .modal-footer{position:static;flex-shrink:0}
.raon-mobile #editor:has(.card-capture,.card-review,.card-confirm-form) .modal-footer .btn{min-height:44px}
.raon-mobile .card-confirm-form .card-entry-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.raon-mobile .card-entry-fields input{min-width:0}
@media(max-width:720px){
 .card-ledger-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .card-mobile-actions .btn{flex:1 1 42%;min-height:46px}
 .card-review-row{padding:9px;gap:6px}
 .card-review-amount strong{font-size:13px}
 .card-review-actions .btn{min-height:42px}
 .card-capture-options .btn{min-height:44px}
 .card-photo-slot img{max-height:280px}
}

.card-entry-card{margin:12px 0}
.card-auto-total{color:#496680;font-size:11px;font-weight:500;margin-left:5px}
.card-entry-fields input[readonly]{background:#eef3f8;color:#173c65;font-weight:700}
.card-account-actions{justify-content:flex-end;margin-bottom:12px}
.card-account-list{border:1px solid #dce5ee;border-radius:9px;overflow:hidden}
.card-account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:white;border-bottom:1px solid #e5ebf0}
.card-account-row:last-child{border-bottom:0}
.card-account-row>div:first-child{min-width:0}
.card-account-row strong{display:block;overflow-wrap:anywhere}
.card-account-row small{display:block;margin-top:4px;color:#536d85}
.card-account-row .row-actions{display:flex;gap:6px;flex-shrink:0}
.card-account-fields{margin-top:6px}
@media(max-width:520px){
 .card-account-row{align-items:flex-start;flex-direction:column}
 .card-account-row .row-actions{align-self:flex-end}
 .card-entry-card{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}

.card-currency{display:block;position:relative}
.card-currency input{padding-inline-start:2rem;font-variant-numeric:tabular-nums}
.card-currency-symbol{position:absolute;z-index:1;inset-inline-start:.8rem;top:50%;transform:translateY(-50%);color:#536d85;pointer-events:none}
.card-entry-fields [name=purchase_site]:disabled{background:#f0f1f3}
.card-reversal-actions{display:flex;gap:5px;white-space:nowrap}
.card-reversal-button,.card-reversal-link{font-size:12px;min-height:29px;padding:4px 8px;white-space:nowrap}

.card-photo-review-button{
 display:inline-grid;
 grid-template-columns:1fr auto 1fr;
 column-gap:0;
}
.card-photo-review-label{grid-column:2;text-align:center}
.card-photo-review-button [data-card-pending]{grid-column:3;justify-self:start;padding-inline-start:4px}
.card-photo-review-button [data-card-pending]:empty{display:none}
#editor:has(.card-photo-review-queue)>.modal-head{
 display:grid;
 grid-template-columns:34px minmax(0,1fr) 34px;
}
#editor:has(.card-photo-review-queue)>.modal-head>div{grid-column:2;text-align:center}
#editor:has(.card-photo-review-queue) #close-modal{grid-column:3;justify-self:end}
