:root { color-scheme: light; --bg:#eef2f7; --card:#ffffff; --text:#111827; --muted:#6b7280; --line:#e5e7eb; --blue:#2563eb; --green:#059669; --yellow:#d97706; --red:#dc2626; --dark:#111827; --app-sidebar-width:174px; }
* { box-sizing:border-box; }
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important; margin:-1px !important; padding:0 !important; border:0 !important; clip:rect(0 0 0 0) !important; white-space:nowrap !important; }
body { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; margin:0; background:linear-gradient(180deg,#f8fafc,#eef2f7); color:var(--text); }
a { color:var(--blue); text-decoration:none; }
a:hover { text-decoration:underline; }
.topbar { position:sticky; top:0; z-index:20; display:flex; justify-content:space-between; gap:14px; align-items:center; min-height:72px; padding:12px 18px; background:#ffffffed; backdrop-filter:blur(16px); border-bottom:1px solid var(--line); }
.topbar .brand-link { flex:1; }
.topbar-account { display:flex; gap:6px; align-items:center; }
.nav-user { max-width:150px; margin-left:4px; overflow:hidden; color:#64748b; font-size:13px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.theme-toggle { width:39px; height:39px; display:grid; flex:0 0 39px; place-items:center; margin:0 1px 0 4px; padding:0; border:1px solid #dbe3ef; border-radius:50%; background:#f8fafc; color:#475569; box-shadow:none; }
.theme-toggle:hover { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; filter:none; }
.theme-icon { grid-area:1/1; width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; transition:opacity .18s,transform .18s; }
.theme-icon-sun { opacity:0; transform:rotate(-35deg) scale(.7); }
:root[data-theme="dark"] .theme-icon-moon { opacity:0; transform:rotate(35deg) scale(.7); }
:root[data-theme="dark"] .theme-icon-sun { opacity:1; transform:rotate(0) scale(1); }
.nav-logout { margin:0; }
.nav-logout-button { margin:0; padding:8px 12px; border:1px solid #fecaca; border-radius:999px; background:#fff1f2; color:#be123c; white-space:nowrap; }
.nav-logout-button:hover { background:#ffe4e6; }
.app-nav-toggle { width:42px; height:42px; display:grid; flex:0 0 42px; place-items:center; margin:0; padding:0; border:1px solid #dbe3ef; border-radius:12px; background:#f8fafc; color:#475569; box-shadow:none; }
.app-nav-toggle:hover { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; filter:none; }
.app-nav-icon { width:18px; height:18px; flex:0 0 18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.app-sidebar { position:fixed; z-index:15; top:72px; bottom:0; left:0; width:var(--app-sidebar-width); overflow-y:auto; border-right:1px solid var(--line); background:#f8fafc; transition:width .18s,transform .18s; }
.app-navigation { min-height:100%; display:flex; flex-direction:column; gap:2px; padding:8px 7px; }
.app-nav-group { display:grid; gap:1px; padding:5px 0 7px; border-bottom:1px solid var(--line); }
.app-nav-group > strong { padding:0 8px 3px; overflow:hidden; color:#94a3b8; font-size:9px; font-weight:650; letter-spacing:.075em; text-transform:uppercase; white-space:nowrap; }
.app-nav-system { margin-top:0; border-bottom:0; }
.app-nav-item { min-width:0; display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:8px; color:#334155; font-size:14px; font-weight:520; line-height:1.2; }
.app-nav-item span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-nav-item:hover { color:#1d4ed8; background:#eff6ff; text-decoration:none; }
.app-nav-item.active { color:#fff; background:#2563eb; font-weight:650; text-decoration:none; box-shadow:0 4px 10px #2563eb20; }
.app-nav-item.emphasis:not(.active) { color:#1d4ed8; background:#dbeafe; }
@media (min-width:901px) and (max-height:820px) {
  .app-navigation { padding-block:4px; }
  .app-nav-group { padding-block:3px 4px; }
  .app-nav-group > strong { padding-bottom:1px; }
  .app-nav-item { padding-block:5px; }
}
@media (min-width:901px) and (max-height:700px) {
  .app-navigation { padding-block:2px; }
  .app-nav-group { padding-block:1px 2px; }
  .app-nav-item { padding-block:3px; }
}
.app-nav-tooltip { position:fixed; z-index:70; max-width:220px; padding:7px 9px; border-radius:8px; background:#111827; color:#fff; box-shadow:0 8px 24px #0f172a33; font-size:12px; font-weight:700; line-height:1.2; pointer-events:none; opacity:0; transform:translateY(-50%) translateX(-3px); transition:opacity .12s ease,transform .12s ease; }
.app-nav-tooltip.visible { opacity:1; transform:translateY(-50%) translateX(0); }
.app-nav-tooltip[hidden] { display:none; }
@media (prefers-reduced-motion:reduce) { .app-nav-tooltip { transition:none; } }
.app-nav-backdrop { position:fixed; z-index:14; inset:72px 0 0; margin:0; padding:0; border:0; border-radius:0; background:#0f172a66; box-shadow:none; }
.app-nav-backdrop[hidden] { display:none; }
.app-nav-backdrop:hover { filter:none; }
.system-health-trigger { position:relative; width:39px; height:39px; display:grid; flex:0 0 39px; place-items:center; margin:0 1px; padding:0; border:1px solid #dbe3ef; border-radius:50%; background:#f8fafc; color:#475569; box-shadow:none; }
.system-health-trigger:hover { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; filter:none; }
.system-health-trigger svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.system-health-dot { position:absolute; right:3px; bottom:3px; width:9px; height:9px; border:2px solid #fff; border-radius:50%; background:#22c55e; }
.system-health-trigger.warning .system-health-dot { background:#f59e0b; }
.system-health-trigger.critical .system-health-dot { background:#ef4444; }
.system-health-count { position:absolute; top:-5px; right:-5px; min-width:17px; height:17px; display:grid; place-items:center; padding:0 4px; border:2px solid #fff; border-radius:999px; background:#ef4444; color:#fff; font-size:9px; font-weight:900; line-height:1; }
.system-alert-backdrop { position:fixed; z-index:80; inset:0; margin:0; padding:0; border:0; border-radius:0; background:#0f172a55; box-shadow:none; opacity:0; transition:opacity .2s ease; }
.system-alert-backdrop.open { opacity:1; }
.system-alert-backdrop[hidden],.system-alert-toast[hidden] { display:none; }
body.system-alert-open { overflow:hidden; padding-right:var(--system-alert-scrollbar-width,0); }
.system-alert-drawer { position:fixed; z-index:81; inset:0 0 0 auto; display:grid; grid-template-rows:auto minmax(0,1fr) auto; width:min(420px,94vw); border-left:1px solid var(--line); background:#fff; box-shadow:-24px 0 64px #0f172a2e; visibility:hidden; transform:translateX(105%); transition:transform .22s ease,visibility 0s linear .22s; }
.system-alert-drawer.open { visibility:visible; transform:translateX(0); transition:transform .22s ease; }
.system-alert-drawer-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px; border-bottom:1px solid var(--line); }
.system-alert-drawer-header span { color:#64748b; font-size:10px; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
.system-alert-drawer-header h2 { margin:4px 0 0; font-size:24px; }
.system-alert-close { width:38px; height:38px; margin:0; padding:0; border:1px solid var(--line); border-radius:12px; background:#f8fafc; color:#475569; box-shadow:none; font-size:25px; font-weight:400; line-height:1; }
.system-alert-list { min-height:0; display:grid; align-content:start; gap:10px; overflow-y:auto; padding:16px 20px; }
.system-alert-card { display:grid; grid-template-columns:10px minmax(0,1fr); gap:11px; align-items:start; padding:13px 14px; border:1px solid #fde68a; border-radius:14px; background:#fffbeb; }
.system-alert-card.critical { border-color:#fecaca; background:#fef2f2; }
.system-alert-card-dot { width:9px; height:9px; margin-top:4px; border-radius:50%; background:#f59e0b; }
.system-alert-card.critical .system-alert-card-dot { background:#ef4444; }
.system-alert-card strong,.system-alert-card small { display:block; }
.system-alert-card strong { color:#111827; font-size:14px; line-height:1.35; }
.system-alert-card small { margin-top:5px; color:#64748b; font-size:11px; line-height:1.4; }
.system-alert-empty { display:grid; justify-items:center; padding:52px 20px; color:#475569; text-align:center; }
.system-alert-empty > span { width:46px; height:46px; display:grid; place-items:center; margin-bottom:14px; border-radius:50%; background:#dcfce7; color:#15803d; font-size:24px; font-weight:900; }
.system-alert-empty strong { color:#111827; font-size:17px; }
.system-alert-empty p { margin:6px 0 0; color:#64748b; font-size:13px; }
.system-alert-drawer-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:15px 20px 20px; border-top:1px solid var(--line); background:#fff; }
.system-alert-drawer-footer :is(button,a) { min-height:38px; margin:0; padding:9px 12px; font-size:12px; }
.system-alert-toast { position:fixed; z-index:82; right:22px; bottom:22px; width:min(370px,calc(100vw - 28px)); display:flex; align-items:center; gap:8px; padding:8px; border:1px solid #fde68a; border-radius:16px; background:#fff; box-shadow:0 20px 55px #0f172a2b; opacity:0; transform:translateY(18px); transition:opacity .2s ease,transform .2s ease; }
.system-alert-toast.critical { border-color:#fecaca; }
.system-alert-toast.open { opacity:1; transform:translateY(0); }
.system-alert-toast-open { min-width:0; display:grid; flex:1; grid-template-columns:10px minmax(0,1fr); gap:10px; align-items:center; margin:0; padding:6px; border:0; background:transparent; color:#111827; box-shadow:none; text-align:left; }
.system-alert-toast-open:hover { background:#f8fafc; filter:none; }
.system-alert-toast-dot { width:9px; height:9px; border-radius:50%; background:#f59e0b; }
.system-alert-toast.critical .system-alert-toast-dot { background:#ef4444; }
.system-alert-toast-open strong,.system-alert-toast-open small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.system-alert-toast-open strong { font-size:12px; }
.system-alert-toast-open small { margin-top:2px; color:#64748b; font-size:11px; font-weight:500; }
.system-alert-toast-close { width:30px; height:30px; margin:0; padding:0; border:0; border-radius:9px; background:transparent; color:#64748b; box-shadow:none; font-size:20px; font-weight:400; line-height:1; }
.system-alert-toast-close:hover { background:#f1f5f9; filter:none; }
body > .app-sidebar ~ main { margin-left:var(--app-sidebar-width); transition:margin-left .18s; }
:root[data-nav-collapsed="true"] .app-sidebar { width:60px; }
:root[data-nav-collapsed="true"] .app-nav-group > strong,
:root[data-nav-collapsed="true"] .app-nav-item span { display:none; }
:root[data-nav-collapsed="true"] .app-nav-item { justify-content:center; padding-inline:0; }
:root[data-nav-collapsed="true"] body > .app-sidebar ~ main { margin-left:60px; }
.page { padding:22px; max-width:1500px; margin:0 auto; }
.process-grid { display:grid; grid-template-columns:minmax(320px,430px) minmax(520px,1fr); gap:18px; align-items:start; }
.process-left,.process-right,.history-page,.client-grid,.placeholder-page { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:20px; box-shadow:0 10px 30px #0f172a0b; }
.process-left h3 { overflow-wrap:anywhere; }
.operation-section-tabs { margin-bottom:16px; }
.operation-section-tabs .section-tabs { width:100%; }
.process-right { min-height:560px; }
.status-pill { display:inline-flex; align-items:center; gap:8px; margin:6px 0 12px; padding:9px 12px; border-radius:999px; font-weight:900; background:#eef2ff; color:#1d4ed8; }
.status-pill.done { background:#dcfce7; color:#166534; }
.status-pill.warn { background:#fef3c7; color:#92400e; }
.shipment-meta { color:#475569; font-size:16px; margin:8px 0 14px; }
.processed-notice { margin-top:16px; padding:16px; border:1px solid #bbf7d0; background:#ecfdf5; border-radius:16px; }
.processed-notice h4 { margin:0 0 6px; color:#166534; font-size:18px; }
.processed-notice p { margin:0 0 12px; color:#475569; }
.workflow-steps { margin-top:16px; display:grid; gap:12px; }
.step-card { display:grid; grid-template-columns:36px 1fr; gap:12px; padding:14px; border:1px solid var(--line); border-radius:16px; background:#f8fafc; }
.step-card.done { background:#ecfdf5; border-color:#bbf7d0; }
.step-card .mark { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; border:2px solid #cbd5e1; color:#94a3b8; font-weight:900; background:white; }
.step-card.done .mark { background:#22c55e; border-color:#22c55e; color:white; }
.step-card h4 { margin:0 0 4px; font-size:17px; }
.step-card p { margin:0 0 10px; color:var(--muted); }
.step-card small { display:block; margin-top:8px; color:#64748b; }
.step-card.done small { color:#166534; font-weight:800; }
.workflow-compact { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0 0 18px; }
.workflow-mini { min-width:0; padding:12px; border:1px solid var(--line); border-radius:14px; background:#f8fafc; }
.workflow-mini-head { display:flex; align-items:center; gap:8px; min-width:0; }
.workflow-mini-head strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }
.workflow-mini-mark { flex:0 0 27px; width:27px; height:27px; display:grid; place-items:center; border:2px solid #cbd5e1; border-radius:50%; color:#64748b; background:white; font-weight:900; }
.workflow-mini small { display:block; min-height:17px; margin:7px 0 0 35px; color:#64748b; font-weight:700; }
.workflow-mini button { margin:9px 0 0 35px; padding:7px 10px; font-size:13px; }
.workflow-mini.done { border-color:#bbf7d0; background:#ecfdf5; }
.workflow-mini.done .workflow-mini-mark { border-color:#22c55e; background:#22c55e; color:white; }
.workflow-mini.done small { color:#166534; }
.workflow-mini.warn { border-color:#fde68a; background:#fffbeb; }
.workflow-mini.warn .workflow-mini-mark { border-color:#f59e0b; background:#f59e0b; color:white; }
.workflow-mini.warn small { color:#92400e; }
.workflow-mini.ready { border-color:#93c5fd; background:#eff6ff; }
.workflow-mini.ready .workflow-mini-mark { border-color:#2563eb; color:#1d4ed8; }
.workflow-mini.ready small { color:#1d4ed8; }
.history-page { max-width:1100px; margin:22px auto; }
.history-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.history-heading h1 { margin:0 0 5px; }
.history-heading p { margin:0; }
.history-tabs { display:flex; gap:6px; padding:5px; border-radius:14px; background:#eef2f7; }
.history-tab { display:inline-flex; align-items:center; justify-content:center; min-width:128px; padding:10px 16px; border-radius:10px; color:#64748b; font-weight:900; white-space:nowrap; }
.history-tab:hover { color:#0f172a; text-decoration:none; background:#ffffffaa; }
.history-tab.active { color:#fff; background:#2563eb; box-shadow:0 6px 16px #2563eb33; }
.section-tabs {
  display:flex;
  flex-wrap:wrap;
  width:max-content;
  max-width:100%;
  gap:4px;
  padding:4px;
  border-radius:14px;
  background:var(--section-tabs-track, #eef2f7);
}
.section-tabs > :is(a,button) {
  display:inline-flex;
  flex:1 1 auto;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:8px 16px;
  border:0;
  border-radius:10px;
  background:var(--section-tab-bg, #f6f8fb);
  color:var(--section-tab-text, #526173);
  box-shadow:var(--section-tab-shadow, 0 1px 3px #0f172a20);
  font:inherit;
  font-weight:800;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  white-space:normal;
  overflow-wrap:anywhere;
}
.section-tabs > :is(a,button):hover:where(:not(:disabled,[aria-current="page"],[aria-selected="true"],[aria-pressed="true"])) {
  background:var(--section-tab-hover, #fff);
  color:var(--text);
  filter:none;
}
.section-tabs > :is(a,button):is([aria-current="page"],[aria-selected="true"],[aria-pressed="true"]) {
  background:#2563eb;
  color:#fff;
  box-shadow:0 4px 10px #2563eb33;
}
.section-tabs > :is(a,button):focus-visible {
  outline:2px solid var(--blue);
  outline-offset:1px;
}
.section-tabs > button:disabled { box-shadow:none; }
@media (max-width:760px) {
  .section-tabs > :is(a,button) { padding-inline:9px; font-size:13px; }
}
.history-content { padding-top:20px; }
.history-content h2 { margin:0 0 5px; }
.history-content > p { margin:0 0 18px; }
.history-table-scroll { overflow-x:auto; }
.history-table-scroll table { min-width:760px; }
.history-table-scroll td { vertical-align:middle; }
.crm-table-note { display:block; margin-top:4px; color:#64748b; font-size:12px; }
.history-error { display:grid; gap:4px; margin:14px 0; padding:14px 16px; border:1px solid #fecaca; border-radius:14px; color:#991b1b; background:#fef2f2; }
.completion-page { min-height:calc(100vh - 90px); display:grid; place-items:start center; padding:48px 22px; }
.completion-card { width:min(720px,100%); padding:34px; text-align:center; border:1px solid #bbf7d0; border-radius:22px; background:white; box-shadow:0 18px 48px #0f172a12; }
.completion-icon { width:66px; height:66px; margin:0 auto 18px; display:grid; place-items:center; border-radius:50%; background:#22c55e; color:white; font-size:38px; font-weight:900; }
.completion-card h2 { margin:0 0 10px; font-size:30px; }
.completion-card p { max-width:580px; margin:0 auto; color:#475569; font-size:17px; line-height:1.5; }
.completion-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:24px; }
.history-actions { display:flex; gap:10px; align-items:center; white-space:nowrap; flex-wrap:nowrap; }
.history-actions .button { padding:10px 14px; }
.shipment-detail { max-width:1200px; margin:22px auto; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:24px; box-shadow:0 10px 30px #0f172a0b; }
.detail-hero { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:18px; margin-bottom:18px; }
.client-grid { display:grid; grid-template-columns:340px 1fr; gap:18px; max-width:1300px; margin:22px auto; }
.brand-link { min-width:0; display:flex; align-items:center; gap:12px; color:#0f172a; }
.brand-link:hover { text-decoration:none; }
.brand-mark { flex:0 0 46px; width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:linear-gradient(135deg,#0ea5e9,#2dd4bf); box-shadow:0 8px 22px #0891b233; color:white; }
.brand-mark svg { width:31px; height:31px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.brand-copy { min-width:0; display:block; }
.brand-title { min-width:0; display:flex; align-items:center; gap:10px; font-size:21px; font-weight:900; line-height:1.1; letter-spacing:-.025em; white-space:nowrap; }
.brand-root { color:var(--text); }
.brand-separator { color:var(--muted); font-weight:650; }
.brand-section { overflow:hidden; padding:6px 9px; border-radius:8px; background:#f8fafc; color:var(--text); text-overflow:ellipsis; }
.top-meta { display:block; margin:5px 0 0; overflow:hidden; color:var(--muted); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.app-shell { display:grid; grid-template-columns:300px minmax(440px,1fr) 360px; gap:18px; padding:18px; align-items:start; }
.source-panel,.workbench,.control-panel,.card { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:18px; box-shadow:0 10px 30px #0f172a0b; }
.source-panel,.control-panel { position:sticky; top:88px; max-height:calc(100vh - 106px); overflow:auto; }
.section-title { display:flex; align-items:center; justify-content:space-between; margin:0 0 12px; font-size:15px; text-transform:uppercase; letter-spacing:.08em; color:#64748b; }
.tabs { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; margin-bottom:14px; }
.tab { padding:8px 6px; border-radius:999px; background:#f1f5f9; text-align:center; font-size:13px; font-weight:700; }
:root {
  --form-control-radius:12px;
  --form-control-border:#cbd5e1;
  --form-control-bg:#fff;
  --form-control-text:FieldText;
}
input[type=text] { width:100%; border:1px solid var(--form-control-border); border-radius:var(--form-control-radius); padding:11px 12px; font-size:14px; margin:8px 0; }
input[type=email],input[type=password],textarea,select,input[type=datetime-local] { width:100%; border:1px solid var(--form-control-border); border-radius:var(--form-control-radius); padding:11px 12px; font:inherit; margin:8px 0; background:var(--form-control-bg); }

/* Defaults for native fields. Component styles take priority. */
:where(input:is(:not([type]), [type=search], [type=date], [type=time],
  [type=number], [type=tel], [type=url]):not(.crm-search-input input, .order-stepper input, .flatpickr-calendar input)) {
  border:1px solid var(--form-control-border);
  border-radius:var(--form-control-radius);
  padding:8px 10px;
  background:var(--form-control-bg);
  color:var(--form-control-text);
  font:inherit;
}
textarea { min-height:110px; resize:vertical; }
button,.button { display:inline-block; border:0; border-radius:12px; padding:10px 13px; margin:2px; background:var(--blue); color:white; text-decoration:none; cursor:pointer; font-size:14px; font-weight:700; }
button:hover,.button:hover { filter:brightness(.96); text-decoration:none; }
button:disabled { opacity:.65; cursor:not-allowed; filter:none; }
/* Disclosures never show the browser triangle. A plain text toggle ends with «›», turned down while open;
   toggles drawn as their own button, row or menu are left out of this list. */
summary { cursor:pointer; list-style:none; }
summary::-webkit-details-marker { display:none; }
details { --disclosure-turn:0deg; }
details[open] { --disclosure-turn:90deg; }
details:not([class]) > summary,.crm-call-transcript > summary { color:var(--blue); font-weight:600; }
:is(details:not([class]),details.card,.crm-call-transcript,.crm-chart-details,.crm-mail-collapsed-part,.reactivation-more,
    .reactivation-edited,.reactivation-offers,.reactivation-brief,.reactivation-remove,.reactivation-transfer,.wc-dates,
    .wc-attention,.campaign-extra-addresses,.campaign-recipient-details,.mon-more,.mon-pages,.storefront-order-disclosure) > summary::after {
  content:"›"; display:inline-block; margin-left:8px; font-weight:400; transform:rotate(var(--disclosure-turn)); transition:transform .15s ease;
}
/* A price name opens its description without any mark: it turns blue under the pointer and while open. */
.price-description summary:hover,.price-description[open] summary { color:var(--blue); }
.loading-banner { display:none; margin:12px 0; padding:12px 14px; border-radius:14px; background:#eff6ff; color:#1d4ed8; font-weight:800; border:1px solid #bfdbfe; }
.loading-banner.active { display:block; }
.operation-panel,.completion-panel { padding:24px; border:1px solid #bfdbfe; border-radius:18px; background:#f8fbff; }
.operation-heading { display:flex; align-items:flex-start; gap:14px; }
.operation-heading h2,.completion-panel h2 { margin:0 0 7px; }
.operation-heading p,.completion-panel > p { margin:0; color:#475569; line-height:1.45; }
.operation-spinner { flex:0 0 34px; width:34px; height:34px; border:4px solid #bfdbfe; border-top-color:#2563eb; border-radius:50%; animation:operation-spin .9s linear infinite; }
@keyframes operation-spin { to { transform:rotate(360deg); } }
.async-page-loader { min-height:360px; margin-top:18px; overflow:hidden; }
.async-loader-heading { display:flex; align-items:flex-start; gap:15px; padding:4px 2px 24px; }
.async-loader-heading h2 { margin:0 0 6px; }
.async-loader-heading p { margin:0; color:var(--muted); }
.async-skeleton-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:24px; }
.async-skeleton-grid span,.async-skeleton-lines span { display:block; border-radius:12px; background:linear-gradient(90deg,#edf1f6 20%,#f8fafc 45%,#edf1f6 70%); background-size:220% 100%; animation:async-shimmer 1.35s ease-in-out infinite; }
.async-skeleton-grid span { height:86px; }
.async-skeleton-lines { display:grid; gap:12px; }
.async-skeleton-lines span { height:42px; }
.async-skeleton-lines span:nth-child(2) { width:92%; }
.async-skeleton-lines span:nth-child(3) { width:78%; }
.async-skeleton-layout { display:grid; grid-template-columns:minmax(220px,.7fr) minmax(360px,1.3fr); gap:18px; }
.async-page-loader.failed { min-height:0; border-color:#fecaca; }
.async-page-loader.failed .operation-spinner { border-color:#fecaca; border-top-color:#dc2626; animation:none; }
@keyframes async-shimmer { to { background-position:-220% 0; } }
.operation-progress { height:9px; margin:22px 0 7px; overflow:hidden; border-radius:999px; background:#dbeafe; }
.operation-progress span { display:block; width:12%; height:100%; border-radius:inherit; background:#2563eb; transition:width .35s ease; }
.operation-count { min-height:20px; margin:0; color:#1d4ed8; text-align:right; font-size:13px; font-weight:800; }
.operation-steps { display:grid; gap:10px; margin-top:18px; }
.operation-step { display:grid; grid-template-columns:34px 1fr; gap:11px; align-items:start; padding:12px; border:1px solid #e2e8f0; border-radius:14px; background:white; color:#64748b; }
.operation-step > span { width:30px; height:30px; display:grid; place-items:center; border:2px solid #cbd5e1; border-radius:50%; font-weight:900; }
.operation-step strong,.operation-step small { display:block; }
.operation-step small { margin-top:4px; color:#64748b; }
.operation-step.active { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
.operation-step.active > span { border-color:#2563eb; }
.operation-step.done { border-color:#bbf7d0; background:#ecfdf5; color:#166534; }
.operation-step.done > span { border-color:#22c55e; background:#22c55e; color:white; }
.operation-step.failed { border-color:#fecaca; background:#fef2f2; color:#991b1b; }
.operation-note { margin:18px 0 0; padding-top:14px; border-top:1px solid #dbeafe; color:#64748b; font-size:14px; }
.completion-panel { border-color:#bbf7d0; background:#f0fdf4; }
.completion-panel .completion-icon { margin:0 0 16px; }
.completion-stats { margin:20px 0; border-top:1px solid #bbf7d0; }
.rules-card { margin-top:16px; border:1px solid #dbeafe; background:#f8fbff; border-radius:16px; padding:14px; }
.rules-card h3 { margin:0 0 10px; }
.rules-card ul { margin:8px 0 0 18px; padding:0; color:#475569; }
.exception-section { border-top:1px solid var(--line); padding-top:18px; margin-top:20px; }
.exception-section:first-of-type { border-top:0; padding-top:0; margin-top:0; }
.exception-section h3 { margin:0 0 12px; }
.exception-section h4 { margin:16px 0 8px; color:var(--muted); font-size:.92rem; }
.secondary { background:#475569; }
.danger { background:var(--red); }
.success { background:var(--green); }
.ghost { background:#e2e8f0; color:#0f172a; }
.muted { color:var(--muted); }
.history-list { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.history-item { display:block; border:1px solid var(--line); border-radius:13px; padding:10px; background:#f8fafc; color:inherit; }
.history-item:hover { border-color:#bfdbfe; background:#eff6ff; text-decoration:none; }
.history-item strong { display:block; }
.badge { display:inline-flex; align-items:center; gap:5px; border-radius:999px; padding:4px 8px; font-size:12px; font-weight:800; background:#e2e8f0; color:#334155; }
.badge.ok { background:#dcfce7; color:#166534; }
.badge.warn { background:#fef3c7; color:#92400e; }
.badge.bad { background:#fee2e2; color:#991b1b; }
.badge.idle { background:#e2e8f0; color:#334155; }
.hero { border-radius:20px; padding:22px; background:linear-gradient(135deg,#1d4ed8,#0f172a); color:white; margin-bottom:16px; }
.hero h2 { margin:0 0 8px; font-size:26px; }
.hero p { margin:4px 0; color:#dbeafe; }
.info-page { max-width:1200px; }
.info-page .card { margin:16px 0; }
.info-page section[id], .receipt-help section[id] { scroll-margin-top:96px; }
.info-page h2 { margin-top:0; }
.info-hero { padding:28px; }
.info-kicker,.info-eyebrow { display:block; margin-bottom:6px; color:#2563eb; font-size:12px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.info-hero .info-kicker { color:#bfdbfe; }
.info-nav { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.info-nav a { padding:9px 12px; border-radius:999px; background:#dbeafe; color:#1d4ed8; font-weight:800; }
.info-section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:18px; }
.info-section-head h2 { margin:0; }
.info-section-head > p { max-width:520px; margin:2px 0 0; color:var(--muted); }
.info-files { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.info-file { display:grid; grid-template-columns:46px minmax(0,1fr); gap:14px; min-width:0; padding:18px; border:1px solid #dbeafe; border-radius:18px; background:#f8fbff; }
.info-file h3 { margin:1px 0 7px; }
.info-file p { margin:6px 0 12px; color:#475569; }
.info-file-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:#e0f2fe; color:#0369a1; font-size:22px; font-weight:900; }
.info-file-note { border-color:#bbf7d0; background:#f0fdf4; }
.info-file-note .info-file-icon { background:#dcfce7; color:#15803d; }
.info-columns { font-size:14px; line-height:1.45; }
.info-steps { display:grid; gap:12px; }
.info-step { display:grid; grid-template-columns:42px minmax(0,1fr); gap:14px; padding:17px; border:1px solid #dbeafe; border-radius:16px; background:#fff; }
.info-step > span { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:#dbeafe; color:#1d4ed8; font-weight:900; }
.info-step h3 { margin:2px 0 7px; }
.info-step p { margin:6px 0; color:#475569; line-height:1.5; }
.manager-note { padding:12px 14px; border-left:4px solid #38bdf8; border-radius:0 12px 12px 0; background:#f0f9ff; color:#334155; }
.info-checklist { margin:0; padding-left:24px; }
.info-checklist li { padding-left:5px; line-height:1.5; }
.info-split-note { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
.info-split-note p { margin:0; padding:14px; border:1px solid #dbeafe; border-radius:14px; background:#f8fbff; }
.info-flow { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin:14px 0; }
.info-flow > div { padding:13px; border:1px solid #dbeafe; border-radius:14px; background:#f8fbff; }
.info-flow strong,.info-flow span { display:block; }
.info-flow span { margin-top:5px; color:#475569; font-size:14px; line-height:1.35; }
.info-page details { border-top:1px solid var(--line); padding-top:13px; }
.info-page summary { cursor:pointer; font-weight:800; }
.info-page li { margin:7px 0; color:#475569; }
.info-table-wrap { width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:16px; }
.info-help-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:14px; }
.info-help-table col.issue { width:30%; }
.info-help-table col.place { width:29%; }
.info-help-table col.action { width:41%; }
.info-help-table th,.info-help-table td { min-width:0; padding:14px 16px; vertical-align:top; white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
.info-help-table th { background:#f1f5f9; }
.info-help-table tr:last-child td { border-bottom:0; }
.documents-page { max-width:1400px; }
.documents-hero { margin-bottom:17px; padding:18px 20px; border:1px solid #cbdaf2; border-radius:18px; background:radial-gradient(circle at 90% 0,#dbeafe 0,transparent 42%),linear-gradient(135deg,#ffffff,#f8fbff); }
.documents-hero h2 { margin:4px 0 5px; font-size:30px; letter-spacing:-.025em; }
.documents-hero p { max-width:760px; margin:0; color:#64748b; font-size:15px; line-height:1.45; }
.documents-section > h3 { margin:0 0 9px 2px; font-size:16px; }
.document-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:1fr; gap:11px; }
.document-card { position:relative; min-width:0; min-height:154px; display:grid; grid-template-columns:46px minmax(0,1fr); grid-template-rows:1fr auto; gap:8px 12px; padding:15px; overflow:hidden; border:1px solid #dce3ee; border-radius:15px; background:var(--card); box-shadow:0 6px 20px #0f172a08; transition:border-color .16s,box-shadow .16s,transform .16s; }
.document-card:hover { border-color:#60a5fa; box-shadow:0 12px 28px #2563eb1a; transform:translateY(-2px); }
.document-card-link { position:absolute; z-index:1; inset:-1px; border-radius:inherit; }
.document-card-link:focus-visible { outline:3px solid #60a5fa; outline-offset:-3px; }
.document-icon { position:relative; z-index:0; width:44px; height:44px; display:grid; place-items:center; border-radius:12px; color:#16a34a; background:#eaf9ef; }
.document-card.folder .document-icon { color:#2563eb; background:#eaf1ff; }
.document-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.document-card-copy { position:relative; z-index:0; min-width:0; }
.document-source { color:#16a34a; font-size:9px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.document-card.folder .document-source { color:#2563eb; }
.document-card h3 { margin:3px 0 4px; font-size:18px; }
.document-card p { margin:0 0 5px; color:#64748b; font-size:12px; line-height:1.35; }
.document-meta { display:block; color:#475569; font-size:11px; font-weight:750; }
.document-actions { position:relative; z-index:2; pointer-events:none; grid-column:2; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; }
.document-open-hint { color:#2563eb; font-size:11px; font-weight:850; white-space:nowrap; }
.document-open-hint span { display:inline-block; margin-left:2px; transition:transform .16s; }
.document-card:hover .document-open-hint span { transform:translate(2px,-2px); }
.document-actions .button { position:relative; z-index:3; pointer-events:auto; margin:0; padding:6px 8px; border:1px solid #dbe3ef; background:#f8fafc; color:#334155; font-size:10px; white-space:nowrap; box-shadow:none; }
.document-actions .button:hover { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; filter:none; }
.document-unavailable { align-self:center; color:#b45309; font-size:11px; font-weight:800; }
.document-card.unavailable { cursor:default; }
.document-card.unavailable:hover { border-color:#dce3ee; box-shadow:0 6px 20px #0f172a08; transform:none; }
.documents-note { margin-top:11px; padding:12px 14px; }
.documents-note p { margin:5px 0 0; color:#64748b; line-height:1.45; }
.info-admin-note { border-color:#cbd5e1; background:#f8fafc; }
@media (max-width:800px) {
  .info-flow,.info-files,.info-split-note { grid-template-columns:1fr; }
  .info-section-head { display:block; }
  .info-section-head .button { display:inline-block; margin-top:12px; }
  .info-page { padding:14px; }
  .info-page .card { overflow:hidden; }
  .info-help-table { min-width:760px; }
  .info-help-table col.issue { width:30%; }
  .info-help-table col.place { width:30%; }
  .info-help-table col.action { width:40%; }
}
.step { border:1px solid var(--line); border-radius:16px; padding:16px; margin:12px 0; background:#fff; }
.step-head { display:flex; gap:12px; align-items:flex-start; }
.step-num { flex:0 0 34px; height:34px; border-radius:50%; display:grid; place-items:center; background:#dbeafe; color:#1d4ed8; font-weight:900; }
.step h3 { margin:0 0 5px; }
.step p { margin:0 0 12px; color:var(--muted); }
.control-stat { display:grid; grid-template-columns:1fr auto; gap:8px; padding:10px 0; border-bottom:1px solid var(--line); }
.stage-summary { padding:16px; border:1px solid #dbeafe; border-radius:16px; background:#f8fbff; }
.stage-summary.success { border-color:#bbf7d0; background:#ecfdf5; }
.stage-summary.warning { border-color:#fed7aa; background:#fff7ed; }
.stage-summary h3,.stage-alert h3,.stage-details h3 { margin:0 0 10px; }
.stage-summary p:last-child { margin-bottom:0; }
.stage-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 0; }
.stage-ok { color:#166534; font-weight:800; }
.stage-alert,.stage-details { margin-top:16px; padding:14px 16px; border:1px solid var(--line); border-radius:16px; background:#f8fafc; }
.stage-alert.error { border-color:#fecaca; background:#fef2f2; }
.stage-alert.warning { border-color:#fde68a; background:#fffbeb; }
.stage-alert ul,.stage-details ul { margin:8px 0 0 18px; padding:0; }
.stage-alert li,.stage-details li { margin:7px 0; color:#475569; }
table { border-collapse:collapse; width:100%; }
th,td { border-bottom:1px solid var(--line); padding:8px; text-align:left; vertical-align:top; }
th { background:#f3f4f6; }
pre { white-space:pre-wrap; background:var(--dark); color:#e5e7eb; padding:12px; border-radius:10px; overflow:auto; }
.report-frame { margin:18px; }
