.sv-open{margin:2px 0;padding:5px 9px;border:1px solid #a7d9cf;border-radius:5px;background:#e8f7f3;color:#075e50;font-weight:700;white-space:nowrap}#csHeading:has(.sv-open){flex-wrap:wrap!important}#fhStockMoney{width:min(1440px,96vw);max-width:none;height:92vh;max-height:96vh;padding:0;border:1px solid #cad5e4;border-radius:10px;color:#172334;background:#fff}#fhStockMoney::backdrop{background:#101b2c88}#fhStockMoney[open]{display:flex;flex-direction:column}#fhStockMoney header{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #d8e1ea;flex-shrink:0}#fhStockMoney header>div{flex:1;min-width:0}#fhStockMoney h2{font-size:19px;margin:0 0 3px}#fhStockMoney h3{font-size:17px;margin:0 0 8px}#fhStockMoney button,#fhStockMoney input,#fhStockMoney select{font:inherit;padding:6px 8px;border:1px solid #c4d0df;border-radius:5px;min-width:0;background:#fff;color:#172334}#fhStockMoney button{cursor:pointer;font-weight:700}#fhStockMoney button:hover{background:#eaf6f4}#fhStockMoney .sv-body{padding:12px 16px;overflow-y:auto;min-height:0}#fhStockMoney .sv-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}#fhStockMoney .sv-stats>div{padding:12px;border:1px solid #d4e0e8;border-radius:7px;background:#f6f9fc}#fhStockMoney .sv-stats span,#fhStockMoney small{display:block;font-size:12px;color:#526477;line-height:1.45}#fhStockMoney .sv-stats strong{display:block;font-size:21px;margin:5px 0;overflow-wrap:anywhere}#fhStockMoney .sv-tools{display:flex;align-items:end;flex-wrap:wrap;gap:8px}#fhStockMoney label{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:4px}#fhStockMoney .sv-search{flex:1;min-width:160px}#fhStockMoney .sv-note{padding:8px 10px;background:#ecf8f4;border:1px solid #c4e5dc;border-radius:5px;font-size:12px;line-height:1.5}#fhStockMoney p{line-height:1.5;font-size:13px}#fhStockMoney .sv-scroll{width:100%;overflow:auto;border:1px solid #d5dfeb;border-radius:6px}#fhStockMoney table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}#fhStockMoney th,#fhStockMoney td{text-align:left;vertical-align:top;padding:8px;border-bottom:1px solid #dce4ed;overflow-wrap:anywhere;white-space:normal}#fhStockMoney th{background:#f0f5f9;font-size:12px}#fhStockMoney th:first-child{width:25%}#fhStockMoney th:nth-child(2){width:7%}#fhStockMoney th:last-child{width:8%}#fhStockMoney .sv-cash{margin-top:18px;padding-top:12px;border-top:1px solid #d6e0e8}#fhStockMoney summary{cursor:pointer;font-weight:700}#fhStockMoney #svStatus{min-height:20px;margin:0;color:#075e50}#fhStockMoney #svSource{font-size:12px;color:#526477}#fhStockMoney #svImport{margin:10px 0}@media(max-width:760px){#fhStockMoney{width:98vw;height:96vh}#fhStockMoney header{flex-wrap:wrap;padding:8px}#fhStockMoney header>div{flex-basis:100%}#fhStockMoney .sv-body{padding:8px}#fhStockMoney .sv-stats{grid-template-columns:1fr}#fhStockMoney table,#fhStockMoney tbody,#fhStockMoney tr,#fhStockMoney td{display:block;width:auto}#fhStockMoney thead{display:none}#fhStockMoney td{border:0;padding:4px 8px}#fhStockMoney tr{border-bottom:1px solid #c9d6e1;padding:6px 0}#fhStockMoney #svBooks td:nth-child(2)::before{content:'Copies: ';font-weight:bold}#fhStockMoney #svBooks td:nth-child(3)::before{content:'MRP: ';font-weight:bold}#fhStockMoney #svBooks td:nth-child(4)::before{content:'Per copy: ';font-weight:bold}#fhStockMoney #svBooks td:nth-child(5)::before{content:'Stock sale value: ';font-weight:bold}}

#fhStockMoney,#fhStockMoney *{box-sizing:border-box}#fhStockMoney{font-family:Arial,sans-serif;font-size:14px}#fhStockMoney .sv-body{overflow-x:hidden}

/* forecast-columns-r3 */
#svForecast table th:first-child{width:26%}#svForecast table th:nth-child(2){width:12%}#svForecast table th:nth-child(3),#svForecast table th:last-child{width:31%}#svCoverage table th:nth-child(2){width:22%}#svCoverage table th:last-child{width:auto}

/* manual-values-r4 */
#svSettings[hidden]{display:none!important}#svSettings{margin:8px 0 18px;padding:12px;border:1px solid #8fcfc3;border-radius:7px;background:#f3fcf9}#svSettings .sv-entry-table th:first-child{width:28%}#svSettings .sv-entry-table th:nth-child(2),#svSettings .sv-entry-table th:last-child{width:36%}#svSettings input{width:100%}#svSettings .sv-scroll{margin:12px 0 6px}#svSaveValues{background:#087c6b!important;color:#fff!important}#svSaveValues:disabled{opacity:.5;cursor:default}#fhStockMoney .sv-error{color:#b42318!important}#svDraftStatus{min-height:20px}@media(max-width:760px){#svSettings .sv-entry-table td:nth-child(2)::before{content:"Minimum";display:block;font-weight:bold}#svSettings .sv-entry-table td:nth-child(3)::before{content:"Maximum";display:block;font-weight:bold}}

/* approximate-value-provenance */
#fhStockMoney .sv-approx{display:inline-block;margin-left:6px;padding:2px 5px;border-radius:4px;background:#fff0be;color:#7c4300;font-size:12px;font-weight:bold}#svSettings .sv-estimate-toggle{display:flex;align-items:center;gap:7px;margin:10px 0;font-weight:bold}#svSettings input[type=checkbox]{width:auto}#svSettings .sv-estimate-note{display:block;margin:8px 0}#svSettings textarea{display:block;width:100%;padding:7px;font:inherit;border:1px solid #cbd5e1;border-radius:5px;resize:vertical}

#svSettings .sv-estimate-toggle{flex-direction:row;justify-content:flex-start;text-align:left}

/* Read-only values in the existing Inventory list. */
#csInventoryList .sv-inventory-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:7px 9px;margin:0 0 6px;border:1px solid var(--cs-border,#cbd5e1);border-radius:6px;background:var(--cs-soft,#f8fafc);font-size:12px}
#csInventoryList .sv-inventory-summary label{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}
#csInventoryList .sv-inventory-summary select{min-height:28px;padding:3px 5px;font-size:12px;border:1px solid var(--cs-border,#cbd5e1);border-radius:4px;background:var(--cs-bg,#fff);color:var(--cs-ink,#172334)}
#csInventoryList .sv-inventory-total{display:flex;gap:5px;align-items:baseline;white-space:nowrap}
#csInventoryList .sv-inventory-total strong{font-size:13px;font-variant-numeric:tabular-nums}
#csInventoryList .sv-inventory-caption{color:var(--cs-muted,#526477)}
#csInventoryList .sv-inventory-help{padding:3px 5px;min-height:25px;font-size:11px;color:var(--cs-accent,#087c6b)}
#csInventoryList .sv-values-table{table-layout:fixed;width:100%;min-width:0}
#csInventoryList .sv-values-table th,#csInventoryList .sv-values-table td{min-width:0;overflow-wrap:anywhere;font-size:12px;padding:7px 6px}
#csInventoryList .sv-values-table th:nth-child(5),#csInventoryList .sv-values-table .cs-clearance{min-width:0}
#csInventoryList .sv-values-table .cs-row-actions{white-space:normal}
#csInventoryList .sv-values-table .cs-row-actions button{font-size:11px;padding:3px 5px;min-height:27px}
#csInventoryList .sv-inventory-money{text-align:right;font-variant-numeric:tabular-nums;vertical-align:middle}
#csInventoryList .sv-inventory-money strong{display:block;font-size:12px;white-space:nowrap}
#csInventoryList .sv-inventory-money small{display:block;font-size:10px;line-height:14px;color:var(--cs-muted,#526477);white-space:nowrap}
#csInventoryList [data-sv-money][hidden],#csInventoryList [data-sv-total][hidden]{display:none!important}
@media(max-width:1000px){#csInventoryList .sv-values-table colgroup,#csInventoryList .sv-values-table thead{display:none}#csInventoryList .sv-values-table,#csInventoryList .sv-values-table tbody{display:block}#csInventoryList .sv-values-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--cs-border,#cbd5e1);padding:6px 0}#csInventoryList .sv-values-table td{display:block;width:auto;border:0;text-align:left;padding:4px 7px}#csInventoryList .sv-values-table td:first-child,#csInventoryList .sv-values-table .cs-row-actions{grid-column:1/-1}#csInventoryList .sv-values-table td:nth-child(4)::before{content:'Available: ';font-weight:bold}#csInventoryList .sv-inventory-mrp::before{content:'MRP value';display:block;font-size:11px}#csInventoryList .sv-inventory-min::before{content:'Min. stock value';display:block;font-size:11px}#csInventoryList .sv-inventory-max::before{content:'Max. stock value';display:block;font-size:11px}}
@media(max-width:500px){#csInventoryList .sv-inventory-summary{gap:6px 10px}#csInventoryList .sv-inventory-caption{width:100%}#csInventoryList .sv-values-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* One compact Inventory toolbar; other stock forms and scanning are unchanged. */
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch){height:34px;min-height:34px;max-height:34px;align-items:center;flex-wrap:nowrap;gap:5px;margin-bottom:4px}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) #csHeading{display:flex!important;align-items:center;flex-wrap:nowrap!important;flex:0 0 auto;min-width:0;gap:6px;line-height:18px;white-space:nowrap}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) #csHeading h2{display:inline-flex;align-items:center;flex:0 0 auto;gap:4px;margin:0!important;font-size:13px!important;line-height:18px!important;white-space:nowrap}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) #csHeading .cs-availability{display:inline-flex;align-items:center;flex:0 0 auto;gap:3px;font-size:12px;line-height:18px;white-space:nowrap}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) #csHeading .cs-availability strong{font-size:12px;line-height:18px}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) #csStockMoney{margin:0!important;flex:0 0 auto}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) .cs-tabs{align-items:center;flex-wrap:nowrap;padding:0;gap:3px}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) :is(button,input[type="search"],select){height:28px!important;min-height:28px!important;max-height:28px;line-height:18px!important;padding:3px 5px!important;margin:0!important;font-size:12px!important;white-space:nowrap}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) #csInventoryToolbar{display:flex;align-items:center;flex:1 1 260px;min-width:260px}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) .cs-inventory-tools{align-items:center;width:100%;min-height:28px;margin:0;gap:5px}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) .cs-inventory-tools label{font-size:12px;line-height:18px}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) .cs-checkbox{display:inline-flex;align-items:center;flex-direction:row;min-height:28px;gap:4px}
html body #appShell #sview-central .cs-toolbar:has(#csInventorySearch) #csInventoryLow{width:14px;height:14px;min-height:14px;flex:0 0 14px;margin:0}

/* Short, aligned Inventory headings; forecast help lives below the table. */
#csInventoryList .cs-inventory-table th:nth-child(4),#csInventoryList .cs-inventory-table th:nth-child(5){white-space:nowrap;overflow-wrap:normal;word-break:normal;vertical-align:middle}
