:root { font-family: "Segoe UI", system-ui, sans-serif; color: #1f2937; background: #f5f7fa; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background: #f4f7fb; }
.auth-card { width: min(100%, 430px); padding: 34px; border: 1px solid #d9e2ec; border-radius: 18px; background: #fff; box-shadow: 0 18px 55px rgba(36, 59, 83, .12); }
.auth-logo { display: block; width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; }
.auth-card h1, .auth-card .subtitle, .auth-card .eyebrow { text-align: center; }
.auth-form { display: grid; gap: 9px; margin-top: 24px; }
.auth-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bcccdc; border-radius: 8px; color: #243b53; background: #fff; }
.auth-submit { width: 100%; margin-top: 12px; }
.auth-message { margin: 16px 0 0; color: #486581; font-size: .92rem; text-align: center; }
.auth-switch { display: block; margin: 18px auto 0; }
.profile-button { border: 0; cursor: pointer; font: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex: 0 0 264px; background: #fff; border-right: 1px solid #e7ebef; display: flex; flex-direction: column; padding: 22px 12px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 9px; color: #162b45; font-size: 18px; padding: 2px 0 28px; }
.brand img { width: 108px; height: 108px; object-fit: cover; border-radius: 50%; }
nav { display: grid; gap: 7px; }
.nav-item { color: #516174; text-decoration: none; padding: 13px 16px; border-radius: 8px; display: flex; gap: 13px; align-items: center; font-size: 15px; }
.nav-item:hover, .nav-item.active { background: #e9f0f6; color: #244b70; }
.nav-item.active { border-left: 4px solid #315a80; padding-left: 12px; font-weight: 650; }
.nav-icon { width: 22px; font-size: 23px; text-align: center; line-height: 1; }
.switcher { margin-top: auto; padding: 14px; background: #f4f6f8; border-radius: 10px; display: grid; gap: 8px; }
.switcher small { color: #718096; }.switcher button, .link-button, .text-button { background: none; border: 0; color: #2f5d87; font-weight: 650; padding: 0; text-align: left; }
.main-content { flex: 1; min-width: 0; }
.topbar { height: 76px; padding: 0 34px; display: flex; gap: 24px; align-items: center; background: #fff; border-bottom: 1px solid #e7ebef; }
.mobile-brand { display: none; font-weight: 700; color: #162b45; }.search { height: 43px; flex: 1; max-width: 690px; display: flex; align-items: center; gap: 10px; background: #f4f6f8; border: 1px solid #e1e7ec; border-radius: 7px; padding: 0 14px; color: #637489; }.search span { font-size: 27px; }.search input { border: 0; outline: 0; background: transparent; width: 100%; color: #25364a; }.notification-button { margin-left: auto; border: 0; background: transparent; font-size: 27px; color: #34495e; position: relative; }.notification-button b { position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; padding: 2px 5px; border-radius: 50%; background: #315a80; color: #fff; font-size: 11px; }.profile { display: flex; align-items: center; gap: 10px; color: #4a5c70; }.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dfe7ef; color: #2f5275; font-weight: 700; }
.data-source { border: 1px solid #dbe4ec; border-radius: 14px; padding: 5px 9px; color: #6c7d8e; font-size: 11px; white-space: nowrap; }
.page-heading { padding: 38px 36px 26px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }.page-heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }.eyebrow { margin: 0 0 8px; color: #5e7993; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }.page-heading h1 { margin: 0; color: #162b45; font-size: clamp(28px, 4vw, 39px); letter-spacing: -.035em; }.subtitle { margin: 8px 0 0; color: #697b8d; }.primary-button { border: 0; border-radius: 7px; padding: 13px 19px; background: #315a80; color: #fff; box-shadow: 0 3px 9px #315a8033; font-weight: 650; }.primary-button:hover { background: #254968; }.secondary-button { border: 1px solid #315a80; border-radius: 7px; padding: 12px 16px; background: #fff; color: #315a80; font-weight: 650; }.secondary-button:hover { background: #eef4f8; }.button-icon { font-size: 22px; margin-right: 9px; vertical-align: -2px; }.compact { padding: 8px 11px; font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 36px 22px; }.metric-card { background: #fff; border: 1px solid #e7ebef; border-radius: 11px; padding: 22px; display: flex; gap: 16px; align-items: center; }.metric-icon { width: 47px; height: 47px; border-radius: 10px; background: #edf2f6; color: #2f5275; display: grid; place-items: center; font-size: 27px; }.metric-card h3 { margin: 0 0 4px; font-size: 14px; color: #627488; font-weight: 500; }.metric-card strong { color: #162b45; font-size: 29px; margin-right: 8px; }.metric-card span { color: #728195; font-size: 13px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, .8fr); gap: 18px; padding: 0 36px 36px; }.panel { background: #fff; border: 1px solid #e7ebef; border-radius: 11px; padding: 22px; }.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }.panel h2 { margin: 0; color: #1b3047; font-size: 19px; }.date-picker { color: #627488; display: flex; gap: 9px; align-items: center; font-size: 13px; }.date-picker button { border: 1px solid #dfe5ea; background: #fff; border-radius: 6px; width: 28px; height: 28px; color: #355879; font-size: 22px; line-height: 1; }.slot-list { display: grid; gap: 10px; }.slot-card { display: flex; gap: 15px; align-items: center; border: 1px solid #e3e8ed; border-radius: 9px; padding: 15px; }.slot-number { width: 42px; height: 42px; display: grid; place-items: center; background: #f0f3f6; border-radius: 50%; color: #1b3047; font-size: 18px; font-weight: 700; }.slot-info { min-width: 0; flex: 1; }.slot-info h3 { margin: 0 0 4px; font-size: 16px; color: #182d43; }.slot-info p, .slot-info small { margin: 0; color: #607287; font-size: 13px; }.slot-info small { display: block; color: #8a98a7; margin-top: 3px; }.slot-actions { display: flex; align-items: center; gap: 12px; }.status { display: inline-flex; gap: 7px; align-items: center; border-radius: 20px; padding: 7px 12px; white-space: nowrap; font-size: 12px; font-weight: 700; }.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }.status-open { background: #e6f6ed; color: #168348; }.status-pending { background: #fff4d8; color: #a86d00; }.status-approved { background: #e6f0ff; color: #1d63b5; }.status-on-the-way { background: #f0eaff; color: #6840a8; }.status-arrived, .status-completed { background: #e8eef2; color: #456174; }.more-button { border: 0; background: transparent; color: #7c8b9a; font-weight: 700; letter-spacing: 3px; }
.activity-list { display: grid; }.activity { display: grid; grid-template-columns: 29px 1fr auto; gap: 9px; padding: 13px 0; border-bottom: 1px solid #edf0f3; }.activity:last-child { border-bottom: 0; }.activity-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e9f0f6; color: #315a80; }.activity strong, .activity small { display: block; }.activity strong { font-size: 13px; color: #273d53; }.activity small, .activity time { font-size: 11px; color: #83909d; margin-top: 4px; }.activity time { white-space: nowrap; }.toast-area { position: fixed; bottom: 22px; right: 22px; display: grid; gap: 8px; width: min(360px, calc(100vw - 44px)); }.toast { background: #1f354b; color: #fff; border-radius: 8px; padding: 13px 16px; font-size: 13px; box-shadow: 0 8px 25px #1a30444d; }.toast span { color: #85d9a8; margin-right: 9px; }
.client-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 18px; padding: 0 36px 36px; }.booking-panel { max-width: 680px; }.booking-panel h2, .notice-panel h2 { margin-bottom: 24px; }.booking-panel label { display: block; margin: 18px 0 8px; color: #4c6075; font-size: 13px; font-weight: 650; }.booking-panel select { width: 100%; padding: 12px; border: 1px solid #d9e1e8; border-radius: 7px; background: #fff; color: #233a51; }.selected-date { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #e1e7ec; border-radius: 8px; }.calendar-mini { display: grid; place-items: center; width: 40px; height: 40px; background: #e9f0f6; color: #315a80; border-radius: 8px; font-weight: 700; }.selected-date strong, .selected-date small { display: block; }.selected-date small { color: #7a8998; margin-top: 4px; font-size: 12px; }.client-slots { display: grid; gap: 9px; }.client-slot { border: 1px solid #dce4ea; background: #fff; border-radius: 8px; padding: 14px; display: flex; align-items: center; justify-content: space-between; color: #243a51; }.client-slot:hover:not(.disabled) { border-color: #315a80; background: #f4f8fb; }.client-slot.disabled { opacity: .62; cursor: not-allowed; }.helper { color: #7a8998; font-size: 12px; line-height: 1.5; }.notice-panel { align-self: start; background: #edf4f9; border-color: #dbe8f0; }.notice-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #315a80; color: #fff; font-size: 24px; }.notice-panel p { color: #567086; line-height: 1.6; font-size: 14px; }.notification-preview { display: flex; gap: 10px; align-items: center; padding: 13px; background: #fff; border-radius: 8px; margin-top: 24px; }.bell { color: #315a80; font-size: 23px; }.notification-preview strong, .notification-preview small { display: block; }.notification-preview small { color: #718396; margin-top: 3px; font-size: 12px; }
.client-notification-list { display: grid; gap: 10px; margin-top: 18px; }.client-notification-list > strong { color: #1b3047; font-size: 14px; }.client-notification { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #e1e7ec; border-radius: 8px; background: #fff; }.client-notification div { display: grid; gap: 3px; }.client-notification strong { color: #314b63; font-size: 13px; }.client-notification small { color: #718396; font-size: 12px; line-height: 1.4; }
.pending-layout { display: grid; gap: 24px; }.pending-form { display: grid; gap: 10px; max-width: 720px; padding: 18px; background: #f6f9fb; border: 1px solid #e1e7ec; border-radius: 10px; }.pending-form label { color: #314b63; font-size: 13px; font-weight: 650; }.pending-form textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid #cbd7e1; border-radius: 7px; font: inherit; color: #233a51; }.pending-form .primary-button { justify-self: start; }.pending-section { display: grid; gap: 10px; }.pending-section h2 { margin: 0; color: #1b3047; font-size: 18px; }.pending-list { display: grid; gap: 10px; }.pending-group { display: grid; gap: 10px; }.pending-group h3 { margin: 4px 0 0; color: #315a80; font-size: 14px; }.pending-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid #dce4ea; border-radius: 8px; background: #fff; }.pending-item.completed { background: #f6f9fb; }.pending-item-body { display: flex; align-items: flex-start; gap: 12px; }.pending-item-body p { margin: 0; color: #233a51; line-height: 1.45; }.pending-item-body small { display: block; margin-top: 5px; color: #7a8998; font-size: 12px; }.pending-check { color: #315a80; font-size: 22px; line-height: 1; }
@media (max-width: 1000px) { .sidebar { width: 220px; flex-basis: 220px; }.content-grid, .client-grid { grid-template-columns: 1fr; }.activity-panel { order: 2; } }
@media (max-width: 720px) { .sidebar { width: 70px; flex-basis: 70px; padding: 14px 8px; }.brand img { width: 50px; height: 50px; }.brand strong, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.nav-item { justify-content: center; padding: 13px 5px; }.nav-item.active { padding-left: 5px; }.nav-icon { font-size: 22px; }.switcher { display: none; }.topbar { padding: 0 16px; height: 64px; gap: 10px; }.mobile-brand { display: block; }.search { order: 3; max-width: none; }.search input { display: none; }.search { flex: 0 0 40px; padding: 0 8px; }.profile > span:not(.avatar) { display: none; }.page-heading, .metrics, .content-grid, .client-grid { padding-left: 16px; padding-right: 16px; }.page-heading { padding-top: 25px; align-items: start; flex-direction: column; }.page-heading-actions { width: 100%; justify-content: flex-start; }.metrics { grid-template-columns: 1fr; }.metric-card { padding: 15px; }.panel { padding: 16px; }.panel-heading { align-items: flex-start; flex-direction: column; }.slot-card { align-items: flex-start; flex-wrap: wrap; }.slot-actions { width: 100%; justify-content: flex-end; }.date-picker { width: 100%; justify-content: space-between; } }

.contact-links { display: flex; gap: 10px; align-items: center; margin-top: 8px; color: #718396; font-size: 12px; }
.contact-link { color: #2f5d87; font-weight: 700; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
.month-calendar { margin: 12px 0 18px; padding: 14px; border: 1px solid #e1e7ec; border-radius: 9px; background: #fbfcfd; }.month-calendar-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #253b52; text-transform: capitalize; }.month-calendar-heading span { color: #7a8998; font-size: 12px; }.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }.calendar-weekdays span { color: #7a8998; font-size: 11px; text-align: center; }.calendar-day { min-height: 52px; padding: 7px 3px; border: 1px solid #dce4ea; border-radius: 7px; background: #fff; color: #2f5275; cursor: pointer; }.calendar-day strong, .calendar-day small { display: block; }.calendar-day strong { font-size: 14px; }.calendar-day small { margin-top: 4px; color: #7a8998; font-size: 9px; }.calendar-day:hover:not(:disabled), .calendar-day.selected { border-color: #315a80; background: #e9f1f7; }.calendar-day.selected small { color: #315a80; font-weight: 700; }.calendar-day:disabled { background: #f1f3f5; color: #aeb8c2; cursor: not-allowed; opacity: .7; }.calendar-day.empty { border: 0; background: transparent; pointer-events: none; }
.whatsapp-link { color: #168c4b; }
.slot-actions { justify-content: flex-end; flex-wrap: wrap; gap: 9px; min-width: 0; }
.slot-actions .text-button { white-space: nowrap; }
.text-button.danger { color: #b34848; }
.status-closed { background: #f1f3f5; color: #84909c; }
.view-tabs { display: flex; gap: 8px; padding: 0 36px 18px; }.view-tabs button { border: 1px solid #dbe4ec; border-radius: 7px; background: #fff; color: #52687d; padding: 9px 14px; font-weight: 650; }.view-tabs button.active { background: #315a80; border-color: #315a80; color: #fff; }.date-range-selector { display: grid; gap: 7px; margin: 12px 0 18px; }.date-range-selector label { color: #4c6075; font-size: 13px; font-weight: 650; }.date-range-selector select { width: 100%; padding: 12px; border: 1px solid #d9e1e8; border-radius: 7px; background: #fff; color: #233a51; }.history-panel { margin: 0 36px 36px; }.history-panel h2 { margin-bottom: 6px; }.history-list { display: grid; gap: 10px; margin-top: 18px; }.history-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px; border: 1px solid #e1e7ec; border-radius: 8px; }.history-card div { display: grid; gap: 4px; }.history-card strong { color: #1b3047; }.history-card span { color: #6d7e90; font-size: 13px; }.client-tabs { padding: 0 36px 18px; }
.action-menu { position: relative; }.action-menu summary { list-style: none; cursor: pointer; border: 1px solid #dbe4ec; border-radius: 7px; padding: 8px 10px; color: #315a80; background: #fff; font-size: 12px; font-weight: 650; white-space: nowrap; }.action-menu summary::-webkit-details-marker { display: none; }.action-menu[open] summary { background: #edf4f9; }.action-menu-panel { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); min-width: 155px; display: grid; gap: 9px; padding: 12px; border: 1px solid #dbe4ec; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px #1a30442b; }.action-menu-panel .text-button { padding: 2px 0; }
.status-rejected { background: #fde8e8; color: #b42318; }
.danger { color: #b42318 !important; }
.section-panel { margin: 0 36px 36px; max-width: 900px; }
.section-list { display: grid; gap: 10px; margin-bottom: 18px; }
.section-row { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr; gap: 14px; align-items: center; padding: 14px; border: 1px solid #e3e8ed; border-radius: 8px; color: #314b63; }
.section-row .status { justify-self: start; }
.empty-state { color: #718396; padding: 22px 0; }
.account-card { display: grid; gap: 12px; max-width: 420px; color: #314b63; }
.availability-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 18px; padding: 13px 14px; border: 1px solid #dbe4ec; border-radius: 8px; background: #f8fafc; }
.availability-controls div { display: grid; gap: 4px; }
.availability-controls strong { color: #1b3047; }
.availability-controls small { color: #718396; font-size: 12px; }
.danger-button { background: #b34848; }
.danger-button:hover { background: #922f2f; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow-y: auto; padding: 18px; background: rgba(20, 39, 58, .42); }
.modal-card { width: min(100%, 500px); max-height: calc(100dvh - 36px); overflow-y: auto; display: grid; gap: 9px; padding: 24px; border: 1px solid #dbe4ec; border-radius: 12px; background: #fff; box-shadow: 0 18px 55px rgba(20, 39, 58, .25); }
.modal-card h2 { margin: 0; color: #1b3047; }
.modal-card label { margin-top: 8px; color: #4c6075; font-size: 13px; font-weight: 650; }
.modal-card input, .modal-card select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bcccdc; border-radius: 8px; color: #243b53; background: #fff; }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-close { border: 0; background: transparent; color: #718396; font-size: 27px; line-height: 1; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 14px; }
.manual-appointment-modal .modal-actions { flex-wrap: wrap; }
.manual-appointment-modal .modal-actions .primary-button { flex: 1 1 220px; }
.request-address-summary { display: grid; gap: 5px; margin-top: 8px; padding: 12px; border: 1px solid #e1e7ec; border-radius: 8px; color: #314b63; }
.request-address-summary span { color: #718396; font-size: 13px; }
.client-slot > span:first-child { display: grid; gap: 4px; text-align: left; }
.client-slot > span:first-child small { color: #7a8998; font-size: 12px; }
.client-slot-cta { border-radius: 7px; padding: 9px 13px; background: #315a80; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.client-slot:hover:not(.disabled) .client-slot-cta { background: #254968; }
@media (max-width: 720px) {
  .modal-backdrop { place-items: start center; padding: 10px; }
  .modal-card { width: 100%; max-height: calc(100dvh - 20px); padding: 18px; }
  .modal-actions { justify-content: stretch; }
  .modal-actions > * { flex: 1 1 140px; text-align: center; }
  .view-tabs, .client-tabs { padding-left: 16px; padding-right: 16px; flex-wrap: wrap; }
  .history-panel { margin-left: 16px; margin-right: 16px; }
  .history-card { align-items: flex-start; flex-direction: column; }
  .availability-controls { align-items: flex-start; flex-direction: column; }
  .reschedule-actions { align-items: stretch; flex-direction: column; }
  .reschedule-actions > * { text-align: center; }
}
.history-card-main { display: grid; gap: 12px; min-width: 0; flex: 1; }
.reschedule-callout { display: grid; gap: 7px; padding: 13px 14px; border: 1px solid #f0c56b; border-radius: 8px; background: #fff8e7; }
.reschedule-callout strong { color: #8a5a00; }
.reschedule-callout span { color: #765f32; font-size: 12px; line-height: 1.4; }
.reschedule-callout .primary-button { justify-self: start; }
.reschedule-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.history-cancel-button { margin-top: 10px; }
.primary-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.pending-requests { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e1e7ec; }
.pending-requests-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pending-requests-heading h3 { margin: 0; color: #1b3047; font-size: 16px; }
.pending-requests-heading p { margin: 4px 0 0; color: #718196; font-size: 12px; }
.pending-count { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; background: #fff0cf; color: #8a5a00; font-weight: 700; }
.pending-request-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #f0d59b; border-radius: 8px; background: #fffaf0; }
.pending-request-card > div:first-child { display: grid; gap: 4px; min-width: 0; }
.pending-request-card strong { color: #233a51; }
.pending-request-card span, .pending-request-card small { color: #6d7e90; font-size: 12px; }
.pending-request-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.notification-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-card { display: grid; gap: 18px; padding: 20px; border: 1px solid #dfe7ee; border-radius: 10px; background: #fff; }
.settings-card:last-child { grid-column: 1 / -1; }
.settings-card-heading { display: flex; align-items: flex-start; gap: 12px; }
.settings-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9f1f8; color: #315a80; font-size: 19px; }
.settings-card h2 { margin: 0; color: #1b3047; font-size: 17px; }
.settings-card-heading p { margin: 4px 0 0; color: #718196; font-size: 12px; }
.settings-list { display: grid; gap: 0; border-top: 1px solid #edf1f4; }
.settings-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #edf1f4; }
.settings-list strong { color: #314b63; font-size: 13px; }
.settings-list span { color: #6d7e90; font-size: 13px; text-align: right; }
.settings-card .primary-button { justify-self: start; }
.client-admin-list { display: grid; gap: 12px; }
.client-admin-card { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(130px, .7fr) auto; align-items: center; gap: 18px; padding: 17px; border: 1px solid var(--biograf-line); border-radius: 14px; background: #fff; }
.client-admin-card.client-disabled { opacity: .7; background: #f8fafc; }
.client-admin-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.client-admin-main > div:last-child { display: grid; gap: 4px; min-width: 0; }
.client-admin-main strong { color: var(--biograf-navy); }
.client-admin-main span, .client-admin-main small { color: var(--biograf-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; background: var(--biograf-sky); color: var(--biograf-blue); font-weight: 800; font-size: 18px; }
.client-access-status { justify-self: start; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.client-access-status.active { background: #e5f8ed; color: #21864a; }
.client-access-status.disabled { background: #f1e8e8; color: #9d4b4b; }
.client-admin-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.client-edit-modal { width: min(100%, 560px); }
.client-edit-modal input { min-height: 43px; }
@media (max-width: 850px) { .settings-grid { grid-template-columns: 1fr; }.settings-card:last-child { grid-column: auto; } }
@media (max-width: 850px) { .client-admin-card { grid-template-columns: 1fr; gap: 10px; }.client-access-status { justify-self: start; }.client-admin-actions { justify-content: flex-start; flex-wrap: wrap; } }

/* Responsive layout for tablets and phones. */
@media (max-width: 900px) {
  .topbar { padding-left: 22px; padding-right: 22px; gap: 14px; }
  .content-grid, .client-grid { padding-left: 22px; padding-right: 22px; }
  .metrics { padding-left: 22px; padding-right: 22px; }
  .page-heading { padding-left: 22px; padding-right: 22px; }
  .section-panel, .history-panel { margin-left: 22px; margin-right: 22px; }
  .section-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { overflow-x: hidden; }
  .auth-shell { padding: 18px 10px; align-items: start; }
  .auth-card { padding: 24px 18px; margin-top: 8px; }
  .topbar { height: auto; min-height: 64px; padding: 10px 12px; flex-wrap: wrap; }
  .mobile-brand { font-size: 14px; }
  .data-source { display: none; }
  .notification-button { margin-left: auto; }
  .search { order: 5; flex: 1 1 100%; max-width: none; height: 38px; }
  .search input { display: block; }
  .page-heading-actions { align-items: stretch; flex-direction: column; }
  .page-heading-actions > button { width: 100%; }
  .section-panel, .history-panel { margin-left: 16px; margin-right: 16px; }
  .section-row { grid-template-columns: 1fr; gap: 7px; }
  .section-row .status { justify-self: start; }
  .view-tabs button { flex: 1 1 140px; }
  .pending-item, .pending-request-card { align-items: stretch; flex-direction: column; }
  .pending-request-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .pending-request-actions button { width: 100%; }
  .pending-request-actions .action-menu { width: 100%; }
  .pending-request-actions .action-menu summary { text-align: center; }
  .pending-request-actions .action-menu-panel { position: static; min-width: 0; margin-top: 6px; }
  .pending-item-body { min-width: 0; }
  .slot-card { gap: 10px; }
  .slot-actions { justify-content: flex-start; }
  .slot-actions .status { max-width: 100%; white-space: normal; }
  .client-slot { align-items: stretch; flex-direction: column; gap: 12px; }
  .client-slot-cta { text-align: center; }
  .availability-controls .primary-button { width: 100%; }
  .activity { grid-template-columns: 29px minmax(0, 1fr); }
  .activity time { grid-column: 2; }
  .calendar-day { min-height: 44px; padding: 5px 2px; }
  .calendar-day strong { font-size: 13px; }
  .calendar-day small { font-size: 8px; }
}

@media (max-width: 480px) {
  .sidebar { width: 58px; flex-basis: 58px; padding-left: 5px; padding-right: 5px; }
  .brand img { width: 44px; height: 44px; }
  .nav-icon { font-size: 20px; }
  .topbar { gap: 8px; }
  .profile { gap: 0; }
  .page-heading, .metrics, .content-grid, .client-grid { padding-left: 10px; padding-right: 10px; }
  .section-panel, .history-panel { margin-left: 10px; margin-right: 10px; padding: 14px; }
  .panel { padding: 13px; }
  .page-heading h1 { font-size: 27px; }
  .subtitle { font-size: 13px; }
  .calendar-weekdays, .calendar-days { gap: 3px; }
  .calendar-day { min-height: 38px; }
  .calendar-day small { display: none; }
  .modal-actions > * { flex-basis: 100%; }
}

/* Dashboard composition: the home screen now has a clear visual focal point. */
.dashboard-hero { position: relative; overflow: hidden; min-height: 218px; align-items: center; }
.dashboard-hero-copy { position: relative; z-index: 2; }
.dashboard-hero-art { position: absolute; right: 58px; top: 28px; width: 270px; height: 170px; opacity: .92; pointer-events: none; }
.hero-calendar { position: absolute; right: 28px; top: 10px; width: 150px; height: 125px; padding: 25px 14px 12px; border: 8px solid #d8eaff; border-radius: 16px; background: #fff; box-shadow: 0 18px 35px rgba(23,83,146,.10); transform: rotate(4deg); }
.hero-calendar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: #55a5ed; border-radius: 8px 8px 0 0; }
.hero-calendar::after { content: ""; position: absolute; left: 28px; top: -16px; width: 7px; height: 28px; border-radius: 8px; background: #3a628d; box-shadow: 77px 0 #3a628d; }
.hero-calendar span, .hero-calendar i { display: inline-block; width: 22px; height: 20px; margin: 3px 3px; border-radius: 4px; background: #e9f3ff; }
.hero-calendar i:nth-of-type(4) { background: #5eaff0; }
.hero-note { position: absolute; left: 14px; bottom: 10px; display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 13px; background: #fff; box-shadow: 0 12px 28px rgba(23,83,146,.12); color: var(--biograf-navy); font-size: 12px; }
.hero-note b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dff6e9; color: #1b9a5d; font-size: 17px; }
.hero-note small { color: var(--biograf-muted); font-size: 10px; }
.dashboard-hero .page-heading-actions { position: relative; z-index: 3; align-self: end; margin-bottom: 8px; }
.metric-card { position: relative; overflow: hidden; }
.metric-card-action { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.metric-card-action:hover, .metric-card-action:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(24,53,86,.12); outline: 2px solid #2d75c7; outline-offset: 2px; }
.metric-copy { min-width: 0; }
.metric-arrow { margin-left: auto; color: #6d87a5; font-size: 30px; line-height: 1; }
.metric-calendar .metric-icon { background: #e7f2ff; color: #1668c7; }
.metric-clock .metric-icon { background: #fff1df; color: #ec9013; }
.metric-users .metric-icon { background: #e5f8ed; color: #239447; }
.appointments-panel { min-width: 0; }
.appointments-panel .date-range-selector { max-width: 100%; }
.appointments-panel .availability-controls { margin-top: 8px; }
.activity-panel { min-height: 100%; }

/* Client portal: a guided, welcoming booking experience. */
.client-hero { position: relative; min-height: 190px; align-items: center; }
.client-hero-copy { position: relative; z-index: 2; }
.client-hero h1 { letter-spacing: -.055em; }
.client-hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 12px; border-radius: 999px; background: #e5f8ed; color: #21864a; font-size: 12px; font-weight: 700; }
.client-hero-badge span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2aa35f; color: #fff; }
.client-hero-illustration { position: absolute; right: 70px; top: 30px; width: 190px; height: 145px; opacity: .95; pointer-events: none; }
.client-hero-calendar { position: absolute; right: 25px; top: 8px; display: grid; place-items: center; width: 105px; height: 105px; border: 7px solid #dcecff; border-radius: 24px; background: #fff; box-shadow: 0 15px 30px rgba(22,104,199,.10); transform: rotate(7deg); }
.client-hero-calendar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px; border-radius: 15px 15px 0 0; background: #68b0f3; }
.client-hero-calendar b { margin-top: 18px; color: var(--biograf-navy); font-size: 34px; }
.client-hero-calendar span { color: var(--biograf-blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.client-hero-check { position: absolute; left: 18px; bottom: 16px; display: grid; place-items: center; width: 48px; height: 48px; border: 5px solid #fff; border-radius: 50%; background: #2da661; color: #fff; font-size: 26px; box-shadow: 0 10px 24px rgba(45,166,97,.22); }
.booking-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.booking-card-heading h2 { margin: 0; }
.booking-card-heading p { margin: 4px 0 0; color: var(--biograf-muted); font-size: 12px; }
.booking-step { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--biograf-navy); color: #fff; font-weight: 800; }
.booking-panel { border-top: 4px solid var(--biograf-blue); }
.booking-panel label { color: #45627f; }
.booking-panel select { min-height: 48px; border-radius: 11px; background: #fbfdff; }
.selected-date { min-height: 68px; border-radius: 12px; background: #f8fbff; }
.calendar-mini { border-radius: 11px; background: #e4f0ff; color: var(--biograf-blue); }
.notice-panel { border-top: 4px solid #79b8ef; }
.notice-panel .notice-icon { background: #1e76c9; box-shadow: 0 8px 16px rgba(30,118,201,.18); }
.notification-preview { border: 1px solid #e6eef7; border-radius: 12px; }
.client-notification { border-radius: 11px; }

@media (max-width: 1000px) {
  .client-hero-illustration { right: 32px; opacity: .38; }
}
@media (max-width: 720px) {
  .client-hero { min-height: 0; }
  .client-hero-illustration { display: none; }
  .client-hero-badge { margin-top: 14px; }
}

@media (max-width: 1200px) {
  .dashboard-hero-art { display: none; }
  .dashboard-hero { flex-wrap: wrap; }
  .dashboard-hero .page-heading-actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .dashboard-hero { min-height: 0; }
  .dashboard-hero-art { display: none; }
  .dashboard-hero .page-heading-actions { margin-bottom: 0; }
  .metric-arrow { display: none; }
}

/* Biograf Agenda visual refresh: airy Office-inspired workspace. */
:root {
  --biograf-navy: #102f57;
  --biograf-blue: #1668c7;
  --biograf-sky: #eaf3ff;
  --biograf-bg: #f5f8fc;
  --biograf-line: #e4ebf3;
  --biograf-muted: #647892;
}

body { background: var(--biograf-bg); color: #203b5d; }
.shell { background: var(--biograf-bg); }
.sidebar { width: 224px; flex-basis: 224px; padding: 24px 14px 18px; border-right: 1px solid var(--biograf-line); }
.brand { align-items: flex-start; gap: 10px; padding: 0 10px 30px; color: var(--biograf-navy); }
.brand img { width: 66px; height: 66px; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
nav { gap: 5px; }
.nav-item { min-height: 45px; padding: 11px 13px; border-radius: 12px; color: #5a708c; gap: 12px; }
.nav-item:hover, .nav-item.active { background: var(--biograf-sky); color: var(--biograf-blue); }
.nav-item.active { border-left: 4px solid var(--biograf-blue); padding-left: 9px; }
.nav-icon { width: 23px; color: currentColor; font-size: 21px; }
.ui-icon { display: block; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.switcher { margin: auto 4px 0; border: 1px solid var(--biograf-line); background: #fff; border-radius: 14px; padding: 12px; }
.switcher span { color: var(--biograf-navy); font-size: 12px; font-weight: 650; }
.main-content { min-width: 0; }
.topbar { height: 72px; padding: 0 42px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--biograf-line); }
.search { max-width: 610px; height: 43px; border: 1px solid #d9e5f2; border-radius: 12px; background: #fff; }
.search span { color: var(--biograf-blue); font-size: 25px; }
.data-source { border: 0; background: var(--biograf-sky); color: var(--biograf-blue); border-radius: 999px; padding: 7px 11px; }
.notification-button { color: var(--biograf-navy); }
.notification-button b { background: #e05252; }
.avatar { background: #d9eaff; color: var(--biograf-blue); width: 38px; height: 38px; }
.profile { color: var(--biograf-navy); }
.page-heading { max-width: 1440px; margin: 0 auto; padding: 44px 46px 28px; }
.page-heading h1 { color: var(--biograf-navy); font-size: clamp(34px, 4vw, 48px); letter-spacing: -.055em; }
.eyebrow { color: #5577a0; }
.subtitle { color: var(--biograf-muted); font-size: 16px; }
.page-heading-actions { gap: 12px; }
.primary-button, .secondary-button { border-radius: 11px; min-height: 46px; padding: 12px 20px; }
.primary-button { background: var(--biograf-navy); box-shadow: 0 8px 18px rgba(16,47,87,.14); }
.primary-button:hover { background: var(--biograf-blue); }
.secondary-button { border-color: var(--biograf-blue); color: var(--biograf-blue); }
.metrics, .content-grid { max-width: 1440px; margin: 0 auto; }
.metrics { gap: 18px; padding: 0 46px 22px; }
.metric-card { min-height: 126px; padding: 20px; border: 1px solid var(--biograf-line); border-radius: 16px; box-shadow: 0 5px 18px rgba(38,79,122,.04); }
.metric-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--biograf-sky); color: var(--biograf-blue); }
.metric-icon .ui-icon { width: 25px; height: 25px; }
.metric-card h3 { color: #55708e; font-weight: 650; }
.metric-card strong { color: var(--biograf-navy); font-size: 34px; }
.metric-card span { color: var(--biograf-muted); }
.view-tabs { max-width: 1440px; margin: 0 auto; padding: 0 46px 18px; }
.view-tabs button { border-radius: 10px; padding: 10px 16px; }
.view-tabs button.active { background: var(--biograf-navy); border-color: var(--biograf-navy); }
.content-grid { grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr); gap: 18px; padding: 0 46px 46px; }
.panel { border: 1px solid var(--biograf-line); border-radius: 17px; padding: 24px; box-shadow: 0 6px 22px rgba(38,79,122,.04); }
.panel h2 { color: var(--biograf-navy); font-size: 21px; }
.date-range-selector select, .availability-controls, .date-picker button { border-color: #d8e4f0; border-radius: 11px; }
.availability-controls { background: #f8fbff; }
.slot-list { gap: 11px; }
.slot-card { min-height: 82px; border-color: var(--biograf-line); border-radius: 13px; padding: 14px 16px; }
.slot-card:hover { border-color: #b8d2ee; box-shadow: 0 4px 12px rgba(22,104,199,.06); }
.slot-number { background: #f0f6fd; color: var(--biograf-blue); }
.slot-info h3 { color: var(--biograf-navy); }
.activity-panel { background: #fff; }
.activity { padding: 15px 0; }
.activity-icon { background: var(--biograf-sky); color: var(--biograf-blue); }
.pending-requests { border-top-color: var(--biograf-line); }
.upcoming-appointments { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--biograf-line); }
.upcoming-appointment { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf1f4; }
.upcoming-appointment > div:first-child { min-width: 0; display: grid; gap: 3px; }
.upcoming-appointment strong { color: #1b3047; font-size: 14px; }
.upcoming-appointment span, .upcoming-appointment small { color: #718196; font-size: 12px; }
.upcoming-appointment-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .upcoming-appointment { align-items: flex-start; flex-direction: column; }.upcoming-appointment-actions { width: 100%; justify-content: space-between; } }
.pending-request-card { border-color: #f4dfae; border-radius: 12px; }
.toast { border-radius: 12px; }

@media (max-width: 1100px) {
  .topbar { padding-left: 28px; padding-right: 28px; }
  .page-heading, .metrics, .content-grid, .view-tabs { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 720px) {
  .sidebar { width: 66px; flex-basis: 66px; padding: 14px 7px; }
  .brand { align-items: center; padding: 0 0 24px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { display: none; }
  .nav-item { justify-content: center; padding: 12px 5px; }
  .nav-item.active { padding-left: 5px; }
  .nav-item { font-size: 0; }
  .nav-icon { font-size: 22px; }
  .topbar { padding: 10px 14px; }
  .page-heading { padding: 30px 16px 20px; }
  .page-heading h1 { font-size: 32px; }
  .metrics { padding: 0 16px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 108px; padding: 12px 10px; display: block; }
  .metric-icon { width: 34px; height: 34px; font-size: 18px; margin-bottom: 8px; }
  .metric-card h3 { font-size: 11px; line-height: 1.2; }
  .metric-card strong { font-size: 24px; }
  .metric-card span { display: block; font-size: 10px; }
  .view-tabs { padding: 0 16px 14px; }
  .content-grid { padding: 0 16px 26px; }
  .panel { padding: 17px; border-radius: 14px; }
  .page-heading-actions { width: 100%; }
  .page-heading-actions > button { flex: 1 1 0; width: auto; }
  .slot-card { display: grid; grid-template-columns: 38px minmax(0,1fr); }
  .slot-actions { grid-column: 2; justify-content: flex-start; }
  .activity-panel { order: 2; }
}

@media (max-width: 480px) {
  .metrics { gap: 6px; }
  .metric-card { padding: 10px 7px; }
  .metric-card h3 { font-size: 10px; }
  .metric-card strong { font-size: 22px; }
  .page-heading-actions { flex-direction: row; }
  .page-heading-actions > button { min-height: 44px; padding: 10px 8px; font-size: 12px; }
}

/* Keep the admin hero controls clear of the decorative calendar at medium widths. */
.dashboard-hero .page-heading-actions { position: relative; z-index: 5; }
@media (max-width: 1200px) {
  .dashboard-hero-art { display: none !important; }
  .dashboard-hero .page-heading-actions { margin-left: auto; position: relative; z-index: 5; }
}
