:root {
  --gw-blue: #4f46e5;
  --gw-blue-dark: #4338ca;
  --gw-sidebar: #0b1220;
  --gw-header: #ffffff;
  --gw-table-head: #eef2ff;
  --gw-table-head-ink: #3730a3;
  --gw-table-head-line: #e0e7ff;
  --gw-bg: #f3f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6eaf0;
  --sidebar-w: 188px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.app-shell {
  margin: 0;
  background: var(--gw-bg);
  font-family: var(--font);
  color: var(--ink);
}

.topbar {
  height: 64px;
  background: var(--gw-header);
  color: var(--ink);
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr 180px;
  align-items: center;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.welcome { color: var(--muted); font-weight: 500; }
.welcome span { color: var(--ink); font-weight: 700; text-transform: capitalize; }

.topbar .hamburger {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.45));
  border: 1px solid rgba(255,255,255,0.9);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 6px 16px rgba(15, 23, 42, 0.06);
}

.topbar-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar-right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; overflow: visible; }
.settings-menu { position: relative; display: inline-flex; }
.settings-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.settings-icon-btn i { font-size: 18px; line-height: 1; }
.settings-icon-btn:hover,
.settings-icon-btn[aria-expanded="true"] {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.45);
}
.settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  z-index: 50;
  padding: 8px 0;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
}
.settings-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 0;
  color: #3c4043;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  box-shadow: none;
}
.settings-dropdown a i { width: 16px; color: #5f6368; text-align: center; }
.settings-dropdown a:hover { background: #f1f3f4; color: #202124; }
.settings-dropdown a.active { background: #e8f0fe; color: #1967d2; }
.settings-dropdown a.active i { color: #1967d2; }

.logout-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.28));
  border: 1px solid rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 8px 18px rgba(15, 23, 42, 0.06);
}
.logout-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.5));
}

.app-body {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--gw-sidebar);
  padding: 18px 12px 24px;
  color: #fff;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.sidebar a i { font-size: 16px; width: 18px; text-align: center; }

.sidebar a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.sidebar a.active {
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
}

.content {
  flex: 1;
  padding: 22px 22px 36px;
  min-width: 0;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: calc(100vh - 120px);
  padding: 18px 18px 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin: -4px 0 16px;
}

.tabs {
  display: flex;
  gap: 22px;
}

.tabs a {
  text-decoration: none;
  color: #6b7280;
  padding: 8px 2px 12px;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.tabs a.active {
  color: #4f46e5;
  font-weight: 700;
  border-bottom-color: #4f46e5;
}

.ip-line {
  font-size: 13px;
  color: #4b5563;
  white-space: nowrap;
}

.ip-line strong { color: #111827; font-weight: 700; }

.filters.is-hidden { display: none; }

.status-tools {
  display: flex;
  justify-content: flex-end;
  margin: 2px 0 2px;
}
.btn-refresh {
  background: #fff;
  color: #2563eb;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 14px;
}
.btn-refresh:hover { background: #eff6ff; }

.status-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
  justify-content: start;
  align-items: start;
  gap: 10px;
  padding: 8px 0 4px;
}
.status-card {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.status-card h2 {
  margin: 0;
  background: #6b7280;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 8px;
}
.status-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.status-col h3 {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 3px 4px;
}
.status-col.vendor h3 { background: #2563eb; }
.status-col.customer { border-left: 1px solid #d1d5db; }
.status-col.customer h3 { background: #a21caf; box-shadow: inset 1px 0 0 #fff; }
.status-trunk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #111827;
}
.status-empty {
  margin: 0;
  padding: 6px 4px;
  text-align: center;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.3;
}
.trunk-state { font-weight: 600; white-space: nowrap; }
.trunk-state.ok { color: #16a34a; }
.trunk-state.wait { color: #dc2626; }
.trunk-state.off { color: #6b7280; }

.filters {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filters .form-select,
.filters .form-control {
  font-size: 13px;
  height: 36px;
  min-width: 170px;
}

.filters .date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.filters .date-wrap input { min-width: 140px; }

.btn-search,
.content-card .btn-primary,
.login-card .btn-search {
  background: var(--gw-table-head);
  border: 1px solid var(--gw-table-head-line);
  color: var(--gw-table-head-ink);
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: none;
}

.btn-search:hover,
.content-card .btn-primary:hover,
.login-card .btn-search:hover {
  color: var(--gw-table-head-ink);
  background: var(--gw-table-head-line);
  border-color: var(--gw-table-head-line);
}

.content-card .btn-outline-secondary,
.content-card .btn-outline-danger {
  background: #fff;
  border: 1px solid var(--gw-table-head-line);
  color: var(--gw-table-head-ink);
  border-radius: 12px;
  box-shadow: none;
}
.content-card .btn-outline-danger { color: #b91c1c; }

.gw-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
}

.gw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}

.gw-table thead th {
  background: var(--gw-table-head);
  color: var(--gw-table-head-ink);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  padding: 12px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--gw-table-head-line);
  border-right: 1px solid var(--gw-table-head-line);
}

.gw-table tbody td {
  padding: 12px;
  border-top: 1px solid #f1f5f9;
  white-space: nowrap;
  color: #334155;
}

.gw-table tbody tr:hover { background: #f8fafc; }

.table-empty { color: #6b7280; }

.table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 0;
  font-size: 13px;
  color: #4b5563;
}

.pager { display: flex; gap: 4px; }

.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--gw-table-head-line);
  border-radius: 10px;
  color: var(--gw-table-head-ink);
  text-decoration: none;
  background: #fff;
  box-shadow: none;
  font-size: 10px;
}

.pager .disabled { opacity: 0.45; pointer-events: none; }

.page-h { font-size: 18px; font-weight: 600; margin: 0 0 14px; }

.login-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top, #312e81, #0b1220 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.login-brand {
  text-align: center;
  color: #4f46e5;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 6px;
}
.otp-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.otp-email {
  text-align: center;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 2px 0 16px;
}
.otp-boxes { display: flex; gap: 8px; justify-content: center; margin: 8px 0 16px; }
.otp-digit {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 22px;
  border-radius: 12px;
  border: 1px solid #dbe3f0;
  background: rgba(255, 255, 255, 0.9);
}

.cell { max-width: 240px; }

body.app-shell.sidebar-collapsed .sidebar { display: none; }
body.app-shell.sidebar-collapsed .topbar { grid-template-columns: 80px 1fr 180px; }

.ent-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}
.ent-top h1 { font-size: 18px; font-weight: 600; margin: 0; }
.ent-top-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: #4b5563;
}
.ent-top-right strong { color: #111; }
.ent-close { color: #6b7280; font-size: 18px; text-decoration: none; }
.ent-top:has(.ent-tabs) {
  align-items: flex-end;
  border-bottom: 1px solid #d5dee8;
  padding-bottom: 0;
}
.ent-tabs {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  flex: 1;
}
.ent-tabs a {
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 2px 10px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.ent-tabs a.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}
.ent-tab {
  color: #4f46e5;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid #4f46e5;
  display: inline-block;
  padding: 0 2px 8px;
  margin-bottom: 14px;
}
.trunk-pane h2 {
  font-size: 10px;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: #374151;
}
.trunk-pane > h2.sheet-title {
  border-bottom: 1px solid #d5dee8;
  padding-bottom: 10px;
}
.sheet-title .ent-highlight {
  color: var(--gw-blue);
  font-weight: 800;
  font-size: 15px;
}
.trunk-pane {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d5dee8;
  border-radius: 8px;
  background: #fff;
}
.pw { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; margin-right: 6px; }
.pw-toggle {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.trunk-table thead th {
  background: var(--gw-table-head);
  color: var(--gw-table-head-ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  border-bottom: 0;
  border-right: 1px solid var(--gw-table-head-line);
}
.trunk-table.lined th,
.trunk-table.lined td {
  border: 1px solid #d7dee8;
}
.trunk-table.lined thead th {
  border-color: var(--gw-table-head-line);
}
.trunk-title {
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0;
  color: #374151;
  font-weight: 700;
}
.vendor-grid { max-width: 980px; margin: 8px auto 0; }
.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #111827;
  text-decoration: none;
}
.check-line {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.ent-page .check-line input {
  width: 16px;
  height: 16px;
  padding: 0;
}
.status-pill {
  display: inline-block;
  min-width: 72px;
  text-align: center;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
}
.status-off, .status-wait {
  display: inline-block;
  min-width: 72px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
}
.status-off { background: #dc2626; color: #fff; }
.status-wait { background: #22d3ee; color: #0f172a; }
.trunk-actions { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.trunk-actions a { color: #475569; text-decoration: none; font-size: 13px; }
.act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--gw-blue) !important;
  font-size: 14px !important;
  line-height: 1;
  text-decoration: none;
}
.act-btn:hover { color: #1e3a8a !important; }
.route-empty { color: #22d3ee; text-align: left; }
.sort-ico { font-size: 9px; opacity: 0.85; margin-left: 4px; }
.route-title-row { margin-bottom: 10px; }
.route-title-row .trunk-title { margin: 0; }
.vendor-sheet {
  margin-top: 14px;
  padding: 12px 12px 4px;
  border: 1px solid #d5dee8;
  border-radius: 8px;
  background: #fff;
}
.vendor-sheet .route-title-row {
  border-bottom: 1px solid #d5dee8;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.vendor-sheet .trunk-pane {
  margin-top: 0;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}
.route-heading { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 14px; }
.route-heading h3 { margin: 0; font-size: 14px; font-weight: 700; color: #111827; }
.route-heading p { margin: 2px 0 0; font-size: 10px; color: #6b7280; }
.route-heading-ico {
  width: 28px; height: 28px; border-radius: 8px; background: var(--gw-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none;
}
.route-panel { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: #fff; }
.route-panel-head {
  background: var(--gw-blue); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 7px 12px; display: flex; align-items: center; gap: 6px;
}
.route-panel-body { padding: 12px; }
.route-panel-body select { max-width: 420px; }
.route-grid-head, .route-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 110px 70px 48px; gap: 10px; align-items: center;
}
.route-grid-head { padding: 8px 12px 4px; font-size: 10px; font-weight: 700; color: #6b7280; }
.route-hint { margin: 4px 12px 8px; text-align: center; color: #6b7280; font-size: 10px; }
.route-grid { padding: 0 12px 10px; }
.route-grid select, .route-grid input { height: 30px; }
.route-priority {
  width: 28px; height: 28px; border-radius: 50%; text-align: center; padding: 0;
  border: 1px solid #d1d5db;
}
.route-clear {
  width: 22px; height: 22px; border: 0; background: transparent; color: #64748b; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.op-checks {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 12px;
  margin-top: 6px; min-height: 148px; max-height: 148px; overflow: auto; padding: 8px 10px;
  border: 1px solid #94a3b8; border-radius: 10px; background: #fff; box-sizing: border-box;
}
.op-checks .route-hint { grid-column: 1 / -1; margin: 24px 0; }
.op-checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 16px; margin: 0; min-width: 0; }
.op-checks label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-page .op-checks input {
  width: 16px; height: 16px; min-width: 16px; flex: 0 0 16px; margin: 0; padding: 0;
  border-radius: 3px;
}
.route-add {
  margin: 0 12px 10px; border: 1px dashed var(--gw-blue); background: var(--gw-table-head); color: var(--gw-table-head-ink);
  border-radius: 8px; height: 30px; padding: 0 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.route-add:disabled { opacity: 0.45; cursor: default; }
.route-total { padding: 8px 12px; background: #f8fafc; border-top: 1px solid #eef2f6; font-size: 10px; font-weight: 700; color: #374151; }
.route-total span { display: inline-flex; align-items: center; margin-left: 6px; background: #e5e7eb; border-radius: 999px; padding: 1px 8px; }
.route-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.route-ghost {
  background: #fff; color: #374151; border: 1px solid #d1d5db; height: 30px; font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; text-decoration: none;
}
.ent-name-line { display: inline-flex; align-items: center; gap: 6px; }
.ent-id-cell .ent-name-line { display: flex; justify-content: space-between; width: 100%; }
.ent-plus {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(226,232,255,0.55));
  color: #4338ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 4px 10px rgba(79, 70, 229, 0.16);
}
.ent-plus:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(199,210,254,0.7));
}
.ent-plus.is-open {
  background: linear-gradient(180deg, rgba(99,102,241,0.95), rgba(79,70,229,0.82));
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.vendor-more { display: none; }
.vendor-more.is-open { display: table-row; }
.more-card {
  width: 240px;
  margin: 2px 0 8px;
  border: 1px solid #dbe3ee;
  background: #fff;
}
.more-head {
  background: var(--gw-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
}
.more-body { padding: 2px 8px 6px; font-size: 10px; color: #111827; }
.more-body div { padding: 4px 0; border-bottom: 1px solid #eef2f6; }
.more-body div:last-child { border-bottom: 0; }
.act-play { color: var(--gw-blue); font-size: 14px; }
.act-square {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #111827;
  border-radius: 2px;
  vertical-align: middle;
}
.ent-page { width: 100%; }
.ent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.ent-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 18px;
  background: #fbfcfe;
  min-width: 0;
}
.ent-panel h2 {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #374151;
  margin: 0 0 12px;
  font-weight: 700;
}
.ent-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 12px;
}
.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-label {
  font-size: 10px;
  font-weight: 600;
  color: #374151;
  line-height: 16px;
  min-height: 16px;
}
.ent-page input,
.ent-page select {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 36px;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 10px;
  font-weight: 400;
  font-size: 13px;
  background: #fff;
  box-sizing: border-box;
}
.ent-page label.field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.ent-page input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.req { color: var(--gw-blue); }
.ent-contact {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #edf0f4;
}
.ent-contact-head {
  border-top: 0;
  padding-bottom: 0;
  align-items: end;
}
.ent-contact-label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.rn-preview-meta { margin: 0 0 8px; font-size: 13px; }
.rn-preview-meta strong { display: inline-block; min-width: 92px; }
.rn-preview-body { margin: 14px 0; font-size: 14px; line-height: 1.5; }
.rn-preview-table { width: max-content; max-width: 100%; border-collapse: collapse; font-size: 12px; }
.rn-preview-table th,
.rn-preview-table td { border: 1px solid #d1d5db; padding: 6px 8px; white-space: nowrap; }
.rn-preview-table th { background: #e8eef8; font-weight: 700; }
.rn-preview-wrap { overflow: auto; margin-top: 8px; }
.rn-address-row { display: flex; flex-direction: column; gap: 0; width: 100%; }
.rn-address-row .field { width: 100%; margin-bottom: 12px; }
.rn-address-row .field input { width: 100%; box-sizing: border-box; }
.rn-mail-hint { margin: 0 0 14px; color: #6b7280; font-size: 12px; line-height: 1.4; }
.rn-body-edit {
  min-height: 180px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.rn-body-edit:focus { outline: 2px solid #93c5fd; }
.mail-preview .field { margin-bottom: 12px; }
.mail-preview .gmail-note { margin: 0 0 14px; }
.mail-preview textarea {
  display: block;
  width: 100%;
  min-height: 280px;
  height: auto;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
  background: #fff;
}
.mail-preview textarea[hidden] { display: none !important; }
.notify-commercial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}
.ent-page .notify-commercial input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.ent-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 900px) {
  .ent-grid, .ent-2, .ent-contact { grid-template-columns: 1fr; }
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.list-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4b5563;
}
.list-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  margin: 0;
}
.list-search input { width: 180px; }
.ent-primary { font-weight: 600; color: #111827; }
.ent-sub { font-size: 10px; color: #6b7280; }
.badge-on, .badge-off {
  display: inline-block;
  min-width: 78px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}
.badge-on { background: #dcfce7; color: #166534; }
.badge-off { background: #f1f5f9; color: #64748b; }
.ent-edit {
  color: #4338ca;
  font-size: 16px;
  text-decoration: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.7);
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(224,231,255,0.45));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 14px rgba(79, 70, 229, 0.12);
}
.ent-edit:hover { background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(199,210,254,0.6)); }
.gw-table tbody tr:nth-child(even) { background: #fcfdff; }
.list-search input, .list-toolbar .form-select {
  border-radius: 10px;
  border-color: var(--line);
}

body.app-shell { font-size: 10px; }
.topbar { height: 52px; padding: 0 12px; }
.topbar-left { font-size: 10px; }
.topbar .hamburger { width: 30px; height: 30px; font-size: 14px; }
.topbar-title { font-size: 12px; }
.logout-btn { font-size: 10px; padding: 5px 10px; }
.app-body { min-height: calc(100vh - 52px); }
.sidebar { padding: 12px 8px 16px; }
.sidebar a { font-size: 10px; padding: 7px 10px; margin-bottom: 2px; }
.sidebar a i { font-size: 12px; }
.content { padding: 12px 12px 20px; }
.content-card { padding: 12px 14px 14px; border-radius: 14px; min-height: calc(100vh - 88px); }
.gw-table { font-size: 10px; }
.gw-table thead th, .trunk-table thead th { font-size: 10px; padding: 5px 6px; }
.gw-table tbody td { padding: 4px 6px; }
.btn-search, .content-card .btn-primary, .login-card .btn-search { height: 30px; font-size: 10px; padding: 0 12px; }
.login-card .btn.btn-search { height: 42px; font-size: 14px; margin-bottom: 12px; }
.list-toolbar-left, .list-search, .table-foot, .ent-tabs a { font-size: 10px; }
.field-label { font-size: 10px; }
.ent-page input, .ent-page select, .form-control, .form-select { height: 30px; font-size: 10px; }
.status-pill, .badge-on, .badge-off { font-size: 10px; }
.trunk-title, .trunk-pane h2, .ent-panel h2, .desc-ico, .ent-sub { font-size: 10px; }
.gw-table-wrap { border-radius: 10px; }

.page-size {
  width: 48px !important;
  min-width: 48px;
  height: 22px !important;
  min-height: 22px;
  padding: 0 16px 0 6px !important;
  font-size: 10px !important;
  line-height: 20px;
  background-size: 10px 8px;
  border-radius: 6px;
}

.btn,
.btn-search,
.logout-btn,
.content-card .btn,
.login-card .btn,
.ent-actions .btn,
.ent-actions a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  gap: 6px;
  vertical-align: middle;
}

#vendorTable.trunk-table thead th,
#vendorTable.trunk-table tbody td,
#customerTable.trunk-table thead th,
#customerTable.trunk-table tbody td {
  border: 1px solid #d5dee8;
}
#vendorTable.trunk-table thead th,
#customerTable.trunk-table thead th {
  border-color: var(--gw-table-head-line);
}

body.app-shell {
  background: #f4f6fb;
  color: #0f172a;
}
.topbar {
  height: 60px;
  padding: 0 16px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid #e7e9f2;
  color: #0f172a;
  grid-template-columns: 1fr auto 1fr;
  backdrop-filter: blur(12px);
}
.topbar-left { font-size: 14px; color: #334155; gap: 10px; }
.header-logo {
  max-width: 180px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 100%);
  min-height: 120px;
  margin: 8px 0 18px;
  padding: 16px;
  border: 1px dashed #dbe3f0;
  border-radius: 12px;
  background: #f8fafc;
}
.logo-preview img {
  max-width: 220px;
  max-height: 80px;
  object-fit: contain;
}
.welcome, .welcome span { color: #64748b; font-weight: 500; text-transform: none; }
.welcome span { color: #0f172a; font-weight: 700; }
.topbar .hamburger {
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  box-shadow: none;
}
.topbar-title { font-size: 16px; color: #0f172a; font-weight: 700; letter-spacing: -0.02em; }
.logout-btn {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  font-size: 13px;
  padding: 7px 12px;
  box-shadow: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.logout-btn:hover { background: #f8fafc; }
.app-body { min-height: calc(100vh - 60px); align-items: stretch; background: #f4f6fb; }
.sidebar {
  width: 232px;
  margin: 0;
  padding: 16px 12px;
  border-radius: 0;
  background: #fff;
  border-right: 1px solid #e7e9f2;
  box-shadow: none;
  backdrop-filter: none;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0f172a;
  padding: 4px 10px 16px;
  letter-spacing: -0.03em;
}
.side-brand i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  font-size: 16px;
}
.sidebar a {
  color: #3f4860;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 10px;
}
.sidebar a:hover { background: #f4f6fb; color: #0f172a; }
.sidebar a i { font-size: 16px; color: #64748b; }
.sidebar a.active {
  background: #d3e3fd;
  color: #1f1f1f;
  box-shadow: none;
  border-radius: 16px;
}
.sidebar a.active i { color: #1f1f1f; }
.nav-parent {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #3f4860;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}
.nav-parent i { font-size: 16px; width: 18px; color: #64748b; text-align: center; }
.nav-parent .nav-chevron { width: auto; margin-left: auto; font-size: 12px; transition: transform 0.15s ease; }
.nav-parent:hover { background: #f4f6fb; color: #0f172a; }
.nav-group.open > .nav-parent { background: #f4f6fb; color: #0f172a; }
.nav-group.open > .nav-parent .nav-chevron { transform: rotate(180deg); }
.nav-sub { display: none; }
.nav-group.open .nav-sub { display: block; }
.nav-sub a { padding-left: 40px; font-size: 13px; font-weight: 600; }
.password-generate { display: flex; align-items: center; gap: 8px; }
.password-generate input { flex: 1 1 auto; min-width: 0; }
.password-generate .btn { flex: 0 0 auto; white-space: nowrap; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 40px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}
.password-toggle:hover { background: #f4f6fb; color: #0f172a; }
.gmail-page { overflow: hidden; }
.gmail-title {
  flex: none;
  margin: 4px 8px 0;
  font-size: 22px;
  font-weight: 400;
  color: #202124;
  letter-spacing: 0;
}
.gmail-tabs {
  flex: none;
  display: flex;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0 8px;
  border-bottom: 1px solid #dadce0;
  overflow-x: auto;
}
.gmail-tabs a {
  flex: 0 0 auto;
  margin: 0 0 -1px;
  padding: 12px 16px 10px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #5f6368;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: none;
}
.gmail-tabs a:hover { background: transparent; color: #1a73e8; }
.gmail-tabs a.active {
  background: transparent;
  color: #1a73e8;
  border-bottom-color: #1a73e8;
  box-shadow: none;
}
.gmail-form {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 12px;
}
.gmail-note {
  margin: 0;
  padding: 14px 8px;
  border-bottom: 1px solid #e8eaed;
  color: #5f6368;
  font-size: 13px;
}
.gmail-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid #e8eaed;
}
.gmail-label { color: #202124; font-size: 14px; font-weight: 400; }
.gmail-value { min-width: 0; }
.gmail-form input:not([type="checkbox"]):not([type="file"]),
.gmail-value input:not([type="checkbox"]):not([type="file"]) {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #202124;
  font-size: 14px;
  box-sizing: border-box;
}
.gmail-value input[type="file"] {
  width: auto;
  max-width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.gmail-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #202124;
  font-size: 14px;
}
.gmail-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.gmail-hint { display: block; margin-top: 6px; color: #5f6368; font-size: 12px; }
.gmail-link-btn {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-size: 14px;
  cursor: pointer;
}
.gmail-link-btn:hover { text-decoration: underline; }
.gmail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 8px 8px;
}
.password-wrap { max-width: 420px; }
@media (max-width: 768px) {
  .gmail-row { grid-template-columns: 1fr; gap: 6px; }
}
.content { padding: 16px; }
.content-card {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 16px;
  padding: 16px;
  min-height: calc(100vh - 92px);
  color: #334155;
  backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.login-body {
  background: #f4f6fb;
}
.ent-list .list-toolbar { margin-bottom: 10px; }
.ent-list .list-toolbar-left,
.ent-list .list-search { font-size: 13px; color: #475569; }
.ent-list .page-size {
  width: 46px !important;
  min-width: 46px;
  height: 28px !important;
  min-height: 28px;
  border-radius: 8px;
  font-size: 12px !important;
  background: #fff;
}
.ent-list .list-search input {
  width: 230px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.ent-list .btn-search {
  height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  background: var(--gw-table-head);
  border-color: var(--gw-table-head-line);
  color: var(--gw-table-head-ink);
  box-shadow: none;
}
.ent-filters { display: flex; gap: 10px; margin-bottom: 12px; }
.ent-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 8px 0 12px;
  height: 34px;
  font-size: 13px;
  color: #334155;
}
.ent-filter select {
  border: 0;
  background: transparent;
  height: 32px;
  font-size: 13px;
  color: #334155;
  padding-right: 22px;
  box-shadow: none;
}
.ent-list .gw-table-wrap {
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
}
.ent-list #entTable { font-size: 13px; background: transparent; }
.ent-list #entTable thead th {
  background: var(--gw-table-head);
  color: var(--gw-table-head-ink);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--gw-table-head-line);
}
.ent-list #entTable thead th:last-child { border-right: 0; }
.ent-list #entTable tbody td {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding: 10px 12px;
  background: transparent;
  color: #475569;
  font-size: 13px;
}
.ent-list #entTable tbody tr:nth-child(even) { background: rgba(255,255,255,0.28); }
.ent-list .ent-primary { font-weight: 700; color: #1e293b; }
.ent-list .badge-on,
.ent-list .badge-off {
  min-width: 74px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 4px 12px;
}
.ent-list .badge-on { background: #22c55e; }
.ent-list .badge-off { background: #94a3b8; }
.ent-list .ent-edit {
  width: auto;
  height: auto;
  padding: 4px 14px;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.ent-list .ent-edit:hover { background: #f8fafc; }
.ent-foot {
  justify-content: flex-end;
  gap: 14px;
  color: #64748b;
  font-size: 13px;
  margin-top: 8px;
}
.ent-pager { display: flex; align-items: center; gap: 8px; }
.ent-page-num {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe3f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-weight: 700;
}
.ent-pager button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #dbe3f0;
  background: #fff;
  color: #64748b;
}
.ent-pager button:disabled { opacity: 0.45; }

.vendor-pane .vendor-search .search-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.vendor-pane .vendor-search input {
  width: 180px;
  height: 32px;
  border-radius: 10px;
  padding-right: 28px;
  background: rgba(255,255,255,0.85);
}
.vendor-pane .vendor-search .bi-search {
  position: absolute;
  right: 8px;
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}
.vendor-pane .status-pill,
.vendor-pane .status-off,
.vendor-pane .status-wait,
.customer-pane .status-pill,
.customer-pane .status-off {
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  min-width: 92px;
  padding: 4px 10px;
}
.vendor-pane .status-pill,
.customer-pane .status-pill { background: #22c55e; }
.vendor-pane .status-off,
.customer-pane .status-off { background: #dc2626; }
.vendor-pane .status-wait { background: #f59e0b; color: #fff; }
.vendor-pane .act-ico,
.customer-pane .act-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gw-table-head);
  color: var(--gw-table-head-ink) !important;
  border: 1px solid var(--gw-table-head-line);
  font-size: 13px;
  text-decoration: none;
}
.vendor-pane .act-ico:hover,
.customer-pane .act-ico:hover { background: var(--gw-table-head-line); color: var(--gw-table-head-ink) !important; }
.trunk-actions .act-form { display: inline-flex; margin: 0; }
button.act-ico { border: 0; padding: 0; cursor: pointer; }
.customer-pane .act-ico.act-rn { width: auto; min-width: 52px; padding: 0 6px; font-size: 9px; font-weight: 700; }
.vendor-pane .act-start,
.customer-pane .act-start { background: #16a34a; color: #fff !important; border-color: #16a34a; }
.vendor-pane .act-stop,
.customer-pane .act-stop { background: #111827; color: #fff !important; border-color: #111827; }
.vendor-pane .act-start:hover,
.customer-pane .act-start:hover { background: #15803d; }
.vendor-pane .act-stop:hover,
.customer-pane .act-stop:hover { background: #000; }
.vendor-pane .pw-toggle { color: var(--gw-blue); }
.vendor-pager { gap: 6px; }
.vendor-pager button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gw-table-head-line);
  border-radius: 8px;
  background: var(--gw-table-head);
  color: var(--gw-table-head-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vendor-pager button:disabled { opacity: 0.4; }

.vendor-pane.trunk-pane,
.customer-pane.trunk-pane {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-top: 4px;
}
.content-card .gw-table-wrap {
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
}
.content-card .gw-table {
  font-size: 13px;
  background: transparent;
  border-collapse: separate;
  border-spacing: 0;
}
.content-card .gw-table thead th {
  background: var(--gw-table-head) !important;
  color: var(--gw-table-head-ink) !important;
  font-size: 13px !important;
  font-weight: 700;
  padding: 11px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--gw-table-head-line) !important;
  border-right: 1px solid var(--gw-table-head-line) !important;
  text-transform: none;
  letter-spacing: 0;
}
.content-card .gw-table thead th:first-child { border-top-left-radius: 10px; }
.content-card .gw-table thead th:last-child {
  border-right: 0 !important;
  border-top-right-radius: 10px;
}
.content-card .gw-table tbody td {
  border: 0 !important;
  border-bottom: 0 !important;
  padding: 12px 14px !important;
  background: transparent;
  color: #475569;
  font-size: 13px !important;
}
.content-card .gw-table tbody td:first-child {
  font-weight: 700;
  color: #1e293b;
}
.content-card .gw-table tbody tr { background: rgba(255,255,255,0.72); }
.content-card .gw-table tbody tr:nth-child(even) { background: rgba(196, 181, 253, 0.38); }
.content-card .gw-table tbody tr.trunk-row:nth-child(4n+1) { background: rgba(255,255,255,0.72); }
.content-card .gw-table tbody tr.trunk-row:nth-child(4n+3) { background: rgba(196, 181, 253, 0.38); }
.content-card .gw-table tbody tr.vendor-more,
.content-card .gw-table tbody tr.trunk-empty,
.content-card .gw-table tbody tr.ent-empty { background: transparent; }
.content-card .gw-table tbody tr:hover { background: rgba(255,255,255,0.9); }
.content-card .badge-on,
.content-card .status-pill {
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  min-width: 74px;
  padding: 4px 12px;
}
.content-card .status-off,
.content-card .badge-off {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  min-width: 74px;
  padding: 4px 12px;
  color: #fff;
}
.content-card .list-toolbar-left,
.content-card .list-search,
.content-card .table-foot { font-size: 13px; color: #475569; }
.content-card .page-size {
  width: 46px !important;
  min-width: 46px;
  height: 28px !important;
  min-height: 28px;
  border-radius: 8px;
  font-size: 12px !important;
  background: #fff;
}
.content-card .list-search input {
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.content-card .btn-search {
  height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  background: var(--gw-table-head);
  border-color: var(--gw-table-head-line);
  color: var(--gw-table-head-ink);
  box-shadow: none;
}
.content-card .btn-search:hover,
.ent-list .btn-search:hover {
  background: var(--gw-table-head-line);
  border-color: var(--gw-table-head-line);
  color: var(--gw-table-head-ink);
}
.content-card .vendor-pane .status-pill,
.content-card .customer-pane .status-pill,
.content-card .vendor-pane .status-off,
.content-card .vendor-pane .status-wait,
.content-card .customer-pane .status-off {
  font-size: 10px;
  font-weight: 700;
  min-width: 72px;
  padding: 1px 8px;
  line-height: 1.35;
  border-radius: 999px;
}
.content-card .vendor-pane .status-pill,
.content-card .customer-pane .status-pill { background: #22c55e; }
.content-card .vendor-pane .status-off,
.content-card .customer-pane .status-off { background: #dc2626; }
.content-card .vendor-pane .status-wait { background: #f59e0b; color: #fff; min-width: 96px; }
.content-card .vendor-pane .act-ico,
.content-card .customer-pane .act-ico {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 11px;
}
.content-card .customer-pane .act-ico.act-rn { width: auto; min-width: 48px; padding: 0 4px; font-size: 8px; }
.content-card .vendor-pane .trunk-actions,
.content-card .customer-pane .trunk-actions { gap: 4px; }
.content-card .vendor-pane .ent-plus,
.content-card .customer-pane .ent-plus {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 10px;
}
.content-card .vendor-pane .btn-search,
.content-card .customer-pane .btn-search {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
}
.content-card .vendor-pane .page-size,
.content-card .customer-pane .page-size {
  width: 40px !important;
  min-width: 40px;
  height: 24px !important;
  min-height: 24px;
  font-size: 11px !important;
}
.content-card .vendor-pane .list-search input,
.content-card .customer-pane .list-search input {
  height: 26px;
  font-size: 12px;
}
.content-card .vendor-pane .vendor-pager button,
.content-card .customer-pane .vendor-pager button {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.content-card .vendor-pane .gw-table tbody td,
.content-card .customer-pane .gw-table tbody td { padding: 3px 8px !important; }

html, body.app-shell { height: 100%; overflow: hidden; }
body.app-shell { display: flex; flex-direction: column; }
.topbar { flex: none; height: 56px; }
.app-body { flex: 1; min-height: 0; overflow: hidden; }
.sidebar { margin: 0; align-self: stretch; overflow: auto; }
.content {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  overflow: hidden;
  padding: 8px 12px 8px 10px;
}
.content-card {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 8px;
}
.content-card > section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ent-list,
.vendor-pane,
.customer-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.content-card > section > form.ent-page,
.content-card > section > .vendor-sheet {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.content-card .gw-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.content-card .gw-table thead th { padding: 7px 10px !important; }
.content-card .gw-table tbody td { padding: 6px 10px !important; }
.content-card .list-toolbar { margin-bottom: 6px; }
.ent-top { margin-bottom: 4px; }
.trunk-pane h2 { margin: 0 0 6px; }
.price-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 16px 12px;
  max-width: 760px;
}
.price-card-head, .price-card-foot { display: flex; align-items: center; justify-content: space-between; }
.price-card-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #111827; }
.price-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin: 16px 0; }
.price-update { height: 38px; border-radius: 8px; background: var(--gw-table-head); color: var(--gw-table-head-ink); border: 1px solid var(--gw-table-head-line); }
.price-table { width: 100%; border-collapse: collapse; border: 1px solid #e5e7eb; border-radius: 8px; }
.price-table th { text-align: left; font-size: 11px; letter-spacing: 0.04em; color: #6b7280; background: #f8fafc; padding: 8px 12px; }
.price-table td { padding: 10px 12px; font-size: 13px; color: #374151; }
.price-empty { text-align: center; color: #9ca3af; }
.price-close { background: #fff; color: #111827; border: 1px solid #d1d5db; border-radius: 8px; height: 34px; padding: 0 16px; }
.price-card-foot { justify-content: flex-end; margin-top: 12px; }
.dash-pager { align-items: center; }
.filters .btn-search { border-radius: 8px; min-width: 88px; }
.asr-badge {
  display: inline-block;
  min-width: 52px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}
.asr-excellent { background: #28A745; }
.asr-good { background: #8BC34A; color: #1a2e05; }
.asr-warn { background: #FFC107; color: #3f2e00; }
.asr-poor { background: #FF9800; color: #3f2200; }
.asr-critical { background: #DC3545; }
.vendor-report .gw-table tbody td {
  font-size: 11px !important;
}
a.dash-count { color: #1d4ed8; font-weight: 700; text-decoration: underline; }
a.dash-count:hover { color: #1e40af; }
.report-scope { margin: 0 0 8px; font-size: 13px; color: #334155; }
.report-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #1e293b; text-decoration: none; font-size: 12px; font-weight: 700;
}
.report-back .back-btn { width: 28px; height: 28px; border-radius: 8px; }
.vendor-report .asr-badge {
  min-width: 44px;
  padding: 1px 6px;
  font-size: 11px;
}
.dash-total td { font-weight: 800; color: #0f172a; }
.an-wrap { overflow-x: auto; }
.an-table { min-width: 1600px; }
.an-nested { min-width: 0; width: 100%; }
.an-nest { margin-left: 0; }
.content-card .gw-table.an-table tr.an-nest-row > td {
  padding: 4px 0 4px 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.an-name-line { display: flex; align-items: center; gap: 8px; min-height: 26px; white-space: nowrap; }
.an-row-find {
  width: 168px; height: 22px; flex: 0 0 168px;
  border: 1px solid #cbd5e1; border-radius: 2px; padding: 0 6px;
  background: #fff; color: #111827; font-size: 12px;
}
.an-tree td:first-child { min-width: 340px; }
.an-tree .tree-toggle {
  width: 18px; height: 18px; margin-right: 8px; padding: 0;
  border: 0; border-radius: 50%; background: #3b82f6; color: #fff;
  font-size: 14px; font-weight: 700; line-height: 18px; cursor: pointer; vertical-align: middle;
}
.an-tree .tree-toggle.is-open { background: #ef4444; }
.an-tree .tree-spacer { display: inline-block; width: 18px; margin-right: 8px; }
.filters { justify-content: flex-end; }
.an-table th:first-child,
.an-table td:first-child { white-space: nowrap; }
.content-card .gw-table.an-table thead th {
  padding: 3px 8px !important;
  font-size: 11px !important;
  line-height: 1.15;
}
.content-card .gw-table.an-table thead th.an-find-cell,
.content-card .gw-table.an-table tbody tr:not(.an-nest-row) > td:first-child {
  min-width: 280px;
  width: 280px;
}
.content-card .gw-table.an-table thead th.an-find-cell {
  padding: 3px 6px !important;
  vertical-align: middle;
}
.content-card .gw-table.an-table tbody tr.drill-row > td:first-child {
  padding-left: calc(8px + var(--an-indent, 28px)) !important;
}
.an-col-find {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 22px;
  margin: 0;
  padding: 0 6px;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  box-sizing: border-box;
}
.an-col-find:focus {
  outline: none;
  border-color: #94a3b8;
}
.an-table thead th { white-space: nowrap; font-size: 11px; }
.content-card .gw-table.an-table tbody tr.an-total td { background: #dbe7ff !important; font-weight: 700; color: #1e3a8a; }
.content-card .gw-table.an-table tbody tr.an-band td { font-weight: 800; color: #fff !important; letter-spacing: .02em; }
.content-card .gw-table.an-table tbody tr.an-band-customer td { background: #f4a24c !important; }
.content-card .gw-table.an-table tbody tr.an-band-vendor td { background: #5b8def !important; }
.an-actions { display: flex; gap: 4px; white-space: nowrap; }
.an-actions button { border: 0; border-radius: 3px; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; cursor: pointer; line-height: 16px; }
.an-csv { background: #3b82f6; }
.an-export { background: #22c55e; }
.an-download { background: #f59e0b; }
.content-card .gw-table tbody tr:not(.drill-head):not(.drill-row):not(.dash-total):not(.an-total):not(.an-band):not(.ent-empty):not(.trunk-empty),
.ent-list #entTable tbody tr.ent-row {
  background: #fff !important;
}
.content-card .gw-table tbody tr:not(.drill-head):not(.drill-row):not(.dash-total):not(.an-total):not(.an-band):not(.ent-empty):not(.trunk-empty) td,
.ent-list #entTable tbody tr.ent-row td {
  background: #fff;
  border-bottom: 1px solid #f1f3f4 !important;
}
.content-card .gw-table tbody tr.row-selected,
.content-card .gw-table tbody tr.row-selected:hover,
.content-card .gw-table tbody tr:hover,
.gw-table tbody tr.row-selected,
.gw-table tbody tr:hover,
.ent-list #entTable tbody tr.row-selected,
.ent-list #entTable tbody tr:hover {
  background: #f2f6fc !important;
}
.content-card .gw-table tbody tr.row-selected td,
.content-card .gw-table tbody tr:hover td,
.gw-table tbody tr.row-selected td,
.gw-table tbody tr:hover td,
.ent-list #entTable tbody tr.row-selected td,
.ent-list #entTable tbody tr:hover td {
  background: #f2f6fc !important;
  box-shadow: inset 0 1px 0 #dadce0, inset 0 -1px 0 #dadce0;
}
.content-card .gw-table tbody tr.row-selected td:first-child,
.content-card .gw-table tbody tr:hover td:first-child,
.gw-table tbody tr.row-selected td:first-child,
.gw-table tbody tr:hover td:first-child,
.ent-list #entTable tbody tr.row-selected td:first-child,
.ent-list #entTable tbody tr:hover td:first-child {
  box-shadow: inset 1px 0 0 #dadce0, inset 0 1px 0 #dadce0, inset 0 -1px 0 #dadce0;
}
.content-card .gw-table tbody tr.row-selected td:last-child,
.content-card .gw-table tbody tr:hover td:last-child,
.gw-table tbody tr.row-selected td:last-child,
.gw-table tbody tr:hover td:last-child,
.ent-list #entTable tbody tr.row-selected td:last-child,
.ent-list #entTable tbody tr:hover td:last-child {
  box-shadow: inset -1px 0 0 #dadce0, inset 0 1px 0 #dadce0, inset 0 -1px 0 #dadce0;
}
.gw-table tbody tr:not(.table-empty):not(:has(.table-empty)) { cursor: pointer; }
.an-table tr[hidden] { display: none !important; }
.an-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  white-space: nowrap;
}
.an-name-line.an-child { padding-left: 176px; }
.an-find {
  width: 168px;
  height: 22px;
  flex: 0 0 168px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  padding: 0 6px;
  background: #fff;
  color: #111827;
  font-size: 12px;
}
.an-band .an-find { border-color: rgba(255, 255, 255, .85); }
.an-table .drill-plus {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  vertical-align: middle;
}
.an-table .drill-plus.is-open { background: #ef4444; color: #fff; }
.drill-plus {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  color: #1e293b;
  font-weight: 700;
  line-height: 14px;
  cursor: pointer;
  vertical-align: middle;
}
.content-card .gw-table.an-table tbody tr.drill-head td {
  background: #eef3ff !important;
  color: #1e3a8a !important;
  font-weight: 700;
}
.gw-table tr.drill-head th {
  background: #eef2ff;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  padding: 6px 8px;
  border-top: 1px solid #dbe3f0;
}
.dash-menu {
  position: fixed;
  z-index: 80;
  min-width: 210px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}
.dash-menu a {
  display: block;
  padding: 6px 14px;
  color: #111827;
  font-size: 13px;
  text-decoration: none;
}
.dash-menu a:hover { background: #f3f4f6; }
.dash-menu a.active { font-weight: 700; }
.dash-menu a.active::before { content: "● "; color: #111827; }
.drill-block { position: relative; margin: 14px 28px 0; border: 1px solid #dbe3f0; border-radius: 10px; overflow: hidden; }
.drill-table thead th:first-child { text-align: left; }
.drill-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.drill-prev { left: -14px; }
.drill-next { right: -14px; }
.ent-list #entTable,
.ent-list #entTable thead th,
.ent-list #entTable tbody td {
  font-size: 11px !important;
}
.ent-list #entTable thead th { padding: 4px 8px !important; }
.ent-list #entTable tbody td { padding: 2px 8px !important; line-height: 1.2; }
.ent-list .badge-on,
.ent-list .badge-off {
  font-size: 10px !important;
  min-width: 58px;
  padding: 1px 8px !important;
}
.ent-list #entTable thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--gw-table-head) !important;
  color: var(--gw-table-head-ink) !important;
}
.gw-table thead th,
.trunk-table thead th,
.price-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}
.report-table thead tr.report-search-row th {
  top: 32px;
  z-index: 4;
  background: #fff !important;
}
.price-table { border-collapse: separate; border-spacing: 0; }
.msg-report { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.msg-report .table-foot { flex-shrink: 0; }
.report-filter-btn {
  width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: var(--gw-table-head); color: var(--gw-table-head-ink); border: 1px solid var(--gw-table-head-line); display: inline-flex; align-items: center; justify-content: center;
}
.report-download { position: relative; }
.report-download-menu {
  position: absolute; top: 32px; left: 0; z-index: 5; min-width: 110px;
  background: #fff; border: 1px solid #dbe3f0; border-radius: 8px; padding: 4px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}
.report-download-menu[hidden] { display: none; }
.report-download-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 6px 10px; border-radius: 6px; font-size: 12px; color: #1e293b;
}
.report-download-menu button:hover { background: var(--gw-table-head); }
.route-sim { display: flex; flex-direction: column; gap: 12px; }
.content-card > section.route-sim { overflow: auto; }
.route-sim-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px;
}
.route-sim-card h2 { margin: 0 0 10px; font-size: 15px; color: #1e3a8a; font-weight: 700; }
.route-sim-grid {
  display: grid; grid-template-columns: 140px 1fr 140px 1fr; gap: 8px 10px; align-items: center;
  margin-bottom: 10px;
}
.route-sim-grid label, .route-sim-card > label { margin: 0; font-size: 12px; color: #334155; }
.route-sim-grid label span { color: #b91c1c; }
.route-sim-foot { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.route-sim-stats { display: flex; gap: 22px; font-size: 12px; color: #64748b; }
.route-sim-stats strong { display: block; color: #0f172a; font-size: 13px; }
.route-sim-test { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font-size: 13px; }
.route-sim-go {
  width: 34px; height: 34px; border: 0; border-radius: 8px; background: #2563eb; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.route-sim-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.route-sim-table th { background: #eef2ff; color: #334155; font-weight: 700; text-align: left; padding: 6px 8px; }
.route-sim-table td { padding: 7px 8px; border-top: 1px solid #e2e8f0; color: #0f172a; }
.route-sim-balance { margin: 0; font-size: 14px; font-weight: 700; color: #1d4ed8; }
.route-sim-note { margin: 0; font-size: 13px; font-weight: 600; }
.sim-ok { color: #15803d; font-weight: 700; }
.sim-bad { color: #b91c1c; font-weight: 700; }
.sim-form { max-width: 520px; display: flex; flex-direction: column; gap: 6px; }
.sim-layout { display: block; }
.sim-confirm {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, 0.35);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.sim-confirm[hidden] { display: none; }
.sim-confirm-card {
  width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}
.sim-confirm-head { background: #f5b400; color: #1e293b; font-weight: 700; padding: 4px 10px; font-size: 12px; }
.sim-confirm p { margin: 6px 10px; color: #334155; font-size: 11px; line-height: 1.3; }
.sim-confirm-block { background: var(--gw-blue); color: #fff; font-weight: 700; padding: 2px 10px; font-size: 11px; }
.sim-confirm-row { display: grid; grid-template-columns: 132px 1fr; gap: 6px; padding: 2px 10px; border-bottom: 1px solid #e2e8f0; font-size: 11px; line-height: 1.3; }
.sim-confirm-row span { color: #334155; }
.sim-confirm-row strong { font-weight: 600; color: #0f172a; word-break: break-word; }
.sim-confirm-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 10px; }
.sim-confirm-actions .btn { font-size: 11px; padding: 3px 10px; }
.sim-route-note { margin: 2px 10px 6px; font-weight: 600; font-size: 11px; }
.sim-allowed-yes { color: #15803d; }
.sim-allowed-no { color: #b91c1c; }
.sim-confirm-actions button:disabled { opacity: 0.55; cursor: not-allowed; }
.sim-form label { margin: 8px 0 0; font-size: 13px; color: #334155; }
.sim-form textarea {
  height: 110px;
  min-height: 110px;
  resize: vertical;
  padding: 8px 10px;
}
.sim-count { text-align: right; font-size: 12px; color: #64748b; margin-top: -2px; }
.sender-confirm {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.sender-confirm[hidden] { display: none; }
.sender-confirm-card {
  width: min(380px, calc(100vw - 32px)); background: #fff; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25); overflow: hidden;
}
.sender-confirm-head { background: var(--gw-blue); color: #fff; font-weight: 700; padding: 8px 14px; }
.sender-confirm-card p { margin: 16px 14px; color: #334155; }
.sender-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 14px 14px; }
.process-pop {
  position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.process-pop[hidden] { display: none; }
.process-card {
  width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
}
.process-head { background: var(--gw-blue); color: #fff; font-weight: 700; padding: 8px 14px; }
.process-card p { margin: 16px 14px 10px; color: #334155; }
.process-track { height: 8px; margin: 0 14px 18px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.process-bar {
  width: 40%; height: 100%; background: var(--gw-blue); border-radius: 99px;
  animation: process-slide 1.1s ease-in-out infinite;
}
@keyframes process-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
.sim-send { display: flex; justify-content: center; margin-top: 14px; }
.msg-filter {
  position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, 0.25);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 90px;
}
.msg-filter[hidden] { display: none; }
.msg-filter-card {
  width: min(640px, calc(100vw - 32px)); background: #fff; border-radius: 8px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25); overflow: hidden;
}
.msg-filter-head { background: var(--gw-blue); color: #fff; font-weight: 700; padding: 8px 14px; }
.msg-filter-body {
  display: grid; grid-template-columns: 210px 1fr; gap: 12px 16px; align-items: center;
  padding: 16px 18px 8px;
}
.msg-filter-body label { margin: 0; font-size: 13px; color: #334155; }
.msg-filter-dates { display: flex; align-items: center; gap: 8px; }
.msg-filter-dates input { flex: 1; }
.msg-filter-actions { display: flex; justify-content: center; gap: 10px; padding: 8px 18px 16px; }
.report-wrap,
.content-card .gw-table-wrap.report-wrap { overflow: auto; }
.report-table { width: max-content; max-width: none; table-layout: auto; font-size: 11px !important; }
.report-table thead th {
  background: var(--gw-table-head) !important; color: var(--gw-table-head-ink) !important; font-size: 11px !important;
  white-space: nowrap; padding: 6px 8px !important; border-right: 1px solid var(--gw-table-head-line);
}
.report-table .report-search-row th { background: #fff !important; padding: 4px !important; }
.report-table .report-search-row input {
  width: 100%; min-width: 88px; height: 24px; border: 1px solid #cbd5e1; border-radius: 4px;
  font-size: 11px; padding: 0 6px;
}
.report-table tbody td { font-size: 11px !important; white-space: nowrap; padding: 3px 8px !important; }

@media (max-width: 768px) {
  html, body.app-shell { height: auto; overflow: auto; }
  .topbar {
    height: auto;
    min-height: 52px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .topbar-left { flex: 1; min-width: 0; font-size: 13px; gap: 8px; }
  .header-logo { max-width: 110px; max-height: 36px; }
  .welcome { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-title { display: none; }
  .logout-btn { font-size: 12px; padding: 6px 10px; }
  .app-body { display: block; min-height: 0; overflow: visible; }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 50;
    top: 8px;
    left: 8px;
    bottom: 8px;
    right: auto;
    width: min(280px, calc(100vw - 16px));
    margin: 0;
    max-height: none;
    border-radius: 16px;
    border: 1px solid #e7e9f2;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  }
  body.app-shell.nav-open .sidebar { display: block; }
  body.app-shell.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.35);
  }
  .content { display: block; padding: 8px; overflow: visible; }
  .content-card,
  .content-card > section,
  .ent-list,
  .vendor-pane,
  .customer-pane,
  .content-card > section > form.ent-page,
  .content-card > section > .vendor-sheet {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .content-card { padding: 10px; border-radius: 16px; }
  .content-card .gw-table-wrap,
  .report-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
  .ent-grid, .ent-2, .ent-contact, .msg-filter-body { grid-template-columns: 1fr !important; }
  .ent-top, .vendor-sheet .route-title-row, .list-toolbar { flex-wrap: wrap; }
  .ent-tabs { flex-wrap: wrap; }
  .filters { justify-content: stretch; }
  .filters .form-select,
  .filters .form-control,
  .filters .date-wrap,
  .filters .date-wrap input,
  .list-search,
  .list-search input,
  .ent-list .list-search input { width: 100%; min-width: 0; max-width: 100%; }
  .sim-form { max-width: 100%; }
  .msg-filter { padding: 12px; align-items: flex-start; }
  .msg-filter-card { width: 100%; max-height: calc(100vh - 24px); overflow: auto; }
  .msg-filter-dates { flex-wrap: wrap; }
  .login-body { padding: 16px; align-items: flex-start; }
  .login-card { margin: 0; padding: 22px 16px; }
}

.content-card .gw-table tbody tr.drill-head td {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.content-card .gw-table tbody tr.drill-head td,
.content-card .gw-table tbody tr.drill-row td {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.content-card .gw-table tbody tr.drill-head.depth-0 td,
.content-card .gw-table tbody tr.drill-row.depth-0 td { border-top-color: #a5b4fc; border-bottom-color: #a5b4fc; }
.content-card .gw-table tbody tr.drill-head.depth-1 td,
.content-card .gw-table tbody tr.drill-row.depth-1 td { border-top-color: #6ee7b7; border-bottom-color: #6ee7b7; }
.content-card .gw-table tbody tr.drill-head.depth-2 td,
.content-card .gw-table tbody tr.drill-row.depth-2 td { border-top-color: #fdba74; border-bottom-color: #fdba74; }
.content-card .gw-table tbody tr.drill-head.depth-3 td,
.content-card .gw-table tbody tr.drill-row.depth-3 td { border-top-color: #f9a8d4; border-bottom-color: #f9a8d4; }
.content-card .gw-table tbody tr.drill-head.depth-0 td:first-child,
.content-card .gw-table tbody tr.drill-row.depth-0 td:first-child { border-left: 3px solid #4f46e5 !important; }
.content-card .gw-table tbody tr.drill-head.depth-0 td:last-child,
.content-card .gw-table tbody tr.drill-row.depth-0 td:last-child { border-right: 3px solid #4f46e5 !important; }
.content-card .gw-table tbody tr.drill-head.depth-1 td:first-child,
.content-card .gw-table tbody tr.drill-row.depth-1 td:first-child { border-left: 3px solid #059669 !important; }
.content-card .gw-table tbody tr.drill-head.depth-1 td:last-child,
.content-card .gw-table tbody tr.drill-row.depth-1 td:last-child { border-right: 3px solid #059669 !important; }
.content-card .gw-table tbody tr.drill-head.depth-2 td:first-child,
.content-card .gw-table tbody tr.drill-row.depth-2 td:first-child { border-left: 3px solid #ea580c !important; }
.content-card .gw-table tbody tr.drill-head.depth-2 td:last-child,
.content-card .gw-table tbody tr.drill-row.depth-2 td:last-child { border-right: 3px solid #ea580c !important; }
.content-card .gw-table tbody tr.drill-head.depth-3 td:first-child,
.content-card .gw-table tbody tr.drill-row.depth-3 td:first-child { border-left: 3px solid #db2777 !important; }
.content-card .gw-table tbody tr.drill-head.depth-3 td:last-child,
.content-card .gw-table tbody tr.drill-row.depth-3 td:last-child { border-right: 3px solid #db2777 !important; }
.content-card .gw-table tbody tr.drill-head.depth-0 td { background: #eef2ff !important; color: #3730a3; }
.content-card .gw-table tbody tr.drill-head.depth-1 td { background: #ecfdf5 !important; color: #047857; }
.content-card .gw-table tbody tr.drill-head.depth-2 td { background: #fff7ed !important; color: #c2410c; }
.content-card .gw-table tbody tr.drill-head.depth-3 td { background: #fdf2f8 !important; color: #be185d; }
.content-card .gw-table tbody tr.row-selected:not(.drill-head):not(.drill-row) td,
.content-card .gw-table tbody tr:hover:not(.drill-head):not(.drill-row) td,
.ent-list #entTable tbody tr.row-selected td,
.ent-list #entTable tbody tr:hover td {
  background: #f2f6fc !important;
  box-shadow: inset 0 1px 0 #dadce0, inset 0 -1px 0 #dadce0;
}
.content-card .gw-table tbody tr.row-selected:not(.drill-head):not(.drill-row) td:first-child,
.content-card .gw-table tbody tr:hover:not(.drill-head):not(.drill-row) td:first-child,
.ent-list #entTable tbody tr.row-selected td:first-child,
.ent-list #entTable tbody tr:hover td:first-child {
  box-shadow: inset 1px 0 0 #dadce0, inset 0 1px 0 #dadce0, inset 0 -1px 0 #dadce0;
}
.content-card .gw-table tbody tr.row-selected:not(.drill-head):not(.drill-row) td:last-child,
.content-card .gw-table tbody tr:hover:not(.drill-head):not(.drill-row) td:last-child,
.ent-list #entTable tbody tr.row-selected td:last-child,
.ent-list #entTable tbody tr:hover td:last-child {
  box-shadow: inset -1px 0 0 #dadce0, inset 0 1px 0 #dadce0, inset 0 -1px 0 #dadce0;
}
.content-card .gw-table tbody tr:hover:has(.table-empty) td,
.content-card .gw-table tbody tr.ent-empty:hover td,
.content-card .gw-table tbody tr.trunk-empty:hover td,
.ent-list #entTable tbody tr.ent-empty:hover td {
  background: transparent !important;
  box-shadow: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  appearance: none;
  -webkit-appearance: none;
  opacity: 1;
  cursor: pointer;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

.audit-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px 12px;
  margin-bottom: 14px;
}
.audit-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}
.audit-filters .form-control,
.audit-filters .form-select {
  height: 36px;
  font-size: 13px;
}
.audit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 16px;
  font-size: 13px;
}
.audit-meta strong { color: #111827; }
.audit-session-link { color: #4338ca; text-decoration: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.audit-session-link:hover { text-decoration: underline; }
.audit-status-ok { color: #047857; font-weight: 700; }
.audit-status-bad { color: #b91c1c; font-weight: 700; }
.audit-timeline { list-style: none; margin: 0; padding: 0; }
.audit-timeline li {
  display: grid;
  grid-template-columns: 190px 150px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}
.audit-timeline .when { color: #6b7280; }
@media (max-width: 900px) {
  .audit-filters { grid-template-columns: 1fr 1fr; }
  .audit-timeline li { grid-template-columns: 1fr; gap: 2px; }
}
.rate-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rate-head h2 { margin: 0; font-size: 16px; }
.rate-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.rate-upload input[type=file] { font-size: 12px; max-width: 320px; }
.rate-note { margin: 0 0 12px; font-size: 12px; color: #64748b; }
.rate-table { font-size: 12px; white-space: nowrap; }
.rate-table td, .rate-table th { padding: 6px 8px; }
.content-card > section.customer-portal { overflow: auto; }
.portal-lead { margin: 0 0 12px; color: #475569; font-size: 14px; }
.portal-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.portal-metric {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 14px 12px 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.portal-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}
.portal-metric i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 10px;
}
.portal-metric span { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 2px; }
.portal-metric strong { font-size: 26px; line-height: 1.1; font-weight: 700; }
.portal-metric.tone-total { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.portal-metric.tone-total::before { background: #4f46e5; }
.portal-metric.tone-total i { background: #e0e7ff; color: #4338ca; }
.portal-metric.tone-sent { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.portal-metric.tone-sent::before { background: #2563eb; }
.portal-metric.tone-sent i { background: #dbeafe; color: #1d4ed8; }
.portal-metric.tone-fail { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.portal-metric.tone-fail::before { background: #dc2626; }
.portal-metric.tone-fail i { background: #fee2e2; color: #b91c1c; }
.portal-metric.tone-pending { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.portal-metric.tone-pending::before { background: #d97706; }
.portal-metric.tone-pending i { background: #fef3c7; color: #b45309; }
.portal-metric.tone-delivered { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.portal-metric.tone-delivered::before { background: #059669; }
.portal-metric.tone-delivered i { background: #d1fae5; color: #047857; }
.portal-metric.tone-undelivered { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.portal-metric.tone-undelivered::before { background: #ea580c; }
.portal-metric.tone-undelivered i { background: #ffedd5; color: #c2410c; }
.portal-metric.tone-rejected { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.portal-metric.tone-rejected::before { background: #e11d48; }
.portal-metric.tone-rejected i { background: #ffe4e6; color: #be123c; }
.portal-metric.tone-balance { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }
.portal-metric.tone-balance::before { background: #0d9488; }
.portal-metric.tone-balance i { background: #ccfbf1; color: #0f766e; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.portal-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 12px; }
.portal-filters label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.portal-account { display: grid; grid-template-columns: 180px 1fr; gap: 8px 12px; max-width: 640px; font-size: 14px; }
.portal-account dt { color: #64748b; margin: 0; }
.portal-account dd { margin: 0; }
@media (max-width: 1100px) {
  .portal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .portal-metrics { grid-template-columns: 1fr; }
  .portal-account { grid-template-columns: 1fr; }
}

.nav-parent { font-family: inherit; }
.content-card > section.obs-page { display: block; overflow: auto; }
.obs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.obs-crumb h2 { margin: 0; font-size: 16px; font-weight: 700; color: #1e3a8a; }
.obs-crumb h2 span { color: #64748b; font-weight: 600; }
.obs-records { display: inline-block; margin-left: 8px; color: #64748b; font-size: 12px; }
.obs-head-actions, .obs-export, .obs-actions { display: flex; align-items: center; gap: 6px; }
.obs-btn {
  height: 28px; padding: 0 12px; border-radius: 4px; border: 1px solid #2563eb;
  background: #fff; color: #2563eb; font-size: 12px; font-weight: 600; cursor: pointer;
}
.obs-btn-solid { background: #2563eb; color: #fff; }
.obs-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; margin-bottom: 10px; }
.obs-tabs a {
  padding: 8px 16px; color: #475569; text-decoration: none; font-weight: 600; font-size: 13px;
  border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0;
}
.obs-tabs a.active { color: #1d4ed8; background: #fff; border-color: #e2e8f0; }
.obs-export { margin-bottom: 8px; }
.obs-table-wrap { overflow: auto; border: 1px solid #dbe3f0; }
.obs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.obs-table th, .obs-table td { border: 1px solid #e2e8f0; padding: 6px 8px; text-align: left; white-space: nowrap; }
.obs-table thead tr:first-child th { background: #2f6fed; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.obs-search-row th { background: #f8fafc; padding: 4px; }
.obs-search-row input { width: 100%; min-width: 72px; height: 24px; border: 1px solid #cbd5e1; border-radius: 3px; font-size: 11px; padding: 0 6px; }
.obs-online { color: #16a34a; font-weight: 700; }
.obs-offline { color: #dc2626; font-weight: 700; }
.obs-actions form { margin: 0; }
.obs-start, .obs-stop {
  height: 22px; padding: 0 8px; border: 0; border-radius: 3px; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer;
}
.obs-start { background: #16a34a; }
.obs-stop { background: #dc2626; }
.obs-ip[title]:not([title=""]) { cursor: help; border-bottom: 1px dotted #64748b; }
.obs-foot { margin-top: 8px; color: #64748b; font-size: 12px; }
.obs-empty td { text-align: center; color: #64748b; padding: 16px; }

.sig-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin: 8px 0 14px; }
.sig-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.sig-fields input { height: 32px; border: 1px solid #dbe3f0; border-radius: 4px; padding: 0 8px; font-size: 13px; text-transform: none; font-weight: 500; color: #0f172a; }
.sig-start { height: 32px; padding: 0 18px; border: 0; border-radius: 4px; background: #16a34a; color: #fff; font-weight: 700; cursor: pointer; }
.sig-empty { margin: 0 0 8px; color: #64748b; font-size: 13px; }
.sig-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; color: #475569; font-size: 13px; }
.sig-toolbar-left, .sig-search, .sig-pager { display: flex; align-items: center; gap: 6px; }
.sig-toolbar select, .sig-search input { height: 28px; border: 1px solid #dbe3f0; border-radius: 4px; padding: 0 8px; }
.sig-search input { width: 180px; }
.sig-note, .sig-error { display: block; font-size: 11px; }
.sig-note { color: #2563eb; }
.sig-error { color: #dc2626; }
.sig-download { display: inline-flex; width: 26px; height: 22px; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 3px; color: #334155; text-decoration: none; }
.sig-table tbody tr.is-selected { background: #dbeafe; }
.sig-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: #64748b; font-size: 12px; }
.sig-pager button, .sig-pager span { height: 28px; min-width: 28px; padding: 0 10px; border: 1px solid #dbe3f0; background: #fff; border-radius: 4px; }
.sig-pager span { display: inline-flex; align-items: center; justify-content: center; background: #2563eb; color: #fff; border-color: #2563eb; }
.sig-pager button:disabled { opacity: 0.45; }
@media (max-width: 800px) { .sig-fields { grid-template-columns: 1fr; } }

.pcap-clear { height: 28px; padding: 0 14px; border: 0; border-radius: 4px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.pcap-wrap { overflow: auto; border: 1px solid #e2e8f0; border-radius: 6px; }
.pcap-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pcap-table th, .pcap-table td { border-bottom: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; white-space: nowrap; }
.pcap-table thead tr:first-child th { background: #f8fafc; color: #334155; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pcap-search th { background: #fff; padding: 6px; }
.pcap-search input { width: 100%; min-width: 120px; height: 28px; border: 1px solid #cbd5e1; border-radius: 4px; padding: 0 8px; font-size: 12px; }
.pcap-table tbody tr:nth-child(even) { background: #f8fafc; }
.pcap-none { text-align: center; color: #64748b; padding: 16px; }
.pcap-gap { border: 0; background: transparent; min-width: 16px; }
#pcapPages { display: inline-flex; gap: 4px; align-items: center; }
#pcapPages button { height: 28px; min-width: 28px; padding: 0 8px; border: 1px solid #dbe3f0; background: #fff; border-radius: 4px; cursor: pointer; }
#pcapPages button.is-current { background: #2563eb; color: #fff; border-color: #2563eb; }

a.pcap-clear { display: inline-flex; align-items: center; text-decoration: none; }
.pcap-open { display: flex; gap: 6px; }
.pcap-meta { margin: 0 0 8px; color: #64748b; font-size: 12px; }
.pcap-packet { cursor: pointer; }
.pcap-packet.is-selected { background: #dbeafe; }
.pcap-detail pre { margin: 0; font-size: 11px; line-height: 1.45; white-space: pre; color: #0f172a; }

a.obs-btn { display: inline-flex; align-items: center; text-decoration: none; }
.content-card > section.obs-page.gs-page { display: flex; flex-direction: column; overflow: hidden; gap: 8px; }
.gs-top { display: flex; align-items: end; gap: 16px; flex: none; }
.gs-top .obs-crumb { flex: none; }
.gs-top .gs-form { flex: 1; min-width: 0; }
.gs-page .gs-hit { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; overflow: hidden; }
.gs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 14px; flex: none; }
.gs-facts div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gs-facts span { color: #64748b; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.gs-facts strong { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-page .gs-status { flex: none; margin: 0; }
.gs-page .gs-pair:last-child { flex: 1; min-height: 0; }
.gs-page .gs-card { min-height: 0; overflow: hidden; padding: 8px 10px; }
.gs-page .gs-card h3 { margin: 0 0 4px; font-size: 13px; }
.gs-page .gs-card dl { grid-template-columns: 148px minmax(0, 1fr); gap: 3px 10px; font-size: 12px; }
.gs-page .gs-status .gs-card dl { grid-template-columns: 108px minmax(0, 1fr); }
.gs-page .gs-card dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-form { display: flex; flex-wrap: nowrap; align-items: end; gap: 16px; margin: 0 0 8px; width: 100%; }
.gs-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.gs-form select, .gs-form input { height: 32px; border: 1px solid #dbe3f0; border-radius: 4px; padding: 0 8px; font-size: 13px; font-weight: 500; color: #0f172a; text-transform: none; }
.gs-query { flex: 1 1 720px; min-width: min(100%, 520px); }
.gs-query input { width: 100%; box-sizing: border-box; }
.gs-error { margin: 0 0 12px; color: #b91c1c; font-size: 13px; }
.gs-empty { margin: 0; color: #64748b; font-size: 13px; }
.gs-hit { margin-bottom: 18px; }
.gs-msg { display: grid; grid-template-columns: 210px 1fr; gap: 4px 10px; margin: 0 0 10px; font-size: 13px; }
.gs-page .gs-text {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gs-msg dt { margin: 0; color: #64748b; }
.gs-msg dd { margin: 0; }
.gs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gs-status { margin-bottom: 16px; }
.gs-card { border: 1px solid #dbe3f0; border-radius: 8px; padding: 12px 14px; background: #fff; }
.gs-card h3 { margin: 0 0 10px; font-size: 14px; color: #1e3a8a; }
.gs-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
.gs-card dt { margin: 0; color: #64748b; }
.gs-card dd { margin: 0; word-break: break-word; }
.gs-missing { margin: 0; color: #64748b; font-size: 13px; }
@media (max-width: 900px) {
  .gs-pair, .gs-msg, .gs-card dl { grid-template-columns: 1fr; }
}
.gs-page .gs-pair { gap: 8px; grid-template-columns: 1fr 1fr; }
.gs-columns { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gs-page .gs-col { overflow: auto; }
.gs-page .gs-col h3 { font-size: 14px; }
.gs-page .gs-section, .gs-page .gs-span { grid-column: 1 / -1; }
.gs-page .gs-section { margin-top: 4px; color: #1e3a8a; font-weight: 700; }
.gs-page .gs-card dd.gs-text { white-space: normal; }

.euro-field { position: relative; }
.euro-field .euro-fixed {
  position: absolute;
  left: 12px;
  top: 0;
  height: 36px;
  display: flex;
  align-items: center;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}
.ent-page .euro-field input { padding-left: 28px; }

.report-columns { position: relative; margin-left: auto; }
.report-columns-menu {
  position: absolute; top: 32px; right: 0; z-index: 8; width: 280px; max-height: 360px; overflow: auto;
  background: #fff; border: 1px solid #dbe3f0; border-radius: 8px; padding: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}
.report-columns-menu[hidden] { display: none; }
.report-columns-menu label {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 500; color: #1e293b; cursor: pointer; text-transform: none;
}
.report-columns-menu label:hover { background: var(--gw-table-head); }
.report-columns-menu input { margin: 0; flex: 0 0 auto; }
.report-table .col-off { display: none !important; }
html { zoom: 0.75; }

.content-card:has(.ops-dash) { background: #f3f6fb; border-color: transparent; box-shadow: none; }
.content-card > section.ops-dash { overflow-x: hidden; overflow-y: auto; }
.content-card > section.ops-dash > * { flex-shrink: 0; }
.ops-dash { display: flex; flex-direction: column; gap: 14px; color: #334155; }
.ops-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ops-top h2 { margin: 0; font-size: 28px; font-weight: 650; color: #1e293b; letter-spacing: -0.03em; }
.ops-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ops-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid #6ee7b7; border-radius: 6px; background: #fff; color: #059669;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.ops-pill b { font-weight: 700; }
.ops-tools select, .ops-select {
  height: 32px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #334155;
  padding: 0 8px; font-size: 13px; max-width: 280px;
}
.ops-tools button {
  height: 32px; border: 0; border-radius: 6px; background: #2563eb; color: #fff;
  font-weight: 700; padding: 0 16px; cursor: pointer;
}
.ops-kpis { display: flex; gap: 10px; align-items: stretch; }
.ops-stack { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ops-kpi {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #fff; border-radius: 4px; padding: 0 12px; min-height: 36px;
}
.ops-kpi span { font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.ops-kpi strong { font-size: 22px; font-weight: 700; line-height: 1; }
.kpi-attempts, .kpi-cost { flex: 1.15; min-height: 80px; }
.kpi-attempts { background: #2f7cf6; }
.kpi-success { background: #2fbe63; }
.kpi-delivered { background: #18a36a; }
.kpi-customers, .kpi-vendors { background: #f5a524; }
.kpi-revenue { background: #e5368b; }
.kpi-margin { background: #d62486; }
.kpi-asr { background: #8b95a7; }
.kpi-dlr { background: #7d8b9e; }
.kpi-cost { background: linear-gradient(90deg, #1f9d57, #17a34a); }
.ops-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ops-panel { background: #fff; border: 1px solid #e7edf5; border-radius: 8px; padding: 12px 14px 10px; min-height: 168px; }
.ops-panel h3 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #607089; }
.ops-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ops-panel-head h3 { margin: 0; }
.ops-center-tools { display: grid; grid-template-columns: 1fr auto 160px; align-items: center; }
.ops-end-tools { display: flex; }
.ops-end-tools .ops-modes { margin-left: auto; }
.ops-modes { display: inline-flex; border-radius: 4px; overflow: hidden; }
.ops-modes button { height: 24px; border: 0; padding: 0 10px; font-size: 12px; font-weight: 700; background: #e8eef6; color: #64748b; cursor: pointer; }
.ops-modes button.is-on { background: #2563eb; color: #fff; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ops-table th {
  text-align: left; text-transform: uppercase; color: #64748b; font-weight: 700; font-size: 10px;
  background: #f8fafc; border-top: 1px solid #e7edf5; border-bottom: 1px solid #e7edf5; padding: 7px 6px;
}
.ops-table th::after { content: " \25BE"; color: #94a3b8; font-size: 9px; }
.ops-table th.ops-th-pick { width: 34%; }
.ops-table th.ops-th-pick::after { content: none; }
.ops-head-select {
  width: 100%; max-width: 190px; height: 24px; border: 1px solid #e2e8f0; border-radius: 4px;
  background: #fff; color: #64748b; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 0 4px;
}
.ops-table td { padding: 8px 6px; color: #64748b; }
.ops-empty { text-align: center; color: #94a3b8; border-bottom: 1px solid #cbd5e1; }
.ops-plot { display: grid; grid-template-columns: 28px 1fr; height: 210px; margin-top: 4px; }
.ops-y { display: flex; flex-direction: column; justify-content: space-between; color: #94a3b8; font-size: 11px; }
.ops-area { position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.ops-area i { display: block; border-top: 1px solid #e8eef5; height: 0; }
.ops-copy { margin: 8px 0 0; text-align: center; color: #93a3b8; font-size: 12px; }
@media (max-width: 1200px) {
  .ops-kpis, .ops-boards { display: grid; grid-template-columns: 1fr; }
  .ops-top { align-items: flex-start; flex-direction: column; }
}
.start-toast {
  position: fixed; top: 16px; right: 16px; z-index: 2000; max-width: 420px;
  padding: 12px 16px; border-radius: 8px; background: #fef2f2; color: #991b1b;
  border: 1px solid #fecaca; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  font-size: 14px; line-height: 1.4;
}
.content-card > section,
.content-card .customer-pane,
.content-card .customer-pane .gw-table-wrap {
  min-width: 0;
  max-width: 100%;
}
.content-card #customerTable.trunk-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.content-card #customerTable th:nth-child(1),
.content-card #customerTable td:nth-child(1) { width: 16%; }
.content-card #customerTable th:nth-child(2),
.content-card #customerTable td:nth-child(2) { width: 14%; }
.content-card #customerTable th:nth-child(4),
.content-card #customerTable td:nth-child(4) { width: 132px; }
.content-card #customerTable th:nth-child(5),
.content-card #customerTable td:nth-child(5) { width: 232px; }
.content-card #customerTable td:nth-child(1),
.content-card #customerTable td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.content-card #customerTable td.trunk-actions {
  display: table-cell;
  white-space: nowrap;
  overflow: visible;
}
.content-card #customerTable td.trunk-actions .act-ico,
.content-card #customerTable td.trunk-actions .act-form {
  margin: 0 2px 0 0;
  vertical-align: middle;
}
.content-card #customerTable td.trunk-actions .act-form { display: inline-flex; }
.content-card #customerTable td.trunk-actions .act-form:last-child { margin-right: 0; }
