/* LINE E.N.G V5.49.82 / Office collection editing */
#app .le82-collection-title {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;flex-wrap:wrap}
#app .le82-head-actions {display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;margin-left:auto}
#app .le82-head-actions button {white-space:nowrap;min-height:33px;padding:5px 11px}
#app .le82-scroller {width:100%;overflow-x:auto;max-height:450px;overflow-y:auto}
#app .le82-cash-table {width:100%;min-width:1150px;table-layout:fixed;border-collapse:collapse;font-size:12px}
#app .le82-cash-table th, #app .le82-cash-table td {padding:5px 6px;white-space:normal;vertical-align:middle;border-bottom:1px solid #dce5ed}
#app .le82-cash-table th {background:#e7f1fa;color:#244e77;font-weight:700;white-space:nowrap}
#app .le82-cash-table th:nth-child(1){width:46px}#app .le82-cash-table th:nth-child(2){width:112px}
#app .le82-cash-table th:nth-child(3){width:154px}#app .le82-cash-table th:nth-child(4){width:110px}
#app .le82-cash-table th:nth-child(5){width:122px}#app .le82-cash-table th:nth-child(6){width:192px}
#app .le82-cash-table th:nth-child(7){width:160px}#app .le82-cash-table th:nth-child(8){width:128px}
#app .le82-cash-table th:nth-child(9){width:55px}
#app .le82-cash-table input:not([type=checkbox]), #app .le82-cash-table select {min-width:0;box-sizing:border-box;width:100%;height:33px;border:1px solid #c3d0dd;border-radius:4px;padding:4px 6px;font-size:12px;background:white}
#app .le82-link {display:flex;align-items:center;flex-wrap:wrap;gap:4px}
#app .le82-link strong {font-size:12px;color:#285787;white-space:nowrap}
#app .le82-link .le82-linkbtn {font-size:10px;min-height:26px;padding:3px 5px;white-space:nowrap}
#app .le82-cash-table .le82-delete {padding:3px 7px;min-height:27px;font-size:11px}
#app .le82-status {display:block;margin-top:3px;font-size:10px;line-height:1.35;color:#52836e;white-space:normal}
#app .le82-status.error {color:#c14343;font-weight:700}
#app .le82-cash-table tr.le82-selected td {background:#e5f2ff}
#app .le82-confirm {font-size:11px;color:#8c7135}
#app .le82-help {font-size:11px;color:#657786;padding-top:6px}
.le82-picker {position:fixed;z-index:2147483000;inset:0;background:rgba(16,31,49,.55);display:flex;align-items:center;justify-content:center;padding:18px}
.le82-picker-card {background:white;border:1px solid #aabdd0;border-radius:8px;box-shadow:0 15px 60px rgba(0,0,0,.35);width:min(980px,95vw);max-height:82vh;overflow:auto;padding:16px;color:#223e54}
.le82-picker-header {display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.le82-picker-card #le82-project-search {display:block;width:100%;height:38px;border:1px solid #b9cbdb;border-radius:5px;box-sizing:border-box;padding:8px;margin-bottom:10px}
.le82-project-list {max-height:60vh;overflow:auto}.le82-project-list table{width:100%}
@media(max-width:1100px){#app .le82-head-actions{gap:4px}#app .le82-head-actions button{font-size:11px!important;padding:5px 7px!important}}
/* V5.49.97 collection ledger: responsive filters and configurable columns */
#app .v5170-cardhead:has(.le82-collection-title){display:block}
#app .le82-head-actions {flex-wrap:wrap}
#app .le97-search{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;margin-top:8px;border-top:1px solid #d5e1ec;padding-top:8px;width:100%}
#app .le97-search label{display:flex;gap:4px;align-items:center;font-size:11px;font-weight:600;color:#36546e}
#app .le97-search input,#app .le97-search select{box-sizing:border-box;min-height:32px;max-width:185px;border:1px solid #bacbdc;border-radius:4px;background:white;padding:5px;font-size:12px}
#app .le97-search #le97-filter-count{color:#536e85;margin-left:auto;white-space:nowrap}
#app .le82-cash-table{table-layout:auto;min-width:1540px;width:max-content}
#app .le82-cash-table th,#app .le82-cash-table td{min-width:85px;max-width:260px;white-space:nowrap!important}
#app .le82-cash-table th[data-col="check"],#app .le82-cash-table th[data-col="delete"]{min-width:48px}
#app .le82-cash-table td[data-col="check"],#app .le82-cash-table td[data-col="delete"]{min-width:48px}
#app .le82-cash-table td[data-col="project_no"]{min-width:175px}
#app .le82-cash-table td[data-col="content"]{min-width:180px}
#app .le82-cash-table td[data-col="salesperson"],#app .le82-cash-table td[data-col="manager"],#app .le82-cash-table td[data-col="work"]{min-width:110px}
.le97-col-overlay{position:fixed;inset:0;z-index:2147483001;display:flex;justify-content:center;align-items:center;background:rgba(12,35,54,.60);padding:16px}
.le97-col-card{box-sizing:border-box;background:#fff;border-radius:9px;border:1px solid #b6c9d9;box-shadow:0 16px 60px rgba(0,0,0,.3);width:min(640px,96vw);max-height:88vh;overflow:auto;padding:18px;color:#26445c}
.le97-col-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.le97-col-head h3{margin:0;font-size:17px}.le97-col-card p{font-size:12px;line-height:1.55;color:#627b90}
.le97-col-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 9px;border-bottom:1px solid #e3eaf0}
.le97-col-row label{font-size:12px;flex:1}.le97-col-row button{min-width:29px;min-height:28px;padding:2px 5px}
.le97-col-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-top:12px}
.le97-col-actions select{min-width:150px;padding:7px;border:1px solid #b6c9d9;border-radius:4px}

/* V5.51.50 scrollable full-width receipt ledger with independent adjustable column widths */
#app .le82-scroller{width:100%;max-width:100%;overflow:auto!important;overscroll-behavior-x:contain;scrollbar-gutter:stable;max-height:calc(100vh - 300px);min-height:180px}
#app .le82-cash-table{width:max-content!important;min-width:100%!important;table-layout:fixed!important}
#app .le82-cash-table th[data-col]{position:relative;box-sizing:border-box;max-width:none!important}
#app .le82-cash-table td[data-col]{box-sizing:border-box;max-width:none!important;overflow:hidden;text-overflow:ellipsis}
#app .le82-cash-table th .le55149-resize{position:absolute;right:0;top:0;bottom:0;width:9px;cursor:col-resize;border-right:2px solid #7eacc4;touch-action:none}
#app .le82-cash-table th .le55149-resize:hover{background:#6fbbc966}
#app .le82-cash-table .le55149-adjust{height:26px!important;min-width:55px;width:100%;box-sizing:border-box}
#app .le55149-calculated{display:block;font-size:10px;color:#375a75;white-space:nowrap}

/* V5.52.35 — fixed header, compact [선택] column, and no duplicated monetary hints. */
#app .le82-scroller{position:relative;overflow:auto!important;max-height:calc(100vh - 300px)}
#app .le82-cash-table{border-collapse:separate;border-spacing:0}
#app .le82-cash-table thead th[data-col]{position:sticky;top:0;z-index:3;background:#e7f1fa;box-shadow:0 2px 0 #acc5db}
#app .le82-cash-table [data-col="check"]{width:52px!important;min-width:52px!important;max-width:52px!important;text-align:center;padding-left:3px;padding-right:3px}
#app .le82-cash-table th[data-col="check"] .le55149-resize{display:none}
#app .le82-cash-table td[data-col="delete"],#app .le82-cash-table th[data-col="delete"]{min-width:72px}
#app .le82-cash-table td[data-col="contract_total"],#app .le82-cash-table td[data-col="received_before"],#app .le82-cash-table td[data-col="balance"]{white-space:nowrap!important}
#app .le82-cash-table .le5535-money-value{min-width:0;width:100%;box-sizing:border-box;text-align:right;font-size:12px;height:33px}
#app .le82-cash-table .le5535-money-value[disabled]{background:#f3f6f9;color:#566978}
#app .le82-cash-table .le55149-calculated{display:none!important}
#app .le97-search .le5535-confirm-filter{min-width:118px;white-space:nowrap;border-color:#6687a2}
#app .le97-search .le5535-confirm-filter[aria-pressed="true"]{background:#245c81;color:white}

/* V5.53.74: payment method and card/cash details */
#app .le82-cash-table td[data-col="method"] select{min-width:105px;font-weight:700;background:#eaf3fc;color:#134877;border:1px solid #97b8d9;border-radius:5px}
#app .le82-cash-table td[data-col="payment_details"] button{font-size:11px;font-weight:700;white-space:nowrap;background:#e5f0f7;color:#1b557e;border:1px solid #94bbd0}
#app .le82-cash-table .le74-methodbank{font-size:11px;color:#526574}
#app .le74-card-view{background:#1b5ca4!important;color:#fff!important;font-weight:800!important}
.le74-modal-backdrop{position:fixed;inset:0;z-index:2147483000;background:rgba(13,29,49,.57);display:flex;align-items:center;justify-content:center;padding:16px}
.le74-modal{box-sizing:border-box;width:min(640px,96vw);max-height:92vh;overflow:auto;background:white;color:#173b56;border-radius:10px;padding:18px;box-shadow:0 16px 45px #0005;font:13px 'Malgun Gothic',sans-serif}
.le74-modal.le74-wide{width:min(1100px,97vw)}.le74-modal header{display:flex;align-items:center;justify-content:space-between;gap:12px}.le74-modal h3{margin:0;font-size:18px;color:#183f70}
.le74-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.le74-fields label{display:flex;flex-direction:column;gap:4px;font-weight:700}.le74-fields input,.le74-fields select{box-sizing:border-box;width:100%;padding:8px;border:1px solid #aabccc;border-radius:5px;color:#193d58;background:white;font-size:13px}
.le74-fields small,.le74-fields p,.le74-summary{grid-column:1/-1}.le74-summary,.le74-warning{background:#f1f7fc;border:1px solid #c8d9e8;padding:9px;border-radius:6px}.le74-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.le74-table-wrap{overflow:auto;max-height:66vh}.le74-table-wrap table{border-collapse:collapse;width:100%;min-width:900px}.le74-table-wrap th,.le74-table-wrap td{padding:8px;border:1px solid #d7e0e8;text-align:left}.le74-table-wrap th{background:#e8f0f8;position:sticky;top:0}
@media(max-width:550px){.le74-fields{grid-template-columns:1fr}}

/* V5.56.56: card settlement account/amount quick edit (pre-bank reconciliation only) */
.le55656-cardquick{display:flex;flex-direction:column;gap:4px;min-width:135px;}
.le55656-cardquick select,.le55656-cardquick input{box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:5px;font-size:12px;line-height:1.2;}
.le55656-cardquick small{color:#6b7280;white-space:normal;font-size:10px;line-height:1.25;}

/* V5.57.02 manual mouse drag for collection list row height */
#le82-table-body tr[data-le82-id] {height:var(--le5702-row-height,42px)}
#le82-table-body tr[data-le82-id] > td:first-child {position:relative}
#le82-table-body .le5702-row-height-grip {position:absolute;bottom:-2px;left:3px;right:3px;height:8px;cursor:ns-resize;z-index:5;border-bottom:2px solid transparent;touch-action:none}
#le82-table-body .le5702-row-height-grip:hover {border-bottom-color:#1681b7;background:#1681b730}
.le5702-hide-linked {display:inline-flex;align-items:center;gap:4px;white-space:nowrap}

/* V5.57.03: the work-name data cell is the typography baseline for every list value. */
#app .le82-cash-table tbody td,
#app .le82-cash-table tbody td input:not([type="checkbox"]),
#app .le82-cash-table tbody td select,
#app .le82-cash-table tbody td button,
#app .le82-cash-table tbody td strong,
#app .le82-cash-table tbody td small,
#app .le82-cash-table tbody td span,
#app .le82-cash-table tbody td .le82-status,
#app .le82-cash-table tbody td .le55149-calculated {font-size:12px!important;line-height:1.3}
/* Fixed-height visible content prevents taller interactive cells from stretching just one row. */
#app .le82-cash-table #le82-table-body tr[data-le82-id],
#app .le82-cash-table #le82-table-body tr[data-le82-id] > td {
  height:var(--le5702-row-height,58px)!important;
  max-height:var(--le5702-row-height,58px);
}
#app .le82-cash-table #le82-table-body tr[data-le82-id] > td {padding:3px 6px!important;vertical-align:middle!important;}
#app .le82-cash-table .le5703-receipt-cell-content {
  display:block;width:100%;max-height:calc(var(--le5702-row-height,58px) - 8px);
  overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;
}
#app .le82-cash-table #le82-table-body tr[data-le82-id] .le5702-row-height-grip {
  bottom:0;height:9px;border-bottom:2px solid #8fb6cd88;background:#d8e8f344;
}
#app .le82-cash-table #le82-table-body tr[data-le82-id] .le5702-row-height-grip:hover {
  border-bottom-color:#1681b7;background:#65aacc66;
}
#app .le97-search .le5703-row-height-hint {color:#41637f;font-size:11px;white-space:nowrap}
