#admin-app.schedule-workspace #admin-sidebar { width: 100% !important; max-width: none !important; flex: 1 1 100% !important; }
#admin-app.schedule-workspace #admin-map-container { display: none !important; }
#admin-app.schedule-map-open #admin-map-container { display: block !important; position: fixed !important; inset: 120px 24px 90px auto !important; width: min(620px, calc(100vw - 32px)) !important; height: auto !important; z-index: 2100; border: 1px solid #d8e3e6; border-radius: 18px; box-shadow: 0 12px 50px #163d4650; }
#admin-app.schedule-map-open #admin-map-container .check-in-panel { display: none; }
.sb-map-close { display: none; }
.schedule-map-open .sb-map-close { display: block; position: absolute; right: 14px; top: 14px; z-index: 1100; padding: 12px; border-radius: 10px; border: 1px solid #c5d7db; background: white; color: #124f5d; cursor: pointer; }
.sb-workbench { padding: 12px 8px 30px; color: #173f4a; font-family: system-ui, sans-serif; min-width: 0; }
.sb-workbench button, .sb-dialog button { min-height: 44px; padding: 9px 15px; border: 1px solid #d1dfe3; background: white; color: #17586a; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 600; }
.sb-workbench button:hover, .sb-dialog button:hover { background: #edf6f7; }
.sb-workbench button:focus-visible, .sb-dialog :focus-visible { outline: 3px solid #d2ac35; outline-offset: 2px; }
.sb-workbench .sb-primary, .sb-dialog .sb-primary { background: #176f80; color: white; border-color: #176f80; }
.sb-dialog button:disabled { opacity: .5; cursor: default; }
.sb-heading, .sb-toolbar, .sb-filters { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.sb-heading h2 { margin: 4px 0; font-size: 26px; }
.sb-heading small, .sb-hint { color: #647b83; font-size: 13px; line-height: 1.6; }
.sb-actions, .sb-views { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sb-views { background: #edf3f4; padding: 4px; border-radius: 12px; }
.sb-views button { border: 0; background: transparent; }
.sb-views button.active, .sb-date-strip button.active { background: #176f80; color: white; }
.sb-workbench label, .sb-dialog label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sb-workbench input, .sb-workbench select, .sb-dialog input, .sb-dialog select { min-height: 44px; min-width: 0; max-width: 100%; box-sizing: border-box; border: 1px solid #cadbdf; border-radius: 9px; padding: 8px 12px; background: white; color: #203e48; font: inherit; }
.sb-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(160px, auto); padding: 14px; background: #f2f7f7; border: 1px solid #e0eaec; border-radius: 12px; }
.sb-filters input, .sb-filters select { width: 100%; }
.sb-workbench .sb-filters label { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.sb-filters label > span { white-space: nowrap; }
.sb-filters input { max-width: 300px; }
.sb-filters select { max-width: 340px; }
#sb-summary { font-size: 14px; color: #536e77; min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.sb-table-wrap { overflow: auto; border: 1px solid #dce6e9; border-radius: 14px; }
.sb-table { width: 100%; min-width: 920px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.sb-table th, .sb-table td { border-right: 1px solid #e2ebed; border-bottom: 1px solid #e2ebed; padding: 6px; vertical-align: top; }
.sb-table th { background: #f1f7f8; }
.sb-table tr > th:first-child { width: 115px; position: sticky; left: 0; z-index: 1; overflow-wrap: anywhere; }
.sb-table thead th button { border: 0; width: 100%; background: transparent; }
.sb-table small { display: block; font-weight: 400; margin-top: 4px; }
.sb-table .sb-cell { width: 100%; border: 0; background: transparent; text-align: left; min-height: 86px; padding: 0; }
.sb-shift { display: block; border-left: 3px solid #23919a; border-radius: 6px; background: #eaf5f4; padding: 10px; margin: 3px 0 7px; font-size: 13px; overflow-wrap: anywhere; line-height: 1.5; }
.sb-unassigned { display: block; text-align: center; font-size: 13px; color: #91a1a7; }
.sb-table .sb-today { background: #fff3cf; }
.sb-empty { padding: 36px 16px; text-align: center; color: #6f8086; }
.sb-date-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; margin-bottom: 16px; }
.sb-date-strip button { padding: 8px 0; }
.sb-date-strip small { display: block; font-size: 12px; margin-bottom: 4px; }
.sb-site-card { border: 1px solid #dce7e9; border-radius: 14px; background: white; margin-bottom: 16px; padding: 18px; }
.sb-site-card header { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.sb-site-card h3 { margin: 0 0 12px; overflow-wrap: anywhere; }
.sb-site-card header span { white-space: nowrap; }
.sb-person { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; border-top: 1px solid #edf1f2; }
.sb-person p { width: 100%; margin: 0; color: #687c84; overflow-wrap: anywhere; }
.sb-day-add { width: 100%; }
.sb-warnings { margin: 10px 0; padding: 10px 14px; border: 1px solid #dfe7e9; border-radius: 10px; background: #f8fafb; color: #657b83; font-size: 13px; max-height: 200px; overflow: auto; }
.sb-warnings summary { cursor: pointer; }
.sb-warnings p { margin: 7px 0; overflow-wrap: anywhere; }
.sb-history { margin: 16px 0; padding: 14px; border: 1px solid #dce7e9; border-radius: 10px; }
.sb-history article { border-bottom: 1px solid #e0e7e9; padding: 12px 0; overflow-wrap: anywhere; }
.sb-history small { color: #61757b; }
.sb-edit-times { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.sb-edit-times input { box-sizing: border-box; min-height: 40px; width: 116px; max-width: 100%; }
.sb-edit-times span { color: #61757b; }
.sb-confirm-receipt { min-height: 44px; margin-top: 8px; border: 1px solid #1a7585; background: #edf7f6; color: #17596a; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.sb-month-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(292px, 23vw, 370px); gap: 20px; align-items: start; }
.sb-calendar-card, .sb-month-detail { min-width: 0; border: 1px solid #dce7e9; background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px #173f4a05; }
.sb-calendar-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 20px; }
.sb-calendar-heading h3 { font-size: 20px; margin: 0; font-weight: 500; }
.sb-calendar-heading span { color: #78898e; font-size: 13px; }
.sb-month-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #f2f7f7; border-block: 1px solid #e2ebed; }
.sb-month-weekdays span { padding: 12px; text-align: center; font-size: 13px; color: #526e75; }
.sb-month-weekdays span:first-child, .sb-month-weekdays span:last-child { color: #987c3d; }
.sb-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #e5edef; }
.sb-workbench .sb-date-cell { display: flex; flex-direction: column; gap: 7px; align-items: stretch; text-align: left; min-width: 0; min-height: clamp(126px, 8.1vw, 168px); padding: 12px; border: 0; border-radius: 0; background: white; font-weight: 400; position: relative; }
.sb-workbench .sb-date-cell:hover { background: #f4f9f9; }
.sb-workbench .sb-selected-date { background: #eef8f7; box-shadow: inset 0 0 0 2px #287e89; }
.sb-date-number { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; color: #244852; min-height: 24px; }
.sb-today-number { color: #197582; }
.sb-today-number small { font-size: 10px; background: #e7b946; color: #574414; border-radius: 4px; padding: 2px 4px; }
.sb-date-totals { display: flex; gap: 3px 10px; flex-wrap: wrap; font-size: 12px; color: #5b737b; }
.sb-date-totals b { color: #226d79; font-weight: 600; }
.sb-date-sites { display: grid; gap: 3px; font-size: 12px; line-height: 1.5; color: #668087; }
.sb-date-sites > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-date-more, .sb-date-empty { font-size: 11px; color: #97a5a9; }
.sb-workbench .sb-other-month { background: #f8fafb; }
.sb-other-month .sb-date-number { color: #bcc6ca; }
.sb-month-detail > header { padding: 20px; background: #f4f9f9; border-bottom: 1px solid #dfe9eb; }
.sb-month-detail { scroll-margin-top: 100px; }
.sb-month-detail header > small { font-size: 12px; color: #71868b; }
.sb-month-detail h3 { margin: 8px 0; font-size: 23px; }
.sb-month-detail h3 span { font-size: 14px; margin-left: 8px; font-weight: 400; }
.sb-month-detail header p { font-size: 13px; color: #637d84; margin: 0 0 16px; }
.sb-month-detail header button { width: 100%; }
.sb-detail-list { padding: 0 18px 18px; max-height: 620px; overflow: auto; }
.sb-detail-site h4 { font-size: 14px; line-height: 1.6; margin: 18px 0 8px; overflow-wrap: anywhere; }
.sb-detail-site h4 small { color: #768d93; font-size: 12px; margin-left: 8px; font-weight: 400; white-space: nowrap; }
.sb-workbench .sb-detail-person { display: block; width: 100%; text-align: left; border: 0; border-radius: 8px; background: #f8fafb; padding: 10px 12px; margin: 8px 0; font-weight: 400; }
.sb-detail-person strong { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sb-detail-person strong span { font-size: 11px; color: #789098; font-weight: 400; }
.sb-detail-person small, .sb-detail-person p { display: block; font-size: 12px; color: #71858b; margin: 6px 0 0; overflow-wrap: anywhere; }
.sb-detail-empty { padding: 28px 0; line-height: 1.8; color: #81959c; font-size: 13px; }
#schedule-person-context { display: block; padding: 10px 0 0; color: #175b69; font-size: 15px; font-weight: 600; }
.sb-person-editor #schedule-add-employee { display: none; }
@media (max-width: 1199px) { .sb-month-layout { grid-template-columns: minmax(0, 1fr); } .sb-detail-list { max-height: none; } }
.sb-overlay[hidden] { display: none !important; }
.sb-overlay { position: fixed; inset: 0; background: #102b3970; z-index: 11000; display: flex; align-items: center; justify-content: center; padding: 22px; }
.sb-dialog { background: #fff; width: min(760px, 100%); max-height: 90dvh; border-radius: 18px; display: flex; flex-direction: column; font-family: system-ui, sans-serif; color: #193f4c; box-shadow: 0 16px 60px #092c3a40; }
.sb-dialog > header, .sb-dialog > footer { padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.sb-dialog h3 { margin: 0; }
.sb-dialog > footer { border-top: 1px solid #e3ebed; justify-content: flex-end; }
.sb-dialog-body { padding: 8px 22px 22px; overflow: auto; }
.sb-dialog-body label { align-items: stretch; flex-direction: column; margin: 12px 0; }
.sb-dialog input[type=date], .sb-dialog input[type=time] { width: 100%; -webkit-appearance: none; }
.sb-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.sb-dialog fieldset { border: 1px solid #dce7e9; border-radius: 10px; margin: 16px 0; padding: 12px; }
.sb-employee-options { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 4px; max-height: 210px; overflow: auto; }
.sb-employee-options label { flex-direction: row; align-items: center; margin: 0; min-height: 44px; overflow-wrap: anywhere; }
.sb-employee-options input { width: 20px; height: 20px; min-height: 20px; accent-color: #176f80; }
.sb-preview-list { max-height: 240px; overflow: auto; margin-top: 12px; }
.sb-preview-list p { border-bottom: 1px solid #e1e9eb; padding: 10px 0; margin: 0; overflow-wrap: anywhere; }
.sb-preview-list small { display: block; color: #647b83; margin-top: 5px; }
#schedule-modal .schedule-modal-content { width: min(850px,95vw); }
@media (min-width: 769px) {
    .sb-workbench.sb-month-view { width: 100%; max-width: none; padding-top: 0; }
    .sb-month-view .sb-heading, .sb-month-view .sb-toolbar, .sb-month-view .sb-filters { margin-bottom: 8px; }
    .sb-month-view .sb-heading small { display: none; }
    .sb-month-view .sb-heading h2 { font-size: 22px; }
    .sb-month-view .sb-filters { padding: 8px 12px; }
}
@media (max-width: 768px) {
    .sb-workbench { padding: 8px 0 24px; }
    .sb-heading, .sb-toolbar { gap: 12px; margin-bottom: 14px; }
    .sb-heading h2 { font-size: 23px; }
    .sb-heading .sb-actions { display: flex; width: auto; }
    .sb-workbench button { padding: 9px 8px; font-size: 13px; }
    .sb-toolbar > .sb-actions { width: 100%; display: grid; grid-template-columns: 40px 52px 40px minmax(0,1fr); gap: 5px; }
    .sb-toolbar label { font-size: 0; }
    .sb-toolbar input { width: 100%; font-size: 14px; padding: 8px 3px; }
    .sb-views { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
    .sb-filters { display: grid; grid-template-columns: minmax(0,1fr); padding: 10px; }
    .sb-filters label input, .sb-filters label select { width: 100%; max-width: none; }
    .sb-calendar-heading { padding: 14px; }
    .sb-calendar-heading span { display: none; }
    .sb-month-weekdays span { padding: 10px 2px; font-size: 11px; }
    .sb-workbench .sb-date-cell { min-height: 88px; padding: 7px 3px; gap: 6px; }
    .sb-date-number { font-size: 13px; min-height: 20px; gap: 2px; }
    .sb-today-number small { display: none; }
    .sb-date-totals { font-size: 10px; display: grid; gap: 3px; }
    .sb-date-sites, .sb-date-more, .sb-date-empty { display: none; }
    .sb-overlay { padding: 0; }
    .sb-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .sb-dialog > header, .sb-dialog > footer { padding: 12px 16px; }
    .sb-dialog > footer { padding-bottom: calc(12px + env(safe-area-inset-bottom,0px)); }
    .sb-dialog-body { padding: 8px 16px 16px; }
    #schedule-modal .schedule-modal-content { width: 100% !important; max-width: 100% !important; max-height: 100dvh !important; border-radius: 0; }
    #schedule-rows-container { max-height: none !important; }
    #schedule-rows-container input, #schedule-rows-container select { min-width: 0 !important; }
    #schedule-modal .schedule-footer-btns { position: sticky; bottom: 0; background: white; padding: 12px 0; }
}
