#warehouseRoot,#ownerStockV52{font:14px/1.5 Arial,sans-serif;color:#e9eff3;margin:12px 0 25px}
#warehouseRoot *,#ownerStockV52 *{box-sizing:border-box}
#warehouseRoot h2,#ownerStockV52 h2{font-size:22px;margin:0}
#warehouseRoot h3,#ownerStockV52 h3{font-size:18px}
#warehouseRoot p,#ownerStockV52 p{margin:5px 0 10px}
#warehouseRoot button,#ownerStockV52 button,#warehouseRoot input,#ownerStockV52 input,#warehouseRoot select{min-height:40px;background:#172631;color:#fff;border:1px solid #415666;border-radius:7px;padding:8px 10px;font:inherit;max-width:100%}
#warehouseRoot button,#ownerStockV52 button{cursor:pointer}
#warehouseRoot button:disabled,#ownerStockV52 button:disabled{opacity:.5}
#warehouseRoot .whPrimary,#ownerStockV52 .whPrimary{background:#e52541;border-color:#e52541;font-weight:700}
.whHeading,.whFlex,.whTabs{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.whHeading p{font-size:12px;color:#b0c0cb}.whTabs{justify-content:flex-start;margin:12px 0}.whTabs button.whOn{background:#e52541;border-color:#e52541;font-weight:bold}
.whPanel{background:#101a22;border:1px solid #324653;border-radius:12px;padding:16px;margin:12px 0}
.whPanel label{color:#c1d4df;display:block;font-size:12px;margin:6px 0}.whPanel label input{display:block;width:100%;min-width:155px;margin-top:5px}
.whValue{display:flex;align-items:center;gap:5px}.whValue input{min-width:90px;max-width:120px!important}.whValue small{white-space:nowrap;color:#a1b7c8}
.whTableScroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:10px 0}.whTableScroll table{width:100%;min-width:680px;border-collapse:collapse}.whTableScroll td,.whTableScroll th{padding:10px;border-bottom:1px solid #334650;text-align:left;vertical-align:middle}.whTableScroll th{font-size:12px;color:#b8d0dd}.whTableScroll select{width:100%;min-width:220px}
.whTableScroll input{width:130px}.whRemove{color:#f3a1a8!important}.whHint,.whNote{color:#b6c5d0;font-size:12px;line-height:1.6}.whError{color:#ffc0c8;border-left:3px solid #fd5068;padding:8px;background:#3f2430}.whNotice{color:#ffe2a3;background:#312e23;padding:10px;border-radius:6px}.whPlus{color:#8be5af}.whMinus{color:#ff9daa}.whKpi{flex:1 1 170px;border:1px solid #365262;background:#182a33;padding:12px;border-radius:8px}.whKpi b{display:block;font-size:20px}.whFilter{max-width:310px}.whOpenLine{display:inline-flex;vertical-align:top;min-width:210px;max-width:280px;margin-right:12px}.whOpenLine input{max-width:130px}.whOpening summary{padding:8px;cursor:pointer;font-weight:bold;color:#ffd26b}
@media(max-width:730px){#warehouseRoot,#ownerStockV52{font-size:12px}.whPanel{padding:10px}.whHeading h2{font-size:19px}.whTableScroll table{min-width:650px}.whTableScroll td,.whTableScroll th{padding:8px}}

/* Owner-only document line edit / audit V53 */
#warehouseRoot .whLineActions{white-space:nowrap;min-width:215px}
#warehouseRoot .whLineActions button{display:inline-block;margin:2px 3px;min-height:34px;padding:5px 8px;font-size:12px}
#warehouseRoot .whLineActions .whDanger{color:#ffc1c7;border-color:#9f4151}
#warehouseRoot tr.whArchived{opacity:.65}
#warehouseRoot .whEditPanel{border-color:#dcb15e;margin-top:15px}
#warehouseRoot .whEditPanel label select{display:block;margin-top:5px;min-width:200px;width:100%}
#warehouseRoot .whAuditEntry{padding:10px 0;border-bottom:1px solid #3d4c56}
#warehouseRoot .whAuditEntry small,#warehouseRoot .whAuditEntry span{display:block;line-height:1.55}

/* V54: owner can enter unit price or line total. */
#warehouseRoot .whLine .whUnit[readonly],#warehouseRoot .whLine .whTotal[readonly],#warehouseRoot .whEditPanel input[readonly]{background:#26323a;color:#c0d2de}
#warehouseRoot .whLine .whMode{min-width:150px;max-width:195px;font-size:12px;margin-bottom:4px}
#warehouseRoot .whLine .whUnit{min-width:100px;max-width:150px}
#warehouseRoot .whTableScroll table{min-width:800px}

/* MYASORUBKA_WAREHOUSE_STOCK_V631: складские вкладки для владельца */
#warehouseRoot .whTabs{justify-content:flex-start;gap:10px}
#warehouseRoot .whTabs button{flex:0 1 auto;font-weight:600}
#whStockHere .whPanel{margin-top:12px}
#whStockHere .whFilter{max-width:400px}
#whStockHere .whTableScroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:650px){#warehouseRoot .whTabs button{flex:1 1 45%;min-height:45px}}
