:root {
  --beige: #F5F0E8;
  --beige-2: #ECE4D5;
  --beige-3: #E3D9C5;
  --gold: #C9A84C;
  --gold-soft: #E5D08A;
  --gold-deep: #A88830;
  --gold-dark: #A88830;
  --petrol: #2C4A6E;
  --petrol-deep: #1E3553;
  --petrol-soft: #4A6A8E;
  --ink: #1B2433;
  --ink-2: #3B4658;
  --muted: #8A8A8A;
  --muted-2: #B8B0A0;
  --hair: rgba(28,36,51,0.07);
  --white: #FFFFFF;
  --red-soft: #C26A6A;
  --green-soft: #5B9077;

  /* backward-compat aliases */
  --bg:        var(--beige);
  --blue:      var(--petrol);
  --blue-dark: #1565C0;
  --card:      var(--white);
  --secondary: var(--muted);
  --red:       #E53935;
  --green:     #2E7D32;
  --tooth:     #F5DEB3;
  --border:    rgba(28,36,51,0.10);
  --text:      var(--ink);
  --text-light:var(--ink-2);
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 1px 0 rgba(28,36,51,0.04), 0 6px 18px -10px rgba(28,36,51,0.12);
  --shadow-md: 0 8px 28px -8px rgba(28,36,51,0.18);
  --nav-height:90px;
  --transition:0.2s ease;
}

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

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--beige);
  color: var(--ink);
  min-height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ─── LAYOUT ──────────────────────────────────────── */
#app-view {
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

.view { animation: fadeIn var(--transition); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.screen-enter { animation: screenIn 360ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.push-enter { animation: pushIn 320ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes pushIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── HEADER (petrol cap) ─────────────────────────── */
.view-header {
  background: linear-gradient(180deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  color: #fff;
  padding: 20px 18px 28px;
  padding-top: calc(52px + env(safe-area-inset-top));
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}
.petrol-cap {
  background: linear-gradient(180deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.view-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.3px; }
.view-subtitle { font-size: 0.82rem; opacity: 0.72; margin-top: 3px; font-weight: 500; }

.view-content { padding: 16px 18px; }

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 22px 0 10px;
}

/* ─── BOTTOM NAV (floating pill) ─────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 0 14px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(245,240,232,0) 0%, var(--beige) 40%);
  z-index: 100;
  pointer-events: none;
}
.bottom-nav > * { pointer-events: auto; }

.bottom-nav-inner {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 10px 28px -10px rgba(28,36,51,0.18), 0 0 0 1px rgba(28,36,51,0.06);
  padding: 10px 6px 8px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.nav-item svg { width: 22px; height: 22px; transition: stroke var(--transition); }
.nav-item span { display: block; }
.nav-item .nav-dot {
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.2s;
}
.nav-item.active { color: var(--gold-deep); }
.nav-item.active .nav-dot { width: 14px; }
.nav-item.active svg { stroke: var(--gold-deep); }

/* ─── CARDS ───────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(28,36,51,0.06);
  padding: 16px;
  margin-bottom: 12px;
}

.kpi-card {
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.kpi-grain {
  background-image: radial-gradient(circle at 90% 10%, rgba(201,168,76,0.10), transparent 50%);
}

.kpi-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.kpi-value { font-size: 1.45rem; font-weight: 700; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi-sub   { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); opacity: 0.85; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary   { background: var(--petrol); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--petrol-deep); }
.btn-gold      { background: var(--gold); color: #1B1408; width: 100%; }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-secondary { background: transparent; border: 1.5px solid rgba(44,74,110,0.25); color: var(--petrol); }
.btn-danger    { background: rgba(194,106,106,0.10); color: #9A4B4B; border: none; }
.btn-ghost     { background: transparent; color: var(--petrol); padding: 0 8px; height: 36px; font-size: 0.85rem; }
.btn-soft      { background: rgba(44,74,110,0.08); color: var(--petrol); border: none; }

.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.btn-icon:active { opacity: 0.6; }

/* tappable helper */
.tap { -webkit-tap-highlight-color: transparent; cursor: pointer; user-select: none; }
.tap:active { transform: scale(0.98); }

/* FAB */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom));
  right: 16px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  transition: transform var(--transition);
}
.fab:active { transform: scale(0.92); }

/* ─── INPUTS ──────────────────────────────────────── */
.input-group { margin-bottom: 14px; }
.input-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }

.input-field {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid rgba(28,36,51,0.14);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.input-field:focus { border-color: var(--gold); }
.input-field.error { border-color: var(--red); }

textarea.input-field { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; line-height: 1.5; }

.input-hint  { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.input-error { font-size: 0.72rem; color: var(--red); margin-top: 4px; }
.currency-preview { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* ─── CHIPS / PILLS ───────────────────────────────── */
.chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  padding: 8px 10px;
  border-radius: 20px;
  border: 1.5px solid rgba(28,36,51,0.14);
  background: var(--beige);
  color: var(--ink);
  font-size: 0.78rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.3;
  font-family: inherit;
}
.chip.active { background: var(--petrol); border-color: var(--petrol); color: #fff; }

.pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pills-row::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(28,36,51,0.1);
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
}
.pill.active { background: var(--petrol); border-color: var(--petrol); color: #fff; }

/* ─── BADGES ──────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-gray  { background: rgba(138,138,138,0.12); color: #5C5C5C; }
.badge-blue  { background: rgba(44,74,110,0.10);   color: var(--petrol); }
.badge-gold  { background: rgba(201,168,76,0.16);  color: var(--gold-deep); }
.badge-green { background: rgba(91,144,119,0.14);  color: #3E6B55; }
.badge-red   { background: rgba(194,106,106,0.14); color: #9A4B4B; }

/* ─── PROGRESS BAR ────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: rgba(28,36,51,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, var(--gold-soft));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.bar-fill { background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, var(--gold-soft)); }

/* ─── LIST ITEMS ──────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border-bottom: 1px solid rgba(28,36,51,0.06);
  cursor: pointer;
  transition: background var(--transition);
}
.list-item:last-child  { border-bottom: none; border-radius: 0 0 14px 14px; }
.list-item:first-child { border-radius: 14px 14px 0 0; }
.list-item:only-child  { border-radius: 14px; }
.list-item:active      { background: var(--beige); }

.list-item-content { flex: 1; min-width: 0; }
.list-item-title   { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-sub     { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ─── TABS ────────────────────────────────────────── */
.tabs {
  display: flex;
  background: var(--white);
  border-bottom: 1px solid rgba(28,36,51,0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.tab-btn.active { color: var(--petrol); border-bottom-color: var(--petrol); }

.tab-panel { display: none; }
.tab-panel.active { display: block; padding: 16px 18px; }

/* ─── TOAST ───────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom));
  left: 16px; right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.25s ease;
  pointer-events: auto;
}
.toast.info    { background: var(--petrol); }
.toast.success { background: #2E7D32; }
.toast.error   { background: #C62828; }
.toast.warning { background: #F57C00; }
.toast.out     { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(12px); } }

/* ─── MODAL ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(28,36,51,0.45);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn var(--transition);
}
.modal-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}
.modal-title   { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.modal-message { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 20px; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ─── BOTTOM SHEET ────────────────────────────────── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(28,36,51,0.4);
  z-index: 400;
  animation: fadeIn var(--transition);
}
.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  z-index: 401;
  max-height: 90dvh;
  overflow-y: auto;
  animation: sheetIn 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet-handle {
  width: 40px; height: 4px;
  background: rgba(28,36,51,0.12);
  border-radius: 2px;
  margin: 10px auto 0;
}
.sheet-header {
  padding: 12px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(28,36,51,0.06);
}
.sheet-title   { font-size: 1rem; font-weight: 700; }
.sheet-content { padding: 16px 18px; }

/* ─── LOADER ──────────────────────────────────────── */
.global-loader {
  position: fixed; inset: 0;
  background: var(--beige);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.global-loader.hidden { display: none; }

.loader-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(28,36,51,0.10);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.inline-loader { display: flex; align-items: center; justify-content: center; padding: 32px; }
.inline-loader .loader-spinner { width: 28px; height: 28px; }

/* ─── CONNECTION DOT ──────────────────────────────── */
.connection-dot {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-soft);
  z-index: 200;
  transition: background var(--transition);
}
.connection-dot.offline  { background: #F57C00; }
.connection-dot.syncing  { background: #F57C00; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── SEARCH ──────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid rgba(28,36,51,0.10);
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
}
.search-bar input { flex: 1; border: none; outline: none; background: transparent; color: var(--ink); font-size: 0.9rem; font-family: inherit; }
.search-bar svg   { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }

/* ─── LOGIN ───────────────────────────────────────── */
.login-view {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--beige);
}
.login-logo {
  width: 80px; height: 80px;
  background: var(--petrol);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 28px -8px rgba(44,74,110,0.4);
}
.login-logo svg { width: 44px; height: 44px; color: #fff; }

.login-title { font-size: 1.5rem; font-weight: 700; color: var(--petrol); text-align: center; margin-bottom: 4px; }
.login-sub   { font-size: 0.85rem; color: var(--muted); text-align: center; margin-bottom: 32px; }
.login-form  { width: 100%; max-width: 360px; }
.login-form .input-group { margin-bottom: 16px; }

.password-wrapper { position: relative; }
.password-wrapper .input-field { padding-right: 48px; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
}
.password-toggle svg { width: 20px; height: 20px; }

.forgot-link { display: block; text-align: center; font-size: 0.85rem; color: var(--petrol); margin-top: 16px; font-weight: 500; }
.lock-msg    { text-align: center; color: var(--red); font-size: 0.85rem; margin-bottom: 12px; }

/* ─── TOOL GRID (odontogram) ──────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1.5px solid rgba(28,36,51,0.10);
  background: var(--beige);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition);
  line-height: 1.2;
  font-family: inherit;
}
.tool-btn.active { border-color: var(--petrol); background: rgba(44,74,110,0.08); color: var(--petrol); }
.tool-icon { font-size: 1rem; }

/* ─── ODONTOGRAM ──────────────────────────────────── */
.odontogram-wrapper {
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.odontogram-wrapper::-webkit-scrollbar { display: none; }
.odontogram-svg   { display: block; }
.tooth-group      { cursor: pointer; }
.tooth-group:active { opacity: 0.7; }

/* ─── ALERT ───────────────────────────────────────── */
.alert-card {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.alert-card.warning { background: rgba(201,168,76,0.10); border-left: 3px solid var(--gold); color: #795548; }
.alert-card.error   { background: rgba(194,106,106,0.10); border-left: 3px solid var(--red-soft); color: #9A4B4B; }
.alert-card.info    { background: rgba(44,74,110,0.08); border-left: 3px solid var(--petrol); color: var(--petrol); }

/* ─── TABLE ───────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th { text-align: left; padding: 8px 10px; background: var(--beige); color: var(--muted); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.data-table td { padding: 10px; border-top: 1px solid rgba(28,36,51,0.06); vertical-align: middle; }
.data-table tr:hover td { background: var(--beige); }

.lab-input { width: 80px; height: 32px; padding: 0 8px; border: 1px solid rgba(28,36,51,0.14); border-radius: 8px; font-size: 0.82rem; text-align: center; font-family: inherit; }
.lab-input.warn     { background: #FFF9C4; border-color: #F9A825; }
.lab-input.critical { background: rgba(194,106,106,0.10); border-color: var(--red-soft); }
.lab-ref { font-size: 0.68rem; color: var(--muted); }

/* ─── RATE EDIT ───────────────────────────────────── */
.rate-row   { display: flex; align-items: center; gap: 8px; }
.rate-value { font-weight: 700; }
.rate-input { width: 110px; height: 40px; padding: 0 10px; border: 1.5px solid var(--gold); border-radius: 10px; font-size: 0.9rem; font-weight: 700; font-family: inherit; }

/* ─── CALENDAR ────────────────────────────────────── */
.week-nav   { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--white); }
.week-label { font-weight: 600; font-size: 0.9rem; }
.week-days  { display: flex; overflow-x: auto; gap: 4px; padding: 8px 18px; scrollbar-width: none; }
.week-days::-webkit-scrollbar { display: none; }
.day-btn { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; border-radius: 12px; cursor: pointer; border: none; background: transparent; font-family: inherit; }
.day-btn.today  { background: var(--petrol); color: #fff; }
.day-btn.active { border: 1.5px solid var(--gold); }
.day-name { font-size: 0.62rem; text-transform: uppercase; color: var(--muted); }
.day-num  { font-size: 1rem; font-weight: 700; }
.day-dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ─── SURFACES (odontogram) ───────────────────────── */
.surface-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.surface-btn { padding: 8px 4px; border-radius: 8px; border: 1.5px solid rgba(28,36,51,0.10); background: var(--beige); font-size: 0.75rem; font-weight: 700; cursor: pointer; text-align: center; font-family: inherit; }
.surface-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ─── PDF PREVIEW ─────────────────────────────────── */
.pdf-preview { background: #fff; padding: 24px; border-radius: 12px; font-size: 0.82rem; line-height: 1.6; color: #000; border: 1px solid rgba(28,36,51,0.10); }
.pdf-preview h1 { font-size: 1rem; text-align: center; }
.pdf-preview .divider { border-top: 1px solid #000; margin: 12px 0; }
.signature-area { margin-top: 40px; text-align: center; font-size: 0.8rem; }
.signature-line { border-top: 1px solid #000; width: 200px; margin: 0 auto 6px; padding-top: 4px; }

/* ─── MISC ────────────────────────────────────────── */
.ph-stripes {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(201,168,76,0.18) 0 8px,
    rgba(201,168,76,0.06) 8px 16px
  );
}
.tabular { font-variant-numeric: tabular-nums; }

/* ─── UTILS ───────────────────────────────────────── */
.hidden       { display: none !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-gold    { color: var(--gold); }
.text-blue    { color: var(--petrol); }
.text-red     { color: var(--red-soft); }
.text-secondary { color: var(--muted); }
.fw-700       { font-weight: 700; }
.fs-sm        { font-size: 0.8rem; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mb-16        { margin-bottom: 16px; }
.gap-8        { gap: 8px; }
.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.empty-state  { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.35; }
.empty-state p   { font-size: 0.9rem; }

@media print {
  .bottom-nav, .fab, #toast-container, #modal-container, .connection-dot, .global-loader,
  .btn-primary, .btn-secondary, .btn-gold, .no-print { display: none !important; }
  body { background: #fff; }
  #app-view { padding-bottom: 0; }
}
