:root {
    --ehw-navy: var(--navy, #001f4d);
    --ehw-blue: var(--blue, #07346b);
    --ehw-red: var(--red, #ec1018);
    --ehw-green: var(--green, #08783e);
    --ehw-amber: var(--amber, #b76600);
    --ehw-ink: var(--ink, #12233d);
    --ehw-muted: var(--muted, #647187);
    --ehw-line: var(--line, #dce4f0);
    --ehw-soft: var(--soft, #f3f6fa);
    --ehw-white: #fff;
    --ehw-shadow: 0 14px 38px rgba(0, 31, 77, .10);
}

html:has(body.ehw-blank-page) {
    margin-top: 0 !important;
}

body.ehw-blank-page {
    margin: 0;
    background: #eef3f8;
    color: var(--ehw-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ehw-blank-page #wpadminbar {
    display: none !important;
}

.ehw-blank-root,
.ehw-shell {
    min-height: 100vh;
}

.ehw-shell {
    display: grid;
    background:
        linear-gradient(180deg, rgba(0, 31, 77, .04), transparent 34%),
        #eef3f8;
}

.ehw-assistant-shell {
    background: #eef3f8;
}

.ehw-assistant-frame {
    display: grid;
    gap: 12px;
    box-sizing: border-box;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 14px;
}

.ehw-assistant-top {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--ehw-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--ehw-shadow);
}

.ehw-assistant-top div {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    color: var(--ehw-navy);
    font-size: 15px;
    font-weight: 900;
}

.ehw-assistant-top img {
    width: 178px;
    height: auto;
}

.ehw-assistant-body {
    min-width: 0;
}

.ehw-assistant-body .eh-ai-upload-wrap {
    max-width: 980px;
    margin-top: 8px;
    margin-bottom: 18px;
}

.ehw-app,
.ehw-display {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 14px;
}

.ehw-login {
    place-items: center;
    padding: 20px;
}

.ehw-login-panel {
    display: grid;
    gap: 16px;
    width: min(100%, 440px);
    padding: 24px;
    border: 1px solid var(--ehw-line);
    border-radius: 16px;
    background: var(--ehw-white);
    box-shadow: var(--ehw-shadow);
}

.ehw-login-brand img {
    width: 218px;
    max-width: 86%;
    height: auto;
}

.ehw-login-panel h1 {
    margin: 0;
    color: var(--ehw-navy);
    font-size: 30px;
    line-height: 1.05;
}

.ehw-login-panel p {
    margin: 0;
    color: var(--ehw-muted);
}

.ehw-login-panel label {
    display: grid;
    gap: 7px;
    color: var(--ehw-navy);
    font-size: 12px;
    font-weight: 900;
}

.ehw-login-panel input[type="text"],
.ehw-login-panel input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #c9d6e7;
    border-radius: 10px;
    color: var(--ehw-navy);
    font-size: 16px;
    font-weight: 800;
}

.ehw-login-panel input[type="submit"],
.ehw-button,
.ehw-btn {
    min-height: 46px;
    padding: 12px 16px;
    border: 0;
    border-radius: 9px;
    background: var(--ehw-navy);
    color: var(--ehw-white);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.ehw-btn.secondary,
.ehw-button.secondary {
    border: 1px solid var(--ehw-line);
    background: var(--ehw-white);
    color: var(--ehw-navy);
}

.ehw-btn.danger {
    background: var(--ehw-red);
}

.ehw-btn.green {
    background: var(--ehw-green);
}

.ehw-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.ehw-frame {
    display: grid;
    gap: 12px;
    min-height: calc(100vh - 28px);
}

.ehw-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--ehw-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .98);
    color: var(--ehw-navy);
    box-shadow: 0 8px 24px rgba(0, 31, 77, .14);
}

.ehw-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.ehw-brand img {
    width: 188px;
    max-height: 60px;
    object-fit: contain;
}

.ehw-brand b {
    display: block;
    color: var(--ehw-navy);
    font-size: 17px;
}

.ehw-branch {
    display: block;
    color: var(--ehw-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ehw-scan-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    min-height: 54px;
    border-radius: 10px;
    border: 1px solid #cfd9e8;
    background: #fff;
    color: var(--ehw-navy);
}

.ehw-scan-label {
    display: flex;
    gap: 7px;
    align-items: center;
    padding-left: 12px;
    color: var(--ehw-navy);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ehw-scan-label svg {
    width: 20px;
    height: 20px;
}

.ehw-scan-input {
    min-width: 0;
    width: 100%;
    min-height: 54px;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: var(--ehw-navy);
    font-size: 20px;
    font-weight: 900;
}

.ehw-scan-submit {
    align-self: stretch;
    min-width: 58px;
    border: 0;
    background: var(--ehw-red);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.ehw-top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ehw-icon-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #c9d6e7;
    border-radius: 9px;
    background: #f8fbff;
    color: var(--ehw-navy);
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.ehw-icon-btn:hover,
.ehw-icon-btn:focus {
    border-color: var(--ehw-navy);
    background: var(--ehw-navy);
    color: #fff;
}

.ehw-icon-btn svg,
.ehw-nav button i svg,
.ehw-nav > a i svg,
.ehw-tile i svg,
.ehw-scan-label svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ehw-icon-btn svg {
    width: 22px;
    height: 22px;
}

.ehw-body {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.ehw-nav {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 8px;
}

.ehw-nav button,
.ehw-nav > a,
.ehw-tile {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 58px;
    padding: 11px;
    border: 1px solid var(--ehw-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ehw-navy);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(0, 31, 77, .05);
    cursor: pointer;
}

.ehw-nav button.active,
.ehw-nav > a:focus,
.ehw-nav > a:hover,
.ehw-tile:focus,
.ehw-tile:hover {
    border-color: var(--ehw-navy);
    background: var(--ehw-navy);
    color: #fff;
}

.ehw-nav button i,
.ehw-nav > a i,
.ehw-tile i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--ehw-soft);
    color: var(--ehw-navy);
    font-style: normal;
}

.ehw-nav button i svg,
.ehw-nav > a i svg,
.ehw-tile i svg {
    width: 20px;
    height: 20px;
}

.ehw-nav button.active i,
.ehw-nav > a:focus i,
.ehw-nav > a:hover i,
.ehw-tile:hover i {
    background: #fff;
    color: var(--ehw-red);
}

.ehw-nav strong,
.ehw-tile strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.2;
}

.ehw-nav span,
.ehw-tile span {
    display: block;
    margin-top: 3px;
    color: currentColor;
    opacity: .72;
    font-size: 9px;
    font-weight: 800;
}

.ehw-main {
    display: grid;
    gap: 12px;
}

.ehw-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
}

.ehw-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--ehw-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--ehw-shadow);
}

.ehw-panel.compact {
    padding: 12px;
}

.ehw-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.ehw-section-head h1,
.ehw-section-head h2,
.ehw-panel h2 {
    margin: 0;
    color: var(--ehw-navy);
    font-size: 23px;
    line-height: 1.1;
}

.ehw-section-head p,
.ehw-muted {
    margin: 0;
    color: var(--ehw-muted);
    font-size: 12px;
    line-height: 1.45;
}

.ehw-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: min(100%, 480px);
    padding: 4px;
    border: 1px solid var(--ehw-line);
    border-radius: 9px;
    background: var(--ehw-soft);
}

.ehw-mode-option {
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ehw-navy);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.ehw-mode-option.active {
    background: var(--ehw-navy);
    color: #fff;
}

.ehw-mode-option:focus-visible {
    outline: 3px solid rgba(18, 92, 174, .28);
    outline-offset: 2px;
}

.ehw-move-steps {
    display: grid;
    gap: 12px;
}

.ehw-move-zone-lock,
.ehw-move-queue-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.ehw-move-zone-lock {
    padding: 12px;
    border: 1px solid rgba(8, 120, 62, .35);
    border-radius: 9px;
    background: #effbf3;
}

.ehw-move-zone-lock div,
.ehw-move-queue-head div {
    min-width: 0;
}

.ehw-move-zone-lock span,
.ehw-move-queue-head span {
    display: block;
    color: var(--ehw-muted);
    font-size: 10px;
    font-weight: 900;
}

.ehw-move-zone-lock strong,
.ehw-move-queue-head strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ehw-navy);
    font-size: 15px;
    line-height: 1.3;
}

.ehw-bulk-move-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.ehw-bulk-move-item img,
.ehw-bulk-move-no-image {
    width: 52px;
    height: 52px;
    border-radius: 7px;
    background: #dde8f5;
    object-fit: cover;
}

.ehw-bulk-move-submit {
    width: 100%;
    min-height: 54px;
    font-size: 13px;
}

.ehw-remove-item {
    width: 44px;
    height: 44px;
}

.ehw-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ehw-field {
    display: grid;
    gap: 6px;
}

.ehw-field.full {
    grid-column: 1 / -1;
}

.ehw-field label,
.ehw-label {
    color: var(--ehw-navy);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ehw-input,
.ehw-select,
.ehw-textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 11px;
    border: 1px solid #cbd8e8;
    border-radius: 9px;
    background: #fff;
    color: var(--ehw-navy);
    font-size: 15px;
    font-weight: 800;
    outline: 0;
}

.ehw-textarea {
    min-height: 110px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.ehw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.ehw-list {
    display: grid;
    gap: 8px;
}

.ehw-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto auto;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    padding: 10px;
    border: 1px solid var(--ehw-line);
    border-radius: 9px;
    background: #f9fbfd;
}

.ehw-row.two {
    grid-template-columns: minmax(0, 1fr) auto;
}

.ehw-row strong {
    display: block;
    color: var(--ehw-navy);
    font-size: 13px;
    line-height: 1.25;
}

.ehw-row span,
.ehw-row small {
    display: block;
    color: var(--ehw-muted);
    font-size: 10px;
    font-weight: 800;
}

.ehw-pill {
    display: inline-grid;
    place-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eaf1fa;
    color: var(--ehw-navy);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.ehw-pill.green {
    background: #e9f7ef;
    color: var(--ehw-green);
}

.ehw-pill.red {
    background: #fff0f0;
    color: var(--ehw-red);
}

.ehw-pill.amber {
    background: #fff6e8;
    color: var(--ehw-amber);
}

.ehw-message {
    min-height: 42px;
    padding: 11px 12px;
    border: 1px solid #bad3ef;
    border-radius: 9px;
    background: #eef6ff;
    color: var(--ehw-navy);
    font-size: 12px;
    font-weight: 800;
}

.ehw-message.error {
    border-color: #ffc8c8;
    background: #fff1f1;
    color: #a90008;
}

.ehw-message.success {
    border-color: #bfe9cf;
    background: #effbf3;
    color: var(--ehw-green);
}

.ehw-item-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--ehw-line);
    border-radius: 11px;
    background: #fff;
}

.ehw-item-card img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: var(--ehw-soft);
    object-fit: cover;
}

.ehw-item-card h3 {
    margin: 0 0 5px;
    color: var(--ehw-navy);
    font-size: 16px;
    line-height: 1.2;
}

.ehw-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ehw-fact {
    display: grid;
    gap: 3px;
    padding: 9px;
    border: 1px solid var(--ehw-line);
    border-radius: 8px;
    background: var(--ehw-soft);
}

.ehw-fact span {
    color: var(--ehw-muted);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.ehw-fact b {
    color: var(--ehw-navy);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ehw-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
    gap: 12px;
    align-items: start;
}

.ehw-dispatch-workbench {
    display: grid;
    grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.ehw-dropoff-workbench {
    display: grid;
    grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr) minmax(260px, .36fr);
    gap: 12px;
    align-items: start;
}

.ehw-dropoff-bulk-actions {
    margin: 12px 0;
}

.ehw-dropoff-bulk-actions .ehw-btn.green {
    flex: 1 1 150px;
}

.ehw-dropoff-receive-check {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.ehw-dropoff-receive-check input {
    width: 24px;
    height: 24px;
    margin: 0;
}

.ehw-dropoff-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.ehw-btn.ehw-btn-small {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
}

.ehw-picking-workbench {
    display: grid;
    grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.ehw-dispatch-customers,
.ehw-collection-run,
.ehw-dropoff-sellers,
.ehw-dropoff-run,
.ehw-dropoff-receive,
.ehw-picking-orders,
.ehw-picking-run {
    align-content: start;
}

.ehw-customer-grid {
    display: grid;
    gap: 8px;
    max-height: calc(100vh - 300px);
    overflow: auto;
    padding-right: 2px;
}

.ehw-customer-picker {
    padding: 10px;
    border: 1px solid var(--ehw-line);
    border-radius: 9px;
    background: #f8fbff;
}

.ehw-customer-select {
    min-height: 52px;
}

.ehw-customer-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    min-height: 66px;
    padding: 10px;
    border: 1px solid var(--ehw-line);
    border-radius: 9px;
    background: #f9fbfd;
    color: var(--ehw-navy);
    text-align: left;
    cursor: pointer;
}

.ehw-customer-card:hover,
.ehw-customer-card:focus,
.ehw-customer-card.active {
    border-color: var(--ehw-navy);
    background: #edf5ff;
}

.ehw-customer-card strong {
    grid-row: span 2;
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 8px;
    background: var(--ehw-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.ehw-customer-card span {
    overflow: hidden;
    color: var(--ehw-navy);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ehw-customer-card small {
    color: var(--ehw-muted);
    font-size: 10px;
    font-weight: 900;
}

.ehw-current-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    border: 2px solid rgba(8, 120, 62, .32);
    border-radius: 12px;
    background: #f4fbf7;
}

.ehw-current-item img,
.ehw-no-image {
    width: 128px;
    height: 128px;
    border-radius: 10px;
    background: #dde8f5;
    object-fit: cover;
}

.ehw-current-kicker {
    display: inline-grid;
    width: fit-content;
    margin-bottom: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #dff4e8;
    color: var(--ehw-green);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.ehw-current-item h3 {
    margin: 0 0 10px;
    color: var(--ehw-navy);
    font-size: 24px;
    line-height: 1.1;
}

.ehw-dispatch-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.ehw-picking-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ehw-dispatch-actions .ehw-btn,
.ehw-picking-actions .ehw-btn,
.ehw-collection-run .ehw-form-grid .ehw-btn {
    min-height: 54px;
    font-size: 13px;
}

.ehw-empty-work {
    display: grid;
    place-items: center;
    min-height: 148px;
    padding: 16px;
    border: 1px dashed #b9c9db;
    border-radius: 12px;
    background: #f8fbff;
    color: var(--ehw-muted);
    font-weight: 900;
    text-align: center;
}

.ehw-collection-list .ehw-row.active {
    border-color: rgba(8, 120, 62, .42);
    background: #effbf3;
}

.ehw-picking-run .ehw-row.active {
    border-color: rgba(8, 120, 62, .42);
    background: #effbf3;
}

.ehw-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
}

.ehw-kpi {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--ehw-line);
    border-radius: 10px;
    background: #fff;
}

.ehw-kpi strong {
    color: var(--ehw-navy);
    font-size: 31px;
    line-height: .95;
}

.ehw-kpi span {
    color: var(--ehw-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ehw-left-scan-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 10px;
    align-items: end;
}

.ehw-left-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 8px;
}

.ehw-left-summary span {
    display: flex;
    gap: 7px;
    align-items: baseline;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--ehw-line);
    border-radius: 8px;
    background: #f4f8fd;
    color: var(--ehw-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ehw-left-summary strong {
    color: var(--ehw-navy);
    font-size: 24px;
    line-height: 1;
}

.ehw-left-queue {
    display: grid;
    gap: 8px;
}

.ehw-left-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 48px;
    gap: 12px;
    align-items: center;
    min-height: 86px;
    padding: 9px;
    border: 1px solid var(--ehw-line);
    border-left: 4px solid var(--ehw-red);
    border-radius: 8px;
    background: #f9fbfd;
}

.ehw-left-row > img,
.ehw-left-image-placeholder {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 7px;
    background: #dce7f3;
    object-fit: cover;
}

.ehw-left-item {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ehw-left-item strong {
    color: var(--ehw-navy);
    font-size: 13px;
    line-height: 1.25;
}

.ehw-left-item span,
.ehw-left-item small {
    color: var(--ehw-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
}

.ehw-left-remove {
    width: 48px;
    flex: none;
    color: var(--ehw-red);
}

.ehw-left-actions {
    display: grid;
    grid-template-columns: minmax(140px, .3fr) minmax(240px, 1fr);
    gap: 10px;
}

.ehw-display-shell {
    background: #05080f;
    color: #fff;
}

.ehw-display {
    display: grid;
    width: 100%;
    min-height: 100vh;
    padding: 18px;
    box-sizing: border-box;
}

.ehw-board {
    display: grid;
    gap: 16px;
    min-height: calc(100vh - 36px);
}

.ehw-board-hero {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr) minmax(280px, .38fr);
    gap: 22px;
    align-items: center;
    min-height: 190px;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 20px;
    background: linear-gradient(135deg, #0c1728, #08111f);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.ehw-board.is-board-alert .ehw-board-hero {
    border-color: rgba(255, 116, 116, .72);
    box-shadow: 0 0 0 1px rgba(255, 116, 116, .22), 0 24px 90px rgba(236, 16, 24, .18);
}

.ehw-board-logo {
    display: grid;
    place-items: center;
    width: 220px;
    min-height: 92px;
    padding: 13px;
    border-radius: 13px;
    background: #fff;
}

.ehw-board-logo img {
    width: 206px;
    max-width: 100%;
    height: auto;
}

.ehw-board-title {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding-left: 22px;
    border-left: 1px solid rgba(148, 163, 184, .34);
}

.ehw-board-title span,
.ehw-board-meta span,
.ehw-board-card-top span,
.ehw-board-card b,
.ehw-board-footer {
    color: #b8c7dd;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ehw-board-title h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4vw, 62px);
    line-height: .95;
}

.ehw-board-meta {
    display: grid;
    justify-items: end;
    gap: 10px;
    text-align: right;
}

.ehw-board-clock {
    color: #fff;
    font-size: clamp(34px, 3.8vw, 58px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ehw-sound-toggle {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #dbeafe;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.ehw-sound-toggle.ready {
    border-color: rgba(34, 197, 94, .42);
    background: rgba(34, 197, 94, .14);
    color: #bbf7d0;
}

.ehw-sound-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ehw-board-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.ehw-board-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 12px;
    min-height: 238px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 17px;
    background: #0d1828;
    color: #fff;
    box-shadow: inset 0 -70px 100px rgba(255, 255, 255, .025);
}

.ehw-board-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.ehw-board-card-top i,
.ehw-board-row b {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    color: currentColor;
    font-style: normal;
}

.ehw-board-card svg,
.ehw-board-row svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ehw-board-card strong {
    align-self: end;
    color: currentColor;
    font-size: clamp(54px, 5vw, 86px);
    line-height: .85;
    font-variant-numeric: tabular-nums;
}

.ehw-board-card p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 800;
}

.ehw-board-card b {
    justify-self: start;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: currentColor;
}

.ehw-board-card.status-green { border-color: rgba(34, 197, 94, .36); color: #86efac; background: #081d16; }
.ehw-board-card.status-yellow { border-color: rgba(250, 204, 21, .50); color: #fde68a; background: #251f08; }
.ehw-board-card.status-amber { border-color: rgba(245, 158, 11, .52); color: #ffd080; background: #2a1904; }
.ehw-board-card.status-red { border-color: rgba(248, 113, 113, .58); color: #ff8a8a; background: #2b0b11; }
.ehw-board-card.status-critical { border-color: rgba(255, 42, 42, .78); color: #fff; background: #3a060c; }
.ehw-board-card.status-blue { border-color: rgba(59, 130, 246, .48); color: #9cc5ff; background: #0b1930; }
.ehw-board-card.status-dim { border-color: rgba(148, 163, 184, .20); color: #e2e8f0; background: #0d1828; }

.ehw-board-card.is-flashing {
    animation: ehwAlertPulse 1s ease-in-out infinite;
}

@keyframes ehwAlertPulse {
    0%, 100% { box-shadow: inset 0 -70px 100px rgba(255, 255, 255, .03), 0 0 0 rgba(248, 113, 113, 0); }
    50% { box-shadow: inset 0 -70px 100px rgba(255, 255, 255, .05), 0 0 34px rgba(248, 113, 113, .50); transform: translateY(-1px); }
}

.ehw-board-panels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ehw-board-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    min-height: 250px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 17px;
    background: #0b121d;
}

.ehw-board-panel header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.ehw-board-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.15;
}

.ehw-board-panel header span {
    white-space: nowrap;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 900;
}

.ehw-board-list {
    display: grid;
    gap: 9px;
    align-content: start;
}

.ehw-board-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    min-height: 60px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
}

.ehw-board-row strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ehw-board-row span {
    display: block;
    margin-top: 3px;
    color: #9fb1c9;
    font-size: 11px;
    font-weight: 800;
}

.ehw-board-row em {
    color: #dbeafe;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.ehw-board-row.warning {
    border-color: rgba(245, 158, 11, .55);
    background: rgba(245, 158, 11, .12);
}

.ehw-board-row.danger {
    border-color: rgba(248, 113, 113, .75);
    background: rgba(127, 29, 29, .32);
}

.ehw-board-row.serving {
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .10);
}

.ehw-board-row.is-flashing {
    animation: ehwAlertPulse 1s ease-in-out infinite;
}

.ehw-board-empty {
    display: grid;
    place-items: center;
    min-height: 148px;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, .26);
    border-radius: 14px;
    color: #9fb1c9;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
}

.ehw-board-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #b8c7dd;
    text-transform: none;
    letter-spacing: 0;
}

.ehw-print-sheet {
    display: none;
}

.ehw-labels {
    display: grid;
    grid-template-columns: repeat(2, 96mm);
    gap: 4mm;
    align-items: start;
}

.ehw-print-label {
    display: grid;
    gap: 2mm;
    width: 96mm;
    min-height: 48mm;
    padding: 4mm;
    border: 1px solid #111;
    background: #fff;
    color: #000;
    break-inside: avoid;
}

.ehw-print-label strong {
    font-size: 14pt;
    line-height: 1.1;
}

.ehw-print-label span {
    font-size: 8pt;
    font-weight: 700;
}

.ehw-print-label svg {
    width: 100%;
    height: 18mm;
}

@media (max-width: 1050px) {
    .ehw-body,
    .ehw-split,
    .ehw-dispatch-workbench,
    .ehw-dropoff-workbench,
    .ehw-picking-workbench {
        grid-template-columns: 1fr;
    }

    .ehw-customer-grid {
        max-height: none;
    }

    .ehw-board-hero {
        grid-template-columns: 1fr;
    }

    .ehw-board-title {
        padding-left: 0;
        border-left: 0;
    }

    .ehw-board-meta {
        justify-items: start;
        text-align: left;
    }

    .ehw-board-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ehw-board-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ehw-nav {
        position: static;
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }

    .ehw-home-grid,
    .ehw-kpis,
    .ehw-display-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ehw-app {
        padding: 8px;
    }

    .ehw-frame {
        min-height: calc(100vh - 16px);
    }

    .ehw-topbar {
        grid-template-columns: 1fr;
        gap: 8px;
        border-radius: 11px;
    }

    .ehw-assistant-top {
        position: static;
        display: grid;
    }

    .ehw-assistant-top div {
        justify-content: center;
    }

    .ehw-assistant-top img {
        width: 142px;
    }

    .ehw-brand img {
        width: 124px;
    }

    .ehw-top-actions {
        justify-content: stretch;
    }

    .ehw-icon-btn {
        flex: 1;
        width: auto;
    }

    .ehw-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ehw-nav button,
    .ehw-nav > a {
        min-height: 52px;
        padding: 8px;
    }

    .ehw-home-grid,
    .ehw-form-grid,
    .ehw-left-scan-form,
    .ehw-left-summary,
    .ehw-left-actions,
    .ehw-facts,
    .ehw-kpis,
    .ehw-display-grid,
    .ehw-board-kpis,
    .ehw-board-panels {
        grid-template-columns: 1fr;
    }

    .ehw-board-hero {
        padding: 18px;
    }

    .ehw-board-card {
        min-height: 185px;
    }

    .ehw-board-footer {
        display: grid;
    }

    .ehw-row,
    .ehw-row.two {
        grid-template-columns: 1fr;
    }

    .ehw-left-row {
        grid-template-columns: 58px minmax(0, 1fr) 44px;
        gap: 8px;
    }

    .ehw-left-row > img,
    .ehw-left-image-placeholder {
        width: 58px;
        height: 58px;
    }

    .ehw-left-row .ehw-icon-btn {
        width: 44px;
        height: 44px;
    }

    .ehw-move-zone-lock,
    .ehw-move-queue-head {
        align-items: stretch;
        flex-direction: column;
    }

    .ehw-move-zone-lock .ehw-btn,
    .ehw-move-queue-head .ehw-btn {
        width: 100%;
    }

    .ehw-bulk-move-row .ehw-icon-btn {
        flex: none;
        width: 48px;
    }

    .ehw-current-item {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .ehw-current-item img,
    .ehw-no-image {
        width: 96px;
        height: 96px;
    }

    .ehw-current-item h3 {
        font-size: 18px;
    }

    .ehw-dispatch-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ehw-section-head {
        align-items: stretch;
        flex-direction: column;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .ehw-print-sheet,
    .ehw-print-sheet * {
        visibility: visible !important;
    }

    .ehw-print-sheet {
        position: absolute;
        inset: 0 auto auto 0;
        display: block;
        padding: 0;
        background: #fff;
    }

    @page {
        margin: 6mm;
    }
}
