:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #111d38;
  background: #eef4fd;
  --ink: #111d38;
  --muted: #445777;
  --line: #d8e3f5;
  --accent: #075de7;
  --purple: var(--accent);
  --sidebar: #151936;
  --nav-width: 234px;
  --header-height: 60px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #5599f8; outline-offset: 2px; }
::selection { color: #103485; background: #cee3ff; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; border: 1px solid #cfdcf2; border-radius: 8px;
  color: var(--ink); background: #fff; padding: 0 12px; white-space: nowrap; font-weight: 600;
}
.button:hover, .icon-button:hover { background: #eaf2ff; }
.button .icon { width: 16px; height: 16px; }
.icon-button { width: 36px; padding: 0; }
.primary { background: linear-gradient(150deg,#0b74fa,#0050de); border-color: #0a5de0; color: white; }
.primary:hover { background: #064bbd; }
.wordmark { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 750; letter-spacing: .025em; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #6647ed; color: white; }
.mark .icon { width: 24px; height: 24px; }

.app-shell { display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); min-height: 100vh; }
.app-shell.nav-collapsed { grid-template-columns: minmax(0, 1fr); }
.app-shell.nav-collapsed .sidebar { display: none; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow: hidden; color: #eff0ff; background: linear-gradient(160deg,#12182e 18%,#191941 100%); display: flex; flex-direction: column; }
.sidebar > .wordmark { flex: none; min-height: var(--header-height); padding: 0 17px; border-bottom: 1px solid #2b3153; }
.sidebar nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #61688c transparent; padding: 15px 10px; }
.nav-link { display: flex; align-items: center; min-height: 40px; gap: 11px; padding: 0 11px; border-radius: 7px; font-weight: 600; }
.nav-link:hover { background: #272c52; }
.nav-link.active { background: #593cdd; color: #fff; }
.nav-link .icon { width: 18px; height: 18px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.nav-link .nav-chevron { margin-left: auto; width: 13px; height: 13px; transform: rotate(-90deg); }
.nav-group[open] .nav-chevron { transform: rotate(0); }
.nav-group ul { list-style: none; margin: 2px 0 6px 30px; padding: 0 4px 0 9px; border-left: 1px solid #464c72; }
.nav-group li { padding: 5px 3px; font-size: 12px; color: #c3c7e2; }
.sidebar-bottom { flex: none; border-top: 1px solid #333856; padding: 13px 16px; color: #c3c7e2; font-size: 12px; }
.workspace { min-width: 0; }
.topbar { position: sticky; z-index: 3; top: 0; min-height: var(--header-height); display: flex; align-items: center; gap: 15px; padding: 6px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar .icon-button { border-color: transparent; }
.global-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #cfdcf2; border-radius: 7px; background: #f2f4fc; color: var(--muted); width: min(100%, 500px); margin-right: auto; }
.global-search .icon { width: 16px; height: 16px; }
.global-search input { min-width: 0; width: 100%; min-height: 32px; border: 0; color: var(--ink); background: transparent; }
.global-search input:focus { outline: 0; }
.global-search:focus-within { outline: 2px solid #5599f8; }
.header-menu { position: relative; flex: none; }
.profile { display: flex; align-items: center; gap: 8px; }
.profile .icon { width: 15px; height: 15px; }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: #4629be; background: #eae3ff; font-weight: 800; }
.profile-text { display: grid; gap: 1px; font-size: 13px; }
.profile-text small { color: var(--muted); }
.header-popover { position: absolute; z-index: 5; top: calc(100% + 11px); right: 0; min-width: 170px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 10px; }
.header-popover p { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.header-popover .button { width: 100%; }
.sidebar-scrim { display: none; }

.dashboard { max-width: 1700px; margin: auto; padding: 12px 21px 24px; display: grid; gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumb .icon { width: 15px; height: 15px; }
.page-heading, .heading-lockup, .page-actions { display: flex; align-items: center; gap: 10px; }
.page-heading { justify-content: space-between; margin: 1px 0 2px; }
.title-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--purple); background: #ece7ff; }
.title-icon .icon { width: 27px; height: 27px; }
h1, h2, p { margin: 0; }
h1 { font-size: 28px; letter-spacing: -.03em; line-height: 1.12; }
.page-heading p { color: var(--muted); margin-top: 3px; font-size: 13px; }
.demo-badge { color: #4c35a5; font-weight: 650; font-size: 12px; }
.surface { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }
.kpi { --tint: #edf3ff; --stroke: #dbe5fb; --tone: #244bb8; --disc: #dce7ff; position: relative; display: flex; align-items: center; gap: 9px; min-height: 76px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--tint); font-variant-numeric: tabular-nums; }
.kpi.confirmed { --tint: #f0f8ef; --stroke: #dcebd9; --tone: #27681f; --disc: #ddefd8; }
.kpi.waiting { --tint: #fff6ed; --stroke: #f7e6d4; --tone: #98420b; --disc: #ffe8cc; }
.kpi.cancelled { --tint: #fff0f2; --stroke: #f8dfe4; --tone: #a7213b; --disc: #ffdce3; }
.kpi.shipping { --tint: #f3efff; --stroke: #e7defa; --tone: #5739d9; --disc: #e7dbff; }
.kpi-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; color: var(--tone); background: var(--disc); }
.kpi > div { display: grid; gap: 3px; }
.kpi div span { font-size: 12px; font-weight: 650; }
.kpi strong { font-size: 23px; letter-spacing: -.03em; line-height: 1; }
.kpi small { margin-left: auto; align-self: end; color: var(--tone); font-size: 11px; font-weight: 650; white-space: nowrap; }
.overview-grid, .distribution-grid { display: grid; grid-template-columns: minmax(0, 1.57fr) minmax(0, 1fr); gap: 12px; }
.distribution-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.panel { padding: 0 12px 7px; }
.panel h2 { display: flex; align-items: center; gap: 8px; min-height: 38px; font-size: 14px; font-weight: 750; letter-spacing: -.015em; }
.panel h2 .icon { width: 17px; height: 17px; color: var(--purple); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 6px 7px; border-bottom: 1px solid #edf0f6; }
th { background: #f2f4fb; font-size: 11px; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafbff; }
.overview-grid .panel :is(th,td):not(:first-child) { text-align: right; }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--dot, #6744e6); border-radius: 50%; margin-right: 7px; }
.rate { display: inline-block; padding: 2px 6px; border-radius: 10px; color: #27681f; background: #e7f4e3; font-weight: 650; }
.metrics { margin: 0; }
.metrics > div { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0f6; }
.metrics dt { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.metrics dt span { display: grid; place-items: center; width: 24px; height: 24px; color: var(--purple); background: #f0ebff; border-radius: 50%; }
.metrics dt .icon { width: 14px; height: 14px; }
.metrics dd { margin: 0; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.distribution { min-height: 155px; display: grid; grid-template-columns: minmax(118px,.95fr) minmax(0,1.3fr); align-items: center; gap: 10px; padding: 4px 4px 7px; border-top: 1px solid #edf0f6; }
.donut { margin: auto; display: grid; place-items: center; width: 130px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: #e8eaf2; }
.donut div { display: grid; place-content: center; text-align: center; width: 63%; aspect-ratio: 1; background: white; border-radius: 50%; }
.donut strong { font-size: 19px; line-height: 1.1; }
.donut small { color: var(--muted); font-size: 10px; }
.legend { margin: 0; padding: 0; list-style: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.legend li { display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 24px; border-bottom: 1px solid #edf0f6; }
.legend li:last-child { border: 0; }
.legend b { white-space: nowrap; font-size: 11px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.segmented { display: flex; border: 1px solid var(--line); border-radius: 7px; }
.segmented button { min-height: 25px; padding: 0 10px; font-size: 11px; font-weight: 650; border: 0; background: white; color: var(--ink); border-radius: 6px; }
.segmented button[aria-pressed="true"] { color: white; background: var(--purple); }
.trend-key { display: flex; justify-content: center; gap: 12px; color: var(--muted); font-size: 11px; }
.trend-key span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border: 2px solid #6845e5; border-radius: 50%; vertical-align: middle; }
.trend-key span:nth-child(2)::before { border-color: #358824; }
.trend-key span:nth-child(3)::before { border-color: #d73550; }
#trend { width: 100%; height: 133px; display: block; }
.event { color: #4c35a5; font-weight: 650; }
.search-result { font-size: 12px; color: var(--muted); }
.search-result:empty { display: none; }
.empty-cell { color: var(--muted); padding: 14px; }

.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.04fr; }
.login-brand { position: relative; overflow: hidden; min-height: 100%; background: linear-gradient(155deg,#0b1a39,#103c80); color: #fff; display: grid; grid-template-rows: auto 1fr; padding: clamp(25px,5vw,72px); }
.login-brand-intro { align-self: center; z-index: 1; }
.login-brand h1 { font-size: clamp(37px,5vw,70px); font-weight: 750; }
.login-brand p { margin-top: 12px; color: #e4efff; font-size: clamp(14px,1.5vw,18px); }
.brand-art { position: absolute; width: min(60%, 360px); right: 5%; bottom: 4%; display: flex; transform: skewY(-12deg); opacity: .45; }
.brand-art div { aspect-ratio: 1; flex: 1; display: grid; place-items: center; border: 1px solid #76a4eb; margin-right: -1px; background: #174688; }
.brand-art .icon { width: 45%; height: 45%; color: #bbd8ff; }
.login-workspace { display: grid; place-items: center; padding: 25px; }
.login-form { width: min(100%,390px); }
.login-form h2 { margin: 15px 0 8px; font-size: 26px; letter-spacing: -.025em; }
.login-form p, .login-form small { color: var(--muted); }
.login-form form { display: grid; gap: 8px; margin-top: 22px; }
.login-form label { margin-top: 8px; font-weight: 650; }
.login-form input { width: 100%; min-height: 43px; border: 1px solid #cfd6e9; border-radius: 8px; background: white; padding: 8px 12px; color: var(--ink); }
.password-field { position: relative; }
.password-field input { padding-right: 47px; }
.password-field .icon-button { position: absolute; right: 4px; top: 4px; border-color: transparent; }
.login-form .primary { min-height: 43px; margin-top: 12px; justify-content: space-between; }
.login-form .form-error { color: #a7213b; margin-top: 13px; }
@media (max-width: 1200px) {
  :root { --nav-width: 200px; }
  .kpi { flex-wrap: wrap; }
  .kpi small { margin-left: 0; }
  .dashboard { padding-inline: 15px; }
}
@media (max-width: 990px) {
  .kpis { grid-template-columns: repeat(auto-fit,minmax(137px,1fr)); }
  .overview-grid { grid-template-columns: minmax(0,1fr); }
  .distribution { grid-template-columns: minmax(0,1fr); }
  .legend { min-width: 85%; justify-self: center; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar, .app-shell.nav-collapsed .sidebar { display: flex; position: fixed; z-index: 8; left: 0; width: 220px; transform: translateX(-100%); visibility: hidden; }
  .app-shell.nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .app-shell.nav-open .sidebar-scrim { display: block; position: fixed; z-index: 7; inset: 0; background: #15193280; border: 0; }
  .topbar { padding-inline: 9px; gap: 7px; }
  .profile-text { display: none; }
  .page-heading { align-items: flex-start; }
  .page-actions { align-items: flex-end; flex-direction: column; gap: 5px; }
  .page-actions .demo-badge { font-size: 10px; }
  .global-search { min-width: 0; }
  .distribution-grid { grid-template-columns: minmax(0,1fr); }
  .distribution { grid-template-columns: minmax(110px,.9fr) minmax(0,1.2fr); }
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-brand { min-height: 190px; gap: 20px; }
  .brand-art { display: none; }
}
@media (max-width: 480px) {
  .dashboard { padding-inline: 10px; }
  h1 { font-size: 23px; }
  .page-heading .title-icon { display: none; }
  .panel h2 { font-size: 13px; }
  .distribution { grid-template-columns: minmax(100px,.8fr) minmax(0,1.2fr); }
  .legend { font-size: 11px; }
}
.business-button { gap: 6px; font-size: 12px; max-width: 190px; }
.business-button span { overflow: hidden; text-overflow: ellipsis; }
.business-popover form { display: grid; gap: 5px; margin-top: 8px; }
.business-popover .button { justify-content: space-between; }
.business-popover .button:disabled { color: #4c35a5; background: #f0ebff; cursor: default; }
@media (max-width: 760px) {
  .business-button { max-width: 138px; padding-inline: 6px; }
  .business-button .icon:first-child { display: none; }
}

.header-spacer { flex: 1; }
.business-logo { width: 19px; height: 19px; flex: none; object-fit: contain; border-radius: 3px; }
.manage-business-link { display: block; margin-top: 7px; color: var(--purple); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.nav-group a { display: block; padding: 4px 5px; margin: -4px -5px; border-radius: 5px; }
.nav-group a:hover, .nav-group a[aria-current="page"] { color: white; background: #30315b; }
.business-settings { max-width: 1320px; }
.business-grid { display: grid; grid-template-columns: minmax(155px, 225px) minmax(0, 1fr); gap: 14px; align-items: start; }
.business-list { display: grid; gap: 4px; padding: 7px; }
.business-list a { display: flex; align-items: center; gap: 9px; min-height: 38px; border-radius: 7px; padding: 6px 9px; font-weight: 650; overflow-wrap: anywhere; }
.business-list a:hover, .business-list a[aria-current="page"] { color: #4629be; background: #f0ebff; }
.business-list .icon { width: 17px; height: 17px; }
.business-form { padding: 18px; }
.business-form section + section { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 17px; }
.business-form h2, .business-empty h2 { font-size: 16px; margin-bottom: 10px; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-fields label { display: grid; gap: 5px; align-content: start; font-size: 13px; font-weight: 650; min-width: 0; }
.settings-fields input:not([type="checkbox"]) { min-width: 0; width: 100%; min-height: 37px; border: 1px solid #cfd6e9; border-radius: 7px; padding: 7px 9px; background: #fafbff; color: var(--ink); }
.settings-fields small { color: var(--muted); font-weight: 400; line-height: 1.45; }
.logo-field { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; }
.logo-field > img { object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.settings-fields .checkbox-label { display: flex; align-items: center; font-weight: 500; }
.parcel-preview { padding: 10px; border-radius: 8px; background: #f1edff; display: grid; align-content: center; gap: 4px; color: #4629be; overflow-wrap: anywhere; }
.parcel-preview output { font-weight: 750; }
.business-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.business-flash, .business-form .form-error { padding: 10px; border-radius: 8px; font-weight: 650; }
.business-flash { background: #e7f4e3; color: #27681f; }
.business-form .form-error { margin-bottom: 12px; background: #fff0f2; color: #a7213b; }
.business-empty { padding: 20px; }
.business-empty p { color: var(--muted); margin-bottom: 12px; }
@media (max-width: 880px) { .business-grid { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .settings-fields { grid-template-columns: 1fr; } .business-form { padding: 12px; } }

.team-panel .empty-cell { white-space: normal; }
.team-rights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.team-rights fieldset { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.team-rights legend { padding: 0 4px; font-size: 13px; font-weight: 700; }
.team-rights label { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0; font-size: 13px; }
.team-rights input, .team-form input[type="checkbox"] { accent-color: var(--purple); }
.team-form section > p { color: var(--muted); }
.profile-text { max-width: 165px; }
.profile-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Full-height drawer for create and edit forms. */
.drawer[open] {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 620px);
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  padding: 0;
  background: #fff;
  color: var(--ink);
}
.drawer:modal { box-shadow: -12px 0 44px #11182f30; animation: drawer-enter 190ms ease-out; }
.drawer::backdrop { background: #15193255; }
body:has(.drawer:modal) { overflow: hidden; }
.drawer-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; padding: 0; }
.drawer-header, .drawer-footer { background: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 10px; }
.drawer-header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; font-size: 21px; }
.drawer-header p { margin: 3px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.drawer-header .icon-button { flex: none; }
.drawer-content { overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; }
.drawer-footer { justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
@keyframes drawer-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .drawer:modal { animation: none; } }
@media (max-width: 500px) { .drawer-header, .drawer-content, .drawer-footer { padding-inline: 14px; } }

.team-page { gap: 22px; padding-top: 24px; padding-bottom: 32px; }
.team-page .page-heading { margin: 0; }
.team-page .heading-lockup { gap: 14px; min-width: 0; }
.team-page .page-heading p { margin-top: 5px; }
.team-page .page-heading .button { min-height: 42px; padding-inline: 15px; }
.team-panel { padding: 0; overflow: hidden; }
.team-panel > h2 { padding: 16px 20px; min-height: 54px; font-size: 16px; }
.team-table { font-size: 13px; }
.team-panel .team-table :is(th, td) { padding: 12px 16px; text-align: left; }
.team-table th { font-size: 12px; color: var(--muted); }
.team-table td:first-child { font-weight: 650; }
.team-table tbody tr:hover { background: #f5f3ff; }
.team-table :is(th, td):last-child { width: 1%; }
.row-actions { display: flex; gap: 8px; }
.row-action { color: #403775; }
.row-action .icon { width: 17px; height: 17px; }
.row-action.danger { color: #a7213b; }
.row-action.danger:hover { background: #fff0f2; }
.team-status { display: inline-flex; padding: 4px 8px; border-radius: 6px; background: #eef0f6; color: #505977; font-size: 12px; font-weight: 650; }
.team-status.is-active { background: #e7f4e3; color: #27681f; }
.delivery-views { justify-self: start; flex-wrap: wrap; padding: 4px; gap: 4px; background: #fff; }
.delivery-views a { padding: 8px 12px; border-radius: 5px; font-size: 13px; font-weight: 650; }
.delivery-views a:hover { background: #f0ebff; }
.delivery-views a[aria-current="page"] { color: #fff; background: var(--purple); }

.drawer[open] { width: min(100%, 660px); }
.drawer-form { --drawer-gutter: clamp(16px, 4vw, 30px); padding: 0; }
.drawer-header, .drawer-footer { padding: 17px var(--drawer-gutter); }
.drawer-header h2 { font-size: 22px; line-height: 1.25; }
.drawer-header p { margin-top: 5px; }
.drawer-header .icon-button { width: 42px; min-height: 42px; }
.drawer-header .icon-button .icon { width: 18px; height: 18px; }
.drawer-content { padding: 24px var(--drawer-gutter); scrollbar-width: thin; scrollbar-color: #b8bad0 transparent; }
.drawer-footer { padding-bottom: max(17px, env(safe-area-inset-bottom)); background: #fafbff; }
.drawer-footer .button, .fee-actions .button, .fee-template { min-height: 41px; padding-inline: 14px; }
.drawer-content > section + section { margin-top: 25px; padding-top: 25px; }
.drawer-content h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; font-size: 16px; line-height: 1.3; }
.drawer-content h3 .icon { width: 17px; height: 17px; color: var(--purple); }
.drawer-content .settings-fields { gap: 16px; }
.drawer-content .settings-fields label { gap: 7px; }
.drawer-content .settings-fields input:not([type="checkbox"]) { min-height: 42px; padding: 8px 11px; }
.drawer-content .settings-fields input[type="file"]::file-selector-button {
  font: inherit; border: 0; border-radius: 5px; background: #ebe6ff; color: #4629be; margin-right: 9px; padding: 5px 8px; cursor: pointer;
}
.team-rights { gap: 14px; }
.team-rights fieldset { padding: 10px 13px; }
.team-rights label { margin: 7px 0; }
.team-rights input { flex: none; }
.delivery-fees .fee-general { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.delivery-fees > :is(.business-flash,.form-error) { margin: 0 0 18px; }
.delivery-fees .table-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; }
.delivery-fees table :is(td, th) { padding: 8px 12px; }
.delivery-fees table :last-child:is(td, th) { text-align: right; }
.delivery-fees table .row-action { width: 34px; min-height: 34px; }
.fee-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.fee-template { margin: 12px 0 16px; }
.delivery-fees section > p { color: var(--muted); }
.delivery-fees section > p:last-child { margin-top: 16px; padding: 12px; border-radius: 8px; background: #f4f5fa; }
@media (max-width: 540px) {
  .team-page { gap: 16px; padding-top: 16px; }
  .team-page .page-heading { flex-wrap: wrap; }
  .drawer-header, .drawer-footer { padding-block: 13px; }
  .drawer-content { padding-block: 18px; }
}
@media (max-width: 360px) {
  .delivery-fees .fee-general { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.business-permission-fields { margin: 0; padding: 0; min-width: 0; border: 0; }
.permission-picker { display: grid; gap: 14px; }
.permission-master { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border: 1px solid #dfd7fb; border-radius: 9px; background: #f4f0ff; color: #342279; }
.permission-master > span { display: grid; gap: 3px; }
.permission-master small, .permission-group-all small { color: var(--muted); font-variant-numeric: tabular-nums; }
.permission-picker input { width: 16px; height: 16px; margin: 0; accent-color: var(--purple); flex: none; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.permission-group { min-width: 0; margin: 0; padding: 6px 10px 10px; border: 1px solid var(--line); border-radius: 9px; }
.permission-group legend { padding-inline: 5px; font-weight: 750; font-size: 13px; }
.permission-group-all, .permission-option { display: flex; align-items: flex-start; gap: 8px; padding: 8px 5px; cursor: pointer; font-size: 13px; }
.permission-group-all { align-items: center; flex-wrap: wrap; margin: 0 0 3px; border-bottom: 1px solid var(--line); color: #463192; font-weight: 650; }
.permission-group-all small { margin-left: auto; font-size: 11px; white-space: nowrap; }
.permission-option:hover { border-radius: 5px; background: #f6f3fe; }
@media (max-width: 580px) { .permission-groups { grid-template-columns: 1fr; } }


.warehouse-page .page-heading { gap: 14px; }
.warehouse-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.warehouse-table td { vertical-align: middle; }
.catalog-parent td { background: #f6f4ff; }
.catalog-name { display: flex; align-items: center; gap: 12px; }
.catalog-name img, .catalog-placeholder { border-radius: 8px; width: 44px; height: 44px; object-fit: cover; }
.catalog-placeholder { display: grid; place-items: center; color: var(--purple); background: #ece7ff; }
.catalog-name small { display: block; max-width: 42ch; white-space: normal; margin-top: 3px; color: var(--muted); font-weight: 400; }
.catalog-variant td:first-child { padding-left: 30px; font-weight: 500; }
.catalog-variant .catalog-name img { width: 32px; height: 32px; }
.drawer-content .full-field { grid-column: 1 / -1; }
.drawer-content .settings-fields :is(select, textarea) { min-width: 0; width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #cfd6e9; border-radius: 7px; background: #fafbff; color: var(--ink); font: inherit; font-weight: 400; }
.drawer-content .settings-fields textarea { resize: vertical; }
@media (max-width: 770px) { .warehouse-page .page-heading { flex-wrap: wrap; } }


.warehouse-panel-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 14px; }
.warehouse-panel-header h2 { padding: 16px 20px; min-height: 54px; font-size: 16px; }
.warehouse-filter { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 0 16px 8px; }
.warehouse-filter label { display: flex; align-items: center; gap: 8px; }
.warehouse-filter-label { color: var(--muted); font-weight: 650; font-size: 12px; }
.warehouse-filter select { max-width: min(45vw, 270px); min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: #fafbff; color: var(--ink); padding-inline: 8px; }
.drawer-content > .business-flash { margin-bottom: 16px; }

.variant-generate-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.variant-generate-actions output { color: var(--muted); font-size: 13px; }
.variant-preview { border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; max-height: 230px; overflow: auto; }
.variant-preview div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 9px 12px; overflow-wrap: anywhere; }
.variant-preview div:nth-child(even) { background: #f6f4ff; }
.catalog-media-delete { overflow-wrap: anywhere; }
.catalog-gallery-thumb { display: inline-flex; border-radius: 8px; }
.catalog-gallery-link { display: inline-block; color: var(--purple); font-size: 12px; margin-top: 4px; font-weight: 650; }
.catalog-gallery-link:hover { text-decoration: underline; }
.drawer.product-gallery[open] { inset: 0; margin: auto; width: min(860px, calc(100% - 32px)); height: fit-content; max-height: calc(100dvh - 32px); border-radius: 14px; }
.product-gallery:modal { animation: none; }
.product-gallery .drawer-form { height: auto; max-height: calc(100dvh - 32px); grid-template-rows: auto minmax(0, 1fr); }
.gallery-stage { display: grid; place-items: center; background: #f3f2f8; border-radius: 10px; min-height: 180px; }
.gallery-stage :is(img, video) { display: block; max-width: 100%; max-height: min(53dvh, 500px); object-fit: contain; }
.gallery-toolbar { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 12px; }
.gallery-prev { transform: rotate(180deg); }
.gallery-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px; }
.gallery-strip button { padding: 3px; width: 54px; height: 46px; flex: none; }
.gallery-strip img { width: 100%; height: 100%; object-fit: contain; }
.gallery-strip [aria-pressed="true"] { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); color: var(--purple); }

.table-bulk, .table-footer { display: flex; align-items: center; gap: 10px; padding: 10px 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.table-bulk { border-top: 1px solid var(--line); }
.table-footer { justify-content: space-between; border-top: 1px solid var(--line); }
.table-bulk label, .table-footer label, .table-pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-bulk select, .table-footer select { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); padding: 0 8px; }
.table-bulk button:disabled, .table-footer button:disabled { opacity: .55; cursor: default; background: #fafbff; }
table .table-select-cell { width: 1%; text-align: center; }
.table-select-cell input { width: 16px; height: 16px; accent-color: var(--purple); vertical-align: middle; }
.table-feedback { padding: 12px 21px 0; }
.table-error { color: #8b2540; background: #fcecf0; font-weight: 650; padding: 10px 12px; border-radius: 8px; }
.delivery-fees .table-bulk, .delivery-fees .table-footer { padding-inline: 0; }
@media (max-width: 720px) { .table-bulk, .table-footer { padding-inline: 10px; } }

.action-confirmation {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  box-shadow: 0 18px 44px #15193226;
}
.action-confirmation::backdrop { background: #15193266; }
body:has(.action-confirmation:modal) { overflow: hidden; }
.action-confirmation-content { display: flex; align-items: flex-start; gap: 14px; padding: 24px; }
.action-confirmation-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #a7213b; background: #fff0f2; }
.action-confirmation h2 { font-size: 19px; line-height: 1.3; }
.action-confirmation p { margin-top: 7px; color: var(--muted); line-height: 1.5; }
.action-confirmation-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding: 14px 24px; border-top: 1px solid var(--line); background: #fafbff; }
.action-confirmation-footer .button { min-height: 40px; padding-inline: 14px; }
.action-confirmation-submit { border-color: #a7213b; background: #a7213b; color: white; }
.action-confirmation-submit:hover { border-color: #85182d; background: #85182d; }
@media (max-width: 400px) { .action-confirmation-content, .action-confirmation-footer { padding-inline: 16px; } }
.team-table .trash-label { white-space: normal; overflow-wrap: anywhere; }

.catalog-expand { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 6px; margin: -3px -6px 0; background: transparent; border: 0; border-radius: 6px; color: var(--ink); text-align: left; }
.catalog-expand:hover { background: #eee8ff; }
.catalog-expand .icon { width: 15px; height: 15px; color: var(--purple); transform: rotate(-90deg); }
.catalog-expand[aria-expanded="true"] .icon { transform: rotate(0); }
.catalog-expand span { flex: none; padding: 2px 6px; border-radius: 6px; background: #ece7ff; color: #493584; font-size: 11px; font-weight: 650; }

.stock-entry-list { display: grid; gap: 7px; }
.stock-entry { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,.6fr); align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.stock-entry-with-reference { grid-template-columns: minmax(0,1fr) minmax(60px,.48fr) minmax(80px,.75fr); }
.stock-entry > div { min-width: 0; overflow-wrap: anywhere; }
.stock-entry :is(small,label) { display: block; color: var(--muted); font-size: 12px; }
.stock-entry small { margin-top: 4px; overflow-wrap: anywhere; }
.stock-entry label { min-width: 0; font-weight: 650; }
.stock-entry label input { display: block; width: 100%; min-width: 0; min-height: 38px; margin-top: 4px; border: 1px solid #cfd6e9; border-radius: 7px; background: #fafbff; padding: 6px 8px; }
.stock-note { white-space: normal; overflow-wrap: anywhere; min-width: 120px; }
@media (max-width: 460px) {
  .stock-entry { gap: 7px; padding-inline: 8px; }
  .stock-entry-with-reference { grid-template-columns: minmax(0,1fr) minmax(58px,.55fr) minmax(75px,.8fr); }
}

.warehouse-table .catalog-variant .stock-variant-label { padding-left: 30px; font-weight: 500; }

.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-popover { display: grid; gap: 7px; }
.personal-form { width: 100%; }
.personal-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.personal-photo .avatar { width: 68px; height: 68px; flex: none; }
.personal-photo .settings-fields { grid-template-columns: minmax(0,1fr); }
.table-pagination select { min-width: 56px; }
.drawer-help { margin: -5px 0 12px; color: var(--muted); font-size: 13px; }

.team-status-switch { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 3px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; }
.team-status-switch:hover { background: #f2effd; }
.team-switch-track { position: relative; width: 34px; height: 20px; flex: none; border-radius: 12px; background: #6a7087; }
.team-switch-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; }
.team-status-switch[aria-checked="true"] { color: #27681f; }
.team-status-switch[aria-checked="true"] .team-switch-track { background: #2f782f; }
.team-status-switch[aria-checked="true"] .team-switch-track::after { transform: translateX(14px); }


.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; padding: 14px 16px; }
.team-panel:has(> .filter-bar) { overflow: visible; }
.team-panel > .filter-bar { border-top: 1px solid var(--line); }
.filter-field { flex: 1 1 145px; min-width: 0; display: grid; align-content: start; gap: 6px; font-size: 13px; font-weight: 650; }
.filter-query { flex-basis: 215px; }
.filter-query .filter-input { min-height: 40px; }
.filter-input { display: flex; align-items: center; gap: 7px; min-width: 0; border: 1px solid #cfd6e9; border-radius: 7px; background: #fafbff; padding: 0 10px; color: var(--muted); }
.filter-input .icon { width: 16px; height: 16px; }
.filter-input input { border: 0; min-width: 0; width: 100%; min-height: 38px; padding: 0; background: transparent; color: var(--ink); font-weight: 400; }
.filter-input input:focus-visible { outline: none; }
.filter-input:focus-within { outline: 3px solid #5599f8; outline-offset: 2px; }
.filter-input input::placeholder { color: var(--muted); }
.filter-picker { position: relative; min-width: 0; }
.filter-picker summary { min-height: 40px; width: 100%; display: flex; cursor: pointer; list-style: none; justify-content: space-between; font-weight: 500; }
.filter-picker summary::-webkit-details-marker { display: none; }
.filter-picker summary span { overflow: hidden; text-overflow: ellipsis; }
.filter-picker[open] summary { border-color: var(--purple); }
.filter-picker[open] summary .icon { transform: rotate(180deg); }
.filter-popover { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: var(--popover-shift, 0px); z-index: 4; width: max(100%, 185px); padding: 9px; border: 1px solid #cfd6e9; border-radius: 9px; background: #fff; }
.filter-options { max-height: 214px; overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; scrollbar-width: thin; scrollbar-color: #a49abb transparent; }
.filter-options label { display: flex; align-items: flex-start; gap: 7px; padding: 7px; border-radius: 5px; font-weight: 500; overflow-wrap: anywhere; cursor: pointer; }
.filter-options label:hover { background: #eaf2ff; }
.filter-options input { margin: 2px 0 0; accent-color: var(--purple); flex: none; }
.filter-popover p { color: var(--muted); padding: 7px; font-weight: 400; }
.filter-dates { flex: 1.25 1 224px; }
.filter-dates input { cursor: pointer; }
.filter-dates .filter-input { min-height: 40px; }
.daterangepicker { color: var(--ink); font: inherit; border-color: #cfd6e9; border-radius: 12px; max-width: calc(100vw - 16px); }
.daterangepicker .drp-calendar { padding: 11px; }
.daterangepicker .calendar-table th, .daterangepicker .calendar-table td { padding: 0; font-variant-numeric: tabular-nums; }
.daterangepicker td.available:hover, .daterangepicker th.available:hover { background: #eaf2ff; }
.daterangepicker td.in-range { background: #eee9ff; }
.daterangepicker td.active, .daterangepicker td.active:hover { background: var(--purple); color: white; }
.daterangepicker .drp-selected { color: var(--muted); }
.daterangepicker .drp-buttons { border-top-color: var(--line); white-space: normal; }
.daterangepicker .drp-buttons .button { min-height: 34px; padding-inline: 10px; }
.daterangepicker select.monthselect, .daterangepicker select.yearselect { color: var(--ink); border: 1px solid var(--line); border-radius: 5px; background: #fafbff; }
@media (max-width: 563px) {
  .daterangepicker { position: fixed; inset: 10dvh auto auto 50% !important; transform: translateX(-50%); max-height: 80dvh; overflow-y: auto; margin: 0; }
  .daterangepicker .drp-calendar { margin: 0 auto; }
  .daterangepicker .drp-buttons { text-align: center; }
  .daterangepicker .drp-selected { display: block; padding: 0 0 5px; }
}
.filter-reset { min-height: 40px; margin-top: 23px; }
.filter-reset:disabled { opacity: .65; cursor: default; }
.delivery-fees .filter-bar { padding-inline: 0; }
.business-list .filter-field { padding: 4px 4px 7px; }
[data-filter-list] [role="status"] { color: var(--muted); padding: 7px; }
@media (max-width: 560px) {
  .filter-bar { gap: 11px 12px; padding: 12px; }
  .filter-field { flex-basis: 125px; }
  .filter-query, .filter-dates { flex-basis: 100%; }
  .filter-popover { position: static; width: 100%; margin-top: 6px; }
  .filter-reset { margin-top: 0; align-self: flex-end; }
}

.confirmation-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.confirmation-tools { justify-content: flex-end; }
.confirmation-table td small, .confirmation-modal td small { display: block; margin: 3px 0; color: var(--muted); }
.confirmation-table td strong { display: block; margin: 3px 0; }
.confirmation-references { min-width: 0; overflow-wrap: anywhere; }
.confirmation-table .confirmation-parcel-code { color: var(--purple); }
.confirmation-table .confirmation-references { margin-bottom: 8px; }
.confirmation-table .confirmation-lines { white-space: pre-line; min-width: 130px; max-width: 280px; overflow-wrap: anywhere; }
.confirmation-modal.drawer[open] { inset: 0; margin: auto; width: min(740px, calc(100% - 24px)); height: fit-content; max-height: min(86dvh, 790px); border-radius: 14px; }
.confirmation-modal.drawer:modal { animation: none; box-shadow: 0 16px 46px #15193235; }
.confirmation-modal .drawer-form { height: auto; max-height: min(86dvh, 790px); }
.confirmation-modal .drawer-content { padding-block: 16px; }
.confirmation-modal .filter-bar { padding-inline: 0; }
.confirmation-modal .table-wrap { border: 1px solid var(--line); border-radius: 8px; }
.confirmation-modal .table-footer, .confirmation-modal .table-bulk { padding-inline: 0; }
.confirmation-option-form { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.confirmation-option-form .confirmation-tools { margin-top: 14px; }
.confirmation-role-fields { grid-column: 1 / -1; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; border: 0; padding: 0; margin: 0; }
.confirmation-role-fields legend { padding: 0; margin: 0 0 8px; font-size: 13px; font-weight: 650; }
.confirmation-option-form input[type="checkbox"] { accent-color: var(--purple); }
.confirmation-items { grid-template-columns: 1fr; }
.confirmation-item { display: grid; align-items: end; gap: 10px; grid-template-columns: minmax(0, 1fr) 68px 108px auto; }
.confirmation-item .row-action { height: 42px; }
.confirmation-add-item { margin-top: 10px; }
@media (max-width: 520px) {
  .confirmation-tools { justify-content: flex-start; }
  .confirmation-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .confirmation-item label:first-child { grid-column: 1 / -1; }
  .confirmation-item + .confirmation-item { border-top: 1px solid var(--line); padding-top: 12px; }
}


/* Confirmation status tags double as the visual labels for native radio controls. */
.confirmation-tag {
  --tag-ink: #414b65;
  --tag-bg: #eef0f5;
  --tag-line: #d3d9e5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--tag-line);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.confirmation-tag::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.confirmation-color-blue { --tag-ink: #234891; --tag-bg: #eaf1ff; --tag-line: #c3d4f6; }
.confirmation-color-green { --tag-ink: #23651e; --tag-bg: #e8f5e6; --tag-line: #bddfba; }
.confirmation-color-purple { --tag-ink: #553197; --tag-bg: #f1eaff; --tag-line: #ddcdf8; }
.confirmation-color-orange { --tag-ink: #8c410c; --tag-bg: #fff0dd; --tag-line: #efcd9e; }
.confirmation-color-red { --tag-ink: #942a42; --tag-bg: #fcebf0; --tag-line: #f0c3cf; }
.confirmation-color-teal { --tag-ink: #135e5a; --tag-bg: #e2f5f1; --tag-line: #b8ddd7; }
.confirmation-color-pink { --tag-ink: #8c2a68; --tag-bg: #faeaf5; --tag-line: #e9c4df; }
.confirmation-colors { grid-column: 1 / -1; min-width: 0; padding: 0; margin: 0; border: 0; }
.confirmation-colors legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.confirmation-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-content .settings-fields .confirmation-swatch { position: relative; display: inline-flex; min-width: 0; max-width: 100%; }
.drawer-content .settings-fields .confirmation-swatch input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; }
.confirmation-swatch .confirmation-tag { min-height: 35px; padding-inline: 10px; cursor: pointer; }
.confirmation-swatch:hover .confirmation-tag { border-color: currentColor; }
.confirmation-swatch input:checked + .confirmation-tag { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.confirmation-swatch input:checked + .confirmation-tag::before { width: 7px; height: 7px; }
.confirmation-swatch input:focus-visible + .confirmation-tag { outline: 3px solid #5599f8; outline-offset: 2px; }
.confirmation-colors:disabled .confirmation-swatch .confirmation-tag { cursor: default; }
.team-status-switch:disabled { cursor: default; }
.team-status-switch:disabled:hover { background: transparent; }
.team-status-switch:disabled .team-switch-track { opacity: .55; }


.confirmation-extra-required { align-self: end; min-height: 42px; }
.confirmation-proof { display: grid; justify-items: start; gap: 10px; }
.confirmation-proof a, .confirmation-proof-link { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.confirmation-proof a { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.confirmation-proof a .icon { width: 16px; height: 16px; }
.drawer-content .settings-fields [data-lead-callback] .filter-input input {
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 400;
}
.confirmation-status-extra label:has(:required) > span:first-child::after { content: ' *'; color: #9e2841; }


.drawer .daterangepicker { margin: 0; }

.confirmation-tag-custom {
  --tag-ink: color-mix(in srgb, var(--status-color) 36%, #151932);
  --tag-bg: color-mix(in srgb, var(--status-color) 12%, white);
  --tag-line: color-mix(in srgb, var(--status-color) 29%, white);
}
.confirmation-tag-custom::before { background: var(--status-color); border: 1px solid currentColor; }
.confirmation-color-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.drawer-content .settings-fields .confirmation-color-control { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.drawer-content .settings-fields .confirmation-color-control input[type="color"] {
  width: 53px;
  min-height: 38px;
  padding: 5px;
  cursor: pointer;
}


.confirmation-import-template { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; }
.confirmation-import-template > div { flex: 1 1 230px; }
.confirmation-import-template p { margin-top: 5px; line-height: 1.45; color: var(--muted); }
.confirmation-import-upload { margin-block: 20px 12px; }
.confirmation-import-upload label { padding: 16px; border: 1px dashed #bdb9d8; border-radius: 9px; background: #faf9ff; }
.confirmation-import-upload label > .icon { color: var(--purple); }
.confirmation-import-summary { color: var(--muted); line-height: 1.45; }


.confirmation-imported-product { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafbff; }
.confirmation-imported-product p { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.confirmation-total-field { margin-bottom: 14px; }
.confirmation-imported-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.confirmation-items.with-import-total .confirmation-item { grid-template-columns: minmax(0, 1fr) 68px auto; }
@media (max-width: 520px) {
  .confirmation-items.with-import-total .confirmation-item { grid-template-columns: minmax(0, 1fr) auto; }
}

.confirmation-all-link { margin-left: auto; color: var(--purple); font-size: 13px; }

.confirmation-table .confirmation-status-cell { min-width: 122px; }
@media (max-width: 560px) {
  .confirmation-status-filters .confirmation-swatches {
    max-height: 145px;
    overflow: auto;
    padding: 3px;
    scrollbar-width: thin;
    scrollbar-color: #a49abb transparent;
  }
}

.confirmation-status-filters { min-width: 0; }
.confirmation-status-filters h2 { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.confirmation-status-button { display: inline-flex; max-width: 100%; padding: 0; border: 0; border-radius: 999px; background: transparent; }
.confirmation-status-button .confirmation-tag { min-height: 35px; padding-inline: 10px; }
.confirmation-status-button:hover .confirmation-tag { border-color: currentColor; }
.confirmation-status-button[aria-pressed="true"] .confirmation-tag { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.confirmation-status-button[aria-pressed="true"] .confirmation-tag::before { width: 7px; height: 7px; }
.confirmation-lead-filters .filter-query { flex-grow: 1.45; min-width: min(100%, 210px); }

.confirmation-lead-filters .filter-reset { margin-left: auto; margin-top: 0; align-self: flex-end; }
@media (min-width: 900px) {
  .confirmation-lead-filters .filter-dates { flex-basis: 176px; }
  .confirmation-lead-filters .filter-reset { margin-top: 23px; }
}

.google-sheet-settings p { color: var(--muted); line-height: 1.5; }
.google-account, .google-inline-form, .google-sync-settings { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.google-account input, .google-sheet-settings .google-inline-form :is(input,select), .google-sync-settings select {
  width: 100%; min-width: 0; min-height: 38px; border: 1px solid #cfd6e9; border-radius: 7px; background: #fafbff; color: var(--ink); padding: 6px 9px;
}
.google-account input { flex: 1 1 260px; }
.google-account small { flex: 0 0 100%; color: var(--muted); }
.google-account small:empty { display: none; }
.google-inline-form label { display: grid; gap: 5px; min-width: 0; flex: 1 1 160px; font-weight: 650; }
.google-inline-form .button, .google-account .button { min-height: 38px; }
.google-connection { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.google-connection > div:first-child { overflow-wrap: anywhere; }
.google-connection .row-actions { flex: none; }
.google-connection small { display: block; color: var(--muted); margin-top: 3px; }
.google-mapping-form { margin-top: 18px; }
.google-mapping-form .settings-fields { margin-top: 12px; }
.google-sync-settings { align-items: center; }
.google-sync-settings input { accent-color: var(--purple); }
.google-sync-settings select { width: auto; margin-left: 5px; }
.google-mapping-form .confirmation-tools { margin-top: 16px; }


.google-cron-command { margin: 0 0 13px; }
.google-cron-command summary { color: var(--purple); cursor: pointer; }
.google-cron-command code { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.google-schedule-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.google-schedule-form .google-sync-settings { margin-top: 0; }

.confirmation-validation-cell { width: 1%; }
.confirmation-validation-cell .team-status-switch { white-space: nowrap; }
.table-display-options { display: flex; justify-content: flex-end; padding: 4px 12px; }
.sticky-tables-option { display: flex; min-height: 28px; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.table-bulk .sticky-tables-option { margin-inline-start: auto; }
.sticky-tables-option input { accent-color: var(--purple); }

table[data-sticky-table-enabled] { border-collapse: separate; border-spacing: 0; isolation: isolate; }
table[data-sticky-table-enabled] thead { position: relative; top: var(--sticky-table-offset, 0px); z-index: 2; }
table[data-sticky-table-enabled] [data-sticky-table-cell] {
  position: sticky;
  inset-inline-end: var(--sticky-table-inset, 0px);
  z-index: 1;
  background: #f4f3fc;
}
table[data-sticky-table-enabled] th[data-sticky-table-cell] { background: #eeecf9; }
table[data-sticky-table-enabled] tr:hover td[data-sticky-table-cell] { background: #efedf9; }
table[data-sticky-table-enabled] [data-sticky-table-edge] { box-shadow: -1px 0 #e3e0f1; }

.nav-count {
  margin-inline-start: auto; min-width: 23px; padding: 2px 6px; border-radius: 999px;
  background: #efebff; color: #4e2ac5; text-align: center; font-size: 11px; font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.confirmation-table tbody tr[data-row-key] { background: color-mix(in srgb, var(--lead-status-color) 8%, white); }
.confirmation-table tbody tr[data-row-key]:hover { background: color-mix(in srgb, var(--lead-status-color) 13%, white); }
.confirmation-validation-cell:has(> .icon) { white-space: nowrap; }
.confirmation-validation-cell > .icon { width: 15px; color: #27681f; vertical-align: middle; }

.stock-entry-prices { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 8px; }
.stock-entry-prices summary { color: var(--purple); font-size: 12px; font-weight: 650; }
.stock-entry-prices[open] summary { margin-bottom: 8px; }
.stock-entry-prices > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }

.confirmation-status-link { display: inline-flex; border-radius: 999px; }
.confirmation-status-link:hover > .confirmation-tag { box-shadow: 0 0 0 1px currentColor; }
.confirmation-status-link:focus-visible { outline-offset: 3px; }

.table-delivery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.table-delivery-actions[hidden] { display: none; }


/* Commission rules share the profile drawer's field styles. */
.commission-rule + .commission-rule { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.commission-rule h4 { margin: 0 0 10px; font-size: 14px; }
.commission-amount { position: relative; display: block; }
.drawer-content .settings-fields .commission-amount input:has(+ :not([hidden])) { padding-inline-end: 52px; }
.commission-amount [data-commission-unit] {
  position: absolute;
  inset: 0 12px 0 auto;
  display: grid;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
}
.commission-amount input:disabled { background: #f1f2f8; color: var(--muted); }


.parcel-invoice-cell { min-width: 135px; }
.parcel-invoice-cell a {
  display: block;
  width: fit-content;
  margin-top: 5px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}
.parcel-invoice-cell a:hover { text-decoration: underline; }
.parcel-invoice-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f5fd;
  color: var(--muted);
}
.parcel-invoice-notice .icon { width: 16px; height: 16px; color: var(--purple); }


/* Blue workspace and ribbon artwork */
.sidebar {
  isolation: isolate;
  background: radial-gradient(110% 44% at 0% 99%, #1158c4 0, transparent 83%),
    linear-gradient(163deg, #11294e 0%, #0a1b3e 42%, #07295f 72%, #073a93 100%);
}
.sidebar::before, .sidebar::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-top: 1px solid #5297fb66;
}
.sidebar::before {
  width: 390px;
  height: 163px;
  inset: auto -150px -3px auto;
  transform: rotate(-33deg);
  border-radius: 82% 61% 0 0;
  background: linear-gradient(176deg,#0e63d785,#06295c09 53%);
}
.sidebar::after {
  width: 340px;
  height: 158px;
  inset: auto auto -45px -112px;
  transform: rotate(-13deg);
  border-radius: 63% 77% 0 0;
  background: linear-gradient(162deg,#248afb 0%,#1671e9a1 34%,#07419e1a 74%);
}
.sidebar > .wordmark { gap: 12px; padding-inline: 19px; border-color: #5482c22b; font-size: 16px; letter-spacing: .005em; }
.mark {
  clip-path: polygon(50% 0,92% 20%,100% 50%,92% 80%,50% 100%,8% 80%,0 50%,8% 20%);
  background: linear-gradient(147deg,#168aff,#0049d3);
}
.sidebar .mark { width: 39px; height: 43px; }
.sidebar nav { padding: 17px 10px 12px; scrollbar-color: #597dae transparent; }
.sidebar .nav-link { min-height: 43px; padding-inline: 13px; color: #fff; border-radius: 9px; }
.sidebar .nav-link:hover, .sidebar .nav-group a:hover { background: #2765ad43; }
.sidebar .nav-link.active, .sidebar .nav-group:has([aria-current="page"]) > summary {
  background: linear-gradient(97deg,#0350df,#147bea);
  box-shadow: 0 4px 12px #02133355;
}
.sidebar .nav-group ul { margin-left: 24px; padding-left: 12px; border-color: #93b8f35c; }
.sidebar .nav-group li { padding: 5px 3px; font-size: 13px; }
.sidebar .nav-group a { padding: 6px 8px; margin: -4px -5px; color: #eef5ff; border-radius: 6px; }
.sidebar .nav-group a[aria-current="page"] { background: #1c6ed4ca; color: #fff; font-weight: 650; }
.sidebar .nav-count { background: #1475e8; color: white; }
.sidebar .nav-link.active .nav-count { background: #eff6ff; color: #074bbb; }
.sidebar-bottom { border: 0; padding: 10px 11px 15px; }
.sidebar-bottom > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  padding: 8px 12px;
  border: 1px solid #76a7e944;
  border-radius: 10px;
  background: #06234ccc;
  color: #f2f6ff;
}
.sidebar-bottom .icon { width: 15px; height: 15px; }
.workspace {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse 675px 184px at 62% 62px,#dce8fa 0%,transparent 100%),
    linear-gradient(119deg,#f3f6fc 11%,#eef4fc 55%,#e6effb);
}
.workspace::before, .workspace::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: var(--header-height) 0 auto 36%;
  height: 142px;
}
.workspace::before {
  background: linear-gradient(175deg,#8db8f598,#c6daf770 55%,transparent 92%);
  clip-path: polygon(0 89%,8% 87%,15% 82%,21% 75%,26% 64%,30% 52%,34% 38%,38% 26%,42% 18%,46% 15%,
    50% 15%,54% 19%,58% 25%,62% 34%,67% 45%,72% 51%,77% 52%,82% 48%,88% 39%,94% 33%,100% 35%,100% 100%,0 100%);
}
.workspace::after {
  background: linear-gradient(183deg,#dce9fb7a,#ecf2fd66 55%,transparent 90%);
  clip-path: polygon(13% 96%,23% 89%,31% 76%,37% 58%,42% 43%,47% 28%,51% 21%,55% 20%,59% 24%,
    65% 34%,70% 40%,75% 41%,81% 35%,88% 25%,94% 22%,100% 27%,100% 100%,13% 100%);
}
.topbar { background: #f9fbfef2; border-color: #cfdcf2; }
.global-search { min-height: 38px; border-color: #d0ddf2; border-radius: 10px; background: linear-gradient(103deg,#f7f9ff,#eaf1fd); }
.global-search kbd { flex: none; border: 1px solid #ccdbf3; border-radius: 6px; padding: 1px 6px; font: inherit; font-size: 11px; }
.avatar { background: #dfe8ff; color: #123d9f; }
.dashboard { padding-top: 15px; gap: 14px; }
.dashboard .page-heading { min-width: 0; gap: 14px; margin-bottom: 5px; }
.dashboard .heading-lockup { gap: 14px; }
.dashboard h1 { font-size: 31px; }
.dashboard .page-heading p { color: #34476b; font-size: 14px; }
.title-icon {
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(151deg,#1685ff 8%,#0055ef 67%,#0347cf);
  box-shadow: 0 6px 15px #0a61d52e;
}
.title-icon .icon { width: 27px; height: 27px; }
.surface { border-color: #cdddf6; border-radius: 14px; background: #fbfcfef2; box-shadow: 0 5px 14px #2649860a; }
.panel h2 { font-size: 16px; letter-spacing: -.02em; }
.panel h2 .icon { color: var(--accent); }
.team-panel > h2 { background: transparent; }
.team-panel :is(th,td) { border-color: #e1e9f6; }
table th { background: #eaf0fb; color: #30456a; }
table tbody tr:nth-child(even) { background: #f5f8fd; }
.filter-input, .filter-picker > summary, .filter-range input { border-color: #ccd9ef; background: #f6f8fe; }
.filter-input:has(input:focus) { outline-color: #5297ff; }
.row-actions .row-action { border-color: #d3e0f5; box-shadow: 0 2px 4px #1c52aa0c; }
.row-actions .row-action.danger { border-color: #f5d4da; color: #b82a43; }
.confirmation-parcel-code, .invoice-page tbody td a:not(.row-action) { color: #104dc3; }

/* Illustrated summary cards use the same artwork on every list. */
.kpis { grid-template-columns: repeat(auto-fit,minmax(154px,1fr)); gap: 12px; }
.kpi {
  --tint: #e3eeff;
  --stroke: #cbdffd;
  --tone: #034fdb;
  --disc: #d2e3ff;
  --edge: #639fff;
  flex-wrap: nowrap;
  align-items: flex-start;
  min-height: 91px;
  gap: 12px;
  padding: 13px 12px 14px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 97% 0%,#fff9 0,transparent 72%),linear-gradient(127deg,#fff8,var(--tint));
  box-shadow: inset 0 -3px var(--edge);
}
.kpi.confirmed { --tint: #e4f4e8; --stroke: #d1eadc; --tone: #167229; --disc: #d1efd6; --edge: #b6dfc4; }
.kpi.waiting { --tint: #fff0df; --stroke: #f4e2cc; --tone: #aa4c08; --disc: #ffe6c8; --edge: #fbd2a2; }
.kpi.cancelled { --tint: #ffe5eb; --stroke: #f5dce4; --tone: #bb2340; --disc: #ffd7df; --edge: #f6b8c6; }
.kpi.shipping { --tint: #eee7ff; --stroke: #e3dafa; --tone: #5936cd; --disc: #e3d8ff; --edge: #cfc0fc; }
.kpi.new { --tint: #eaf2ff; --stroke: #d4e2fb; --tone: #1358d4; --disc: #d9e7ff; --edge: #a6c7fc; }
.kpi-icon { width: 44px; height: 44px; border-radius: 13px; background: radial-gradient(ellipse at 90% 0,#fff9,transparent 73%),var(--disc); }
.kpi-icon::before {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 45% 55% 61% 39%;
  opacity: .14;
  transform: rotate(-28deg);
}
.kpi-icon .icon { width: 24px; height: 24px; }
.kpi > div { gap: 5px; min-width: 0; padding-top: 2px; }
.kpi div span { font-size: 13px; }
.kpi strong { font-size: 25px; }
.kpi small { position: absolute; right: 10px; bottom: 8px; margin: 0; font-size: 11px; }
.kpi small:empty { display: none; }
.catalog-stock, .invoice-beneficiary { display: inline-flex; align-items: center; gap: 7px; }
.catalog-stock { padding: 4px 8px; border-radius: 999px; color: #14672a; background: #e0f3e5; font-weight: 700; }
.catalog-stock[data-out-of-stock="1"] { color: #a7233c; background: #fbe5ea; }
.catalog-stock .icon { width: 14px; height: 14px; }
.invoice-beneficiary > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e0ecff; color: #1147ba; font-size: 12px; font-weight: 750; }
.warehouse-table caption { padding: 13px 16px; text-align: left; font-size: 15px; font-weight: 750; border-top: 1px solid var(--line); }
.warehouse-table caption .icon { width: 18px; height: 18px; color: var(--accent); margin-right: 6px; }
.catalog-parent td { background: #f1f6ff; }
.catalog-placeholder, .catalog-name img { border-radius: 9px; background: #e6effd; color: #2458b0; }
.catalog-gallery-link { color: #1355c7; }
.invoice-page [data-invoice-list] :is(th,td) { padding-inline: 10px; }
.invoice-page [data-invoice-list] .row-actions { gap: 5px; flex-wrap: nowrap; }
.invoice-page [data-invoice-list] .row-action { width: 34px; }
.invoice-page .invoice-advanced-filters { border-color: #d5e2f6; background: #eef4fd; padding: 9px 12px; border-radius: 8px; }
.invoice-page .invoice-picker-table tbody tr:has(input:checked) td { background: #e9f2ff; }

/* Business identity and dashboard composition */
.business-settings { max-width: 1700px; }
.business-settings .business-grid { grid-template-columns: minmax(220px,.36fr) minmax(0,1fr); align-items: stretch; gap: 12px; }
.business-settings .business-list { align-content: start; padding: 15px; }
.business-list h2 { margin-bottom: 9px; font-size: 17px; }
.business-list a { gap: 9px; padding: 8px 10px; margin-bottom: 7px; background: #f2f6fd; border: 1px solid #d5e2f7; }
.business-list a[aria-current="page"] { border-color: #c5dafa; background: #e1edff; box-shadow: inset 3px 0 var(--accent); }
.business-current-tag { margin-left: auto; color: #14642a; background: #d9f2df; border-radius: 999px; padding: 3px 7px; font-size: 11px; font-weight: 700; }
.business-list-symbol { display: grid; place-items: center; width: 32px; height: 32px; flex: none; background: #e0ecff; color: var(--accent); border-radius: 50%; }
.business-list-symbol .icon { width: 18px; height: 18px; }
.business-settings .business-form { padding: 12px; }
.business-settings-heading { display: flex; align-items: center; gap: 10px; padding: 2px 4px 13px; }
.business-settings-heading h2 { font-size: 23px; letter-spacing: -.025em; }
.business-settings-heading .business-current-tag { margin-left: 0; }
.business-settings .business-form section {
  margin: 0 0 10px;
  padding: 11px 14px;
  border: 1px solid #d1dff5;
  border-radius: 11px;
  background: #fcfdffa3;
}
.business-settings .business-form h2 .icon { width: 18px; height: 18px; color: var(--accent); margin-right: 4px; }
.business-settings .parcel-preview { background: #eaf2ff; border: 1px solid #d3e3fc; color: #1047b6; }
.business-settings .parcel-preview output { color: #133b9b; }
.statistics-page { padding-top: 23px; }
.statistics-filters .page-actions { flex-wrap: wrap; }
.statistics-filters .page-actions > label > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
.statistics-filters input[name=period] { min-width: 185px; }
.statistics-filter-tools { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 30px; margin-top: 4px; }
.demo-badge { color: #3f577c; }
.statistics-extra-filters > summary { color: #34496e; text-align: end; font-weight: 650; }
.statistics-extra-filters > summary .icon { width: 15px; height: 15px; color: var(--accent); }
.statistics-extra-filters[open] { flex-basis: 75%; }
.statistics-extra-filters .filter-bar { margin-top: 8px; }
.statistics-page .overview-grid { grid-template-columns: minmax(0,1.88fr) minmax(0,1fr); }
.statistics-tables { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 12px; }
.statistics-page .donut { width: 142px; }
.statistics-page .metrics > div { min-height: 43px; }
.statistics-page .metrics dd { font-size: 15px; }
.statistics-page .metrics dt span { background: #e4efff; }
.statistics-page .panel-heading { padding-top: 3px; flex-wrap: wrap; }
.statistics-page #trend { height: 168px; }
.trend-key span:first-child::before { border-color: #075cff; }
.statistics-page .event { color: #174ca8; }
@media (max-width: 1050px) {
  .statistics-page .overview-grid, .statistics-tables { grid-template-columns: minmax(0,1fr); }
  .kpi { min-height: 86px; }
}
@media (max-width: 760px) {
  .sidebar .nav-link { min-height: 40px; }
  .business-settings .business-list { padding: 12px; }
  .statistics-page .donut { width: 116px; }
  .global-search kbd { display: none; }
  .dashboard { padding-top: 13px; }
  .dashboard .page-heading { flex-wrap: wrap; }
  .dashboard h1 { font-size: 25px; }
  .dashboard .page-heading p { font-size: 13px; }
  .dashboard .title-icon { width: 45px; height: 45px; }
  .kpis { grid-template-columns: repeat(auto-fit,minmax(135px,1fr)); gap: 8px; }
  .kpi { gap: 7px; padding: 9px 8px 16px; min-height: 79px; }
  .kpi-icon { width: 34px; height: 34px; }
  .kpi-icon::before { width: 25px; height: 25px; }
  .kpi-icon .icon { width: 20px; height: 20px; }
  .kpi strong { font-size: 22px; }
  .statistics-filters .page-actions { flex-direction: row; align-items: end; }
  .statistics-extra-filters[open] { flex-basis: 68%; }
  .business-settings .business-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 420px) {
  .statistics-filter-tools { flex-wrap: wrap; }
  .statistics-extra-filters[open] { flex-basis: 100%; }
}


.business-list a[aria-current="page"] { color: #104dc3; }
@media (max-width: 560px) {
  .topbar:has(.global-search:not([hidden])) { flex-wrap: wrap; }
  .topbar:has(.global-search:not([hidden])) .menu-toggle { margin-inline-end: auto; }
  .topbar .global-search:not([hidden]) { order: 1; flex: 0 0 100%; margin: 0; }
}


.settings-drawer.drawer[open] { width: min(100%, 790px); }
.settings-drawer .table-wrap { border: 1px solid var(--line); border-radius: 8px; }
.expense-totals { display: flex; flex-wrap: wrap; gap: 16px 36px; margin: 0; padding: 14px 18px; }
.expense-totals dt { color: var(--muted); font-size: 12px; }
.expense-totals dd { margin: 5px 0 0; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.expense-filters .filter-reset { align-self: end; }
.expense-filters .filter-range { border: 0; margin: 0; padding: 0; }
.expense-filters .filter-range legend { margin-bottom: 6px; padding: 0; }
.expense-filters .filter-range > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.expense-filters .filter-range input { min-width: 0; width: 100%; min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fafbff; color: var(--ink); }
.expense-note { display: block; max-width: 340px; margin-top: 4px; white-space: normal; overflow-wrap: anywhere; color: var(--muted); }
.ad-settings .delivery-views { margin-bottom: 20px; }
.ad-settings-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.ad-settings-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.ad-settings-list small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.ad-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ad-settings-form { display: grid; gap: 16px; }
.ad-google-fields { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.ad-google-fields summary { font-weight: 650; }
.ad-google-fields summary::before { content: '+'; margin-right: 7px; color: var(--accent); }
.ad-google-fields[open] summary::before { content: '−'; }
.ad-google-fields p { margin: 9px 0 12px; color: var(--muted); }
.ad-form-actions { display: flex; justify-content: flex-end; }


.parcel-copy-code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: copy;
}
.parcel-copy-code:hover, .parcel-copy-code:focus-visible, .parcel-phone-link:hover { text-decoration: underline; }
.parcel-phone-link { color: var(--purple); text-decoration: none; }
.parcel-copy-feedback {
  position: fixed;
  z-index: 200;
  inset: auto auto 24px 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #172441;
  color: white;
  padding: 9px 15px;
  font-size: 13px;
  pointer-events: none;
}
.parcel-copy-feedback:empty { padding: 0; }
.parcel-voice {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.parcel-contact.drawer[open] { width: min(540px, calc(100% - 24px)); }
.parcel-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.parcel-contact-actions + .drawer-help { margin-top: 12px; }
.parcel-timeline { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.parcel-timeline li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.parcel-timeline h3 { margin: 0 0 3px; }
.parcel-timeline small { color: var(--muted); }
.parcel-timeline dl { margin: 12px 0 0; overflow-wrap: anywhere; }
.parcel-timeline dt { font-weight: 650; font-size: 12px; color: var(--muted); }
.parcel-timeline dd { display: flex; flex-wrap: wrap; gap: 6px; margin: 3px 0 10px; }
.parcel-timeline dd:last-child { margin-bottom: 0; }

.parcel-message-fields { margin-block-end: 16px; }
.parcel-template-variables { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 8px; }
.parcel-template-variables .button { min-height: 32px; padding: 5px 10px; font-size: 12px; }

/* Product role stays separate from order pricing and fulfilment. */
.confirmation-item .confirmation-item-upsell { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 8px; margin: 0; }
.confirmation-item .confirmation-item-upsell input { width: 16px; min-height: 16px; }
.confirmation-item .row-action { grid-column: -2 / -1; grid-row: 1; }
.confirmation-item-type { display: block; margin-top: 6px; }
.confirmation-add-item + .drawer-help { margin-top: 10px; line-height: 1.5; }
.business-settings .agent-settings-drawer .drawer-form { padding: 0; }
.business-settings .agent-settings-drawer .business-form section { margin: 0 0 24px; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.agent-bonus-rows { display: grid; gap: 20px; margin: 20px 0; }
.agent-bonus-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 42px; gap: 16px; align-items: end; }
.agent-bonus-row .icon-button { height: 42px; }
.agent-earnings { display: flex; flex: none; gap: 20px; margin: 0; font-variant-numeric: tabular-nums; }
.agent-earnings dt { color: var(--muted); font-size: 11px; }
.agent-earnings dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.agent-earnings small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.workspace:has(.agent-earnings) { --header-height: 68px; }
@media(max-width: 1200px) {
 .workspace:has(.agent-earnings) { --header-height: 134px; }
 .topbar:has(.agent-earnings) { flex-wrap: wrap; }
 .agent-earnings { order: 9; flex-basis: 100%; justify-content: space-between; gap: 10px; padding-block: 8px; }
}
@media(max-width: 520px) {
 .confirmation-item .row-action { grid-row: 2; }
 .confirmation-item .confirmation-item-upsell { grid-row: 3; }
}
