/* Commercial grids only; Supply and all permission rules keep their behavior. */
.desk-shell table.tms-table[data-commercial-polished=true]>thead>tr>th{background:#153c49;border-right-color:#365965;border-bottom:2px solid #19a5ac;font-size:12px;letter-spacing:.01em}
.desk-shell table.tms-table[data-commercial-polished=true]>tbody>tr>td{border-right-color:#e8eef1;border-bottom-color:#dbe5ea;background:#fff;vertical-align:middle;padding:8px 10px;line-height:1.35}
.desk-shell table.tms-table[data-commercial-polished=true]>tbody>tr:nth-child(even)>td{background:#f5f9fa}
.desk-shell table.tms-table[data-commercial-polished=true]>tbody>tr:hover>td{background:#edf6f7}
.desk-shell table.tms-table[data-commercial-polished=true]>tbody>tr:focus-within>td{background:#e8f4f5}
.desk-shell table.tms-table[data-commercial-polished=true][data-density=compact]>tbody>tr>td{padding:7px 8px}
.desk-shell table.tms-table[data-commercial-polished=true] .order-schedule-cell{font-variant-numeric:tabular-nums}
.order-schedule-card{position:relative;display:grid;gap:5px;width:100%;max-width:165px;min-height:46px;padding:1px 0}
.desk-shell table.tms-table[data-commercial-polished=true] .schedule-date-line>button,.schedule-date-readonly{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;min-height:20px;padding:0;border:0;border-radius:4px;color:#173e4b;background:none;text-decoration:none;font:650 13px/1.3 'Segoe UI',Arial,sans-serif;cursor:pointer;white-space:nowrap}
.desk-shell table.tms-table[data-commercial-polished=true] .schedule-date-line time{font:inherit;white-space:nowrap;letter-spacing:-.15px}
.schedule-year{color:#657f89!important;font-size:11px!important;font-weight:450!important}
.schedule-weekday{font-size:9px!important;color:#718793!important;letter-spacing:.04em;text-transform:uppercase}
.schedule-slot-line{display:flex;align-items:center;gap:6px;min-height:25px;flex-wrap:wrap}
.desk-shell table.tms-table[data-commercial-polished=true] .schedule-slot-line>button,.schedule-time-readonly{display:inline-flex;align-items:center;gap:5px;min-height:25px;border:0;border-radius:5px;padding:2px 5px;background:#e6f1f2;color:#075e6b;font:750 14px/1.25 'Segoe UI',Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
.schedule-slot-line svg{width:13px;height:13px;flex-shrink:0;opacity:.75}
.schedule-slot-line .shift-badges{display:inline-flex;margin:0;gap:0}
.schedule-slot-line .shift-badge{border:0;background:#edf2f5;color:#486775;font-size:10px;line-height:1.2;padding:4px 5px;border-radius:4px;white-space:nowrap}
.schedule-slot-line .shift-badge[data-shift=T2]{background:#efedf8;color:#685184}
.schedule-slot-line .shift-warning{width:100%;font-size:10px;margin:1px 0}
.desk-shell table.tms-table[data-commercial-polished=true] .order-schedule-card .order-schedule-info{position:absolute;right:-3px;top:-7px;display:grid;place-items:center;min-height:20px;width:20px;border:0;border-radius:50%;background:#fff;color:#647f8c;padding:2px;font-size:10px}
.desk-shell table.tms-table[data-commercial-polished=true] .schedule-date-line>button:hover{color:#007b83;background:#dceff0}
.desk-shell table.tms-table[data-commercial-polished=true] .schedule-slot-line>button:hover{color:#fff;background:#087c85}
.schedule-date-readonly,.schedule-time-readonly{cursor:default}
.order-actions-bar{display:flex;align-items:center;gap:3px;flex-wrap:nowrap;max-width:100%;min-height:34px}
.desk-shell table.tms-table[data-commercial-polished=true] .order-actions-bar>.grid-direct-action{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:5px;min-height:32px;margin:0!important;padding:6px 5px!important;border:1px solid #c6dadd;border-radius:7px;background:#fff;color:#204e5b;font:650 12px/1.15 'Segoe UI',Arial,sans-serif;white-space:nowrap;text-decoration:none;cursor:pointer;box-shadow:none;transition:background .12s,border-color .12s}
.desk-shell table.tms-table[data-commercial-polished=true] .order-actions-bar>.grid-direct-action span{font:inherit;color:inherit;margin:0;white-space:nowrap}
.order-actions-bar svg{width:14px;height:14px;flex-shrink:0}
.desk-shell table.tms-table[data-commercial-polished=true] .order-actions-bar>.order-action-open{background:#087e88;border-color:#087e88;color:#fff}
.desk-shell table.tms-table[data-commercial-polished=true] .order-actions-bar>.order-action-open:hover{background:#056671;border-color:#056671}
.desk-shell table.tms-table[data-commercial-polished=true] .order-actions-bar>.order-action-edit:hover{background:#e5f2f2;border-color:#79b5bc}
.desk-shell table.tms-table[data-commercial-polished=true] .order-actions-bar>.order-action-icon{width:28px;min-width:28px;padding:6px!important;border-color:transparent;background:transparent;color:#5c7987}
.desk-shell table.tms-table[data-commercial-polished=true] .order-actions-bar>.order-action-icon:hover{background:#dceced;color:#076b77;border-color:#b5d5d9}
.commercial-actions-menu{display:block;position:relative;flex-shrink:0;margin:0}
.commercial-actions-menu>summary{display:grid;place-items:center;width:28px;min-height:32px;padding:5px;border:1px solid transparent;border-radius:7px;background:transparent;color:#4b6a78;font-size:12px;box-sizing:border-box}
.commercial-actions-menu>summary::after{content:none}
.commercial-actions-menu>summary:hover,.commercial-actions-menu[open]>summary{background:#dceced;border-color:#a6cbd1;color:#075f6e}
.commercial-actions-menu .grid-row-menu-panel{min-width:225px;max-width:320px;right:auto;bottom:auto;margin:0;border:1px solid #c5d8df;border-radius:11px;padding:6px;background:#fff;box-shadow:0 12px 34px #15374626}
.commercial-actions-menu .grid-row-menu-panel button{border-radius:6px;min-height:37px!important;font-family:'Segoe UI',Arial,sans-serif}
.commercial-menu-heading{font:650 10px/1.4 'Segoe UI',Arial,sans-serif;color:#647d89;padding:5px 10px 8px;border-bottom:1px solid #edf2f4;margin-bottom:4px;letter-spacing:.03em}
.order-action-sr{position:absolute!important;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.order-schedule-card :focus-visible,.order-actions-bar :focus-visible{outline:2px solid #078c9d;outline-offset:3px}
.table-card:has(table[data-commercial-polished=true])>.tms-table-tools{background:#f8fafb;border-bottom:1px solid #d8e4e9;padding:9px 10px;gap:8px}
.table-card:has(table[data-commercial-polished=true])>.tms-table-tools .tms-view-summary{color:#607988;font-size:11px}
.table-card:has(table[data-commercial-polished=true])>.tms-table-tools button{border-color:#d2e1e6;border-radius:7px;background:#fff;color:#3d6372;font:600 12px/1.3 'Segoe UI',Arial,sans-serif;min-height:32px;padding:6px 10px}
.table-card:has(table[data-commercial-polished=true])>.tms-table-tools [data-view-config]{background:#e6f1f3;color:#075f70;border-color:#bcd6dd}
@media(max-width:650px){.desk-shell table.tms-table[data-commercial-polished=true] .order-actions-bar>.grid-direct-action,.commercial-actions-menu>summary{min-height:36px}.table-card:has(table[data-commercial-polished=true])>.tms-table-tools>div{flex-wrap:wrap;gap:4px}.order-schedule-card{gap:6px}}
@media(prefers-reduced-motion:reduce){.order-actions-bar *{transition:none!important}}
