/* General CMS admin overrides on top of the NiceAdmin theme. Fonts use the system stack (no external font CDN). */
body, .logo span, .sidebar-nav .nav-link, .pagetitle h1, .card-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.header .toggle-sidebar-btn { font-size: 32px; color: #012970; line-height: 1; }
.site-name { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pagetitle { margin-bottom: 1rem; }
.table td, .table th { vertical-align: middle; }
.thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 4px; background: #f6f9ff; }
.media-preview { width: 120px; height: 80px; display: flex; align-items: center; justify-content: center; background: #f6f9ff; overflow: hidden; }
.media-preview img { max-width: 100%; max-height: 100%; object-fit: cover; }
.rich-text [data-editor] { min-height: var(--editor-height, 260px); background: #fff; }
.rich-text .ql-container { font-size: 15px; }
.media-tile { cursor: pointer; border: 2px solid transparent; border-radius: 6px; }
.media-tile:hover, .media-tile:focus { border-color: #4154f1; outline: none; }
.media-tile .tile-img { height: 110px; display: flex; align-items: center; justify-content: center; background: #f6f9ff; overflow: hidden; border-radius: 4px; }
.media-tile .tile-img img { width: 100%; height: 100%; object-fit: cover; }
.media-card .tile-img { height: 150px; }
.permission-grid .form-check { min-width: 140px; }
.json-diff { max-height: 420px; overflow: auto; font-size: 12px; background: #f6f9ff; padding: .75rem; border-radius: 6px; white-space: pre-wrap; word-break: break-word; }
.stat-card .card-icon { width: 56px; height: 56px; font-size: 26px; }
.menu-tree .menu-child { margin-left: 2rem; }
.api-key { font-family: var(--bs-font-monospace); }
/* Tab panes may be nested in a form (product editor); hide inactive ones at any depth. */
.tab-content .tab-pane:not(.active) { display: none; }

/* Appointment calendar: one column per day on wide screens, stacked on phones. */
.calendar-week > .col { flex: 0 0 auto; width: 100%; }
@media (min-width: 1200px) {
  .calendar-week > .col { width: calc(100% / 7); }
}

/* The site's uploaded logo in the header and on the sign-in pages (any shape: wide wordmark or square mark). */
.logo img.site-logo { max-height: 40px; max-width: 220px; width: auto; object-fit: contain; }
.register .logo img.site-logo { max-height: 64px; max-width: 260px; }

/* Sticky footer: on short pages the footer sits at the bottom of the window instead of floating under the content;
   on long pages it follows the content as usual. The header and sidebar are fixed, so they are not part of the flow. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }
#footer { flex-shrink: 0; padding-inline: 16px; }
@media (max-width: 575.98px) {
  #main { padding: 16px 12px; }
  .footer { padding: 14px 0; font-size: 13px; }
}

/* Appointment calendar, month view: 7 columns at every width; on phones a day shows its booking count only. */
.calendar-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-month-head { font-size: 13px; font-weight: 600; color: #6c757d; text-align: center; padding-bottom: 2px; }
.calendar-month-cell { min-height: 110px; min-width: 0; background: #fff; }
.calendar-month-cell.outside { background: #f8f9fb; }
.calendar-month-cell.outside > div:first-child a { color: #adb5bd !important; }
@media (max-width: 767.98px) {
  .calendar-month { gap: 3px; }
  .calendar-month-cell { min-height: 54px; }
  .calendar-month-head { font-size: 11px; }
}
