@import url('/vendor/inter.css');

body.measurements-page { --schedule-line:#e8e8eb; --schedule-muted:#71717a; --schedule-ink:#18181b; --schedule-paper:#fff; --schedule-soft:#f5f6f7; background:var(--schedule-paper); color:var(--schedule-ink); min-height:100dvh; display:flex; flex-direction:column; padding-bottom:calc(66px + env(safe-area-inset-bottom)); letter-spacing:0; }
.dark .measurements-page { --schedule-line:#303033; --schedule-muted:#a4a4aa; --schedule-ink:#f4f4f5; --schedule-paper:#141414; --schedule-soft:#202022; background:var(--schedule-paper); color:var(--schedule-ink); }
.measurements-page * { box-sizing:border-box; }
.measurements-page svg { flex-shrink:0; vertical-align:middle; }
.measurements-page button:focus-visible,.measurements-page a:focus-visible,.measurements-page summary:focus-visible { outline:2px solid #b18a00; outline-offset:3px; }
.schedule-header { border-bottom:1px solid var(--schedule-line); background:var(--schedule-paper); position:sticky; top:0; z-index:40; }
.schedule-header-inner { max-width:720px; min-height:44px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; gap:8px; margin:auto; }
#page-title { color:var(--schedule-ink); font-size:20px; line-height:1.25; font-weight:750; overflow-wrap:anywhere; }
.schedule-header-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.schedule-theme { display:none; }
.schedule-profile { position:relative; display:flex; align-items:center; }
#schedule-avatar { width:44px; height:44px; border-radius:0; background:transparent; color:#191919; font-size:12px; font-weight:650; display:grid; place-items:center; border:0; }
.schedule-header .wincalc-notification-button { border:0; background:transparent; color:var(--schedule-ink); width:36px; height:40px; padding:7px; }
.schedule-header .wincalc-notification-count { background:#e9e9eb; color:#18181b; border-color:var(--schedule-paper); right:-1px; top:0; font-weight:600; }
.measurements-page > main { width:100%; max-width:720px; padding:0 16px; margin:0 auto; flex:1; }
.measurements-page[data-workspace="distribution"] > main { max-width:1280px; padding-top:16px; }
#workspace-switch { margin:12px 0; padding:3px; border-radius:6px; }
#workspace-switch button { font-size:12px; font-weight:600; min-height:38px; }
#calendar-view { background:var(--schedule-paper); color:var(--schedule-ink); border:0; margin-top:0; overflow:visible; }
.schedule-month { display:flex; align-items:center; justify-content:space-between; min-height:40px; }
#calendar-month-title { text-transform:capitalize; text-align:left; min-height:44px; min-width:0; flex:1; font-size:16px; font-weight:650; color:inherit; }
#calendar-today { flex:0 0 auto; min-height:44px; padding:0 8px; color:var(--schedule-ink); font-size:12px; }
.schedule-icon-button { width:40px; height:40px; flex:0 0 40px; display:inline-flex; align-items:center; justify-content:center; border:0; color:inherit; padding:0; background:transparent; }
.schedule-icon-button svg { width:19px; height:19px; display:block; }
.schedule-month-controls { display:none; align-items:center; justify-content:space-between; font-size:12px; }
.expanded .schedule-month-controls { display:flex; }
.schedule-month-controls > button { min-height:40px; }
#calendar-view .calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:0; }
.schedule-weekdays { color:var(--schedule-muted); font-size:10px; text-align:center; line-height:14px; }
#calendar-view .calendar-day:nth-child(n) { border:0; padding:0; border-radius:0; min-height:32px; background:transparent!important; box-shadow:none; gap:0; position:relative; color:var(--schedule-ink); display:grid; place-items:center; }
#calendar-view .calendar-day .calendar-number { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-size:14px; font-weight:500; line-height:1; }
#calendar-view .calendar-day.selected .calendar-number { background:#fbd215!important; color:#151515!important; font-weight:700; }
#calendar-view .calendar-count { display:none; }
#calendar-view .expanded .calendar-day .calendar-count { display:block; position:absolute; bottom:0; right:2px; min-height:0; font-size:9px; color:var(--schedule-muted); }
.schedule-tabs { display:flex!important; align-items:center; gap:24px; border-bottom:1px solid var(--schedule-line); margin:0 -16px; padding:0 16px; }
.schedule-tabs > button[role="tab"] { min-height:44px!important; padding:0; border:0; border-bottom:2px solid transparent; color:var(--schedule-muted); font-size:14px; font-weight:500; border-radius:0; background:transparent; }
.schedule-tabs > button[role="tab"].active { color:var(--schedule-ink); border-bottom-color:#fbd215; font-weight:650; background:transparent; }
.schedule-tabs .schedule-filter-button { margin-left:auto; color:var(--schedule-muted); }
#calendar-mode, #range-mode { padding:0; min-height:0; }
.schedule-agenda-heading { display:flex!important; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:12px 0 9px; border-bottom:1px solid var(--schedule-line); }
.schedule-agenda-heading h2 { font-size:14px; font-weight:650; }
.schedule-agenda-heading > span,.schedule-agenda-heading > button { color:var(--schedule-muted); font-size:11px; flex-shrink:0; }
#range-label { min-height:32px; }
#calendar-view .request-card { padding:0; border:0; border-bottom:1px solid var(--schedule-line); margin:0; }
#calendar-view .request-card:has(>details[open]) { background:var(--schedule-soft); border-radius:6px; margin:0 -10px; padding:0 10px 12px; }
#calendar-view .request-details > summary { display:grid; grid-template-columns:40px minmax(0,1fr) auto 14px; gap:8px; align-items:center; padding:12px 0; min-height:58px; list-style:none; }
#calendar-view .request-details > summary::-webkit-details-marker { display:none; }
.request-time { align-self:start; padding-top:1px; font-size:12px; line-height:18px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.request-date { display:block; font-size:10px; color:var(--schedule-muted); }
.request-identity { min-width:0; }
#calendar-view .request-address { display:block; font-size:12px; font-weight:650; line-height:17px; color:var(--schedule-ink); overflow-wrap:anywhere; }
#calendar-view .request-client { display:block; margin-top:2px; font-size:11px; line-height:16px; color:var(--schedule-muted); overflow-wrap:anywhere; }
.request-status { font-size:10px; line-height:14px; color:var(--schedule-muted); max-width:none; white-space:nowrap; text-align:right; }
#calendar-view .request-arrow { display:flex; justify-content:center; align-items:center; width:14px; height:20px; transform:none; padding:0; }
#calendar-view .request-arrow svg { width:16px; height:16px; }
#calendar-view .request-details[open] > summary .request-arrow svg { transform:rotate(90deg); }
#calendar-view .request-extra { padding:0; font-size:12px; line-height:18px; }
#calendar-view .request-extra > div { margin:0; }
#calendar-view .request-phone { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:10px 12px; border-bottom:1px solid var(--schedule-line); background:var(--schedule-paper); font-size:12px; color:var(--schedule-ink); }
.request-phone span { min-width:0; overflow-wrap:anywhere; }
.request-phone:first-child { border-radius:5px 5px 0 0; }
.request-phone svg { width:18px; height:18px; }
#calendar-view .request-map { display:flex; align-items:center; gap:10px; min-height:44px; padding:10px 12px; color:var(--schedule-ink); background:var(--schedule-paper); border-bottom:1px solid var(--schedule-line); font-size:12px; }
.request-map span { flex:1; }
.request-map svg { width:18px; height:18px; flex:0 0 18px; }
#calendar-view .request-comment { display:flex; align-items:center; gap:12px; padding:10px 12px; min-height:40px; background:var(--schedule-paper); }
.request-comment svg { width:16px; height:16px; color:var(--schedule-muted); align-self:flex-start; margin-top:1px; }
.request-comment span { min-width:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.request-master { font-size:11px; color:var(--schedule-muted); padding:7px 12px; }
#calendar-view .request-actions { display:block; padding-right:44px; margin:0; position:relative; min-height:44px; }
#calendar-view .request-actions > a { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-width:0; min-height:44px; border-radius:6px; padding:10px; background:#fbd215; color:#141414; font-size:13px; font-weight:650; }
#calendar-view .request-action-menu { width:calc(100% + 44px); text-align:left; }
#calendar-view .request-action-menu > summary { position:absolute; top:0; right:0; display:flex; align-items:center; justify-content:center; height:44px; width:40px; border:0; padding:0; border-radius:6px; cursor:pointer; list-style:none; }
#calendar-view .request-action-menu[open] > summary { background:var(--schedule-paper); }
#calendar-view .request-actions:not(:has(> a)) { padding-top:44px; }
.request-action-menu > summary::-webkit-details-marker { display:none; }
#calendar-view .request-action-menu > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding-top:8px; }
#calendar-view .request-action-menu button { width:100%; min-width:0; min-height:44px; border:1px solid var(--schedule-line); background:var(--schedule-paper); padding:8px; border-radius:6px; color:var(--schedule-ink)!important; font-size:12px; text-align:center; overflow-wrap:anywhere; }
#calendar-view .linked-calculation { padding:8px 12px; font-size:12px; background:var(--schedule-paper); border-color:var(--schedule-line); }
#schedule-filters { width:calc(100% - 24px); max-width:480px; max-height:85dvh; border:1px solid var(--schedule-line); border-radius:8px; padding:16px; background:var(--schedule-paper); color:var(--schedule-ink); }
#schedule-filters::backdrop { background:#0006; }
#schedule-filter-fields { display:grid; gap:16px; padding-top:16px; }
#schedule-filter-fields > div:last-child { display:grid; grid-template-columns:minmax(0,1fr); }
#schedule-filter-fields > div:last-child > * { grid-column:1; }
#schedule-filter-fields input,#schedule-filter-fields select { width:100%; min-width:0; font-size:16px; }
#schedule-filter-fields label,#schedule-filter-fields select { color:var(--schedule-ink); }
#toast { bottom:calc(78px + env(safe-area-inset-bottom)); }
@media (min-width:768px) { .schedule-header-inner { min-height:64px; } .measurements-page > main { padding:0 24px; } .schedule-tabs { margin-left:-24px; margin-right:-24px; padding-left:24px; padding-right:24px; } #calendar-view .request-details > summary { min-height:74px; grid-template-columns:56px minmax(0,1fr) auto 20px; gap:14px; } #calendar-view .request-address { font-size:15px; } .request-status { max-width:none; font-size:12px; } }
@media (prefers-reduced-motion:reduce) { #calendar-view .request-arrow svg { transition:none; } }
#schedule-avatar > span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#ededee; }
#calendar-view .request-time { color:var(--schedule-ink); }
#schedule-date-navigation { padding-bottom:0; }
.schedule-empty { padding:40px 12px; text-align:center; font-size:13px; color:var(--schedule-muted); }
.request-details:not([open]) .request-address { display:-webkit-box!important; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.request-details:not([open]) .request-client { white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.request-actions { scroll-margin-bottom:90px; }
/* Role-restricted controls must stay hidden despite toolbar display rules. */
#request-entry-toolbar[hidden], #request-entry-toolbar button[hidden], .surveyor-trigger.hidden { display:none !important; }
