/* NiceGroup credit desk · iOS-inspired but familiar spreadsheet · scoped */
.credit-wrap{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#17212e;letter-spacing:normal;font-size:14px;max-width:1600px;margin:0 auto;padding-bottom:38px}.credit-wrap *,.credit-detail *{box-sizing:border-box}.credit-hero{display:flex;justify-content:space-between;gap:22px;align-items:center;margin:0 0 22px}.credit-breadcrumb{color:#8a94a3;font-size:11px;font-weight:750;letter-spacing:1.6px}.credit-breadcrumb span{padding:0 8px;color:#c1c7d0}.credit-hero h2{font-size:clamp(25px,3vw,35px);font-weight:760;letter-spacing:-1.1px;margin:8px 0 5px;line-height:1.15}.credit-hero p{font-size:13px;color:#8a94a3;margin:0;line-height:1.55}.credit-hero-actions,.credit-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.credit-btn{appearance:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:13px;padding:12px 17px;border:1px solid #d8e1eb;background:white;color:#243246;font-size:13px;line-height:1.3;font-weight:700;min-height:43px;box-shadow:none;transition:background .15s,border-color .15s,transform .15s}.credit-btn:hover{background:#f2f7ff;border-color:#9eb8db}.credit-btn:active{transform:scale(.98)}.credit-btn.primary{color:white;background:#1479ed;border-color:#1479ed}.credit-btn.primary:hover{background:#0566d3}.credit-btn.danger{background:#fff0f0;border-color:#ffd3d3;color:#c33439}.credit-btn.danger:hover{background:#ffe3e3}.credit-btn.secondary{background:#fff}.credit-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:19px}.credit-metric{background:#fff;border:1px solid #e6ebf2;border-radius:18px;padding:19px 19px 17px;box-shadow:0 2px 9px rgba(30,65,110,.035);min-width:0;display:flex;flex-direction:column;gap:6px}.credit-metric>span{font-size:12px;color:#788599;font-weight:600}.credit-metric>b{font-size:clamp(21px,2.1vw,30px);font-weight:780;white-space:nowrap;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.credit-metric>small{color:#96a0ae;font-size:11px;line-height:1.5}.credit-metric:nth-child(2)>b{color:#e45b55}.credit-metric:nth-child(3)>b{color:#1479ed}.credit-panel{background:#fff;border:1px solid #e5ebf2;border-radius:20px;box-shadow:0 4px 20px rgba(36,74,112,.045);overflow:hidden}.credit-tools{padding:17px 19px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.credit-search{display:flex;align-items:center;gap:7px;border:1px solid #e3e9f0;background:#f4f6f9;border-radius:13px;padding:0 12px;min-width:240px;flex:1 1 280px;max-width:410px;height:43px}.credit-search:focus-within{border-color:#88b7ff;box-shadow:0 0 0 3px #d8eaff}.credit-search span{font-size:24px;color:#8699af}.credit-search input{appearance:none!important;border:0!important;background:transparent!important;outline:none!important;box-shadow:none!important;width:100%;min-width:0!important;height:40px!important;min-height:40px!important;font-size:13px!important;padding:0!important;color:#203047}.credit-filters{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.credit-filters button{font-size:12px;padding:10px 11px;background:transparent;border:0;border-radius:11px;color:#748194;font-weight:650;cursor:pointer}.credit-filters button.on{color:#146cd4;background:#eaf3ff}.credit-table-scroll{overflow:auto;max-width:100%}.credit-table{width:100%;border-collapse:separate;border-spacing:0;min-width:850px;text-align:left;font-size:13px}.credit-table th{font-size:11px;color:#8792a1;background:#fafbfd;letter-spacing:.2px;font-weight:700;white-space:nowrap;position:sticky;top:0;z-index:1}.credit-table th,.credit-table td{padding:15px 17px;border-bottom:1px solid #f0f2f6;vertical-align:middle}.credit-table tr:last-child td{border-bottom:0}.credit-table tbody tr:hover{background:#f8fbff}.credit-table tbody tr[hidden]{display:none!important}.credit-table td{color:#27364a}.credit-table td strong{display:block;font-weight:720;font-size:13px}.credit-table td small{display:block;font-size:11px;color:#9ca6b3;margin-top:6px;line-height:1.45}.credit-name{background:none;border:0;padding:0;font-size:13px;color:#1574df;font-weight:770;cursor:pointer;text-align:left}.credit-name:hover{text-decoration:underline}.credit-cell-money{font-variant-numeric:tabular-nums;white-space:nowrap}.credit-cell-money>strong{font-size:15px!important}.credit-error{color:#d64b48!important}.credit-pill{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:9px;background:#eff6ff;color:#266bb5;font-size:11px;font-weight:750;white-space:nowrap}.credit-pill.late{background:#ffebea;color:#d34242}.credit-pill.draft{background:#fff3d9;color:#aa7918}.credit-pill.paid{background:#e4f8ee;color:#1b8b59}.credit-pill.returned,.credit-pill.archived{background:#edf0f3;color:#687586}.credit-table-open{border:0;background:#eff6ff;color:#1674df;font-size:18px;width:34px;height:34px;border-radius:10px;cursor:pointer}.credit-table-footer{padding:14px 18px;background:#fafbfd;font-size:11px;color:#8995a4;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.credit-table-footer span{margin-left:auto}.credit-empty{text-align:center!important;padding:42px 20px!important;color:#8f9ba8!important}.credit-tip{color:#7d8999;background:#f2f6fb;border-radius:12px;padding:12px 15px;line-height:1.65;font-size:12px;margin-top:15px}
/* Wizard and client cards inside existing modal */
.modal .credit-form{gap:15px}.modal .credit-form label{font-size:13px;color:#516075;font-weight:650;line-height:1.5;gap:7px}.modal .credit-form input,.modal .credit-form select,.modal .credit-form textarea{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px;min-height:45px;border-radius:11px;border:1px solid #d9e2ed;background:#fafcff;color:#213449;padding:11px 12px}.modal .credit-form textarea{min-height:85px}.credit-step{display:flex;align-items:center;gap:10px;font-size:15px;color:#243a56;margin-top:4px;border-top:1px solid #edf1f5;padding-top:15px}.credit-step:first-of-type{border:0;padding-top:2px}.credit-step i{font-style:normal;background:#e9f3ff;color:#1778e9;border-radius:10px;display:grid;place-items:center;width:30px;height:30px;font-weight:750;font-size:12px}.credit-inline-select{display:flex;align-items:end;gap:10px}.credit-inline-select label{flex:1;min-width:0}.credit-inline-select button{margin-bottom:0;white-space:nowrap}.credit-help{margin:0 0 3px!important;line-height:1.6!important;color:#7c899c!important;font-size:12px!important}.credit-warn{background:#fff4e6;color:#8b5f17;font-size:12px;line-height:1.65;border-radius:12px;padding:11px 14px;border:1px solid #ffe5be}.credit-calc-preview{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:10px 14px;background:#ebf5ff;border-radius:12px;color:#365b80}.credit-calc-preview small{font-size:11px}.credit-calc-preview b{font-size:22px;color:#1478e8}.credit-confirm{display:flex!important;align-items:center;flex-direction:row!important;gap:10px!important}.credit-confirm input{width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 auto}.credit-due-label{background:#eaf4ff;border-radius:13px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#647d98}.credit-due-label b{color:#166fd6;font-size:19px;font-variant-numeric:tabular-nums}
/* Contract view */
.credit-detail{font-size:14px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#233247}.credit-person-head{display:flex;align-items:center;gap:13px;margin:2px 0 18px}.credit-person-head h3{font-size:19px;margin:0 0 4px;letter-spacing:-.3px}.credit-person-head p{font-size:12px;color:#92a0b0;margin:0}.credit-person-head .credit-pill{margin-left:auto}.credit-person-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:15px;background:#e7f2ff;display:grid;place-items:center;color:#1674d8;font-size:20px;font-weight:760}.credit-detail-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.credit-detail-numbers>div{padding:13px 12px;border-radius:13px;background:#f4f7fb;display:flex;flex-direction:column;gap:5px;min-width:0}.credit-detail-numbers small{font-size:11px;color:#8290a2}.credit-detail-numbers b{font-size:17px;letter-spacing:-.3px;font-variant-numeric:tabular-nums;white-space:nowrap}.credit-detail-numbers>div:first-child{background:#e8f3ff}.credit-detail-numbers>div:first-child b{color:#1779e5}.credit-progress{padding:18px 0 13px}.credit-progress>div{display:flex;justify-content:space-between;gap:7px;align-items:center;font-size:12px;margin-bottom:9px}.credit-progress small{color:#7b899e}.credit-progress progress{width:100%;height:7px;display:block;appearance:none;accent-color:#167bf0;border-radius:10px;overflow:hidden}.credit-progress progress::-webkit-progress-bar{background:#e8edf4}.credit-progress progress::-webkit-progress-value{background:#2687ef;border-radius:10px}.credit-card-actions{margin:10px 0 16px}.credit-pills-line{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:15px;font-size:11px;color:#69788a}.credit-pills-line span{border-radius:9px;background:#f5f7f9;padding:8px 9px}.credit-pills-line b{color:#2a384b}.credit-detail-tabs{display:flex;gap:8px;border-bottom:1px solid #eaf0f6;margin-bottom:10px;overflow:auto}.credit-detail-tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:13px 15px 12px;color:#7e8b9e;cursor:pointer;font-weight:650;white-space:nowrap;font-size:13px}.credit-detail-tabs button.on{color:#1478df;border-color:#1478df}.credit-tab-content[hidden]{display:none!important}.credit-detail .credit-table{min-width:650px}.credit-detail .credit-table td,.credit-detail .credit-table th{padding:11px 12px;font-size:12px}.credit-detail .credit-table th{font-size:10px}.credit-foot-note{font-size:11px!important;color:#96a1b0!important;line-height:1.6!important;margin:16px 0 0!important}.credit-history{display:flex;flex-direction:column;gap:0}.credit-history-row{padding:14px 6px;display:flex;gap:12px;align-items:center;border-bottom:1px solid #f0f3f7}.credit-history-symbol{display:grid;place-items:center;background:#e9f8ef;color:#1e9b67;width:36px;height:36px;border-radius:11px;font-size:19px}.credit-history-row>div{flex:1}.credit-history-row b{display:block;font-size:13px}.credit-history-row small{display:block;font-size:11px;margin-top:5px;color:#9ba7b6}.credit-history-row>strong{font-size:14px;color:#17894f;font-variant-numeric:tabular-nums}.credit-person-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px}.credit-person-grid>div{padding:12px;border-radius:11px;background:#f6f8fb}.credit-person-grid small{display:block;color:#8e9bac;font-size:11px}.credit-person-grid b{display:block;margin-top:7px;font-size:13px;overflow-wrap:anywhere}
@media(max-width:1100px){.credit-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-hero{align-items:flex-start;flex-wrap:wrap}.credit-table-footer span{margin-left:0}}
@media(max-width:700px){.credit-wrap{padding:0 0 22px}.credit-hero{gap:15px}.credit-hero-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.credit-hero-actions .credit-btn{padding:12px 7px;min-width:0;font-size:12px}.credit-hero h2{font-size:27px}.credit-metrics{gap:8px}.credit-metric{padding:13px;border-radius:15px}.credit-metric>b{font-size:21px}.credit-metric small{font-size:10px}.credit-metric span{font-size:11px}.credit-tools{padding:12px;gap:11px}.credit-search{max-width:none;flex:1 1 100%;height:45px}.credit-filters{flex-wrap:nowrap;max-width:100%;overflow:auto;padding-bottom:4px}.credit-filters button{white-space:nowrap}.credit-panel{border-radius:16px}.credit-table th,.credit-table td{padding:13px 11px}.credit-detail-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-detail-numbers b{font-size:16px}.credit-person-grid{grid-template-columns:1fr}.credit-person-head h3{font-size:16px}.credit-person-head .credit-pill{font-size:10px}.credit-card-actions{display:grid;grid-template-columns:1fr 1fr}.credit-card-actions .credit-btn{min-height:46px;padding:10px 6px;font-size:11px}.credit-inline-select{flex-direction:column;align-items:stretch}.credit-inline-select label{width:100%}.credit-form .form-grid{grid-template-columns:1fr 1fr}.credit-form .form-grid>label{min-width:0}}
.credit-client-directory{display:grid;gap:13px}.credit-client-directory .credit-search{max-width:none;margin:3px 0}.credit-clients-list{max-height:65vh;overflow:auto}.credit-client-row{display:flex;align-items:center;gap:11px;padding:12px 4px;border-bottom:1px solid #edf1f6}.credit-client-row[hidden]{display:none!important}.credit-client-row>.credit-person-avatar{width:39px;height:39px;flex-basis:39px;font-size:15px}.credit-client-row>div{flex:1;min-width:0}.credit-client-row>div b{display:block;font-size:13px;overflow-wrap:anywhere}.credit-client-row>div small{display:block;color:#8995a5;font-size:11px;margin-top:4px}.credit-client-row .credit-btn{font-size:11px;padding:9px;min-height:35px}.credit-advanced{border:1px solid #e5eaf2;background:#f8fafc;border-radius:12px;padding:10px 12px}.credit-advanced summary{cursor:pointer;font-size:13px;color:#315273;font-weight:700}.credit-advanced label{padding:13px 0 5px}.credit-advanced small{font-size:11px;color:#8190a2;line-height:1.5}.credit-seller-link{margin:10px 0}.credit-seller-link a{font-size:12px;color:#1479ed;font-weight:650}.credit-hero-actions{flex-wrap:wrap}
@media(max-width:700px){.credit-hero-actions{grid-template-columns:1fr 1fr}.credit-hero-actions .credit-btn:first-child{grid-column:1/-1}.credit-client-row .credit-btn{font-size:10px}}
.credit-client-products{margin:19px 0 15px}.credit-client-products h4{font-size:15px;font-weight:700;margin-bottom:10px}.credit-product-link{background:white;border:1px solid #e8eef4;border-radius:12px;width:100%;display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:8px;cursor:pointer;text-align:left;color:#24374c}.credit-product-link:hover{background:#f5faff}.credit-product-link>span:first-child{flex:1;min-width:0}.credit-product-link b{display:block;font-size:13px}.credit-product-link small{display:block;font-size:11px;color:#98a4b2;margin-top:5px}.credit-product-link strong{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.credit-product-link i{font-size:18px;color:#1782ee;font-style:normal}.credit-person-head h3 .credit-name{font-size:inherit;line-height:inherit}
@media(max-width:700px){.credit-product-link{gap:7px;flex-wrap:wrap}.credit-product-link>span:first-child{flex-basis:60%}.credit-product-link strong{font-size:12px}}

/* v1.13: Excel-familiar grid with edit-in-place and 12 month columns */
.credit-grid-panel{overflow:hidden}
.credit-grid-year-label{font-size:12px;font-weight:700;color:#65768a;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.credit-grid-year-label select{border:1px solid #cfdae8;padding:9px 30px 9px 12px;border-radius:10px;background:#fff;font-weight:700;color:#1d426c;font-size:13px}
.credit-grid-help{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:11px;color:#687b8f;padding:4px 18px 14px}
.credit-grid-help>span{display:inline-flex;align-items:center;gap:6px}
.credit-grid-help [data-credit-grid-save]{margin-left:auto;font-weight:700;color:#1878e4}
.credit-grid-dot{width:10px;height:10px;border-radius:3px;display:inline-block;border:1px solid #c9d3df}
.credit-grid-dot.editable{background:#fff;border-color:#78b0ff}
.credit-grid-dot.derived{background:#edf2f7}
.credit-grid-dot.monthly{background:#e8f7ef;border-color:#b7e4ce}
.credit-grid-scroll{max-height:min(67vh,760px);min-height:135px;overflow:auto;overscroll-behavior:contain}
.credit-grid-table{min-width:3100px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;font-variant-numeric:tabular-nums}
.credit-grid-table th,.credit-grid-table td{padding:6px 8px!important;border-bottom:1px solid #e6ebf1;border-right:1px solid #edf0f4;vertical-align:middle!important;height:50px;box-sizing:border-box}
.credit-grid-table th{position:sticky;top:0;background:#f3f6fa;z-index:5;color:#53677f;text-transform:none;font-size:11px;line-height:1.4;box-shadow:0 1px 0 #dce4ee}
.credit-grid-table th small{display:block;font-size:9px;font-weight:500;opacity:.65}
.credit-grid-table tr:nth-child(2n) td{background:#fbfcfe}
.credit-grid-table tr:hover td{background:#f1f7ff}
.credit-grid-table td.credit-grid-calculated{background:#f5f7fa!important;color:#384e65}
.credit-grid-table td.credit-grid-calculated.remaining{background:#edf5ff!important}
.credit-grid-table td.credit-grid-calculated.late{background:#fff1ee!important;color:#b94d44}
.credit-grid-table td.credit-grid-calculated small{display:block;font-size:10px;color:#8496a9;margin-top:4px}
.credit-grid-table td.credit-grid-calculated b{font-size:12px;white-space:nowrap}
.credit-grid-table .credit-grid-sticky{position:sticky;z-index:3;background:#fff!important}
.credit-grid-table thead .credit-grid-sticky{z-index:8;background:#e9f0f8!important}
.credit-grid-table .credit-grid-sticky.index{left:0;width:108px;min-width:108px;max-width:108px}
.credit-grid-table .credit-grid-sticky.name{left:108px;width:215px;min-width:215px;max-width:215px;border-right:2px solid #c2d8f4;box-shadow:3px 0 10px -8px #203a5c}
.credit-grid-table tr:nth-child(2n) .credit-grid-sticky{background:#fafcfe!important}
.credit-grid-table tr:hover .credit-grid-sticky{background:#f1f7ff!important}
.credit-grid-table th:nth-child(3),.credit-grid-table td:nth-child(3){width:135px}
.credit-grid-table th:nth-child(4),.credit-grid-table td:nth-child(4){width:135px}
.credit-grid-table th:nth-child(5),.credit-grid-table td:nth-child(5){width:160px}
.credit-grid-table th:nth-child(6),.credit-grid-table td:nth-child(6){width:122px}
.credit-grid-table th:nth-child(7),.credit-grid-table td:nth-child(7),
.credit-grid-table th:nth-child(8),.credit-grid-table td:nth-child(8),
.credit-grid-table th:nth-child(9),.credit-grid-table td:nth-child(9){width:115px}
.credit-grid-table th:nth-child(10),.credit-grid-table td:nth-child(10){width:128px}
.credit-grid-table th:nth-child(11),.credit-grid-table td:nth-child(11){width:70px}
.credit-grid-table th:nth-child(12),.credit-grid-table td:nth-child(12){width:120px}
.credit-grid-table th:nth-child(n+13):nth-child(-n+24),.credit-grid-table td:nth-child(n+13):nth-child(-n+24){width:93px}
.credit-grid-table th:nth-child(n+25),.credit-grid-table td:nth-child(n+25){width:130px}
.credit-grid-input{width:100%;min-width:0;height:36px;font-size:12px;font-weight:600;font-family:inherit;border:1px solid transparent;background:transparent;color:#233c56;outline:0;padding:6px 7px;border-radius:7px;transition:border .12s,background .12s}
.credit-grid-input:hover{border-color:#cadef7;background:#fff}
.credit-grid-input:focus{border-color:#4d9aef;box-shadow:0 0 0 2px #d2e9ff;background:#fff}
.credit-grid-input:disabled{opacity:.55}
.credit-grid-input.money{text-align:right}
.credit-grid-readonly{font-size:12px;color:#52677e;overflow-wrap:anywhere}
.credit-grid-person{display:flex;align-items:center;gap:3px}
.credit-grid-person .credit-grid-input{flex:1}
.credit-grid-id{font-size:10px;color:#7e8b9e;font-weight:700;white-space:nowrap}
.credit-grid-open{border:0;background:#e7f2ff;color:#2577d1;width:30px;height:30px;border-radius:8px;cursor:pointer;flex:0 0 auto;font-size:16px;line-height:1}
.credit-grid-open:hover{background:#cfe4ff}
.credit-grid-month{padding:3px 5px!important;font-size:11px;text-align:right}
.credit-grid-month b{display:block;font-size:12px;color:#263b50;line-height:1.4}
.credit-grid-month small{font-size:10px;color:#8291a1;white-space:nowrap}
.credit-grid-month.na{color:#bcc8d5;text-align:center}
.credit-grid-month.settled{background:#e7f8ed!important}
.credit-grid-month.overdue{background:#fff0ef!important}
.credit-grid-month.partial{background:#fff8e9!important}
.credit-grid-month.upcoming{background:#f8faff!important}
.credit-grid-table tr:hover .credit-grid-month.settled{background:#d9f2e3!important}
.credit-grid-table tr:hover .credit-grid-month.overdue{background:#ffe6e4!important}
.credit-grid-pay{display:block;text-align:right;width:100%;height:42px;padding:5px 2px;border:1px solid transparent;border-radius:7px;cursor:pointer;color:inherit;background:transparent}
.credit-grid-pay:hover{background:#fff!important;border-color:#65aaff!important}
.credit-grid-plus{font-size:13px;color:#1a79d8;font-weight:900}
.credit-grid-dirty td.credit-grid-calculated[data-credit-grid-monthly],
.credit-grid-dirty td.credit-grid-calculated[data-credit-grid-principal]{background:#fff5de!important}
@media(max-width:700px){
 .credit-grid-scroll{max-height:68vh}
 .credit-grid-table .credit-grid-sticky.index{width:67px;min-width:67px;max-width:67px}
 .credit-grid-table .credit-grid-sticky.name{left:67px;width:155px;min-width:155px;max-width:155px}
 .credit-grid-person{gap:1px}.credit-grid-person .credit-grid-input{font-size:11px;padding:4px}
 .credit-grid-table th,.credit-grid-table td{height:49px}
 .credit-grid-help{gap:8px;font-size:10px}
 .credit-grid-year-label{width:100%;justify-content:space-between}
}
.credit-grid-navigate{display:flex;align-items:center;justify-content:flex-end;gap:9px;color:#7c90a5;font-size:11px;padding:3px 18px 10px}
.credit-grid-navigate span{margin-right:4px}
.credit-grid-navigate button{width:35px;height:29px;background:#f4f8fd;border:1px solid #dce7f2;color:#1a6fc9;border-radius:8px;cursor:pointer;font-size:17px}
.credit-grid-navigate button:hover{background:#e4f2ff}
.credit-grid-more{border:1px solid #d6e4f4;background:#edf6ff;color:#1872d6;font-size:11px;font-weight:750;border-radius:8px;padding:7px 11px;cursor:pointer}
.credit-grid-more[hidden]{display:none!important}
@media(max-width:700px){.credit-grid-navigate{padding:3px 12px 9px;justify-content:space-between;font-size:10px}}

/* Excel import review, intentionally restrained UI */
.credit-import-info{display:grid;gap:15px;line-height:1.5} .credit-import-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.credit-import-stats span{padding:12px;border-radius:12px;background:#f3f5f8}.credit-import-warning{padding:13px;border:1px solid #ebd9ac;border-radius:12px;background:#fffaf0;color:#74550c}.credit-import-errors{max-height:200px;overflow:auto;font-size:13px;line-height:1.65}.credit-import-confirm{display:flex;align-items:center;gap:10px}.credit-import-source{font-size:10px;color:#985f00;white-space:nowrap}

/* Live 1C selectors for the credit form */
.credit-form .credit-one-c-field{display:block;position:relative;z-index:4}
.credit-form .credit-one-c-field input{width:100%;box-sizing:border-box;margin-top:5px}
.credit-form .credit-one-c-field .search-results{max-height:240px;overflow-y:auto;overscroll-behavior:contain;z-index:20}
.credit-form .selection-note.show{display:block;margin:5px 0 14px;padding:9px 12px;border-radius:10px;color:#186a44;background:#e6f8ef;font-weight:600;font-size:12px}
.credit-form .credit-one-c-field:focus-within{z-index:30}

/* v1.16: view-only table and contract-centric editing */
.credit-grid-readonly{display:inline-block;max-width:235px;min-width:65px;white-space:normal;overflow-wrap:anywhere;font-weight:590;font-size:12px;color:#253b53}
.credit-grid-table tbody tr{cursor:default}
.credit-sms-switch{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px!important;background:#f1f7ff;border:1px solid #d7e7fa;padding:14px;border-radius:14px;cursor:pointer;line-height:1.4}
.credit-sms-switch input{flex:0 0 auto;width:21px!important;height:21px!important;min-height:21px!important;margin-top:1px;accent-color:#1778e8}
.credit-sms-switch span{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.credit-sms-switch b{font-size:14px}.credit-sms-switch small{color:#667a91;font-size:11px;line-height:1.6}
.credit-contract-summary{display:grid;gap:8px;padding:13px 15px;background:#f4f7fb;border-radius:15px}
.credit-contract-summary span{color:#75869c;font-size:12px}.credit-contract-summary .credit-btn{justify-self:start}
.credit-sms-status{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0 14px;flex-wrap:wrap}
.credit-sms-status b{font-size:13px}
.modal .credit-form input[readonly]{background:#f0f3f7!important;color:#5c6c7e;cursor:not-allowed}
@media(max-width:550px){.credit-sms-status .credit-btn{width:100%}.credit-contract-summary .credit-btn{width:100%}}

/* v1.17 · Three-panel credit desk. Target 1920×1080, with independent collapsible side panes. */
.ng-nav-switch{border:1px solid #3d403b;background:#262822;color:#e5dcc9;border-radius:11px;width:38px;height:34px;align-self:flex-end;cursor:pointer;margin:0 4px 10px;font-size:20px}
.app-shell.ng-nav-compact .sidebar{width:76px;padding:18px 9px}
.app-shell.ng-nav-compact .sidebar .brand{padding:0 0 18px;justify-content:center}
.app-shell.ng-nav-compact .sidebar .brand>span:last-child,.app-shell.ng-nav-compact .sidebar nav>p,.app-shell.ng-nav-compact .sidebar nav button>span,.app-shell.ng-nav-compact .sidebar nav button>b,.app-shell.ng-nav-compact .sidebar-foot>p{display:none}
.app-shell.ng-nav-compact .sidebar nav button{justify-content:center;padding:0}
.app-shell.ng-nav-compact .sidebar nav button i{font-size:20px}
.app-shell.ng-nav-compact .sidebar-foot{justify-content:center;flex-wrap:wrap}
.app-shell.ng-nav-compact .workspace{margin-left:76px;width:calc(100% - 76px)}
.credit-hero.ng-credit-condensed,.credit-metrics.ng-credit-condensed,.credit-tools.ng-credit-condensed{display:none!important}
.ng-credit-desk{display:grid;grid-template-columns:230px minmax(0,1fr) 286px;gap:9px;align-items:start;min-width:0}
.ng-credit-desk.ng-hide-left{grid-template-columns:0 minmax(0,1fr) 286px;column-gap:6px}
.ng-credit-desk.ng-hide-right{grid-template-columns:230px minmax(0,1fr) 0;column-gap:6px}
.ng-credit-desk.ng-hide-left.ng-hide-right{grid-template-columns:minmax(0,1fr)}
.ng-credit-desk.ng-hide-left>.ng-desk-left,.ng-credit-desk.ng-hide-right>.ng-desk-right{display:none}
.ng-desk-center{min-width:0}
.ng-desk-aside{display:flex;flex-direction:column;min-width:0;height:min(770px,calc(100vh - 200px));min-height:380px;background:#fff;border:1px solid #e0e8ef;border-radius:15px;overflow:hidden;box-shadow:0 4px 16px rgba(35,71,113,.04)}
.ng-desk-heading{display:flex;justify-content:space-between;align-items:center;min-height:52px;background:#f4f8fd;padding:10px 12px;border-bottom:1px solid #e1e9f3;gap:6px}
.ng-desk-heading b{font-size:12px;color:#284360;line-height:1.3}
.ng-desk-heading button,.ng-desk-layoutbar button,.ng-desk-monthbar button{cursor:pointer;border:1px solid #d5e1ec;background:#fff;color:#286aa8;border-radius:9px;font-size:15px;min-width:29px;min-height:29px}
.ng-desk-layoutbar{display:flex;justify-content:space-between;gap:7px;padding:0 0 7px}
.ng-desk-layoutbar button{font-size:11px;font-weight:700;padding:6px 10px;white-space:nowrap}
.ng-desk-list-scroll{overflow:auto;flex:1}
.ng-desk-group{border-bottom:1px solid #eaf0f6}
.ng-desk-group>header{display:flex;justify-content:space-between;align-items:center;padding:12px 12px 8px;background:#fcfdff}
.ng-desk-group>header b{font-size:12px;color:#385a7c}
.ng-desk-group>header small{border-radius:11px;background:#e7f1fe;color:#32699a;padding:3px 7px}
.ng-desk-list{max-height:164px;overflow:auto}
.ng-desk-list>button{width:100%;display:flex;justify-content:space-between;align-items:start;gap:6px;border:0;border-bottom:1px solid #edf2f7;background:#fff;padding:9px 10px;text-align:left;cursor:pointer}
.ng-desk-list>button:hover,.ng-desk-event:hover{background:#f0f7ff}
.ng-desk-list>button span{font-size:11px;font-weight:700;min-width:0;overflow-wrap:anywhere}
.ng-desk-list>button small{display:block;font-size:10px;color:#8296ab;font-weight:450;margin-top:4px}
.ng-desk-list>button strong{font-size:11px;color:#235f97;white-space:nowrap}
.ng-desk-group>footer{display:flex;justify-content:space-between;padding:10px 12px;background:#f5f9ff;color:#476783;font-size:11px}
.ng-desk-empty{padding:12px;color:#8896a8;font-size:11px;line-height:1.6;margin:0}
.ng-desk-calendar{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1}
.ng-desk-monthbar{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:12px 10px}
.ng-desk-monthbar strong{font-size:12px;color:#294b6d;text-transform:capitalize;text-align:center}
.ng-desk-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:0 10px 12px}
.ng-desk-calendar-days button{position:relative;border:1px solid transparent;border-radius:9px;background:#f2f6fa;cursor:pointer;height:31px;font-size:11px;color:#40536b;font-weight:650}
.ng-desk-calendar-days button span{position:absolute;top:-4px;right:-3px;font-size:8px;background:#286db4;color:#fff;border-radius:9px;min-width:13px;padding:1px 3px}
.ng-desk-calendar-days button.selected{background:#3078c4;color:#fff}
.ng-desk-scope{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:9px;border-top:1px solid #e1eaf2;border-bottom:1px solid #e1eaf2;background:#f9fbfd;font-size:10px;color:#506e87}
.ng-desk-scope span{flex:1 1 100%;font-weight:700}
.ng-desk-scope button{border:1px solid #d9e5f1;border-radius:7px;background:#fff;color:#2a6da9;font-size:10px;cursor:pointer;padding:5px}
.ng-desk-events{flex:1;min-height:0;overflow:auto}
.ng-desk-event{position:relative;width:100%;text-align:left;display:grid;gap:4px;border:0;border-bottom:1px solid #e6edf4;background:#fff;padding:10px;cursor:pointer;font-size:11px;color:#293f55}
.ng-desk-event>small{color:#738ba4;font-size:9px}.ng-desk-event>b{font-size:11px}.ng-desk-event span{color:#8596aa;font-size:10px}
.ng-desk-event strong{font-size:12px}.ng-desk-event strong.payment{color:#187752}.ng-desk-event strong.refund{color:#bd5547}.ng-desk-event strong.purchase{color:#356eac}
.ng-desk-totals{display:grid;gap:6px;padding:12px;border-top:1px solid #dce7f2;background:#f6f9fd;font-size:10px}
.ng-desk-totals div{display:flex;justify-content:space-between;gap:5px;color:#59748d}.ng-desk-totals div:last-of-type{color:#214e7a;border-top:1px solid #dce7f2;padding-top:8px;font-size:11px}
.ng-desk-totals small{color:#a2692d;line-height:1.5}
.ng-desk-table-total{display:inline-block;padding:7px 13px;color:#23669b;font-size:11px;background:#e9f4ff;border-radius:9px;margin-left:auto;white-space:normal}
.credit-grid-month-head button{display:grid;justify-items:center;width:100%;height:100%;padding:5px 0;border:0;background:transparent;color:#2f6ca7;cursor:pointer;font-size:11px;font-weight:750}
.credit-grid-month-head button:hover{background:#dfeeff}
.credit-grid-month[data-credit-month-client]{cursor:pointer}
.credit-grid-month[data-credit-month-client]:hover{outline:2px solid #63a4ed;outline-offset:-2px}
.ng-contract-quick{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}
.ng-credit-chat{display:grid;gap:14px}.ng-credit-chat h4{margin:8px 0 0;font-size:16px;color:#2e4b66}
.ng-credit-thread{display:flex;flex-direction:column;gap:8px;max-height:390px;overflow:auto;padding:13px;border-radius:14px;background:#edf1f6}
.ng-credit-bubble{align-self:flex-start;max-width:83%;background:#fff;border:1px solid #dee8f1;border-radius:14px 14px 14px 4px;padding:11px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.ng-credit-bubble.sent{align-self:flex-end;background:#e6f7ea;border-color:#d3e9d8;border-radius:14px 14px 4px 14px}
.ng-credit-bubble p{margin:0 0 5px}.ng-credit-bubble small{display:block;color:#8599a9;font-size:9px}
.ng-credit-composer{display:flex;gap:8px}.ng-credit-composer input{flex:1;min-width:0;border:1px solid #d9e3ec;border-radius:10px;padding:9px 12px;font-size:13px}
.ng-receipt-item{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #e2eaf2;padding:12px;border-radius:12px;background:#fff}
.ng-receipt-item>div:first-child{display:grid;gap:5px}.ng-receipt-item b{font-size:12px}.ng-receipt-item small{color:#7c8fa3;font-size:10px}
.ng-receipt-actions{display:flex;gap:7px;flex-wrap:wrap}.ng-receipt-actions a{text-decoration:none}
.ng-credit-audit{max-height:70vh;overflow:auto;display:grid;gap:9px}.ng-credit-audit section{padding:12px;border:1px solid #e1e9f3;border-radius:10px;font-size:12px}.ng-credit-audit small{display:block;color:#8496a8;margin:4px 0 8px}.ng-credit-audit div{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.5}
@media(min-width:1560px){.credit-wrap{max-width:none}.ng-credit-desk{grid-template-columns:250px minmax(0,1fr) 306px;gap:12px}.ng-credit-desk.ng-hide-left{grid-template-columns:0 minmax(0,1fr) 306px}.ng-credit-desk.ng-hide-right{grid-template-columns:250px minmax(0,1fr) 0}.ng-credit-desk.ng-hide-left.ng-hide-right{grid-template-columns:minmax(0,1fr)}.ng-desk-aside{height:min(805px,calc(100vh - 186px))}}
@media(max-width:1450px){.ng-credit-desk{grid-template-columns:190px minmax(0,1fr) 235px;gap:6px}.ng-credit-desk.ng-hide-left{grid-template-columns:0 minmax(0,1fr) 235px}.ng-credit-desk.ng-hide-right{grid-template-columns:190px minmax(0,1fr) 0}.ng-credit-desk.ng-hide-left.ng-hide-right{grid-template-columns:minmax(0,1fr)}.ng-desk-layoutbar button{font-size:10px;padding:6px}}
@media(max-width:1020px){.ng-credit-desk,.ng-credit-desk.ng-hide-left,.ng-credit-desk.ng-hide-right{grid-template-columns:minmax(0,1fr)}.ng-credit-desk>.ng-desk-aside{height:auto;max-height:400px;min-height:0}.ng-desk-left{order:2}.ng-desk-center{order:1}.ng-desk-right{order:3}.ng-desk-list-scroll{max-height:260px}.ng-desk-events{min-height:120px;max-height:230px}}
@media(max-width:760px){.ng-credit-desk>.ng-desk-aside{max-height:350px}.ng-desk-layoutbar{gap:4px}.ng-desk-layoutbar button{font-size:10px;white-space:normal}.app-shell.ng-nav-compact .sidebar{width:278px;transform:translateX(-105%)}.app-shell.ng-nav-compact .sidebar.open{transform:translateX(0)}.app-shell.ng-nav-compact .workspace{width:100%;margin-left:0}.app-shell.ng-nav-compact .sidebar nav>p,.app-shell.ng-nav-compact .sidebar nav button>span,.app-shell.ng-nav-compact .sidebar .brand>span:last-child,.app-shell.ng-nav-compact .sidebar-foot>p{display:block}.ng-desk-table-total{margin-left:0}}

.ng-desk-table-total{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px 14px;width:100%;margin:8px 0 0;padding:9px 12px}
.ng-desk-table-total span{white-space:nowrap;font-size:11px;font-weight:500}.ng-desk-table-total b{font-weight:800}.ng-desk-table-total small{color:#916127}

.ng-desk-event strong.down_payment{color:#177d6c}

/* v1.18 · Clear single-purpose panel controls and receipt amount */
.ng-credit-desk .ng-desk-layoutbar{min-width:0;align-items:center;display:flex;justify-content:stretch;gap:8px;position:relative;z-index:2}
.ng-credit-desk .ng-desk-layoutbar [data-credit-layout-collapse]{flex:1 1 auto;min-width:0;white-space:normal}
.ng-credit-desk:not(.ng-hide-left) .ng-desk-layoutbar [data-credit-pane="left"],
.ng-credit-desk:not(.ng-hide-right) .ng-desk-layoutbar [data-credit-pane="right"]{display:none}
.ng-credit-desk .ng-desk-layoutbar .ng-desk-reopen{flex:0 0 auto;white-space:nowrap;background:#e9f4ff;color:#185c9b;border-color:#c8dff6}
.ng-credit-desk .ng-desk-center,.ng-credit-desk .credit-grid-panel{min-width:0;max-width:100%;overflow:hidden}
.ng-credit-desk .ng-desk-aside{position:relative;min-width:0;max-width:100%;z-index:1}
.ng-credit-desk .ng-desk-heading{min-width:0}
.ng-credit-desk .ng-desk-heading b{min-width:0;flex:1;overflow-wrap:anywhere}
.ng-credit-desk .ng-desk-heading button{flex:0 0 32px;width:32px;height:32px;position:relative;z-index:2}
.ng-credit-receipt-amount{display:block;padding:13px 15px;border-radius:14px;background:#edf6ff;border:1px solid #b7d4f5;font-weight:750}
.ng-credit-receipt-amount input{display:block;width:100%;min-height:48px;font-size:20px!important;font-weight:750;margin-top:9px}
.ng-credit-receipt-preview{padding:11px 14px;border-radius:11px;color:#215c48;background:#e9f8f0;font-size:13px;font-weight:700}
.ng-credit-receipt-preview.error{color:#a52b2b;background:#ffeded}
@media(max-width:1100px){.ng-credit-desk .ng-desk-layoutbar .ng-desk-reopen{font-size:11px;min-width:0;padding:7px}}
/* Preserve all three CSS-grid slots while a desktop pane is collapsed;
   display:none otherwise shifts the center into the zero-width first track. */
@media(min-width:1021px){
 .ng-credit-desk.ng-hide-left>.ng-desk-left,
 .ng-credit-desk.ng-hide-right>.ng-desk-right{display:flex;visibility:hidden;pointer-events:none;overflow:hidden;border:0;padding:0}
}

/* v1.19 · Mac-like pane animation. Three tracks never disappear: the table keeps its grid cell. */
.ng-credit-desk,
.ng-credit-desk.ng-hide-left,
.ng-credit-desk.ng-hide-right,
.ng-credit-desk.ng-hide-left.ng-hide-right { display:grid; min-width:0; grid-template-columns:var(--ng-left-size,230px) minmax(0,1fr) var(--ng-right-size,286px)!important; column-gap:10px!important; transition:grid-template-columns .42s cubic-bezier(.2,.8,.15,1),column-gap .42s cubic-bezier(.2,.8,.15,1); }
.ng-credit-desk.ng-hide-left {--ng-left-size:0px}
.ng-credit-desk.ng-hide-right {--ng-right-size:0px}
.ng-credit-desk>.ng-desk-left {grid-column:1;grid-row:1}
.ng-credit-desk>.ng-desk-center {grid-column:2;grid-row:1;min-width:0;display:block!important;visibility:visible!important}
.ng-credit-desk>.ng-desk-right {grid-column:3;grid-row:1}
.ng-credit-desk>.ng-desk-aside {display:flex!important;min-width:0;max-width:100%;transition:opacity .28s ease,transform .42s cubic-bezier(.2,.8,.15,1),visibility 0s linear 0s;opacity:1;transform:translateX(0) scale(1);transform-origin:top center;}
.ng-credit-desk.ng-hide-left>.ng-desk-left {visibility:hidden!important;pointer-events:none;opacity:0;transform:translateX(-20px) scale(.92);transition:opacity .22s ease,transform .42s cubic-bezier(.2,.8,.15,1),visibility 0s linear .42s;overflow:hidden;border:0;padding:0}
.ng-credit-desk.ng-hide-right>.ng-desk-right {visibility:hidden!important;pointer-events:none;opacity:0;transform:translateX(20px) scale(.92);transition:opacity .22s ease,transform .42s cubic-bezier(.2,.8,.15,1),visibility 0s linear .42s;overflow:hidden;border:0;padding:0}
.ng-credit-desk.ng-hide-left.ng-hide-right {--ng-left-size:0px;--ng-right-size:0px}
.ng-desk-command {display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:9px 12px;margin:0 0 10px;border:1px solid #dfe6ef;background:#fff;border-radius:15px;position:relative;z-index:5;box-shadow:0 5px 17px rgba(48,71,100,.035)}
.ng-desk-command button {border:1px solid #d9e2ee;border-radius:10px;background:#f8fafc;color:#3e5874;min-height:35px;padding:6px 12px;font:700 12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:background .2s,transform .22s cubic-bezier(.3,1.2,.4,1),box-shadow .25s}
.ng-desk-command button:hover{background:#e9f3ff;box-shadow:0 3px 11px #c7d6e480;transform:translateY(-1px)}
.ng-desk-command button:focus-visible{outline:3px solid #8bbdff;outline-offset:2px}
.ng-desk-command button[aria-pressed="true"]{background:#e6f3ff;color:#1469ac;border-color:#bad6f4}
.ng-desk-command .ng-desk-reset{margin-left:auto;color:#536b85}
.ng-credit-desk .ng-desk-layoutbar{display:none!important}
@media(min-width:1560px){.ng-credit-desk{--ng-left-size:250px;--ng-right-size:306px}}
@media(min-width:1021px) and (max-width:1450px){.ng-credit-desk{--ng-left-size:190px;--ng-right-size:235px}}
@media(max-width:1020px){
 .ng-credit-desk,.ng-credit-desk.ng-hide-left,.ng-credit-desk.ng-hide-right,.ng-credit-desk.ng-hide-left.ng-hide-right{display:flex!important;flex-direction:column!important;gap:10px!important}
 .ng-credit-desk>.ng-desk-aside{width:100%;height:auto;max-height:390px;transition:opacity .32s ease,max-height .4s ease,transform .4s ease,visibility 0s}
 .ng-credit-desk.ng-hide-left>.ng-desk-left,.ng-credit-desk.ng-hide-right>.ng-desk-right{max-height:0!important;min-height:0!important;opacity:0;visibility:hidden!important;pointer-events:none;margin:0;padding:0;transform:scale(.93)}
 .ng-credit-desk>.ng-desk-center{width:100%;order:1;flex:0 0 auto}.ng-credit-desk>.ng-desk-left{order:2}.ng-credit-desk>.ng-desk-right{order:3}
 .ng-desk-command .ng-desk-reset{margin-left:0}
}
@media(prefers-reduced-motion:reduce){.ng-credit-desk,.ng-credit-desk>.ng-desk-aside,.ng-desk-command button{transition:none!important}}
/* macOS-like easing for compact navigation, too. */
@media(min-width:761px){
  .app-shell .sidebar{transition:width .42s cubic-bezier(.2,.8,.15,1),padding .42s cubic-bezier(.2,.8,.15,1),transform .25s ease}
  .app-shell .workspace{transition:margin-left .42s cubic-bezier(.2,.8,.15,1),width .42s cubic-bezier(.2,.8,.15,1)}
}

/* v1.20: priority inbox and WhatsApp-like secure evidence viewer */
.ng-inbox-shell{position:relative;display:flex;align-items:center;flex:none}
.ng-inbox-bell{position:relative;font-size:20px!important}
.ng-inbox-badge{position:absolute;top:-5px;right:-6px;border-radius:999px;min-width:20px;height:20px;display:grid;place-items:center;background:#18aa72;color:#fff;font-size:11px;font-weight:800;padding:0 4px;box-shadow:0 0 0 2px white}
.ng-inbox-badge[hidden]{display:none!important}.ng-inbox-badge.urgent{background:#e64348;animation:ng-inbox-pulse 2.4s ease-in-out infinite}
@keyframes ng-inbox-pulse{50%{box-shadow:0 0 0 5px rgba(230,67,72,.16)}}
.ng-inbox-popover{position:absolute;right:0;top:calc(100% + 13px);z-index:110;max-height:440px;overflow:auto;width:min(390px,calc(100vw - 25px));border-radius:18px;background:white;border:1px solid #dce7e9;box-shadow:0 25px 55px rgba(27,44,50,.2)}
.ng-inbox-popover[hidden]{display:none!important}.ng-inbox-title{display:flex;justify-content:space-between;align-items:center;background:#f8fbfc;padding:16px;font-size:14px;position:sticky;top:0;z-index:2}.ng-inbox-title button{background:#e8edf0;border:0;border-radius:9px;width:26px;height:26px;cursor:pointer}
.ng-inbox-item{display:flex;align-items:flex-start;width:100%;gap:10px;padding:13px 15px;text-align:left;background:white;border:0;border-bottom:1px solid #edf1f4;cursor:pointer;color:#233a45}.ng-inbox-item:hover{background:#f2f7f6}
.ng-inbox-item>span:last-child{display:flex;flex-direction:column;gap:5px;min-width:0}.ng-inbox-item b{font-size:13px}.ng-inbox-item small{color:#738892;font-size:11px}.ng-inbox-excerpt{font-size:12px;color:#586b73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}.ng-inbox-light{flex:none;margin-top:6px;width:9px;height:9px;border-radius:50%;background:#18ad70}.ng-inbox-item.important{background:#fff7f6}.ng-inbox-item.important .ng-inbox-light{background:#ed4751;box-shadow:0 0 0 4px rgba(235,65,75,.1)}.ng-inbox-empty{padding:28px;text-align:center;color:#819198;font-size:12px}
.ng-wa-chat{background:#e6eeeb;border-radius:16px;overflow:hidden;gap:0!important;border:1px solid #d9e4dc}
.ng-wa-contact{display:flex;align-items:center;gap:12px;padding:15px 18px;background:#f9fcfa;border-bottom:1px solid #dbe7dd}.ng-wa-contact>div{flex:1;display:flex;flex-direction:column;gap:4px}.ng-wa-contact b{font-size:14px;color:#183a32}.ng-wa-contact small{font-size:11px;color:#82948e}.ng-wa-online{font-size:11px;color:#21b27a}.ng-wa-avatar{display:grid;place-items:center;border-radius:50%;width:37px;height:37px;background:#d5e9da;color:#317958}
.ng-wa-thread{background:#e6eeeb!important;max-height:min(64vh,650px)!important;padding:25px 22px!important;gap:12px!important;background-image:radial-gradient(rgba(64,112,88,.05) 1px,transparent 1px)!important;background-size:16px 16px!important}
.ng-wa-chat .ng-credit-bubble{padding:10px 12px!important;max-width:min(86%,540px)!important;border:0!important;border-radius:13px 13px 13px 3px!important;box-shadow:0 2px 7px rgba(48,75,60,.09);font-size:13px!important}
.ng-wa-chat .ng-credit-bubble.sent{border-radius:13px 13px 3px 13px!important;background:#d6f8df!important}
.ng-wa-chat .ng-credit-bubble p{line-height:1.5!important;white-space:pre-wrap;overflow-wrap:anywhere}
.ng-wa-chat .ng-credit-bubble small{font-size:10px!important;color:#718179!important;text-align:right;margin-top:7px}
.ng-wa-photo{width:min(340px,100%);padding:0;border:0;cursor:zoom-in;border-radius:10px;overflow:hidden;background:#eaf0ed;display:block;margin-bottom:9px}.ng-wa-photo img{display:block;width:100%;height:auto;max-height:290px;object-fit:contain}
.ng-wa-audio{width:min(340px,100%);max-width:100%;display:block;margin-bottom:6px}.ng-wa-photo-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0}.ng-wa-photo-actions button{border:1px solid #c5d4ce;border-radius:9px;padding:9px 11px;background:#f6faf8;color:#23584c;cursor:pointer;font-size:11px;font-weight:750}.ng-wa-photo-actions button.primary{background:#217f60;color:#fff;border-color:#217f60}.ng-wa-verified{font-size:11px;color:#207e51;margin-top:6px}.ng-wa-pending{font-size:11px;color:#c24d41;background:#fff0e9;padding:8px;border-radius:7px;margin:8px 0}.ng-wa-document{font-size:12px;color:#166e59}.ng-wa-composer{display:flex;padding:12px!important;margin:0!important;background:#fbfdfb!important;gap:10px}.ng-wa-composer input{flex:1;min-width:0;border:1px solid #dbe5df;border-radius:23px;padding:13px;background:white}.ng-wa-help,.ng-wa-note{background:#f9fcfa;padding:11px 15px;color:#72877d;font-size:11px;line-height:1.6}.ng-wa-note{border-top:1px solid #ebf1ed}.ng-wa-lightbox{display:grid;place-items:center;padding:12px;background:#1c2522;border-radius:12px;max-height:75vh}.ng-wa-lightbox img{max-width:100%;max-height:70vh;object-fit:contain}
.ng-receipt-hero{display:flex;align-items:center;gap:14px;background:#f5f8fa;border-radius:12px;padding:12px}.ng-receipt-hero img{max-width:125px;max-height:95px;object-fit:contain;border-radius:8px}.ng-receipt-hero p{font-size:12px;color:#866439;line-height:1.5}
.ng-alloc-list{display:grid;gap:7px;max-height:260px;overflow-y:auto;padding:4px 3px}.ng-alloc-row{display:flex!important;gap:10px;align-items:center;justify-content:space-between;background:#f5f8fa;padding:9px 13px;border:1px solid #e5ecf2;border-radius:12px}.ng-alloc-row.priority{background:#fff3f1;border-color:#ffddd7}.ng-alloc-row.wrong{border-color:#e14b44}.ng-alloc-row span{flex:1}.ng-alloc-row b{display:block;font-size:12px;color:#31445a}.ng-alloc-row.priority b{color:#cd4a43}.ng-alloc-row small{display:block;color:#8597a5;font-size:11px}.ng-alloc-row input{max-width:115px!important;min-height:35px!important;text-align:right}.ng-alloc-fee{border-radius:10px;background:#fff0e8;color:#b85438;padding:10px;font-size:12px}
.ng-alloc-summary{background:#e5f8eb;color:#155d3a;font-size:13px;font-weight:650;border-radius:12px;padding:12px;line-height:1.7}.ng-alloc-summary.wrong{background:#fff3e8;color:#b95b25}.ng-alloc-summary strong{font-size:17px;font-variant-numeric:tabular-nums}.ng-cash-comment{white-space:pre-wrap;background:#eff5f2;color:#456457;padding:13px;border-radius:12px;font-size:11px;line-height:1.55;max-height:190px;overflow:auto}
@media(max-width:700px){.ng-inbox-popover{position:fixed;top:60px;right:8px;z-index:400}.ng-wa-thread{padding:12px!important}.ng-wa-chat .ng-credit-bubble{max-width:94%!important}.ng-receipt-hero{flex-direction:column;align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.ng-inbox-badge.urgent{animation:none}}

/* NiceGroup historical PDF cell colors, separate from posted cash transactions */
.credit-grid-month.ng-historic{border-bottom:2px solid rgba(0,0,0,.10);cursor:context-menu;white-space:nowrap}
.credit-grid-month.ng-historic span b{color:#1d2934;text-shadow:0 1px rgba(255,255,255,.45)}
.credit-grid-month.ng-historic small{color:#2b3e48}
.ng-pdf-palette{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}
.ng-color-dot{width:38px;height:38px;border-radius:11px;border:2px solid #86939e;cursor:pointer;box-shadow:0 2px 7px #0001}
.ng-color-dot:hover{transform:scale(1.13);border-color:#111827}
.ng-pdf-months-title{font-weight:700;margin:14px 0 7px}
.ng-pdf-months-scroll{max-height:230px;overflow:auto;border:1px solid #dbe4ec;border-radius:9px}
.ng-pdf-months{border-collapse:collapse;width:100%;font-size:12px}
.ng-pdf-months td{padding:5px 12px;border-bottom:1px solid #dce4eb}
.ng-pdf-months td:last-child{font-weight:600;text-align:right;cursor:context-menu}
.ng-pdf-error{color:#aa2c2c;font-weight:600}
.ng-card-transactions{margin-top:18px;border-top:1px solid #d6dce2;padding-top:14px}
.ng-card-tx-list{max-height:340px;overflow:auto}
.ng-card-tx{padding:11px 2px;border-bottom:1px solid #e8edf2;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ng-card-tx span{flex:1;min-width:180px}.ng-card-tx small{display:block;color:#657485}
.ng-tab-access-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.ng-tab-access-list label{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #ddd;padding:8px 0}
.ng-tab-access-list select{padding:8px;max-width:170px;border-radius:9px;border:1px solid #cdd8e2}

/* niceGroup 1.23: visible, keyboard-readable month action menu and transaction hover */
.ng-month-menu{position:fixed;z-index:30010;width:264px;max-height:min(72vh,460px);overflow:auto;background:#fff;color:#162c43;border:1px solid #d7dfea;box-shadow:0 16px 48px #192a3c30;border-radius:13px;padding:8px;display:flex;flex-direction:column;gap:3px;animation:ngMonthAppear .16s ease-out}
.ng-month-menu strong{padding:8px 10px 0;font-size:13px}.ng-month-menu>small{padding:0 10px 6px;color:#748195}
.ng-month-menu button{border:0;background:transparent;border-radius:9px;text-align:left;padding:11px 10px;color:#1d3248;cursor:pointer;font:inherit;font-size:13px}
.ng-month-menu button:hover,.ng-month-menu button:focus-visible{background:#edf3fc;outline:0}
.ng-month-menu [data-ng-month-action="return"]{color:#bc3039}
.ng-month-tooltip{position:fixed;z-index:30000;max-width:330px;width:min(330px,80vw);padding:10px 12px;max-height:240px;overflow:auto;background:#172c44;color:#fff;border-radius:12px;box-shadow:0 12px 40px #0004;pointer-events:none;font-size:12px}
.ng-month-activity p{margin:5px 0;padding:7px 4px;border-bottom:1px solid #fff3;display:grid;gap:3px}.ng-month-activity span{opacity:.8}.ng-month-activity small{opacity:.72;white-space:normal}
.credit-pill.frozen,.credit-pill.temporary_return{background:#fff1b7;color:#795600}
tr[data-credit-hold="freeze"] .credit-grid-sticky.name{box-shadow:inset 3px 0 #e1ad24}
tr[data-credit-hold="temporary_return"] .credit-grid-sticky.name{box-shadow:inset 3px 0 #f18a33}
@keyframes ngMonthAppear{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media (prefers-reduced-motion:reduce){.ng-month-menu{animation:none}}

.credit-pill.returned{background:#fee2e2;color:#b42330}
.credit-pill.paid{background:#dcfce7;color:#167b45}
tr[data-credit-status="returned"] .credit-grid-sticky.name{box-shadow:inset 4px 0 #d92d36}
tr[data-credit-status="paid"] .credit-grid-sticky.name{box-shadow:inset 4px 0 #208c4c}

/* v1.23.1: explain the imported/draft status without hiding actions. */
.ng-month-block-reason{font-size:12px;line-height:1.45;color:#9b491f;background:#fff4e7;border:1px solid #f6dec6;border-radius:8px;padding:9px 10px;margin:4px 3px 7px}
.ng-month-menu button[data-ng-month-blocked="1"]{color:#7b8798;background:#f8f9fc;cursor:pointer}
.ng-month-menu button[data-ng-month-blocked="1"]:hover{background:#fff4e7;color:#754726}
.ng-month-lock{float:right;font-size:12px;opacity:.75}
.ng-month-verification-warning{line-height:1.6;color:var(--text-color,#27364a);padding:8px}

/* v1.28 WABA template editor */
.ng-template-builder{margin-top:22px;padding-top:17px;border-top:1px solid #dde4e8}
.ng-template-tabs{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}
.ng-waba-columns{display:grid;grid-template-columns:minmax(340px,1fr) minmax(240px,.65fr);gap:24px}
.ng-waba-preview{background:#e6ebec;border-radius:19px;padding:18px;align-self:start;font-size:14px}
.ng-wa-header{color:#366a5d;font-size:12px;font-weight:700;margin-bottom:12px}
.ng-wa-bubble{background:#d6f5cf;box-shadow:0 3px 15px #0001;border-radius:13px;padding:17px;white-space:normal;line-height:1.65}
.ng-wa-bubble small{display:block;margin-top:10px;color:#667a75;font-size:11px}
.ng-wa-button{margin-top:11px;border-top:1px solid #b2dab3;text-align:center;color:#2b6a82;padding-top:8px}
.ng-waba-vars{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0 14px}
@media(max-width:850px){.ng-waba-columns{grid-template-columns:1fr}}

/* v1.29.10 — bulk confirmation on Excel preview */
.ng-import-all-btn{display:block;width:100%;max-width:420px;margin-top:10px;min-height:46px;font-weight:700}.ng-import-all-note{display:block;margin-top:8px;font-size:12px;line-height:1.45;opacity:.85}

.ng-import-all-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}

/* v1.29.13: source XLSX paint only; this is historical evidence, not payment confirmation. */
.credit-grid-month.ng-excel-month{padding:4px!important;min-width:85px;vertical-align:middle}
.ng-excel-month-stack{display:grid;gap:2px;max-height:104px;overflow:auto}
.ng-excel-month-cell{display:block;border:1px solid #c4cdd9;border-radius:5px;padding:3px 5px;min-height:21px;line-height:1.3;font-size:11px;color:#102236;text-align:right}
.ng-excel-month-cell b{font-weight:650;white-space:nowrap}
.credit-grid-month.ng-excel-month>small{display:block;font-size:9px;line-height:1.25;padding:2px 0;color:#65768b;text-align:center}

/* v1.29.16: credit desk dialogs must not blur the ledger behind them. */
body:has(.credit-wrap) .modal-backdrop { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
.ng-excel-year-unknown { outline:1px dashed #a78bfa; outline-offset:-1px; }
.ng-excel-year-unknown sup {font-size:9px;font-weight:800;margin-left:3px;vertical-align:super;}

/* v1.29.18 — return to the original, compact Excel-like credit grid. */
.credit-grid-table .ng-classic-month{min-width:64px!important;padding:4px 5px!important;text-align:center;vertical-align:middle}
.credit-grid-table .ng-classic-month span{display:block}
.credit-grid-table .ng-classic-month span b{display:inline!important;font-size:12px!important;font-weight:700!important;line-height:1.35;color:inherit!important;text-shadow:none!important}
.credit-grid-table .ng-classic-month.na{color:#9ba7b5!important}
.credit-grid-table .ng-classic-month .ng-classic-unknown{display:inline;color:inherit!important;font-weight:700;font-size:9px;margin-left:2px}
.credit-grid-table tbody tr:hover .ng-classic-month{background-color:inherit;filter:none!important}
.ng-month-menu-classic{max-height:min(80vh,440px);width:246px;border-radius:9px;box-shadow:0 8px 22px #1b2e4724;animation:none!important}
.ng-month-menu-classic button{padding:8px 10px}
.ng-classic-month-editor{width:min(290px,calc(100vw - 18px));padding:12px;max-height:90vh;animation:none!important}
.ng-classic-edit-form{display:grid;gap:10px;margin-top:10px}
.ng-classic-edit-form label{display:flex;gap:5px;flex-direction:column;font-weight:600;font-size:12px}
.ng-classic-edit-form input:not([type="color"]){border:1px solid #d1dbe7;border-radius:6px;padding:8px 10px;min-width:0;width:100%;box-sizing:border-box;background:#fff;color:#162c43}
.ng-classic-edit-form input[type="color"]{width:64px;height:33px;border:1px solid #c9d5e1;border-radius:6px;background:#fff;padding:2px;cursor:pointer}
.ng-classic-palette{display:flex;flex-wrap:wrap;gap:6px}
.ng-classic-palette button{width:23px;height:23px;padding:0!important;border-radius:5px;border:1px solid #7c8a99;background:var(--month-color)}
.ng-classic-edit-form button.ng-classic-save{background:#243347!important;color:#fff;text-align:center;font-weight:700}
body:has(.credit-wrap) .modal-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

.credit-grid-sticky.index .ng-classic-row-dot{display:inline-block;vertical-align:middle;width:9px;height:9px;border:1px solid #92a2b2;border-radius:2px;margin-right:3px;flex-shrink:0}

/* v1.29.19 — credits table restored from the original v1.22 markup. */
.credit-v122 .credit-grid-month.ng-v122-month{min-width:78px!important;padding:5px 7px!important;cursor:context-menu;filter:none!important;text-align:center}
.credit-v122 .ng-v122-month>span{display:block}
.credit-v122 .ng-v122-month b{font-size:12px;font-weight:700!important;color:inherit!important;text-shadow:none!important;white-space:nowrap}
.credit-v122 .credit-grid-table tr:hover .ng-v122-month{filter:none!important}
.credit-v122 .credit-grid-help{background:#fff}
.credit-v122 .credit-grid-month.na{cursor:context-menu}
body:has(.credit-v122) .modal-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* v1.29.21: three-item right-click menu, unavailable actions stay visible. */
.ng-month-menu-classic button:disabled{color:#8993a1;background:#f5f6f8;cursor:not-allowed;opacity:1}
.ng-month-menu-classic button:disabled:hover{background:#f5f6f8;color:#8993a1}
.ng-month-menu-classic [data-ng-month-action="freeze"],
.ng-month-menu-classic [data-ng-month-action="resume"]{color:#947000}
.ng-month-menu-classic [data-ng-month-action="pay"]{color:#17684a}

/* v1.29.22 · credit Excel source, contact card, document slots */
.credit-grid-client-link{border:0;background:transparent;display:inline-block;text-align:left;color:inherit;font:inherit;cursor:pointer;padding:2px 0;font-weight:600;white-space:normal}
.credit-grid-client-link:hover{text-decoration:underline;color:#0d6ae2}
.ng-client-docs{margin:18px 0;padding:14px 0;border-top:1px solid #dce5ee;border-bottom:1px solid #dce5ee}
.ng-client-doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:12px}
.ng-client-doc-slot{display:flex;flex-direction:column;gap:8px;border:1px dashed #a8bad1;border-radius:12px;padding:14px;min-height:145px;background:#fafcff}
.ng-client-doc-slot div{display:flex;flex-direction:column;gap:4px;min-height:32px;overflow-wrap:anywhere}
.ng-client-doc-slot a{color:#1765b4;text-decoration:underline}
.ng-client-doc-slot label{cursor:pointer;margin-top:auto;align-self:flex-start}
.ng-archive-payment-history{margin-top:18px;border-top:1px solid #dce5ee;padding-top:14px}
.ng-archive-payments{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:8px}
.ng-archive-payment{border:1px solid #bac9d8;border-radius:10px;display:flex;justify-content:space-between;align-items:center;padding:10px;gap:10px;min-height:52px}
.ng-archive-payment b{font-size:12px}.ng-archive-payment strong{font-variant-numeric:tabular-nums}
.credit-grid-calculated small.credit-import-source{display:block;font-weight:400;opacity:.75;font-size:10px}

/* v1.29.23: fast archival editing in the real calendar month. */
.credit-v122 .credit-grid-month.ng-current-month{box-shadow:inset 0 0 0 2px #3d79bc!important}
.credit-v122 .credit-grid-month.ng-current-month>span{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:23px}
.credit-v122 .credit-grid-month .ng-month-edit-trigger{flex:none;min-width:23px;width:23px;height:23px;padding:0!important;line-height:1;border:1px solid currentColor;border-radius:5px;background:#ffffffef!important;color:#1752a5!important;font-size:14px;font-weight:700;cursor:pointer;opacity:.95}
.credit-v122 .credit-grid-month .ng-month-edit-trigger:hover,.credit-v122 .credit-grid-month .ng-month-edit-trigger:focus-visible{background:#dcefff!important;outline:2px solid #1660c2;outline-offset:1px}
.credit-v122 .credit-grid-month-head.ng-current-month{box-shadow:inset 0 0 0 2px #3d79bc!important}
.credit-v122 .credit-grid-month-head.ng-current-month button{font-weight:800}

/* v1.29.24: compact one-line credit rows; no source phones discarded. */
.credit-v122 .credit-grid-table th,.credit-v122 .credit-grid-table td{height:36px!important;padding:3px 6px!important;line-height:1.17!important}
.credit-v122 .credit-grid-table tbody tr{height:36px!important}
.credit-v122 .credit-grid-readonly{display:block;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;overflow-wrap:normal;font-size:11.25px;line-height:1.3}
.credit-v122 .credit-grid-person{min-height:29px;gap:4px;white-space:nowrap;overflow:hidden}
.credit-v122 .credit-grid-client-link{flex:1;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:11.5px}
.credit-v122 .credit-grid-open{height:25px;width:25px;min-width:25px;border-radius:6px;font-size:13px}
.credit-v122 .credit-grid-id{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px}
.credit-v122 .ng-credit-row-index{display:block;color:#5c7998;font-size:9px;line-height:1.2;font-variant-numeric:tabular-nums;font-weight:800}
.credit-v122 .credit-grid-month b{font-size:11px;line-height:1.15}
.credit-v122 .credit-grid-month small,.credit-v122 .credit-grid-calculated small{font-size:9px;line-height:1.1;margin-top:1px}
.credit-v122 .credit-grid-calculated b{font-size:11px}
.credit-v122 .credit-grid-month .ng-month-edit-trigger{width:20px;height:20px;min-width:20px;font-size:12px}
.credit-v122 .credit-grid-month.ng-current-month>span{min-height:21px}
.credit-v122 .ng-phone-warning{display:inline-block;margin-left:3px;border:1px solid #d9ad58;border-radius:50%;width:12px;height:12px;line-height:11px;text-align:center;font-size:9px;color:#9f6d00;vertical-align:middle}
.credit-v122 .ng-grid-row-counter{margin-right:auto;white-space:nowrap;font-weight:600;color:#425d78;font-size:11px}
.credit-v122 .ng-grid-row-counter b{font-weight:800;color:#123d6a}
.credit-v122 .ng-phone-repair-btn{width:auto;min-width:0;padding:5px 9px;height:29px;font-size:11px;white-space:nowrap}
.credit-v122 .credit-grid-table td[title]{overflow:hidden}
@media(max-width:700px){.credit-v122 .credit-grid-table th,.credit-v122 .credit-grid-table td{height:34px!important;padding:2px 4px!important}}

.credit-v122 .credit-grid-table td[title]:has(.ng-phone-warning)>.credit-grid-readonly{display:inline-block;max-width:calc(100% - 16px);vertical-align:middle}


/* v1.29.26: no inline pencils, compact contract term, active monthly context. */
.credit-v122 .credit-grid-table td.ng-credit-term{width:89px!important;min-width:89px;max-width:89px;padding:2px 5px!important;white-space:nowrap!important;overflow:hidden!important}
.credit-v122 .ng-credit-term-inline{display:flex;align-items:baseline;justify-content:center;gap:3px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.credit-v122 .ng-credit-term-inline b{font-size:11px!important;line-height:1.1!important;flex:0 0 auto}
.credit-v122 .ng-credit-term-inline small{font-size:9px!important;line-height:1.1!important;display:inline!important;margin:0!important;color:#798a9b;overflow:hidden;text-overflow:ellipsis}
.credit-v122 .ng-current-month{cursor:context-menu!important}
.credit-v122 .ng-current-month.ng-month-editable{outline:1px solid #3b78bd;outline-offset:-1px}
.ng-month-menu.ng-month-menu-daily{width:286px;max-height:min(75vh,620px);overflow:auto;padding:9px;gap:3px}
.ng-month-menu-daily .ng-month-archive-action{display:grid;gap:4px;border-top:1px solid #e4e9f0;margin-top:4px;padding:7px 4px 4px}
.ng-month-menu-daily .ng-month-archive-action>span{color:#7b6538;font-size:10px;line-height:1.3;padding:0 5px}
.ng-month-menu-daily .ng-month-archive-action button{background:#fff6e6;color:#7e5719;font-weight:700;font-size:11px}
.ng-month-daily{border-top:1px solid #dae4ed;margin-top:6px;padding:10px 7px 5px;color:#2d4963;font-size:11px}
.ng-month-daily>b{display:block;font-size:11px;margin:0 0 7px}
.ng-month-daily-scroll{display:grid;gap:4px;max-height:146px;overflow-y:auto}
.ng-month-daily-day{display:flex;align-items:center;gap:6px;justify-content:space-between;border-bottom:1px solid #eff2f6;padding:5px 1px;font-variant-numeric:tabular-nums}
.ng-month-daily-day time{margin-right:auto;color:#47647f}
.ng-month-daily-day strong{font-weight:750}
.ng-month-daily-day small{color:#96a5b6}
.ng-month-daily-total{display:flex;justify-content:space-between;gap:9px;border-top:1px solid #dbe5ef;padding:9px 0 2px;color:#255c40}
.ng-month-daily-empty{color:#8391a2;font-size:11px;line-height:1.4;margin:4px 0}
.ng-month-daily-source{display:block;margin-top:8px;padding:6px;color:#815b21;background:#fff6e5;border-radius:6px;font-size:10px}
.ng-credit-responsible{margin:12px 0 16px;padding:12px;border:1px solid #dbe6f2;border-radius:12px}
.ng-credit-responsible h4{margin:0 0 10px;color:#264d76}
.ng-credit-responsible-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ng-credit-responsible-row{display:flex;flex-direction:column;gap:5px;padding:10px;background:#f3f7fb;border-radius:8px;min-width:0}
.ng-credit-responsible-row small{font-size:10px;color:#7891aa}
.ng-credit-responsible-row b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.ng-credit-responsible-grid{grid-template-columns:1fr}}
/* Keep header and term values on the same fixed table column. */
.credit-v122 .credit-grid-table th:nth-child(11),
.credit-v122 .credit-grid-table td:nth-child(11){width:89px!important;min-width:89px!important;max-width:89px!important}
.credit-v122 .credit-grid-table th,.credit-v122 .credit-grid-table td{height:33px!important;padding:2px 5px!important}
.credit-v122 .credit-grid-table tbody tr{height:33px!important}
@media(max-width:700px){.credit-v122 .credit-grid-table th,.credit-v122 .credit-grid-table td{height:31px!important;padding:2px 4px!important}}

.ng-month-daily-group{border-bottom:1px solid #dce7f1;padding-bottom:5px}
.ng-month-daily-group:last-child{border-bottom:0}
.ng-month-daily-receipt{display:flex;align-items:center;gap:8px;justify-content:space-between;color:#6c7e91;font-size:10px;padding:3px 2px 3px 10px}
.ng-month-daily-receipt span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ng-month-daily-receipt b{white-space:nowrap;font-variant-numeric:tabular-nums;color:#1e5c41;font-size:10px}

/* v1.29.27 — current-month daily operator reports (never cashier payments). */
.ng-month-daily-editor{width:min(325px,calc(100vw - 16px));max-height:90vh;overflow-y:auto}
.ng-legacy-not-cash{display:block;padding:8px 10px;border-radius:6px;background:#fff3d4;color:#765319;line-height:1.5}
.ng-month-menu-daily .ng-month-archive-action{display:grid;gap:6px}
.ng-month-menu-daily .ng-month-archive-action button{width:100%;white-space:normal;text-align:left}
.ng-month-daily-reported{display:grid;gap:6px;margin-top:10px;border-top:1px dashed #c5aa69;padding-top:9px}
.ng-month-daily-reported> b{color:#765319;font-size:11px}
.credit-v122 .ng-v122-month.ng-month-editable{cursor:context-menu}

/* v1.29.28 — real column sorting (all rows, before "Daha çox göstər"). */
.credit-v122 .credit-grid-table thead th .ng-credit-sort{
  appearance:none;display:flex;align-items:center;justify-content:space-between;gap:3px;
  width:100%;min-height:25px;padding:2px 3px;border:0;border-radius:4px;
  background:transparent;color:inherit;font:inherit;font-weight:700;text-align:left;
  line-height:1.15;cursor:pointer;white-space:normal;
}
.credit-v122 .credit-grid-table thead th .ng-credit-sort:hover,
.credit-v122 .credit-grid-table thead th .ng-credit-sort:focus-visible{background:#dcebf9;outline:1px solid #84b8e9}
.credit-v122 .credit-grid-table thead th .ng-credit-sort-arrow{
  flex:none;font-size:12px;color:#8ca3bb;font-weight:800;
}
.credit-v122 .credit-grid-table thead th.ng-sorted-column{background:#e1edfc!important;color:#155b9e!important}
.credit-v122 .credit-grid-table thead th.ng-sorted-column .ng-credit-sort-arrow{color:#1368c1}
.credit-v122 .credit-grid-month-head .ng-credit-month-actions{
  display:flex;align-items:center;justify-content:space-between;gap:0;width:100%;height:100%;
}
.credit-v122 .credit-grid-month-head .ng-credit-month-actions>.ng-credit-sort{
  width:auto;min-width:0;flex:1;font-size:10px;padding:3px 0 3px 2px;
}
.credit-v122 .credit-grid-month-head .ng-credit-month-actions>.ng-credit-month-all{
  flex:0 0 20px;width:20px;height:24px;padding:1px;border-radius:4px;
  color:#5781b0;background:transparent;font-size:12px;display:grid;place-items:center;
}
.credit-v122 .credit-grid-month-head .ng-credit-month-actions>.ng-credit-month-all:hover{background:#cbdff5}
.credit-v122 .credit-grid-table thead .credit-grid-sticky.ng-sorted-column{background:#dceafc!important}

/* v1.29.32 — original Excel registration date/time between ID and client. */
.credit-v122 .credit-grid-table{min-width:3240px}
.credit-v122 .credit-grid-table .credit-grid-sticky.registration{
  left:67px;width:125px!important;min-width:125px!important;max-width:125px!important;
  box-shadow:1px 0 0 #dbe5f0;z-index:3
}
.credit-v122 .credit-grid-table .credit-grid-sticky.name{left:192px!important}
.credit-v122 .credit-grid-table thead .credit-grid-sticky.registration{z-index:8}
.credit-v122 .ng-credit-registration-cell{white-space:nowrap;font-size:10px;color:#304b69}
.credit-v122 .ng-credit-registration-cell>small{display:block;color:#91a0ae;font-size:9px;white-space:normal;line-height:1.1;margin-top:1px}
.credit-v122 .credit-grid-table th:nth-child(2),.credit-v122 .credit-grid-table td:nth-child(2){width:125px!important;min-width:125px!important;max-width:125px!important}
.credit-v122 .credit-grid-table th:nth-child(12),.credit-v122 .credit-grid-table td:nth-child(12){width:89px!important;min-width:89px!important;max-width:89px!important}
.credit-v122 .credit-grid-table th:nth-child(n+14):nth-child(-n+25),.credit-v122 .credit-grid-table td:nth-child(n+14):nth-child(-n+25){width:93px}
.credit-v122 .credit-grid-table th:nth-child(n+26),.credit-v122 .credit-grid-table td:nth-child(n+26){width:130px}
.credit-v122 .ng-desk-group>footer{flex-wrap:wrap;gap:5px}
.credit-v122 .ng-desk-group>footer span{white-space:nowrap;font-size:10px}
/* Correct fixed widths for shifted columns following the inserted registration column. */
.credit-v122 .credit-grid-table th:nth-child(4),.credit-v122 .credit-grid-table td:nth-child(4),
.credit-v122 .credit-grid-table th:nth-child(5),.credit-v122 .credit-grid-table td:nth-child(5){width:135px}
.credit-v122 .credit-grid-table th:nth-child(6),.credit-v122 .credit-grid-table td:nth-child(6){width:160px}
.credit-v122 .credit-grid-table th:nth-child(7),.credit-v122 .credit-grid-table td:nth-child(7){width:122px}
.credit-v122 .credit-grid-table th:nth-child(8),.credit-v122 .credit-grid-table td:nth-child(8),
.credit-v122 .credit-grid-table th:nth-child(9),.credit-v122 .credit-grid-table td:nth-child(9),
.credit-v122 .credit-grid-table th:nth-child(10),.credit-v122 .credit-grid-table td:nth-child(10){width:115px}
.credit-v122 .credit-grid-table th:nth-child(11),.credit-v122 .credit-grid-table td:nth-child(11){width:128px}
.credit-v122 .credit-grid-table th:nth-child(13),.credit-v122 .credit-grid-table td:nth-child(13){width:120px}

/* v1.29.33: clickable payment period and full daily expected-payment roster. */
.ng-desk-group>header{padding:0!important}
.ng-desk-due-open{display:flex;align-items:center;gap:9px;width:100%;background:#fcfdff;color:#385a7c;border:0;padding:11px 12px;text-align:left;cursor:pointer}
.ng-desk-due-open b{font-size:12px;flex:1}
.ng-desk-due-open small{border-radius:11px;background:#e7f1fe;color:#32699a;padding:3px 7px}
.ng-desk-due-open:hover,.ng-desk-due-open:focus-visible{background:#eaf4ff;outline-color:#6aa6ee}
.ng-due-metric{text-align:left;cursor:pointer;font:inherit;border:1px solid transparent;width:100%}
.ng-due-metric:hover,.ng-due-metric:focus-visible{outline:2px solid #79b4fa;outline-offset:-2px}
.ng-due-modal{display:grid;gap:12px}
.ng-due-intro{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px}
.ng-due-intro>*{background:#edf4fc;border-radius:8px;padding:7px 10px}
.ng-due-scroll{overflow:auto;max-height:58vh;border:1px solid #dce6f0;border-radius:10px}
.ng-due-table{border-collapse:separate;border-spacing:0;width:100%;min-width:900px;font-size:12px}
.ng-due-table th{position:sticky;top:0;background:#eff4fb;z-index:2;white-space:nowrap;padding:10px 12px;text-align:left;color:#49617b}
.ng-due-table td{padding:9px 12px;border-top:1px solid #e6edf5;vertical-align:top}
.ng-due-table tbody tr:hover{background:#f2f8ff}
.ng-due-table td small{display:block;margin-top:3px;color:#8091a5;font-size:10px}
.ng-due-table .ng-due-money{font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.ng-due-table td .ng-due-archive{white-space:normal;color:#946e2e;max-width:145px}
.ng-due-person{border:0;background:none;color:#176ebe;text-align:left;padding:0;font-weight:700;cursor:pointer}
.ng-due-person:hover{text-decoration:underline}
.ng-due-index,.ng-due-empty{color:#8192a6}
.ng-due-no-rows{text-align:center;color:#789;min-height:50px}

/* v1.29.34 – clickable finance summary, preserving existing four-card layout */
.credit-metric.ng-credit-filter-metric,.credit-metric.ng-due-metric{appearance:none;font:inherit;color:inherit;text-align:left;width:100%;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.credit-metric.ng-credit-filter-metric:hover,.credit-metric.ng-due-metric:hover{border-color:#9dbfe9;background:#fbfdff;box-shadow:0 3px 12px rgba(34,105,185,.10)}
.credit-metric.ng-credit-filter-metric:focus-visible,.credit-metric.ng-due-metric:focus-visible{outline:3px solid #9ccaff;outline-offset:2px}
.credit-metric.ng-credit-filter-metric>small{overflow-wrap:anywhere}
