/* =========================================================
   SERENITY PRO SHARED SITE STYLES
   Restored shared component styles.
   Sidebar/layout rules live in app-shell.css.
   Calendar rules live in calendar.css.
   ========================================================= */

/* ==========================================
   GLOBAL STRUCTURE & BOILERPLATE INTEGRATION
   ========================================== */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Accessible Focus Ring States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ==========================================
   SERENITY PRO BRAND PALETTE VARIABLES
   ========================================== */
:root {
  --bg-main: #eeeceb;         /* Light cream background */
  --accent-orange: #e26034;   /* Active highlights / Brand Orange */
  --bg-card-light: #c6def4;   /* Pending blue background */
  --bg-card-alt: #e1fecb;     /* Confirmed green background */
  --accent-purple: #f8c99f;    /* Warm secondary interaction accent */
  --text-muted: #a7a795;       /* Slate grey indicators and typography text */
  --text-dark: #2d2d2d;
  --border-soft: #eaeaea;
}

/* Layout Cards */
.card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

@media (min-width: 992px) {
  .full-width-card {
    grid-column: span 2;
  }
}

/* ==========================================
   METRIC RIBBON LAYOUT
   ========================================== */
.metric-ribbon {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .metric-ribbon { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (min-width: 1200px) {
  .metric-ribbon { 
    grid-template-columns: repeat(4, 1fr); 
  }
}

.metric-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

/* ==========================================
   REQUESTS WORKSPACE CARDS
   ========================================== */
.requests-master-card {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.request-item-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background-color: #ffffff;
}

.request-main-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .request-main-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.avatar-badge {
  width: 40px;
  height: 40px;
  background-color: var(--accent-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.request-details-body {
  flex-grow: 1;
}

.client-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.client-meta-line h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.service-price-line {
  font-size: 0.85rem;
  color: #444444;
  margin-bottom: 0.75rem;
}

.request-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

@media (min-width: 576px) {
  .request-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.notes-banner {
  background-color: #e6f2fd;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: #2b5884;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================
   ACTION PANEL TRIGGERS
   ========================================== */
.request-actions-sidebar {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .request-actions-sidebar {
    flex-direction: column;
    width: 130px;
    flex-shrink: 0;
  }
}

.btn-req-action {
  flex-grow: 1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-req-accept { background-color: #e1fecb; color: #2e5c19; }
.btn-req-accept:hover { background-color: #d2f7b8; }

.btn-req-suggest { background-color: #ffffff; border-color: #e0e0e0; color: #444444; }
.btn-req-suggest:hover { background-color: #f5f5f5; }

.btn-req-decline { background-color: #fff1f0; border-color: #ffa39e; color: #cf1322; }
.btn-req-decline:hover { background-color: #ffccc7; }

.pill-urgent {
  background-color: var(--accent-orange);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.pill-time {
  background-color: #f0f0f0;
  color: #666666;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==========================================
   STAFF CARD WORKSPACE LAYOUT
   ========================================== */
.staff-master-card {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.staff-row-card {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background-color: #ffffff;
}

.staff-main-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .staff-main-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.avatar-staff {
  width: 44px;
  height: 44px;
  background-color: var(--accent-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.staff-details-body {
  flex-grow: 1;
}

.staff-meta-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.staff-meta-header h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #111111;
}

.staff-title-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.staff-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.staff-contact-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.shift-status-pill {
  display: inline-block;
  background-color: #e1fecb;
  color: #386125;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.skill-tag {
  background-color: #ffffff;
  border: 1px solid #dcdcd4;
  color: #444444;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
}

.member-since-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   ROLE ACCESS PILLS
   ========================================== */
.role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: lowercase;
}

.role-admin { background-color: var(--accent-orange); color: #ffffff; }
.role-staff { background-color: var(--bg-card-light); color: #1d3b5c; }
.role-limited { background-color: #f1f3f5; color: #495057; }

.clock-state {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.clock-in { background-color: #e1fecb; color: #2e5c19; border-color: #c3e6cb; }
.clock-out { background-color: #f8f9fa; color: #7f8c8d; border-color: #e2e2e2; }

.staff-action-aside {
  display: flex;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .staff-action-aside {
    flex-shrink: 0;
  }
}

.btn-staff-util {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  color: #444444;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.btn-staff-util:hover { background-color: #f8f9fa; }

.btn-staff-delete { border-color: #f5c6cb; color: #721c24; }
.btn-staff-delete:hover { background-color: #f8d7da; }

/* ==========================================
   GLOBAL UTILITIES & SEARCH INTERFACE
   ========================================== */
.search-wrapper-block {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.search-input-control {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #dddddd;
  font-size: 0.9rem;
  background-color: #ffffff;
  outline: none;
  transition: all 0.15s ease-in-out;
}

.search-input-control:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--accent-purple);
}

/* ==========================================
   CLIENT DATABASE ROW MATRIX LAYOUT
   ========================================== */
.client-master-card {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.client-row-item {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background-color: #ffffff;
}

.client-flex-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .client-flex-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.client-financial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
  font-size: 0.85rem;
  color: #555555;
  margin: 0.75rem 0;
}

@media (min-width: 576px) {
  .client-financial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.financial-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.financial-metric .value-label {
  font-weight: 600;
  color: #111111;
}

.customer-insight-text {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
}

.status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: lowercase;
}

.status-active { background-color: var(--bg-card-alt); color: #2e5c19; }
.status-inactive { background-color: #f1f3f5; color: #6c757d; }

.client-action-aside {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

@media (min-width: 768px) {
  .client-action-aside {
    width: auto;
    flex-shrink: 0;
  }
}

.btn-client-utility {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  color: #444444;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.btn-client-utility:hover {
  background-color: #f8f9fa;
  border-color: #cccccc;
}

/* ==========================================
   SETTINGS INTERFACE NAVIGATION TABS
   ========================================== */
.settings-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background-color: #f1f3f5;
  padding: 0.35rem;
  border-radius: 8px;
  margin: 0 1.5rem 1.5rem 1.5rem;
  list-style: none;
}

.settings-tab-item {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  color: #495057;
  border-radius: 6px;
  transition: all 0.15s ease-in-out;
}

.settings-tab-item:hover {
  color: #111111;
  background-color: rgba(0,0,0,0.03);
}

.settings-tab-item.active-subtab {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   FORM WRAPPER PANELS & SECTIONS
   ========================================== */
.settings-card {
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0 1.5rem 1.5rem 1.5rem;
}

.settings-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111111;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  margin-bottom: 1.5rem;
}

.settings-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.35rem;
  display: block;
}

.settings-input-box {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid #cccccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease;
}

.settings-input-box:focus {
  border-color: var(--accent-orange);
}

/* ==========================================
   TOGGLE AND ROW WRAPPERS
   ========================================== */
.toggle-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.toggle-setting-row:last-of-type {
  border-bottom: none;
}

.toggle-label-group h6 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  color: #222222;
}

.toggle-label-group p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.custom-switch-input {
  width: 2.6rem;
  height: 1.3rem;
  appearance: none;
  background-color: #dee2e6;
  border-radius: 1rem;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease;
}

.custom-switch-input:checked {
  background-color: #e26034;
}

.custom-switch-input::before {
  content: '';
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  top: 0.1rem;
  left: 0.1rem;
  background-color: #ffffff;
  transition: transform 0.2s ease;
}

.custom-switch-input:checked::before {
  transform: translateX(1.3rem);
}

/* ==========================================
   SCHEDULING ROWS MATRIX
   ========================================== */
.schedule-day-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 0;
  font-size: 0.85rem;
}

.schedule-day-lbl {
  width: 90px;
  font-weight: 500;
}

.schedule-time-span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #555555;
}

.schedule-time-box {
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  background-color: #ffffff;
}

/* ==========================================
   PERMISSION CHECKLIST MATRIX
   ========================================== */
.permission-block-wrapper {
  margin-bottom: 1.5rem;
}

.permission-list-box {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.permission-list-box li {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.permission-allowed { color: #2e5c19; }
.permission-denied { color: #cf1322; }









/* ================================
   DARK MODE + COMPACT VIEW
   Add this at the bottom of site.css
   ================================ */

.app-body {
    background-color: var(--bg-main);
}

/* Base dark shell */
body.app-dark-mode {
    --bg-main: #1f2937;
    --text-dark: #f9fafb;
    --text-muted: #cbd5e1;
    --border-soft: #374151;

    background-color: #1f2937 !important;
    color: #f9fafb !important;
}

body.app-dark-mode .main-content-wrapper {
    background-color: #1f2937 !important;
}

/* Sidebar */
body.app-dark-mode .responsive-sidebar {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

/* Regular app pages, excluding dashboard special cards */
body.app-dark-mode .settings-card,
body.app-dark-mode .request-item-card,
body.app-dark-mode .staff-row-card,
body.app-dark-mode .client-row-item,
body.app-dark-mode .weekly-day-card,
body.app-dark-mode .mini-calendar-container,
body.app-dark-mode .modal-content {
    background-color: #243044 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

/* Generic text */
body.app-dark-mode .text-dark,
body.app-dark-mode h1,
body.app-dark-mode h2,
body.app-dark-mode h3,
body.app-dark-mode h4,
body.app-dark-mode h5,
body.app-dark-mode h6,
body.app-dark-mode strong,
body.app-dark-mode .metric-value,
body.app-dark-mode .settings-section-title,
body.app-dark-mode .toggle-label-group h6,
body.app-dark-mode .staff-meta-header h6,
body.app-dark-mode .financial-metric .value-label {
    color: #f9fafb !important;
}

body.app-dark-mode .text-muted,
body.app-dark-mode small,
body.app-dark-mode .settings-section-subtitle,
body.app-dark-mode .toggle-label-group p,
body.app-dark-mode .service-name,
body.app-dark-mode .metric-title,
body.app-dark-mode .staff-title-sub,
body.app-dark-mode .customer-insight-text {
    color: #cbd5e1 !important;
}

/* Inputs */
body.app-dark-mode .form-control,
body.app-dark-mode .form-select,
body.app-dark-mode .settings-input-box,
body.app-dark-mode .search-input-control,
body.app-dark-mode .schedule-time-box {
    background-color: #111827 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

/* Settings tabs */
body.app-dark-mode .settings-tab-nav {
    background-color: #111827 !important;
    border-color: #374151 !important;
}

body.app-dark-mode .settings-tab-item {
    color: #cbd5e1 !important;
}

body.app-dark-mode .settings-tab-item.active-subtab {
    background-color: #243044 !important;
    color: #f9fafb !important;
}

/* Buttons/utilities */
body.app-dark-mode .btn-action,
body.app-dark-mode .btn-staff-util,
body.app-dark-mode .btn-client-utility,
body.app-dark-mode .slot-pill,
body.app-dark-mode .btn-light,
body.app-dark-mode .navbar {
    background-color: #111827 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

body.app-dark-mode .btn-close {
    filter: invert(1);
}

/* ================================
   DASHBOARD DARK MODE FIXES
   ================================ */

/* Dashboard top toggle */
body.app-dark-mode .btn-group {
    background-color: #111827 !important;
    border-color: #374151 !important;
}

/* Dashboard normal white cards */
body.app-dark-mode .container-fluid > .row .card.bg-white,
body.app-dark-mode .container-fluid > .row .card.border-0.shadow-sm.bg-white {
    background-color: #243044 !important;
    border: 1px solid #374151 !important;
    color: #f9fafb !important;
}

/* Keep dashboard gradient cards light/readable */
body.app-dark-mode .container-fluid .card[style*="linear-gradient"] {
    color: #111827 !important;
}

/* Clock display inner light panel */
body.app-dark-mode #liveClock {
    color: #111827 !important;
}

body.app-dark-mode #liveDate,
body.app-dark-mode #clockSinceText {
    color: #6b7280 !important;
}

/* Clock dropdown */
body.app-dark-mode #clockUserSelect {
    background-color: #111827 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

/* Hours worked gradient boxes */
body.app-dark-mode #hoursTodayValue,
body.app-dark-mode #hoursWeekValue,
body.app-dark-mode #hoursMonthValue {
    color: #111827 !important;
}

body.app-dark-mode #hoursStatusText {
    color: #111827 !important;
}

/* Today's schedule appointment row */
body.app-dark-mode .d-flex.align-items-center.justify-content-between.p-2.rounded {
    background-color: #f8f7f6 !important;
    color: #111827 !important;
}

body.app-dark-mode .d-flex.align-items-center.justify-content-between.p-2.rounded .text-dark,
body.app-dark-mode .d-flex.align-items-center.justify-content-between.p-2.rounded .fw-semibold {
    color: #111827 !important;
}

/* Booking link input */
body.app-dark-mode #bookingLink {
    background-color: #111827 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

/* Booking link card */
body.app-dark-mode #bookingLink.closest-fallback {
    background-color: #243044 !important;
}

/* ================================
   COMPACT VIEW
   ================================ */

body.app-compact-view main {
    padding: 1rem !important;
}

body.app-compact-view .container-fluid {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

body.app-compact-view .card,
body.app-compact-view .settings-card,
body.app-compact-view .request-item-card,
body.app-compact-view .staff-row-card,
body.app-compact-view .client-row-item {
    padding: 0.9rem !important;
}

body.app-compact-view .settings-card,
body.app-compact-view .metric-ribbon,
body.app-compact-view .search-wrapper-block,
body.app-compact-view .requests-master-card,
body.app-compact-view .staff-master-card,
body.app-compact-view .client-master-card {
    margin-bottom: 0.85rem !important;
}

body.app-compact-view .toggle-setting-row,
body.app-compact-view .appointment-item {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

body.app-compact-view .settings-input-box,
body.app-compact-view .search-input-control,
body.app-compact-view .form-control,
body.app-compact-view .form-select {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}


/* TRIAL BANNER */

.trial-banner {
    min-height: 64px;
    padding: 12px 24px;
    background: linear-gradient(90deg, #fff7ed, #ffffff);
    border-bottom: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.trial-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trial-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.trial-banner-title {
    font-weight: 700;
    color: #9a3412;
    line-height: 1.1;
}

.trial-banner-subtitle {
    color: #7c2d12;
    font-size: 0.92rem;
}

.trial-upgrade-btn {
    border-radius: 999px;
    padding-inline: 18px;
    font-weight: 600;
}

body.app-dark-mode .trial-banner {
    background: linear-gradient(90deg, #292524, #1f2937);
    border-bottom-color: #92400e;
}

body.app-dark-mode .trial-banner-icon {
    background: #431407;
    color: #fed7aa;
}

body.app-dark-mode .trial-banner-title,
body.app-dark-mode .trial-banner-subtitle {
    color: #fed7aa;
}















.trial-expired-page {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 24px;

    background:
        radial-gradient(
            circle at top left,
            rgba(99, 102, 241, 0.18),
            transparent 40%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(168, 85, 247, 0.16),
            transparent 42%
        ),
        #f7f8fc;
}

.trial-expired-card {
    width: 100%;
    max-width: 560px;

    padding: 52px 46px;
    text-align: center;

    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;

    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.06);
}

.trial-expired-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    font-size: 34px;

    background: linear-gradient(
        135deg,
        #6366f1,
        #8b5cf6
    );

    border-radius: 22px;

    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.28);
}

.trial-expired-label {
    margin-bottom: 12px;

    color: #6366f1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.trial-expired-title {
    margin-bottom: 16px;

    color: #111827;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.1;
}

.trial-expired-description {
    max-width: 440px;
    margin: 0 auto 32px;

    color: #6b7280;
    font-size: 17px;
    line-height: 1.65;
}

.trial-expired-button {
    width: 100%;
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    font-weight: 700;

    border: none;
    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #6366f1,
        #8b5cf6
    );

    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.24);
}

.trial-expired-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(99, 102, 241, 0.3);
}

.trial-signout-btn {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 18px;

    background: #fff;
    color: #e26034;

    border: 1px solid #e26034;
    border-radius: 14px;

    font-size: 16px;
    font-weight: 600;

    transition: all .2s ease;
}

.trial-signout-btn i {
    font-size: 18px;
}

.trial-signout-btn:hover {
    background: #e26034;
    color: #fff;

    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(226, 96, 52, .25);
}

.trial-signout-btn:active {
    transform: translateY(0);
}

@media (max-width: 576px) {
    .trial-expired-page {
        align-items: stretch;
        padding: 0;
    }

    .trial-expired-card {
        max-width: none;
        min-height: 100vh;

        display: flex;
        flex-direction: column;
        justify-content: center;

        padding: 36px 24px;
        border: none;
        border-radius: 0;
    }
}








.hours-duration-value {
    min-height: 2.5rem;
    display: flex;
    align-items: baseline;
    color: var(--text-dark, #2d2d2d);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.app-dark-mode .hours-duration-value {
    color: #f9fafb;
}

@media (max-width: 575.98px) {
    .hours-duration-value {
        font-size: 1.75rem;
    }
}




/* =========================================================
   SHARED APPLICATION MODALS
   ========================================================= */

.staff-edit-modal,
#addStaffModal {
    z-index: 1055 !important;
}

.staff-edit-modal .modal-dialog,
#addStaffModal .modal-dialog {
    width: min(560px, calc(100vw - 32px));
    max-width: 560px;
    margin-inline: auto;
}

.staff-edit-modal .modal-content,
#addStaffModal .modal-content {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.staff-edit-modal .modal-header,
.staff-edit-modal .modal-footer,
#addStaffModal .modal-header,
#addStaffModal .modal-footer {
    padding: 16px 18px;
}

.staff-edit-modal .modal-body,
#addStaffModal .modal-body {
    padding: 18px;
}

.staff-edit-modal .form-control,
.staff-edit-modal .form-select,
#addStaffModal .form-control,
#addStaffModal .form-select {
    min-height: 46px;
    border-radius: 10px;
}

@media (max-width: 575.98px) {
    .staff-edit-modal .modal-dialog,
    #addStaffModal .modal-dialog {
        width: 100%;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    .staff-edit-modal .modal-content,
    #addStaffModal .modal-content {
        min-height: 100dvh;
        border-radius: 0;
    }
}