/* Revara — Premium ERP Stylesheet
   Colour tokens and font variables are defined in tokens.css,
   which must be loaded before this file.                       */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────── */

.layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform .25s ease, width 250ms ease;
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
}

/* ── Sidebar icon-only (collapsed on desktop) ──────────────── */
.sidebar.icon-only { width: 64px; }
.sidebar.icon-only .sidebar-label { display: none; }
.sidebar.icon-only .sidebar-section { display: none; }
.sidebar.icon-only .sidebar-item { justify-content: center; padding: 9px 0; margin: 1px 4px; }
.sidebar.icon-only .nav-icon { font-size: 18px; }
.sidebar.icon-only .sidebar-collapse-btn { padding: 8px; text-align: center; }
.sidebar.icon-only ~ .main { margin-left: 64px; }
.sidebar.icon-only .sidebar-logo { justify-content: center; }
.sidebar.icon-only .sidebar-logo > div:last-child { display: none; }
.sidebar.icon-only .sidebar-user-info,
.sidebar.icon-only .sidebar-user a[href*="logout"] { display: none; }
.sidebar.icon-only .sidebar-user { justify-content: center; }

/* ── Collapse button ────────────────────────────────────────── */
.sidebar-collapse-btn {
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-mid, var(--text-2));
  cursor: pointer;
  font-size: 12px;
  text-align: right;
  transition: color 150ms;
}
.sidebar-collapse-btn:hover { color: var(--text); }

.sidebar-logo {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--sidebar-divider);
}

.sidebar-logo-icon {
  width: 32px; height: 32px;
  background: var(--brand);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-logo-text { font-weight: 700; font-size: 17px; color: var(--text); }
.sidebar-logo-sub  { font-size: 11px; color: var(--sidebar-text); }

.sidebar-nav { flex: 1; padding: 12px 0; }

.sidebar-section {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-top: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  border-radius: 6px;
  margin: 1px 8px;
  text-decoration: none;
  /* Reserve space for the left accent so non-active items don't shift */
  border-left: 3px solid transparent;
}

.sidebar-item:hover { background: var(--sidebar-hover); color: var(--text); text-decoration: none; }
.sidebar-item.active {
  background: var(--accent-dim, var(--brand-pale));
  color: var(--text-bright, var(--brand));
  border-left: 3px solid var(--accent, var(--brand));
}
.sidebar-item .icon  { width: 17px; text-align: center; flex-shrink: 0; }
.sidebar-item .nav-icon { width: 17px; text-align: center; flex-shrink: 0; font-size: 15px; }
.sidebar-item .badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--sidebar-divider);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--sidebar-text); }

/* Main content */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left .25s ease;
}

.sidebar.collapsed ~ .main {
  margin-left: 0;
}

/* ── Notification dot ─────────────────────────────────────── */
.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* Header */
.header {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-title { font-size: 17px; font-weight: 700; color: var(--text); }
.header-sub { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.header-spacer { flex: 1; }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Page content */
.page { padding: 24px; flex: 1; }

/* ── Cards ───────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.card-sub   { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.card-body  { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── KPI Cards ───────────────────────────────────────────── */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.kpi-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: 8px; }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; font-family: var(--font-mono); }
.kpi-sub   { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.kpi-trend { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; margin-top: 6px; }
.kpi-trend.up   { color: var(--green); }
.kpi-trend.down { color: var(--red); }
.kpi-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  float: right;
  margin-top: -4px;
}

/* ── Grid helpers ────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ── Tables ──────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }

.td-bold { font-weight: 600; }
.td-muted { color: var(--text-2); font-size: 12px; }

/* ── Badges / Status ─────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-green  { background: rgba(16,185,129,.15);  color: #10B981; }
.badge-red    { background: rgba(239,68,68,.15);   color: #EF4444; }
.badge-yellow { background: rgba(245,158,11,.15);  color: #F59E0B; }
.badge-amber  { background: rgba(245,158,11,.15);  color: #F59E0B; }
.badge-blue   { background: rgba(59,130,246,.15);  color: #3B82F6; }
.badge-purple { background: rgba(139,92,246,.15);  color: #8B5CF6; }
.badge-teal   { background: rgba(20,184,166,.15);  color: #14B8A6; }
.badge-gray   { background: rgba(100,116,139,.15); color: #94A3B8; }
.badge-orange { background: rgba(249,115,22,.15);  color: #FB923C; }

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--btn-danger-hover); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }

.btn-icon {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  font-size: 16px;
}
.btn-icon:hover { background: var(--surface-2); color: var(--text); }

/* ── Forms ───────────────────────────────────────────────── */

.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

textarea { resize: vertical; min-height: 80px; }

.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }

.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* ── Alerts / Notifications ──────────────────────────────── */

.alert {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.alert-success { background: var(--alert-success-bg); border: 1px solid var(--alert-success-border); color: var(--alert-success-text); }
.alert-error   { background: var(--alert-error-bg);   border: 1px solid var(--alert-error-border);   color: var(--alert-error-text); }
.alert-warning { background: var(--alert-warning-bg); border: 1px solid var(--alert-warning-border); color: var(--alert-warning-text); }
.alert-info    { background: var(--alert-info-bg);    border: 1px solid var(--alert-info-border);    color: var(--alert-info-text); }

/* ── Tabs ────────────────────────────────────────────────── */

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }

.tab {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s;
  text-decoration: none;
}

.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ── Progress ────────────────────────────────────────────── */

.progress {
  height: 6px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
  transition: width .3s;
}

.progress-bar.green  { background: var(--green); }
.progress-bar.red    { background: var(--red); }
.progress-bar.yellow { background: var(--yellow); }
.progress-bar.blue   { background: var(--blue); }

/* ── Stage stepper (batch) ───────────────────────────────── */

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0;
  overflow-x: auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step:last-child::after { display: none; }

.step.completed::after { background: var(--green); }
.step.active::after    { background: var(--brand); }

.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
  position: relative;
  color: var(--text-2);
}

.step.completed .step-circle { background: var(--green); border-color: var(--green); color: #fff; }
.step.active    .step-circle { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.failed    .step-circle { background: var(--red);   border-color: var(--red);   color: #fff; }

.step-label { font-size: 11px; font-weight: 600; margin-top: 6px; color: var(--text-2); text-align: center; }
.step.completed .step-label { color: var(--green); }
.step.active    .step-label { color: var(--brand); }

/* ── Modal ───────────────────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 16px; font-weight: 700; }
.modal-body  { padding: 20px 24px; overflow-y: auto; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ── Search ──────────────────────────────────────────────── */

.search-wrap { position: relative; }
.search-wrap input { padding-left: 36px; }
.search-wrap .search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
}

/* ── Empty state ─────────────────────────────────────────── */

.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-2);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-text  { font-size: 14px; color: var(--text-2); }

/* ── Utility ─────────────────────────────────────────────── */

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.text-sm   { font-size: 13px; }
.text-xs   { font-size: 11.5px; }
.text-lg   { font-size: 17px; }
.text-xl   { font-size: 20px; }
.text-2xl  { font-size: 24px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-muted { color: var(--text-2); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-yellow{ color: var(--yellow); }
.text-blue  { color: var(--blue); }
.text-brand { color: var(--brand); }
.text-right { text-align: right; }
.text-center { text-align: center; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Login page ──────────────────────────────────────────── */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  padding: 24px;
}

.login-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 44px; height: 44px;
  background: var(--brand);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.login-logo-text { font-size: 22px; font-weight: 800; color: var(--text); }
.login-logo-sub  { font-size: 12px; color: var(--text-2); }

.login-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.login-sub   { font-size: 13px; color: var(--text-2); margin-bottom: 28px; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Default mobile state: hidden off-screen ───────────────────── */
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
    overflow: hidden;
    z-index: 900;
  }

  /* Open: slide in over content ───────────────────────────────── */
  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  /* Overlay backdrop ──────────────────────────────────────────── */
  body.sidebar-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 800;
  }

  /* Main: no left margin on mobile ────────────────────────────── */
  .main,
  .sidebar ~ .main,
  .sidebar.icon-only ~ .main,
  .sidebar.collapsed ~ .main { margin-left: 0; }

  /* Layout ───────────────────────────────────────────────────── */
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page { padding: 16px; }
  .mobile-hide { display: none !important; }
  .sidebar-collapse-btn { display: none; }

  /* Mobile touch enhancements */
  .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  input[type="text"], input[type="email"], input[type="number"],
  input[type="password"], input[type="date"], select, textarea { font-size: 16px !important; }
  .btn { min-height: 44px; }
  .modal { width: calc(100% - 32px); max-height: 92vh; }
  .form-row { grid-template-columns: 1fr !important; }
}

/* Touch target sizes */
@media (hover: none) and (pointer: coarse) {
    .btn { min-height: 44px; }
    input, select, textarea { min-height: 44px; }
}

/* Quality result options (pass/fail toggle buttons) */
.quality-result-options { display: flex; gap: 12px; margin: 8px 0; }
.quality-result-option { flex: 1; }
.quality-result-option input[type="radio"] { display: none; }
.quality-result-option label {
    display: flex; align-items: center; justify-content: center;
    min-height: 52px; border-radius: 8px; border: 2px solid var(--border);
    cursor: pointer; font-weight: 600; font-size: 14px; transition: all 150ms;
}
.quality-result-option input[type="radio"]:checked + label {
    border-color: var(--accent); background: var(--accent-dim); color: var(--text-bright);
}

/* ── Breadcrumb ──────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
}

.breadcrumb-item {
  color: var(--text-3);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}

.breadcrumb-item:hover { color: var(--text-2); text-decoration: none; }

.breadcrumb-current {
  color: var(--text-2);
  font-weight: 500;
}

.breadcrumb-sep {
  color: var(--border-dark);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

/* ── Scrollbar ───────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Chart containers ────────────────────────────────────── */
.chart-container { position: relative; height: 280px; }

/* ── Inbox ───────────────────────────────────────────────── */

.inbox-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; height: calc(100vh - var(--header-h) - 48px); }

.inbox-list {
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.inbox-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}

.inbox-item:hover { background: var(--surface-2); }
.inbox-item.active { background: var(--brand-pale); border-left: 3px solid var(--brand); }
.inbox-item.unread .inbox-subject { font-weight: 700; }

.inbox-from   { font-size: 13px; font-weight: 600; color: var(--text); }
.inbox-subject{ font-size: 13px; color: var(--text); }
.inbox-preview{ font-size: 12px; color: var(--text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-meta   { font-size: 11px; color: var(--text-3); margin-top: 4px; display: flex; justify-content: space-between; align-items: center; }

.inbox-detail { padding: 24px; overflow-y: auto; }

/* ── Notification dot ────────────────────────────────────── */

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot-green  { background: var(--green); }
.dot-red    { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-blue   { background: var(--blue); }
.dot-gray   { background: var(--text-3); }

/* ── Required field indicator ────────────────────────────────── */
.required { color: var(--red); margin-left: 2px; }
label.required::after,
label[data-required]::after { content: ' *'; color: var(--red); }
