/* ==========================================================================
   Grooming Center theme (look only -- no layout logic or behavior lives here).
   Loaded after styles.css and overrides it. Deleting the <link> to this file
   restores the previous look exactly.

   Colors:
   --primary (the shop's Accent Color, Settings) -- buttons, active items,
     icons, waves. Teal in the reference design.
   --brand-dark -- sidebar, headings, illustrations. Navy by default; when the
     shop picks "tinted", app.js sets it to a deep shade of the accent color.
   ========================================================================== */

:root {
  --brand-dark: #0e3a5c;
  --brand-dark-2: #0a2c47;
  --theme-line: #d9eaf0;
  --theme-bg-top: #eaf5f9;
  --theme-bg-bottom: #f5fafc;

}

/* Header title font: Montserrat ExtraBold, bundled in assets/fonts
   (@fontsource/montserrat 5.0.8 -- SIL Open Font License, see
   assets/fonts/Montserrat-OFL.txt), so the PC install needs no internet. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('assets/fonts/montserrat-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('assets/fonts/montserrat-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Page ---- */
body {
  background: linear-gradient(180deg, var(--theme-bg-top) 0%, var(--theme-bg-bottom) 420px) var(--theme-bg-bottom);
}

/* ---- Header: logo / divider / name, paws + bone, wave along the bottom ---- */
header {
  position: relative;
  overflow: hidden;
  border-bottom: none;
  padding-bottom: 1.55rem;
}
header > * { position: relative; z-index: 1; }
.header-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 26px;
  z-index: 0;
  pointer-events: none;
}
header h1 {
  color: var(--brand-dark);
  font-weight: 800;
}
.brand-title {
  color: var(--primary);
  font-family: 'Montserrat', var(--font);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.brand-title-accent { color: var(--primary); }
@media (min-width: 769px) { header h1 { font-size: 1.7rem; } }
/* Phones keep their smaller title so the shop name isn't cut short. */
@media (max-width: 768px) {
  .brand-mark { height: 1.9rem !important; }
  .brand-emoji { padding-right: 0.55rem; margin-right: 0.2rem; }
}
.brand-emoji {
  display: inline-flex;
  align-items: center;
  padding-right: 0.85rem;
  margin-right: 0.35rem;
  border-right: 2px solid var(--brand-dark);
}
.brand-mark { height: 2.7rem; width: auto; display: block; }
/* A shop that uploaded its logo shows that instead of the paw mark. */
.brand-logo:not([style*="none"]) + h1 .brand-emoji { display: none; }
.brand-logo:not([style*="none"]) {
  padding-right: 0.85rem;
  border-right: 2px solid var(--brand-dark);
}
.header-deco {
  position: absolute !important;
  top: 50%;
  right: 230px;
  transform: translateY(-62%);
  display: none;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary);
  pointer-events: none;
}
.header-deco svg { display: block; height: 52px; width: auto; }
/* Only where there's room beside the tab menu (which is in the header). */
@media (min-width: 1800px) { .header-deco { display: flex; } }
.settings-gear-btn { color: var(--brand-dark); }

/* ---- Cards ---- */
.card {
  border: 1px solid var(--theme-line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(14, 58, 92, 0.06);
}
.card h2 { color: var(--brand-dark); }
.card-header-icon {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
}

#today-section { position: relative; }
/* (The faint paw watermark that sat here was removed 2026-11-23: it could
   overlap the date, and the Kennel card never had one.) */

/* The date, as a soft pill with a calendar mark. */
.today-date-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand-dark);
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
  padding: 0.6rem 1rem;
}
.today-date-heading:empty { display: none; }
.today-date-heading::before {
  content: '';
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  background: var(--i-cal-d) center / contain no-repeat;
}

/* ---- Buttons ---- */
button { border-radius: 10px; }
.btn-secondary {
  color: var(--brand-dark);
  border-color: #cfe3ea;
  background: #fff;
}
.btn-secondary:hover { border-color: var(--primary); background: #fff; }
.kennel-view-toggle { gap: 8px; }

#today-view-grooming-btn::before,
#today-view-boarding-btn::before,
#today-close-day-btn::before {
  content: '';
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  background: center / contain no-repeat;
}
#today-view-grooming-btn::before { background-image: var(--i-scissors-d); }
#today-view-grooming-btn.active::before { background-image: var(--i-scissors-w); }
#today-view-boarding-btn::before { background-image: var(--i-house-d); }
#today-view-boarding-btn.active::before { background-image: var(--i-house-w); }
#today-close-day-btn::before { background-image: var(--i-cal-d); }

/* ---- Stat tiles: bare icons. (The corner waves and the little dog were
   taken off at Mike's request, 2026-11-02 -- they read as clutter.) ---- */
.stat-card {
  border-color: var(--theme-line);
  border-radius: 16px;
}
.stat-card-icon {
  background: none;
  color: var(--primary);
  width: auto;
  font-size: 2rem;
}
.stat-card-value { color: var(--brand-dark); }

/* ---- Tables ---- */
.table-wrap {
  border-color: var(--theme-line);
  border-radius: 16px;
}
thead th {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.82rem;
}
tbody tr:hover { background: rgba(var(--primary-rgb), 0.04); }
#today-table thead th:nth-child(2)::before,
#today-table thead th:nth-child(3)::before,
#today-table thead th:nth-child(4)::before,
#today-table thead th:nth-child(5)::before {
  content: '';
  display: inline-block;
  vertical-align: -0.2em;
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.45rem;
  background: center / contain no-repeat;
}
#today-table thead th:nth-child(2)::before { background-image: var(--i-paw-p); }
#today-table thead th:nth-child(3)::before { background-image: var(--i-scissors-p); }
#today-table thead th:nth-child(4)::before { background-image: var(--i-person-p); }
#today-table thead th:nth-child(5)::before { background-image: var(--i-cal-p); }

/* ---- Empty day: dog + cat illustration ---- */
.empty-state-art { padding: 2rem 1rem 1.25rem; }
.empty-state-art .pet-pair { width: 270px; max-width: 80%; height: auto; display: block; margin: 0 auto 0.6rem; color: var(--brand-dark); }
.empty-state-art .pet-pair .pp-accent { color: var(--primary); }
.empty-state-art .empty-state-title { color: var(--brand-dark); font-size: 1.2rem; font-weight: 800; margin: 0; }
.empty-state-art .empty-state-sub { margin: 0.3rem 0 0; font-size: 1rem; }
.empty-state-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--primary);
}
.empty-state-divider::before,
.empty-state-divider::after { content: ''; width: 90px; height: 2px; background: currentColor; opacity: 0.6; border-radius: 2px; }
.empty-state-divider span {
  width: 18px;
  height: 18px;
  background: var(--i-paw-p) center / contain no-repeat;
}

/* ---- Sidebar (wide screens): dark panel, light text ---- */
.sidebar-art { display: none; }
@media (min-width: 1100px) {
  .app-sidebar {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-dark-2) 100%);
    border-right: none;
    color: #fff;
  }
  .app-sidebar .tabs button { color: rgba(255, 255, 255, 0.88); font-weight: 600; }
  .app-sidebar .tabs button:hover:not(.active) { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .app-sidebar .tabs button.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  }
  .app-sidebar .tabs button.active::after {
    content: '';
    margin-left: auto;
    width: 16px;
    height: 16px;
    background: var(--i-paw-w) center / contain no-repeat;
    opacity: 0.75;
  }
  #sidebar-actions-slot:not(:empty) { border-top-color: rgba(255, 255, 255, 0.16); }
  /* The tab menu lives in the header now, so Quick Actions start the panel. */
  #sidebar-nav-slot:empty + #sidebar-actions-slot { margin-top: 0; padding-top: 0.25rem; border-top: none; }
  .app-sidebar .quick-actions-title { color: rgba(255, 255, 255, 0.78); }
  .app-sidebar .action-card-title { color: #fff; }
  .app-sidebar .action-card-desc { color: rgba(255, 255, 255, 0.72); }
  .app-sidebar .action-card-icon { background: #fff; color: var(--brand-dark); }
  .app-sidebar .quick-actions .action-card:hover { background: rgba(255, 255, 255, 0.08); }
  .app-sidebar .quick-actions .action-card.active { background: rgba(255, 255, 255, 0.14); }
  /* Right under Quick Actions, not pinned to the bottom: the sidebar is a
     screen tall but starts below the header, so its bottom edge was off
     screen and the drawing got cut off. */
  .sidebar-art { display: block; margin-top: 2rem; padding-top: 0; }
  .sidebar-art svg { display: block; width: 100%; height: auto; }
}

@media print {
  header { padding-bottom: 0.85rem; }
  .header-wave, .header-deco { display: none !important; }
}
