/* Full-width daily tour schedule, using the shared Paws HQ font and theme. */
.home-tours {
  --ht-text: #172033;
  --ht-muted: #59697e;
  --ht-line: rgba(43, 59, 85, .12);
  --ht-soft: rgba(75, 101, 139, .06);
  --ht-blue: #2563eb;
  width: 100%;
  margin: 0 0 24px;
  padding: 25px 26px 10px;
  border: 1px solid var(--ht-line);
  border-radius: 20px;
  color: var(--ht-text);
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .035);
  font-family: 'Inter', sans-serif;
}
.dark .home-tours {
  --ht-text: #f4f6fb;
  --ht-muted: #a6b1c3;
  --ht-line: rgba(255, 255, 255, .10);
  --ht-soft: rgba(255, 255, 255, .045);
  --ht-blue: #91baff;
  background: rgba(255, 255, 255, .045);
}
.home-tours *, .home-tours *::before, .home-tours *::after { box-sizing: border-box; }
.home-tours-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.home-tours-heading-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.home-tours-symbol { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; flex: 0 0 43px; color: var(--ht-blue); background: rgba(59, 130, 246, .08); border: 1px solid rgba(59, 130, 246, .12); border-radius: 12px; }
.home-tours-title-line { display: flex; align-items: center; gap: 9px; }
.home-tours h2 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: -.025em; }
.home-tours-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 23px; padding: 2px 7px; border: 1px solid var(--ht-line); border-radius: 7px; background: var(--ht-soft); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-tours-date { margin: 3px 0 0; color: var(--ht-muted); font-size: 11px; line-height: 1.5; }
.home-tours-open { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; padding: 10px 12px; border: 1px solid var(--ht-line); border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--ht-text); text-decoration: none; transition: background .15s, border-color .15s; }
.home-tours-open:hover { background: var(--ht-soft); border-color: var(--ht-muted); }
.home-tours-heading-actions { display: flex; gap: 8px; flex-shrink: 0; }
.home-tours-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ht-line); border-radius: 10px; background: var(--ht-blue); color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; }
.dark .home-tours-add { background: #2563eb; }
.home-tours-add:hover:not(:disabled) { background: #1d4ed8; }
.home-tours-add:disabled, .home-tour-actions button:disabled { opacity: .45; cursor: default; }
.home-tours svg { flex-shrink: 0; }
.home-tours :focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.home-tours-columns, .home-tours-row { display: grid; grid-template-columns: 100px minmax(0,1fr) minmax(160px, .78fr) 44px 96px; column-gap: 18px; align-items: center; }
.home-tours-columns { padding: 0 0 11px; border-bottom: 1px solid var(--ht-line); font-size: 10px; letter-spacing: .055em; font-weight: 600; text-transform: uppercase; color: var(--ht-muted); }
.home-tours-list { list-style: none; margin: 0; padding: 0; }
.home-tours-row { padding: 20px 0; border-bottom: 1px solid var(--ht-line); }
.home-tours-row:last-child { border-bottom: 0; }
.home-tour-time { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-tour-passed { display: inline-block; margin-top: 6px; padding: 3px 6px; border-radius: 5px; color: #8b6119; background: rgba(203,149,34,.10); font-size: 9px; font-weight: 600; white-space: nowrap; }
.dark .home-tour-passed { color: #ebc575; background: rgba(231,177,71,.10); }
.home-tour-actions { display: flex; justify-content: flex-end; gap: 6px; }
.home-tour-actions button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--ht-line); border-radius: 9px; color: var(--ht-text); background: transparent; font-size: 11px; cursor: pointer; }
.home-tour-actions button:hover:not(:disabled) { background: var(--ht-soft); border-color: var(--ht-muted); }
.home-tour-actions .home-tour-delete { color: var(--ht-muted); }
.home-tour-actions .home-tour-delete:hover:not(:disabled) { color: #d94850; border-color: rgba(217,72,80,.35); background: rgba(217,72,80,.07); }
.home-tour-customer { min-width: 0; }
.home-tour-name { margin: 0; color: var(--ht-text); font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.home-tour-notes { margin: 4px 0 0; color: var(--ht-muted); font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-tour-badges { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.home-tour-badge { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 4px 7px; border-radius: 6px; color: var(--ht-muted); background: var(--ht-soft); font-size: 10px; line-height: 1.5; font-weight: 500; }
.home-tour-badge-yes { color: #14745a; background: rgba(16, 145, 109, .09); }
.dark .home-tour-badge-yes { color: #6eddb6; background: rgba(43, 183, 138, .12); }
.home-tour-staff { display: flex; align-items: center; }
.home-tour-initials { display: inline-flex; align-items: center; justify-content: center; min-height: 29px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--ht-line); border-radius: 8px; background: var(--ht-soft); font-size: 10px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.home-tour-staff-label { display: none; }
.home-tours-empty { padding: 35px 20px 31px; text-align: center; color: var(--ht-muted); font-size: 12px; line-height: 1.65; }
.home-tours-empty svg { display: block; margin: 0 auto 12px; color: var(--ht-muted); opacity: .6; }
.home-tours-empty strong { display: block; margin-bottom: 5px; color: var(--ht-text); font-size: 14px; font-weight: 600; }
.home-tours-empty p { margin: 0; }
.home-tours-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--ht-line); }
#homeToursStatus { margin: 0; padding: 11px 0; color: var(--ht-muted); font-size: 10px; line-height: 1.6; }
#homeToursStatus.is-error { color: #b72d37; }
.dark #homeToursStatus.is-error { color: #ffadb3; }
.home-tours-refresh { min-height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 0 9px 10px; border: 0; background: transparent; color: var(--ht-muted); font: inherit; font-size: 10px; cursor: pointer; }
.home-tours-refresh:hover { color: var(--ht-text); }
.home-tours-refresh:disabled { opacity: .55; cursor: wait; }
.home-tours.is-empty { padding-top: 17px; padding-bottom: 3px; }
.home-tours.is-empty .home-tours-heading { margin-bottom: 0; }
.home-tours.is-empty .home-tours-columns { display: none; }
.home-tours.is-empty .home-tours-empty { padding: 15px 0; text-align: left; }
.home-tours.is-empty .home-tours-empty strong { margin: 0; font-size: 12px; font-weight: 500; color: var(--ht-muted); }
@media (max-width: 850px) {
  .home-tours-columns, .home-tours-row { grid-template-columns: 85px minmax(0,1fr) minmax(140px, .7fr) 44px; column-gap: 16px; }
  .home-tour-badges { flex-direction: column; }
  .home-tours-actions-label { display: none; }
  .home-tour-actions { grid-column: 2/-1; margin-top: 10px; }
}
@media (max-width: 620px) {
  .home-tours { padding: 20px 18px 8px; border-radius: 17px; }
  .home-tours-heading { gap: 12px; margin-bottom: 18px; align-items: flex-start; flex-wrap: wrap; }
  .home-tours-heading-actions { width: 100%; }
  .home-tours-heading-actions > * { flex: 1; }
  .home-tours-heading-main { gap: 10px; }
  .home-tours-symbol { display: none; }
  .home-tours h2 { font-size: 16px; }
  .home-tours-date { font-size: 10px; }
  .home-tours-open { min-width: 44px; gap: 7px; padding: 9px; font-size: 10px; }
  .home-tours-add { font-size: 10px; }
  .home-tours-count { min-width: 21px; min-height: 21px; padding-inline: 5px; }
  .home-tours-columns { display: none; }
  .home-tours-row { grid-template-columns: 75px minmax(0,1fr); row-gap: 11px; column-gap: 13px; align-items: start; padding: 18px 0; }
  .home-tours-row:first-child { border-top: 1px solid var(--ht-line); }
  .home-tour-when { grid-column: 1; grid-row: 1; }
  .home-tour-time { padding-top: 1px; font-size: 11px; }
  .home-tour-passed { font-size: 8px; }
  .home-tour-customer { grid-column: 2; grid-row: 1; }
  .home-tour-name { font-size: 12px; }
  .home-tour-badges { grid-column: 2; grid-row: 2; flex-direction: row; gap: 5px; }
  .home-tour-badge { font-size: 9px; }
  .home-tour-staff { grid-column: 1; grid-row: 2; align-items: flex-start; flex-wrap: wrap; gap: 4px; }
  .home-tour-staff-label { display: inline; width: 100%; color: var(--ht-muted); font-size: 9px; }
  .home-tour-initials { min-height: 24px; padding: 3px 6px; font-size: 9px; }
  .home-tour-actions { grid-column: 2; grid-row: 3; margin: 0; justify-content: flex-start; }
  .home-tours-empty { padding: 28px 5px; }
  .home-tours-empty strong { font-size: 13px; }
  .home-tours-empty p { font-size: 11px; }
}
@media print {
  .home-tours { padding: 0; border: 0; background: white; color: #000; box-shadow: none; break-inside: auto !important; }
  .home-tours-heading-actions, .home-tour-actions, .home-tours-actions-label, .home-tours-footer { display: none !important; }
  .home-tours-row { break-inside: avoid; }
  .home-tours * { color: #000 !important; }
}
