/* 장비365 운영 Web UI 공통 스타일 (Tailwind 보완) */
.sign-pad { touch-action: none; }
.cal-cell { min-height: 84px; }
input:checked + .toggle-track { background-color: #2563eb; }
input:checked + .toggle-track .toggle-dot { transform: translateX(1.25rem); }

/* 관리자 수직 사이드바 메뉴 */
.admin-menu-btn { color: #475569; }
.admin-menu-btn:hover { background-color: #f1f5f9; }
.admin-menu-btn.active { background-color: #dbeafe; color: #1e40af; }

/* 매칭/배차 지역 필터 버튼 */
.region-filter-btn { color: #64748b; }
.region-filter-btn.active { background-color: #ffffff; color: #2563eb; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* Post-V2 role workspaces: shared commercial desktop shell. */
:root {
  --j365-ink: #172033;
  /* DESIGN_2026-09-09 (장비불러 app reference): muted text darker for
     4.5:1+ on white; a stronger line for inputs and selectable cards. */
  --j365-muted: #526073;
  --j365-line: #dbe3ee;
  --j365-line-strong: #b9c5d6;
  --j365-canvas: #f3f6fa;
  --j365-panel: #ffffff;
  --j365-brand: #1d4ed8;
  --j365-brand-strong: #173d8f;
  --j365-brand-soft: #eaf1ff;
  --j365-success: #047857;
  --j365-warning: #b45309;
  --j365-danger: #be123c;
  /* Warm accent (2026-09-05): SELECTION contrast only — never a second brand. */
  --j365-accent: #fbbf24;
  --j365-accent-strong: #f59e0b;
  --j365-accent-soft: #fff7d6;
  --j365-on-accent: #3a2a00;
  --j365-radius-sm: 0.55rem;
  --j365-radius: 0.8rem;
  --j365-radius-lg: 1rem;
  --j365-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.04);
}

html { scroll-behavior: smooth; }
body {
  color: var(--j365-ink);
  background: var(--j365-canvas);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

.j365-skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-150%);
  border-radius: var(--j365-radius-sm);
  background: #fff;
  padding: 0.65rem 0.9rem;
  color: var(--j365-brand-strong);
  font-weight: 800;
  box-shadow: var(--j365-shadow);
}
.j365-skip-link:focus { transform: translateY(0); }

.app-shell-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  background: linear-gradient(110deg, #183e75 0%, #1d4ed8 58%, #2563eb 100%);
  box-shadow: 0 4px 18px rgb(15 23 42 / 0.12);
}
.app-shell-bar { min-height: 4rem; }
.app-brand { color: #fff; text-decoration: none; }
.app-brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 0.7rem;
  background: rgb(255 255 255 / 0.13);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16);
}
.app-brand-mark svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}
.app-brand-tagline {
  margin-top: 0.28rem;
  color: #c8d9ff;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.role-switcher {
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 0.75rem;
  background: rgb(15 23 42 / 0.13);
  padding: 0.2rem;
}
.role-switcher .role-btn {
  min-height: 2.25rem;
  border-radius: 0.56rem;
  font-weight: 700;
}
.role-switcher .role-btn[aria-current="page"] {
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.14);
}
.app-session-chip { border: 1px solid rgb(255 255 255 / 0.14); }
.app-main { width: 100%; }

body.j365-role-page :is(button, input, select, textarea, a):focus-visible,
body.j365-operations-page :is(button, input, select, textarea, a):focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
#btn-timeline-search,
#btn-dispatch-search,
#btn-member-search {
  min-width: 2.75rem;
  min-height: 2.75rem;
}
body.j365-role-page :is(input, select, textarea),
body.j365-operations-page :is(input, select, textarea) {
  border-color: #c6d1df;
  background-color: #fff;
  color: var(--j365-ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
body.j365-role-page :is(input, select, textarea):hover,
body.j365-operations-page :is(input, select, textarea):hover { border-color: #94a3b8; }
body.j365-role-page :is(input, select, textarea):focus,
body.j365-operations-page :is(input, select, textarea):focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.12);
}
body.j365-role-page :is(button, input, select, textarea):disabled,
body.j365-operations-page :is(button, input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.j365-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.j365-page-heading h1 { margin: 0; color: #12233f; font-size: clamp(1.45rem, 2vw, 1.9rem); letter-spacing: -0.035em; }
.j365-page-heading p { margin: 0.35rem 0 0; color: var(--j365-muted); font-size: 0.85rem; }
.j365-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.j365-eyebrow {
  margin: 0 0 0.35rem !important;
  color: var(--j365-brand) !important;
  font-size: 0.75rem !important;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.j365-role-layout {
  display: grid;
  /* The sidebar gives way first; main content keeps minmax(0, 1fr) so a wide
     child can never push the page past the viewport. */
  grid-template-columns: clamp(11.5rem, 17vw, 14.5rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}
.j365-role-sidebar {
  position: sticky;
  top: 5.15rem;
  max-height: calc(100vh - 6.4rem);
  overflow: auto;
  border: 1px solid var(--j365-line);
  border-radius: var(--j365-radius-lg);
  background: #fff;
  padding: 0.75rem;
  box-shadow: var(--j365-shadow);
}
.j365-role-sidebar-label {
  padding: 0.35rem 0.65rem 0.55rem;
  color: #7b8a9e;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.j365-role-nav { display: grid; gap: 0.2rem; }
.j365-role-nav a,
.j365-role-nav button {
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  padding: 0.6rem 0.7rem;
  color: #2f3f55;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.j365-role-nav a:hover,
.j365-role-nav button:hover { background: #f1f5f9; color: #172033; }
.j365-role-nav a[aria-current="location"],
.j365-role-nav button.active {
  background: var(--j365-brand-soft);
  color: var(--j365-brand-strong);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--j365-brand);
}
/* Selected catalog / option rows read as a warm amber tint. */
.j365-selected,
[data-a3-model-row].is-selected,
[data-a3-option].is-selected {
  background: var(--j365-accent-soft);
  border-color: var(--j365-accent-strong);
  color: var(--j365-on-accent);
}
/* Finance status chips: one meaning per colour, text always present. */
.j365-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(15 23 42 / 0.08);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}
.j365-status-chip.is-complete { background: #dcfce7; color: var(--j365-success); }
.j365-status-chip.is-pending { background: var(--j365-accent-soft); color: var(--j365-warning); }
.j365-status-chip.is-blocked { background: #ffe4e6; color: var(--j365-danger); }
.j365-status-chip.is-info { background: var(--j365-brand-soft); color: var(--j365-brand-strong); }
.j365-status-chip.is-neutral { background: #f1f5f9; color: var(--j365-muted); }
.j365-nav-icon {
  display: grid;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 0.5rem;
  background: #eef2f7;
  color: #52657d;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.j365-role-nav :is(a[aria-current="location"], button.active) .j365-nav-icon {
  background: #dbeafe;
  color: #1d4ed8;
}
.j365-role-content { min-width: 0; }
.j365-anchor-section { scroll-margin-top: 5.5rem; }
.j365-role-content > :first-child > form { margin-top: 0; }
#customer-create { margin-top: 1.25rem; }
/* Collapsible business groups. The group holding the active page is always
   open; collapsing the rest keeps the whole menu inside one 1366px viewport. */
.j365-sidebar-section { display: grid; gap: 0.15rem; }
.j365-role-nav button.j365-sidebar-group {
  display: flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.5rem 0.25rem;
  border-radius: 0.5rem;
  background: transparent;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.j365-role-nav button.j365-sidebar-group:hover { background: #f1f5f9; color: #334155; }
.j365-role-nav button.j365-sidebar-group:focus-visible {
  outline: 2px solid var(--j365-brand);
  outline-offset: 1px;
}
.j365-sidebar-section:first-child .j365-sidebar-group { padding-top: 0.25rem; }
.j365-sidebar-group-chevron {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 140ms ease;
}
.j365-sidebar-section.is-collapsed .j365-sidebar-group-chevron { transform: rotate(-45deg); }
.j365-sidebar-group-label { flex: 1 1 auto; }
.j365-sidebar-items { display: grid; gap: 0.2rem; }
/* Collapsed items leave the layout entirely, so they are not tab stops. */
.j365-sidebar-section.is-collapsed .j365-sidebar-items { display: none; }
.j365-sidebar-section:has(button.active) .j365-sidebar-group { color: var(--j365-brand-strong); }

.j365-panel-heading,
.j365-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.j365-panel-heading {
  border-bottom: 1px solid var(--j365-line);
  padding: 0.15rem 0 0.9rem;
}
.j365-panel-heading h2,
.j365-section-heading h2 { margin: 0; color: #192a43; font-size: 1.08rem; font-weight: 850; letter-spacing: -0.025em; }
.j365-panel-heading p:not(.j365-eyebrow),
.j365-section-heading p { margin: 0.3rem 0 0; color: var(--j365-muted); font-size: 0.78rem; }

.j365-btn-primary,
.j365-btn-secondary {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--j365-radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}
.j365-btn-primary { border-color: var(--j365-brand); background: var(--j365-brand); color: #fff; }
.j365-btn-primary:hover { border-color: var(--j365-brand-strong); background: var(--j365-brand-strong); }
.j365-btn-secondary { border-color: var(--j365-line-strong); background: #fff; color: #263447; }
.j365-btn-secondary:hover { border-color: #94a3b8; background: #f8fafc; }

.j365-segmented {
  display: inline-flex;
  gap: 0.2rem;
  margin-top: 1rem;
  border: 1px solid var(--j365-line);
  border-radius: 0.7rem;
  background: #eef2f7;
  padding: 0.22rem;
}
.j365-segmented button {
  min-height: 2.25rem;
  border: 0;
  border-radius: 0.52rem;
  background: transparent;
  padding: 0.45rem 0.9rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 780;
}
.j365-segmented button:is([aria-selected="true"], [aria-pressed="true"]) {
  background: #fff;
  color: var(--j365-brand-strong);
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.1);
}
.j365-result-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef2ff;
  padding: 0.35rem 0.65rem;
  color: #3730a3;
  font-size: 0.74rem;
  font-weight: 780;
}
.j365-compact-calendar .cal-cell {
  min-height: 2.7rem;
  min-width: 0;
  overflow: hidden;
  line-height: 1.15;
}
.j365-compact-calendar #c-cal-detail { max-height: 9rem; overflow: auto; }

body.j365-role-page section.bg-white,
body.j365-role-page .j365-panel,
body.j365-operations-page section.bg-white,
body.j365-operations-page .j365-panel {
  border-color: var(--j365-line) !important;
  border-radius: var(--j365-radius-lg) !important;
  box-shadow: var(--j365-shadow) !important;
}
body.j365-role-page section h2,
body.j365-operations-page section h2 { color: #192a43; letter-spacing: -0.025em; }
body.j365-role-page table,
body.j365-operations-page table { border-collapse: separate; border-spacing: 0; }
body.j365-role-page thead,
body.j365-operations-page thead { background: #f8fafc; }
body.j365-role-page tbody tr,
body.j365-operations-page tbody tr { transition: background-color 120ms ease; }
body.j365-role-page tbody tr:hover,
body.j365-operations-page tbody tr:hover { background: #f8fbff; }

.j365-toolbar {
  display: grid;
  grid-template-columns: minmax(14rem, 1.5fr) repeat(2, minmax(9rem, 0.7fr)) auto;
  gap: 0.6rem;
  align-items: end;
  margin-top: 1rem;
  border: 1px solid #e1e8f1;
  border-radius: var(--j365-radius);
  background: #f8fafc;
  padding: 0.75rem;
}
.j365-toolbar-actions { display: flex; align-items: center; gap: 0.45rem; }
.j365-toolbar label { display: grid; gap: 0.32rem; color: #64748b; font-size: 0.75rem; font-weight: 760; }
.j365-toolbar :is(input, select) { width: 100%; min-height: 2.45rem; border-width: 1px; border-radius: var(--j365-radius-sm); padding: 0.5rem 0.7rem; font-size: 0.82rem; font-weight: 500; }
.j365-filter-summary { color: var(--j365-muted); font-size: 0.76rem; overflow-wrap: anywhere; }

.j365-inline-state {
  border: 1px solid #e2e8f0;
  border-radius: var(--j365-radius);
  background: #f8fafc;
  padding: 0.9rem;
  color: #53657b;
}
.j365-inline-state[data-state="error"] { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.j365-inline-state[data-state="empty"] { border-style: dashed; text-align: center; }

.j365-discovery-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  align-items: start;
  gap: 0.9rem;
}
.j365-discovery-list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.j365-discovery-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 0.8rem;
  width: 100%;
  border: 1px solid #dce4ee;
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.75rem;
  color: #25364d;
  text-align: left;
}
.j365-discovery-list button:hover { border-color: #93b4ed; background: #f8fbff; }
.j365-discovery-list button[aria-current="true"] { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 0 0 2px rgb(59 130 246 / 0.1); }
.j365-discovery-title { min-width: 0; overflow: hidden; font-size: 0.85rem; font-weight: 820; text-overflow: ellipsis; white-space: nowrap; }
.j365-discovery-meta { grid-column: 1 / -1; color: #64748b; font-size: 0.74rem; overflow-wrap: anywhere; }
.j365-status-chip { align-self: start; border-radius: 999px; background: #e2e8f0; padding: 0.24rem 0.5rem; color: #475569; font-size: 0.75rem; font-weight: 800; }
.j365-detail-pane {
  position: sticky;
  top: 5.2rem;
  min-height: 12rem;
  border: 1px solid #dce4ee;
  border-radius: var(--j365-radius);
  background: #f8fafc;
  padding: 1rem;
  color: #52657d;
  font-size: 0.82rem;
}
.j365-detail-pane h3 { margin: 0; color: #172033; font-size: 1rem; }
.j365-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin-top: 0.85rem; }
.j365-detail-grid div { border-radius: 0.55rem; background: #fff; padding: 0.65rem; }
.j365-detail-grid dt { color: #64748b; font-size: 0.75rem; font-weight: 750; }
.j365-detail-grid dd { margin: 0.22rem 0 0; color: #25364d; font-weight: 720; overflow-wrap: anywhere; }
.j365-pager { display: flex; align-items: center; justify-content: flex-end; gap: 0.65rem; color: #64748b; font-size: 0.77rem; }
.j365-identity-field { display: flex; align-items: center; color: #52657d; font-size: 0.75rem; font-weight: 750; }

@media (max-width: 1100px) {
  .j365-role-layout { grid-template-columns: 1fr; }
  .j365-role-sidebar {
    position: sticky;
    z-index: 25;
    top: 4rem;
    max-height: none;
    overflow-x: auto;
    border-radius: 0.8rem;
    padding: 0.45rem;
  }
  .j365-role-sidebar-label { display: none; }
  .j365-role-nav { display: flex; min-width: max-content; }
  .j365-role-nav a,
  .j365-role-nav button { width: auto; min-height: 2.4rem; white-space: nowrap; }
  .j365-nav-icon { display: none; }
  .j365-sidebar-group { display: none; }
  .j365-sidebar-section,
  .j365-sidebar-items { display: contents; }
}

@media (max-width: 760px) {
  .app-shell-bar { min-height: 3.65rem; }
  .app-brand-mark { width: 2rem; height: 2rem; }
  .role-switcher .role-btn { min-height: 2rem; padding-inline: 0.55rem !important; }
  .app-main { padding: 1rem 0.75rem 2rem !important; }
  .j365-page-heading { display: grid; }
  .j365-page-heading > :last-child { width: 100%; }
  .j365-heading-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .j365-heading-actions > * { min-width: 0; }
  .j365-toolbar { grid-template-columns: 1fr; }
  .j365-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .j365-toolbar-actions > * { width: 100%; }
  .j365-discovery-split { grid-template-columns: 1fr; }
  .j365-detail-pane { position: static; min-height: 0; }
  .j365-panel-heading,
  .j365-section-heading { display: grid; }
}

@media (max-width: 480px) {
  .app-brand > span:last-child { display: none; }
  .app-session-chip { padding-left: 0.55rem !important; }
  .app-session-chip #session-label { max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .j365-heading-actions { grid-template-columns: 1fr; }
  .j365-segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .j365-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* FG3-F02 customer card payment: additive, self-hosted selectors only. */
body.f02-payment-secure-page {
  min-height: 100vh;
  margin: 0;
  background: #f1f5f9;
  color: #1e293b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.f02-payment-secure-page * { box-sizing: border-box; }
body.f02-payment-secure-page .hidden { display: none !important; }
body.f02-payment-secure-page header {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.25);
}
body.f02-payment-secure-page header > div,
body.f02-payment-secure-page main {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}
body.f02-payment-secure-page header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
}
body.f02-payment-secure-page header a { color: inherit; text-decoration: none; }
body.f02-payment-secure-page main { padding-block: 1.5rem; }
body.f02-payment-secure-page button,
body.f02-payment-secure-page .f02-payment-heading > a {
  border: 1px solid #94a3b8;
  border-radius: 0.6rem;
  background: #fff;
  color: #1e293b;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-weight: 700;
}
body.f02-payment-secure-page button { cursor: pointer; }
body.f02-payment-secure-page button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.f02-payment-heading,
.f02-payment-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.f02-payment-heading h1,
.f02-payment-section-heading h2,
.f02-payment-actions h2 { margin: 0; }
.f02-payment-heading h1 { font-size: 1.7rem; }
.f02-payment-heading p,
.f02-payment-section-heading p,
.f02-payment-actions > p { margin: 0.35rem 0 0; color: #64748b; }
.f02-payment-eyebrow {
  color: #475569 !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.f02-payment-heading > a { text-decoration: none; }
.f02-payment-sandbox-notice,
.f02-payment-notice,
.f02-payment-summary,
.f02-payment-actions {
  margin-top: 1rem;
  border-radius: 0.85rem;
  padding: 1rem;
}
.f02-payment-sandbox-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.f02-payment-notice { border: 1px solid #cbd5e1; background: #fff; }
.f02-payment-notice-warn { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.f02-payment-notice-error { border-color: #fda4af; background: #fff1f2; color: #9f1239; }
.f02-payment-notice button { margin-left: 0.6rem; }
.f02-payment-summary,
.f02-payment-actions { border: 1px solid #cbd5e1; background: #fff; }
.f02-payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.f02-payment-detail-grid > div { border-radius: 0.65rem; background: #f8fafc; padding: 0.75rem; }
.f02-payment-detail-grid dt { color: #64748b; font-size: 0.72rem; font-weight: 800; }
.f02-payment-detail-grid dd { margin: 0.3rem 0 0; overflow-wrap: anywhere; font-weight: 750; }
.f02-payment-state-guidance,
.f02-payment-sensitive-boundary {
  margin-top: 1rem;
  border-radius: 0.65rem;
  background: #eff6ff;
  color: #1e40af;
  padding: 0.8rem;
}
.f02-payment-action-buttons { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.f02-payment-action-buttons button:first-child { background: #f8fafc; }
.f02-payment-action-buttons button:nth-child(2),
.f02-payment-action-buttons button:nth-child(3) { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
.f02-payment-sensitive-boundary { background: #ecfdf5; color: #065f46; font-size: 0.85rem; }
@media (max-width: 560px) {
  .f02-payment-sandbox-notice { display: grid; }
  .f02-payment-action-buttons { display: grid; }
  .f02-payment-action-buttons button { width: 100%; }
}

/* FG3-F01 provider administration: additive selectors only. */
.f01-provider-production-disabled {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #f59e0b;
  border-radius: 0.75rem;
  background: #fffbeb;
  color: #92400e;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
}
.f01-provider-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.f01-provider-detail-grid > div { border-radius: 0.65rem; background: #f8fafc; padding: 0.75rem; }
.f01-provider-detail-grid dt { color: #64748b; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.f01-provider-detail-grid dd { margin-top: 0.25rem; overflow-wrap: anywhere; font-size: 0.875rem; font-weight: 700; }
.f01-provider-history { margin-top: 0.55rem; display: grid; gap: 0.5rem; }
.f01-provider-history > article { border: 1px solid #e2e8f0; border-radius: 0.65rem; padding: 0.65rem; font-size: 0.75rem; }
.f01-provider-secret { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.f01-provider-fake-fixture {
  border: 1px solid #a7f3d0;
  border-radius: 0.65rem;
  background: #ecfdf5;
  color: #065f46;
  padding: 0.75rem;
  font-size: 0.8rem;
}

/* F01 deliberately does not execute the base template's Tailwind CDN runtime. */
body.f01-provider-secure-page {
  min-height: 100vh;
  margin: 0;
  background: #f1f5f9;
  color: #1e293b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.f01-provider-secure-page * { box-sizing: border-box; }
body.f01-provider-secure-page .hidden { display: none !important; }
body.f01-provider-secure-page header {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.25);
}
body.f01-provider-secure-page header > div,
body.f01-provider-secure-page main {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}
body.f01-provider-secure-page header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
}
body.f01-provider-secure-page header a { color: inherit; text-decoration: none; }
body.f01-provider-secure-page main { padding-block: 1.5rem; }
body.f01-provider-secure-page main > div:first-child,
body.f01-provider-secure-page main section > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
body.f01-provider-secure-page section,
body.f01-provider-secure-page main > div[role="status"],
body.f01-provider-secure-page main > div[role="alert"] {
  margin-top: 1rem;
}
body.f01-provider-secure-page #payment-provider-app > div,
body.f01-provider-secure-page #payment-provider-app > div > div,
body.f01-provider-secure-page #payment-provider-app > div > div > div {
  display: grid;
  gap: 1rem;
}
body.f01-provider-secure-page #payment-provider-app section {
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  background: #fff;
  padding: 1.1rem;
}
body.f01-provider-secure-page form { display: grid; gap: 0.75rem; margin-top: 0.9rem; }
body.f01-provider-secure-page label { display: grid; gap: 0.3rem; font-size: 0.875rem; font-weight: 650; }
body.f01-provider-secure-page input,
body.f01-provider-secure-page select,
body.f01-provider-secure-page textarea,
body.f01-provider-secure-page button {
  max-width: 100%;
  border: 1px solid #94a3b8;
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: inherit;
  font: inherit;
}
body.f01-provider-secure-page button { cursor: pointer; font-weight: 650; }
body.f01-provider-secure-page button:disabled { cursor: not-allowed; opacity: 0.5; }
body.f01-provider-secure-page textarea { resize: vertical; }
body.f01-provider-secure-page #payment-provider-list,
body.f01-provider-secure-page #payment-provider-detail,
body.f01-provider-secure-page #payment-provider-operation-status {
  overflow-wrap: anywhere;
}
body.f01-provider-secure-page .app-shell-bar { display: flex; align-items: center; justify-content: space-between; }
body.f01-provider-secure-page .app-brand { display: flex; align-items: center; gap: 0.65rem; }
body.f01-provider-secure-page .role-switcher,
body.f01-provider-secure-page .app-session-chip { display: flex; align-items: center; gap: 0.4rem; }
body.f01-provider-secure-page #session-dashboard {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  gap: 0.2rem;
  border: 0;
  background: #fff;
  padding: 0.45rem 0.7rem;
  color: #1d4ed8;
}
body.f01-provider-secure-page #session-logout {
  min-height: auto;
  border: 0;
  background: rgb(255 255 255 / 0.18);
  padding: 0.35rem 0.55rem;
  color: #fff;
}
@media (min-width: 900px) {
  body.f01-provider-secure-page #payment-provider-app > div:first-child {
    grid-template-columns: minmax(19rem, 0.72fr) minmax(0, 1.28fr);
  }
  body.f01-provider-secure-page #payment-provider-app > section:last-child > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* FG3-F05 owner wallet-charge projections: additive, self-hosted selectors only. */
body.f05-wallet-charge-secure-page {
  background: #f1f5f9;
  color: #0f172a;
}
body.f05-wallet-charge-secure-page * { box-sizing: border-box; }
body.f05-wallet-charge-secure-page .hidden { display: none !important; }
body.f05-wallet-charge-secure-page header {
  border-bottom: 1px solid #1e40af;
  background: #1d4ed8;
}
body.f05-wallet-charge-secure-page header > div,
body.f05-wallet-charge-secure-page main {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: 1rem;
}
body.f05-wallet-charge-secure-page header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.8rem;
}
body.f05-wallet-charge-secure-page header a { color: inherit; text-decoration: none; }
body.f05-wallet-charge-secure-page main { padding-block: 1.5rem; }
body.f05-wallet-charge-secure-page button,
body.f05-wallet-charge-secure-page .f05-wallet-charge-heading > a {
  min-height: 2.6rem;
  border: 1px solid #94a3b8;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.55rem 0.85rem;
  color: #0f172a;
  font: inherit;
  font-weight: 750;
}
body.f05-wallet-charge-secure-page button { cursor: pointer; }
body.f05-wallet-charge-secure-page button:disabled { cursor: not-allowed; opacity: 0.55; }
body.f05-wallet-charge-secure-page button:focus-visible,
body.f05-wallet-charge-secure-page a:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
.f05-wallet-charge-heading,
.f05-wallet-charge-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.f05-wallet-charge-heading h1,
.f05-wallet-charge-section-heading h2 { margin: 0; }
.f05-wallet-charge-heading h1 { font-size: 1.75rem; }
.f05-wallet-charge-heading p,
.f05-wallet-charge-section-heading p { margin: 0.35rem 0 0; color: #64748b; }
.f05-wallet-charge-eyebrow {
  color: #1d4ed8 !important;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.f05-wallet-charge-heading > a { text-decoration: none; }
.f05-wallet-charge-sandbox-notice,
.f05-wallet-charge-notice,
.f05-wallet-charge-panel {
  margin-top: 1rem;
  border-radius: 0.85rem;
  padding: 1rem;
}
.f05-wallet-charge-sandbox-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.f05-wallet-charge-notice,
.f05-wallet-charge-panel { border: 1px solid #cbd5e1; background: #fff; }
.f05-wallet-charge-notice-warn { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.f05-wallet-charge-notice-error { border-color: #fda4af; background: #fff1f2; color: #9f1239; }
.f05-wallet-charge-notice button { margin-left: 0.6rem; }
.f05-wallet-charge-inline-state {
  margin-top: 1rem;
  border-radius: 0.65rem;
  padding: 0.8rem;
  background: #f8fafc;
  color: #475569;
}
.f05-wallet-charge-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.f05-wallet-charge-list-item {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  padding: 0.75rem;
}
.f05-wallet-charge-list-summary { font-weight: 800; }
.f05-wallet-charge-list-state {
  border-radius: 999px;
  background: #dbeafe;
  padding: 0.25rem 0.55rem;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 800;
}
.f05-wallet-charge-list-time { color: #64748b; font-size: 0.82rem; }
.f05-wallet-charge-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.f05-wallet-charge-detail-grid > div {
  border-radius: 0.65rem;
  background: #f8fafc;
  padding: 0.75rem;
}
.f05-wallet-charge-detail-grid dt { color: #64748b; font-size: 0.72rem; font-weight: 800; }
.f05-wallet-charge-detail-grid dd { margin: 0.3rem 0 0; overflow-wrap: anywhere; font-weight: 750; }
.f05-wallet-charge-state-guidance {
  margin: 1rem 0 0;
  border-radius: 0.65rem;
  background: #ecfdf5;
  padding: 0.8rem;
  color: #065f46;
  font-size: 0.86rem;
}
@media (max-width: 720px) {
  .f05-wallet-charge-heading,
  .f05-wallet-charge-section-heading,
  .f05-wallet-charge-sandbox-notice { display: grid; }
  .f05-wallet-charge-heading > a,
  .f05-wallet-charge-section-heading button { width: 100%; text-align: center; }
  .f05-wallet-charge-list-item { grid-template-columns: 1fr; }
}

/* FG3-F04 customer virtual account: additive, self-hosted selectors only. */
body.f04-virtual-account-secure-page {
  min-height: 100vh;
  margin: 0;
  background: #f1f5f9;
  color: #1e293b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.f04-virtual-account-secure-page * { box-sizing: border-box; }
body.f04-virtual-account-secure-page .hidden { display: none !important; }
body.f04-virtual-account-secure-page header {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.25);
}
body.f04-virtual-account-secure-page header > div,
body.f04-virtual-account-secure-page main {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}
body.f04-virtual-account-secure-page header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
}
body.f04-virtual-account-secure-page header a { color: inherit; text-decoration: none; }
body.f04-virtual-account-secure-page main { padding-block: 1.5rem; }
body.f04-virtual-account-secure-page button,
body.f04-virtual-account-secure-page select,
body.f04-virtual-account-secure-page .f04-virtual-account-heading > a {
  max-width: 100%;
  border: 1px solid #94a3b8;
  border-radius: 0.6rem;
  background: #fff;
  color: #1e293b;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-weight: 700;
}
body.f04-virtual-account-secure-page button { cursor: pointer; }
body.f04-virtual-account-secure-page button:disabled,
body.f04-virtual-account-secure-page select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
body.f04-virtual-account-secure-page button:focus-visible,
body.f04-virtual-account-secure-page select:focus-visible,
body.f04-virtual-account-secure-page a:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
.f04-virtual-account-heading,
.f04-virtual-account-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.f04-virtual-account-heading h1,
.f04-virtual-account-section-heading h2,
.f04-virtual-account-instructions h3 { margin: 0; }
.f04-virtual-account-heading h1 { font-size: 1.7rem; }
.f04-virtual-account-heading p,
.f04-virtual-account-section-heading p { margin: 0.35rem 0 0; color: #64748b; }
.f04-virtual-account-eyebrow {
  color: #475569 !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.f04-virtual-account-heading > a { text-decoration: none; }
.f04-virtual-account-sandbox-notice,
.f04-virtual-account-notice,
.f04-virtual-account-panel {
  margin-top: 1rem;
  border-radius: 0.85rem;
  padding: 1rem;
}
.f04-virtual-account-sandbox-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.f04-virtual-account-notice,
.f04-virtual-account-panel { border: 1px solid #cbd5e1; background: #fff; }
.f04-virtual-account-notice-warn { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.f04-virtual-account-notice-error { border-color: #fda4af; background: #fff1f2; color: #9f1239; }
.f04-virtual-account-notice button,
.f04-virtual-account-inline-state button { margin-left: 0.6rem; }
.f04-virtual-account-inline-state {
  margin-top: 1rem;
  border-radius: 0.65rem;
  padding: 0.8rem;
  background: #f8fafc;
  color: #475569;
}
.f04-virtual-account-panel #va-bank-fieldset { margin-top: 1rem; }
.f04-virtual-account-panel #va-bank-fieldset label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 750;
}
.f04-virtual-account-panel #va-bank-select { width: min(100%, 28rem); }
.f04-virtual-account-capability-context { min-height: 1.25rem; margin: 0.6rem 0; color: #64748b; font-size: 0.78rem; }
.f04-virtual-account-primary { border-color: #1d4ed8 !important; background: #1d4ed8 !important; color: #fff !important; }
.f04-virtual-account-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.f04-virtual-account-detail-grid > div {
  border-radius: 0.65rem;
  background: #f8fafc;
  padding: 0.75rem;
}
.f04-virtual-account-detail-grid dt,
.f04-virtual-account-instructions dt { color: #64748b; font-size: 0.72rem; font-weight: 800; }
.f04-virtual-account-detail-grid dd,
.f04-virtual-account-instructions dd { margin: 0.3rem 0 0; overflow-wrap: anywhere; font-weight: 750; }
.f04-virtual-account-instructions {
  margin-top: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  background: #eff6ff;
  padding: 1rem;
}
.f04-virtual-account-instructions dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}
.f04-virtual-account-sensitive-boundary,
.f04-virtual-account-state-guidance {
  margin: 1rem 0 0;
  border-radius: 0.65rem;
  padding: 0.8rem;
  font-size: 0.86rem;
}
.f04-virtual-account-sensitive-boundary { background: #ecfdf5; color: #065f46; }
.f04-virtual-account-state-guidance { background: #f8fafc; color: #334155; }
@media (max-width: 560px) {
  .f04-virtual-account-sandbox-notice { display: grid; }
  .f04-virtual-account-heading > a,
  .f04-virtual-account-section-heading button,
  .f04-virtual-account-primary { width: 100%; text-align: center; }
}

/* FG3-F03 owner payment cancellation/refund: additive, self-hosted selectors only. */
 body.f03-cancellation-refund-secure-page {
  min-height: 100vh;
  margin: 0;
  background: #f1f5f9;
  color: #172033;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.f03-cancellation-refund-secure-page * { box-sizing: border-box; }
body.f03-cancellation-refund-secure-page .hidden { display: none !important; }
 body.f03-cancellation-refund-secure-page header {
  background: #243b6b;
  color: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.24);
}
body.f03-cancellation-refund-secure-page header > div,
 body.f03-cancellation-refund-secure-page main {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}
 body.f03-cancellation-refund-secure-page header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
}
body.f03-cancellation-refund-secure-page header a { color: inherit; text-decoration: none; }
body.f03-cancellation-refund-secure-page main { padding-block: 1.5rem; }
body.f03-cancellation-refund-secure-page button,
body.f03-cancellation-refund-secure-page input,
 body.f03-cancellation-refund-secure-page .f03-cancellation-refund-heading > a {
  max-width: 100%;
  border: 1px solid #94a3b8;
  border-radius: 0.6rem;
  background: #fff;
  color: #172033;
  padding: 0.65rem 0.8rem;
  font: inherit;
}
body.f03-cancellation-refund-secure-page button,
 body.f03-cancellation-refund-secure-page .f03-cancellation-refund-heading > a {
  font-weight: 750;
}
body.f03-cancellation-refund-secure-page button { cursor: pointer; }
body.f03-cancellation-refund-secure-page button:disabled,
 body.f03-cancellation-refund-secure-page input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
body.f03-cancellation-refund-secure-page button:focus-visible,
body.f03-cancellation-refund-secure-page input:focus-visible,
body.f03-cancellation-refund-secure-page a:focus-visible,
 body.f03-cancellation-refund-secure-page dialog:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
.f03-cancellation-refund-heading,
 .f03-cancellation-refund-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.f03-cancellation-refund-heading h1,
.f03-cancellation-refund-section-heading h2,
.f03-cancellation-refund-actions h3 { margin: 0; }
.f03-cancellation-refund-heading h1 { font-size: 1.75rem; }
.f03-cancellation-refund-heading p,
.f03-cancellation-refund-section-heading p { margin: 0.35rem 0 0; color: #64748b; }
 .f03-cancellation-refund-eyebrow {
  color: #1d4ed8 !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.f03-cancellation-refund-heading > a { text-decoration: none; }
.f03-cancellation-refund-sandbox-notice,
.f03-cancellation-refund-notice,
 .f03-cancellation-refund-panel {
  margin-top: 1rem;
  border-radius: 0.85rem;
  padding: 1rem;
}
 .f03-cancellation-refund-sandbox-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.f03-cancellation-refund-notice,
.f03-cancellation-refund-panel { border: 1px solid #cbd5e1; background: #fff; }
.f03-cancellation-refund-notice-warn { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.f03-cancellation-refund-notice-error { border-color: #fda4af; background: #fff1f2; color: #9f1239; }
.f03-cancellation-refund-notice button { margin-left: 0.6rem; }
.f03-cancellation-refund-detail-grid,
 .f03-cancellation-refund-confirm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.f03-cancellation-refund-detail-grid > div,
 .f03-cancellation-refund-confirm-grid > div {
  border-radius: 0.65rem;
  background: #f8fafc;
  padding: 0.75rem;
}
.f03-cancellation-refund-detail-grid dt,
 .f03-cancellation-refund-confirm-grid dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}
.f03-cancellation-refund-detail-grid dd,
 .f03-cancellation-refund-confirm-grid dd {
  margin: 0.3rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}
 .f03-cancellation-refund-actions {
  margin-top: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}
.f03-cancellation-refund-actions > p { color: #64748b; }
 .f03-cancellation-refund-partial-field {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) auto;
  align-items: end;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
}
.f03-cancellation-refund-partial-field label,
.f03-cancellation-refund-partial-field input,
.f03-cancellation-refund-field-error { grid-column: 1; }
.f03-cancellation-refund-partial-field label { font-size: 0.85rem; font-weight: 750; }
.f03-cancellation-refund-field-error { margin: 0; color: #be123c; font-size: 0.82rem; }
 .f03-cancellation-refund-primary {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
  color: #fff !important;
}
.f03-cancellation-refund-inline-state,
 .f03-cancellation-refund-state-guidance {
  margin-top: 1rem;
  border-radius: 0.65rem;
  padding: 0.8rem;
  background: #f8fafc;
  color: #334155;
}
.f03-cancellation-refund-state-guidance { border-left: 4px solid #2563eb; }
 .f03-cancellation-refund-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
 .f03-cancellation-refund-list-item {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  padding: 0.75rem;
}
.f03-cancellation-refund-list-summary { font-weight: 800; }
 .f03-cancellation-refund-list-state {
  border-radius: 999px;
  background: #dbeafe;
  padding: 0.25rem 0.55rem;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 800;
}
.f03-cancellation-refund-list-time { color: #64748b; font-size: 0.82rem; }
 body.f03-cancellation-refund-secure-page dialog {
  width: min(100% - 2rem, 34rem);
  border: 1px solid #94a3b8;
  border-radius: 0.85rem;
  padding: 1.1rem;
  color: #172033;
}
body.f03-cancellation-refund-secure-page dialog::backdrop { background: rgb(15 23 42 / 0.55); }
 .f03-cancellation-refund-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 680px) {
  .f03-cancellation-refund-sandbox-notice,
  .f03-cancellation-refund-partial-field,
  .f03-cancellation-refund-list-item { display: grid; grid-template-columns: 1fr; }
  .f03-cancellation-refund-heading > a,
  .f03-cancellation-refund-section-heading button,
  .f03-cancellation-refund-actions > button,
  .f03-cancellation-refund-partial-field button { width: 100%; text-align: center; }
  .f03-cancellation-refund-partial-field button { grid-column: 1; }
}
/* END FG3-F03 owner payment cancellation/refund. */
/* END FG3-F03 owner payment cancellation/refund. */

/* FG3-F06 local withdrawal workflow: masked owner and operations surfaces. */
body.f06-withdrawal-secure-page {
  min-height: 100vh;
  margin: 0;
  background: #f1f5f9;
  color: #172033;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.f06-withdrawal-secure-page * { box-sizing: border-box; }
body.f06-withdrawal-secure-page .hidden { display: none !important; }
body.f06-withdrawal-secure-page > header {
  background: #1e3a5f;
  color: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.25);
}
body.f06-withdrawal-secure-page > header > div,
body.f06-withdrawal-secure-page > main {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}
body.f06-withdrawal-secure-page > header > div {
  display: flex;
  min-height: 3.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
body.f06-withdrawal-secure-page > header a { color: inherit; text-decoration: none; }
body.f06-withdrawal-secure-page > main { padding-block: 1.5rem; }
body.f06-withdrawal-secure-page button,
body.f06-withdrawal-secure-page input,
body.f06-withdrawal-secure-page select,
.f06-withdrawal-view-nav a {
  max-width: 100%;
  min-height: 2.6rem;
  border: 1px solid #94a3b8;
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.6rem 0.8rem;
  color: #172033;
  font: inherit;
}
body.f06-withdrawal-secure-page button,
.f06-withdrawal-view-nav a { cursor: pointer; font-weight: 750; }
body.f06-withdrawal-secure-page button:disabled,
body.f06-withdrawal-secure-page input:disabled,
body.f06-withdrawal-secure-page select:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
body.f06-withdrawal-secure-page button:focus-visible,
body.f06-withdrawal-secure-page input:focus-visible,
body.f06-withdrawal-secure-page select:focus-visible,
body.f06-withdrawal-secure-page a:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
.f06-withdrawal-heading,
.f06-withdrawal-section-heading,
.f06-withdrawal-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.f06-withdrawal-heading h1,
.f06-withdrawal-section-heading h2,
#withdrawal-owner-detail h3 { margin: 0; }
.f06-withdrawal-heading h1 { font-size: 1.8rem; }
.f06-withdrawal-heading p,
.f06-withdrawal-section-heading p { margin: 0.35rem 0 0; color: #64748b; }
.f06-withdrawal-eyebrow {
  color: #1d4ed8 !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.f06-withdrawal-view-nav { display: flex; gap: 0.5rem; }
.f06-withdrawal-view-nav a { text-decoration: none; }
.f06-withdrawal-view-nav a[aria-current="page"] {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}
.f06-withdrawal-boundary,
.f06-withdrawal-notice,
.f06-withdrawal-panel {
  margin-top: 1rem;
  border-radius: 0.85rem;
  padding: 1rem;
}
.f06-withdrawal-boundary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.f06-withdrawal-notice,
.f06-withdrawal-panel { border: 1px solid #cbd5e1; background: #fff; }
.f06-withdrawal-notice-warn { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.f06-withdrawal-notice-error { border-color: #fda4af; background: #fff1f2; color: #9f1239; }
.f06-withdrawal-notice-unknown { border-color: #a78bfa; background: #f5f3ff; color: #5b21b6; }
.f06-withdrawal-notice button { margin-left: 0.6rem; }
.f06-withdrawal-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.f06-withdrawal-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
.f06-withdrawal-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 750;
}
.f06-withdrawal-form input,
.f06-withdrawal-form select { width: 100%; font-weight: 500; }
#withdrawal-ops-recovery-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}
#withdrawal-ops-recovery-confirmation {
  width: 1.1rem;
  min-height: 1.1rem;
  margin: 0.15rem 0 0;
}
.f06-withdrawal-primary {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
  color: #fff !important;
}
.f06-withdrawal-secret { font-family: inherit; }
.f06-withdrawal-field-error { margin: 0; color: #be123c; font-size: 0.82rem; }
.f06-withdrawal-safe-summary,
.f06-withdrawal-inline-state {
  margin: 0.8rem 0 0;
  border-radius: 0.65rem;
  background: #f8fafc;
  padding: 0.75rem;
  color: #475569;
  overflow-wrap: anywhere;
}
.f06-withdrawal-safe-summary { font-size: 0.84rem; }
.f06-withdrawal-list,
.f06-withdrawal-history {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.f06-withdrawal-list-item {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto auto auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  padding: 0.75rem;
}
.f06-withdrawal-list-summary { font-weight: 800; overflow-wrap: anywhere; }
.f06-withdrawal-state {
  border-radius: 999px;
  background: #dbeafe;
  padding: 0.25rem 0.55rem;
  color: #1e40af;
  font-size: 0.76rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.f06-withdrawal-list-time { color: #64748b; font-size: 0.8rem; }
.f06-withdrawal-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.f06-withdrawal-detail-grid > div,
.f06-withdrawal-history-item {
  border-radius: 0.65rem;
  background: #f8fafc;
  padding: 0.75rem;
}
.f06-withdrawal-detail-grid dt { color: #64748b; font-size: 0.72rem; font-weight: 850; }
.f06-withdrawal-detail-grid dd { margin: 0.3rem 0 0; overflow-wrap: anywhere; font-weight: 750; }
.f06-withdrawal-actions { align-items: center; border-top: 1px solid #e2e8f0; padding-top: 1rem; }
.f06-withdrawal-actions p { margin: 0; color: #475569; overflow-wrap: anywhere; }
.f06-withdrawal-history-item { border-left: 4px solid #2563eb; }
.f06-withdrawal-history-item strong,
.f06-withdrawal-history-item span { display: block; }
.f06-withdrawal-history-item span { margin-top: 0.25rem; color: #64748b; font-size: 0.8rem; }
@media (max-width: 820px) {
  .f06-withdrawal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .f06-withdrawal-heading,
  .f06-withdrawal-section-heading,
  .f06-withdrawal-boundary,
  .f06-withdrawal-list-item { display: grid; grid-template-columns: 1fr; }
  .f06-withdrawal-view-nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .f06-withdrawal-view-nav a,
  .f06-withdrawal-section-heading button,
  .f06-withdrawal-actions button { width: 100%; text-align: center; }
}
/* END FG3-F06 local withdrawal workflow. */

/* FG3-F07 local payment reconciliation operations. */
body.f07-reconciliation-secure-page {
  min-height: 100vh;
  margin: 0;
  background: #eef2f7;
  color: #172033;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.f07-reconciliation-secure-page * { box-sizing: border-box; }
body.f07-reconciliation-secure-page .hidden { display: none !important; }
body.f07-reconciliation-secure-page > header { background: #17324d; color: #fff; }
body.f07-reconciliation-secure-page > header > div,
body.f07-reconciliation-secure-page > main { width: min(100% - 2rem, 78rem); margin-inline: auto; }
body.f07-reconciliation-secure-page > main { padding-block: 1.5rem; }
body.f07-reconciliation-secure-page button,
body.f07-reconciliation-secure-page input,
body.f07-reconciliation-secure-page select {
  min-height: 2.6rem;
  max-width: 100%;
  border: 1px solid #94a3b8;
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.55rem 0.75rem;
  color: #172033;
  font: inherit;
}
body.f07-reconciliation-secure-page button { cursor: pointer; font-weight: 750; }
body.f07-reconciliation-secure-page button:disabled,
body.f07-reconciliation-secure-page input:disabled,
body.f07-reconciliation-secure-page select:disabled { cursor: not-allowed; opacity: 0.52; }
body.f07-reconciliation-secure-page :is(button, input, select, a):focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
.f07-reconciliation-heading,
.f07-reconciliation-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.f07-reconciliation-heading { align-items: start; }
.f07-reconciliation-heading h1,
.f07-reconciliation-panel h2 { margin: 0; }
.f07-reconciliation-heading p,
.f07-reconciliation-panel > p { color: #64748b; }
.f07-reconciliation-eyebrow { color: #1d4ed8 !important; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; }
.f07-reconciliation-boundary,
.f07-reconciliation-notice,
.f07-reconciliation-panel { margin-top: 1rem; border-radius: 0.8rem; padding: 1rem; }
.f07-reconciliation-boundary { display: flex; gap: 0.75rem; border: 1px solid #d97706; background: #fffbeb; color: #92400e; }
.f07-reconciliation-notice,
.f07-reconciliation-panel { border: 1px solid #cbd5e1; background: #fff; }
.f07-reconciliation-error { border-color: #fda4af; background: #fff1f2; color: #9f1239; }
.f07-reconciliation-form,
.f07-reconciliation-fields { display: grid; gap: 0.75rem; }
.f07-reconciliation-form { margin-top: 1rem; }
.f07-reconciliation-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f07-reconciliation-form label { display: grid; gap: 0.3rem; font-size: 0.84rem; font-weight: 750; }
.f07-reconciliation-form input,
.f07-reconciliation-form select { width: 100%; font-weight: 500; }
.f07-reconciliation-primary { border-color: #1d4ed8 !important; background: #1d4ed8 !important; color: #fff !important; }
.f07-reconciliation-secret { font-family: inherit; }
.f07-reconciliation-field-error { margin: 0; color: #be123c; font-size: 0.82rem; }
.f07-reconciliation-inline { margin-top: 0.75rem; border-radius: 0.6rem; background: #f8fafc; padding: 0.7rem; color: #475569; }
.f07-reconciliation-list { display: grid; gap: 0.65rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.f07-reconciliation-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.65rem; padding: 0.75rem; }
.f07-reconciliation-list-summary { min-width: 0; overflow-wrap: anywhere; }
.f07-reconciliation-list-summary strong,
.f07-reconciliation-list-summary span { display: block; }
.f07-reconciliation-list-summary span { margin-top: 0.2rem; color: #64748b; font-size: 0.78rem; }
.f07-reconciliation-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.7rem; }
.f07-reconciliation-detail-grid > div { border-radius: 0.6rem; background: #f8fafc; padding: 0.7rem; }
.f07-reconciliation-detail-grid dt { color: #64748b; font-size: 0.72rem; font-weight: 800; }
.f07-reconciliation-detail-grid dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; font-weight: 700; }
@media (max-width: 760px) {
  .f07-reconciliation-heading,
  .f07-reconciliation-layout,
  .f07-reconciliation-fields { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .f07-reconciliation-boundary,
  .f07-reconciliation-list-item { display: grid; grid-template-columns: 1fr; }
  .f07-reconciliation-heading button,
  .f07-reconciliation-list-item button { width: 100%; }
}
/* END FG3-F07 local payment reconciliation operations. */

/* Part 5 — Customer Web workspace polish. Feature-scoped to protect Driver/Admin. */
.j365-customer-workspace .app-main { max-width: 94rem; }
.j365-customer-workspace .j365-role-layout {
  grid-template-columns: 12.75rem minmax(0, 1fr);
  gap: 1rem;
}
.j365-customer-workspace .j365-role-sidebar { padding: 0.6rem; }
.j365-customer-workspace .j365-customer-page-heading { margin-bottom: 0.85rem; }
.j365-customer-workspace .j365-customer-hero {
  border-color: #dbe5f2 !important;
  padding: 1rem 1.15rem !important;
}
.j365-customer-workspace .j365-customer-hero .j365-section-heading { align-items: center; }
.j365-customer-workspace .j365-customer-hero .j365-eyebrow { margin-bottom: 0.2rem !important; }
.j365-customer-workspace .j365-customer-hero h2 { font-size: 1rem; }
.j365-customer-workspace .j365-customer-orders-panel { margin-top: 0.9rem !important; padding: 1.15rem !important; }
.j365-customer-orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18.5rem, 20.5rem);
  align-items: start;
  gap: 1rem;
}
.j365-order-discovery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.j365-timeline-toolbar {
  display: grid;
  grid-template-columns: minmax(13rem, 1.5fr) repeat(2, minmax(7.5rem, 0.65fr));
  gap: 0.55rem;
  border: 1px solid #dfe7f1;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.7rem;
}
.j365-timeline-toolbar label {
  display: grid;
  min-width: 0;
  gap: 0.28rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 780;
}
.j365-timeline-toolbar label > span { padding-left: 0.1rem; }
.j365-timeline-toolbar :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  font-size: 0.8rem;
  font-weight: 520;
}
.j365-timeline-search-field { grid-column: span 1; }
.j365-timeline-actions {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(9rem, 1.2fr);
  gap: 0.5rem;
}
.j365-timeline-actions > * { width: 100%; }
.j365-order-list {
  display: grid;
  gap: 0;
  max-height: 31rem;
  margin: 0.55rem 0 0;
  padding: 0;
  overflow: auto;
  border-block: 1px solid #e2e8f0;
  list-style: none;
  scrollbar-gutter: stable;
}
.j365-order-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(10rem, 1.35fr) minmax(6.5rem, auto) minmax(5.5rem, auto);
  align-items: center;
  gap: 0.75rem;
  min-height: 3.7rem;
  border-bottom: 1px solid #e7edf4;
  background: #fff;
  padding: 0.6rem 0.35rem;
}
.j365-order-row:last-child { border-bottom: 0; }
.j365-order-row:hover { background: #f8fbff; }
.j365-order-row.is-selected { background: #eff6ff; box-shadow: inset 3px 0 #2563eb; }
.j365-order-identity,
.j365-order-site { min-width: 0; }
.j365-order-identity strong,
.j365-order-site strong { color: #22324a; font-weight: 820; }
.j365-order-identity span { margin-left: 0.35rem; color: #334155; font-weight: 720; }
.j365-order-identity small { display: block; margin-top: 0.15rem; color: #64748b; font-size: 0.75rem; }
.j365-order-site strong,
.j365-order-site span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j365-order-site span { margin-top: 0.15rem; color: #64748b; font-size: 0.75rem; }
.j365-order-amount { color: #334155; font-size: 0.78rem; font-weight: 760; white-space: nowrap; }
.j365-order-state { display: grid; justify-items: end; gap: 0.25rem; }
.j365-order-state .timeline-order-select { color: #1d4ed8; font-size: 0.72rem; font-weight: 760; text-decoration: underline; text-underline-offset: 0.18rem; }
.j365-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.48rem;
  font-size: 0.75rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}
.j365-order-pager { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.75rem; }
.j365-order-pager .j365-btn-secondary { min-height: 2rem; padding: 0.35rem 0.7rem; }
.j365-order-actions {
  border: 1px solid #dce5ef;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem;
  font-size: 0.78rem;
}
.j365-order-actions[data-selected="false"] { border-style: dashed; padding-block: 0.65rem; }
.j365-order-actions[data-selected="false"] .j365-order-action-buttons { display: none; }
.j365-selection-label {
  display: inline-block;
  margin-right: 0.45rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.j365-order-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}
.j365-order-action-buttons button {
  min-height: 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.35rem 0.7rem;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 740;
}
.j365-order-action-buttons button:not(:disabled):hover { border-color: #2563eb; color: #1d4ed8; }
.j365-order-action-buttons .j365-action-danger:not(:disabled) { border-color: #fecdd3; color: #be123c; }
.j365-customer-calendar { position: sticky; top: 5.2rem; }
.j365-customer-calendar .cal-cell {
  min-height: 2.75rem;
  border-color: #dbe3ee;
  background: #fff;
}
.j365-customer-calendar .cal-cell[aria-selected="true"] { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px rgb(37 99 235 / 0.12); }
.j365-customer-calendar :is(#c-cal-prev, #c-cal-next, #c-cal-reload) { min-height: 2rem; border: 1px solid #e2e8f0; }

.j365-customer-create-form .j365-form-intro { margin-top: 0.25rem; color: #64748b; font-size: 0.76rem; }
.j365-form-section-heading {
  margin: 0.35rem 0 -0.35rem;
  border-top: 1px solid #e5ebf3;
  padding-top: 0.85rem;
  color: #20324b;
  font-size: 0.82rem;
  font-weight: 850;
}
.j365-field-heading { display: block; color: #20324b; font-weight: 800; }
.j365-create-actions { align-items: stretch; }
.j365-create-actions #btn-submit { flex: 1.5; }
.j365-create-actions #btn-draft { flex: 0.8; border: 1px solid #cbd5e1; }

#customer-profile .j365-member-profile { margin-top: 0 !important; padding: 1.15rem; }
#customer-profile .j365-profile-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
#customer-profile .j365-profile-group {
  border: 1px solid #e1e8f1;
  border-radius: 0.8rem;
  background: #fbfcfe;
  padding: 0.9rem;
}
#customer-profile .j365-profile-group > legend { padding-inline: 0.35rem; color: #20324b; font-size: 0.78rem; font-weight: 850; }
#customer-profile .j365-profile-fields label { color: #52657d; font-size: 0.75rem; font-weight: 740; }
#customer-profile .j365-profile-fields :is(input, select) { min-height: 2.45rem; color: #172033; font-size: 0.82rem; font-weight: 520; }
#customer-profile .j365-profile-fields :is(input, select):disabled { color: #64748b; }
#customer-profile .j365-profile-consent { background: #fbfcfe; }
#customer-profile .j365-profile-status { border-radius: 0.8rem; background: #f1f5f9; padding: 0.9rem; }
#customer-profile .j365-profile-status h3 { margin: 0 0 0.65rem; color: #20324b; font-size: 0.78rem; font-weight: 850; }
#customer-profile .j365-profile-status dt { color: #64748b; font-size: 0.75rem; }
#customer-profile .j365-profile-status dd { color: #22324a; font-size: 0.78rem; font-weight: 760; }
#customer-profile .j365-profile-actions { justify-content: flex-end; }
#customer-profile .j365-profile-actions button { min-width: 10rem; padding-inline: 1.25rem; }

.j365-customer-support-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr); gap: 1rem; align-items: start; }
.j365-support-side { display: contents; }
.j365-support-side .j365-support-panel:last-child { grid-column: 1 / -1; }
.j365-support-side .j365-support-panel:last-child #faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.j365-support-panel { background: #fbfcfe; }
#customer-support #notice-list { max-height: 34rem; overflow: auto; padding-right: 0.2rem; scrollbar-gutter: stable; }
.j365-support-row { border-bottom: 1px solid #e5ebf3; }
.j365-support-row:first-child { border-top: 1px solid #e5ebf3; }
.j365-support-row summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
  list-style: none;
}
.j365-support-row summary::-webkit-details-marker { display: none; }
.j365-support-row-main { display: grid; min-width: 0; gap: 0.18rem; }
.j365-support-row-main strong { color: #22324a; font-size: 0.82rem; }
.j365-support-row-main > span { overflow: hidden; color: #64748b; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.j365-support-row-main time { color: #64748b; font-size: 0.75rem; }
.j365-support-affordances { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.35rem; white-space: nowrap; }
.j365-support-disclosure { flex: 0 0 auto; color: #2563eb; font-size: 0.75rem; font-weight: 760; white-space: nowrap; }
.j365-support-detail { border-top: 1px solid #e5ebf3; background: #fff; padding: 0.75rem; color: #52657d; font-size: 0.76rem; }

@media (max-width: 1180px) {
  .j365-customer-workspace .j365-role-layout { grid-template-columns: 1fr; }
  .j365-customer-workspace .j365-role-sidebar {
    position: sticky;
    z-index: 25;
    top: 4rem;
    max-height: none;
  }
  .j365-customer-workspace .j365-role-sidebar-label { display: none; }
  .j365-customer-workspace .j365-role-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .j365-customer-workspace .j365-role-nav a { width: auto; justify-content: center; }
  .j365-customer-workspace .j365-nav-icon { display: none; }
}

@media (max-width: 980px) {
  .j365-customer-orders-layout { grid-template-columns: 1fr; }
  .j365-customer-calendar { position: static; }
  .j365-customer-support-layout { grid-template-columns: 1fr; }
  .j365-support-side { display: grid; gap: 1rem; }
  .j365-support-side .j365-support-panel:last-child { grid-column: auto; }
  .j365-support-side .j365-support-panel:last-child #faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .j365-customer-workspace .app-shell-bar { padding-inline: 0.75rem; }
  .j365-customer-workspace #session-dashboard span:last-child { display: none; }
  .j365-customer-workspace #session-dashboard span:first-child { display: inline; }
  .j365-customer-workspace #session-label { display: none; }
  .j365-customer-workspace .app-session-chip { padding-left: 0.25rem !important; }
  .j365-customer-workspace .j365-role-sidebar { top: 3.65rem; overflow: visible; padding: 0.35rem; }
  .j365-customer-workspace .j365-anchor-section { scroll-margin-top: 9rem; }
  .j365-customer-workspace .j365-role-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.2rem; min-width: 0; }
  .j365-customer-workspace .j365-role-nav a {
    min-width: 0;
    min-height: 2.15rem;
    justify-content: center;
    padding: 0.4rem 0.25rem;
    font-size: 0.72rem;
    text-align: center;
    white-space: normal;
  }
  .j365-customer-workspace .j365-customer-page-heading { gap: 0.65rem; }
  .j365-customer-workspace .j365-heading-actions { grid-template-columns: minmax(0, 1fr) auto; }
  .j365-customer-workspace .j365-customer-hero .j365-section-heading { display: flex; }
  .j365-customer-workspace .j365-customer-hero .j365-result-count { display: none; }
  .j365-customer-workspace .j365-customer-orders-panel { padding: 0.85rem !important; }
  .j365-timeline-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.6rem; }
  .j365-timeline-search-field { grid-column: 1 / -1; }
  .j365-timeline-actions { grid-column: 1 / -1; }
  .j365-order-list { max-height: 30rem; }
  .j365-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.65rem;
    padding: 0.65rem 0.2rem;
  }
  .j365-order-site { grid-column: 1; }
  .j365-order-amount { grid-column: 1; }
  .j365-order-state { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .j365-order-action-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j365-order-action-buttons button { width: 100%; }
  .j365-customer-calendar { padding: 0.75rem !important; }
  .j365-customer-create-form { padding: 1rem !important; }
  #customer-create { grid-template-columns: 1fr; }
  #customer-create .j365-contact-grid { grid-template-columns: 1fr; }
  #customer-create #reserved-fields { grid-template-columns: 1fr 1fr; }
  #customer-create #reserved-fields > :first-child { grid-column: 1 / -1; }
  .j365-create-actions { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); }
  #customer-profile .j365-member-profile { padding: 1rem; }
  #customer-profile .j365-profile-fields { grid-template-columns: 1fr; }
  #customer-profile .j365-profile-fields .sm\:col-span-2 { grid-column: auto; }
  #customer-profile .j365-profile-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
  #customer-profile .j365-profile-actions button { min-width: 0; width: 100%; }
  #customer-support { padding: 1rem !important; }
}

@media (max-width: 430px) {
  .j365-customer-workspace .app-brand-mark { width: 1.9rem; height: 1.9rem; }
  .j365-customer-workspace #session-dashboard { padding-inline: 0.55rem; }
  .j365-customer-workspace #session-logout { min-height: 1.85rem; padding-inline: 0.55rem; }
  .j365-customer-workspace .j365-page-heading h1 { font-size: 1.35rem; }
  .j365-customer-workspace .j365-page-heading p:not(.j365-eyebrow) { font-size: 0.76rem; }
  .j365-customer-workspace .j365-customer-hero { padding: 0.8rem !important; }
  .j365-customer-workspace .j365-customer-hero h2 { font-size: 0.9rem; }
  .j365-customer-workspace .j365-customer-hero p:not(.j365-eyebrow) { display: none; }
  .j365-customer-workspace .j365-customer-hero .j365-btn-primary { min-height: 2.2rem; padding: 0.45rem 0.65rem; white-space: nowrap; }
  .j365-order-discovery-heading { align-items: flex-end; }
  .j365-order-discovery-heading h3 { font-size: 0.78rem; }
  .j365-result-count { padding: 0.3rem 0.5rem; font-size: 0.75rem; }
  .j365-timeline-toolbar { gap: 0.45rem; }
  .j365-timeline-toolbar :is(input, select) { font-size: 0.78rem; }
  .j365-order-row { min-height: 4.6rem; }
  .j365-order-site strong { max-width: 13rem; }
  .j365-order-identity span { margin-left: 0.25rem; }
  .j365-customer-calendar .cal-cell { min-height: 2.65rem; padding: 0.2rem !important; }
  .j365-customer-calendar #c-cal-reload { font-size: 0; }
  .j365-customer-calendar #c-cal-reload::after { content: "새로고침"; font-size: 0.75rem; }
  #customer-create .grid.grid-cols-2:not(#reserved-fields) { grid-template-columns: 1fr; }
  .j365-create-actions { grid-template-columns: 1fr; }
  .j365-support-panel { padding: 0.8rem !important; }
  #customer-support [role="search"] { display: grid; grid-template-columns: 1fr auto auto; }
}

/* Final UX polish Part 7: Admin operational console. */
.j365-admin-workspace .j365-admin-layout { grid-template-columns: 13.5rem minmax(0, 1fr); gap: 1.1rem; }
.j365-admin-workspace .j365-role-content { max-width: 100%; }
.j365-admin-workspace .admin-panel { min-width: 0; }
.j365-admin-workspace .j365-panel-heading { align-items: end; }
.j365-admin-heading-actions { max-width: 30rem; }
.j365-admin-attention-heading,
.j365-admin-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.j365-admin-attention-heading h3 { margin: 0; color: #172033; font-size: 1.05rem; }
.j365-admin-state-badge,
.j365-admin-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #eef2f7;
  padding: 0.25rem 0.55rem;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.j365-admin-state-badge[data-state="normal"] { background: #dcfce7; color: #047857; }
.j365-admin-state-badge[data-state="attention"] { background: #fff7ed; color: #c2410c; }
.j365-admin-state-badge[data-state="error"] { background: #fff1f2; color: #be123c; }
.j365-admin-attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.j365-admin-attention-grid > div {
  display: grid;
  gap: 0.15rem;
  min-height: 4.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.72rem;
  background: #f8fafc;
  padding: 0.65rem 0.75rem;
}
.j365-admin-attention-grid > div[data-state="attention"] { border-color: #fed7aa; background: #fffaf5; }
.j365-admin-attention-grid > div[data-state="warning"],
.j365-admin-attention-grid > div[data-state="error"] { border-color: #fecdd3; background: #fff8f8; }
.j365-admin-attention-grid span { color: #64748b; font-size: 0.75rem; font-weight: 750; }
.j365-admin-attention-grid strong { color: #172033; font-size: 1.15rem; }
.j365-admin-attention-grid small { color: #64748b; font-size: 0.75rem; }
.j365-admin-kpi-grid > div { min-height: 5.35rem; padding: 0.8rem 0.9rem !important; }
.j365-admin-kpi-grid > div[data-tone="normal"] { border-left: 3px solid #2563eb !important; }
.j365-admin-kpi-grid > div[data-tone="commission"] { border-left: 3px solid #059669 !important; }
.j365-admin-kpi-grid .text-2xl { font-size: 1.4rem; line-height: 1.2; }
.j365-admin-stats-filter label,
.j365-admin-toolbar label { font-weight: 750; }
.j365-admin-toolbar {
  border: 1px solid #e2e8f0;
  border-radius: 0.78rem;
  background: #f8fafc;
  padding: 0.7rem;
}
.j365-admin-toolbar :is(input, select, button) { min-height: 2.5rem; }
.j365-admin-table-scroll {
  border-block: 1px solid #e2e8f0;
  scrollbar-color: #94a3b8 #f1f5f9;
}
.j365-admin-table { border-collapse: separate; border-spacing: 0; }
.j365-admin-order-table { min-width: 70rem; }
.j365-admin-table thead { position: sticky; z-index: 2; top: 0; }
.j365-admin-table th { height: 2.35rem; background: #f8fafc; font-weight: 800; }
.j365-admin-table td { vertical-align: middle; }
.j365-admin-table tbody tr { min-height: 3.5rem; }
.j365-admin-table td small,
.j365-admin-primary-cell { display: block; }
.j365-admin-table td small { margin-top: 0.2rem; color: #64748b; font-size: 0.75rem; }
.j365-admin-order-table .j365-admin-status[data-status="created"],
.j365-admin-order-table .j365-admin-status[data-status="hold"] { background: #fff7ed; color: #c2410c; }
.j365-admin-order-table .j365-admin-status[data-status="matched"],
.j365-admin-order-table .j365-admin-status[data-status="arrived"],
.j365-admin-order-table .j365-admin-status[data-status="working"] { background: #eff6ff; color: #1d4ed8; }
.j365-admin-order-table .j365-admin-status[data-status="completed"],
.j365-admin-order-table .j365-admin-status[data-status="settled"] { background: #ecfdf5; color: #047857; }
.j365-admin-order-table .j365-admin-status[data-status="cancelled"] { background: #f1f5f9; color: #64748b; }
.j365-admin-audit-row { position: relative; padding-left: 1rem; }
.j365-admin-audit-row::before {
  position: absolute;
  top: 1.1rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #60a5fa;
  content: "";
}
.j365-admin-technical { color: #64748b; }
.j365-admin-technical summary { width: fit-content; cursor: pointer; font-weight: 700; }
.j365-admin-technical code { display: block; margin-top: 0.35rem; overflow-wrap: anywhere; color: #64748b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.j365-dialog-panel {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.j365-admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.j365-admin-detail-grid > div { border: 1px solid #e2e8f0; border-radius: 0.65rem; background: #f8fafc; padding: 0.65rem 0.75rem; }
.j365-admin-detail-grid dt { color: #64748b; font-size: 0.75rem; font-weight: 800; }
.j365-admin-detail-grid dd { margin-top: 0.25rem; color: #26364d; font-size: 0.8rem; font-weight: 700; overflow-wrap: anywhere; }
.j365-admin-detail-grid .j365-admin-detail-wide { grid-column: 1 / -1; }
.j365-admin-danger-zone { border-top: 1px solid #fecdd3; background: linear-gradient(#fff, #fff8f8); padding: 0.9rem; }
.j365-admin-danger-zone > div:first-child p { margin-top: 0.2rem; color: #64748b; font-size: 0.72rem; }
.j365-admin-content-tabs { display: flex; gap: 0.4rem; }
.j365-admin-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.j365-admin-content-faq { grid-column: 1 / -1; }
.j365-admin-policy { border-left: 3px solid #60a5fa !important; }
.j365-admin-domain-page .app-main { max-width: 96rem; margin-inline: auto; }
.j365-admin-domain-page h1 { color: #12233f; letter-spacing: -0.035em; }
.j365-admin-domain-page h2 { color: #192a43; letter-spacing: -0.025em; }
.j365-admin-domain-page :is(input, select, textarea) { min-height: 2.55rem; }
.j365-admin-domain-page :is(button, a):focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.j365-admin-confirmation-note {
  display: grid;
  gap: 0.2rem;
  border: 1px solid #fed7aa;
  border-radius: 0.65rem;
  background: #fff7ed;
  padding: 0.7rem;
  color: #9a3412;
  font-size: 0.72rem;
}
.j365-admin-confirmation-note strong { font-size: 0.76rem; }
.j365-admin-ledger-filter form { align-items: end; }
.j365-admin-ledger-layout > section:last-child { position: sticky; top: 5rem; }
.j365-admin-risk-layout > section:first-child,
.j365-admin-restriction-create { position: sticky; top: 5rem; }

@media (max-width: 1100px) {
  .j365-admin-workspace .j365-admin-layout { grid-template-columns: minmax(0, 1fr); }
  /* The grouped menu survives: it becomes a drawer, not a wall of chips. */
  .j365-admin-workspace .j365-role-nav { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .j365-admin-workspace .j365-role-nav .j365-sidebar-group { display: flex; }
  .j365-admin-workspace .j365-sidebar-section { display: grid; }
  .j365-admin-workspace .j365-sidebar-items { display: grid; }
  .j365-admin-workspace .j365-sidebar-section.is-collapsed .j365-sidebar-items { display: none; }
  .j365-admin-workspace .j365-role-sidebar-label { display: block; }
  .j365-admin-workspace .j365-nav-icon { display: grid; }
  .j365-admin-workspace .j365-role-nav :is(a, button):not(.j365-sidebar-group) {
    width: 100%;
    white-space: normal;
    text-align: left;
  }
  .j365-admin-workspace .j365-admin-nav-toggle { display: inline-flex; }
  .j365-admin-workspace .j365-role-sidebar {
    position: fixed;
    z-index: 60;
    top: 0;
    left: 0;
    width: min(19rem, 86vw);
    max-height: 100dvh;
    height: 100dvh;
    overflow-y: auto;
    border-radius: 0;
    padding: 1rem 0.75rem;
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }
  .j365-admin-workspace.j365-admin-nav-open .j365-role-sidebar { transform: translateX(0); }
  .j365-admin-workspace.j365-admin-nav-open .j365-admin-nav-backdrop { display: block; }
  .j365-admin-ledger-layout > section:last-child,
  .j365-admin-risk-layout > section:first-child,
  .j365-admin-restriction-create { position: static; }
}

@media (max-width: 760px) {
  .j365-admin-content-grid { grid-template-columns: minmax(0, 1fr); }
  .j365-admin-content-faq { grid-column: auto; }
  .j365-admin-workspace .j365-page-heading { margin-bottom: 0.8rem; }
  .j365-admin-workspace .j365-page-heading h1 { font-size: 1.4rem; }
  .j365-admin-heading-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .j365-admin-heading-actions a { min-width: 0; padding-inline: 0.35rem; font-size: 0.75rem; text-align: center; }
  .j365-admin-workspace .j365-role-nav { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .j365-admin-workspace .j365-role-nav :is(a, button):not(.j365-sidebar-group) {
    display: flex;
    width: 100%;
    min-height: 2.55rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    text-align: left;
    white-space: normal;
  }
  .j365-admin-attention-grid { grid-template-columns: 1fr; }
  .j365-admin-attention-grid > div { grid-template-columns: minmax(0, 1fr) auto; min-height: 3.5rem; align-items: center; }
  .j365-admin-attention-grid > div small { grid-column: 1 / -1; }
  .j365-admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j365-admin-toolbar { grid-template-columns: 1fr !important; }
  .j365-admin-order-toolbar > div,
  .j365-admin-members > .flex.justify-end { display: grid; grid-template-columns: 1fr 1fr; }
  .j365-admin-table-scroll { overflow: visible; border: 0; }
  .j365-admin-member-table,
  .j365-admin-order-table { display: block; min-width: 0 !important; }
  .j365-admin-member-table thead,
  .j365-admin-order-table thead { display: none; }
  .j365-admin-member-table tbody,
  .j365-admin-order-table tbody { display: grid; gap: 0.55rem; }
  .j365-admin-member-table tbody tr,
  .j365-admin-order-table tbody tr { display: grid; border: 1px solid #dbe3ee; border-radius: 0.75rem; background: #fff; padding: 0.35rem 0.7rem; }
  .j365-admin-member-table tbody td,
  .j365-admin-order-table tbody td { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: start; gap: 0.45rem; border: 0; padding: 0.4rem 0 !important; text-align: left !important; white-space: normal; }
  .j365-admin-member-table tbody td::before,
  .j365-admin-order-table tbody td::before { content: attr(data-label); color: #64748b; font-size: 0.75rem; font-weight: 800; }
  .j365-admin-member-table tbody td[colspan],
  .j365-admin-order-table tbody td[colspan] { display: block; }
  .j365-admin-member-table tbody td[colspan]::before,
  .j365-admin-order-table tbody td[colspan]::before { content: none; }
  .j365-admin-order-table td > .inline-flex { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .j365-admin-order-table td button { min-height: 2.25rem; }
  /* CUSTOMER MAJOR REVISION W2 (2026-08-29): MR-V1 admin tables (회원·권한 / 전국단가 / 경제조건 / 감사)
     reuse the accepted member/order card transformation instead of collapsing desktop columns
     into character-level Korean wrapping at phone widths. Data, actions and markup are unchanged. */
  .j365-stack-table { display: block; min-width: 0 !important; }
  .j365-stack-table thead { display: none; }
  .j365-stack-table tbody { display: grid; gap: 0.55rem; }
  .j365-stack-table tbody tr { display: grid; border: 1px solid #dbe3ee; border-radius: 0.75rem; background: #fff; padding: 0.35rem 0.7rem; }
  .j365-stack-table tbody tr.border-t { border-top: 1px solid #dbe3ee; }
  .j365-stack-table tbody td { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: start; gap: 0.45rem; border: 0; padding: 0.4rem 0 !important; text-align: left !important; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
  .j365-stack-table tbody td::before { content: attr(data-label); color: #64748b; font-size: 0.75rem; font-weight: 800; }
  .j365-stack-table tbody td[colspan] { display: block; }
  .j365-stack-table tbody td[colspan]::before { content: none; }
  .j365-stack-table tbody td:not([data-label])::before { content: none; }
  .j365-stack-table tbody td:not([data-label]) { display: block; }
  .j365-stack-table tbody td .flex.flex-wrap { gap: 0.3rem; }
  .j365-stack-table tbody td button { min-height: 2.5rem; width: 100%; padding-inline: 0.75rem; font-size: 0.85rem; }
  .j365-stack-table tbody td pre { max-width: 100%; }
  .j365-admin-detail-grid { grid-template-columns: 1fr; }
  .j365-admin-detail-grid .j365-admin-detail-wide { grid-column: auto; }
  .j365-admin-member-detail { max-height: calc(100vh - 2rem); overflow-y: auto; }
  .j365-admin-domain-page .app-main { padding-inline: 0.75rem !important; }
  .j365-admin-domain-page h1 { font-size: 1.4rem; }
  .j365-admin-risk-layout,
  .j365-admin-restriction-layout,
  .j365-admin-ledger-layout { grid-template-columns: 1fr; }
  .j365-admin-domain-page form[class*="grid"] { grid-template-columns: 1fr; }
  .j365-admin-domain-page form[class*="grid"] > * { grid-column: auto !important; }
}

@media (max-width: 430px) {
  .j365-admin-workspace .j365-role-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .j365-admin-kpi-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .j365-admin-kpi-grid > div { min-height: 4.8rem; }
  .j365-admin-kpi-grid .text-2xl { font-size: 1.18rem; }
  .j365-admin-member-table tbody td,
  .j365-admin-order-table tbody td { grid-template-columns: 5.4rem minmax(0, 1fr); }
}

/* Part 6 — Driver Web operational workspace polish. */
.j365-driver-workspace .app-main { max-width: 94rem; }
.j365-driver-workspace .j365-role-layout {
  grid-template-columns: 12.75rem minmax(0, 1fr);
  gap: 1rem;
}
.j365-driver-workspace .j365-role-sidebar { padding: 0.6rem; }
.j365-driver-page-heading { align-items: stretch; margin-bottom: 0.85rem; }
.j365-driver-page-heading > :first-child { align-self: center; }
.j365-driver-heading-tools {
  display: grid;
  min-width: min(100%, 39rem);
  gap: 0.45rem;
  justify-items: end;
}
.j365-driver-utility-links { display: flex; gap: 0.4rem; }
.j365-driver-utility-links a {
  min-height: 2rem;
  border: 1px solid #c9d8ef;
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.4rem 0.7rem;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 760;
  text-decoration: none;
}
.j365-driver-command-bar {
  display: grid;
  grid-template-columns: auto minmax(8rem, auto) minmax(15.5rem, 1fr);
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  border: 1px solid #d7e0ec;
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.42rem;
  box-shadow: 0 2px 10px rgb(15 23 42 / 0.04);
}
.j365-driver-identity,
.j365-driver-active-summary,
.j365-driver-call-state {
  display: flex;
  min-width: 0;
  align-items: center;
  border-radius: 0.6rem;
  background: #f8fafc;
  padding: 0.5rem 0.65rem;
}
.j365-driver-identity {
  gap: 0.45rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 780;
  white-space: nowrap;
}
.j365-driver-identity input {
  width: 2.7rem;
  min-height: 1.75rem;
  border: 0;
  background: transparent !important;
  padding: 0;
  color: #172033;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}
.j365-driver-active-summary { display: grid; gap: 0.12rem; }
.j365-driver-active-summary span,
.j365-driver-call-state > div > span {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 760;
}
.j365-driver-active-summary strong,
.j365-driver-call-state > div > strong {
  overflow: hidden;
  color: #20324b;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j365-driver-call-state {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1fr) auto auto;
  gap: 0.55rem;
  border: 1px solid #dfe6ef;
}
.j365-driver-call-state[data-state="on"] { border-color: #a7f3d0; background: #ecfdf5; }
.j365-driver-call-state[data-state="working"] { border-color: #bfdbfe; background: #eff6ff; }
.j365-driver-call-state[data-state="error"] { border-color: #fecdd3; background: #fff1f2; }
.j365-driver-call-state > div { display: grid; min-width: 0; gap: 0.08rem; }
.j365-driver-standby-switch { display: inline-flex; align-items: center; }
.j365-driver-call-badge {
  align-self: center;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 0.24rem 0.48rem;
  color: #52657d;
  font-size: 0.75rem;
  font-weight: 820;
  white-space: nowrap;
}
.j365-driver-call-badge.is-on { background: #d1fae5; color: #047857; }
.j365-driver-call-badge.is-working { background: #dbeafe; color: #1d4ed8; }
.j365-driver-call-badge.is-error { background: #ffe4e6; color: #be123c; }

.j365-driver-discovery { padding: 1.15rem !important; }
.j365-driver-discovery .j365-segmented { margin-top: 0.75rem; }
.j365-driver-toolbar {
  grid-template-columns: minmax(13rem, 1.5fr) minmax(8rem, 0.7fr) minmax(7.5rem, 0.6fr) auto;
  margin-top: 0.75rem;
  padding: 0.65rem;
}
.j365-driver-toolbar :is(input, select) { min-height: 2.3rem; }
.j365-driver-discovery-split { grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr); }
.j365-driver-discovery .j365-discovery-list {
  max-height: 31rem;
  gap: 0;
  overflow: auto;
  border-block: 1px solid #e2e8f0;
  scrollbar-gutter: stable;
}
.j365-driver-discovery .j365-discovery-list button {
  grid-template-columns: minmax(8rem, 0.8fr) minmax(11rem, 1.5fr) auto;
  align-items: center;
  gap: 0.25rem 0.7rem;
  min-height: 3.85rem;
  border: 0;
  border-bottom: 1px solid #e7edf4;
  border-radius: 0;
  padding: 0.55rem 0.35rem;
}
.j365-driver-discovery .j365-discovery-list li:last-child button { border-bottom: 0; }
.j365-driver-discovery .j365-discovery-list button[aria-current="true"] {
  border-color: #e7edf4;
  background: #eff6ff;
  box-shadow: inset 3px 0 #2563eb;
}
.j365-driver-discovery .j365-discovery-title { display: grid; gap: 0.15rem; }
.j365-driver-discovery .j365-discovery-title b { color: #20324b; font-size: 0.8rem; }
.j365-driver-discovery .j365-discovery-title span { color: #52657d; font-size: 0.72rem; font-weight: 720; }
.j365-discovery-site {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j365-driver-discovery .j365-discovery-meta {
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(11rem, 1.5fr);
  gap: 0.7rem;
  color: #64748b;
  font-size: 0.75rem;
}
.j365-driver-status {
  display: inline-flex;
  min-height: 1.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 0.22rem 0.48rem;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 820;
  white-space: nowrap;
}
.j365-driver-status.is-waiting { background: #fff7ed; color: #b45309; }
.j365-driver-status.is-current { background: #dbeafe; color: #1d4ed8; }
.j365-driver-status.is-working { background: #e0e7ff; color: #4338ca; }
.j365-driver-status.is-complete { background: #d1fae5; color: #047857; }
.j365-driver-status.is-cancelled { background: #ffe4e6; color: #be123c; }
.j365-driver-discovery .j365-driver-status { grid-column: 3; grid-row: 1 / span 2; }
.j365-driver-discovery .j365-detail-pane { top: 5rem; padding: 0.85rem; }
.j365-dispatch-detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 0.75rem; }
.j365-dispatch-detail-heading > div > span,
.j365-dispatch-next-action > span { color: #64748b; font-size: 0.75rem; font-weight: 800; }
.j365-dispatch-detail-heading h3 { margin-top: 0.12rem; }
.j365-dispatch-equipment { margin: 0.35rem 0 0; color: #334155; font-size: 0.78rem; font-weight: 760; }
.j365-driver-discovery .j365-detail-grid { gap: 0.45rem; margin-top: 0.65rem; }
.j365-driver-discovery .j365-detail-grid div { padding: 0.55rem; }
.j365-dispatch-next-action {
  margin-top: 0.65rem;
  border-left: 3px solid #2563eb;
  border-radius: 0.45rem;
  background: #fff;
  padding: 0.55rem 0.65rem;
}
.j365-dispatch-next-action p { margin: 0.16rem 0 0; color: #334155; font-size: 0.72rem; font-weight: 650; }

.j365-driver-operations-grid { align-items: stretch; }
.j365-driver-current { order: -1; }
.j365-driver-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.j365-card-kicker { margin: 0 0 0.12rem; color: #64748b; font-size: 0.75rem; font-weight: 850; letter-spacing: 0.06em; }
.j365-driver-current-order { margin: 0; color: #64748b; font-size: 0.75rem; text-align: right; }
.j365-driver-current-order strong { display: block; margin-top: 0.15rem; color: #1d4ed8; font-size: 0.76rem; }
.j365-driver-next-action {
  margin: 0;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: #eff6ff;
  padding: 0.6rem 0.7rem;
  color: #1e40af;
  font-size: 0.73rem;
  font-weight: 720;
}
.j365-driver-next-action[data-state="empty"] { border-style: dashed; border-color: #dce4ee; background: #f8fafc; color: #64748b; }
.j365-driver-has-active-work .j365-driver-current { border-color: #93c5fd !important; box-shadow: 0 8px 28px rgb(37 99 235 / 0.09) !important; }
.j365-driver-current #active-order-card { border-color: #bfdbfe; background: #f8fbff; }
.j365-driver-current #order-progress-stepper li { min-height: 2.05rem; display: grid; place-items: center; }
.j365-driver-current #order-progress-stepper + div button:not(:disabled) { box-shadow: 0 0 0 2px rgb(37 99 235 / 0.1); }
.j365-driver-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.j365-driver-quick-actions button { min-height: 2.3rem; }
.j365-driver-confirmation { border-top: 1px solid #e2e8f0; padding-top: 0.75rem; }
.j365-driver-confirmation > p { margin: 0 0 0.6rem; color: #64748b; font-size: 0.75rem; }
.j365-signature-frame { position: relative; }
.j365-signature-frame > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  color: #64748b;
  font-size: 0.75rem;
}
.j365-signature-frame canvas { position: relative; z-index: 2; min-height: 8rem; background: rgb(255 255 255 / 0.86) !important; }

.j365-driver-card-heading .j365-icon-button,
.j365-icon-button {
  min-height: 2rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.35rem 0.55rem;
  color: #52657d;
  font-size: 0.75rem;
  font-weight: 760;
}
.j365-driver-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.j365-driver-metrics > div { border: 1px solid #e3e9f1; border-radius: 0.65rem; background: #f8fafc; padding: 0.65rem; }
.j365-driver-metrics > div > div { color: #64748b; font-size: 0.75rem; }
.j365-driver-metrics strong { display: block; margin-top: 0.2rem; color: #20324b; font-size: 0.96rem; font-weight: 850; }
.j365-driver-metrics [data-metric="points"] strong { color: #1d4ed8; }
.j365-driver-metrics [data-metric="rights"] { border-color: #ddd6fe; background: #f5f3ff; }
.j365-driver-metrics [data-metric="rights"] strong { color: #6d28d9; }
.j365-driver-exchange { margin-top: 0.65rem; }
.j365-driver-exchange-controls { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0.45rem; }
.j365-driver-exchange-controls :is(input, button) { min-height: 2.35rem; }

.j365-driver-calendar-note { margin: 0.35rem 0 0; color: #64748b; font-size: 0.75rem; }
.j365-driver-calendar-summary { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.j365-driver-calendar-summary > span { border-radius: 999px; background: #f1f5f9; padding: 0.3rem 0.5rem; color: #52657d; font-size: 0.75rem; }
.j365-driver-calendar-summary b { color: #20324b; }
.j365-driver-calendar-scroll { overflow-x: auto; padding-bottom: 0.1rem; }
.j365-driver-calendar-weekdays,
.j365-driver-calendar #cal-grid { width: 100%; min-width: 0; font-size: 0.75rem; }
.j365-driver-calendar-day { min-width: 0; min-height: 3rem; overflow: hidden; line-height: 1.15; }
.j365-driver-calendar-day[aria-selected="true"] { border-color: #2563eb; background: #eff6ff; box-shadow: inset 0 0 0 1px #2563eb; }
.j365-driver-calendar-day:disabled { opacity: 0.68 !important; }
.j365-driver-calendar #cal-detail { border-top: 1px solid #e2e8f0; padding-top: 0.65rem; }

@media (max-width: 480px) {
  .j365-driver-calendar-weekdays,
  .j365-driver-calendar #cal-grid { width: auto; min-width: 21rem; }
}

.j365-driver-equipment,
.j365-driver-favorites { padding: 1.15rem !important; }
.j365-driver-equipment #equipment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.j365-equipment-card { min-width: 0; border: 1px solid #dfe6ef; border-radius: 0.75rem; background: #fff; padding: 0.8rem; }
.j365-equipment-summary { display: flex; min-width: 0; align-items: center; gap: 0.4rem; }
.j365-equipment-kind { border-radius: 0.4rem; background: #eaf1ff; padding: 0.2rem 0.4rem; color: #1d4ed8; font-size: 0.75rem; font-weight: 820; }
.j365-equipment-summary strong { min-width: 0; overflow: hidden; color: #20324b; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.j365-equipment-vehicle { margin-left: auto; color: #52657d; font-size: 0.75rem; font-weight: 720; white-space: nowrap; }
.j365-equipment-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem 0.75rem; margin-top: 0.65rem; }
.j365-equipment-facts span { min-width: 0; color: #64748b; font-size: 0.75rem; }
.j365-equipment-facts b { display: block; margin-top: 0.08rem; overflow-wrap: anywhere; color: #52657d; font-weight: 680; }
.j365-equipment-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; margin-top: 0.7rem; border-top: 1px solid #e8edf3; padding-top: 0.6rem; }
.j365-readiness-badge { border-radius: 999px; background: #f1f5f9; padding: 0.25rem 0.5rem; color: #64748b; font-size: 0.75rem; font-weight: 760; }
.j365-readiness-badge.is-ready { background: #d1fae5; color: #047857; }
.j365-readiness-badge.is-missing { background: #fff7ed; color: #b45309; }
.j365-equipment-actions { display: flex; gap: 0.3rem; }
.j365-equipment-actions button,
.j365-favorite-row > button { min-height: 1.9rem; border: 1px solid #dbe3ee; border-radius: 0.45rem; background: #fff; padding: 0.3rem 0.55rem; color: #52657d; font-size: 0.75rem; font-weight: 740; }
.j365-equipment-actions .equipment-remove-trigger,
.j365-action-danger { border-color: #fecdd3 !important; color: #be123c !important; }
.j365-driver-favorites #favorite-order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-block: 1px solid #e2e8f0; }
.j365-favorite-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; min-width: 0; border-bottom: 1px solid #e7edf4; padding: 0.7rem 0.35rem; }
.j365-favorite-row:nth-last-child(-n + 2) { border-bottom: 0; }
.j365-favorite-row:nth-child(odd) { padding-right: 0.8rem; }
.j365-favorite-row:nth-child(even) { border-left: 1px solid #e7edf4; padding-left: 0.8rem; }
.j365-favorite-main { display: grid; min-width: 0; gap: 0.2rem; }
.j365-favorite-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.j365-favorite-heading strong { color: #20324b; font-size: 0.76rem; }
.j365-favorite-status { border-radius: 999px; padding: 0.2rem 0.4rem; font-size: 0.75rem; font-weight: 760; white-space: nowrap; }
.j365-favorite-site { overflow: hidden; color: #52657d; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.j365-favorite-meta { color: #64748b; font-size: 0.75rem; }

.j365-driver-documents-panel,
.j365-driver-auto-docs { padding: 1.15rem !important; }
.j365-document-row { border: 1px solid #e1e7ef; border-radius: 0.65rem; padding: 0.65rem; }
.j365-document-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; }
.j365-document-title { display: flex; min-width: 0; align-items: center; gap: 0.35rem; }
.j365-document-title > span:first-child { border-radius: 0.35rem; background: #f1f5f9; padding: 0.18rem 0.35rem; color: #64748b; font-size: 0.75rem; font-weight: 780; }
.j365-document-title strong { color: #20324b; font-size: 0.75rem; }
.j365-document-title .doc-status { border-radius: 999px; background: #f1f5f9; padding: 0.18rem 0.4rem; color: #64748b; font-size: 0.75rem; font-weight: 760; }
.j365-document-title .doc-status.is-ready { background: #d1fae5; color: #047857; }
.j365-document-title .doc-status.is-missing { background: #fff7ed; color: #b45309; }
.j365-document-upload { flex: 0 0 auto; border-radius: 0.45rem; background: #eaf1ff; padding: 0.35rem 0.55rem; color: #1d4ed8; font-size: 0.75rem; font-weight: 760; cursor: pointer; }
.j365-auto-doc-row { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; border: 1px solid #e1e7ef; border-radius: 0.65rem; padding: 0.65rem; }
.j365-auto-doc-row > span:first-child { display: grid; gap: 0.15rem; min-width: 0; }
.j365-auto-doc-row b { color: #20324b; font-size: 0.74rem; }
.j365-auto-doc-row small { color: #64748b; font-size: 0.75rem; }

#driver-profile .j365-member-profile { margin-top: 0 !important; padding: 1.15rem; }
#driver-profile .j365-profile-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
#driver-profile .j365-profile-group { border: 1px solid #e1e8f1; border-radius: 0.8rem; background: #fbfcfe; padding: 0.9rem; }
#driver-profile .j365-profile-group > legend { padding-inline: 0.35rem; color: #20324b; font-size: 0.78rem; font-weight: 850; }
#driver-profile .j365-profile-fields label { color: #52657d; font-size: 0.75rem; font-weight: 740; }
#driver-profile .j365-profile-fields :is(input, select) { min-height: 2.45rem; color: #172033; font-size: 0.82rem; font-weight: 520; }
#driver-profile .j365-profile-fields :is(input, select):disabled { color: #64748b; }
#driver-profile .j365-profile-consent { background: #fbfcfe; }
#driver-profile .j365-profile-status { border-radius: 0.8rem; background: #f1f5f9; padding: 0.9rem; }
#driver-profile .j365-profile-status h3 { margin: 0 0 0.65rem; color: #20324b; font-size: 0.78rem; font-weight: 850; }
#driver-profile .j365-profile-status dt { color: #64748b; font-size: 0.75rem; }
#driver-profile .j365-profile-status dd { color: #22324a; font-size: 0.78rem; font-weight: 760; }
#driver-profile .j365-profile-actions { justify-content: flex-end; }
#driver-profile .j365-profile-actions button { min-width: 10rem; padding-inline: 1.25rem; }

@media (max-width: 1180px) {
  .j365-driver-workspace .j365-role-layout { grid-template-columns: 1fr; }
  .j365-driver-workspace .j365-role-sidebar { position: sticky; z-index: 25; top: 4rem; max-height: none; overflow: visible; padding: 0.35rem; }
  .j365-driver-workspace .j365-role-sidebar-label { display: none; }
  .j365-driver-workspace .j365-role-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; }
  .j365-driver-workspace .j365-role-nav a { width: auto; min-width: 0; justify-content: center; text-align: center; white-space: normal; }
  .j365-driver-workspace .j365-nav-icon { display: none; }
}

@media (max-width: 980px) {
  .j365-driver-page-heading { display: grid; }
  .j365-driver-heading-tools { width: 100%; justify-items: stretch; }
  .j365-driver-utility-links { justify-content: flex-end; }
  .j365-driver-operations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .j365-driver-current { grid-column: 1 / -1; }
  #driver-documents { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .j365-driver-workspace .app-shell-bar { padding-inline: 0.75rem; }
  .j365-driver-workspace #session-dashboard span:last-child,
  .j365-driver-workspace #session-label { display: none; }
  .j365-driver-workspace .app-session-chip { padding-left: 0.25rem !important; }
  .j365-driver-workspace .j365-role-sidebar { top: 3.65rem; }
  .j365-driver-workspace .j365-anchor-section { scroll-margin-top: 11rem; }
  .j365-driver-workspace .j365-role-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.2rem; }
  .j365-driver-workspace .j365-role-nav a { min-height: 2.15rem; padding: 0.4rem 0.25rem; font-size: 0.72rem; }
  .j365-driver-page-heading { gap: 0.65rem; }
  .j365-driver-utility-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j365-driver-utility-links a { display: grid; place-items: center; text-align: center; }
  .j365-driver-command-bar { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .j365-driver-call-state { grid-column: 1 / -1; }
  .j365-driver-discovery { padding: 0.85rem !important; }
  .j365-driver-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j365-driver-toolbar > label:first-child { grid-column: 1 / -1; }
  .j365-driver-toolbar .j365-toolbar-actions { grid-column: 1 / -1; }
  .j365-driver-discovery-split { display: grid; grid-template-columns: 1fr; }
  .j365-driver-discovery .j365-discovery-list { max-height: 25rem; }
  .j365-driver-discovery .j365-discovery-list button { grid-template-columns: minmax(0, 1fr) auto; min-height: 4.7rem; padding: 0.65rem 0.25rem; }
  .j365-driver-discovery .j365-discovery-title { grid-column: 1; }
  .j365-driver-discovery .j365-discovery-site { grid-column: 1; white-space: normal; }
  .j365-driver-discovery .j365-discovery-meta { grid-column: 1; grid-template-columns: repeat(2, auto); justify-content: start; }
  .j365-driver-discovery .j365-driver-status { grid-column: 2; grid-row: 1 / span 3; }
  .j365-driver-discovery .j365-detail-pane { position: static; }
  .j365-driver-operations-grid { grid-template-columns: 1fr !important; }
  .j365-driver-current { grid-column: auto; }
  .j365-driver-current,
  .j365-driver-wallet,
  .j365-driver-calendar { padding: 0.9rem !important; }
  .j365-driver-current #order-progress-stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .j365-driver-calendar-scroll { margin-inline: -0.15rem; }
  .j365-driver-equipment,
  .j365-driver-favorites,
  .j365-driver-documents-panel,
  .j365-driver-auto-docs { padding: 0.9rem !important; }
  .j365-driver-equipment #equipment-list,
  .j365-driver-favorites #favorite-order-list { grid-template-columns: 1fr; }
  .j365-favorite-row,
  .j365-favorite-row:nth-child(odd),
  .j365-favorite-row:nth-child(even) { border-left: 0; border-bottom: 1px solid #e7edf4; padding: 0.7rem 0.2rem; }
  .j365-favorite-row:last-child { border-bottom: 0; }
  #driver-profile .j365-member-profile { padding: 1rem; }
  #driver-profile .j365-profile-fields { grid-template-columns: 1fr; }
  #driver-profile .j365-profile-fields .sm\:col-span-2 { grid-column: auto; }
  #driver-profile .j365-profile-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
  #driver-profile .j365-profile-actions button { min-width: 0; width: 100%; }
}

@media (max-width: 430px) {
  .j365-driver-workspace .app-brand-mark { width: 1.9rem; height: 1.9rem; }
  .j365-driver-workspace #session-dashboard { padding-inline: 0.55rem; }
  .j365-driver-workspace #session-logout { min-height: 1.85rem; padding-inline: 0.55rem; }
  .j365-driver-workspace .j365-page-heading h1 { font-size: 1.35rem; }
  .j365-driver-workspace .j365-page-heading p:not(.j365-eyebrow) { font-size: 0.76rem; }
  .j365-driver-active-summary strong { font-size: 0.75rem; }
  .j365-driver-call-state { grid-template-columns: minmax(0, 1fr) auto auto; }
  .j365-driver-discovery .j365-segmented button { padding-inline: 0.35rem; }
  .j365-driver-discovery .j365-section-heading { display: flex; align-items: end; }
  .j365-driver-discovery .j365-section-heading p { display: none; }
  .j365-driver-metrics { grid-template-columns: 1fr 1fr; }
  .j365-driver-quick-actions,
  .j365-driver-current .grid.sm\:grid-cols-2 { grid-template-columns: 1fr; }
  .j365-equipment-summary { flex-wrap: wrap; }
  .j365-equipment-vehicle { width: 100%; margin-left: 0; }
  .j365-equipment-facts { grid-template-columns: 1fr; }
  .j365-equipment-footer { align-items: flex-start; }
  .j365-document-row-heading,
  .j365-auto-doc-row { align-items: flex-start; }
  .j365-document-title { align-items: flex-start; flex-wrap: wrap; }
  .j365-document-title strong { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* MOBILE ORDER EXPERIENCE V2 — progressive order sections, tile
   selectors, sticky summary, tariff explorer (customer). Tokens only. */
.j365-order-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.25rem; margin: 0 0 0.9rem; padding: 0.3rem; border-radius: var(--j365-radius); background: #eef2f7; }
.j365-order-steps button { min-height: 2.75rem; border: 0; border-radius: var(--j365-radius-sm); background: transparent; color: var(--j365-muted); font-size: 0.8rem; font-weight: 780; line-height: 1.15; }
.j365-order-steps button[data-state="active"] { background: #fff; color: var(--j365-brand); box-shadow: var(--j365-shadow); }
.j365-order-steps button[data-state="done"] { color: var(--j365-success); }
.j365-order-steps button[data-state="done"]::before { content: "\2713 "; }
.j365-order-section { border: 1px solid var(--j365-line); border-radius: var(--j365-radius); background: #fff; overflow: clip; }
.j365-order-section + .j365-order-section { margin-top: 0.7rem; }
.j365-order-section-head { display: flex; align-items: center; gap: 0.6rem; width: 100%; border: 0; background: #fff; padding: 0.8rem 0.95rem; text-align: left; cursor: pointer; }
.j365-order-section-head:hover { background: #f8fafc; }
.j365-order-section-index { display: inline-flex; width: 1.55rem; height: 1.55rem; flex: none; align-items: center; justify-content: center; border-radius: 999px; background: var(--j365-brand-soft); color: var(--j365-brand); font-size: 0.74rem; font-weight: 820; }
.j365-order-section[data-done="true"] .j365-order-section-index { background: #dcfce7; color: var(--j365-success); }
.j365-order-section-title { flex: 1 1 auto; min-width: 0; }
.j365-order-section-title strong { display: block; color: var(--j365-ink); font-size: 0.98rem; font-weight: 820; letter-spacing: -0.02em; }
.j365-order-section-summary { display: block; margin-top: 0.1rem; color: var(--j365-muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j365-order-section[data-done="true"] .j365-order-section-summary { color: var(--j365-ink); font-weight: 650; }
.j365-order-section-action { flex: none; color: var(--j365-brand); font-size: 0.78rem; font-weight: 780; }
.j365-order-section-body { border-top: 1px solid var(--j365-line); padding: 0.95rem; }
.j365-order-section[data-expanded="false"] .j365-order-section-body { display: none; }
.j365-order-section-error { margin: 0.6rem 0 0; border-radius: var(--j365-radius-sm); background: #fff1f2; padding: 0.55rem 0.7rem; color: var(--j365-danger); font-size: 0.8rem; font-weight: 700; }
.j365-order-section-error:empty { display: none; }
.j365-order-next { display: flex; justify-content: flex-end; margin-top: 0.9rem; }
.j365-tiles { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.j365-tiles[data-columns="2"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.j365-tiles[data-columns="4"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); }
.j365-tile { display: flex; min-height: 3.6rem; min-width: 5.6rem; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.1rem; border: 1px solid #cbd5e1; border-radius: var(--j365-radius-sm); background: #fff; padding: 0.5rem 0.75rem; color: var(--j365-ink); text-align: left; cursor: pointer; }
.j365-tile:hover { border-color: #94a3b8; background: #f8fafc; }
.j365-tile-label { font-size: 0.92rem; font-weight: 800; line-height: 1.2; }
.j365-tile-sub { color: var(--j365-muted); font-size: 0.75rem; font-weight: 650; line-height: 1.2; }
/* Owner UI rule: selected state is colour-only — background + border + text
   colour and a subtle shadow, never a check glyph or any decoration that
   changes the tile's size. box-sizing:border-box keeps the 2px border from
   shifting geometry. */
.j365-tile { box-sizing: border-box; }
/* DESIGN_2026-09-09: selection = warm accent fill + strong accent border +
   dark text (one vocabulary with Android chips and .j365-selected); the
   brand blue stays reserved for the primary action. */
.j365-tile[aria-pressed="true"] { border: 2px solid var(--j365-accent-strong); background: var(--j365-accent-soft); color: var(--j365-on-accent); box-shadow: 0 1px 4px rgba(245,158,11,0.3); }
.j365-tile[aria-pressed="true"] .j365-tile-sub { color: #6b4e00; }
.j365-tile[disabled], .j365-tile[aria-disabled="true"] { border-style: dashed; background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.j365-tile[disabled] .j365-tile-label, .j365-tile[aria-disabled="true"] .j365-tile-label { text-decoration: line-through; }
.j365-tile[disabled] .j365-tile-sub, .j365-tile[aria-disabled="true"] .j365-tile-sub { color: #94a3b8; }
.j365-tile[data-price-state="NEGOTIATION"] { border-color: #f59e0b; background: #fffbeb; }
.j365-tile[data-price-state="NEGOTIATION"] .j365-tile-sub { color: #92400e; }
.j365-tile[data-price-state="NEGOTIATION"][aria-pressed="true"] { border-color: var(--j365-accent-strong); background: var(--j365-accent-soft); color: var(--j365-on-accent); }
.j365-tile[data-price-state="NEGOTIATION"][aria-pressed="true"] .j365-tile-sub { color: #6b4e00; }
.j365-tile[data-price-state="NOT_CONFIGURED"] { border-color: #fbbf24; background: #fffbeb; }
.j365-tile[data-price-state="NOT_CONFIGURED"] .j365-tile-sub { color: #92400e; }
.j365-tile[data-price-state="NOT_CONFIGURED"][aria-pressed="true"] { border-color: var(--j365-accent-strong); background: var(--j365-accent-soft); color: var(--j365-on-accent); }
.j365-tile[data-price-state="NOT_CONFIGURED"][aria-pressed="true"] .j365-tile-sub { color: #6b4e00; }
.j365-tile[data-price-state="INVALID_RULE"] { border-color: #fda4af; background: #fff1f2; }
.j365-tile[data-price-state="INVALID_RULE"] .j365-tile-sub { color: var(--j365-danger); }
.j365-tile-dense { min-height: 2.6rem; min-width: 3.6rem; padding: 0.4rem 0.6rem; }
#model-chips[data-grouped="true"] { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.j365-model-group { min-width: 0; border: 1px solid var(--j365-line); border-radius: var(--j365-radius-sm); background: #f8fafc; padding: 0.65rem; }
.j365-model-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.65rem; margin-bottom: 0.45rem; }
.j365-model-group-head strong { color: var(--j365-ink); font-size: 0.84rem; font-weight: 820; }
.j365-model-group-head span { color: var(--j365-danger); font-size: 0.72rem; font-weight: 700; }
.j365-model-group-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); gap: 0.45rem; }
.j365-order-summary { position: sticky; top: 1rem; border: 1px solid var(--j365-line); border-radius: var(--j365-radius); background: #fff; padding: 1rem 1.1rem; box-shadow: var(--j365-shadow); }
.j365-order-summary dl { margin: 0.6rem 0 0; display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.45rem 0.6rem; font-size: 0.85rem; }
.j365-order-summary dt { color: var(--j365-muted); font-weight: 700; }
.j365-order-summary dd { margin: 0; color: var(--j365-ink); font-weight: 650; overflow-wrap: anywhere; }
.j365-order-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; margin-top: 0.5rem; }
.j365-order-amount strong { font-size: 1.7rem; font-weight: 880; letter-spacing: -0.03em; color: var(--j365-ink); }
.j365-order-amount[data-state="pending"] strong { color: var(--j365-muted); font-size: 1.15rem; }
.j365-order-amount[data-price-state="NEGOTIATION"] strong { color: #92400e; }
.j365-order-amount[data-price-state="NOT_CONFIGURED"] strong,
.j365-order-amount[data-price-state="NOT_OFFERED"] strong { color: #64748b; font-size: 1.15rem; }
.j365-order-amount[data-price-state="INVALID_RULE"] strong { color: var(--j365-danger); font-size: 1.15rem; }
.j365-price-reason { flex-basis: 100%; color: var(--j365-muted); font-size: 0.76rem; font-weight: 650; white-space: normal; }
.j365-price-outcome { display: grid; gap: 0.3rem; border-radius: var(--j365-radius-sm); background: #f8fafc; padding: 0.7rem 0.8rem; }
.j365-price-outcome strong { color: var(--j365-ink); font-size: 1rem; }
.j365-price-outcome span { color: var(--j365-muted); font-size: 0.78rem; }
.j365-price-outcome[data-quote-price-state="INVALID_RULE"] { background: #fff1f2; }
.j365-price-outcome[data-quote-price-state="INVALID_RULE"] strong { color: var(--j365-danger); }
.j365-price-badge { display: inline-flex; align-items: center; border: 1px solid #fcd34d; border-radius: 999px; background: #fef3c7; padding: 0.1rem 0.55rem; color: #92400e; font-size: 0.68rem; font-weight: 800; }
.j365-condition-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.j365-condition-chips span { border-radius: 999px; background: #eef2f7; padding: 0.15rem 0.55rem; color: #334155; font-size: 0.7rem; font-weight: 700; }
.j365-quote-card { border: 1px solid rgba(29,78,216,0.35); border-radius: var(--j365-radius); background: rgba(29,78,216,0.05); padding: 0.9rem 1rem; }
.j365-quote-card .j365-order-amount strong { font-size: 2rem; }
.j365-quote-line { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: baseline; gap: 0.2rem 0.6rem; }
.j365-money { white-space: nowrap; word-break: normal; overflow-wrap: normal; }
/* Only the six category choices use this compact grid; model/option grids keep
   their own ordering, sizing and selection contracts. */
#equipment-type-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#equipment-type-tiles > .j365-tile { min-width: 0; }
.j365-location-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.j365-location-status { margin-top: 0.6rem; border-radius: var(--j365-radius-sm); padding: 0.55rem 0.7rem; font-size: 0.8rem; font-weight: 650; }
.j365-location-status:empty { display: none; }
.j365-location-status[data-tone="success"] { background: #ecfdf5; color: var(--j365-success); }
.j365-location-status[data-tone="warning"] { background: #fffbeb; color: var(--j365-warning); }
.j365-location-status[data-tone="danger"] { background: #fff1f2; color: var(--j365-danger); }
.j365-location-status[data-tone="info"] { background: var(--j365-brand-soft); color: var(--j365-brand-strong); }
.j365-address-candidates { margin-top: 0.5rem; display: grid; gap: 0.3rem; }
.j365-address-candidates:empty { display: none; }
.j365-address-candidates button { width: 100%; border: 1px solid var(--j365-line); border-radius: var(--j365-radius-sm); background: #fff; padding: 0.55rem 0.7rem; text-align: left; font-size: 0.85rem; }
.j365-address-candidates button:hover { border-color: var(--j365-brand); background: var(--j365-brand-soft); }
.j365-selected-address { margin-top: 0.6rem; font-size: 1rem; font-weight: 800; color: var(--j365-ink); }
.j365-selected-address[data-empty="true"] { color: var(--j365-muted); font-weight: 600; }
.j365-review-grid { display: grid; gap: 0.55rem 0.8rem; grid-template-columns: 6rem 1fr; font-size: 0.88rem; }
.j365-review-grid dt { color: var(--j365-muted); font-weight: 700; }
.j365-review-grid dd { margin: 0; color: var(--j365-ink); font-weight: 650; white-space: pre-line; overflow-wrap: anywhere; }
.j365-review-grid dd[data-review="quote"] { font-size: 1.3rem; font-weight: 880; }
/* tariff explorer page */
.j365-tariff-toolbar { display: grid; gap: 0.7rem; grid-template-columns: minmax(10rem, 14rem) 1fr auto; align-items: end; }
.j365-tariff-cards { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.j365-tariff-card { border: 1px solid var(--j365-line); border-radius: var(--j365-radius); background: #fff; padding: 0.9rem 1rem; box-shadow: var(--j365-shadow); }
.j365-tariff-card h3 { margin: 0; font-size: 1.05rem; font-weight: 850; letter-spacing: -0.02em; }
.j365-tariff-card table { width: 100%; margin-top: 0.5rem; border-collapse: collapse; font-size: 0.9rem; }
.j365-tariff-card td { padding: 0.35rem 0; border-top: 1px solid var(--j365-line); }
.j365-tariff-card td:last-child { text-align: right; font-weight: 820; font-variant-numeric: tabular-nums; }
.j365-tariff-card tr[data-selected="true"] td { background: var(--j365-brand-soft); }
.j365-tariff-card tr[data-duration] { cursor: pointer; }
.j365-tariff-table-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--j365-line); border-radius: var(--j365-radius); background: #fff; }
.j365-tariff-table { width: 100%; min-width: 40rem; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.j365-tariff-table thead th { position: sticky; top: 0; z-index: 2; background: #f3f6fa; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--j365-line); color: var(--j365-muted); font-size: 0.76rem; font-weight: 820; text-align: right; }
.j365-tariff-table thead th:first-child, .j365-tariff-table tbody td:first-child { text-align: left; position: sticky; left: 0; background: inherit; }
.j365-tariff-table thead th:first-child { z-index: 3; background: #f3f6fa; }
.j365-tariff-table tbody tr[data-group] td { background: var(--j365-brand-soft); color: var(--j365-brand-strong); font-weight: 850; }
.j365-tariff-table tbody tr[data-row] { cursor: pointer; background: #fff; }
.j365-tariff-table tbody tr[data-row]:nth-child(even) { background: #fafcff; }
.j365-tariff-table tbody tr[data-row]:hover { background: #f1f5ff; }
.j365-tariff-table tbody tr[data-selected="true"] { background: #dbe8ff !important; box-shadow: inset 4px 0 0 var(--j365-brand); }
.j365-tariff-table tbody td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--j365-line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.j365-tariff-table tbody td[data-empty="true"] { color: #94a3b8; }
.j365-tariff-table tbody td:first-child { font-weight: 800; }
.j365-tariff-detail { margin-top: 0.8rem; border: 1px solid rgba(29,78,216,0.35); border-radius: var(--j365-radius); background: #fff; padding: 0.9rem 1rem; }
@media (max-width: 820px) {
  .j365-tariff-toolbar { grid-template-columns: 1fr; }
  .j365-order-summary { position: static; }
  .j365-order-steps button { font-size: 0.68rem; }
}

/* ---------- 장비 제원/요구사항 V2 (Equipment Specification & Option Model) ---------- */
/* 적합성 배지는 가격/견적과 분리된 축. COMPATIBLE=녹색 / NEEDS_REVIEW=앰버 / NO_MATCH=적색. */
.j365-compat-badge { margin-top: 0.7rem; border: 1px solid var(--j365-line); border-radius: var(--j365-radius-sm); background: #f8fafc; padding: 0.6rem 0.75rem; }
.j365-compat-badge[hidden] { display: none; }
.j365-compat-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.15rem 0.65rem; font-size: 0.78rem; font-weight: 820; border: 1px solid transparent; }
.j365-compat-note { margin-left: 0.5rem; color: var(--j365-muted); font-size: 0.78rem; font-weight: 650; }
.j365-compat-reasons { margin: 0.5rem 0 0; padding-left: 1.1rem; color: #475569; font-size: 0.78rem; }
.j365-compat-reasons li { margin-top: 0.15rem; }
.j365-compat-badge[data-state="COMPATIBLE"] { border-color: #86efac; background: #f0fdf4; }
.j365-compat-badge[data-state="COMPATIBLE"] .j365-compat-pill { background: #dcfce7; color: #166534; border-color: #86efac; }
.j365-compat-badge[data-state="NEEDS_REVIEW"] { border-color: #fcd34d; background: #fffbeb; }
.j365-compat-badge[data-state="NEEDS_REVIEW"] .j365-compat-pill { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.j365-compat-badge[data-state="NO_MATCH"] { border-color: #fca5a5; background: #fef2f2; }
.j365-compat-badge[data-state="NO_MATCH"] .j365-compat-pill { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.j365-compat-badge[data-state="error"] { border-color: var(--j365-line); background: #f8fafc; }
.j365-compat-badge[data-state="error"] .j365-compat-pill { background: #e2e8f0; color: #475569; }

.j365-dimension-fields { display: flex; flex-direction: column; gap: 0.7rem; }
.j365-dimension-field { border: 1px solid var(--j365-line); border-radius: var(--j365-radius-sm); background: #fff; padding: 0.75rem 0.85rem; }
.j365-dimension-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.j365-dimension-label { color: var(--j365-ink); font-size: 0.9rem; font-weight: 800; }
.j365-dimension-required { font-style: normal; margin-left: 0.35rem; border-radius: 999px; background: #fee2e2; padding: 0.05rem 0.45rem; color: #991b1b; font-size: 0.66rem; font-weight: 800; }
.j365-dimension-cond { font-style: normal; margin-left: 0.35rem; border-radius: 999px; background: #e0e7ff; padding: 0.05rem 0.45rem; color: #3730a3; font-size: 0.66rem; font-weight: 800; }
.j365-dimension-tag { flex: none; border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.68rem; font-weight: 750; }
.j365-dimension-tag[data-semantic-type="SITE_REQUIREMENT"] { background: #eaf1ff; color: var(--j365-brand-strong); }
.j365-dimension-tag[data-semantic-type="MACHINE_SPECIFICATION"] { background: #f1f5f9; color: #475569; }
.j365-dimension-help { margin: 0.35rem 0 0; color: var(--j365-muted); font-size: 0.76rem; }
.j365-dimension-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.j365-dimension-chip { border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; padding: 0.32rem 0.75rem; color: var(--j365-ink); font-size: 0.8rem; font-weight: 720; cursor: pointer; }
.j365-dimension-chip:hover { border-color: #94a3b8; background: #f8fafc; }
.j365-dimension-chip[aria-pressed="true"] { border-color: var(--j365-brand); background: var(--j365-brand); color: #fff; }
.j365-dimension-value { margin-top: 0.55rem; }
.j365-dimension-value[hidden] { display: none; }
.j365-dimension-number { display: inline-flex; align-items: center; gap: 0.4rem; }
.j365-dimension-input { max-width: 100%; border: 1px solid #cbd5e1; border-radius: var(--j365-radius-sm); padding: 0.45rem 0.6rem; font-size: 0.88rem; min-width: min(9rem, 100%); }
.j365-dimension-unit { color: var(--j365-muted); font-size: 0.82rem; font-weight: 700; }
.j365-option-restriction { margin: 0.4rem 0 0; border-radius: 0.5rem; background: #fff1f2; padding: 0.4rem 0.55rem; color: var(--j365-danger); font-size: 0.74rem; font-weight: 700; }
.j365-option-restrictions { display: grid; gap: 0.2rem; margin: 0.45rem 0 0; padding-left: 1.1rem; color: var(--j365-danger); font-size: 0.72rem; }
.j365-dimension-boolean { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.j365-dimension-boolean button { min-height: 2.35rem; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; padding: 0.35rem 0.75rem; color: var(--j365-ink); font-size: 0.8rem; font-weight: 750; }
.j365-dimension-boolean button[aria-pressed="true"] { border-color: var(--j365-brand); background: var(--j365-brand); color: #fff; }
.j365-dimension-boolean button[disabled] { border-style: dashed; background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.j365-dimension-multi { display: grid; gap: 0.55rem; }
.j365-dimension-multi-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.j365-dimension-multi-option { display: inline-flex; min-height: 2.35rem; align-items: center; gap: 0.3rem; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; padding: 0.35rem 0.7rem; color: var(--j365-ink); font-size: 0.8rem; font-weight: 750; line-height: 1.15; cursor: pointer; }
.j365-dimension-multi-option small { color: var(--j365-muted); font-size: 0.66rem; font-weight: 650; }
.j365-dimension-multi-option[aria-pressed="true"] { border-color: var(--j365-brand); background: var(--j365-brand); color: #fff; }
.j365-dimension-multi-option[aria-pressed="true"] small { color: rgba(255,255,255,0.88); }
.j365-dimension-multi-option[disabled] { border-style: dashed; background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.j365-dimension-multi-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 0.75rem; color: var(--j365-muted); font-size: 0.72rem; font-weight: 700; }
.j365-dimension-multi-error { min-height: 1rem; color: var(--j365-danger); font-size: 0.75rem; font-weight: 700; }
.j365-dimension-multi-error:empty { display: none; }
.j365-dimension-multi-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
.j365-dimension-multi-actions button { min-height: 2.25rem; padding: 0.35rem 0.7rem; font-size: 0.76rem; }

@media (max-width: 430px) {
  .j365-model-group-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j365-model-group-models .j365-tile { width: 100%; min-width: 0; overflow-wrap: anywhere; }
  .j365-dimension-number { display: flex; min-width: 0; flex-wrap: wrap; }
  .j365-dimension-input { width: 100%; }
  .j365-dimension-multi-option { max-width: 100%; white-space: normal; text-align: left; }
}

/* ---------------------------------------------------------------------------
   Admin desktop density (2026-09-05). Desktop is NOT the phone layout enlarged:
   the same tokens, but tighter panels, tighter table rows and a compact filter
   bar so an operator sees more rows per screen without shrinking type.
   Scoped to .j365-admin-workspace so member-facing pages keep their rhythm.
--------------------------------------------------------------------------- */
.j365-admin-workspace .admin-panel { --j365-density: 1; }
.j365-admin-workspace .admin-panel.space-y-5 > * + * { margin-top: 0.85rem; }
.j365-admin-workspace .admin-panel .p-5 { padding: 0.95rem 1.05rem; }
.j365-admin-workspace .j365-panel-heading,
.j365-admin-workspace .j365-section-heading { gap: 0.65rem; }
.j365-admin-workspace .j365-panel-heading p:not(.j365-eyebrow),
.j365-admin-workspace .j365-section-heading p { margin-top: 0.15rem; }
.j365-admin-workspace .j365-role-nav a,
.j365-admin-workspace .j365-role-nav button { padding-top: 0.42rem; padding-bottom: 0.42rem; }

/* Tables: denser rows, sticky-looking header, aligned numerics. */
.j365-admin-workspace table { border-collapse: collapse; }
.j365-admin-workspace table thead th {
  position: relative;
  border-bottom: 1px solid var(--j365-line);
  padding-bottom: 0.4rem;
  color: var(--j365-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}
.j365-admin-workspace table tbody tr { border-bottom: 1px solid #eef2f7; }
.j365-admin-workspace table tbody tr:last-child { border-bottom: 0; }
.j365-admin-workspace table tbody tr:hover { background: #f8fafc; }
.j365-admin-workspace table :is(td, th).py-3 { padding-top: 0.42rem; padding-bottom: 0.42rem; }
.j365-admin-workspace table :is(td, th).py-2 { padding-top: 0.34rem; padding-bottom: 0.34rem; }
.j365-admin-workspace .overflow-x-auto.mt-3 { margin-top: 0.55rem; }

/* Compact filter/toolbar row. */
.j365-admin-workspace .flex.flex-wrap.items-center.gap-2 { gap: 0.4rem; }
.j365-admin-workspace :is(select, input).border.rounded-lg.px-2.py-2 {
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
}
.j365-admin-workspace .rounded-lg.bg-slate-100.px-3 { padding-top: 0.3rem; padding-bottom: 0.3rem; }

/* KPI cards: the number leads, the label supports, the box stays small. */
.j365-admin-workspace .j365-admin-kpi-grid { gap: 0.55rem; }
.j365-admin-workspace .j365-admin-kpi-grid > div { min-height: 4.7rem; padding: 0.6rem 0.75rem !important; }
.j365-admin-workspace .font-bold.text-lg { letter-spacing: -0.02em; }

/* Active navigation reads as one solid selected row. */
.j365-admin-workspace .admin-menu-btn.active {
  background-color: var(--j365-brand-soft);
  color: var(--j365-brand-strong);
  font-weight: 800;
}

/* 카탈로그 등록 현황 — one colour per readiness state, text always present. */
.j365-status-chip[data-catalog-state="COMPLETE"] { background: #dcfce7; color: var(--j365-success); }
.j365-status-chip[data-catalog-state="PARTIAL"] { background: var(--j365-accent-soft); color: var(--j365-warning); }
.j365-status-chip[data-catalog-state="AWAITING_POLICY"] { background: var(--j365-brand-soft); color: var(--j365-brand-strong); }
.j365-status-chip[data-catalog-state="NOT_CONFIGURED"] { background: #f1f5f9; color: var(--j365-muted); }

/* 월 사용료 — 미설정 / 무료 / 유료는 서로 다른 사실이라 색도 다르다. */
.j365-status-chip[data-fee-state="NOT_CONFIGURED"] { background: #f1f5f9; color: var(--j365-muted); }
.j365-status-chip[data-fee-state="CONFIGURED_FREE"] { background: var(--j365-brand-soft); color: var(--j365-brand-strong); }
.j365-status-chip[data-fee-state="CONFIGURED_PAID"] { background: #dcfce7; color: var(--j365-success); }
.j365-status-chip[data-fee-charge-status="FREE"] { background: var(--j365-brand-soft); color: var(--j365-brand-strong); }
.j365-status-chip[data-fee-charge-status="PAID"] { background: #dcfce7; color: var(--j365-success); }
.j365-status-chip[data-fee-charge-status="PENDING"] { background: var(--j365-accent-soft); color: var(--j365-warning); }
.j365-status-chip[data-fee-charge-status="OVERDUE"] { background: #ffe4e6; color: var(--j365-danger); }
.j365-status-chip[data-fee-charge-status="WAIVED"] { background: #f1f5f9; color: var(--j365-muted); }
.j365-status-chip[data-fee-charge-status="CANCELLED"] { background: #f1f5f9; color: var(--j365-muted); }

/* Admin navigation drawer (narrow widths only). */
.j365-admin-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  background: #fff;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 2.6rem;
}
.j365-admin-nav-toggle:hover { background: #f8fafc; }
.j365-admin-nav-toggle-bars {
  width: 1rem;
  height: 0.7rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.j365-admin-nav-toggle-bars::after {
  content: "";
  position: absolute;
  inset: calc(50% - 1px) 0 auto 0;
  border-top: 2px solid currentColor;
}
.j365-admin-nav-toggle-current { color: var(--j365-brand-strong); font-weight: 800; }
.j365-admin-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgb(15 23 42 / 0.45);
}
/* Wide tables scroll inside their own box; the page itself never does. */
.j365-admin-workspace .overflow-x-auto { max-width: 100%; }

/* ------------------------------------------------------------------
   Admin content containment (shared shell, one place).

   A single unbroken string — a long URL, a base64 blob, an id list — used to
   widen the whole page by however long it was, pushing the right-hand side of
   every screen out of reach with no way to scroll to it. Content wraps instead,
   and no descendant may expand its column: a genuinely wide thing (a table)
   scrolls inside its own box, which is bounded by the column.
   ------------------------------------------------------------------ */
.j365-role-content,
.j365-admin-workspace .admin-panel,
.j365-admin-workspace .admin-panel > *,
.j365-admin-workspace .app-main > * { min-width: 0; }
.j365-admin-workspace .admin-panel,
.j365-admin-workspace .app-main {
  max-width: 100%;
  overflow-wrap: anywhere;
}
/* Grid and flex children default to min-width:auto, which is what lets an
   oversized child push its parent. */
.j365-admin-workspace :is(.grid, .flex) > * { min-width: 0; }
.j365-admin-workspace .admin-panel :is(pre, code) {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.j365-admin-workspace .admin-panel :is(img, canvas, svg, iframe, video) { max-width: 100%; }
/* A wide table keeps its own bounded scroll; the page never gains one. The
   table's own width is left alone — j365-stack-table deliberately collapses to
   cards at narrow widths, and forcing max-content would break that. */
.j365-admin-workspace .overflow-x-auto { max-width: 100%; overflow-x: auto; }

/* ===== DESIGN_2026-09-09 — 장비불러 app reference: readability, contrast,
   information separation, no downward scroll to reach a primary action. ===== */

/* Login: inputs and the submit button sized like a commercial mobile app. */
#auth-login-form input[type="text"], #auth-login-form input[type="password"] {
  min-height: 2.9rem; border-color: var(--j365-line-strong); font-size: 1rem; color: var(--j365-ink);
}
#auth-login-form input:focus-visible { outline: 2px solid var(--j365-brand); outline-offset: 1px; border-color: var(--j365-brand); }
#auth-login-form h3 { font-size: 1.05rem; }
#auth-login-submit { min-height: 3rem; border-radius: var(--j365-radius-sm); font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }

/* Composer: the step bar stays under the header and the step's "next"
   button stays at the bottom edge of the viewport on narrow screens, so
   moving through the order never requires scrolling to find the action. */
/* The step's "next" button is pinned to the bottom edge of the viewport at
   every width, so advancing never requires scrolling to find the action. */
.j365-order-next { position: sticky; bottom: 0; z-index: 6; margin: 0.9rem -0.95rem -0.95rem; border-top: 1px solid var(--j365-line); background: #fff; padding: 0.6rem 0.95rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 1279px) {
  .j365-order-steps { position: sticky; top: 4.1rem; z-index: 21; box-shadow: 0 6px 14px rgb(15 23 42 / 0.06); }
  .j365-customer-workspace .j365-order-steps { top: 7.1rem; }
  .j365-order-next .j365-btn-primary { width: 100%; min-height: 3rem; font-size: 0.98rem; }
}
@media (max-width: 760px) {
  /* DESIGN_REFINEMENT_2026-09-09: one compact row (number + short label)
     under the header (3.65rem) + 3-row role nav (≈7.9rem) so the sticky stack
     stays ≈14rem and never hides a section title or its guidance for long. */
  .j365-customer-workspace .j365-order-steps { top: 11.6rem; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.15rem; padding: 0.2rem; margin-bottom: 0.6rem; }
  .j365-customer-workspace .j365-order-steps button { min-height: 2.2rem; padding: 0 0.1rem; font-size: 0.7rem; }
  .j365-customer-workspace .j365-order-steps .j365-step-t { font-size: 0; }
  .j365-customer-workspace .j365-order-steps .j365-step-t::after { content: attr(data-short); font-size: 0.7rem; }
  .j365-customer-workspace .j365-order-steps button[data-state="done"]::before { content: none; }
  .j365-customer-workspace .j365-order-steps button[data-state="done"] .j365-step-n { color: var(--j365-success); }
}
/* Sticky-stack aware scrolling: when a step opens (or an input receives
   focus) the browser scrolls it below the sticky header/nav/step bar and above
   the pinned next button, instead of under them. */
.j365-order-section-head { scroll-margin-top: 5.5rem; }
html:has(.j365-customer-workspace) { scroll-padding-top: 5.5rem; scroll-padding-bottom: 5rem; }
@media (max-width: 1279px) {
  .j365-order-section-head { scroll-margin-top: 11rem; }
  html:has(.j365-customer-workspace) { scroll-padding-top: 11rem; }
}
@media (max-width: 760px) {
  .j365-order-section-head { scroll-margin-top: 14.4rem; }
  html:has(.j365-customer-workspace) { scroll-padding-top: 14.4rem; }
}
/* Member detail dialog: the action zone (reason + state buttons) stays at the
   bottom edge of the dialog while the profile facts scroll above it. */
.j365-admin-member-detail .j365-admin-danger-zone { position: sticky; bottom: -1.25rem; z-index: 3; margin-inline: -1.25rem; padding-inline: 1.25rem; background: #fff8f8; }
@media (max-width: 760px) {
  .j365-admin-member-detail .j365-admin-danger-zone { padding-block: 0.6rem; }
  .j365-admin-member-detail #input-member-action-reason { min-height: 3.2rem; }
  .j365-admin-member-detail .j365-admin-danger-zone > div:first-child p { display: none; }
}
.j365-order-summary h2 { font-size: 1.05rem; }
.j365-order-summary dt { color: var(--j365-muted); }

/* Admin member detail: two tabs (profile/state · equipment binding) so the
   binding action is reachable without scrolling the dialog. */
.j365-member-tabs { display: flex; gap: 0.25rem; margin-top: 0.9rem; border-bottom: 1px solid var(--j365-line); }
.j365-member-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0.55rem 0.8rem; color: var(--j365-muted); font-size: 0.86rem; font-weight: 800; cursor: pointer; }
.j365-member-tabs button[aria-selected="true"] { border-bottom-color: var(--j365-brand); color: var(--j365-brand-strong); }
.j365-member-tabs button:focus-visible { outline: 2px solid var(--j365-brand); outline-offset: -2px; border-radius: 0.3rem; }
.j365-member-pane[hidden] { display: none !important; }
.j365-admin-member-detail #member-equipment-section { border: 0; padding: 0; }
.j365-admin-member-detail #member-equipment-list > div { border-color: var(--j365-line-strong); background: #f8fafc; }
.j365-admin-member-detail #member-equipment-list select { min-height: 2.4rem; border-color: var(--j365-line-strong); font-size: 0.86rem; }
.j365-admin-member-detail .member-equipment-bind { min-height: 2.4rem; padding-inline: 0.8rem; font-size: 0.8rem; }

/* Policy admin: a fixed summary strip above the editable form. */
.j365-policy-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.5rem; margin: 0; }
.j365-policy-summary > div { border: 1px solid var(--j365-line); border-radius: var(--j365-radius-sm); background: #fff; padding: 0.6rem 0.75rem; box-shadow: var(--j365-shadow); }
.j365-policy-summary dt { color: var(--j365-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; }
.j365-policy-summary dd { margin: 0.2rem 0 0; color: var(--j365-ink); font-size: 0.95rem; font-weight: 800; overflow-wrap: anywhere; }
.j365-policy-summary dd .j365-status-chip { margin-left: 0.3rem; vertical-align: middle; }
.j365-policy-summary:empty { display: none; }
.j365-policy-fieldset { margin-top: 1rem; border: 1px solid var(--j365-line); border-radius: var(--j365-radius-sm); padding: 0.75rem 0.9rem 0.9rem; }
.j365-policy-fieldset > legend { padding: 0 0.35rem; color: var(--j365-brand-strong); font-size: 0.8rem; font-weight: 850; }
[data-dp-card] label > span { color: var(--j365-muted); font-weight: 750; }
[data-dp-card] input[type="number"] { min-height: 2.5rem; border-color: var(--j365-line-strong); font-size: 0.95rem; font-weight: 700; }

/* Document review queue: state counts read before the list. */
#doc-review-summary:empty { display: none; }
#doc-review-list > div { padding-block: 0.8rem; }
#doc-review-list strong { font-size: 0.95rem; }
#doc-review-list [data-doc-action] { min-height: 2.35rem; padding-inline: 0.8rem; font-size: 0.8rem; }

/* Customer review completion: shrink the layout tracks, never the text.
   Intrinsic form/select widths must not enlarge a 390 px / 130% viewport. */
:is(.j365-customer-workspace, .j365-driver-workspace) .app-main > *,
:is(.j365-customer-workspace, .j365-driver-workspace) :is(.grid, .flex, .j365-role-content) > *,
.j365-customer-create-form, .j365-order-section, .j365-order-section-body,
.j365-driver-heading-tools, .j365-driver-toolbar > label { min-width: 0; }
:is(.j365-customer-workspace, .j365-driver-workspace) :is(input, select, textarea) { min-width: 0; max-width: 100%; box-sizing: border-box; }
.j365-driver-identity { flex-wrap: wrap; white-space: normal; word-break: keep-all; }
.j365-driver-heading-tools { max-width: 100%; }
@media (max-width: 760px) {
  :is(.j365-customer-workspace, .j365-driver-workspace) .j365-role-layout { grid-template-columns: minmax(0, 1fr); }
  .j365-customer-orders-layout, .j365-driver-discovery-split { grid-template-columns: minmax(0, 1fr); }
  #customer-create { grid-template-columns: minmax(0, 1fr); }
  .j365-customer-workspace .j365-heading-actions,
  .j365-driver-heading-tools { width: 100%; min-width: 0; }
  .j365-customer-workspace .j365-customer-hero .j365-section-heading,
  .j365-order-discovery-heading, .j365-driver-discovery .j365-section-heading { flex-wrap: wrap; }
  .j365-customer-workspace .j365-order-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); position: static; }
  .j365-customer-workspace .j365-order-steps button { min-height: 2.75rem; padding: 0.3rem; font-size: 0.8rem; word-break: keep-all; }
  .j365-customer-workspace .j365-order-steps .j365-step-t { font-size: inherit; }
  .j365-customer-workspace .j365-order-steps .j365-step-t::after { content: none; }
  .j365-order-section { overflow: visible; }
  .j365-order-section-summary { overflow: visible; white-space: normal; text-overflow: clip; word-break: keep-all; overflow-wrap: anywhere; }
  .j365-order-section-head { border-radius: inherit; }
  .j365-tiles[data-columns="4"], .j365-model-group-models { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.2rem), 1fr)); }
  #equipment-type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j365-quote-line { grid-template-columns: minmax(0, 1fr); }
  .j365-tile, .j365-tiles[data-columns="2"] > .j365-tile { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
  .j365-location-actions, .j365-driver-utility-links, .j365-create-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
  .j365-driver-command-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j365-driver-active-summary strong, .j365-driver-call-state > div > strong { overflow: visible; text-overflow: clip; white-space: normal; word-break: keep-all; }
  .j365-driver-discovery .j365-segmented button { min-width: 0; white-space: normal; word-break: keep-all; }
  .j365-order-summary dl { grid-template-columns: minmax(0, 1fr); }
  .j365-order-summary dd { margin-left: 0; }
  .j365-timeline-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j365-timeline-actions > * { min-width: 0; white-space: normal; }
  .j365-customer-calendar > .flex:first-child { flex-wrap: wrap; }
  .j365-customer-calendar > .flex:first-child > .flex { flex-wrap: wrap; justify-content: space-between; width: 100%; }
  .j365-customer-calendar #c-cal-label { flex-shrink: 0; white-space: normal; }
  .j365-customer-calendar #c-cal-reload { font-size: inherit; }
  .j365-customer-calendar #c-cal-reload::after { content: none; }
  .j365-driver-calendar-weekdays, .j365-driver-calendar #cal-grid { min-width: 0; width: 100%; }
  .j365-driver-calendar-day { overflow: visible; overflow-wrap: anywhere; }
}
