:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #1a2a2b;
  background: #f5f7f8;
  font-synthesis: none;
  --ink: #1a2a2b;
  --muted: #56686b;
  --muted-light: #627476;
  --line: #e1e8e8;
  --surface: #fff;
  --green: #08765d;
  --green-dark: #075d4a;
  --mint: #a9f2d2;
  --sidebar: #172b2c;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #168d72; outline-offset: 3px; }
svg { flex: 0 0 auto; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.loading { display: grid; min-height: 75vh; place-content: center; color: var(--muted); }

.employee-layout { min-height: 100vh; }
.sidebar { width: 234px; background: var(--sidebar); color: #dce9e7; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 26px 15px 17px; z-index: 5; overflow: auto; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.sidebar .brand { padding: 0 7px 29px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #143c32; background: #79dfbc; }
.brand strong, .brand small { display: block; }
.brand strong { color: inherit; font-size: 1.05rem; font-weight: 730; letter-spacing: .02em; }
.brand small { color: #9cb6b2; font-size: .62rem; font-weight: 700; letter-spacing: .08em; margin-top: 4px; white-space: nowrap; }
.nav-group { margin-top: 14px; margin-bottom: 25px; }
.nav-group p { margin: 0 11px 10px; color: #95afad; font-size: .77rem; font-weight: 670; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; margin: 3px 0; padding: 8px 11px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #c6d7d5; font-size: .92rem; font-weight: 550; text-align: left; text-decoration: none; white-space: nowrap; }
.nav-item svg { color: #9ab5b0; }
.nav-item:hover { background: #213d3d; color: #fff; }
.nav-item.selected { background: #294644; color: #d6ffef; border-color: #365750; box-shadow: inset 3px 0 #88e5c6; font-weight: 680; }
.nav-item.selected svg { color: #a9f2d2; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #38504f; padding-top: 12px; }
.demo-button { width: 100%; padding: 12px 10px; display: flex; align-items: center; gap: 7px; background: transparent; border: 0; color: #a8bfbc; font-size: .78rem; text-align: left; border-radius: 8px; }
.demo-button:hover { background: #213d3d; color: #e3f9f1; }
.demo-dot { height: 7px; width: 7px; border-radius: 50%; background: #86debd; }
.switch { margin-left: auto; display: flex; align-items: center; gap: 2px; }

.workspace { margin-left: 234px; min-width: 0; }
.topbar { background: var(--surface); height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 0 31px; border-bottom: 1px solid var(--line); }
.breadcrumbs, .header-actions, .identity { display: flex; align-items: center; }
.breadcrumbs { gap: 11px; font-size: .91rem; color: var(--muted); }
.breadcrumbs strong { color: var(--ink); font-weight: 670; }
.breadcrumbs svg { color: #697c7e; }
.header-actions { gap: 14px; }
.top-divider { width: 1px; height: 30px; background: var(--line); }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #415856; }
.icon-button:hover { background: #edf3f2; }
.notification-button { position: relative; }
.notification-dot { position: absolute; width: 8px; height: 8px; background: #ed805e; border: 1px solid #fff; border-radius: 50%; top: 7px; right: 8px; }
.identity { gap: 9px; text-align: left; padding: 3px 2px; border: 0; background: transparent; color: #425553; border-radius: 8px; }
.identity:hover { background: #f2f6f5; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #d9eee6; color: #245f50; font-size: .91rem; font-weight: 720; flex: 0 0 auto; }
.avatar.big { width: 46px; height: 46px; font-size: 1.18rem; }
.identity-info strong, .identity-info small, .profile-summary small { display: block; }
.identity-info strong { color: var(--ink); font-size: .9rem; font-weight: 680; }
.identity-info small, .profile-summary small { color: var(--muted); font-size: .76rem; margin-top: 3px; }
.mobile-toggle, .nav-scrim { display: none; }

.main { max-width: 1630px; margin: auto; padding: 29px 31px 44px; }
.main:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 23px; }
.page-heading h1 { font-size: 1.81rem; line-height: 1.2; font-weight: 760; letter-spacing: -.025em; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.date-pill { border: 1px solid var(--line); background: #fff; color: #465b5b; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 9px; font-size: .86rem; flex: 0 0 auto; }
.date-pill svg { color: #287664; }
.hero, .customer-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); background: linear-gradient(104deg, #173e3a 0%, #184f45 58%, #246b5d 100%); color: #fff; }
.hero { min-height: 206px; display: flex; align-items: center; padding: 27px 30px; margin-bottom: 20px; }
.hero-content { position: relative; z-index: 1; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; color: #baf2dd; font-size: .84rem; font-weight: 700; letter-spacing: .045em; }
.hero-label i { width: 7px; height: 7px; border-radius: 50%; background: #8aebc7; }
.hero h2, .customer-hero h1 { font-size: clamp(1.8rem, 3.15vw, 2.4rem); font-weight: 750; letter-spacing: -.035em; margin-top: 9px; line-height: 1.15; }
.hero p, .customer-hero p { color: #d1e9e4; margin-top: 11px; font-size: .95rem; line-height: 1.6; }
.hero p strong { font-weight: 760; color: #eafff7; }
.hero-buttons { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 9px; }
.hero-pattern { position: absolute; inset: 0 0 0 auto; width: 43%; overflow: hidden; opacity: .84; z-index: -1; background: radial-gradient(circle at 70% 55%, #52957e69 0, #3578643d 40%, transparent 72%); }
.hero-pattern i, .hero-pattern b { position: absolute; display: block; }
.hero-pattern i { width: 80%; aspect-ratio: 1; border: 1px solid #bef6df47; border-radius: 32%; transform: rotate(-40deg); right: -7%; top: -28%; }
.hero-pattern i:nth-child(2) { right: -1%; top: -18%; border-color: #bef6df2e; }
.hero-pattern i:nth-child(3) { right: 5%; top: -8%; border-color: #bef6df36; }
.hero-pattern i:nth-child(4) { right: 11%; top: 2%; border-color: #bef6df24; }
.hero-pattern b { width: 7px; height: 7px; border-radius: 50%; background: #a6f1d4; box-shadow: 0 0 0 5px #91ebcc29; right: 24%; top: 30%; }
.hero-pattern b:nth-of-type(2) { right: 47%; top: 69%; width: 5px; height: 5px; opacity: .75; }
.hero-pattern b:nth-of-type(3) { right: 11%; top: 76%; width: 5px; height: 5px; opacity: .65; }

.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .89rem; font-weight: 670; line-height: 1.3; white-space: nowrap; }
.button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: #fff; color: #375653; border-color: #d6e2e1; }
.button.secondary:hover { background: #edf6f3; border-color: #c3d9d2; }
.button.hero-primary { background: #a9f2d2; color: #123c34; }
.button.hero-primary:hover { background: #cff9e8; }
.button.hero-secondary { background: #ffffff11; border-color: #ffffff52; color: #ecfff8; }
.button.hero-secondary:hover { background: #ffffff27; }
.button.text { background: transparent; color: var(--green-dark); }
.button.text:hover { background: #e9f5ef; }
.text-button, .table-link { border: 0; background: transparent; color: #08664f; padding: 6px 4px; font-size: .88rem; font-weight: 690; border-radius: 5px; white-space: nowrap; }
.text-button:hover, .table-link:hover { color: #064a3a; text-decoration: underline; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); text-align: left; padding: 14px 16px 15px; display: flex; flex-direction: column; color: var(--ink); box-shadow: 0 2px 4px #173b3610; }
.stat-card:hover { border-color: #92c4b7; }
.stat-card strong { display: block; margin: 9px 0 4px; font-size: 1.76rem; line-height: 1.05; font-weight: 740; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-card > span { color: var(--muted); font-size: .88rem; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: #78908d; }
.tile-icon, .activity-icon { width: 39px; height: 39px; border-radius: 10px; display: inline-grid; place-items: center; flex: 0 0 auto; }
.jade { background: #e1f4ec; color: #1c755c; }
.sand { background: #fff0d9; color: #8b571a; }
.blue { background: #e8f1fb; color: #3c638d; }
.lilac { background: #efebfb; color: #6c53a1; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(245px, 1fr); gap: 17px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 4px #173b3609; min-width: 0; }
.panel-header { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 17px; }
.panel-header > div { display: flex; align-items: center; gap: 8px; }
.panel-header h2, .customer-panel-title h2 { font-size: 1.07rem; font-weight: 730; }
.section-icon { color: #337863; }
.tab-strip { display: flex; gap: 21px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.tab-strip button { color: var(--muted); font-weight: 620; font-size: .89rem; min-height: 37px; border: 0; padding: 0 2px; border-bottom: 2px solid transparent; background: transparent; }
.tab-strip button.active { border-bottom-color: var(--green); color: #08664f; font-weight: 730; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; text-align: left; }
thead { background: #f6f9f9; color: #536767; }
th { padding: 10px 15px; font-weight: 650; white-space: nowrap; }
td { border-top: 1px solid #edf0f1; padding: 11px 15px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; text-align: right; }
tbody tr:hover { background: #f8fbfa; }
.product-name, .product-sub { display: block; }
.product-name { font-weight: 700; line-height: 1.35; }
.product-sub { color: var(--muted-light); font-size: .77rem; margin-top: 4px; line-height: 1.42; }
.category-chip, .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; font-size: .82rem; line-height: 1.3; font-weight: 650; }
.category-chip { background: #eef2f2; color: #4e6665; }
.badge i { height: 6px; width: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-pending { background: #fef0d8; color: #81531d; }
.badge-deferred { background: #fceadd; color: #8b4632; }
.badge-quoted, .badge-delivered { background: #e3f4ea; color: #21664e; }
.badge-confirmed, .badge-warehouse_submitted { background: #efebfb; color: #664e95; }
.badge-in_warehouse, .badge-at_destination { background: #e2f2ef; color: #285f56; }
.badge-in_transit { background: #e5effc; color: #365d8f; }
.price { font-variant-numeric: tabular-nums; }
.tracking-cell { font-family: ui-monospace, monospace; font-size: .8rem; white-space: nowrap; }

.activity-list { padding: 0 15px 7px; }
.activity-row { width: 100%; display: flex; text-align: left; align-items: flex-start; gap: 10px; padding: 10px 3px; color: var(--ink); border: 0; border-bottom: 1px solid #edf1f1; background: transparent; }
.activity-row:hover { background: #f6faf9; }
.activity-row:last-child { border: 0; }
.activity-icon { width: 31px; height: 31px; border-radius: 9px; }
.activity-text { min-width: 0; display: grid; gap: 3px; font-size: .83rem; }
.activity-text strong { font-size: .89rem; font-weight: 700; line-height: 1.3; }
.activity-text span { color: var(--muted); overflow-wrap: anywhere; }
.activity-text time { color: var(--muted-light); font-size: .75rem; }
.empty { min-height: 152px; padding: 21px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; color: var(--muted); font-size: .91rem; }
.empty svg { color: #4b8e7d; }
.empty strong { color: var(--ink); }
.empty.compact { min-height: 84px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 16px 17px; border-bottom: 1px solid var(--line); }
input:not([type="checkbox"]), select, textarea { min-height: 40px; width: 100%; min-width: 0; border: 1px solid #d3dfdf; border-radius: 8px; padding: 8px 10px; color: var(--ink); background: #fff; font-size: .94rem; }
input::placeholder, textarea::placeholder { color: #6c8080; }
input:focus, select:focus, textarea:focus { border-color: #2b9078; outline: 2px solid #c5eadf; outline-offset: 0; }
input[readonly] { background: #f4f7f7; }
textarea { resize: vertical; }
input[type="checkbox"] { accent-color: var(--green); width: 17px; height: 17px; }
select { padding-right: 31px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23415a56' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.filters select { width: auto; min-width: 127px; }
.search-input { position: relative; flex: 0 1 330px; }
.search-input svg { position: absolute; z-index: 1; top: 11px; left: 11px; color: #537474; }
.search-input input { padding-left: 36px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 17px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.pagination > div { display: flex; align-items: center; gap: 5px; }
.employee-name, .role-list { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.role-list { flex-wrap: wrap; }
.notice-row { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); padding: 14px 17px; }
.notice-row:hover { background: #f7fbf9; }
.notice-row:last-child { border: 0; }
.notice-row strong, .notice-row span > span { display: block; }
.notice-row span > span, .notice-row time { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.unread-mark { display: inline-block; margin-left: 7px; width: 7px; height: 7px; background: #db7250; border-radius: 50%; }

dialog { padding: 0; border: 1px solid #d2e0dc; border-radius: 15px; width: min(550px, calc(100vw - 26px)); max-width: none; max-height: calc(100dvh - 30px); color: var(--ink); box-shadow: 0 24px 72px #11252549; }
dialog::backdrop { background: #0b23228c; }
dialog.dialog-wide { width: min(712px, calc(100vw - 26px)); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 18px 11px 21px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.dialog-header h2 { font-size: 1.25rem; overflow-wrap: anywhere; }
.dialog-content { padding: 19px 21px 21px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field span { font-size: .89rem; font-weight: 680; }
.form-grid .wide { grid-column: 1 / -1; }
.field-note { margin: -5px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.field + .field { margin-top: 10px; }
.form-grid .field + .field { margin-top: 0; }
.form-intro { font-size: .94rem; color: var(--muted); margin-bottom: 13px; line-height: 1.55; }
.product-fields, .role-fields { border: 1px solid var(--line); border-radius: 9px; margin: 13px 0; padding: 10px 12px 12px; min-width: 0; }
.inquiry-extra { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.inquiry-extra summary { cursor: pointer; color: var(--muted); font-size: .89rem; }
.inquiry-extra .form-grid { margin-top: 10px; }
fieldset legend { color: var(--green-dark); font-size: .9rem; font-weight: 710; padding: 0 6px; }
.remove-item { margin-top: 7px; }
.inquiry-products:has(.product-fields:only-child) .remove-item { display: none; }
.modal-actions, .detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.detail-meta { display: flex; justify-content: space-between; align-items: center; gap: 9px; color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 0; }
.detail-grid div { border-radius: 8px; background: #f3f7f6; padding: 9px 11px; min-width: 0; }
.detail-grid dt { color: var(--muted); font-size: .83rem; margin-bottom: 4px; }
.detail-grid dd { margin: 0; font-weight: 610; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-section { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 16px; }
.detail-section h3 { font-size: 1.02rem; margin-bottom: 10px; }
.progress-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.progress-note-hint { margin-top: 7px; }
.cargo-photo { display: grid; justify-items: start; gap: 8px; margin-top: 12px; }
.cargo-photo img { display: block; width: auto; max-width: 100%; max-height: 250px; object-fit: contain; border-radius: 8px; }
.hint { padding: 9px 10px; border-radius: 8px; background: #eaf5ef; color: #2e6353; font-size: .9rem; line-height: 1.45; margin: 9px 0 13px; overflow-wrap: anywhere; }
.hint.error-hint { color: #943f35; background: #fff0ec; }
.timeline { list-style: none; padding: 0; margin: 13px 0 0; }
.timeline li { display: grid; grid-template-columns: 17px 1fr; align-items: start; position: relative; padding: 0 0 13px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li > span { width: 8px; height: 8px; border: 2px solid #438875; background: #d6eee5; border-radius: 50%; position: relative; z-index: 1; margin-top: 6px; }
.timeline li:not(:last-child)::after { content: ''; width: 1px; left: 3px; top: 10px; bottom: -7px; position: absolute; background: #c9ddd8; }
.timeline strong { font-size: .94rem; }
.timeline p, .timeline time { display: block; color: var(--muted); font-size: .85rem; margin-top: 3px; overflow-wrap: anywhere; white-space: pre-wrap; }
.tracking-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); margin: 6px 0; }
.tracking-line { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.tracking-line code { color: var(--green-dark); font-size: .8rem; overflow-wrap: anywhere; }
.role-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.role-fields label, .toggle-line { display: flex; gap: 6px; align-items: center; font-size: .92rem; }
.profile-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.public-layout { min-height: 100vh; }
.public-header { background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; min-height: 68px; padding: 10px max(18px, calc((100vw - 1120px) / 2)); gap: 9px; }
.public-header .brand small { color: #547773; }
.login-main { display: grid; place-items: start center; margin: clamp(28px, 12vh, 120px) 12px 0; }
.login-card { padding: 23px; width: min(100%, 460px); }
.login-card h1 { font-size: 1.67rem; margin: 11px 0 6px; }
.login-card p { line-height: 1.55; margin: 6px 0 12px; color: var(--muted); }
.login-card form button { margin-top: 12px; }
.customer-main { max-width: 1120px; padding: 24px 18px 40px; margin: 0 auto; }
.customer-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 25px 28px; margin-bottom: 16px; }
.customer-hero-icon { display: inline-grid; place-items: center; color: #c9f9e9; width: 108px; height: 108px; border-radius: 26px; border: 1px solid #74beaa; background: #ffffff10; }
.customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.customer-panel { padding: 17px; }
.customer-panel-title { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.customer-panel-title p { font-size: .87rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.customer-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.tracking-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px; }
.tracking-form .button { min-height: 40px; }
.tracking-result { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.customer-order { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 7px; }
.customer-order summary { display: flex; gap: 7px; align-items: center; padding: 9px; cursor: pointer; list-style: none; }
.customer-order summary::-webkit-details-marker { display: none; }
.customer-order summary > span:first-child { flex: 1 1 auto; min-width: 0; }
.customer-order summary strong, .customer-order summary small { display: block; }
.customer-order summary strong { overflow-wrap: anywhere; }
.customer-order summary small { color: var(--muted); font-size: .83rem; margin-top: 3px; }
.customer-order-body { border-top: 1px solid var(--line); padding: 8px 10px 10px; }

.toasts { position: fixed; right: 15px; bottom: 15px; z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; max-width: calc(100% - 30px); pointer-events: none; }
.toast { background: #174d40; color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: 0 5px 22px #11252538; font-size: .92rem; line-height: 1.45; }
.toast.toast-error { background: #853e33; }
.dialog-content .form-error { margin-top: 10px; }

@media (max-width: 1150px) {
  .sidebar { width: 203px; }
  .workspace { margin-left: 203px; }
  .topbar { padding: 0 21px; }
  .main { padding-inline: 21px; }
  th, td { padding-inline: 10px; }
}
@media (max-width: 960px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .activity-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .employee-layout table { min-width: 540px; }
}
@media (max-width: 730px) {
  .sidebar { width: 225px; transform: translateX(-100%); transition: transform .18s ease; visibility: hidden; }
  .sidebar.is-open { transform: translateX(0); visibility: visible; }
  .workspace { margin-left: 0; }
  .nav-scrim { display: block; border: 0; position: fixed; inset: 0; background: #10272765; z-index: 4; }
  .mobile-toggle { display: inline-grid; }
  .topbar { padding: 0 10px; height: 56px; }
  .breadcrumbs, .header-actions { gap: 6px; }
  .identity-info { display: none; }
  .main { padding: 17px 12px 30px; }
  .hero { padding: 17px 14px; min-height: 175px; }
  .hero-pattern { width: 55%; opacity: .62; }
  .hero h2 { font-size: 1.72rem; }
  .page-heading { margin-bottom: 12px; }
  .page-heading h1 { font-size: 1.47rem; }
  .page-heading p { font-size: .87rem; margin-top: 5px; }
  .date-pill { font-size: .74rem; padding: 5px 7px; gap: 4px; }
  .date-pill svg { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 13px; }
  .stat-card { padding: 10px; }
  .dashboard-grid { gap: 10px; }
  .customer-grid { grid-template-columns: 1fr; }
  .customer-hero { padding: 15px; }
  .customer-hero-icon { width: 59px; height: 59px; border-radius: 13px; }
  .customer-hero-icon svg { width: 38px; height: 38px; }
}
@media (max-width: 420px) {
  .page-heading { align-items: flex-start; }
  .date-pill { white-space: normal; max-width: 105px; text-align: right; }
  .activity-list { grid-template-columns: 1fr; }
  .form-grid { gap: 9px; }
  .notice-row { grid-template-columns: auto 1fr; padding: 10px; }
  .notice-row time { grid-column: 2; margin-top: -5px; }
  .customer-panel { padding: 12px; }
  .tracking-form { grid-template-columns: 1fr; }
  .customer-order summary { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}
