/* Konto */
:root {
  --brand-50: #f8fafc;
  --brand-100: #e2e8f0;
  --brand-500: #64748b;
  --brand-600: #334155;
  --brand-700: #0f172a;
  --brand-800: #020617;
  --brand-900: #020617;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-border: #e2e8f0;
  --sidebar: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-active: #334155;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #f8fafc;
  --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-card-hover: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--surface-border); }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--surface-muted);
  color: #0f172a;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
svg.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.h-4, svg.h-4, .w-4, svg.w-4 { width: 1rem; height: 1rem; }
.h-5, svg.h-5, .w-5, svg.w-5 { width: 1.25rem; height: 1.25rem; }
.h-12, svg.h-12, .w-12, svg.w-12 { width: 2.75rem; height: 2.75rem; }

.brand-mark {
  width: 32px; height: 32px; object-fit: contain; flex-shrink: 0;
  background: #fff; border-radius: .45rem;
}
.logo-login {
  height: 72px; width: auto; max-width: 180px; object-fit: contain; margin: 0 auto;
}
.logo-driver {
  width: 56px; height: 56px; object-fit: contain; border-radius: .75rem; margin: 0 auto;
}

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 15.5rem;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
}
.sidebar-brand {
  height: 3.5rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 0 1rem;
  border-bottom: 1px solid #1e293b;
}
.sidebar-brand img,
.sidebar-brand .brand-mark {
  background: none;
}
.sidebar-brand .title { color: #fff; font-weight: 600; font-size: .8125rem; line-height: 1.2; }
.sidebar-brand .sub { font-size: .7rem; color: var(--sidebar-text); }
.sidebar nav { flex: 1; overflow-y: auto; padding: .5rem .55rem; }
.sidebar nav a {
  display: flex; align-items: center; gap: .65rem;
  padding: .48rem .65rem; border-radius: .5rem;
  font-size: .8125rem; font-weight: 500;
  color: var(--sidebar-text);
}
.sidebar nav a:hover { background: var(--sidebar-hover); color: #e2e8f0; }
.sidebar nav a.active { background: var(--sidebar-active); color: var(--sidebar-text-active); box-shadow: inset 3px 0 0 #f8fafc; }
.sidebar nav a svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.sidebar svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0;
}
.sidebar-footer { border-top: 1px solid #1e293b; padding: .75rem .85rem; }
.user-box { background: var(--sidebar-hover); border-radius: .5rem; padding: .55rem .65rem; margin-bottom: .5rem; }
.user-box .name { color: #fff; font-size: .875rem; font-weight: 500; }
.user-box .meta { font-size: .75rem; color: var(--sidebar-text); }
.sidebar-footer form { margin: 0; }
.btn-logout {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 8px;
  width: auto !important;
  max-width: 100%;
  height: 32px !important;
  max-height: 32px !important;
  min-height: 32px !important;
  overflow: hidden !important;
  background: none;
  border: 0;
  color: var(--sidebar-text);
  cursor: pointer;
  padding: 0 10px !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-sizing: border-box;
}
.btn-logout svg,
.sidebar .btn-logout svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}
.btn-logout:hover { background: var(--sidebar-hover); color: #e2e8f0; }

.content { margin-left: 15.5rem; flex: 1; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  min-height: 3.5rem; height: auto; display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1.5rem; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-border);
}
.topbar-right { display: flex; align-items: center; gap: .85rem; }
.icon-btn {
  width: 2.25rem; height: 2.25rem; border: 0; background: none; color: #64748b;
  border-radius: .5rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: #f1f5f9; color: #0f172a; }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.page-title { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.page-subtitle { font-size: .8125rem; color: #64748b; margin: .1rem 0 0; }
.main { padding: 1.25rem 1.5rem 2rem; }
.page { max-width: 92rem; width: 100%; }

.card {
  background: #fff; border: 1px solid var(--surface-border); border-radius: .75rem;
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 1.25rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-header h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.card-header p { margin: .25rem 0 0; font-size: .8rem; color: #64748b; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { padding: 1rem 1.1rem; }
.stat-card .label { font-size: .8rem; font-weight: 500; color: #64748b; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat-card .value.brand { color: var(--brand-700); }
.stat-card .value.blue { color: #1d4ed8; }
.stat-card .value.purple { color: #6d28d9; }
.stat-card .value.amber { color: #b45309; }
.stat-card .sub { font-size: .75rem; color: #94a3b8; margin-top: .25rem; }
.stat-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.stat-icon svg { width: 16px !important; height: 16px !important; }
.stat-icon.brand { background: var(--brand-50); color: var(--brand-700); }
.stat-icon.blue { background: #eff6ff; color: #1d4ed8; }
.stat-icon.purple { background: #f5f3ff; color: #6d28d9; }
.stat-icon.amber { background: #fffbeb; color: #b45309; }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.doc-with-file { grid-template-columns: minmax(22rem, .9fr) minmax(26rem, 1.25fr); align-items: start; }
.file-frame { border: 1px solid var(--surface-border); border-radius: 12px; overflow: hidden; background: #fff; }
.file-frame iframe, .file-frame img { width: 100%; height: min(78vh, 920px); border: 0; display: block; background: #fff; }
.file-frame-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; gap: 1rem; }

table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { text-align: left; font-weight: 500; color: #64748b; padding: 0 0 .75rem; border-bottom: 1px solid var(--surface-border); }
td { padding: .75rem 0; border-bottom: 1px solid var(--surface-border); vertical-align: middle; }
tr:hover td { background: #f8fafc; }
.table-wrap { overflow-x: auto; }

.badge {
  display: inline-flex; align-items: center; border-radius: 9999px;
  padding: .15rem .65rem; font-size: .75rem; font-weight: 500;
}
.badge-muted { background: #f1f5f9; color: #334155; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-brand { background: var(--brand-100); color: var(--brand-800); }
.hub-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; padding: .15rem .45rem; border-radius: .35rem;
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}

.btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; padding: 0 12px; height: 32px;
  font-size: 13px; font-weight: 500; line-height: 1;
  cursor: pointer; border: 1px solid transparent; text-decoration: none;
  white-space: nowrap; box-sizing: border-box;
}
.btn-primary svg, .btn-secondary svg, .btn-ghost svg, .btn-danger svg, .link-danger svg,
a.btn-primary svg, a.btn-secondary svg, a.btn-sm svg {
  width: 14px !important; height: 14px !important; max-width: 14px; max-height: 14px; flex-shrink: 0;
}
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); }
.btn-secondary { background: #fff; color: #334155; border-color: var(--surface-border); }
.btn-secondary:hover { background: #f8fafc; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { background: none; color: #475569; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
button:disabled, .btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--surface-border); background: #fff;
  border-radius: .5rem; padding: .5rem .75rem; font-size: .875rem;
}
.input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgb(34 197 94 / .25); }
label.field { display: block; font-size: .875rem; font-weight: 500; color: #334155; margin-bottom: .35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: .75rem; margin-top: 1.25rem; }

.flash { border-radius: .5rem; padding: .75rem 1rem; font-size: .875rem; margin-bottom: 1rem; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.search { position: relative; }
.search input { padding-left: 2.25rem; min-width: 16rem; }
.search svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: #94a3b8; width: 1rem; height: 1rem; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: var(--surface-muted); }
.login-card { width: 100%; max-width: 28rem; }
.login-logo { display: flex; justify-content: center; margin-bottom: .75rem; }
.login-logo img, .login-logo .logo-login { height: 72px; width: auto; max-width: 180px; object-fit: contain; }
.login-form { background: #fff; border: 1px solid var(--surface-border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-card); }

.empty { text-align: center; color: #64748b; padding: 2.5rem 1rem; font-size: .875rem; }
.quick-link {
  display: flex; align-items: center; gap: .75rem;
  border: 1px solid var(--surface-border); border-radius: .5rem; padding: 1rem;
}
.quick-link:hover { background: #f8fafc; }
.quick-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.quick-icon svg { width: 16px !important; height: 16px !important; }

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tab {
  padding: .4rem .85rem; border-radius: 9999px; font-size: .8rem; font-weight: 600;
  background: #fff; border: 1px solid var(--surface-border); color: #475569;
}
.tab.active { background: var(--sidebar); color: #fff; border-color: var(--sidebar); }

.avatar {
  width: 2rem; height: 2rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-700); color: #fff; font-size: .75rem; font-weight: 600; flex-shrink: 0;
}
.entity-main .avatar { width: 2.15rem; height: 2.15rem; font-size: .7rem; }
.online-dot { width: .5rem; height: .5rem; border-radius: 9999px; background: #10b981; display: inline-block; }
.mail-status {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 500; color: #334155;
}
.mail-dot { width: .55rem; height: .55rem; border-radius: 9999px; display: inline-block; flex-shrink: 0; }
.mail-dot.is-ok { background: #10b981; box-shadow: 0 0 0 3px rgb(16 185 129 / .22); }
.mail-dot.is-bad { background: #ef4444; box-shadow: 0 0 0 3px rgb(239 68 68 / .18); }

.menu-btn {
  display: none; width: 2.25rem; height: 2.25rem; border-radius: .5rem;
  border: 1px solid var(--surface-border); background: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.overlay { display: none; }
.company-switch { padding: .85rem 1rem 0; }
.company-switch .switch-label,
.hub-foot .switch-label {
  font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #64748b; margin-bottom: .35rem;
}
.company-switch select {
  width: 100%; background: var(--sidebar-hover); color: #fff; border: 0;
  border-radius: .5rem; padding: .55rem .7rem; font-size: .8rem; margin: 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; padding-right: 1.8rem;
}
.hub-foot { margin-top: .75rem; }
.hub-foot .hub-codes { color: #cbd5e1; font-size: .75rem; font-weight: 500; }

.route-card { padding: 1rem; border: 1px solid var(--surface-border); border-radius: .75rem; background: #fff; }
.route-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.stop-list { list-style: none; margin: 0; padding: 0; }
.stop-list li { display: flex; gap: .75rem; padding: .5rem 0; border-top: 1px dashed var(--surface-border); font-size: .8rem; }
.stop-seq {
  width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: #e2e8f0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .7rem; flex-shrink: 0;
}

.driver-app { max-width: 32rem; margin: 0 auto; min-height: 100vh; background: #0f172a; color: #fff; }
.driver-top { padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.driver-card { background: #1e293b; margin: .75rem 1rem; border-radius: 1rem; padding: 1rem; }
.driver-stop { background: #1e293b; margin: .5rem 1rem; border-radius: 1rem; padding: 1rem; }
.driver-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; }

.map { height: 26rem; border-radius: .75rem; overflow: hidden; border: 1px solid var(--surface-border); }
.map-live { height: 28rem; }
.muted { color: #64748b; font-size: .8rem; }
.row-actions { display: flex; gap: .4rem; }
.checklist { display: grid; gap: .6rem; }
.check-item { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; border: 1px solid var(--surface-border); border-radius: .5rem; background: #fff; }
.check-item.done { opacity: .7; }
.progress { height: .4rem; background: #e2e8f0; border-radius: 9999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-600); }

.empty-state { text-align: center; color: #64748b; padding: 2rem 1rem; }
.empty-state .empty-icon { width: 2.75rem; height: 2.75rem; margin: 0 auto .75rem; color: #cbd5e1; display: flex; align-items: center; justify-content: center; }
.empty-state .empty-icon svg { width: 2.75rem; height: 2.75rem; }
.empty-state h3 { margin: 0 0 .4rem; color: #334155; font-size: 1.05rem; }
.empty-state p { margin: 0 0 1.1rem; font-size: .875rem; }

.dropzone {
  display: block; border: 2px dashed #cbd5e1; background: #f8fafc; border-radius: .75rem;
  padding: 1.5rem 1rem; text-align: center; cursor: pointer; margin-top: .75rem;
}
.dropzone:hover, .dropzone.drag { border-color: #16a34a; background: #f0fdf4; }
.dropzone-icon { width: 2.25rem; height: 2.25rem; margin: 0 auto .5rem; color: #16a34a; }
.dropzone-icon svg { width: 2.25rem; height: 2.25rem; }
.dropzone-title { font-weight: 600; color: #334155; font-size: .9rem; }

.range-pill, .range-form {
  display: inline-flex; align-items: center; gap: .45rem;
}
.range-pill {
  background: #fff; border: 1px solid var(--surface-border); border-radius: .55rem;
  padding: .3rem .65rem; color: #334155; font-size: .85rem;
}
.range-pill svg { width: 1rem; height: 1rem; flex-shrink: 0; color: #64748b; }
.input-ghost {
  border: 0; background: transparent; padding: .15rem 0; width: auto; font-size: .85rem;
}
.input-ghost[type="date"] { width: 8.5rem; max-width: 100%; }
.input-ghost:focus { outline: none; box-shadow: none; }
.input-ghost:focus { outline: none; box-shadow: none; }
.toolbar-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.orders-filters {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  margin: 0 0 1rem; padding-top: .25rem;
}
.orders-filters .search { flex: 1; min-width: 16rem; }
.orders-filters .search input { width: 100%; min-width: 0; }
.cer-cell { white-space: nowrap; }
.cer-badge {
  display: inline-flex; align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: #f1f5f9; color: #334155;
  border-radius: .35rem; padding: .15rem .4rem;
}
.cer-badge.hazard { background: #fef3c7; color: #92400e; }
.cer-picker { position: relative; }
.cer-picker-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 16rem; overflow: auto;
  background: #fff; border: 1px solid var(--surface-border); border-radius: .55rem;
  box-shadow: var(--shadow-card-hover);
}
.cer-option {
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  width: 100%; text-align: left; background: none; border: 0;
  padding: .55rem .75rem; cursor: pointer; font-size: .85rem; color: #334155;
}
.cer-option:hover, .cer-option.selected { background: #f8fafc; }
.cer-option strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8rem; color: #0f172a;
}
.cer-option span { color: #64748b; font-weight: 400; }
.cer-option em { font-style: normal; font-size: .7rem; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: .3rem; padding: .05rem .35rem; }

.hub-vista { display: flex; flex-direction: column; gap: .45rem; margin: .5rem 0 1rem; }
.hub-vista-label { font-size: .8rem; font-weight: 500; color: #64748b; }
.hub-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.hub-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: 9999px; font-size: .8rem; font-weight: 600;
  background: #fff; border: 1px solid var(--surface-border); color: #475569;
}
.hub-pill svg { width: 1rem; height: 1rem; }
.hub-dot { width: .55rem; height: .55rem; border-radius: 9999px; display: inline-block; }

.alert-warn, .alert-danger {
  border-radius: .65rem; padding: .85rem 1rem; font-size: .875rem;
}
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warn a, .alert-danger a { font-weight: 600; text-decoration: underline; }

.section-title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 650; }
.back-link { color: #64748b; font-size: .875rem; }
.back-link:hover { color: #0f172a; }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stack { display: grid; gap: .75rem; }
.entity-card {
  background: #fff; border: 1px solid var(--surface-border); border-radius: .75rem;
  padding: 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
}
.entity-main { display: flex; gap: .75rem; align-items: flex-start; min-width: 0; }
.entity-title { font-weight: 650; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.entity-actions { display: flex; gap: .65rem; align-items: center; font-size: .8rem; flex-shrink: 0; }
.entity-actions a { color: #334155; }
.link-danger { background: none; border: 0; color: #dc2626; cursor: pointer; font: inherit; padding: 0; display: inline-flex; gap: .3rem; align-items: center; }
.tag-adr { display: inline-flex; background: #fef3c7; color: #92400e; border-radius: 9999px; padding: .1rem .5rem; font-size: .7rem; font-weight: 700; }
.tag-ok { display: inline-flex; background: #d1fae5; color: #065f46; border-radius: 9999px; padding: .1rem .5rem; font-size: .7rem; font-weight: 700; }
.tag-row { display: flex; gap: .35rem; margin-top: .35rem; }

.hub-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .85rem; }
.hub-summary-card {
  border: 1px solid var(--surface-border); border-radius: .75rem; padding: .9rem 1rem; background: #f8fafc;
}
.hub-summary-title { font-weight: 650; margin-bottom: .5rem; }
.hub-summary-metrics { display: flex; gap: 1rem; font-size: .85rem; color: #334155; }
.hub-summary-metrics svg { width: 1rem; height: 1rem; }

.check-inline { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; margin-top: 1.5rem; }
.auto-plan-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-end; margin: .85rem 0; }
.delta { font-size: .75rem; color: #64748b; margin-top: .35rem; }
.period-pills { display: flex; flex-wrap: wrap; gap: .4rem; }

.hub-marker { background: none !important; border: 0 !important; }
.hub-marker-dot {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: #16a34a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800;
  box-shadow: 0 0 0 4px rgba(22,163,74,.25);
}

@media print {
  .sidebar, .topbar, .toolbar-actions, .menu-btn { display: none !important; }
  .content { margin: 0 !important; }
}

@media (max-width: 1024px) {
  .split-2 { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .stat-grid, .grid-2, .grid-3, .form-grid, .doc-with-file { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); z-index: 50; }
  .sidebar-brand [data-close-sidebar] { display: flex !important; }
  .overlay.show { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / .5); z-index: 40; }
  .content { margin-left: 0; }
  .menu-btn { display: flex; }
  .topbar, .main { padding-left: 1rem; padding-right: 1rem; }
  .search input { min-width: 0; width: 100%; }
}

.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: .45rem;
  background: #fff; color: #0f172a; font-weight: 800; font-size: .95rem;
}
.brand-mark-lg { width: 56px; height: 56px; font-size: 1.5rem; margin: 0 auto; }
.kpi-grid { grid-template-columns: repeat(4, 1fr); }
.kpi-card { display: block; color: inherit; transition: border-color .15s, background .15s, box-shadow .15s; }
.kpi-card:hover { border-color: #94a3b8; background: #f8fafc; box-shadow: var(--shadow-card-hover); }
.input:focus { border-color: #0f172a; box-shadow: 0 0 0 3px rgb(15 23 42 / .12); }
.dropzone:hover, .dropzone.drag { border-color: #0f172a; background: #f8fafc; }
.dropzone-icon { color: #0f172a; }
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .kpi-grid { grid-template-columns: 1fr; } }

.sr-logo {
  display: block;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0 !important;
}
.sr-logo-mark {
  height: 36px;
  width: auto;
  max-width: 11.5rem;
  flex-shrink: 0;
}
.sr-logo-login {
  height: 72px;
  width: auto;
  max-width: 16rem;
  margin: 0 auto;
}
