/* V5.55.96: embedded corporate card management; isolated from finance ledgers. */
.le55102-page.le55596-card-open>.le55508-workhead,
.le55102-page.le55596-card-open>.le55102-split,
.le55102-page.le55596-card-open>.le55102-note{display:none!important}
.le55596-cardpanel{display:none;max-width:100%;min-width:0;padding:12px 8px 24px}
.le55102-page.le55596-card-open>.le55596-cardpanel{display:block}
.le55596-pane{border:1px solid #cdd9e4;border-radius:8px;padding:13px;margin:12px 0;background:#fff;color:#23374d}
.le55596-pane h3{font-size:17px;margin:0 0 12px;font-weight:800;line-height:1.4}
.le55596-pane h3 small{font-size:12px;font-weight:400;color:#64768b}
.le55596-note{font-size:12px;color:#546b80;line-height:1.55;margin:10px 0}
.le55596-warning{font-size:12px;line-height:1.55;color:#8b4a0a;background:#fff8ed;border:1px solid #f0d5a4;padding:8px 11px;border-radius:5px;margin:9px 0}
.le55596-error{color:#a12727;padding:14px;border:1px solid #e5c3c3;background:#fff4f4}
.le55596-formgrid,.le55596-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;padding:4px 0}
.le55596-formgrid label,.le55596-filters label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:650}
.le55596-formgrid input,.le55596-formgrid select,.le55596-filters input,.le55596-filters select,.le55596-dialog input,.le55596-dialog select{border:1px solid #b9cbdc;background:#fff;border-radius:5px;box-sizing:border-box;min-height:35px;padding:6px 8px;max-width:100%;width:100%;font-size:13px;color:#213951}
.le55596-formgrid input[readonly]{background:#edf1f4}
.le55596-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:10px 0}
.le55596-actions button{white-space:normal;line-height:1.25}
.le55596-overflow,.le55596-scroll{max-width:100%;overflow:auto;scrollbar-gutter:stable}
.le55596-scroll{max-height:520px}
.le55596-pane table,.le55596-dialog table{border-collapse:separate;border-spacing:0;min-width:max-content;width:100%;font-size:12px}
.le55596-pane th,.le55596-pane td,.le55596-dialog th,.le55596-dialog td{border-bottom:1px solid #e0e8ef;padding:7px 9px;white-space:nowrap;text-align:left;font-variant-numeric:tabular-nums}
.le55596-pane th,.le55596-dialog th{font-size:11px;background:#e8eff6;color:#24435f;position:sticky;top:0;z-index:2;font-weight:700}
.le55596-pane tr:hover td{background:#f4f8fb}
.le55596-table{table-layout:fixed;width:max-content!important;min-width:100%}
.le55596-table td{height:var(--row-h,34px);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis}
.le55596-table th{position:relative;user-select:none;cursor:grab}
.le55596-grip{position:absolute;right:0;top:0;height:100%;width:6px;border-right:2px solid #aec3d8;cursor:col-resize}
.le55596-filters{background:#f6f9fc;border:1px solid #d7e2eb;padding:12px;border-radius:6px}
.le55596-period{display:flex;align-items:end;gap:5px;flex-wrap:wrap}
.le55596-period button{height:35px}
.le55596-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.le55596-head span{font-size:12px;color:#65778b}
.le55596-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
.le55596-summary>div{border:1px solid #d4e0e8;background:#f8fbfd;padding:12px;border-radius:6px;min-width:0}
.le55596-summary span{display:block;font-size:11px;color:#64768b;margin-bottom:7px}
.le55596-summary strong{display:block;font-size:17px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.le55596-modal{position:fixed;z-index:100000;inset:0;background:rgba(18,35,51,.54);display:flex;justify-content:center;align-items:flex-start;padding:6vh 15px 15px;overflow:auto;box-sizing:border-box}
.le55596-dialog{width:min(1100px,100%);max-height:88vh;overflow:auto;box-sizing:border-box;background:#fff;color:#263b50;border-radius:9px;padding:15px;box-shadow:0 8px 26px rgba(0,0,0,.3)}
.le55596-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #dbe5ed;padding-bottom:10px;margin-bottom:13px}
.le55596-dialog>header strong{font-size:17px}
.le55596-dialog>.le55596-layoutlist{max-height:50vh;overflow:auto;border:1px solid #dfe6ee;margin:8px 0}
.le55596-colrow{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e7eaf0;padding:5px 8px;min-height:32px}
.le55596-colrow label{display:flex;align-items:center;flex:1;min-width:155px;gap:7px}
.le55596-colrow input[type=checkbox]{width:auto;min-height:0}
.le55596-colrow input[type=number]{max-width:90px}
.le55596-calc{font-weight:700;color:#205578;background:#eef6fb;padding:9px;margin-top:12px}
.le55596-base .v510-tabs{display:flex;flex-wrap:wrap;gap:5px}
@media(max-width:900px){.le55596-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.le55596-formgrid,.le55596-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.le55596-formgrid,.le55596-filters{grid-template-columns:1fr}.le55596-summary{grid-template-columns:1fr 1fr}.le55596-summary strong{font-size:14px}}
@media print {
 body:has(.le55596-modal .le55596-printarea) .side,
 body:has(.le55596-modal .le55596-printarea) .top,
 body:has(.le55596-modal .le55596-printarea) .footer,
 body:has(.le55596-modal .le55596-printarea) #app,
 body:has(.le55596-modal .le55596-printarea) .le55596-printbuttons,
 body:has(.le55596-modal .le55596-printarea) .le55596-dialog>header{display:none!important}
 body:has(.le55596-modal .le55596-printarea) .le55596-modal{position:static!important;background:#fff!important;display:block!important;padding:0!important;overflow:visible!important}
 body:has(.le55596-modal .le55596-printarea) .le55596-dialog{width:100%!important;max-height:none!important;box-shadow:none!important;overflow:visible!important}
 body:has(.le55596-modal .le55596-printarea) .le55596-overflow{overflow:visible!important}
 body:has(.le55596-modal .le55596-printarea) table{font-size:9px}
}

/* V5.56.09: 5th tab only; 6th/all and 1-4 retain the shared expense grid. */
.le55102-page.le55596-card-open > .le55508-workhead,
.le55102-page.le55596-card-open > .le55102-split,
.le55102-page.le55596-card-open > .le55102-note{display:none!important}
.le55596-cardpanel{padding:0 4px 20px}
.le55596-cardpanel .le55596-pane{margin:8px 0;padding:12px;border-radius:6px}
.le55596-cardpanel .le55596-head{align-items:center;gap:12px;margin-bottom:12px;padding:8px 10px;background:#f1f6fa;border:1px solid #d8e4ed;border-radius:5px}
.le55596-heading{display:flex;flex-direction:column;gap:3px}
.le55596-heading h3{margin:0}
.le55596-head-actions{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-left:auto}
.le55596-head-actions .btn{font-size:12px;min-height:32px}
.le55596-filters{grid-template-columns:repeat(4,minmax(140px,1fr));align-items:end}
.le55596-query-slot{display:flex;justify-content:flex-end;align-items:end;min-height:35px}
.le55596-query-slot .btn{min-width:72px;min-height:35px}
@media(max-width:1000px){.le55596-filters{grid-template-columns:repeat(3,minmax(130px,1fr))}}
@media(max-width:650px){.le55596-filters{grid-template-columns:repeat(2,minmax(120px,1fr))}.le55596-head{align-items:flex-start!important}.le55596-head-actions{margin-left:0}}
@media(max-width:420px){.le55596-filters{grid-template-columns:1fr}}
