
/* Step 193 Monthly Closing — matches Step 192 approved Inventory-style Overhead layout */
.ld193-closing-layout{margin-top:16px}
.ld193-op-tabs{display:flex;flex-wrap:wrap}
.ld193-op-tabs button{flex:1 0 auto;min-width:125px}
.ld193-closing-grid{display:grid;grid-template-columns:minmax(245px,300px) minmax(0,1fr);gap:14px;align-items:start;margin-top:14px}
.ld193-period-sidebar,.ld193-main{background:linear-gradient(165deg,#09243c,#061628);border:1px solid #276890;border-radius:12px;overflow:hidden;color:#e7f4ff}
.ld193-period-sidebar{position:relative}
.ld193-yearhead{padding:16px;border-bottom:1px solid #225777;display:flex;align-items:center;justify-content:space-between;gap:8px}
.ld193-yearhead strong{font-size:12px;letter-spacing:1.1px;color:#42d6f7}.ld193-yearhead span{font-size:11px;color:#a2bacc}
.ld193-years{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:11px}
.ld193-years button,.ld193-month{color:#ddf4ff;background:#0a2b47;border:1px solid #275878;border-radius:7px;cursor:pointer;text-align:left}
.ld193-years button{padding:10px 8px;text-align:center;font-weight:750}
.ld193-years button.active,.ld193-month.active{background:#086a98;border-color:#00d9fb;color:white;box-shadow:0 0 0 1px #00d9fb inset}
.ld193-period-list{max-height:550px;overflow:auto;padding:0 10px 10px;display:grid;gap:7px}
.ld193-month{display:flex;flex-direction:column;gap:5px;padding:12px 11px;min-width:0;line-height:1.3}
.ld193-month span{font-size:13px;font-weight:700}.ld193-month small{font-size:11px;color:#9ecde4}
.ld193-sidebar-note,.ld193-no-years{font-size:12px;line-height:1.55;padding:13px;color:#a6c4db;border-top:1px solid #23516f}
.ld193-main{padding:16px;min-width:0}
.ld193-main-heading{display:flex;justify-content:space-between;gap:12px;align-items:start;border-bottom:1px solid #1f678b;padding-bottom:13px}
.ld193-eyebrow{color:#5bdefb;font-size:11px;letter-spacing:1.2px;font-weight:800}
.ld193-main-heading h3{font-size:21px;color:#fff;margin:6px 0 5px;line-height:1.3}
.ld193-main-heading p{font-size:12px;line-height:1.5;color:#a4c8db;margin:0}
.ld193-status{color:#c9faff;border:1px solid #149fc4;background:#0c4460;border-radius:18px;padding:8px 11px;font-weight:750;font-size:11px;white-space:nowrap}
.ld193-status.ld193-pending{color:#ffd783;background:#4d3909;border-color:#d59c19}
.ld193-source-block{background:#0c314d;padding:12px;margin:12px 0;border-radius:8px;border:1px solid #28597b;display:grid;gap:5px;font-size:12px;color:#c7e8fa}
.ld193-source-block small{color:#93c2d8;overflow-wrap:anywhere}
.ld193-fin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.ld193-fin-grid>div{padding:12px;background:#0a2944;border:1px solid #237da2;border-radius:8px;display:grid;gap:7px}
.ld193-fin-grid span{font-size:10px;font-weight:800;text-transform:uppercase;color:#80cee3;letter-spacing:.5px}
.ld193-fin-grid b{font-size:19px;color:#f7feff;white-space:nowrap}
.ld193-worksheet-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0 10px;border:1px solid #167daa;border-radius:9px;overflow:hidden}
.ld193-worksheet-tabs button{background:#073354;color:#dff7ff;border:0;border-right:1px solid #1c80a8;padding:13px 5px;font-size:13px;font-weight:800;cursor:pointer}
.ld193-worksheet-tabs button:last-child{border-right:0}.ld193-worksheet-tabs button.active{background:#05a9dd;color:#001a2c}
.ld193-sheet-panel{min-width:0;background:#061e35;border:1px solid #255d7e;border-radius:9px;padding:10px}
.ld193-table-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 1px 10px}
.ld193-table-head b{font-size:13px;color:#ecf9ff}.ld193-table-head small{display:block;font-size:11px;color:#9ac8d8;margin-top:4px}
.ld193-label{font-size:10px;font-weight:800;color:#8deaff;border:1px solid #2494a5;border-radius:10px;padding:4px 8px;white-space:nowrap}
.ld193-grid-scroll{max-height:540px;overflow:auto;border:1px solid #245c78;border-radius:6px}
.ld193-grid{width:100%;border-collapse:collapse;font-size:12px;min-width:620px}
.ld193-grid th,.ld193-grid td{border-bottom:1px solid #244a65;padding:8px 10px;vertical-align:top;white-space:normal;min-width:55px;overflow-wrap:anywhere}
.ld193-grid th{background:#0d3653;color:#99ddf7;text-align:left;position:sticky;top:0;z-index:1}
.ld193-grid td{color:#e0f2ff}.ld193-grid td.ld193-number{font-variant-numeric:tabular-nums;text-align:right}
.ld193-grid td sup{color:#35d2e6;margin-left:3px;font-size:10px}.ld193-grid tr:nth-child(even){background:#0a2944}
.ld193-review-banner{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#0b3146;border:1px solid #158fb3;border-radius:10px;margin-top:10px;padding:12px 16px;color:#d5f4ff}
.ld193-review-banner div{display:grid;gap:5px}.ld193-review-banner strong{font-size:13px;color:#53daf6}.ld193-review-banner span{font-size:12px;color:#b4d3e2}
.ld193-load-label{cursor:pointer;padding:10px 14px;border:1px solid #20c7f0;color:#002339;background:#24c8e9;border-radius:8px;font-size:12px;font-weight:850;white-space:nowrap}
.ld193-warnings{margin:11px 0;padding:12px 14px;border-radius:7px;background:#51370b55;border:1px solid #e1a52c;color:#ffdea5;font-size:12px}
.ld193-warnings b{font-size:13px}.ld193-warnings p{margin:6px 0;line-height:1.5}
.ld193-no-source{padding:25px;text-align:center;color:#a3cbe0;font-size:13px}
.ld193-hint{color:#a2bfce;font-size:11px;line-height:1.6;padding:6px 3px 0}
.ld193-summary-stack{display:grid;gap:5px}.ld193-summary-stack>div{display:flex;align-items:center;justify-content:space-between;padding:14px;border:1px solid #244d6c;background:#0c2b48;border-radius:5px}
.ld193-summary-stack>div.ld193-final{background:#0c5065;border-color:#0db3cd;font-weight:800}
.ld193-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:12px;font-size:11px;color:#a5c9d9;line-height:1.5}
.ld193-bottom button{background:#16455c;border:1px solid #41657a;color:#9ac3d5;padding:10px 12px;border-radius:7px;opacity:.8;cursor:not-allowed;white-space:nowrap}
/* Step 192 Day mode: remove dark-on-dark inherited colors and keep minimum contrast. */
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-period-sidebar,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-main{background:#f8fcff;color:#142b3b;border-color:#b1ccdc}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-main-heading h3,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-fin-grid b,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-table-head b{color:#16334d}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-main-heading p,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-sidebar-note,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-no-years,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-table-head small,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-hint,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-bottom{color:#34576b}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-yearhead,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-main-heading{border-color:#cadfe9}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-month,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-years button{background:#eef7fc;color:#17415a;border-color:#bad6e4}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-month.active,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-years button.active{background:#007bac;color:#fff}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-month small,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-yearhead span{color:#365a73}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-review-banner,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-source-block,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-fin-grid>div,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-sheet-panel{background:#edf7ff;border-color:#bfd7e6;color:#18394f}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-review-banner span,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-source-block span,.ld192-overhead-shell[data-ld166-theme="day"] .ld193-source-block small{color:#30556d}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-grid th{background:#dbeff9;color:#174b6a}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-grid td{color:#1f4053;border-color:#d6e7f2}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-grid tr:nth-child(even){background:#eef6fc}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-worksheet-tabs button{background:#edf7fc;color:#22506a}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-worksheet-tabs button.active{background:#039ccc;color:#fff}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-grid-scroll{border-color:#c4deeb}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-no-source{color:#345d74}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-summary-stack>div{background:#eef7ff;color:#214456;border-color:#bed9e8}
.ld192-overhead-shell[data-ld166-theme="day"] .ld193-warnings{color:#754909;background:#fff8dd;border-color:#d0ab49}
@media(max-width:1180px){.ld193-closing-grid{grid-template-columns:1fr}.ld193-period-list{max-height:220px}.ld193-fin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:630px){.ld193-fin-grid{grid-template-columns:1fr 1fr}.ld193-closing-grid{gap:8px}.ld193-main{padding:9px}.ld193-main-heading,.ld193-review-banner,.ld193-bottom{flex-direction:column;align-items:stretch}.ld193-status{white-space:normal}.ld193-worksheet-tabs button{font-size:11px;padding:10px 2px}.ld193-op-tabs button{min-width:95px}.ld193-load-label{text-align:center}}
