/* V3.4.0 — плотные строки и адаптивная ширина нарядов */
.pk-tire-records{min-width:0;font-size:15px;line-height:1.35}
.pk-tire-records>section{padding:12px}
.pk-tire-records>section>form{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px!important;align-items:end}
.pk-tire-records>section>form>*{width:auto!important;min-width:0!important;grid-column:span 2}
.pk-tire-records>section>form>div:nth-child(5){grid-column:span 4}
.pk-tire-records>section>form label{margin-bottom:3px}
.pk-tire-records .pk-orders-table{width:100%;min-width:1360px;table-layout:fixed}
.pk-orders-table th,.pk-orders-table td{padding:6px 8px!important;vertical-align:middle;line-height:1.35!important}
.pk-orders-table th{font-size:12px!important;letter-spacing:.025em}
.pk-orders-table th:nth-child(1){width:60px}.pk-orders-table th:nth-child(2){width:90px}.pk-orders-table th:nth-child(3){width:110px}
.pk-orders-table th:nth-child(4){width:150px}.pk-orders-table th:nth-child(5){width:auto}.pk-orders-table th:nth-child(6){width:150px}
.pk-orders-table th:nth-child(7){width:160px}.pk-orders-table th:nth-child(8){width:64px}.pk-orders-table th:nth-child(9){width:145px}
.pk-orders-table th:nth-child(10){width:132px}.pk-orders-table th:nth-child(11){width:124px}
.pk-orders-table td:nth-child(4),.pk-orders-table td:nth-child(5){max-width:none}
.pk-orders-table input,.pk-orders-table select{min-height:32px;padding-top:3px!important;padding-bottom:3px!important;font-size:15px!important}
.pk-orders-table [data-master-picker] summary{padding:0!important;line-height:1.3!important;font-size:15px!important}
[data-master-picker]>summary{list-style:none!important;appearance:none;-webkit-appearance:none}
[data-master-picker]>summary::marker,[data-master-picker]>summary::-webkit-details-marker{display:none!important;content:''}
[data-master-picker]>summary::after{display:none!important}
.pk-action-group{display:flex;justify-content:flex-end;gap:4px;align-items:center}
.pk-action-group button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;cursor:pointer;font-size:23px!important;line-height:1}
.pk-action-group button:hover{background:var(--color-surface-variant,#8882);border-color:var(--color-outline-variant,#8884)}
.pk-action-group .pk-delete{color:var(--color-error,#c43a36);font-size:26px!important}
.pk-action-group button:focus-visible,.pk-total summary:focus-visible{outline:2px solid var(--color-primary,#d6a83d);outline-offset:2px}
.pk-total summary{cursor:pointer;list-style:none;display:flex;flex-direction:column;gap:1px;min-height:36px;justify-content:center}
.pk-total summary::-webkit-details-marker{display:none}.pk-total summary::marker{content:''}
.pk-total-summary small{font-size:10px;line-height:1.2;opacity:.65;font-family:Arial,sans-serif}
.pk-total-summary strong{font-size:17px;line-height:1.3;white-space:nowrap;color:var(--color-primary,#a87813)}
.pk-total-breakdown{font:13px/1.5 Arial,sans-serif;display:grid;gap:6px;white-space:normal;padding-top:10px}
.pk-total-breakdown input{width:100%;min-width:0}.pk-total-breakdown label{display:grid;gap:3px}
.pk-total-breakdown [data-consumables-editor]>button{padding:5px;font-size:13px!important;overflow-wrap:anywhere}
@media(max-width:900px){.pk-tire-records>section>form{grid-template-columns:repeat(4,minmax(0,1fr))}.pk-tire-records>section>form>div:nth-child(5){grid-column:span 4}.pk-orders-table .pk-row-actions,.pk-orders-table .pk-actions-heading{position:sticky;right:0;background:var(--color-surface,#fff);z-index:2;box-shadow:-4px 0 8px #0001}}
@media(max-width:480px){.pk-tire-records>section>form{grid-template-columns:repeat(2,minmax(0,1fr))}.pk-tire-records>section>form>div:nth-child(5){grid-column:span 2}.pk-tire-records>section{padding:10px}.pk-action-group button{height:40px}}
@media(max-width:899px){
.pk-crm-header{height:auto!important;min-height:56px;flex-wrap:wrap;gap:8px;padding:8px!important}
.pk-crm-header>div:first-child{width:100%;min-width:0;margin:0;gap:8px}
.pk-crm-header nav{flex:1;min-width:0;overflow-x:auto;gap:6px;margin:0;padding-bottom:3px}
.pk-crm-header nav>*{flex-shrink:0;margin:0!important}
.pk-crm-header>div:last-child{margin-left:auto}
}

/* V3.4.1 — единая высота полей, действие рядом с расходниками, итог ниже. */
.pk-tire-records>section>form>div>label,
.pk-tire-records>section>form>label>span{display:block;font-size:12px!important;font-weight:700;line-height:16px;min-height:16px;margin:0 0 3px}
.pk-tire-records>section>form>label{gap:0!important;margin:0!important}
.pk-tire-records>section>form input:not([type="checkbox"]),
.pk-tire-records>section>form select,
.pk-tire-records>section>form [data-master-picker]>summary,
.pk-tire-records>section>form>button{box-sizing:border-box;width:100%!important;min-width:0;height:40px!important;min-height:40px!important;padding:0 12px!important;font-size:14px!important;line-height:20px}
.pk-tire-records>section>form>button{align-self:end;justify-self:stretch}
.pk-tire-records>section>form>[data-order-amounts]{order:1;grid-column:1/-1!important;display:flex;align-items:center;flex-wrap:wrap;gap:6px 24px;margin:0;padding-top:2px;font-size:14px;line-height:20px}


/* V3.6.2 — экраны 1280–1439 px: таблица без обрезки колонки «Действия», шапка и форма магазина без наложений. */
.velocity-card:has(>.pk-orders-table){overflow-x:auto!important}
@media (min-width:900px) and (max-width:1439px){
body.prokolesa-desktop header nav>*{margin-inline:0!important;min-width:0!important;padding:0 10px!important}
body.prokolesa-desktop header>div>div:first-child{gap:12px}
body.prokolesa-desktop header>div>div:first-child>*{margin-inline:0!important}
.pk-tire-records .pk-orders-table{min-width:0}
.pk-orders-table th:nth-child(1){width:56px}.pk-orders-table th:nth-child(2){width:78px}.pk-orders-table th:nth-child(3){width:100px}
.pk-orders-table th:nth-child(4){width:118px}.pk-orders-table th:nth-child(6){width:118px}
.pk-orders-table th:nth-child(7){width:128px}.pk-orders-table th:nth-child(8){width:56px}.pk-orders-table th:nth-child(9){width:118px}
.pk-orders-table th:nth-child(10){width:118px}.pk-orders-table th:nth-child(11){width:112px}
.pk-orders-table th,.pk-orders-table td{padding:6px 5px!important}
.pk-orders-table input,.pk-orders-table select,.pk-orders-table [data-master-picker] summary{font-size:14px!important}
.pk-action-group{gap:2px}.pk-action-group button{width:30px;height:30px;min-width:30px;font-size:20px!important}.pk-action-group .pk-delete{font-size:22px!important}
.pk-total-summary strong{font-size:15px}
}
@media (min-width:768px) and (max-width:1439px){
main section>form.md\:flex-row:has(>[data-order-amounts]){display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px!important;align-items:end}
main section>form.md\:flex-row:has(>[data-order-amounts])>*{width:auto!important;min-width:0!important;grid-column:span 2}
main section>form.md\:flex-row:has(>[data-order-amounts])>:nth-child(5){grid-column:span 4}
main section>form.md\:flex-row:has(>[data-order-amounts])>:nth-child(6),main section>form.md\:flex-row:has(>[data-order-amounts])>button{grid-column:span 3}
main section>form.md\:flex-row:has(>[data-order-amounts])>button{width:100%!important}
main section>form.md\:flex-row:has(>[data-order-amounts])>[data-order-amounts]{order:1;grid-column:1/-1!important;display:flex;flex-wrap:wrap;gap:6px 24px;margin:0}
}
