/* =============================================================================
 * Curious Contour — Salon Management
 * Theme: "Flamingo Pink" (soft pastel, premium, cute) — PRD §13.
 *
 *   primary     #f56d95  flamingo rose      (CTAs, active nav, links)
 *   flamingo    #fc8eac  flamingo pink      (accents, illustrations)
 *   blush tints #fff5f8 → #ffe6ee → #ffccdd (surfaces, badges)
 *   deep        #c13360 / #8f274a           (hover, headings on pink)
 *   ink (plum)  #241820 deep plum           (sidebar bg, body text)
 *
 * Avoids neon pink and dark pink per the PRD. Tailwind utility classes
 * (indigo-*, slate-*) are remapped to this palette via tailwind.config in
 * layout.html so utilities resolve to brand colors.
 * ========================================================================== */

:root {
  --brand-50:  #fff5f8;
  --brand-100: #ffe6ee;
  --brand-200: #ffccdd;
  --brand-300: #ffa6c4;
  --brand-400: #fc8eac;   /* flamingo */
  --brand-500: #f56d95;   /* primary */
  --brand-600: #e54d7d;
  --brand-700: #c13360;
  --brand-800: #8f274a;
  --brand-900: #5e1a31;

  --ink-50:  #faf7f8;
  --ink-100: #f3eef0;
  --ink-200: #e7dde2;
  --ink-300: #cbbcc4;
  --ink-400: #a08c97;
  --ink-500: #7a6670;
  --ink-600: #5c4a54;
  --ink-700: #463640;
  --ink-800: #33252e;
  --ink-900: #241820;

  --success: #0f9d76;
  --danger:  #e0455f;
  --warning: #d98324;

  --surface:       #ffffff;
  --surface-muted: #fff7fb;
  --page-bg:       #fff8fb;
  --divider:       #f3dce6;

  --shadow-sm: 0 1px 2px 0 rgba(143, 39, 74, 0.06);
  --shadow-md: 0 6px 18px -6px rgba(143, 39, 74, 0.16), 0 2px 6px -3px rgba(143, 39, 74, 0.10);
  --shadow-lg: 0 24px 48px -24px rgba(143, 39, 74, 0.34), 0 8px 18px -10px rgba(143, 39, 74, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

/* -----------------------------------------------------------------------------
 * Base
 * -------------------------------------------------------------------------- */
html, body {
  background: var(--page-bg);
  color: var(--ink-900);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background-image:
    radial-gradient(1100px 540px at 100% -10%, rgba(252, 142, 172, 0.10), transparent 60%),
    radial-gradient(880px 480px at -10% 110%, rgba(245, 109, 149, 0.08), transparent 60%);
  background-attachment: fixed;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection { background: var(--brand-200); color: var(--brand-900); }

:where(a) { color: var(--brand-700); text-decoration: none; }
:where(a):hover { color: var(--brand-800); }

/* -----------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-500) 100%);
  color: #fff; font-weight: 600; font-size: 0.875rem;
  padding: 0.6rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  box-shadow: 0 4px 12px -4px rgba(245, 109, 149, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: filter 160ms ease-out, box-shadow 160ms ease-out, transform 120ms ease-out;
}
.btn-primary, .btn-primary:visited { color: #fff; }
.btn-primary:hover { filter: brightness(1.03); box-shadow: 0 8px 18px -6px rgba(245, 109, 149, 0.6); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: var(--ink-300); cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--surface); color: var(--brand-700); font-weight: 600; font-size: 0.875rem;
  padding: 0.55rem 1.05rem; border-radius: 999px; border: 1px solid var(--brand-200);
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.btn-secondary:visited { color: var(--brand-700); }
.btn-secondary:hover { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-800); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink-600); font-weight: 500; font-size: 0.875rem;
  padding: 0.5rem 0.85rem; border-radius: 999px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.btn-ghost:visited { color: var(--ink-600); }
.btn-ghost:hover { background: var(--ink-100); color: var(--ink-900); }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--danger); color: #fff; font-weight: 600; font-size: 0.875rem;
  padding: 0.55rem 1.05rem; border-radius: 999px;
  transition: filter 150ms ease-out;
}
.btn-danger:visited { color: #fff; }
.btn-danger:hover { filter: brightness(0.95); color: #fff; }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* Row action chips */
.row-actions { display: flex; gap: 0.4rem; justify-content: flex-end; white-space: nowrap; }
.row-action, .row-action-danger {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 500; line-height: 1;
  color: var(--ink-700); padding: 0.42rem 0.72rem; border-radius: 999px;
  border: 1px solid var(--divider); background: #fff; cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.row-action:visited { color: var(--ink-700); }
.row-action:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.row-action-danger:hover { background: #fff1f4; color: #b91c47; border-color: #ffc9d6; }
.row-action svg, .row-action-danger svg { width: 13px; height: 13px; }

/* -----------------------------------------------------------------------------
 * Badges & pills
 * -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.7rem; font-weight: 700; padding: 0.18rem 0.6rem;
  border-radius: 999px; letter-spacing: 0.02em; text-transform: uppercase;
}
.badge-brand   { background: var(--brand-100); color: var(--brand-700); }
.badge-neutral { background: var(--ink-100);   color: var(--ink-700); }
.badge-success { background: #d8f5ea;          color: #0b6b50; }
.badge-danger  { background: #ffe0e6;          color: #b91c47; }
.badge-warning { background: #fdeccf;          color: #9a5b14; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; letter-spacing: 0.02em; text-transform: uppercase;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: 0.8; }
.status-present   { background: #d8f5ea; color: #0b6b50; }
.status-leave     { background: #fdeccf; color: #9a5b14; }
.status-absent    { background: var(--ink-100); color: var(--ink-500); }
.status-pending   { background: #fdeccf; color: #9a5b14; }
.status-approved  { background: #d8f5ea; color: #0b6b50; }
.status-rejected  { background: #ffe0e6; color: #b91c47; }

/* category chips */
.cat-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.6rem; font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; background: var(--brand-100); color: var(--brand-700);
  text-transform: capitalize;
}

/* -----------------------------------------------------------------------------
 * Page header
 * -------------------------------------------------------------------------- */
.page-head {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--divider);
}
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.page-head-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-600);
}
.page-head-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand-400); border-radius: 2px; }
.page-head-title { margin-top: 0.4rem; font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: var(--ink-900); }
.page-head-subtitle { margin-top: 0.4rem; font-size: 0.875rem; color: var(--ink-500); }
.page-head-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* -----------------------------------------------------------------------------
 * Filter bar
 * -------------------------------------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.7rem; background: var(--surface);
  border: 1px solid var(--divider); border-radius: var(--radius-md); margin-bottom: 1rem;
}
.filter-search { position: relative; flex: 1 1 280px; min-width: 0; }
.filter-search input { padding-left: 2.25rem; background: var(--brand-50); border-color: transparent; }
.filter-search input:focus { background: var(--surface); }
.filter-search::before {
  content: ""; position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; pointer-events: none; background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c13360' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
}
.filter-bar select { background: var(--brand-50); border-color: transparent; padding-right: 2rem; }
.filter-clear { font-size: 0.78rem; color: var(--ink-500); margin-left: auto; }
.filter-clear:hover { color: var(--brand-600); }

/* compact period control (dashboard header, top-right) */
.cc-period { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--surface); border: 1px solid var(--divider); border-radius: 999px; padding: 0.25rem 0.45rem 0.25rem 0.8rem; }
.cc-period .cc-period-lbl { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.cc-period select { width: auto; border: 0; background: var(--brand-50); padding: 0.32rem 1.8rem 0.32rem 0.7rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--brand-700); }
.cc-period input[type="date"] { width: auto; padding: 0.3rem 0.5rem; font-size: 0.8rem; }

/* -----------------------------------------------------------------------------
 * Cards & tables
 * -------------------------------------------------------------------------- */
.data-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden;
}
.data-card > .data-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.15rem; border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, var(--brand-50) 0%, transparent 100%);
}
.data-card-head h2 { font-size: 0.95rem; font-weight: 700; color: var(--ink-900); }
.data-card-head .data-card-sub { font-size: 0.75rem; color: var(--ink-500); }

.data-card table, table.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-card thead th, table.data-table thead th {
  text-align: left; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-700);
  padding: 0.8rem 1.15rem; background: var(--brand-50);
  border-bottom: 1px solid var(--divider); white-space: nowrap;
}
.data-card thead th.text-right, table.data-table thead th.text-right { text-align: right; }
.data-card tbody td, table.data-table tbody td {
  padding: 0.8rem 1.15rem; border-top: 1px solid var(--ink-100); color: var(--ink-800); vertical-align: middle;
}
.data-card tbody tr, table.data-table tbody tr { transition: background-color 120ms ease-out; }
.data-card tbody tr:hover, table.data-table tbody tr:hover { background: var(--brand-50); }
.data-card tbody td a, table.data-table tbody td a {
  color: var(--ink-900); font-weight: 600; border-bottom: 1px dashed transparent;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}
.data-card tbody td a:hover, table.data-table tbody td a:hover { color: var(--brand-700); border-bottom-color: var(--brand-300); }
.mono, .text-mono { font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace; font-size: 0.8rem; color: var(--ink-600); }
.tabular { font-variant-numeric: tabular-nums; }

/* -----------------------------------------------------------------------------
 * Empty state (with a cute flamingo)
 * -------------------------------------------------------------------------- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 3rem 1rem; text-align: center; color: var(--ink-500);
}
.empty-state .empty-flamingo { width: 84px; height: 84px; margin-bottom: 0.4rem; opacity: 0.95; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--ink-900); }
.empty-state p { font-size: 0.85rem; max-width: 36ch; color: var(--ink-500); }
.empty-state a { margin-top: 0.5rem; font-size: 0.85rem; color: var(--brand-600); font-weight: 600; }

/* -----------------------------------------------------------------------------
 * Stat strip & KPI cards
 * -------------------------------------------------------------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat-card {
  position: relative; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); padding: 0.95rem 1.05rem; display: flex; flex-direction: column; gap: 0.15rem; overflow: hidden;
}
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--brand-400); opacity: 0.8; }
.stat-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.stat-value { font-size: 1.45rem; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.stat-foot { font-size: 0.75rem; color: var(--ink-500); margin-top: 0.15rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.9rem; }
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1100px) { .kpi-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.kpi-card {
  position: relative; border-radius: var(--radius-lg); padding: 1.05rem 1.1rem; overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, var(--brand-50) 100%);
  border: 1px solid var(--divider); box-shadow: var(--shadow-sm);
}
.kpi-card .kpi-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); }
.kpi-card .kpi-value { margin-top: 0.3rem; font-size: 1.55rem; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.kpi-card .kpi-foot { font-size: 0.72rem; color: var(--ink-500); margin-top: 0.2rem; }
.kpi-card .kpi-glyph { position: absolute; top: 0.8rem; right: 0.8rem; color: var(--brand-300); }
.kpi-feature { background: linear-gradient(160deg, var(--brand-500) 0%, var(--brand-700) 100%); border-color: transparent; }
.kpi-feature .kpi-label { color: rgba(255,255,255,0.85); }
.kpi-feature .kpi-value, .kpi-feature .kpi-foot { color: #fff; }
.kpi-feature .kpi-glyph { color: rgba(255,255,255,0.5); }

/* -----------------------------------------------------------------------------
 * Section card / forms
 * -------------------------------------------------------------------------- */
.section-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 1.25rem 1.35rem;
}
.section-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.9rem; }
.section-card-head h2 { font-size: 0.95rem; font-weight: 700; color: var(--ink-900); }
.section-card-head .section-card-sub { font-size: 0.75rem; color: var(--ink-500); }

.form-section { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-xl); padding: 1.4rem 1.5rem; margin-bottom: 1.25rem; }
.form-section-head { margin-bottom: 1rem; padding-bottom: 0.85rem; border-bottom: 1px dashed var(--divider); }
.form-section-head h2 { font-size: 0.98rem; font-weight: 700; color: var(--ink-900); }
.form-section-head p { margin-top: 0.2rem; font-size: 0.78rem; color: var(--ink-500); }
label > span:first-child { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-700); margin-bottom: 0.35rem; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; padding-top: 1rem; margin-top: 0.5rem; border-top: 1px solid var(--divider); }

input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="time"], input[type="tel"], input[type="url"],
input[type="search"], select, textarea {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-md);
  padding: 0.58rem 0.78rem; font-size: 0.875rem; color: var(--ink-900); width: 100%; font-family: inherit;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(245, 109, 149, 0.16);
}
input::placeholder, textarea::placeholder { color: var(--ink-400); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand-500); }

/* -----------------------------------------------------------------------------
 * Hero tiles (reports landing)
 * -------------------------------------------------------------------------- */
.hero-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 0.9rem; }
@media (min-width: 640px) { .hero-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.hero-tile {
  position: relative; display: block; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-xl); padding: 1.25rem 1.35rem; color: inherit; overflow: hidden;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}
.hero-tile:hover { border-color: var(--brand-300); box-shadow: 0 14px 30px -20px rgba(245,109,149,0.5); transform: translateY(-2px); }
.hero-tile-icon {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem; background: linear-gradient(135deg, var(--brand-100) 0%, var(--brand-200) 100%); color: var(--brand-700);
}
.hero-tile h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink-900); }
.hero-tile p { margin-top: 0.4rem; font-size: 0.82rem; line-height: 1.5; color: var(--ink-500); }
.hero-tile::after { content: "→"; position: absolute; top: 1.25rem; right: 1.35rem; color: var(--brand-300); transition: color 150ms ease-out, transform 150ms ease-out; }
.hero-tile:hover::after { color: var(--brand-600); transform: translateX(3px); }

/* inline list for side panels */
.inline-list { list-style: none; padding: 0; margin: 0; }
.inline-list > li { padding: 0.7rem 0; border-top: 1px solid var(--ink-100); font-size: 0.84rem; color: var(--ink-800); }
.inline-list > li:first-child { border-top: 0; }
.inline-list .meta { font-size: 0.72rem; color: var(--ink-500); margin-top: 0.15rem; }

/* mini progress bar (reports) */
.meter { height: 8px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); }

/* -----------------------------------------------------------------------------
 * Sidebar chrome
 * -------------------------------------------------------------------------- */
aside#sidebar { background: linear-gradient(185deg, #3a2230 0%, #241820 100%); border-right: 1px solid rgba(255, 214, 230, 0.08); }
aside#sidebar nav a { position: relative; font-weight: 500; }
aside#sidebar nav a.is-active { background: linear-gradient(90deg, rgba(245,109,149,0.22) 0%, transparent 85%) !important; color: #fff !important; }
aside#sidebar nav a.is-active::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: var(--brand-400); }
aside#sidebar nav a:not(.is-active):hover { background: rgba(255,255,255,0.05) !important; color: #fff !important; }
aside#sidebar .nav-section { color: rgba(255, 214, 230, 0.42); letter-spacing: 0.14em; }
header.mobile-bar { background: #241820; border-bottom: 1px solid rgba(255,214,230,0.10); }

* { scrollbar-width: thin; scrollbar-color: var(--brand-200) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--brand-200); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--brand-300); background-clip: padding-box; border: 2px solid transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* -----------------------------------------------------------------------------
 * Tom Select (searchable dropdowns) — themed to Flamingo Pink
 * -------------------------------------------------------------------------- */
.ts-wrapper { width: 100%; }
.ts-control {
  background: var(--surface) !important; border: 1px solid var(--divider) !important;
  border-radius: var(--radius-md) !important; padding: 0.46rem 0.7rem !important;
  font-size: 0.875rem !important; color: var(--ink-900) !important; box-shadow: none !important;
  min-height: 42px;
}
.ts-wrapper.focus .ts-control { border-color: var(--brand-400) !important; box-shadow: 0 0 0 3px rgba(245,109,149,0.16) !important; }
.ts-control input::placeholder { color: var(--ink-400); }
.ts-dropdown {
  border: 1px solid var(--divider) !important; border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important; overflow: hidden; margin-top: 4px;
}
.ts-dropdown .option { padding: 0.55rem 0.8rem; font-size: 0.875rem; color: var(--ink-800); }
.ts-dropdown .option.active { background: var(--brand-50) !important; color: var(--brand-800) !important; }
.ts-dropdown .ts-dropdown-content { max-height: 280px; }
.ts-dropdown .no-results, .ts-dropdown .optgroup-header { padding: 0.55rem 0.8rem; color: var(--ink-500); font-size: 0.82rem; }
.ts-control .item { color: var(--ink-900); }

/* -----------------------------------------------------------------------------
 * Customer picker (mobile-first autocomplete)
 * -------------------------------------------------------------------------- */
.cc-pick { position: relative; }
.cc-pick-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); max-height: 300px; overflow-y: auto; padding: 0.25rem;
}
.cc-pick-item {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
  padding: 0.55rem 0.65rem; border-radius: var(--radius-sm); background: transparent; border: 0; cursor: pointer;
}
.cc-pick-item:hover { background: var(--brand-50); }
.cc-pick-item .cc-pick-name { color: var(--ink-600); font-size: 0.84rem; }
.cc-pick-new { color: var(--brand-700); font-weight: 600; }
.cc-pick-new .cc-pick-name { color: var(--brand-700); }
.cc-pick-empty { padding: 0.55rem 0.65rem; color: var(--ink-400); font-size: 0.82rem; }
.cc-pick-chosen {
  display: flex; align-items: center; gap: 0.6rem; justify-content: space-between;
  padding: 0.55rem 0.78rem; border: 1px solid var(--brand-200); background: var(--brand-50);
  border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 600; color: var(--brand-800);
}
.cc-pick-chosen button { color: var(--ink-500); font-size: 0.8rem; font-weight: 500; }
.cc-pick-chosen button:hover { color: var(--brand-700); }

/* -----------------------------------------------------------------------------
 * Bill receipt (shareable, beautiful) + marketing footer
 * -------------------------------------------------------------------------- */
.cc-receipt {
  width: 640px; max-width: 100%; background: #fff; color: var(--ink-900);
  border-radius: 20px; overflow: hidden; border: 1px solid var(--divider);
  box-shadow: var(--shadow-md); font-family: inherit;
}
.cc-receipt-top { background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%); color: #fff; padding: 1.4rem 1.6rem; position: relative; overflow: hidden; }
.cc-receipt-top .cc-receipt-flam { position: absolute; right: -6px; bottom: -10px; opacity: 0.28; }
.cc-receipt-top h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.cc-receipt-top .sub { font-size: 0.8rem; opacity: 0.9; margin-top: 0.1rem; }
.cc-receipt-top .num { font-family: ui-monospace, monospace; font-weight: 700; }
.cc-receipt-body { padding: 1.3rem 1.6rem; }
.cc-receipt-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; margin-bottom: 1rem; }
.cc-receipt-meta .lbl { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-400); }
.cc-receipt table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cc-receipt th { text-align: left; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--brand-700); padding: 0.5rem 0; border-bottom: 1px solid var(--divider); }
.cc-receipt td { padding: 0.5rem 0; border-bottom: 1px solid var(--ink-100); }
.cc-receipt .total-row td { border-top: 2px solid var(--brand-400); border-bottom: 0; font-weight: 800; font-size: 1.05rem; color: var(--brand-700); padding-top: 0.7rem; }
.cc-receipt-foot { background: var(--brand-50); padding: 1rem 1.6rem 1.3rem; text-align: center; }
.cc-receipt-foot .thanks { font-weight: 700; color: var(--ink-900); }
.cc-receipt-promo { margin-top: 0.6rem; font-size: 0.74rem; color: var(--ink-500); line-height: 1.5; border-top: 1px dashed var(--divider); padding-top: 0.7rem; }
.cc-receipt-promo b { color: var(--brand-700); }

/* print styles for invoices */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
