/* ==========================================================================
   Sen Lunettes — Custom Design System
   Centralized CSS: variables, Bootstrap overrides, utilities, transitions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --brand-teal:       #229D8E;
  --brand-teal-dark:  #1C8578;
  --brand-teal-light: #e8f6f5;
  --brand-gold:       #F8A405;
  --brand-gold-dark:  #d98d00;
  --ink:              #102a2a;
  --ink-light:        #1e4040;
  --muted:            #6c757d;
  --surface:          #f4f8f8;
  --surface-card:     #ffffff;
  --border:           #d9e4e4;
  --border-light:     #eaf1f1;

  /* Typography */
  --font-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-size-base: 0.9375rem; /* 15px */

  /* Spacing */
  --radius-sm:  0.35rem;
  --radius:     0.55rem;
  --radius-lg:  0.9rem;
  --radius-xl:  1.25rem;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(16, 42, 42, .06);
  --shadow-sm:  0 2px 8px rgba(16, 42, 42, .08);
  --shadow:     0 4px 16px rgba(16, 42, 42, .10);
  --shadow-md:  0 6px 24px rgba(16, 42, 42, .13);

  /* Transitions */
  --t-fast:  150ms ease;
  --t-base:  220ms ease;
  --t-slow:  350ms ease;
}

/* --------------------------------------------------------------------------
   2. Base / typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(34, 157, 142, .18) 0, transparent 60%),
    radial-gradient(1200px 600px at 110% 10%, rgba(248, 164, 5, .14) 0, transparent 60%),
    linear-gradient(180deg, #f7fbfa, #f1f5f6);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--brand-teal);
  transition: color var(--t-fast);
}
a:hover {
  color: var(--brand-teal-dark);
}

/* --------------------------------------------------------------------------
   3. Navbar — also catches card-header.bg-primary / .bg-dark overrides
   -------------------------------------------------------------------------- */
/* Card headers using Bootstrap bg-primary/bg-dark get the brand gradient */
.card-header.bg-primary,
.card-header.bg-dark {
  background: linear-gradient(135deg, var(--brand-teal-dark), var(--brand-teal)) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--brand-gold) !important;
  position: relative;
  overflow: hidden;
}
.card-header.bg-primary::after,
.card-header.bg-dark::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent);
  transform: translate(40%, -40%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3b. Navbar continued
   -------------------------------------------------------------------------- */
.navbar {
  background-color: var(--ink) !important;
  border-bottom: 2px solid var(--brand-teal);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand img {
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.navbar-brand:hover img {
  opacity: 0.88;
  transform: scale(1.03);
}

.navbar .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.08);
}
.navbar .nav-link.active {
  color: #fff !important;
  background-color: var(--brand-teal);
}

.navbar .dropdown-menu {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  margin-top: 0.35rem;
  box-shadow: var(--shadow-md);
}

.navbar .dropdown-item {
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  transition: background-color var(--t-fast), color var(--t-fast);
  border-radius: var(--radius-sm);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: rgba(34, 157, 142, 0.25);
  color: #fff;
}
.navbar .dropdown-item.active {
  background-color: var(--brand-teal);
}

/* Avatar initials */
.avatar-initials {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  line-height: 1;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.25);
  transition: background-color var(--t-fast);
}
.avatar-initials:hover {
  background: rgba(255, 255, 255, 0.2);
}
.avatar-initials + span {
  margin-left: 0.4rem;
}

/* --------------------------------------------------------------------------
   4. Cards
   -------------------------------------------------------------------------- */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background-color: var(--surface-card);
  transition: box-shadow var(--t-base);
}
.card:hover {
  box-shadow: var(--shadow);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem 0.75rem;
  font-weight: 600;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-weight: 500;
  border-radius: var(--radius);
  transition: background-color var(--t-fast), border-color var(--t-fast),
              box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary,
.btn-success {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus {
  background-color: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
  color: #fff;
}
.btn-primary:focus-visible,
.btn-success:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(34, 157, 142, .4);
}

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

.btn-warning {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--ink);
}
.btn-warning:hover, .btn-warning:focus {
  background-color: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
.form-control,
.form-select {
  border-radius: var(--radius);
  border-color: var(--border);
  font-size: 0.9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 0.2rem rgba(34, 157, 142, 0.2);
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--ink-light);
}

.input-group-text {
  background-color: var(--border-light);
  border-color: var(--border);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. Tables
   -------------------------------------------------------------------------- */
.table {
  font-size: 0.9rem;
}
.table thead th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom-width: 2px;
  border-color: var(--border);
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
}
.table tbody tr {
  transition: background-color var(--t-fast);
}
.table-hover tbody tr:hover {
  background-color: var(--brand-teal-light);
}
.table > :not(caption) > * > * {
  padding: 0.6rem 0.75rem;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   8. Badges
   -------------------------------------------------------------------------- */
.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: var(--radius-sm);
}

/* Badges inside a brand card-header: force white-transparent style */
.card-header.bg-primary .badge,
.card-header.bg-dark .badge,
.card-header-brand .badge {
  background: rgba(255, 255, 255, .15) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .25);
}

/* Soft badge (used in tables) */
.badge-soft {
  background: rgba(34, 157, 142, .08);
  color: var(--brand-teal-dark);
  border: 1px solid rgba(34, 157, 142, .18);
}

/* --------------------------------------------------------------------------
   9. Alerts & Flash messages
   -------------------------------------------------------------------------- */
.alert {
  border-radius: var(--radius);
  border-width: 0;
  border-left: 4px solid transparent;
  font-size: 0.9rem;
}
.alert-success  { border-left-color: #198754; background-color: #d1e7dd; }
.alert-danger   { border-left-color: #dc3545; background-color: #f8d7da; }
.alert-warning  { border-left-color: var(--brand-gold); background-color: #fff3cd; }
.alert-info     { border-left-color: var(--brand-teal); background-color: var(--brand-teal-light); }

/* --------------------------------------------------------------------------
   10. Pagination
   -------------------------------------------------------------------------- */
.pagination .page-link {
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  font-size: 0.875rem;
  color: var(--brand-teal);
  border-color: var(--border);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.pagination .page-link:hover {
  background-color: var(--brand-teal-light);
  border-color: var(--brand-teal);
  color: var(--brand-teal-dark);
}
.pagination .page-item.active .page-link {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: var(--border);
}

/* --------------------------------------------------------------------------
   11. Status / KPI utilities (shared by list & dashboard)
   -------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28em 0.65em;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.status-paid     { background: #d1f0ea; color: #0f6d5e; }
.status-partial  { background: #fff3cd; color: #855b00; }
.status-unpaid   { background: #fde8e8; color: #a12a2a; }
.status-recovered { background: #e8edf8; color: #334999; }

/* --------------------------------------------------------------------------
   12. Branded card header (teal gradient with gold accent)
   -------------------------------------------------------------------------- */
.card-header-brand {
  background: linear-gradient(135deg, var(--brand-teal-dark), var(--brand-teal)) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--brand-gold) !important;
  position: relative;
  overflow: hidden;
}
.card-header-brand::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent);
  transform: translate(40%, -40%);
  pointer-events: none;
}
.card-header-brand .badge {
  background-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.25);
}

/* --------------------------------------------------------------------------
   13. List-page badge variants
   -------------------------------------------------------------------------- */
.badge-order {
  background: rgba(34,157,142,.08) !important;
  color: var(--brand-teal-dark) !important;
  border: 1px solid rgba(34,157,142,.18);
}
.badge-paid {
  background: rgba(34,157,142,.1);
  color: #0a6659;
  border: 1px solid rgba(34,157,142,.2);
}
.badge-partial {
  background: rgba(248,164,5,.15);
  color: #8a5e00;
  border: 1px solid rgba(248,164,5,.4);
}
.badge-unpaid {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Search input pill */
.search-input {
  border-radius: 999px;
  padding-left: 2.5rem;
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* Hidden JS rows */
tr.js-hidden { display: none; }

/* Section title inside card-header (plain variant) */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Inline avatar circle (initials) in tables */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-teal-light);
  color: var(--brand-teal-dark);
  font-size: .7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(34,157,142,.2);
}

/* "Nouveau" badge (gold) */
.badge-new {
  background: var(--brand-gold);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  padding: .2em .55em;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   14. KPI cards (dashboard)
   -------------------------------------------------------------------------- */
.kpi-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.kpi-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.kpi-card .kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.kpi-card .kpi-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.25rem;
}
.kpi-card .kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   13. Page layout helpers
   -------------------------------------------------------------------------- */
.page-header {
  padding: 1.5rem 0 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

/* Dashboard uses container-fluid: give a max-width cap on very large screens */
.container-fluid { max-width: 1600px; }

/* KPI value color variants */
.kpi-card .kpi-value.text-danger { color: #dc2626; }

/* Sticky table wrapper */
.table-responsive-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #fff;
}

/* --------------------------------------------------------------------------
   14. Modals
   -------------------------------------------------------------------------- */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.modal-header {
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem;
}
.modal-footer {
  border-top: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
}

/* --------------------------------------------------------------------------
   15. Bon de commande (show page document layout)
   -------------------------------------------------------------------------- */
.bon-container {
  max-width: 860px;
  margin: 24px auto;
  padding: 20px 26px;
  background-color: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-family: Arial, sans-serif;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.bon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(34,157,142,.14);
  padding-bottom: 12px;
}
.bon-header h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: .2px;
  color: var(--brand-teal-dark);
}
.brand-logo { height: 56px; width: auto; }

/* Status bar */
.bon-status-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(34,157,142,.05);
  border: 1px solid rgba(34,157,142,.12);
  border-radius: var(--radius);
  font-size: 13px;
  align-items: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.pill-green  { background: #d1fae5; color: #065f46; }
.pill-orange { background: #fff7e0; color: #92400e; }
.pill-red    { background: #fee2e2; color: #991b1b; }
.pill-blue   { background: #e0f2fe; color: #0369a1; }
.bon-status-bar .label { color: var(--muted); }
.bon-status-bar .value { font-weight: 700; color: var(--ink); }

/* Sections */
.bon-section { margin-bottom: 18px; page-break-inside: avoid; }
.bon-section h2 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--brand-teal-dark);
  border-bottom: 1px solid rgba(34,157,142,.12);
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Two-column layout */
.bon-two-col { display: flex; gap: 16px; flex-wrap: wrap; }
.bon-two-col > ul,
.bon-two-col > .box,
.bon-section > ul {
  list-style: none;
  padding: 10px 14px;
  margin: 0;
  border: 1px solid rgba(34,157,142,.12);
  border-radius: var(--radius);
  background: #fcfefe;
}
.bon-two-col > ul,
.bon-two-col > .box { flex: 1; min-width: 260px; }
.bon-two-col > ul li,
.bon-section > ul li { margin-bottom: 4px; font-size: 13px; }

/* Form rows inside .box */
.box {
  border: 1px solid rgba(34,157,142,.12);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: #fcfefe;
}
.box .rowx {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}
.box .rowx label {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  margin: 0;
  padding-top: 0.35rem;
}
.box .value { flex: 1; }
.box h2 { font-size: 13px; margin-bottom: 8px; }

/* Read-only display field */
.readonly-field {
  background-color: #f8fafa;
  color: var(--muted);
  cursor: default;
}

@media (max-width: 600px) {
  .box .rowx { grid-template-columns: 1fr; gap: 4px; }
}

/* Bon table */
.bon-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  table-layout: fixed;
  background: #fff;
  border: 1px solid rgba(34,157,142,.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.bon-table th, .bon-table td {
  border: 1px solid rgba(34,157,142,.12);
  padding: 6px 8px;
  text-align: center;
  font-size: 12px;
  word-break: break-word;
}
.bon-table th {
  background: rgba(34,157,142,.06);
  font-weight: 700;
  color: #2a4b4b;
}
.bon-table td.val-null { color: var(--muted); }
.bon-table td.financial-amount { font-weight: 700; }
.bon-table tr.total-row td { background: rgba(34,157,142,.06); font-weight: 700; }
.bon-table tr.solde-row td  { color: #991b1b; font-weight: 700; }
.bon-table tr.solde-paid td { color: #065f46; font-weight: 700; }

/* Buttons on show page */
.btn-action {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: filter var(--t-fast), transform var(--t-fast);
}
.btn-action:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn-action:active { transform: translateY(0); }
.btn-action.btn-teal  { background: var(--brand-teal); color: #fff; }
.btn-action.btn-muted { background: #6c757d; color: #fff; }

/* Signatures */
.signatures { display: flex; gap: 16px; margin-top: 8px; }
.sign-box {
  flex: 1;
  border: 1px dashed rgba(34,157,142,.3);
  border-radius: var(--radius);
  padding: 10px 12px;
  height: 90px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sign-title {
  font-weight: 700;
  color: var(--brand-teal-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
}
.sign-line { margin-top: 6px; border-top: 1px solid rgba(34,157,142,.12); height: 0; }

/* Responsive bon */
@media (max-width: 600px) {
  .bon-container { padding: 12px; margin: 10px; }
  .bon-two-col { flex-direction: column; }
  .signatures  { flex-direction: column; }
  .bon-status-bar { flex-direction: column; gap: 6px; }
}

/* Print styles for bon */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; }
  .bon-container { box-shadow: none; border: none; border-radius: 0; margin: 0; padding: 0; max-width: none; }
  nav.navbar, .btn-action, a, .bon-status-bar { display: none !important; }
  .bon-header { margin-bottom: 10px; padding-bottom: 6px; }
  .bon-header h1 { font-size: 18px; color: #000; }
  .bon-section { margin-bottom: 12px; }
  .bon-section h2 { font-size: 12px; padding-bottom: 4px; color: #000; border-color: #ddd; }
  .bon-section li { font-size: 11px; }
  .bon-table th, .bon-table td { padding: 5px 6px; font-size: 11px; }
  .sign-box { height: 70px; font-size: 11px; border-color: #bbb; }
  .sign-title { color: #000; }
  .brand-logo { height: 36px; }
  .bon-header, .bon-section, .bon-table { page-break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   16. Scrollbar (Webkit)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-teal); }

/* --------------------------------------------------------------------------
   16. Focus accessibility
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   17. Auth card (login / register)
   -------------------------------------------------------------------------- */
.auth-card {
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 35px rgba(16,42,42,.15);
  overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, var(--brand-teal-dark), var(--brand-teal));
  color: #fff;
  border-bottom: 4px solid var(--brand-gold);
}
.brand-dot {
  width: .75rem;
  height: .75rem;
  border-radius: 9999px;
  background: var(--brand-gold);
  display: inline-block;
  margin-right: .5rem;
  box-shadow: 0 0 0 3px rgba(248, 164, 5, .25);
}
.link-secondary { color: var(--brand-teal-dark); text-decoration: none; }
.link-secondary:hover { color: var(--brand-gold-dark); }

/* --------------------------------------------------------------------------
   18. Shared CRUD-list utilities
   -------------------------------------------------------------------------- */

/* Chip tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .825rem;
  border: 1px solid rgba(34,157,142,.14);
  background: rgba(34,157,142,.06);
  color: var(--brand-teal-dark);
}

/* Hover lift */
.scale-on-hover {
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.scale-on-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Empty state */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}
.empty svg {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  opacity: .9;
}

/* Sticky thead */
.sticky-head {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Bootstrap subtle-badge / text-primary override */
.badge.bg-primary-subtle {
  background: rgba(34,157,142,.08) !important;
  color: var(--brand-teal-dark) !important;
  border: 1px solid rgba(34,157,142,.18);
}
.text-primary { color: var(--brand-teal) !important; }
.border-primary-subtle { border-color: rgba(34,157,142,.18) !important; }

/* Form checkbox/radio teal */
.form-check-input:checked {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
}
.form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(34, 157, 142, .2);
  border-color: var(--brand-teal);
}

/* --------------------------------------------------------------------------
   19. Micro-animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.3s ease both;
}

/* Spinner color override */
.spinner-border { color: var(--brand-teal); }
