/* ===================================================================
   Pro Shop Hub — Design System
   The National Golf Club of Canada
   =================================================================== */

/* --- Google Fonts: Cormorant Garamond (full weight range + italic) -- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&display=swap');

/* --- CSS Custom Properties ----------------------------------------- */
:root {
  /* Brand Greens */
  --green: #458c67;
  --green-hover: #3a7558;
  --green-dark: #1A3C2B;
  --green-mid: #2D6A4F;
  --green-light: #5ca87e;
  --green-tint: #D8EDDF;
  --green-faint: #f0f7f3;

  /* Brand Gold */
  --gold: #c9a227;
  --gold-mid: #C9A84C;
  --gold-dark: #a8871e;
  --gold-faint: #fef8e8;

  /* Sidebar */
  --sidebar-bg: #1a1a2e;
  --sidebar-hover: #23233f;
  --sidebar-active: #2a2a4a;
  --sidebar-text: #b8b8cc;
  --sidebar-width: 256px;

  /* Header */
  --header-bg: #1A3C2B;
  --header-text: #ffffff;
  --header-border: rgba(201, 162, 39, 0.25);

  /* Surfaces */
  --bg: #f3f5f2;
  --bg-alt: #eef1ec;
  --bg-white: #ffffff;
  --border: #dde2db;
  --border-light: #e8ece6;

  /* Text */
  --text: #1a2517;
  --text-secondary: #5a6657;
  --text-muted: #8a9887;
  --text-inverse: #ffffff;

  /* Status */
  --danger: #c0392b;
  --danger-bg: #fdf2f0;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --success: #2d7a4f;
  --success-bg: #edf7f2;
  --info: #2563eb;
  --info-bg: #eff6ff;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;

  /* Radius */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  /* Shadows — refined, green-tinted */
  --shadow-sm: 0 1px 2px rgba(26, 60, 43, .06);
  --shadow-md: 0 2px 8px rgba(26, 60, 43, .09), 0 1px 2px rgba(26, 60, 43, .05);
  --shadow-lg: 0 8px 24px rgba(26, 60, 43, .12), 0 2px 6px rgba(26, 60, 43, .06);

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Transitions */
  --transition: 150ms ease;
  --transition-slow: 250ms ease;
}


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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea,
button {
  font-size: inherit;
}


/* --- Typography ----------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2.2rem;  margin-bottom: var(--sp-lg); }
h2 { font-size: 1.6rem;  margin-bottom: var(--sp-md); }
h3 { font-size: 1.3rem;  margin-bottom: var(--sp-sm); }
h4 { font-size: 1.1rem;  margin-bottom: var(--sp-sm); }

p {
  margin-bottom: var(--sp-md);
}

small {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}


/* ===================================================================
   LAYOUT — Sidebar + Main
   =================================================================== */
.layout {
  display: flex;
  min-height: 100vh;
}


/* --- Sidebar -------------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-slow);
  /* Subtle diagonal texture — barely-visible, adds depth */
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 24px,
    rgba(255, 255, 255, .012) 24px,
    rgba(255, 255, 255, .012) 25px
  );
}

.sidebar__brand {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-md);
}

.brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-mid);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-top: 3px;
  line-height: 1.4;
}

.brand-divider {
  border: none;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  margin: var(--sp-sm) 0 0;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-sm) 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar__nav ul {
  list-style: none;
}

.nav-item {
  display: block;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px var(--sp-lg);
  color: var(--sidebar-text);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
  text-decoration: none;
}

.nav-link--active {
  background: var(--sidebar-active);
  color: #ffffff;
  border-left-color: var(--gold);
  font-weight: 500;
}

.nav-link svg,
.nav-link .nav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity var(--transition);
}

.nav-link:hover svg,
.nav-link--active svg,
.nav-link--active .nav-icon {
  opacity: 1;
}

/* Sub-menu */
.nav-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-submenu.open {
  max-height: 300px;
}

.nav-submenu .nav-link {
  padding-left: calc(var(--sp-lg) + 26px);
  font-size: 0.83rem;
}

.nav-section-label {
  padding: var(--sp-md) var(--sp-lg) var(--sp-xs);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(201, 162, 39, 0.5);
  font-family: var(--font-body);
}

/* Sidebar footer */
.sidebar__footer {
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  font-size: 0.85rem;
}

.sidebar__user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.sidebar__user-name {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.875rem;
}

.sidebar__user-role {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-mid);
  margin-top: 1px;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--sidebar-text);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  border-color: rgba(255,255,255,.35);
}


/* --- Main content --------------------------------------------------- */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.main__header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  padding: 14px var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.main__header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--header-text);
  letter-spacing: 0.01em;
}

.main__content {
  padding: var(--sp-xl);
  max-width: 1400px;
}


/* --- Mobile hamburger ----------------------------------------------- */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: var(--sp-xs);
  cursor: pointer;
  margin-right: var(--sp-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.8);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 90;
  backdrop-filter: blur(2px);
}


/* ===================================================================
   COMPONENTS
   =================================================================== */

/* --- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(69,140,103,.3);
}

.btn-primary:hover {
  background: var(--green-hover);
  box-shadow: 0 3px 8px rgba(69,140,103,.35);
  color: #ffffff;
}

.btn-secondary {
  background: var(--gold);
  color: #1a2517;
  box-shadow: 0 1px 3px rgba(201,162,39,.25);
}

.btn-secondary:hover {
  background: var(--gold-dark);
  box-shadow: 0 3px 8px rgba(201,162,39,.3);
  color: #1a2517;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-faint);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(192,57,43,.25);
}

.btn-danger:hover {
  background: #a93226;
  box-shadow: 0 3px 8px rgba(192,57,43,.3);
  color: #ffffff;
}

/* Header action buttons — white outlined for dark header */
.main__header .btn-outline,
.main__header .btn {
  border-color: rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
}

.main__header .btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
  color: #ffffff;
}

.main__header .btn-primary {
  background: var(--gold);
  color: #1a2517;
  border: none;
}

.main__header .btn-primary:hover {
  background: var(--gold-dark);
  color: #1a2517;
}

.btn-sm {
  padding: 0.28rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.65rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}


/* --- Cards ---------------------------------------------------------- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

/* Gold top-border accent variant */
.card--accent {
  border-top: 3px solid var(--gold);
}

/* Green top-border variant */
.card--green {
  border-top: 3px solid var(--green);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border-light);
}

.card__header h3,
.card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}

.card__body {}

.card__footer {
  margin-top: var(--sp-md);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--border-light);
}


/* --- Forms ---------------------------------------------------------- */
.form-group {
  margin-bottom: var(--sp-md);
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(69, 140, 103, .12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--sp-xs);
}

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: var(--sp-xs);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-md);
}


/* --- Tables --------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: var(--green-dark);
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.9);
  border-bottom: 2px solid rgba(201,162,39,.3);
  white-space: nowrap;
}

thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-md) 0 0; }

tbody td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: var(--green-tint);
}

tbody tr:hover {
  background: rgba(69, 140, 103, .08);
}

tbody tr:nth-child(even):hover {
  background: rgba(69, 140, 103, .08);
}


/* --- Badges / Tags -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-green  { background: var(--success-bg);  color: var(--success); }
.badge-yellow { background: var(--warning-bg);  color: var(--warning); }
.badge-red    { background: var(--danger-bg);   color: var(--danger); }
.badge-blue   { background: var(--info-bg);     color: var(--info); }
.badge-gray   { background: var(--bg-alt);      color: var(--text-secondary); }
.badge-gold   { background: var(--gold-faint);  color: #7a5e10; }
.badge-purple { background: #ede9f5;            color: #5b3fa0; }


/* --- Alerts --------------------------------------------------------- */
.alert {
  padding: var(--sp-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-lg);
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-left-width: 4px;
}

.alert-success { background: var(--success-bg); border-color: var(--success); color: #1a5c38; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning); color: #7a4a00; }
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger);  color: #7a1c1c; }
.alert-info    { background: var(--info-bg);    border-color: var(--info);    color: #1a3a7a; }


/* ===================================================================
   DASHBOARD
   =================================================================== */

.dashboard-greeting {
  margin-bottom: var(--sp-lg);
}

.dashboard-greeting h1,
.page-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.2rem;
  line-height: 1.1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

/* --- Weather widget ------------------------------------------------- */
.weather-current {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.weather-temp {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--green-dark);
}

.weather-condition {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--sp-xs);
}

.weather-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.weather-hourly {
  display: flex;
  gap: var(--sp-xs);
  overflow-x: auto;
  padding: var(--sp-sm) 0;
  border-top: 1px solid var(--border-light);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.weather-hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.weather-hour__time   { font-weight: 600; color: var(--text); font-size: 0.75rem; }
.weather-hour__temp   { color: var(--green-mid); font-weight: 500; }
.weather-hour__precip { color: #3a8fd4; }

.weather-error {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--sp-md) 0;
}

/* --- Quick Links widget -------------------------------------------- */
.quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

.quick-link-wrap {
  position: relative;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-sm) var(--sp-xs);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  text-align: center;
  transition: all var(--transition);
  background: var(--bg);
  width: 100%;
  box-sizing: border-box;
}

.quick-link-card:hover {
  border-color: var(--green);
  background: var(--green-faint);
  color: var(--green-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quick-link-icon { font-size: 1.5rem; line-height: 1; }

.quick-link-delete {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  padding: 0;
}

.quick-link-wrap:hover .quick-link-delete {
  opacity: 1;
}

/* --- Dashboard Calendar widget ------------------------------------- */
.cal-week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--border-light);
}

.cal-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-xs) 2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: background var(--transition);
}
.cal-week-day:hover { background: var(--bg-alt); }
.cal-week-day--today {
  background: var(--green-tint);
  color: var(--green-dark);
}
.cal-week-day__num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.cal-week-day--today .cal-week-day__num { color: var(--green-dark); }
.cal-week-dots {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 8px;
}

.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
}
.cal-month-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-sm);
}

.cal-day-header {
  background: var(--bg-alt);
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 4px 0;
}

.cal-day {
  background: var(--bg-white);
  min-height: 46px;
  padding: 3px 4px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.cal-day:hover { background: var(--green-faint); }
.cal-day--today { background: var(--green-tint); }
.cal-day--today:hover { filter: brightness(0.97); }
.cal-day--other {
  background: var(--bg);
  opacity: 0.5;
  cursor: default;
}
.cal-day--other:hover { background: var(--bg); filter: none; }
.cal-day--selected { outline: 2px solid var(--green); outline-offset: -2px; }

.cal-day__num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1;
  margin-bottom: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.cal-day--today .cal-day__num {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
}

.cal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 1px;
  flex-shrink: 0;
}
.cal-dot--green { background: var(--green); }
.cal-dot--gold  { background: var(--gold); }
.cal-dot--blue  { background: var(--info, #3b82f6); }
.cal-dot--red   { background: var(--danger, #ef4444); }
.cal-dot--gray  { background: var(--text-muted); }

.cal-day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 2px;
}

.cal-more {
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 1px;
}

.cal-day-detail {
  margin-top: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.cal-day-detail__heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: var(--sp-xs);
}
.cal-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
}
.cal-event-row:last-child { border-bottom: none; }
.cal-event-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-detail-add {
  display: inline-block;
  margin-top: var(--sp-xs);
  font-size: 0.78rem;
  color: var(--green);
  cursor: pointer;
  font-family: var(--font-heading);
  font-style: italic;
  text-decoration: underline;
}
.cal-detail-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 2px 0;
}

/* --- Calendar event popup (Google Cal style) ----------------------- */
.cal-event-popup {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 360px;
  max-width: 94vw;
  box-shadow: 0 8px 32px rgba(26,60,43,.18), 0 2px 8px rgba(26,60,43,.10);
  border-top: 4px solid var(--green);
  overflow: hidden;
}
.cal-event-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-md) 0;
}
.cal-event-popup__header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--green-dark);
}
.cal-event-popup__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 4px;
}
.cal-event-popup__close:hover { color: var(--text-primary); }
.cal-event-popup__body { padding: var(--sp-sm) var(--sp-md) 0; }
.cal-popup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}
.cal-popup-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.cal-color-swatches {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 2px;
}
.cal-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color .15s, transform .1s;
  flex-shrink: 0;
}
.cal-color-swatch:hover { transform: scale(1.15); }
.cal-color-swatch.selected { border-color: var(--text-secondary); }
.cal-color-swatch--green { background: var(--green); }
.cal-color-swatch--gold  { background: var(--gold); }
.cal-color-swatch--blue  { background: #3b82f6; }
.cal-color-swatch--red   { background: #ef4444; }
.cal-color-swatch--gray  { background: var(--text-muted); }
.cal-event-popup__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md) var(--sp-md);
  border-top: 1px solid var(--border-light);
  margin-top: var(--sp-sm);
}

/* --- Legacy event-list (kept for backward compat) ------------------ */
.event-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--border-light);
}
.event-list-item:last-child { border-bottom: none; }
.event-list-item__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.event-list-item__date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-left: var(--sp-sm);
  flex-shrink: 0;
}

/* --- Staff Notes widget -------------------------------------------- */
.card__body--flush {
  padding: 0;
}

.staff-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.staff-note-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}

.staff-note-row:last-child {
  border-bottom: none;
}

.staff-note-row:hover {
  background: var(--green-tint);
}

.staff-note-subject {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-note-pin-badge {
  font-size: 0.7rem;
  color: var(--gold);
  background: var(--gold-faint);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.staff-note-pin-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  line-height: 1;
}

.staff-note-pin-btn:hover,
.staff-note-pin-btn.pinned {
  color: var(--gold);
}

.staff-note-tooltip {
  display: none;
  position: absolute;
  left: 1rem;
  top: calc(100% + 4px);
  background: var(--green-dark);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  max-width: 300px;
  z-index: 60;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
}

.staff-note-row:hover .staff-note-tooltip {
  display: block;
}

.staff-notes-empty {
  list-style: none;
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Archive list */
.staff-notes-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 340px;
  overflow-y: auto;
}

.archive-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-light);
}

.archive-note-row:last-child {
  border-bottom: none;
}

.archive-note-info {
  flex: 1;
  min-width: 0;
}

.archive-note-subject {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-note-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.archive-note-loading,
.archive-note-empty {
  font-size: 0.875rem;
  font-style: italic;
  padding: 0.5rem 0;
  color: var(--text-muted);
}

/* --- Cart Status widget -------------------------------------------- */
.cart-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cart-status-badge--none        { background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); }
.cart-status-badge--scatter     { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.cart-status-badge--90-degree   { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.cart-status-badge--cart-path-only { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.fallow-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.cart-status-btns {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.cart-status-btn {
  flex: 1;
  min-width: 90px;
  padding: var(--sp-sm) var(--sp-xs);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.cart-status-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-faint);
}

.cart-status-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}

.hole-picker {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
}

.hole-btn {
  padding: 5px 2px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hole-btn:hover {
  border-color: var(--gold);
  background: #fdf8ec;
  color: var(--green-dark);
}

.hole-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
}

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}


/* ===================================================================
   UTILITY CLASSES
   =================================================================== */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-muted    { color: var(--text-muted); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-gold     { color: var(--gold); }
.text-green    { color: var(--green); }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }

.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }

.d-flex        { display: flex; }
.d-none        { display: none; }
.d-block       { display: block; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm        { gap: var(--sp-sm); }
.gap-md        { gap: var(--sp-md); }
.w-full        { width: 100%; }


/* ===================================================================
   LOGIN PAGE
   =================================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, .025) 40px,
      rgba(255, 255, 255, .025) 41px
    );
}

.login-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2xl);
  width: 100%;
  max-width: 400px;
  margin: var(--sp-lg);
  border-top: 4px solid var(--gold);
}

.login-card__brand {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.login-card__brand h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: var(--sp-xs);
}

.login-card__brand p {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  padding: var(--sp-sm) var(--sp-md);
  margin-bottom: var(--sp-md);
  font-size: 0.85rem;
}


/* ===================================================================
   ERROR PAGE
   =================================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-xl);
}

.error-page__code {
  font-size: 6rem;
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--green);
  line-height: 1;
  margin-bottom: var(--sp-sm);
}


/* ===================================================================
   FILTER BAR
   =================================================================== */
.filter-bar {
  padding: var(--sp-md) var(--sp-lg);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.filter-bar__row {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-bar__field {
  min-width: 140px;
}

.filter-bar__field--grow {
  flex: 1;
  min-width: 200px;
}

.filter-bar__field .form-label {
  margin-bottom: var(--sp-xs);
}

/* Search field filter button + dropdown */
.search-field-wrapper {
  position: relative;
}

.search-field-wrapper .form-input {
  padding-right: 2.5rem;
}

.search-filter-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  line-height: 0;
}

.search-filter-btn:hover {
  color: var(--green);
}

.search-filter-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.search-filter-btn--active {
  color: var(--gold);
}

.search-filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 200;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 175px;
  padding: 0.25rem 0;
}

.search-filter-dropdown--open {
  display: block;
}

.search-filter-dropdown__divider {
  border-top: 1px solid var(--border-light);
  margin: 0.25rem 0;
}

.search-filter-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
}

.search-filter-dropdown__item:hover {
  background: var(--green-tint);
}

/* ===================================================================
   EVENT CARD GRID
   =================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-lg);
}

.event-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

.event-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.event-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.event-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
  color: var(--green-dark);
}

.event-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
  font-size: 0.85rem;
}

.event-card__details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.event-card__detail {
  margin-bottom: var(--sp-xs);
}

.event-card__detail strong {
  color: var(--text);
}


/* ===================================================================
   DETAIL GRID (key-value pairs)
   =================================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-md);
}

.detail-grid__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.detail-grid__value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.detail-section {
  margin-bottom: var(--sp-lg);
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-xs);
}


/* ===================================================================
   DYNAMIC ROWS (form add/remove)
   =================================================================== */
.dynamic-row {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
  margin-bottom: var(--sp-sm);
}

.dynamic-row .form-input {
  flex: 1;
  min-width: 0;
}

.dynamic-row__remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}


/* ===================================================================
   FORM ACTIONS
   =================================================================== */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border-light);
}


/* ===================================================================
   MODAL
   =================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 300;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

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

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}

.modal h3 {
  margin-bottom: var(--sp-sm);
  color: var(--green-dark);
}


/* ===================================================================
   PAGINATION
   =================================================================== */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: var(--sp-lg);
  flex-wrap: wrap;
}

.pagination__btn {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}

.pagination__btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-faint);
}

.pagination__btn--active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}


/* ===================================================================
   DROP ZONE (document upload)
   =================================================================== */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: var(--sp-lg);
  background: var(--bg-white);
}

.drop-zone:hover,
.drop-zone--active {
  border-color: var(--green);
  background: var(--green-faint);
}

.drop-zone__content p {
  margin: var(--sp-sm) 0 var(--sp-xs);
  color: var(--text-secondary);
}

.drop-zone__icon {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.drop-zone--active .drop-zone__icon {
  color: var(--green);
}

/* Upload progress items */
.upload-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-sm) var(--sp-md);
  margin-bottom: var(--sp-xs);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-size: 0.875rem;
}

.upload-item__name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

.upload-item__status {
  color: var(--text-muted);
  flex-shrink: 0;
}

.upload-item--done .upload-item__status  { color: var(--green); }
.upload-item--error .upload-item__status { color: var(--danger); }


/* ===================================================================
   DOCUMENTS TABLE
   =================================================================== */
.documents-table__icon {
  font-size: 1.3rem;
  width: 40px;
  text-align: center;
}

.documents-table__actions {
  text-align: right;
  white-space: nowrap;
}


/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .main {
    margin-left: 0;
  }

  .main__content {
    padding: var(--sp-md);
  }

  .filter-bar__row {
    flex-direction: column;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .dynamic-row {
    flex-wrap: wrap;
  }

  .documents-table {
    font-size: 0.8rem;
  }

  .documents-table__icon {
    font-size: 1.1rem;
    width: 30px;
  }

  /* Touch targets >= 44px */
  .btn,
  .nav-link,
  .hamburger,
  .form-input,
  .form-select,
  .form-textarea {
    min-height: 44px;
    padding-top: max(0.5rem, calc((44px - 1.4em) / 2));
    padding-bottom: max(0.5rem, calc((44px - 1.4em) / 2));
  }

  /* Table Cards */
  .table thead {
    display: none;
  }

  .table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--sp-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    padding: var(--sp-xs);
  }

  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-light);
    font-size: 0.85rem;
    padding: 0.5rem;
    text-align: right;
  }

  .table td:last-child {
    border-bottom: none;
  }

  .table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    padding-right: var(--sp-md);
    text-align: left;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: var(--sp-lg);
  }
}


/* ===================================================================
   PRINT
   =================================================================== */
@media print {

  .sidebar,
  .hamburger,
  .sidebar-overlay,
  .main__header {
    display: none !important;
  }

  .main {
    margin-left: 0 !important;
  }

  .main__content {
    padding: 0;
    max-width: none;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ===================================================================
   Daily Report Generator
   =================================================================== */

/* --- Layout -------------------------------------------------------- */
.report-generator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  height: calc(100vh - 80px);
  overflow: hidden;
}

.edit-pane {
  overflow-y: auto;
  padding: var(--sp-lg);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.edit-pane__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border-light);
}

.preview-pane {
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-lg);
}

/* --- Event tag list (edit pane) ------------------------------------ */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.event-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.875rem;
  gap: 8px;
}

.event-tag__text {
  flex: 1;
  color: var(--green-dark);
}

.event-tag__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s;
}

.event-tag__remove:hover { color: #c0392b; }

/* --- Report card --------------------------------------------------- */
.report-preview {
  background: #fff;
  width: 420px;
  min-height: 600px;
  padding: 36px 40px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-align: center;
}

.report-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  pointer-events: none;
  z-index: 0;
}

.report-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.1;
}

.report-inner {
  position: relative;
  z-index: 1;
}

.report-logo {
  display: block;
  margin: 0 auto 6px;
  max-width: 120px;
  height: auto;
}

.report-date {
  font-size: 26px;
  font-weight: 600;
  color: #111;
  margin: 12px 0 20px;
  line-height: 1.2;
}

.report-section {
  margin-bottom: 16px;
}

.report-heading {
  font-size: 19px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 3px;
}

.report-value {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.3px;
}

.report-value--underlined {
  text-decoration: underline;
  font-weight: 400;
}

.report-value--italic {
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: #444;
}

.report-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 18px 0;
}

/* --- 5-day forecast cards ------------------------------------------ */
.forecast-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.forecast-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.forecast-card {
  border-radius: 7px;
  overflow: hidden;
  min-width: 66px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.14);
}

.forecast-card__header {
  background: var(--green-dark);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  letter-spacing: 1px;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.forecast-card__body {
  padding: 6px 8px 8px;
  background: #fff;
}

.forecast-card__icon {
  font-size: 20px;
  display: block;
  margin: 3px 0;
}

.forecast-card__temp {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.forecast-card__cond {
  font-size: 9px;
  color: #666;
  margin-top: 2px;
  line-height: 1.2;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- Print --------------------------------------------------------- */
@media print {
  .sidebar,
  .sidebar-overlay,
  .main__header,
  .ai-chat-fab,
  .edit-pane {
    display: none !important;
  }

  .main {
    padding: 0 !important;
    margin: 0 !important;
  }

  .main__content {
    padding: 0 !important;
  }

  .report-generator {
    display: block;
    height: auto;
    overflow: visible;
  }

  .preview-pane {
    padding: 0;
    background: #fff;
    overflow: visible;
  }

  /* Hard-cap to one page — nothing escapes */
  .report-preview {
    box-shadow: none;
    width: 100%;
    height: 10in;
    overflow: hidden;
    padding: 0.15in 0.3in 0.15in;
    text-align: center;
  }

  /* Fonts sized so 5 sections + forecast fill ~8in comfortably */
  .report-watermark { width: 4in; height: 4in; }
  .report-logo { max-width: 1.3in; margin: 0 auto 8pt; }
  .report-date { font-size: 28pt; margin: 8pt 0 16pt; }
  .report-section { margin-bottom: 14pt; break-inside: avoid; page-break-inside: avoid; }
  .report-heading { font-size: 21pt; margin-bottom: 3pt; }
  .report-value { font-size: 14pt; }
  .report-value--underlined { font-size: 14pt; }
  .report-value--italic { font-size: 12pt; }
  .report-divider { margin: 14pt 0; }
  .forecast-section-label { font-size: 11pt; letter-spacing: 2pt; margin-bottom: 10pt; break-after: avoid; page-break-after: avoid; }
  .forecast-row { gap: 8pt; flex-wrap: nowrap; justify-content: center; break-inside: avoid; page-break-inside: avoid; }
  .forecast-card { min-width: 74pt; border-radius: 6pt; break-inside: avoid; page-break-inside: avoid; }
  .forecast-card__header { font-size: 11pt; padding: 4pt 6pt; }
  .forecast-card__body { padding: 5pt 8pt 7pt; }
  .forecast-card__icon { font-size: 22pt; margin: 3pt 0; }
  .forecast-card__temp { font-size: 12pt; }
  .forecast-card__cond { font-size: 9pt; margin-top: 2pt; }

  @page {
    size: letter portrait;
    margin: 0.5in;
  }
}

/* ── Handicap header pill ───────────────────────────────────────────── */
.hcap-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 20px;
  padding: 5px 13px 5px 9px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  white-space: nowrap;
  border: 1px solid;
  background: none;
  transition: opacity 0.2s;
  color: inherit;
}
.hcap-pill:hover { opacity: 0.8; }

.hcap-pill--pending {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.5);
  color: #f0d060;
}
.hcap-pill--done {
  background: rgba(69, 140, 103, 0.18);
  border-color: rgba(69, 140, 103, 0.5);
  color: #7ecfa0;
}

.hcap-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hcap-pill--pending .hcap-pill__dot {
  background: var(--gold);
  animation: hcap-pulse 1.4s ease-in-out infinite;
}
.hcap-pill--done .hcap-pill__dot {
  background: var(--green);
}

@keyframes hcap-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.7); }
}

/* ── Sidebar logo badge ─────────────────────────────────────────────── */
.sidebar__brand-btn {
  display: block;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  width: 100%;
  position: relative;
}
.sidebar__brand-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.hcap-logo-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--sidebar-bg);
  display: none;
}
.hcap-logo-badge--pending {
  display: block;
  background: var(--gold);
  animation: hcap-pulse 1.4s ease-in-out infinite;
}
.hcap-logo-badge--done {
  display: block;
  background: var(--green);
  animation: none;
}

/* ── Handicap upload modal ──────────────────────────────────────────── */
.hcap-modal {
  max-width: 480px;
  width: 95%;
}

.hcap-drop-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: var(--sp-md);
}
.hcap-drop-zone:hover,
.hcap-drop-zone.drag-over {
  border-color: var(--green);
  background: rgba(69, 140, 103, 0.05);
}
.hcap-drop-zone__icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.hcap-drop-zone__primary {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
}
.hcap-drop-zone__secondary {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hcap-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-md);
  margin-top: var(--sp-md);
  border-top: 1px solid var(--border-light);
}
.hcap-last-upload {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-secondary);
}
.hcap-report-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-size: 0.78rem;
  color: var(--green-mid);
  cursor: pointer;
  opacity: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hcap-report-btn:hover {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green-dark);
}
.hcap-report-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* ---- Demo item two-line display ---- */
.demo-item { margin-bottom: 8px; }
.demo-item:last-child { margin-bottom: 0; }
.demo-item__line1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.demo-item__tid {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
}
.demo-item__brand {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  font-weight: 600;
}
.demo-item__flex {
  font-size: 0.68rem;
  background: var(--green-dark);
  color: white;
  border-radius: 3px;
  padding: 1px 5px;
  font-weight: 700;
  font-family: monospace;
}
.demo-item__line2 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--green-dark);
  font-weight: 600;
  line-height: 1.2;
}
.demo-item__shaft-divider {
  font-size: 0.65rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-item__shaft-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--color-gray-200);
}

/* --- Status Report doc push toast --- */
.push-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  max-width: 360px;
}
.push-toast--visible {
  opacity: 1;
  transform: translateY(0);
}
.push-toast--success { background: var(--green); }
.push-toast--error   { background: #b3261e; }

/* ============================================================
   Events redesign — detail page
   ============================================================ */

.event-meta-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 2fr;
  gap: 20px;
  margin-bottom: 18px;
}
.event-meta-cell { min-width: 0; }
.event-meta-cell__label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.event-meta-cell__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
  font-feature-settings: "tnum";
}
.event-meta-cell__sub {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}
.event-meta-cell__notes {
  font-size: 13px;
  color: #3a4540;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-meta-cell--event {
  background: var(--green-dark);
  color: #fff;
  padding: 12px 14px;
  border-radius: 5px;
  margin: -4px 0;
}
.event-meta-cell--event .event-meta-cell__label { color: rgba(255,255,255,0.7); }
.event-meta-cell--event .event-meta-cell__value { color: #fff; }
.event-meta-cell--event .event-meta-cell__sub { color: rgba(255,255,255,0.65); }

.pdf-viewer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.pdf-viewer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fafbfa;
  font-size: 13px;
  flex-wrap: wrap;
}
.pdf-viewer__filename {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 600;
}
.pdf-viewer__meta {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}
.pdf-viewer__actions { display: flex; gap: 8px; }
.pdf-viewer__frame {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
  background: #4a4a4a;
}

.pdf-empty {
  border: 2px dashed var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}
.pdf-empty--dragover { background: var(--green-tint); border-color: var(--green); }
.pdf-empty__icon { font-size: 48px; margin-bottom: 8px; opacity: 0.5; }
.pdf-empty__title {
  font-size: 18px;
  color: var(--green-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  margin-bottom: 4px;
}
.pdf-empty__hint { font-size: 13px; margin-bottom: 16px; }

@media (max-width: 900px) {
  .event-meta-bar { grid-template-columns: 1fr 1fr; }
  .pdf-viewer__frame { height: 600px; }
}

/* ============================================================
   Events redesign — form page
   ============================================================ */

.pdf-form-dropzone {
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  color: var(--text-muted);
}
.pdf-form-dropzone.pdf-empty--dragover {
  background: var(--green-tint);
  border-color: var(--green);
}
.pdf-form-selected {
  margin-top: 12px;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
}
.pdf-form-attached {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--green-tint);
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 12px;
  font-size: 13px;
}
.pdf-form-attached__name { font-weight: 600; color: var(--green-dark); }
.pdf-form-attached__meta { color: var(--text-muted); font-size: 12px; }
.link-button {
  background: none; border: 0; padding: 0;
  color: var(--green); cursor: pointer;
  text-decoration: underline; font: inherit;
}

/* ============================================================
   Events redesign — list page
   ============================================================ */

.time-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.time-toggle__btn {
  background: #fff;
  border: 0;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  border-right: 1px solid var(--border);
}
.time-toggle__btn:last-child { border-right: 0; }
.time-toggle__btn--active {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
}

/* New: prominent event-date line on each card. The other .event-card*
   rules live in the original EVENT CARD GRID block above (~line 1681)
   and use design-system tokens; reusing them. */
.event-card__date {
  font-size: 0.95rem;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  font-feature-settings: "tnum";
}
/* ── Caddie Management ─────────────────────────────────────────── */
.caddies-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 1rem;
}
.tab-link {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-link--active {
  color: var(--green-dark);
  border-bottom-color: var(--gold);
}
.caddies-week-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.caddies-week-controls h3 { margin: 0; color: var(--green-dark); flex: 1; }
.caddie-week-grid { width: 100%; }
.caddie-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.caddie-grid-row {
  display: grid;
  grid-template-columns: 70px repeat(7, 1fr);
  gap: 1px;
  background: var(--border-light);
}
.caddie-grid-header { background: transparent; }
.caddie-grid-time-cell {
  background: #fff;
  padding: 0.4rem 0.6rem;
  font-weight: 700;
  color: var(--green-dark);
  text-align: right;
  font-size: 0.85rem;
}
.caddie-day-cell {
  background: var(--green-dark);
  color: #fff;
  padding: 0.45rem 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
}
.caddie-day-cell--today { background: var(--gold); color: var(--green-dark); }
.caddie-cell {
  background: #fff;
  padding: 0.35rem 0.45rem;
  font-size: 0.78rem;
  min-height: 36px;
  cursor: pointer;
}
.caddie-cell--filled { background: var(--green-tint); }
.caddie-cell--empty:hover { background: #f7faf7; }
.caddie-cell--warn { box-shadow: inset 0 0 0 2px var(--gold); }
.caddie-cell__caddie { font-weight: 700; color: var(--green-dark); }
.caddie-cell__member { color: var(--text-secondary); font-size: 0.72rem; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-md); padding: var(--sp-lg); max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-light); padding-bottom: var(--sp-sm); margin-bottom: var(--sp-md); }
.modal-close { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--text-secondary); }
.modal-body label.form-label { display: block; margin-top: var(--sp-md); font-size: 0.78rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.modal-footer { display: flex; justify-content: flex-end; gap: var(--sp-sm); margin-top: var(--sp-md); padding-top: var(--sp-md); border-top: 1px solid var(--border-light); }
.caddied-for-block { background: var(--green-tint); padding: var(--sp-sm); border-radius: var(--radius-sm); border-left: 3px solid var(--green); margin-top: var(--sp-md); }
.member-results { margin-top: 4px; max-height: 160px; overflow-y: auto; }
.member-result { padding: 4px 6px; border-bottom: 1px solid var(--border-light); cursor: pointer; font-size: 0.85rem; }
.member-result:hover { background: var(--green-tint); }
.member-chip { margin-top: 4px; }
.member-chip__pill { display: inline-block; background: #fff; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.85rem; border: 1px solid var(--green); }
.other-players-block { background: #fafafa; border: 1px dashed var(--border-light); border-radius: var(--radius-sm); padding: var(--sp-sm); margin-top: var(--sp-md); }
.other-players-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-sm); }
.other-player-slot { display: flex; gap: 6px; align-items: center; padding: 4px; background: #fff; border-radius: var(--radius-sm); margin-bottom: 4px; border: 1px solid var(--border-light); }
.slot-num { background: var(--green-dark); color: #fff; padding: 2px 7px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; }
.slot-name-input { flex: 1; border: 0; padding: 2px 4px; }
.slot-tag { color: var(--gold); background: #fff8e1; padding: 2px 7px; border-radius: 8px; font-size: 0.7rem; min-width: 35px; text-align: center; }
.slot-remove { background: none; border: 0; color: var(--text-secondary); font-size: 1rem; cursor: pointer; }
.roster-controls { margin-bottom: var(--sp-md); }
.roster-controls input { max-width: 400px; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-md); }
.dossier-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.dossier-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.dossier-card--inactive { opacity: 0.55; }
.dossier-header { background: linear-gradient(135deg, var(--green-dark), var(--green)); padding: 0.7rem; color: #fff; display: flex; align-items: center; gap: 0.5rem; position: relative; }
.dossier-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.dossier-name { font-weight: 700; font-size: 0.95rem; }
.dossier-sub { font-size: 0.7rem; opacity: 0.85; }
.dossier-badge { position: absolute; top: 6px; right: 36px; background: var(--gold); color: var(--green-dark); padding: 2px 8px; border-radius: 10px; font-size: 0.65rem; font-weight: 700; }
.dossier-edit { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,0.2); border: 0; color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
.dossier-stats { display: grid; grid-template-columns: 1fr 1fr; background: #f8f8f8; border-bottom: 1px solid var(--border-light); }
.dossier-stats > div { padding: 0.5rem; text-align: center; }
.dossier-stats > div:first-child { border-right: 1px solid var(--border-light); }
.dossier-stat-num { font-weight: 700; color: var(--green-dark); font-size: 1.3rem; }
.dossier-stat-label { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; }
.dossier-contact { padding: 0.45rem 0.7rem; font-size: 0.8rem; color: var(--text-secondary); }
.dossier-spark { display: flex; gap: 1px; align-items: flex-end; height: 24px; padding: 0 0.7rem 0.6rem; }
.spark-bar { flex: 1; background: var(--green); min-height: 2px; }
.spark-bar--current { background: var(--gold); }

.btn-danger { background: #c0392b; color: #fff; border: 0; }
.profile-breadcrumb { font-size: 0.85rem; margin-bottom: var(--sp-sm); }
.profile-breadcrumb a { color: var(--green); text-decoration: none; }
.profile-hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: 1rem; border-radius: var(--radius-md) var(--radius-md) 0 0; display: flex; align-items: center; gap: 0.8rem; }
.profile-hero-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; }
.profile-hero-title { font-size: 1.4rem; font-weight: 700; }
.profile-hero-sub { font-size: 0.85rem; opacity: 0.9; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; background: #fff; border: 1px solid var(--border-light); border-top: 0; }
.profile-stats > div { padding: 0.8rem; text-align: center; border-right: 1px solid var(--border-light); }
.profile-stats > div:last-child { border-right: 0; }
.profile-stat-num { font-weight: 700; color: var(--green-dark); font-size: 1.6rem; }
.profile-stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }
.profile-tabs { display: flex; background: #fff; border: 1px solid var(--border-light); border-top: 0; }
.profile-tab { padding: 0.55rem 1.2rem; background: none; border: 0; color: var(--text-secondary); cursor: pointer; font-weight: 600; }
.profile-tab--active { background: var(--green-dark); color: #fff; }
.profile-tab-body { background: #fff; border: 1px solid var(--border-light); border-top: 0; padding: 1rem; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.profile-grid { display: grid; gap: 1rem; }
.contact-block { background: #f5f5f5; padding: 0.6rem; border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.6; }
.notes-block { background: #fff8e1; border-left: 3px solid var(--gold); padding: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.profile-spark { display: flex; gap: 2px; align-items: flex-end; height: 40px; background: #fafafa; padding: 4px; border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: var(--green-dark); color: #fff; padding: 6px; text-align: left; }
.data-table td { padding: 5px 6px; border-bottom: 1px solid var(--border-light); }

/* Form controls used across caddie modals */
.caddie-modal-input,
#caddieBookingModal .form-control,
#rosterEditModal .form-control {
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#caddieBookingModal .form-control:focus,
#rosterEditModal .form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(69, 140, 103, 0.18);
}
#caddieBookingModal input[type="date"],
#caddieBookingModal input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-height: 36px;
}
#caddieBookingModal input[type="date"]::-webkit-calendar-picker-indicator,
#caddieBookingModal input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
}
#caddieBookingModal input[type="date"]:hover::-webkit-calendar-picker-indicator,
#caddieBookingModal input[type="time"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}
#caddieBookingModal select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%231A3C2B' d='M2 4l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 12px;
  padding-right: 1.8rem;
}

.caddie-grid-empty {
  background: #fff;
  padding: var(--sp-xl) var(--sp-md);
  text-align: center;
  color: var(--text-secondary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.caddie-grid-empty p { margin: 0.3rem 0; }
