/* Operational widgets: scoped to the homepage, including its inert settings preview. */
.custom-home :is(.home-block-copilot,.home-block-exceptions,.home-block-shipping,.home-block-stock,.home-block-stages,.home-block-orders,.home-block-geography,.home-block-events){container-type:inline-size;container-name:homeoperation;min-width:0}
.custom-home .home-op-context{font-size:12px;line-height:1.4;color:var(--text-muted);margin:3px 0 9px}
.custom-home .home-op-icon{width:30px;height:30px;flex:0 0 30px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:color-mix(in srgb,var(--op-color,var(--primary)) 13%,transparent);border:1px solid color-mix(in srgb,var(--op-color,var(--primary)) 25%,transparent);color:var(--op-color,var(--primary))}
.custom-home .home-op-icon svg{width:18px;height:18px}
.custom-home .home-op-info{--op-color:#4195d8}.custom-home .home-op-success{--op-color:#31b98d}.custom-home .home-op-warning{--op-color:#e7a64c}.custom-home .home-op-danger{--op-color:#d85d70}.custom-home .home-op-purple{--op-color:#8068d9}
.custom-home .home-op-copy{display:flex;flex-direction:column;min-width:0;gap:3px;text-align:left}
.custom-home .home-op-copy strong{font-size:var(--home-font,13px);line-height:1.35;font-weight:550;overflow-wrap:anywhere;color:var(--text-primary)}
.custom-home .home-op-copy small{font-size:12px;line-height:1.35;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.custom-home :is(.home-op-rec,.home-op-alert,.home-op-carrier,.home-op-task,.home-op-event,.home-op-cities button,.home-op-stages button){cursor:pointer;font-family:inherit;background:transparent;border:0;color:var(--text-primary);text-align:left;border-radius:7px;transition:background .12s;box-shadow:none}
.custom-home :is(.home-op-rec,.home-op-alert,.home-op-carrier,.home-op-task,.home-op-event,.home-op-cities button,.home-op-stages button):hover{background:var(--surface-hover)}
.custom-home :is(.home-op-rec,.home-op-alert,.home-op-carrier,.home-op-task,.home-op-event,.home-op-cities button,.home-op-stages button):focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.custom-home .home-op-recommendations{display:flex;flex-direction:column;gap:3px}
.custom-home .home-op-rec{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:start;padding:8px 2px;min-height:48px;width:100%}
.custom-home .home-op-rank{display:flex;align-items:center;justify-content:center;min-width:27px;height:27px;font-weight:650;border-radius:7px;color:var(--op-color,#4195d8);background:color-mix(in srgb,var(--op-color,#4195d8) 18%,transparent);border:1px solid color-mix(in srgb,var(--op-color,#4195d8) 35%,transparent)}
.custom-home .home-op-rec-label{font-size:12px;display:inline-flex;align-items:center;gap:3px;color:var(--text-secondary);white-space:nowrap;padding:4px;background:var(--surface-raised);border-radius:5px}.custom-home .home-op-rec-label svg{width:12px;height:12px}
.custom-home .home-op-alerts{display:flex;flex-direction:column;gap:3px}
.custom-home :is(.home-op-alert,.home-op-task){display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:start;gap:8px;width:100%;padding:7px 1px;min-height:44px;white-space:normal}
.custom-home .home-op-alert time{font-size:11px;color:var(--text-muted);margin-top:3px;white-space:nowrap;max-width:68px;line-height:1.35}
.custom-home .home-op-carriers{display:flex;flex-direction:column;gap:5px}
.custom-home .home-op-carrier{display:grid;grid-template-columns:30px minmax(65px,1fr) minmax(30px,1fr) auto;align-items:center;width:100%;gap:9px;min-height:44px;padding:5px 1px;font-size:13px}
.custom-home .home-op-carrier-name{min-width:0;overflow-wrap:anywhere}
.custom-home .home-op-carrier b,.custom-home .home-op-cities b{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.custom-home :is(.home-op-carrier,.home-op-stages,.home-op-cities) meter{appearance:none;width:100%;height:6px;border:0;background:var(--border-subtle);border-radius:5px;display:block;min-width:0;overflow:hidden}
.custom-home :is(.home-op-carrier,.home-op-stages,.home-op-cities) meter::-webkit-meter-bar{background:var(--border-subtle);border:0;border-radius:5px;height:6px}
.custom-home :is(.home-op-carrier,.home-op-stages,.home-op-cities) meter::-webkit-meter-optimum-value{background:var(--op-accent,#3978e8);border-radius:5px}
.custom-home :is(.home-op-carrier,.home-op-stages,.home-op-cities) meter::-moz-meter-bar{background:var(--op-accent,#3978e8);border-radius:5px}
.custom-home .home-op-stock{display:flex;flex-direction:column}
.custom-home .home-op-stock .button{border:0;border-radius:0;background:transparent;box-shadow:none;border-bottom:1px solid var(--border-subtle);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;min-height:37px;text-align:left;font-size:13px;white-space:normal}
.custom-home .home-op-stock .button>span{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}.custom-home .home-op-stock i{width:7px;height:7px;border-radius:50%;flex-shrink:0}.custom-home .home-op-stock b{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}.custom-home .home-op-risk{margin-top:9px;white-space:normal}
.custom-home .home-op-stages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.custom-home .home-op-stages button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 2px;text-align:center;min-width:0;min-height:112px}
.custom-home .home-op-stages button>span:not(.home-op-icon){font-size:12px;line-height:1.35;overflow-wrap:anywhere;min-height:32px;display:flex;align-items:center;color:var(--text-secondary)}
.custom-home .home-op-stages b{font-size:19px;font-weight:600;line-height:1.1}.custom-home .home-op-stages meter{max-width:52px;height:4px}.custom-home .home-op-stages .home-op-icon{width:36px;height:36px}
.custom-home .home-op-orders-table{max-width:100%;min-width:0}.custom-home .home-op-orders-table .data-table-wrap{max-width:100%;overflow-x:auto}.custom-home .home-op-orders-table .data-table{font-size:12px;min-width:650px;width:100%;border-collapse:collapse}.custom-home .home-op-orders-table :is(td,th){padding:7px 8px;line-height:1.35;white-space:nowrap}.custom-home .home-op-orders-table th{font-weight:500;color:var(--text-secondary);font-size:11px;background:var(--surface-raised)}
.custom-home .home-op-orders-table td{height:39px;border-bottom:1px solid var(--border-subtle)}.custom-home .home-op-orders-table .text-button{font-size:12px;padding:3px 0}.custom-home .home-op-orders-table .icon-button{width:28px;min-height:28px;padding:5px}.custom-home .home-op-orders-table .status-selector{font-size:11px;min-height:24px;padding:3px 6px;max-width:155px}.custom-home .home-op-orders-table .badge{font-size:11px;padding:3px 6px}.custom-home .home-op-orders-table .shipping-badge{font-size:11px}.custom-home .home-op-orders-table .shipping-badge small{font-size:10px}.custom-home .home-op-cell-source .channel-brand{width:16px;height:16px;vertical-align:middle;margin-right:4px}.custom-home .home-op-cell-customer{max-width:150px;overflow:hidden;text-overflow:ellipsis}
.custom-home .home-op-product{display:flex;align-items:center;gap:6px;min-width:0}.custom-home .home-op-product .product-thumb{width:28px;height:28px;flex-shrink:0;border-radius:5px}.custom-home .home-op-product>span{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-home .home-op-product small{display:block;color:var(--text-muted);font-size:11px}
.custom-home .home-op-mobile-orders{display:grid;gap:8px}.custom-home .home-op-mobile-order{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;padding:9px;border:1px solid var(--border-subtle);border-radius:8px;min-width:0;background:var(--surface)}.custom-home .home-op-mobile-order header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.custom-home .home-op-mobile-order header .button{min-height:44px}.custom-home .home-op-order-field{min-width:0;font-size:13px;overflow-wrap:anywhere}.custom-home .home-op-order-field>div{min-width:0}.custom-home .home-op-field-label{display:block;font-size:12px;color:var(--text-muted);margin-bottom:3px}.custom-home .home-op-field-products{grid-column:1/-1;grid-row:2}.custom-home .home-op-field-products .home-op-product>span{max-width:none;white-space:normal;font-size:14px;font-weight:550}.custom-home .home-op-field-customer{grid-column:1/-1}.custom-home .home-op-mobile-order .status-selector{min-height:44px;white-space:normal;max-width:100%;font-size:13px}.custom-home .home-op-mobile-order .shipping-badge{font-size:13px;white-space:normal}.custom-home .home-op-mobile-order .badge{font-size:12px;white-space:normal}.custom-home .home-op-mobile-order .channel-brand{display:inline-block;vertical-align:middle;width:16px;height:16px;margin-right:5px}
.custom-home .home-op-cities{display:flex;flex-direction:column;gap:8px;margin-top:13px}.custom-home .home-op-cities button{display:grid;grid-template-columns:7px minmax(65px,1fr) minmax(30px,1fr) auto;gap:9px;align-items:center;min-height:35px;width:100%;padding:5px 1px;font-size:13px}.custom-home .home-op-cities button>i{width:6px;height:6px;border-radius:50%}.custom-home .home-op-cities button>span{overflow-wrap:anywhere;min-width:0}
.custom-home .home-op-events{display:flex;flex-direction:column;gap:3px}.custom-home .home-op-event{display:flex;align-items:flex-start;gap:9px;width:100%;padding:7px 1px;min-height:44px}.custom-home .home-op-event .home-op-icon{width:25px;height:25px;flex-basis:25px;border-radius:50%}.custom-home .home-op-event .home-op-icon svg{width:14px;height:14px}.custom-home .home-op-event small time{margin-left:5px}
@container homeoperation (max-width:360px){.custom-home .home-op-rec{grid-template-columns:27px minmax(0,1fr)}.custom-home .home-op-rec-label{grid-column:2;justify-self:start}.custom-home .home-op-alert{grid-template-columns:28px minmax(0,1fr)}.custom-home .home-op-alert time{grid-column:2;max-width:none;font-size:11px}.custom-home .home-op-stages{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.custom-home .home-op-stages button{min-height:104px}.custom-home .home-op-stages button>span:not(.home-op-icon){font-size:13px;min-height:34px}.custom-home .home-op-carrier{gap:6px;grid-template-columns:26px minmax(60px,1fr) minmax(22px,.6fr) auto}.custom-home .home-op-carrier .home-op-icon{width:26px;height:26px;flex-basis:26px}.custom-home .home-op-cities button{gap:7px;grid-template-columns:6px minmax(60px,1fr) minmax(20px,.7fr) auto}}
.custom-home[data-device="mobile"] :is(.home-op-rec,.home-op-alert,.home-op-task,.home-op-carrier,.home-op-cities button,.home-op-stock .button){min-height:44px}.custom-home[data-device="mobile"] .home-op-stages{grid-template-columns:repeat(3,minmax(0,1fr))}.custom-home[data-device="mobile"] .home-op-stages button>span:not(.home-op-icon){font-size:13px}.custom-home[data-device="mobile"] .home-op-stages button{min-height:104px}.custom-home[data-device="mobile"] .home-op-copy small{font-size:13px}.custom-home[data-device="mobile"] .home-op-rec-label{font-size:12px}

.custom-home .home-op-mobile-order{cursor:pointer}.custom-home .home-op-mobile-order:hover{border-color:var(--primary)}
