/* =====================================================================
   ADMIN PANEL
   A working tool for the owner: calm, readable, big touch targets.
   Same fonts and tokens as the booking page, so both feel like one product.
   ===================================================================== */

/* ---------- Tokens ---------- */

:root {
  --primary: #C9A227;
  --on-primary: #1A1612;

  --bg: #F3F3F0;
  --surface: #FFFFFF;
  --text: #1E1B17;
  --muted: #69645C;
  --line: #DAD8D2;
  --danger: #B3261E;
  color-scheme: light;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;

  --radius-small: 8px;
  --radius: 14px;
  --gutter: 16px;
}

/* Dark: chosen by the business (data-theme), or by the device on the
   login page, where we still do not know the business */
:root[data-theme="dark"] {
  --bg: #1C1814;
  --surface: #262019;
  --text: #EDE4D3;
  --muted: #A89C8A;
  --line: #3E352B;
  --danger: #E8857A;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #1C1814;
    --surface: #262019;
    --text: #EDE4D3;
    --muted: #A89C8A;
    --line: #3E352B;
    --danger: #E8857A;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

h1, h2, p { margin: 0; }

button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

/* ---------- Shared pieces ---------- */

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  font-size: 1rem;          /* 16px avoids the zoom on iPhone */
}

.field input:focus {
  border-color: var(--primary);
  outline: none;
}

.form-error {
  color: var(--danger);
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0 18px;
  border-radius: var(--radius-small);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.button:disabled { opacity: 0.6; cursor: wait; }

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button-quiet {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  padding: 0 10px;
}

.page-error {
  max-width: 40rem;
  margin: 48px auto 0;
  padding: 0 var(--gutter);
  color: var(--danger);
  font-weight: 500;
}

/* ---------- Login ---------- */

.login-page {
  min-height: 100dvh;
  display: grid;
  align-items: center;
}

.login {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  padding: 48px var(--gutter);
}

.login-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 0.95;
}

.login-intro {
  margin-top: 12px;
  color: var(--muted);
}

.login-form {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.login-form .button { width: 100%; margin-top: 4px; }

.login-help {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Panel ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
  padding-top: max(12px, env(safe-area-inset-top));
}

.topbar-business {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-logo {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--primary);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
}

.topbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel {
  max-width: 40rem;
  margin: 0 auto;
  /* room for the tab bar fixed at the bottom on phones */
  padding: 28px var(--gutter) calc(96px + env(safe-area-inset-bottom));
}


.card {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
}

.card-quiet {
  background: transparent;
  border: 1px dashed var(--line);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.1;
}

.card-text {
  margin-top: 8px;
  color: var(--muted);
  max-width: 60ch;
}

.share-link {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-small);
  background: var(--bg);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.card-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-feedback {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 1.3em;
}

/* ---------- Agenda ---------- */

.agenda { margin-top: 20px; }

.week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.week-label {
  color: var(--muted);
  font-size: 0.9375rem;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover { background: var(--surface); }

.button-small {
  min-height: 2.25rem;
  padding: 0 14px;
  font-size: 0.9375rem;
}

.week-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.week-day {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: transparent;
  cursor: pointer;
}

.week-day-name {
  font-size: 0.75rem;
  color: var(--muted);
}

.week-day-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

/* Number of appointments: a small badge, empty when there are none */
.week-day-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}

.week-day-count:empty { background: transparent; }

.week-day.is-today { border-color: var(--line); }

.week-day.is-closed .week-day-number { color: var(--muted); }

.week-day[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.week-day[aria-pressed="true"] .week-day-name,
.week-day[aria-pressed="true"] .week-day-number { color: inherit; }

.week-day[aria-pressed="true"] .week-day-count:not(:empty) {
  background: var(--on-primary);
  color: var(--primary);
}

.day-head {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.day-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
}

.day-summary {
  margin-top: 6px;
  color: var(--muted);
}

.agenda-message {
  margin-top: 16px;
  color: var(--muted);
}

/* Timeline: time on the left, what happens on the right */
.timeline {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.entry {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.entry-time {
  display: grid;
  padding-top: 12px;
  text-align: right;
}

.entry-start {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.1;
  white-space: nowrap;
}

.entry-end {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.entry-card {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 3px solid var(--primary);
  min-width: 0;
}

.entry-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.entry-client {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.entry-status {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.entry-service {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.entry-source {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--primary);
}

.entry-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.chip-button:disabled { opacity: 0.5; cursor: wait; }

.chip-button-danger { color: var(--danger); }

.chip-button-danger[data-armed="true"] {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--bg);
}

/* Finished or missed: the card steps back */
.entry-booking[data-status="completed"] .entry-card,
.entry-booking[data-status="no_show"] .entry-card {
  border-left-color: var(--line);
}

.entry-booking[data-status="no_show"] .entry-client,
.entry-booking[data-status="cancelled"] .entry-client {
  text-decoration: line-through;
}

.entry-booking[data-status="cancelled"] { opacity: 0.55; }

.entry-booking[data-status="cancelled"] .entry-card { border-left-color: transparent; }

.entry-block .entry-card {
  background: transparent;
  border: 1px dashed var(--line);
  border-left-width: 3px;
}

/* Free time: the gap the owner used to post in his WhatsApp status */
.entry-free .entry-time { padding-top: 0; }

.entry-free-text {
  padding: 2px 0 2px 14px;
  border-left: 3px dotted var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}


/* ---------- Day actions ---------- */

.day-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* A free gap is tappable: it opens "Apartar cita" at that time */
.entry-free-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 4px 0 4px 14px;
  border: 0;
  border-left: 3px dotted var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.entry-free-button .entry-free-text {
  padding: 0;
  border: 0;
}

.entry-free-action {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.entry-free-button:hover { border-left-color: var(--primary); }

/* ---------- Dialogs (manual booking, time block) ---------- */

.sheet {
  width: min(100% - 24px, 28rem);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  overflow: auto;
}

.sheet::backdrop {
  background: rgb(0 0 0 / 0.6);
}

/* On phones the form rises from the bottom, closer to the thumb */
@media (max-width: 600px) {
  .sheet {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: var(--radius) var(--radius) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.sheet-form {
  display: grid;
  gap: 16px;
  padding: 24px 20px 20px;
}

.sheet-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.sheet-intro {
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field select {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.field select:focus {
  border-color: var(--primary);
  outline: none;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--primary);
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 8px;
  margin-top: 4px;
}

/* ---------- Freed time banner ---------- */

.freed-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.freed-text { font-weight: 600; }

.freed-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* ---------- WhatsApp status image ---------- */

.story-days {
  margin-top: 16px;
  display: flex;
  gap: 6px;
}

.story-days .chip-button[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.story-message {
  margin-top: 16px;
  color: var(--muted);
}

/* The canvas is 1080 x 1920; on screen it is a small phone-shaped preview */
.story-preview {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.story-canvas {
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
}

.story-design-name {
  margin-top: 8px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}


/* =====================================================================
   PANEL BY MODULES (ad-04)
   ===================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Tab bar: bottom of the screen on phones ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 0;
  border-radius: var(--radius-small);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
}

.tab-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab[aria-current="page"] { color: var(--primary); }

/* ---------- Views ---------- */

.view-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
}

.view-title:focus { outline: none; }

.view-intro {
  margin-top: 8px;
  color: var(--muted);
  max-width: 60ch;
}

.section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* ---------- Inicio ---------- */

.next { margin-top: 28px; }

.next-card {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 4px solid var(--primary);
}

.next-time {
  display: grid;
  justify-items: center;
  line-height: 1;
}

.next-time-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.25rem;
  color: var(--primary);
}

.next-time-suffix {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--muted);
}

.next-when {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.next-client {
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.next-service {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.next-empty {
  margin-top: 10px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  color: var(--muted);
}

/* Today's numbers: three figures side by side, separated by thin lines */
.home-stats {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.home-stat {
  padding: 4px 12px;
  border-left: 1px solid var(--line);
}

.home-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-stat dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.home-stat dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-actions {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.home-actions .button-primary { grid-column: 1 / -1; }

.home-tomorrow {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- Clientes ---------- */

.search {
  display: block;
  margin-top: 20px;
}

.search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 1rem;
}

.search input:focus {
  border-color: var(--primary);
  outline: none;
}

.client-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.client {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.client-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.client-name {
  font-weight: 600;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.client-badge {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
}

.client-stats {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.client-next {
  margin-top: 2px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.client-empty {
  padding: 16px 0;
  color: var(--muted);
}

/* ---------- Estados ---------- */

.story-actions { justify-content: center; }

.story .card-feedback { text-align: center; }

/* ---------- Computers: the tabs become a column on the left ---------- */

@media (min-width: 900px) {
  .app {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100dvh;
    /* The line between the menu and the content, all the way down */
    background: linear-gradient(to right,
      transparent calc(15rem - 1px), var(--line) calc(15rem - 1px),
      var(--line) 15rem, transparent 15rem);
  }

  .topbar {
    grid-column: 1;
    grid-row: 1;
    border-bottom: 0;
    padding: 24px 20px 12px;
  }

  .tabbar {
    position: sticky;
    top: 0;
    bottom: auto;                 /* the phone bar is glued to the bottom; not here */
    grid-column: 1;
    grid-row: 2;
    align-self: start;            /* only as tall as the tabs, so it can follow the scroll */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px;
    background: transparent;
    border-top: 0;
  }

  .tab {
    grid-template-columns: 24px 1fr;
    justify-items: start;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 0.9375rem;
  }

  .tab:hover { background: var(--surface); color: var(--text); }

  .tab[aria-current="page"] {
    background: var(--surface);
    color: var(--primary);
  }

  .panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    padding: 40px 32px 64px;
  }
}

/* ---------- Mi negocio ---------- */

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  max-width: 34rem;
}

.settings-form .card-actions,
.settings-form .card-text { margin-top: 0; }

.settings-subtitle {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 700;
}

.field-hint {
  font-size: 0.875rem;
  color: var(--muted);
}

.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}

.field textarea:focus {
  border-color: var(--primary);
  outline: none;
}

/* Services */

.service-admin-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.service-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.service-admin.is-hidden .service-admin-text { opacity: 0.55; }

.service-admin-name { font-weight: 600; }

.service-admin-meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.service-admin-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.icon-button-small {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.125rem;
  color: var(--text);
}

.icon-button:disabled {
  opacity: 0.3;
  cursor: default;
  background: transparent;
}

/* Hours */

.hours-rows {
  display: grid;
  margin-top: 14px;
}

.hours-day {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.hours-day-name {
  float: left;                /* lets a legend sit inside the grid */
  padding: 0;
  font-weight: 600;
}

.hours-open { justify-self: start; }

.hours-ranges,
.hours-add { grid-column: 1 / -1; }

.hours-add { justify-self: start; }

.hours-ranges {
  display: grid;
  gap: 8px;
}

.hours-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hours-time {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.hours-time:focus {
  border-color: var(--primary);
  outline: none;
}

.hours-to { color: var(--muted); }

@media (min-width: 720px) {
  .hours-day { grid-template-columns: 5.5rem auto 1fr; }
  .hours-range { flex-wrap: nowrap; }
  .hours-ranges { grid-column: 3; }
  .hours-add { grid-column: 3; }
}

/* The logo and name are a link to Inicio */
a.topbar-business {
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-small);
}
