/* Spreadsheet and month calendar use the existing studio palette. */
.management-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#admin .crm-layout{display:block;min-width:0}
#admin .crm-layout>.panel{min-width:0}
#admin .customer-detail{display:none;position:static;max-height:none;margin-top:24px;scroll-margin-top:85px}
#admin .crm-layout[data-detail-open="true"] .customer-detail{display:block}
#admin .customer-back{display:inline-flex;margin-bottom:20px}
#admin .customer-filters{display:grid;grid-template-columns:minmax(180px,1fr) 220px;gap:12px}
.customer-table-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0 12px}
.customer-table-caption .result-count{margin:0;color:var(--ink);font-weight:600}
.customer-table-caption>span,.table-scroll-hint{font-size:12px;color:var(--muted);line-height:1.8}
.table-scroll-hint{margin:0 0 10px}
.customer-table-scroll{width:100%;max-height:660px;overflow:auto;overscroll-behavior-x:contain;border:1px solid #cad8d4;border-radius:8px;scroll-padding-inline:146px 12px;scrollbar-color:#9db5ad #edf2f0}
.customer-sheet{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:1230px;width:100%;text-align:left;color:var(--ink);font-size:13px;line-height:1.7}
.customer-sheet caption{text-align:left}
.customer-sheet th,.customer-sheet td{padding:12px 14px;border-right:1px solid #e1e8e5;border-bottom:1px solid #dde5e2;vertical-align:middle;overflow-wrap:anywhere;background:#fff;font-weight:400}
.customer-sheet thead th{position:sticky;top:0;z-index:2;background:#edf3f0;color:#465d54;font-size:12px;font-weight:600;height:56px;padding-block:6px;white-space:nowrap}
.customer-sheet th:first-child{position:sticky;left:0;width:142px;z-index:1;border-right:1px solid #baccc5;box-shadow:3px 0 5px #19343807}
.customer-sheet thead th:first-child{z-index:3}
.customer-sheet th:nth-child(2){width:157px}.customer-sheet th:nth-child(3){width:100px}.customer-sheet th:nth-child(4){width:132px}.customer-sheet th:nth-child(5){width:158px}.customer-sheet th:nth-child(6){width:135px}.customer-sheet th:nth-child(7){width:138px}.customer-sheet th:nth-child(8){width:180px}.customer-sheet th:nth-child(9){width:84px}
.customer-sheet thead button{background:none;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0;color:inherit;font-size:12px;white-space:nowrap;text-align:left}
.customer-sheet thead [aria-sort="ascending"],.customer-sheet thead [aria-sort="descending"]{background:#dcebe4;color:#245c49}
.customer-sheet tbody tr:nth-child(even)>*{background:#f9fbfa}
.customer-sheet tbody tr:hover>*,.customer-sheet tbody tr:focus-within>*{background:#edf6f0}
.customer-sheet tbody tr:last-child>*{border-bottom:0}
.customer-sheet tr>*:last-child{border-right:0}
.customer-sheet .sheet-customer-name{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0;background:none;font-size:14px;font-weight:700;text-align:left}
.sheet-customer-name>span{font-size:13px;color:#557d6b;flex-shrink:0}
.customer-sheet .sheet-phone,.customer-sheet .sheet-date,.customer-sheet .sheet-number{white-space:nowrap;font-variant-numeric:tabular-nums}
.customer-sheet .sheet-number{text-align:right}.customer-sheet .sheet-paid{font-weight:600}
.sheet-tags{display:flex;gap:5px;flex-wrap:wrap}.sheet-tags>span{padding:2px 7px;border:1px solid #d4e2dc;border-radius:4px;background:#f0f6f3;font-size:12px}
.sheet-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#66776f;font-size:12px}
#admin .customer-sheet .plain-button{padding:8px 12px;font-size:12px;white-space:nowrap}
.customer-sheet .sheet-empty{text-align:center;padding:40px;font-size:14px}
#admin .customer-table-note{font-size:12px;margin:14px 0 0;line-height:1.8}
.management-viewbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:18px;border-top:1px solid var(--line);margin-bottom:25px}
.management-viewbar>p{font-size:12px;color:var(--muted);margin:0;line-height:1.7}
.view-switch{display:inline-flex;padding:4px;border:1px solid #d4e1db;background:#f0f5f2;border-radius:9px;gap:4px}
.view-switch button{padding:10px 18px;border-radius:6px;font-size:13px;background:transparent;color:#60776b;font-weight:600}
.view-switch button[aria-pressed="true"]{color:#fff;background:#286a63;box-shadow:0 2px 5px #19343810}
.admin-month-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
#admin .admin-month-toolbar h3{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.admin-month-toolbar>div{display:flex;gap:6px}
#admin .admin-month-toolbar .plain-button{min-width:44px;padding:8px 13px;font-size:14px}
.admin-calendar-legend{display:flex;gap:17px;flex-wrap:wrap;margin:0 0 18px;font-size:12px;color:#66776f}
.admin-calendar-legend>span{display:flex;gap:6px;align-items:center}
.admin-calendar-legend>span:before,.day-status-dots i{content:'';width:7px;height:7px;border-radius:50%;background:#2e7d62;display:block;flex-shrink:0}
.admin-calendar-legend>.pending:before,.day-status-dots .pending{background:#ce9128}.admin-calendar-legend>.blocked:before,.day-status-dots .blocked{background:#647183}.admin-calendar-legend>.cancelled:before,.day-status-dots .cancelled{background:#b7bfc2}
.admin-weekdays,.admin-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.admin-weekdays{border:1px solid #dce5e0;border-bottom:0;border-radius:8px 8px 0 0;background:#f5f8f6}
.admin-weekdays>span{text-align:center;padding:12px 0;font-size:12px;font-weight:600;color:#6f8077}
.admin-weekdays>span:first-child{color:#b66060}.admin-weekdays>span:last-child{color:#477ca1}
.admin-calendar-grid{border:1px solid #dce5e0;border-top:0;border-radius:0 0 8px 8px;overflow:hidden}
.admin-calendar-day{min-height:135px;min-width:0;border-top:1px solid #dce5e0;border-right:1px solid #dce5e0;background:#fff;padding:4px;position:relative}
.admin-calendar-day:nth-child(7n){border-right:0}
.admin-calendar-day.outside-month{background:#f7f9f8}.outside-month .admin-day-pick{color:#a4aea9}
.admin-calendar-day.selected-day{background:#eff7f2;box-shadow:inset 0 0 0 2px #2e7d62}
#admin .admin-day-pick{display:flex;width:100%;align-items:center;gap:4px;min-height:44px;background:none;padding:3px 6px;text-align:left;font-size:13px;position:relative}
.day-number{display:flex;align-items:center;justify-content:center;min-width:28px;height:28px;font-weight:600;font-variant-numeric:tabular-nums}
.is-today .day-number{background:#286a63;color:#fff;border-radius:50%}
.day-count{margin-left:auto;font-size:12px;color:#577b67;white-space:nowrap}
.day-status-dots{display:none}
.admin-cell-events{display:grid;gap:4px}
#admin .calendar-event{width:100%;min-width:0;min-height:47px;text-align:left;padding:6px 7px;border-radius:4px;border-left:3px solid #2e7d62;background:#e6f2ec;color:#245940;overflow:hidden}
.calendar-event span,.calendar-event strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.6;font-weight:500}
.calendar-event strong{font-weight:600}
#admin .calendar-event.pending{background:#fff3db;border-color:#d59831;color:#806019}
#admin .calendar-event.blocked{background:#e9edf2;border-color:#718092;color:#4b5968}
#admin .calendar-event.cancelled{background:#f0f1f2;border-color:#b5bec3;color:#7d858b}
.calendar-event.cancelled strong{text-decoration:line-through}
#admin .calendar-more{width:100%;font-size:12px;background:none;color:#526d5e;padding:8px 4px;text-align:left}
.calendar-result-hint:empty{display:none}
.calendar-result-hint{padding:14px 0 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.calendar-result-hint p{margin:0}.calendar-result-hint button{font-size:12px}
.admin-day-section{margin-top:26px;border-top:1px solid #dce5e0;padding-top:24px;scroll-margin-top:85px}
.admin-day-section .eyebrow{font-size:12px;letter-spacing:.04em;margin-bottom:6px}
#admin .admin-day-section h3{font-size:19px;scroll-margin-top:100px}
.admin-day-section .panel-heading{align-items:center;margin-bottom:16px}
#admin .day-agenda-item{width:100%;display:grid;grid-template-columns:88px minmax(0,1fr) auto 20px;gap:16px;align-items:center;text-align:left;background:#f6f9f7;border:1px solid #e1e9e4;border-radius:8px;padding:16px;margin:8px 0}
.day-agenda-item:hover{border-color:#98b9a7;background:#eff7f2}
.agenda-time{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.agenda-time small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:4px}
.agenda-customer strong{display:block;font-size:14px;overflow-wrap:anywhere}.agenda-customer small{display:block;font-size:12px;line-height:1.7;color:var(--muted);margin-top:4px}
.agenda-arrow{text-align:right;color:#6c8a79}
.day-agenda-empty{padding:22px 18px;background:#f6f9f7;border-radius:8px;font-size:13px;line-height:1.8;color:#6a7c71}
#reservationDetailActions>.button{min-width:120px}
@media(max-width:1000px){.admin-calendar-day{min-height:118px}.calendar-event span{font-size:12px}#admin .calendar-event{padding-inline:4px}}
@media(max-width:760px){
 #admin .customer-filters{grid-template-columns:1fr}.customer-table-caption{gap:5px}.customer-table-caption>span{width:100%}
 .customer-sheet th:first-child{width:126px}.customer-table-scroll{max-height:540px;scroll-padding-inline-start:130px}
 #admin .crm-layout[data-detail-open="true"]>section{display:none}#admin .customer-detail{margin-top:0;scroll-margin-top:75px}
 .management-viewbar{gap:10px;margin-bottom:23px}.management-viewbar>p{width:100%}.view-switch{width:100%;display:grid;grid-template-columns:1fr 1fr}.view-switch button{padding:10px 12px}
 #admin .admin-month-toolbar h3{font-size:20px}.admin-month-toolbar{gap:8px}#admin .admin-month-toolbar .plain-button{padding:8px 10px}
 .admin-calendar-legend{gap:9px 13px;font-size:12px;line-height:1.7}
 .admin-weekdays,.admin-calendar-grid{margin-inline:-16px;border-inline:0;border-radius:0}
 .admin-weekdays>span{padding:10px 0}
 .admin-calendar-day{min-height:79px;padding:0}.admin-cell-events{display:none}
 #admin .admin-day-pick{flex-direction:column;justify-content:flex-start;gap:0;padding:7px 0 13px;min-height:78px;height:100%;text-align:center}
 .day-count{margin:0;font-size:12px;line-height:18px;min-height:18px}.day-number{height:26px;min-width:26px}
 .day-status-dots{display:flex;gap:3px;position:absolute;bottom:7px;justify-content:center;width:100%}.day-status-dots i{width:5px;height:5px}
 .admin-day-section{margin-top:22px;padding-top:20px}.admin-day-section .panel-heading{gap:8px!important}#admin .admin-day-section h3{font-size:16px}.admin-day-section .button{font-size:12px;padding:10px 12px;white-space:nowrap}
 #admin .day-agenda-item{grid-template-columns:58px minmax(0,1fr) auto;gap:10px;padding:14px 10px}.agenda-arrow{display:none}.agenda-time{font-size:14px}.agenda-customer strong{font-size:13px}.agenda-customer small{font-size:12px}
 #admin .day-agenda-item .badge{padding:5px 7px;white-space:nowrap}
}
@media(max-width:360px){#admin .admin-month-toolbar h3{font-size:18px}.admin-month-toolbar>div{gap:3px}#admin .admin-month-toolbar .plain-button{padding:8px;min-width:40px}#admin .day-agenda-item{grid-template-columns:50px minmax(0,1fr)}#admin .day-agenda-item .badge{grid-column:2;justify-self:start}.admin-day-section .panel-heading{flex-wrap:wrap}.customer-table-scroll{scroll-padding-inline-start:130px}}
#adminMonthLabel{scroll-margin-top:85px}
@media(max-width:360px){#admin .reservation-panel{margin-inline:-8px}}
#admin .view-switch button,#admin .customer-sheet thead button,#admin .sheet-customer-name{min-height:44px}
#admin #customerStats .stat>span{font-size:12px}
.legacy-import-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border:1px solid #c4d4ea;background:#edf3fb;border-radius:10px;margin-bottom:20px;color:#35517d}
.legacy-import-notice strong{font-size:15px;line-height:1.7}.legacy-import-notice p,.legacy-customer-note{font-size:13px;line-height:1.8;color:#5e7090;margin:4px 0 0}.legacy-import-notice button{white-space:nowrap;flex-shrink:0;font-size:13px}
.legacy-customer-note{padding:16px 20px;background:#edf3fb;border-radius:8px;margin-bottom:20px}
#admin .badge.legacy{color:#345588;background:#e0eafa}
#admin .calendar-event.legacy{background:#e7effa;border-color:#5c82b6;color:#345588}
.admin-calendar-legend>.legacy:before,.day-status-dots .legacy{background:#5c82b6}
@media(max-width:760px){.legacy-import-notice{align-items:flex-start;flex-direction:column;padding:16px;gap:12px}.legacy-import-notice button{align-self:flex-end}.legacy-import-notice p,.legacy-customer-note{font-size:12px}}
#reservationDetailBody>a.text-link{display:inline-flex;align-items:center;min-height:44px}
