.tire-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.tire-actions .secondary,.tire-actions .primary{padding:9px 12px;font-size:13px}.tire-sections{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}.tire-sections>div{border:1px solid #dfe3e8;border-radius:12px;padding:12px;display:grid;gap:8px}.tire-sections strong{font-size:24px}.tire-sections span{font-size:12px;color:#68717d}.tire-sections progress{width:100%;height:7px;accent-color:#cf4c00}.tire-dialog{width:min(900px,94vw);max-width:94vw;max-height:92dvh}.tire-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tire-grid label{display:grid;gap:6px}.tire-summary{display:flex;gap:20px;align-items:center;margin:20px 0}.tire-summary strong{font-size:26px}.tire-price{font-size:20px;font-weight:700}.tire-photos{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}.tire-photos img{width:130px;height:110px;object-fit:cover;border-radius:10px}.tire-order-row>td:first-child{position:relative;isolation:isolate}.tire-order-row>td:first-child:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background-image:url("/assets/tire-tread.svg");background-position:left center;transform:skewX(-18deg)}@media(max-width:700px){.tire-sections{grid-template-columns:repeat(4,1fr)}.tire-grid{grid-template-columns:1fr}.tire-dialog{padding:20px}.tire-summary{flex-direction:column;align-items:flex-start}}

.tire-workspace>.card{background:var(--surface,#fff);border:1px solid #e1e5eb;border-radius:12px;padding:18px;margin-top:16px}.tire-workspace .section-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.tire-workspace .section-title input{max-width:380px}.tire-workspace h2{font-size:18px}.tire-workspace .report-scroll{overflow:auto}.tire-workspace td{min-width:100px}

.orders-compact .order-line .line-name.tire-storage-name{position:relative;padding-right:152px}.orders-compact .order-line .tire-storage-name>input[data-key="name"]{width:100%;min-width:0}.orders-compact .order-line .tire-storage-name>.tire-row-actions{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:flex;gap:4px;align-items:center}.orders-compact .order-line .tire-row-actions>button.secondary{box-sizing:border-box;font:inherit;font-size:11px;line-height:1;padding:3px 7px;min-height:0;height:24px;margin:0;border-radius:5px;white-space:nowrap}

/* Keep storage actions inside the compact work row, including theme overrides. */
.orders-compact .order-line .tire-row-actions>button.secondary{height:22px!important;min-height:22px!important;max-height:22px!important;padding:2px 7px!important;font-size:11px!important;line-height:16px!important;box-shadow:none!important}

/* Фоновая метка цеха в первой ячейке строки заказ-наряда (по образцу шиномонтажа). */
.order-mark-row>td:first-child{position:relative;isolation:isolate}
.order-mark-row>td:first-child:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background-repeat:repeat-x;background-position:left center}
.order-mark-1>td:first-child:before{background-image:url("/assets/order-mark-paint.svg?v=1");background-position:left top;background-size:auto 100%}
.order-mark-2>td:first-child:before{background-image:url("/assets/order-mark-exhaust.svg?v=1");background-size:auto 78%}
.order-mark-5>td:first-child:before{background-image:url("/assets/order-mark-wash.svg?v=1");background-size:auto 100%}
html[data-theme=dark] .order-mark-row>td:first-child:before{filter:invert(1) hue-rotate(180deg);opacity:.9}
