@font-face {
    font-family: "Assistant";
    src: url("/assets/fonts/assistant-hebrew.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
    font-family: "Assistant";
    src: url("/assets/fonts/assistant-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --navy: #112f50;
    --navy-deep: #0a223d;
    --blue: #1768c5;
    --blue-soft: #eaf3ff;
    --ink: #172238;
    --muted: #718097;
    --line: #dfe7f1;
    --bg: #f5f7fb;
    --green: #087a45;
    --shadow: 0 10px 30px rgba(28, 48, 78, .07);
}

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    background: var(--bg);
    font-family: "Assistant", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input, select { font-family: inherit; }
button { transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
button:not(:disabled):active { transform: translateY(1px); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: 264px;
    height: 100vh;
    padding: 24px 18px 18px;
    color: #fff;
    background: linear-gradient(180deg, #12385f 0%, var(--navy-deep) 100%);
    box-shadow: -12px 0 30px rgba(12, 34, 61, .08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 8px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #103456;
    background: #fff;
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .14);
}

.sidebar-brand p { margin: 0; font-size: 19px; font-weight: 850; letter-spacing: -.02em; }
.sidebar-brand small { color: #a9c5df; font-size: 12px; }
.sidebar-nav { display: grid; gap: 7px; margin-top: 24px; }

.sidebar-link,
.sidebar-logout {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #c8d8e8;
    background: transparent;
    text-align: right;
    cursor: pointer;
    font-weight: 700;
}

.sidebar-link:hover,
.sidebar-link.active { color: #fff; background: rgba(255, 255, 255, .12); }
.sidebar-link.active { box-shadow: inset -3px 0 #68aef5; }
.sidebar-link > span:first-child { font-size: 19px; text-align: center; }
.sidebar-link > span:first-child svg { display: block; width: 19px; height: 19px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-link strong { min-width: 25px; padding: 2px 7px; border-radius: 99px; color: #fff; background: #1870d0; text-align: center; font-size: 11px; }
.sidebar-footer { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sidebar-contacts { display: grid; gap: 7px; padding: 0 7px 9px; }
.sidebar-contacts > strong { color: #91abc3; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.sidebar-contacts a { display: grid; gap: 1px; padding: 7px 8px; border-radius: 9px; color: #dbe8f4; background: rgba(255, 255, 255, .055); text-decoration: none; }
.sidebar-contacts a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.sidebar-contacts a span { font-size: 11px; font-weight: 700; }
.sidebar-contacts a b { color: #9fc6ea; font-size: 11px; font-weight: 650; }
.sidebar-contacts a small { color: #819db7; font-size: 9px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 7px; }
.sidebar-user > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #12385f; background: #dcecff; font-weight: 900; }
.sidebar-user div { display: grid; min-width: 0; }
.sidebar-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.sidebar-user small { color: #9fb9d1; font-size: 11px; }
.sidebar-logout { grid-template-columns: 24px minmax(0, 1fr); color: #e7eef6; }
.sidebar-logout:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.sidebar-credit { padding: 4px 8px 0; color: #a9c5df; text-decoration: none; font-size: 11px; }
.sidebar-credit:hover { color: #fff; }
.sidebar-footer .release-info { display: block; margin: 0; padding: 0 8px; color: #7897b3; font-size: 10px; }

.sidebar-backdrop { display: none; }
.dashboard-main { min-width: 0; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 84px;
    padding: 15px clamp(22px, 3vw, 42px);
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(219, 229, 242, .85);
    box-shadow: 0 4px 22px rgba(36, 55, 84, .04);
    backdrop-filter: blur(14px);
}

.topbar-brand { display: grid; gap: 1px; }
.topbar-brand h1 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.topbar-brand > span { color: var(--muted); font-size: 12px; }
.mobile-business-name { display: none; }
.mobile-menu-button { display: none; }
.header-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #bce3d0; border-radius: 999px; color: var(--green); background: #f0faf5; font-size: 12px; font-weight: 750; }
.header-status span { width: 7px; height: 7px; border-radius: 50%; background: #16a066; box-shadow: 0 0 0 4px rgba(22, 160, 102, .11); }

.content { width: min(1180px, calc(100% - 48px)); margin: 32px auto 70px; }
.content > .notice,
.content > .alert { box-shadow: var(--shadow); }

.view-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 22px;
}
.view-intro h2 { margin: 3px 0 4px; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.view-intro p { margin: 0; color: var(--muted); }
.section-kicker { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-heading h2 { margin: 3px 0 0; }

.toolbar { margin: 0; }
.sync-form { display: flex; align-items: center; gap: 10px; }
.sync-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #b8cce4;
    border-radius: 12px;
    padding: 9px 15px;
    color: var(--navy);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(28, 62, 102, .06);
}
.sync-form button:hover:not(:disabled) { border-color: #7ca7d6; background: #f8fbff; }
.sync-form small { max-width: 260px; color: var(--muted); font-size: 11px; }

.summary { gap: 14px; margin-bottom: 18px; }
.summary div {
    position: relative;
    min-height: 122px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    gap: 2px 16px;
    padding: 22px 24px;
    border: 1px solid rgba(219, 229, 242, .9);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.summary div::after { content: ""; position: absolute; inset-inline-end: -28px; bottom: -42px; width: 120px; height: 120px; border-radius: 50%; background: var(--blue-soft); }
.summary span { align-self: end; color: var(--ink); font-size: 15px; font-weight: 750; }
.summary strong { z-index: 1; grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--blue); font-size: 40px; line-height: 1; }
.summary small { color: var(--muted); font-size: 11px; }

.panel {
    border: 1px solid rgba(219, 229, 242, .92);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.order-filter-panel {
    position: sticky;
    top: 100px;
    z-index: 15;
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.6fr) minmax(160px, .7fr);
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 18px;
    box-shadow: 0 10px 28px rgba(28, 48, 78, .09);
}
.order-filter-panel > div { display: grid; gap: 1px; }
.order-filter-panel h2 { margin: 0; font-size: 16px; }
.order-filter-panel small { color: var(--muted); font-size: 11px; }
.order-filter-panel label { margin: 0; }
.order-filter-panel input,
.order-filter-panel select { width: 100%; min-height: 42px; border: 1px solid #ccd8e7; border-radius: 11px; padding: 9px 12px; color: var(--ink); background: #fbfcfe; outline: 0; }
.order-filter-panel input:focus,
.order-filter-panel select:focus { border-color: #5d98d8; box-shadow: 0 0 0 3px rgba(23, 104, 197, .1); }

.orders { gap: 12px; }
.order-card {
    padding: 0;
    border: 1px solid rgba(219, 229, 242, .95);
    border-inline-end: 4px solid var(--blue);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(28, 48, 78, .055);
    overflow: visible;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.order-card:hover { border-color: #cad9ea; box-shadow: 0 11px 30px rgba(28, 48, 78, .09); }
.order-card.is-expanded { box-shadow: 0 15px 38px rgba(28, 48, 78, .1); }
.order-head { min-height: 112px; align-items: center; padding: 19px 20px; cursor: pointer; outline: 0; }
.order-head:focus-visible { box-shadow: inset 0 0 0 3px rgba(23, 104, 197, .2); }
.order-identity { min-width: 0; }
.order-head h2 { margin: 4px 0 5px; font-size: 21px; letter-spacing: .015em; }
.source { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 7px; color: #1768c5; background: #eaf3ff; font-size: 10px; letter-spacing: .05em; }
.source-superpharm { color: #087a45; background: #eaf8f1; }
.source-wolt { color: #5945a8; background: #f0edff; }
.source-order-link { color: var(--ink); text-decoration: none; }
.source-order-link:hover { color: var(--blue); }
.order-glance { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.order-glance span { color: #40526b; font-size: 12px; font-weight: 650; }
.order-glance .order-customer-link { color: #155faa; font-size: 12px; font-weight: 750; text-decoration: none; }
.order-glance .order-customer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.customer-history-badge { padding: 2px 7px; border-radius: 999px; font-size: 10px !important; font-weight: 800 !important; }
.customer-history-badge.new { color: #52647a; background: #eef2f7; }
.customer-history-badge.returning { color: #7a4f00; background: #fff3d6; }
.order-glance strong { color: var(--ink); font-size: 13px; }
.source-status { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.order-head-tools { align-items: center; }
.order-message-icon,
.customer-message-button { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid #bde6cf; border-radius: 10px; color: #087a45; background: #effaf4; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.order-message-icon:hover,
.customer-message-button:hover { border-color: #83cda4; background: #e3f7ec; transform: translateY(-1px); }
.order-message-icon svg,
.customer-message-button svg { width: 20px; height: 20px; fill: currentColor; }
.status { padding: 6px 10px; white-space: nowrap; }
.order-action-menu > summary { width: 36px; height: 36px; border-color: #d2deeb; }
.order-card-body { padding: 0 20px 20px; border-top: 1px solid #edf2f7; }
.customer { margin: 16px 0; padding: 14px 15px; border: 1px solid #e5ebf3; border-radius: 13px; background: #f8fafc; }
.customer-name { color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; }
.customer-profile-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.customer-detail-link { color: #155faa; text-underline-offset: 2px; }
.phone-link { font-variant-numeric: tabular-nums; letter-spacing: .015em; }
.order-card-body > details { padding-top: 13px; }
.order-card-body > details > summary { display: flex; align-items: center; min-height: 34px; }
.order-items { margin-top: 6px; }
.order-item { align-items: center; padding: 12px 0; }
.product-image { width: 48px; height: 48px; border-radius: 11px; }
.product-name { flex: 1; min-width: 0; }
.product-name small { display: block; color: var(--muted); font-size: 11px; }
.item-pricing { display: grid; gap: 1px; color: var(--ink); font-size: 12px; text-align: left; }
.order-total-row { margin-top: 11px; border-radius: 11px; background: #f1f6fc; }
.actions { align-items: center; padding-top: 4px; }
.action-with-help { min-width: min(390px, 100%); }
.action-with-help button { min-height: 43px; border-radius: 11px; }
.whatsapp-action { min-height: 43px; border-radius: 11px; }
.tracking-number-link { min-height: 43px; border-radius: 11px; }
.order-more-actions { margin-top: 14px; }
.order-progress { border-radius: 12px; }

.customer-filter-panel { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(280px, 1.5fr); align-items: end; gap: 18px; padding: 17px 20px; }
.customer-filter-panel > div { display: grid; gap: 2px; }
.customer-filter-panel h2 { margin: 0; font-size: 16px; }
.customer-filter-panel small { color: var(--muted); font-size: 11px; }
.customer-filter-panel input { width: 100%; min-height: 42px; border: 1px solid #ccd8e7; border-radius: 11px; padding: 9px 12px; background: #fbfcfe; outline: 0; }
.customer-filter-panel input:focus { border-color: #5d98d8; box-shadow: 0 0 0 3px rgba(23, 104, 197, .1); }
.customer-directory { display: grid; grid-template-columns: 1fr; gap: 7px; }
.customer-card { scroll-margin-top: 110px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 4px 13px rgba(27, 55, 88, .045); transition: border-color .2s ease, box-shadow .2s ease; }
.customer-card.is-highlighted { border-color: #6ca8e7; box-shadow: 0 0 0 4px rgba(23, 104, 197, .11), var(--shadow); }
.customer-row { display: flex; align-items: center; padding: 7px 9px 7px 12px; }
.customer-row-toggle { flex: 1; display: grid; grid-template-columns: 36px minmax(170px, 1fr) minmax(70px, .35fr) minmax(90px, .45fr) 24px; align-items: center; gap: 11px; min-height: 53px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: right; cursor: pointer; }
.customer-row-toggle:hover .customer-row-identity strong { color: var(--blue); }
.customer-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #155faa; background: var(--blue-soft); font-size: 16px; font-weight: 850; }
.customer-row-identity, .customer-row-count, .customer-row-spend { display: grid; gap: 1px; min-width: 0; }
.customer-row-identity strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.customer-row-identity small, .customer-row-count small, .customer-row-spend small { color: var(--muted); font-size: 10px; }
.customer-row-count strong, .customer-row-spend strong { font-size: 13px; }
.customer-row-chevron { color: #65778e; font-size: 19px; transition: transform .2s ease; }
.customer-card.is-expanded .customer-row-chevron { transform: rotate(180deg); }
.customer-card.is-expanded .customer-row { border-bottom: 1px solid #edf2f7; background: #fbfdff; }
.customer-card-details { padding: 17px 19px 18px; }
.customer-profile-heading { display: flex; align-items: center; justify-content: space-between; }
.customer-card h3 { margin: 0 0 4px; font-size: 19px; }
.customer-type-badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; color: #52647a; background: #eef2f7; font-size: 10px; font-weight: 800; }
.customer-type-badge.returning { color: #7a4f00; background: #fff3d6; }
.customer-contact-list { display: grid; gap: 7px; margin: 14px 0; }
.customer-contact-list a { width: fit-content; max-width: 100%; overflow: hidden; color: #40526b; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.customer-contact-list a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.customer-metrics { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #f7f9fc; }
.customer-metrics span { flex: 1; display: grid; color: var(--muted); font-size: 11px; }
.customer-metrics strong { color: var(--ink); font-size: 16px; }
.customer-history { margin-top: 14px; padding-top: 13px; }
.customer-history ol { margin: 8px 0 0; padding: 0; list-style: none; }
.customer-history li { padding: 0; }
.customer-history li:last-child { border-bottom: 0; }
.customer-history li a { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; color: var(--ink); text-decoration: none; }
.customer-history li a:hover { color: var(--blue); }
.customer-history li span { display: grid; }
.customer-history li span:last-child { justify-items: end; }
.customer-history small { color: var(--muted); font-size: 10px; }

.connections-panel { padding: 0; }
.connections-title { padding: 22px 22px 17px; border-bottom: 1px solid #edf2f7; background: linear-gradient(180deg, #fff, #fbfdff); }
.system-readiness { margin: 18px 22px 0; padding: 13px; border: 1px solid #e3ebf4; border-radius: 13px; background: #f7faff; }
.compact-error { margin-inline: 22px; }
.connection-timeline { margin: 14px 22px 0; }
.connections-panel .connections { gap: 12px; padding: 18px 22px 22px; }
.connections-panel .connection-card { position: relative; min-height: 158px; padding: 16px; border-radius: 14px; background: #fbfcfe; transition: border-color .18s ease, box-shadow .18s ease; }
.connections-panel .connection-card:hover { border-color: #bdcee1; box-shadow: 0 7px 18px rgba(28, 48, 78, .06); }
.connection-heading { justify-content: space-between; }
.connection-heading > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.connect-help { margin: 0 22px 22px; padding: 14px; border: 1px solid #e3ebf4; border-radius: 12px; background: #f9fbfd; }
.connection-timeline ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-grid article { border-radius: 13px; background: #fbfcfe; }
.notification-settings { padding: 21px 22px; border-inline-start: 4px solid #75a9e1; }
.notification-settings label { border: 1px solid #dbe5f0; border-radius: 10px; padding: 8px 11px; background: #fbfcfe; }
.settings-form-panel { padding: 22px; }
.settings-panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.settings-panel-heading h2 { margin: 0; font-size: 18px; }
.settings-panel-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.settings-panel-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 20px; font-weight: 800; }
.settings-form-panel label { display: grid; gap: 5px; color: #40526b; font-size: 11px; font-weight: 750; }
.settings-form-panel input,
.settings-form-panel select { width: 100%; min-height: 42px; border: 1px solid #ccd8e7; border-radius: 10px; padding: 9px 11px; background: #fbfcfe; }
.settings-form-panel button { min-height: 42px; align-self: end; }
.admin-form { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; }
.password-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; }
.activity-panel { padding: 22px; }
.jobs li { align-items: center; border-bottom-color: #edf2f7; }
.jobs small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.confirmation-dialog { border: 0; background: transparent; }
.confirmation-dialog::backdrop { background: rgba(8, 25, 44, .48); backdrop-filter: blur(3px); }
.confirmation-dialog-card { border-radius: 18px; box-shadow: 0 24px 80px rgba(8, 25, 44, .28); }

@media (max-width: 980px) {
    .dashboard-shell { display: block; }
    .app-sidebar { position: fixed; inset: 0 0 0 auto; width: min(300px, 86vw); transform: translateX(105%); transition: transform .24s ease; box-shadow: -24px 0 60px rgba(6, 22, 40, .24); }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; width: 100%; height: 100%; border: 0; background: rgba(8, 25, 44, .38); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
    body.sidebar-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .topbar { min-height: 72px; padding: 11px 18px; }
    .mobile-menu-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: #fff; font-size: 20px; cursor: pointer; }
    .mobile-business-name { display: block; margin: 0; color: var(--blue); font-size: 10px; font-weight: 800; }
    .topbar-brand h1 { font-size: 19px; }
    .topbar-brand > span { display: none; }
    .content { width: min(100% - 28px, 760px); margin-top: 22px; }
    .view-intro { align-items: center; }
    .view-intro h2 { font-size: 27px; }
    .order-filter-panel { top: 84px; }
    .connection-timeline ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-directory { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body { font-size: 14px; }
    .topbar { gap: 11px; }
    .header-status { margin-inline-start: auto; padding: 6px 8px; font-size: 10px; }
    .content { width: calc(100% - 20px); margin: 18px auto 50px; }
    .view-intro { align-items: flex-start; gap: 14px; }
    .view-intro p { max-width: 250px; font-size: 12px; }
    .view-intro .toolbar { flex: 0 0 auto; }
    .sync-form { display: grid; justify-items: end; }
    .sync-form button { min-width: 44px; min-height: 40px; padding: 8px 11px; }
    .sync-form small { display: none; }
    .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .summary div { min-height: 100px; grid-template-columns: 1fr; padding: 16px; }
    .summary strong { grid-row: 1; grid-column: 1; font-size: 31px; }
    .summary span { grid-row: 2; font-size: 12px; }
    .summary small { display: none; }
    .order-filter-panel { position: static; grid-template-columns: 1fr; gap: 9px; padding: 13px; }
    .order-filter-panel > div { grid-template-columns: 1fr auto; align-items: baseline; }
    .order-filter-panel > div small { text-align: left; }
    .order-head { min-height: 112px; align-items: flex-start; padding: 16px 14px; gap: 10px; }
    .order-head h2 { font-size: 18px; }
    .order-head-tools { gap: 5px; }
    .order-message-icon { width: 32px; height: 32px; }
    .status { max-width: 116px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
    .order-card-toggle,
    .order-action-menu > summary { width: 32px; height: 32px; }
    .order-card-body { padding: 0 14px 15px; }
    .customer { display: grid; gap: 8px; }
    .order-item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
    .item-pricing { grid-column: 2; text-align: right; }
    .actions { display: grid; }
    .actions > *, .actions form, .actions a { width: 100%; }
    .tracking-number-link { min-width: 0; }
    .connections-title { align-items: flex-start; flex-direction: column; }
    .sync-interval-form { width: 100%; align-items: end; }
    .sync-interval-form label { flex: 1; display: grid; }
    .sync-interval-form select { width: 100%; }
    .connection-timeline ol { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .customer-filter-panel { grid-template-columns: 1fr; gap: 10px; }
    .customer-row { padding: 6px 8px; }
    .customer-row-toggle { grid-template-columns: 34px minmax(0, 1fr) 58px 22px; gap: 8px; }
    .customer-avatar { width: 34px; height: 34px; }
    .customer-row-spend { display: none; }
    .customer-card-details { padding: 14px; }
    .customer-history li a { align-items: flex-start; }
    .notification-settings { align-items: flex-start; }
    .notification-settings > div { width: 100%; }
    .admin-form, .password-form { display: grid; grid-template-columns: 1fr; }
}
