/* Ozon stocks: bounded content, independent from shared grid row measurement. */
.dw-widget[data-widget="ozon-stock"] .dw-content{height:100%;min-height:0;overflow:hidden!important}
.os-widget{display:flex;flex-direction:column;height:100%;min-height:0;color:var(--dw-ink,#142544);text-align:left}
.os-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.os-heading h2{margin:0;text-align:left}.os-heading>button{flex:none;min-height:44px}
.os-body{display:flex;flex-direction:column;min-height:0;flex:1}.os-date{padding:4px 0 10px;color:var(--dw-muted,#52627b)}
.os-date button{background:none;color:inherit;border:0;text-decoration:underline;min-height:44px}
.os-widget .os-table-scroll{min-height:0;flex:1;overflow:auto!important;overscroll-behavior:contain;touch-action:auto}
.os-widget table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:540px}
.os-widget th:first-child{width:34%}.os-widget th:not(:first-child){width:22%}
.os-widget td,.os-widget th{padding:10px 8px;border-bottom:1px solid var(--dw-line,#dbe3ef);text-align:right;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:normal}
.os-widget th:first-child,.os-widget td:first-child{text-align:left}
.os-widget thead th{position:sticky;top:0;z-index:2;background:var(--dw-bg,#fff)}
.os-widget tfoot th,.os-widget tfoot td{position:sticky;bottom:0;z-index:2;background:var(--dw-bg,#fff);font-weight:700;border-top:2px solid var(--dw-line,#dbe3ef)}
.os-widget th button{background:none;color:inherit;border:0;box-shadow:none;min-height:44px;padding:0;font:inherit;display:flex;align-items:center;text-align:right;width:100%;justify-content:flex-end;gap:4px}.os-sort{display:inline-block;min-width:12px}
.os-widget tbody tr:hover,.os-widget tbody tr:focus-within{background:color-mix(in srgb,var(--dw-blue,#2453d9) 8%,transparent)}
.os-product{display:flex;align-items:center;gap:8px;background:none!important;box-shadow:none!important;color:inherit;border:0;padding:0;min-height:44px;text-align:left;width:100%;font:inherit}.os-product>span:last-child{overflow-wrap:anywhere}.os-product img{width:42px!important;height:56px!important;object-fit:cover;border-radius:6px}.os-product .product-label{min-width:0}.os-product .product-label-text{display:none}
.os-popup{box-sizing:border-box;width:min(1000px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;color:var(--dw-ink,#142544);background:var(--dw-bg,#fff);border:1px solid var(--dw-line,#dbe3ef);border-radius:18px}
.os-popup .dw-popup-heading{margin-bottom:20px}.os-popup-tools{display:flex;justify-content:space-between;align-items:center;gap:12px}.os-popup label{display:block}.os-popup input{display:block;width:100%;box-sizing:border-box;min-height:44px;margin:8px 0 16px}
.os-products{display:flex;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;touch-action:auto;padding:0 0 12px;min-width:0;text-align:left}
.os-products article{flex:0 0 190px;min-width:0;border:1px solid var(--dw-line,#dbe3ef);border-radius:12px;overflow:hidden;background:var(--dw-bg,#fff)}
.os-photo{height:220px;overflow:hidden}.os-photo img{display:block!important;width:100%!important;height:220px!important;object-fit:cover;border-radius:0!important}.os-photo .product-label{display:block!important;width:100%;height:100%}.os-photo .product-label-text{display:none}.os-products h3{font-size:1rem;margin:10px;overflow-wrap:anywhere}.os-products dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:10px;font-size:.9rem}.os-products dt{text-align:left;overflow-wrap:normal}.os-products dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.os-chart{margin:18px 0}.os-chart figcaption{font-weight:600}.os-chart svg{display:block;width:100%;height:auto;min-height:130px;overflow:visible}.os-chart text{fill:currentColor;font:12px sans-serif}.os-axis{stroke:var(--dw-line,#dbe3ef);fill:none}.os-line{stroke:var(--dw-blue,#2453d9);stroke-width:2;fill:none}.os-chart circle{fill:var(--dw-blue,#2453d9)}.os-chart:nth-child(2) .os-line{stroke:#17847a}.os-chart:nth-child(2) circle{fill:#17847a}
.os-history details{overflow:auto}.os-history summary{min-height:44px;cursor:pointer}.os-history table{width:100%;font-variant-numeric:tabular-nums}.os-history td,.os-history th{text-align:right;padding:8px}.os-history td:first-child,.os-history th:first-child{text-align:left}
@media(max-width:600px){.os-heading{align-items:flex-start;flex-wrap:wrap}.os-heading .dw-title{font-size:1rem}.os-popup{padding:20px}.os-products article{flex-basis:180px}.os-widget th:first-child{width:28%}.os-widget th:not(:first-child){width:24%}}

.os-product .product-label,.os-photo .product-label{display:none!important}.os-product .product-identity{flex:none}.os-photo .product-identity,.os-photo .ad-product-photo{display:block!important;width:100%!important;height:100%!important}.os-photo .ad-product-photo{border:0;padding:0}.os-product .ad-product-photo{width:42px;height:56px;flex:none}

.os-popup{--dw-bg:#fff;--dw-ink:#142544;--dw-muted:#52627b;--dw-line:#dbe3ef;--dw-blue:#2453d9}[data-theme="dark"] .os-popup{--dw-bg:#162137;--dw-ink:#e3eafa;--dw-muted:#b5c4dc;--dw-line:#3e526f;--dw-blue:#b4c8ff}[data-theme="dark"] .os-chart:nth-child(2) .os-line{stroke:#65cbbf}[data-theme="dark"] .os-chart:nth-child(2) circle{fill:#65cbbf}
.os-photo .photo-placeholder{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:100%!important;box-sizing:border-box;border:0;border-radius:0;background:color-mix(in srgb,var(--dw-muted) 9%,var(--dw-bg));color:var(--dw-muted);font-size:1rem}.os-product .photo-placeholder{width:42px;height:56px;flex:none;background:color-mix(in srgb,var(--dw-muted) 9%,var(--dw-bg));color:var(--dw-muted)}
.os-popup .inline-help-button,.os-widget .inline-help-button{color:var(--dw-blue)}

.os-sort svg{display:block;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}

/* Selectable stock assets: gentle hover, persistent selection; no visible name under photo. */
.os-products article[role="button"]{cursor:pointer;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
.os-products article[role="button"]:hover{background:color-mix(in srgb,var(--dw-blue) 6%,var(--dw-bg));border-color:color-mix(in srgb,var(--dw-blue) 45%,var(--dw-line));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dw-blue) 18%,transparent)}
.os-products article[aria-pressed="true"]{background:color-mix(in srgb,var(--dw-blue) 10%,var(--dw-bg));border-color:var(--dw-blue);box-shadow:inset 0 0 0 1px var(--dw-blue)}
.os-products article[role="button"]:focus-visible{outline:2px solid var(--dw-blue);outline-offset:-4px}
.os-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.os-selection span{min-width:0;overflow-wrap:anywhere}.os-selection button{min-height:44px;flex:none}
@media(prefers-reduced-motion:reduce){.os-products article[role="button"]{transition:none}}

/* Whole stock cards and daily values without a duplicate details table. */
.os-popup{container-type:inline-size}
.os-products{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/4);scroll-snap-type:x proximity}
.os-products article{width:auto;scroll-snap-align:start}
.os-photo{height:auto;aspect-ratio:3/4}.os-photo img{height:100%!important;object-fit:contain}
@container(max-width:820px){.os-products{grid-auto-columns:calc((100% - 32px)/3)}}
@container(max-width:620px){.os-products{grid-auto-columns:calc((100% - 16px)/2)}}
@container(max-width:420px){.os-products{grid-auto-columns:100%}}
.os-widget th:first-child{width:64px}.os-widget th:not(:first-child){width:auto}.os-product{justify-content:center}
.os-chart{position:relative}.os-tooltip{position:absolute;right:8px;top:26px;z-index:1;max-width:calc(100% - 16px);box-sizing:border-box;padding:6px 10px;border:1px solid var(--dw-line);border-radius:8px;background:var(--dw-bg);color:var(--dw-ink);pointer-events:none;font-variant-numeric:tabular-nums}
.os-day-hit{fill:transparent;stroke:none}.os-day-hit:hover,.os-day-hit:focus{fill:color-mix(in srgb,var(--dw-blue) 9%,transparent);outline:none}
