/* ZAUZMI — compact laptop layout, 2026-10-12.
   Only medium desktop widths. Tablet/phone interactions remain unchanged.
   No calendar positioning/zoom calculations are modified. */

/* 1280–1599 CSS px (including 125%/150% Windows scaled laptops). */
@media (min-width:1280px) and (max-width:1599px) {
  body:not(.tablet-ui)>.app {
    grid-template-columns:196px minmax(0,1fr)!important;
    width:100%!important;
    min-width:0!important;
  }
  body:not(.tablet-ui)>.app>.sidebar {
    box-sizing:border-box!important;
    width:196px!important;
    padding:16px 10px 14px!important;
  }
  body:not(.tablet-ui).sidebar-collapsed>.app {
    grid-template-columns:76px minmax(0,1fr)!important;
  }
  body:not(.tablet-ui).sidebar-collapsed>.app>.sidebar {
    width:76px!important;
    padding:12px 8px!important;
  }
  body:not(.tablet-ui)>.app>.main {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
    padding:19px 20px 30px!important;
    overflow-x:clip!important;
  }
  body:not(.tablet-ui) .sidebar .brand {
    gap:7px!important;
    font-size:15px!important;
    margin-left:7px!important;
    margin-right:2px!important;
  }
body:not(.tablet-ui) .sidebar .nav button {
    min-width:0!important;
    padding:10px 10px!important;
    gap:9px!important;
    font-size:13px!important;
  }
  body:not(.tablet-ui) .sidebar .nav-label {
    min-width:0!important;
    overflow-wrap:anywhere;
  }
  body:not(.tablet-ui) .sidebar-mini-calendar {
    min-width:0!important;
    max-width:100%!important;
  }
  body:not(.tablet-ui) .sidebar-mini-calendar-grid {
    min-width:0!important;
  }

  /* Studio 7 Admin: readable 5-card metrics and filters. */
  #admin {min-width:0!important;max-width:100%!important;}
  #admin .headline {
    gap:10px!important;
    min-width:0!important;
  }
  #admin .headline h1 {
    font-size:27px!important;
    letter-spacing:-.025em!important;
    line-height:1.15!important;
  }
  #admin .headline .muted {font-size:12px!important;}
  #admin .platform-admin-header-actions {gap:7px!important;}
  #admin .platform-admin-header-actions .btn {
    min-height:38px!important;
    padding:0 13px!important;
    font-size:11.5px!important;
  }
  #admin #adminMetrics {
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:9px!important;
    min-width:0!important;
    margin:12px 0!important;
  }
  #admin #adminMetrics .metric {
    min-width:0!important;
    min-height:80px!important;
    padding:12px 13px!important;
  }
  #admin #adminMetrics .metric .muted {
    font-size:11px!important;
    line-height:1.3!important;
    white-space:normal!important;
  }
  #admin #adminMetrics .metric .value {font-size:25px!important;}
  #admin .admin-push-settings,
  #admin #adminActivationNotice,
  #admin .admin-clients-section {min-width:0!important;max-width:100%!important;}
  #admin .admin-push-settings {padding:14px 15px!important;}
  #admin .admin-push-business-list {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:7px!important;
  }
  #admin .admin-push-business-option {
    min-width:0!important;
    min-height:39px!important;
    padding:8px 9px!important;
    gap:7px!important;
    font-size:11px!important;
  }
  #admin .admin-push-business-option span {
    min-width:0!important;
    overflow-wrap:anywhere!important;
  }
  #admin .admin-push-actions .btn {
    min-height:37px!important;
    padding:8px 12px!important;
    font-size:11px!important;
  }
  #admin .admin-toolbar {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(150px,205px) 84px!important;
    gap:8px!important;
    min-width:0!important;
  }
  #admin .admin-toolbar>*{min-width:0!important;max-width:100%!important;}
  #admin .admin-toolbar .admin-search-input,
  #admin .admin-toolbar .admin-filter-select,
  #admin .admin-toolbar .btn {
    min-height:39px!important;
    height:39px!important;
    font-size:11.5px!important;
    border-radius:10px!important;
  }
  #admin .admin-clients-section {padding:13px 12px!important;}
  #admin .admin-clients-section .table-wrap {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }

  /* The previous fixed 1280px table squeezed text and action buttons
     into each other. Size the current eight columns
     and confine any necessary horizontal scroll to the table itself. */
  #admin .admin-client-table {
    display:table!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:1110px!important;
    table-layout:fixed!important;
    border-collapse:separate!important;
  }
  #admin .admin-client-table thead {display:table-header-group!important;}
  #admin .admin-client-table tbody {display:table-row-group!important;}
  #admin .admin-client-table .admin-client-row {display:table-row!important;}
  #admin .admin-client-table th:nth-child(1){width:15%!important;}
  #admin .admin-client-table th:nth-child(2){width:12%!important;}
  #admin .admin-client-table th:nth-child(3){width:11%!important;}
  #admin .admin-client-table th:nth-child(4){width:10%!important;}
  #admin .admin-client-table th:nth-child(5){width:15%!important;}
  #admin .admin-client-table th:nth-child(6){width:8%!important;}
  #admin .admin-client-table th:nth-child(7){width:5%!important;}
  #admin .admin-client-table th:nth-child(8){width:24%!important;}
  #admin .admin-client-table thead th {
    box-sizing:border-box!important;
    padding:9px 7px!important;
    font-size:10px!important;
    line-height:1.3!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    vertical-align:middle!important;
  }
  #admin .admin-client-table .admin-client-row td {
    display:table-cell!important;
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:none!important;
    padding:10px 7px!important;
    font-size:11px!important;
    line-height:1.32!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    vertical-align:middle!important;
  }
  #admin .admin-client-table .admin-client-row td:not(:last-child) {
    overflow:hidden!important;
  }
  #admin .admin-client-table .admin-client-row td::before {
    display:none!important;
    content:none!important;
  }
  #admin .admin-client-table .admin-client-row td .muted {
    display:block;
    min-width:0!important;
    max-width:100%!important;
    font-size:9.5px!important;
    line-height:1.32!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #admin .admin-client-name {
    display:flex!important;
    gap:7px!important;
    align-items:center!important;
    min-width:0!important;
    max-width:100%!important;
  }
  #admin .admin-client-logo,
  #admin .admin-client-fallback {
    width:31px!important;
    height:31px!important;
    min-width:31px!important;
    flex:0 0 31px!important;
    border-radius:8px!important;
  }
  #admin .admin-client-name>div:last-child {min-width:0!important;max-width:100%!important;}
  #admin .admin-client-name strong {
    display:block!important;
    font-size:11.5px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-overflow:clip!important;
  }
  #admin .admin-plan-cell {
    display:grid!important;
    gap:3px!important;
    min-width:0!important;
    max-width:100%!important;
  }
  #admin .admin-plan-cell>strong {
    font-size:10.5px!important;
    line-height:1.28!important;
    overflow-wrap:anywhere!important;
  }
  #admin .admin-plan-cell .muted {font-size:9px!important;}
  #admin .admin-sms-state {
    max-width:100%!important;
    font-size:9px!important;
    line-height:1.25!important;
    white-space:normal!important;
  }
  #admin .admin-status {
    display:inline-flex!important;
    box-sizing:border-box!important;
    max-width:100%!important;
    min-height:22px!important;
    height:auto!important;
    padding:4px 6px!important;
    font-size:9px!important;
    line-height:1.28!important;
    text-align:left!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #admin .admin-actions {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:5px!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    flex-wrap:initial!important;
  }
  #admin .admin-actions>.btn {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:31px!important;
    min-height:31px!important;
    padding:0 5px!important;
    font-size:9.5px!important;
    line-height:1.2!important;
    white-space:normal!important;
    text-align:center!important;
  }
  #admin .admin-actions .admin-more-menu {
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  #admin .admin-actions .admin-more-trigger {
    box-sizing:border-box!important;
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    min-height:27px!important;
    height:27px!important;
    padding:0 7px!important;
    justify-content:center!important;
    font-size:9.5px!important;
  }

  /* Calendar toolbar: preserve the actual date/zoom/drag behavior.
     Only sizing, order and wrapping change, no schedule computations. */
  body:not(.platform-root) #calendar .calendar-toolbar-single {
    display:flex!important;
    flex-flow:row wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    align-content:start!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    gap:7px!important;
    overflow:visible!important;
  }
  body:not(.platform-root) #calendar .calendar-toolbar-single>#calendarClientSearch {
    order:0!important;
    flex:1 1 210px!important;
    min-width:140px!important;
    width:auto!important;
    max-width:100%!important;
    height:40px!important;
    min-height:40px!important;
    font-size:12px!important;
  }
  body:not(.platform-root) #calendar .calendar-toolbar-single>[data-crm-select-for="calendarTherapistFilter"],
  body:not(.platform-root) #calendar .calendar-toolbar-single>.therapist-select:not(.crm-native-source) {
    order:1!important;
    flex:0 1 172px!important;
    min-width:140px!important;
    width:auto!important;
    max-width:100%!important;
  }
  body:not(.platform-root) #calendar .calendar-toolbar-single>.calendar-new-btn {
    display:inline-flex!important;
    position:static!important;
    order:2!important;
    flex:0 0 auto!important;
    visibility:visible!important;
    opacity:1!important;
    width:auto!important;
    min-width:120px!important;
    max-width:100%!important;
    height:40px!important;
    min-height:40px!important;
    margin:0 0 0 auto!important;
    padding:0 12px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  body:not(.platform-root) #calendar .calendar-toolbar-single>.calendar-inline-week {
    display:flex!important;
    order:3!important;
    flex:1 1 100%!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    gap:6px!important;
    overflow:visible!important;
  }
  #calendar .calendar-inline-week .week-arrow {
    width:33px!important;
    min-width:33px!important;
    max-width:33px!important;
    height:37px!important;
    min-height:37px!important;
  }
  #calendar .calendar-inline-week .calendar-range-picker {
    width:clamp(165px,18vw,235px)!important;
    min-width:0!important;
    max-width:100%!important;
    height:37px!important;
    min-height:37px!important;
    padding:0 10px!important;
    font-size:12px!important;
  }
  #calendar .calendar-inline-week .current-week-btn {
    height:37px!important;
    min-height:37px!important;
    padding:0 10px!important;
    font-size:11.5px!important;
  }
  #calendar .calendar-inline-week .calendar-view-toggle {
    min-height:37px!important;
  }
  #calendar .calendar-inline-week .calendar-view-toggle .calendar-view-option {
    min-height:30px!important;
    padding:0 10px!important;
    font-size:11px!important;
  }
  #calendar .calendar-inline-week .calendar-zoom-control {
    display:grid!important;
    grid-template-columns:12px minmax(70px,1fr) 12px 35px!important;
    min-width:164px!important;
    max-width:195px!important;
    height:37px!important;
    gap:6px!important;
    padding:0 9px!important;
  }
  #calendar .calendar-card {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  #calendar .calendar-scroll {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overscroll-behavior-x:contain;
  }
}

/* Narrowest desktop laptops: three KPI cards per row and slightly shorter
   toolbar controls. The client table remains a table with local scroll. */
@media (min-width:1280px) and (max-width:1365px) {
  #admin #adminMetrics {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  #admin .admin-push-business-list {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  #admin .admin-client-table {min-width:1110px!important;}
}

/* Existing 621–1279px tablet-style desktop layout uses labelled client cards.
   Keep them readable and prevent long email/plan strings from overlapping. */
@media (min-width:621px) and (max-width:1279px) {
  #admin .admin-client-table .admin-client-row td,
  body.tablet-ui #admin .admin-client-table .admin-client-row td{
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  #admin .admin-client-name>div:last-child,
  #admin .admin-plan-cell,
  #admin .admin-client-table .admin-client-row .muted {
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
  #admin .admin-push-business-list {grid-template-columns:repeat(3,minmax(0,1fr));}
  #calendar .calendar-inline-week .calendar-zoom-control {
    min-width:165px!important;
    max-width:100%!important;
  }
}


/* 2026-10-12 — Single-line laptop toolbar.
   Browser zoom used to cross the 1600px CSS breakpoint and switch from
   an unreasonably wide client search + two rows to a compact one-row toolbar.
   On real laptop/desktop pointing devices, reserve fixed small slots for
   the search and therapist filter, then give the calendar navigation the
   remaining space. The day/week/month controls and appointment button stay
   visible; never scale the entire calendar with CSS transforms. */
@media (min-width:1200px) and (max-width:1919px) and (hover:hover) and (pointer:fine) {
  html body:not(.platform-root) #calendar .calendar-toolbar.calendar-toolbar-single {
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    align-content:center!important;
    gap:5px!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    height:auto!important;
    overflow:visible!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single > #calendarClientSearch {
    display:block!important;
    order:0!important;
    flex:0 1 clamp(128px,10.3vw,175px)!important;
    box-sizing:border-box!important;
    min-width:112px!important;
    width:clamp(128px,10.3vw,175px)!important;
    max-width:175px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 10px!important;
    margin:0!important;
    font-size:11px!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single > [data-crm-select-for="calendarTherapistFilter"],
  html body:not(.platform-root) #calendar .calendar-toolbar-single > .therapist-select:not(.crm-native-source) {
    display:block!important;
    order:1!important;
    flex:0 1 clamp(120px,9.5vw,155px)!important;
    width:clamp(120px,9.5vw,155px)!important;
    min-width:112px!important;
    max-width:155px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single > [data-crm-select-for="calendarTherapistFilter"] .crm-control-trigger {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 9px!important;
    font-size:11px!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single > .calendar-inline-week {
    display:flex!important;
    order:2!important;
    flex:1 1 auto!important;
    flex-flow:row nowrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:38px!important;
    min-height:38px!important;
    gap:4px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    grid-column:auto!important;
    grid-row:auto!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single > .calendar-inline-week > * {
    box-sizing:border-box!important;
    max-width:100%!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single .calendar-inline-week .week-arrow {
    flex:0 0 29px!important;
    width:29px!important;
    min-width:29px!important;
    max-width:29px!important;
    height:37px!important;
    min-height:37px!important;
    margin:0!important;
    padding:0!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single .calendar-inline-week .calendar-range-picker {
    flex:0 0 clamp(164px,13.6vw,205px)!important;
    width:clamp(164px,13.6vw,205px)!important;
    min-width:0!important;
    max-width:205px!important;
    height:37px!important;
    min-height:37px!important;
    margin:0!important;
    padding:0 7px!important;
    gap:4px!important;
    font-size:10.5px!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single .calendar-range-picker > span {
    min-width:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
    font-size:10.5px!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single .calendar-range-picker > svg {
    width:14px!important;
    height:14px!important;
    flex:0 0 14px!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single .calendar-inline-week .current-week-btn {
    flex:0 0 auto!important;
    height:37px!important;
    min-height:37px!important;
    margin:0!important;
    padding:0 7px!important;
    font-size:10px!important;
    white-space:nowrap!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single .calendar-inline-week .calendar-view-toggle {
    display:inline-flex!important;
    flex:0 0 auto!important;
    flex-wrap:nowrap!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:37px!important;
    min-height:37px!important;
    margin:0!important;
    padding:2px!important;
    gap:2px!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single .calendar-inline-week .calendar-view-toggle .calendar-view-option.btn {
    flex:0 0 auto!important;
    min-width:clamp(42px,3.5vw,53px)!important;
    width:clamp(42px,3.5vw,53px)!important;
    max-width:53px!important;
    height:30px!important;
    min-height:30px!important;
    padding:0 3px!important;
    font-size:10px!important;
    line-height:1!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single .calendar-inline-week .calendar-zoom-control {
    display:grid!important;
    flex:0 0 clamp(138px,10.8vw,170px)!important;
    box-sizing:border-box!important;
    width:clamp(138px,10.8vw,170px)!important;
    min-width:0!important;
    max-width:170px!important;
    height:37px!important;
    min-height:37px!important;
    margin:0!important;
    padding:0 6px!important;
    gap:4px!important;
    grid-template-columns:11px minmax(50px,1fr) 11px 32px!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single .calendar-inline-week #calendarZoomSlider {
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  html body:not(.platform-root) #calendar .calendar-toolbar-single > .calendar-new-btn {
    display:inline-flex!important;
    order:3!important;
    position:static!important;
    visibility:visible!important;
    opacity:1!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:105px!important;
    max-width:125px!important;
    height:38px!important;
    min-height:38px!important;
    margin:0 0 0 auto!important;
    padding:0 9px!important;
    font-size:10.5px!important;
    white-space:nowrap!important;
    grid-column:auto!important;
    grid-row:auto!important;
  }
}
/* Below 1200 CSS px there is not enough physical space for all controls
   in a readable row. Preserve the tablet wrap rather than hiding controls. */


/* Fixed sidebar footer: the mini-calendar scrolls if the laptop screen is
   short, while Notifications, Owner and Studio 7 always remain visible. */
@media (min-width:621px) {
  html body .app > aside.sidebar {
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    padding-bottom:8px!important;
  }
  html body .sidebar > .brand {
    flex:0 0 auto!important;
    margin-bottom:12px!important;
  }
  html body .sidebar .sidebar-scroll-region {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
  }
  html body .sidebar .sidebar-scroll-region::-webkit-scrollbar {
    display:none!important;
    width:0!important;
  }
  html body .sidebar .sidebar-scroll-region > .nav,
  html body .sidebar .sidebar-scroll-region > .sidebar-mini-calendar,
  html body .sidebar .sidebar-scroll-region > .sidebar-google-sync {
    flex:0 0 auto!important;
  }
  html body .sidebar > .sidebar-notification-dock {
    flex:0 0 auto!important;
    margin-top:5px!important;
    padding:6px 0!important;
  }
  html body .sidebar > .sidebar-user {
    display:flex!important;
    flex:0 0 auto!important;
    flex-direction:column!important;
    gap:6px!important;
    margin-top:0!important;
    padding:8px 5px 7px!important;
    background:inherit!important;
  }
  html body .sidebar .sidebar-user-main {
    display:flex!important;
    min-width:0!important;
    align-items:center!important;
    gap:9px!important;
  }
  html body .sidebar .sidebar-user-copy {
    min-width:0!important;
    max-width:100%!important;
  }
  html body .sidebar .sidebar-made-by {
    display:block!important;
    margin-top:0!important;
    text-align:center!important;
    font-size:9px!important;
    line-height:1.4!important;
    white-space:normal!important;
  }
  html body.sidebar-collapsed .sidebar .sidebar-made-by {
    display:none!important;
  }
}
@media (min-width:621px) and (max-height:840px) {
  html body .sidebar .sidebar-scroll-region > .sidebar-mini-calendar {
    margin-top:8px!important;
    margin-bottom:6px!important;
    padding:7px 6px!important;
  }
  html body .sidebar .sidebar-notification-dock-btn {
    min-height:50px!important;
    padding:6px 8px!important;
  }
  html body .sidebar > .sidebar-user {padding-top:7px!important;padding-bottom:5px!important;}
}


/* Technical inspection: explicit service-only or employees mode.
   Never expose the internal capacity resource as a human employee. */
.technical-staff-mode{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
  margin:0 0 18px;
  padding:16px 17px;
  border:1px solid #dce8f2;
  border-radius:13px;
  background:#f8fbfe;
}
.technical-staff-mode-copy{display:grid;gap:5px;min-width:0;}
.technical-staff-mode-copy strong{font-size:15px;color:#1e415c;}
.technical-staff-mode-copy span,
.technical-staff-mode>p{font-size:12px;line-height:1.45;color:#60788f;}
.technical-staff-mode-controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:10px;
  min-width:0;
}
.technical-staff-mode-controls>label{
  grid-column:1/-1;
  font-size:12px;
  color:#47647e;
  font-weight:650;
  margin-bottom:-4px;
}
.technical-staff-mode-controls select{
  width:100%;
  min-width:0;
  min-height:42px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid #cfdde8;
  background:#fff;
  color:#29465d;
  font-size:13px;
}
.technical-staff-mode-controls button{min-height:42px;white-space:nowrap;}
.technical-staff-mode>p{margin:0;}
body.technical-service-only #apptTherapistField{
  display:none!important;
}
body.technical-service-only #calendar .calendar-toolbar-single > [data-crm-select-for="calendarTherapistFilter"],
body.technical-service-only #calendar .calendar-toolbar-single > .therapist-select{
  display:none!important;
}
@media(max-width:700px){
  .technical-staff-mode-controls{grid-template-columns:minmax(0,1fr);}
  .technical-staff-mode-controls>label{grid-column:1;}
  .technical-staff-mode-controls button{width:100%;}
}


/* Sidebar space optimization — compact labels and genuinely square month widget.
   The owner/Studio 7 footer remains pinned outside the internal scrolling area. */
@media (min-width:981px) {
  html body:not(.sidebar-collapsed) .sidebar > .brand {
    gap:7px!important;
    margin:0 0 7px!important;
    padding-right:16px!important;
    font-size:13px!important;
    line-height:1.15!important;
    min-height:39px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .brand-mark.has-logo {
    width:39px!important;
    height:39px!important;
    min-width:39px!important;
    min-height:39px!important;
    flex:0 0 39px!important;
    padding:3px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-scroll-region > .nav {
    gap:4px!important;
    padding:0!important;
  }
html body:not(.sidebar-collapsed) .sidebar .sidebar-scroll-region > .nav button {
    box-sizing:border-box!important;
    width:100%!important;
    min-height:34px!important;
    height:34px!important;
    padding:0 9px!important;
    border-radius:9px!important;
    gap:7px!important;
    grid-template-columns:17px minmax(0,1fr) auto!important;
    font-size:13px!important;
    line-height:1.2!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-scroll-region > .nav .nav-icon {
    width:17px!important;
    height:17px!important;
    flex:0 0 17px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-scroll-region > .nav .nav-icon svg {
    width:17px!important;
    height:17px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-scroll-region > .nav .nav-label {
    font-size:11.5px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .nav-count-badge {
    min-width:0!important;
    font-size:9px!important;
    line-height:1!important;
  }

  /* An actual square container regardless of whether the month uses 5 or 6
     calendar weeks (all 42 date cells remain visible and clickable). */
  html body:not(.sidebar-collapsed) .sidebar .sidebar-scroll-region > .sidebar-mini-calendar {
    box-sizing:border-box!important;
    /* Do not override the app's inline display:none when no client is open. */
    display:grid;
    grid-template-rows:21px 13px minmax(0,1fr) 19px!important;
    grid-template-columns:minmax(0,1fr)!important;
    row-gap:3px!important;
    aspect-ratio:1/1!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:9px 0 7px!important;
    padding:7px!important;
    border-radius:12px!important;
    overflow:hidden!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-mini-calendar-head {
    display:grid!important;
    grid-template-columns:20px minmax(0,1fr) 20px!important;
    gap:2px!important;
    width:100%!important;
    height:21px!important;
    min-height:0!important;
    margin:0!important;
    align-items:center!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-mini-calendar-head strong {
    font-size:10px!important;
    line-height:1.1!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-mini-calendar-head button {
    width:20px!important;
    height:20px!important;
    min-height:0!important;
    border-radius:6px!important;
    font-size:16px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-mini-calendar-weekdays {
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    align-items:center!important;
    gap:1px!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-mini-calendar-weekdays span {
    font-size:8px!important;
    line-height:12px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-mini-calendar-grid {
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    grid-template-rows:repeat(6,minmax(0,1fr))!important;
    gap:1px!important;
    align-content:stretch!important;
    min-height:0!important;
    width:100%!important;
    overflow:hidden!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-mini-calendar-grid button {
    box-sizing:border-box!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    padding:0!important;
    border-radius:5px!important;
    font-size:9px!important;
    line-height:1!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-mini-calendar-today {
    display:block!important;
    width:100%!important;
    height:19px!important;
    min-height:0!important;
    margin:0!important;
    padding:2px 6px!important;
    border-radius:6px!important;
    font-size:9px!important;
    line-height:15px!important;
  }

  html body:not(.sidebar-collapsed) .sidebar .sidebar-scroll-region > .sidebar-google-sync {
    margin-top:0!important;
    margin-bottom:0!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-google-sync #sidebarGoogleSyncBtn {
    min-height:28px!important;
    font-size:11px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-google-sync #sidebarGoogleSyncLast {
    font-size:9px!important;
    line-height:1.25!important;
  }
  html body:not(.sidebar-collapsed) .sidebar > .sidebar-notification-dock {
    padding:5px 0!important;
    margin-top:3px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar > .sidebar-notification-dock .sidebar-notification-dock-btn {
    min-height:48px!important;
    padding:6px 7px!important;
    gap:7px!important;
    grid-template-columns:30px minmax(0,1fr) auto!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-notification-icon {
    width:30px!important;
    height:30px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-notification-copy strong {
    font-size:10.5px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar > .sidebar-user {
    gap:4px!important;
    padding:6px 3px 5px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-user-main {
    gap:7px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-user-copy strong {
    font-size:11px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-user-copy .muted {
    font-size:9px!important;
  }
  html body:not(.sidebar-collapsed) .sidebar .sidebar-made-by {
    font-size:9px!important;
    line-height:1.3!important;
  }
}


/* 2026-10-12: Henex settings small laptop fixes. */

/* The old sidebar toggle sat half outside an overflow:hidden sidebar.
   Keep the whole clickable arrow inside the column, with real contrast. */
@media(min-width:981px) {
  html body .app > aside.sidebar > #sidebarToggle {
    position:absolute!important;
    top:10px!important;
    right:7px!important;
    left:auto!important;
    z-index:100!important;
    display:grid!important;
    place-items:center!important;
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0!important;
    border:1px solid #c0d3e5!important;
    border-radius:10px!important;
    background:#edf5fc!important;
    color:#265b90!important;
    box-shadow:0 2px 8px rgba(24,62,102,.14)!important;
    opacity:1!important;
    visibility:visible!important;
  }
  html body .app > aside.sidebar > #sidebarToggle svg {
    width:17px!important;
    height:17px!important;
    fill:none!important;
    stroke:#265b90!important;
    stroke-width:2.25!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }
  html body .app > aside.sidebar > #sidebarToggle:hover {
    background:#deedfb!important;
    border-color:#8fb5d9!important;
  }
  html body.sidebar-collapsed .app > aside.sidebar > #sidebarToggle {
    right:8px!important;
    top:10px!important;
  }
}

/* The duplicate team header was reserving an empty white strip between
   the accordion title and the first actual setting. */
html body #settings #organizationUsersCard.settings-collapsible-card
> .settings-panel-body > .section-head.settings-panel-copy-only-head {
  display:none!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
html body #settings #organizationUsersCard.settings-collapsible-card:not(.is-collapsed)
> .settings-panel-body {
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  padding:10px 12px 12px!important;
}
html body #settings #organizationUsersCard .technical-staff-mode {
  margin:0!important;
  padding:12px 14px!important;
  gap:8px!important;
}
html body #settings #organizationUsersCard .technical-staff-mode-copy {
  gap:3px!important;
}
html body #settings #organizationUsersCard .technical-staff-mode>p {
  margin:0!important;
  line-height:1.35!important;
}
html body #settings #organizationUsersCard .team-staff-group {
  margin:0!important;
}
html body #settings #organizationUsersCard .technical-staff-mode-controls {
  align-items:end!important;
}
html body #settings #organizationUsersCard .technical-staff-mode-controls select,
html body #settings #organizationUsersCard .technical-staff-mode-controls .crm-control-trigger {
  min-height:40px!important;
  height:40px!important;
  width:100%!important;
  min-width:0!important;
  font-size:12px!important;
}
html body #settings #organizationUsersCard .technical-staff-mode-controls button {
  min-height:40px!important;
}

/* Existing services: two actual rows rather than cramming checkboxes into
   the same grid track as name, duration, price and colour. */
@media(min-width:621px) {
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-body {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    padding:12px 14px!important;
    gap:10px!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-grid {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-fields {
    display:grid!important;
    grid-template-columns:minmax(0,2.4fr) minmax(100px,.58fr) minmax(110px,.68fr) minmax(120px,.7fr)!important;
    gap:10px!important;
    align-items:end!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-fields>.form-field {
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    align-self:end!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-options {
    display:grid!important;
    grid-template-columns:max-content minmax(0,1fr) max-content!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-options > label {
    display:flex!important;
    position:static!important;
    align-items:center!important;
    justify-content:flex-start!important;
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:42px!important;
    margin:0!important;
    padding:7px 11px!important;
    gap:8px!important;
    white-space:normal!important;
    line-height:1.35!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row
  .service-edit-options > label.service-edit-use-availability {
    align-items:flex-start!important;
    width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row
  .service-edit-use-availability > span {
    display:grid!important;
    min-width:0!important;
    gap:3px!important;
    line-height:1.25!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row
  .service-edit-use-availability strong {
    display:block!important;
    font-size:11px!important;
    line-height:1.25!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row
  .service-edit-use-availability small {
    display:block!important;
    font-size:10px!important;
    line-height:1.32!important;
    white-space:normal!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row
  .service-edit-options input[type="checkbox"]{
    position:static!important;
    flex:0 0 18px!important;
    width:18px!important;
    height:18px!important;
    margin:0!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row .service-row-actions {
    display:flex!important;
    justify-content:flex-end!important;
    align-items:center!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
    width:100%!important;
  }
}
@media(min-width:621px) and (max-width:1050px) {
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-fields {
    grid-template-columns:minmax(0,1fr) minmax(110px,.6fr)!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-name {
    grid-column:1 / -1!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-options {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability {
    grid-column:1 / -1!important;
    grid-row:2!important;
  }
}
@media(max-width:620px) {
  html body #settings #organizationUsersCard.settings-collapsible-card:not(.is-collapsed)
  > .settings-panel-body {gap:8px!important;padding:9px!important;}
  html body #settings #organizationUsersCard .technical-staff-mode {padding:11px!important;}
}

/* Both the service accordion chevrons and the mode selector should be
   visible against their very light backgrounds. */
html body #settings #serviceSettingsCard details.service-manage-row .service-chevron {
  width:31px!important;
  height:31px!important;
  background:#e8f2fc!important;
  border:1px solid #b4cee4!important;
  color:#245a89!important;
  opacity:1!important;
}
html body #settings #serviceSettingsCard details.service-manage-row .service-chevron svg {
  width:17px!important;
  height:17px!important;
  stroke:#245a89!important;
  stroke-width:2.25!important;
}
