:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #152235; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
.site-footer { width: 100%; padding: 18px 20px; border-top: 1px solid #dfe5ea; color: #718090; background: #eef2f5; font-size: 12px; text-align: center; }
.page-shell { width: 100%; flex: 1; display: grid; place-items: center; }
header { position: relative; min-height: 112px; padding: 26px clamp(20px, 5vw, 72px); color: white; background: #11283d; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { display: block; object-fit: cover; object-position: center; background: white; }
.brand-heading { display: flex; align-items: center; gap: 20px; }
.logo-home-link { display: block; border-radius: 8px; }
.logo-home-link:focus-visible { outline: 3px solid #72d6b0; outline-offset: 4px; }
.header-logo { width: 210px; height: 72px; border-radius: 7px; }
h1 { margin: 3px 0 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; }
.eyebrow { color: #72d6b0; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
button { border: 1px solid #d9e0e6; border-radius: 10px; background: white; color: #152235; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.account-menu { position: relative; flex: 0 0 auto; }
.account-menu summary { min-width: 86px; list-style: none; cursor: pointer; display: flex; align-items: center; flex-direction: column; gap: 5px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-avatar { width: 48px; height: 48px; border: 2px solid #72d6b0; border-radius: 50%; background: #1d425f; color: white; display: grid; place-items: center; font-size: 15px; font-weight: 850; letter-spacing: .04em; }
.account-name { max-width: 130px; color: #d8e4ec; font-size: 12px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu[open] .account-avatar { background: #2a9d7c; }
.account-dropdown { position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; width: 230px; padding: 8px; border: 1px solid #d9e0e6; border-radius: 13px; background: white; color: #152235; box-shadow: 0 18px 48px #071a2b55; display: grid; gap: 3px; }
.account-dropdown a, .account-dropdown button { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: #152235; font: inherit; font-size: 13px; font-weight: 750; text-align: left; text-decoration: none; display: block; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #eef5f8; }
.account-dropdown form { margin: 4px 0 0; padding-top: 5px; border-top: 1px solid #e2e7eb; }
.account-dropdown form button { color: #9a3030; }
main { padding: 26px clamp(14px, 4vw, 64px) 60px; }
.desktop-period-arrow { display: none; }
@media (min-width: 901px) {
  .desktop-period-arrow { position: fixed; z-index: 24; top: 50%; width: 48px; height: 76px; padding: 0; border: 1px solid #cbd7df; border-radius: 15px; background: #11283ded; color: white; box-shadow: 0 10px 30px #071a2b38; font-size: 42px; line-height: 1; align-items: center; justify-content: center; }
  .desktop-period-arrow:hover { background: #1d4b68; transform: translateY(-1px); }
  .desktop-period-arrow:focus-visible { outline: 3px solid #72d6b0; outline-offset: 3px; }
  .desktop-period-arrow-left { left: 10px; }
  .desktop-period-arrow-right { right: 10px; }
  body:not(:has(dialog[open])) .desktop-period-arrow { display: flex; }
}
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.toolbar p { margin: 5px 0 0; color: #667486; font-size: 13px; }
.toolbar-actions { display: grid; justify-items: end; gap: 8px; }
.planner-navigation, .view-and-refresh, .view-switch { display: flex; align-items: center; gap: 8px; }
.view-switch { padding: 3px; gap: 2px; border: 1px solid #d9e0e6; border-radius: 11px; background: white; }
.view-switch button { border: 0; padding: 7px 11px; background: transparent; }
.view-switch button.active { background: #11283d; color: white; }
.task-filters { margin-bottom: 18px; padding: 14px; border: 1px solid #dfe5ea; border-radius: 14px; background: white; display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); align-items: end; gap: 12px; }
.task-filters .search-filter { min-width: min(260px,100%); }
.task-filters label { display: grid; gap: 6px; color: #667486; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.task-filters input, .task-filters select { width: 100%; min-height: 42px; border: 1px solid #cfd8df; border-radius: 9px; padding: 9px 11px; background: white; color: #152235; font: inherit; font-size: 14px; text-transform: none; }
.task-filters input:focus, .task-filters select:focus { outline: 3px solid #1598da33; border-color: #1598da; }
#clearFilters { min-height: 42px; white-space: nowrap; }
.my-day-summary { margin-bottom: 20px; }
.my-day-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.my-day-heading h2 { margin: 0; color: #11283d; font-size: 25px; }
.my-day-heading p { margin: 0; color: #667486; font-size: 13px; }
.my-day-cards { display: grid; gap: 14px; }
.my-day-card { padding: clamp(18px, 4vw, 30px); border-radius: 18px; background: linear-gradient(135deg,#11283d,#1c4563); color: white; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; box-shadow: 0 16px 38px #10283d2b; }
.my-day-info { display: grid; gap: 5px; }
.my-day-label { color: #72d6b0; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.my-day-employee { color: #b9cbd7; font-size: 12px; font-weight: 750; }
.my-day-info h3 { margin: 2px 0 0; font-size: clamp(23px,4vw,34px); }
.my-day-time { color: #80d5ff; font-size: 18px; }
.my-day-info p { margin: 2px 0 0; color: #d9e6ee; }
.my-day-address { font-size: 13px; }
.my-day-actions { width: min(330px,100%); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.my-day-action { min-height: 44px; border: 1px solid #ffffff40; border-radius: 10px; padding: 11px 13px; background: #ffffff12; color: white; font: inherit; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.my-day-action:hover { background: #ffffff22; }
.my-day-action.primary { border-color: #72d6b0; background: #72d6b0; color: #10283d; }
.my-day-action:disabled { opacity: .55; cursor: wait; }
.my-day-empty { padding: 22px; border: 1px dashed #b8c5ce; border-radius: 14px; background: white; color: #667486; }
.planner { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.planner.view-day { grid-template-columns: minmax(280px, 760px); justify-content: center; }
.planner.view-month { display: block; overflow-x: auto; }
.month-grid { min-width: 840px; display: grid; grid-template-columns: repeat(7, minmax(115px, 1fr)); gap: 1px; border: 1px solid #dfe5ea; border-radius: 14px; overflow: hidden; background: #dfe5ea; }
.month-weekday { padding: 10px; background: #eef2f5; color: #687687; font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.month-day { min-height: 135px; padding: 9px; background: white; }
.month-day.outside { background: #f6f7f8; color: #9aa4ad; }
.month-day.today { box-shadow: inset 0 0 0 2px #2a9d7c; }
.month-number { display: block; margin-bottom: 7px; font-weight: 800; }
.month-task { width: 100%; margin-bottom: 5px; padding: 6px 7px; border: 0; border-left: 3px solid #2a9d7c; border-radius: 5px; background: #eaf8f3; text-align: left; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-task.in_progress { border-left-color: #f1a33c; background: #fff5e6; }
.month-task.completed { opacity: .62; border-left-color: #718096; background: #eef1f4; }
.day { border: 1px solid #dfe5ea; border-radius: 14px; background: white; overflow: hidden; }
.day header { min-height: 0; padding: 15px; background: white; color: #152235; border-bottom: 1px solid #e7ebef; display: block; }
.day header span { display: block; color: #768395; font-size: 12px; text-transform: uppercase; }
.day header strong { font-size: 22px; }
.timeline-scroll { max-height: min(70vh, 720px); overflow-y: scroll; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.timeline-scroll::-webkit-scrollbar { width: 12px; }
.timeline-scroll::-webkit-scrollbar-track { background: #eef2f5; }
.timeline-scroll::-webkit-scrollbar-thumb { border: 3px solid #eef2f5; border-radius: 999px; background: #82909d; }
.timeline-scroll:focus-visible { outline: 3px solid #2563eb; outline-offset: -3px; }
.timeline { position: relative; height: 648px; margin-left: 50px; border-left: 1px solid #e1e6ea; background: repeating-linear-gradient(to bottom, #fff 0, #fff 71px, #e8ecef 72px); }
.hours { position: absolute; top: 0; bottom: 0; left: -50px; width: 50px; display: grid; color: #758493; font-size: 10px; font-variant-numeric: tabular-nums; pointer-events: none; }
.hours span { box-sizing: border-box; width: 100%; padding-right: 7px; transform: translateY(-6px); text-align: right; white-space: nowrap; }
.tasks { position: absolute; inset: 0 7px; }
.task { position: absolute; left: 0; right: 0; overflow: hidden; border: 0; border-left: 4px solid #2a9d7c; border-radius: 8px; padding: 10px; background: #eaf8f3; display: grid; align-content: start; gap: 4px; box-shadow: 0 2px 7px #16324814; cursor: pointer; }
.task.assignee-ronald { border-left-color: #e49332; background: #fff1dc; }
.task.assignee-michel { border-left-color: #3b91cf; background: #e8f4fc; }
.task.assignee-ronald .time { color: #875112; }
.task.assignee-michel .time { color: #245f8b; }
.task.overlapping-task { padding-inline: 7px; }
.task.schedule-conflict { border-left-color: #d73f3f; background: #fff0f0; box-shadow: 0 0 0 2px #d73f3f55,0 4px 12px #8d252522; }
.task.schedule-conflict::after { content: "⚠ Conflict"; justify-self: start; padding: 3px 6px; border-radius: 999px; background: #b72f2f; color: white; font-size: 9px; font-weight: 850; }
.task-conflict-notice { padding: 11px 13px; border: 1px solid #efb9b9; border-radius: 9px; background: #fff0f0; color: #982d2d; font-size: 13px; font-weight: 750; line-height: 1.45; }
.task:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.task.in_progress { border-color: #f1a33c; background: #fff5e6; }
.task.completed { opacity: .62; border-color: #718096; background: #eef1f4; }
.task.sync-failed { border-color: #c94141; background: #fff0f0; }
.task.sync-pending { border-color: #d58a24; background: #fff7e8; }
.task.draft-appointment { border: 2px dashed #7b8791; border-left-width: 5px; background: repeating-linear-gradient(135deg,#f3f5f6,#f3f5f6 9px,#e8ecef 9px,#e8ecef 18px); color: #42515d; }
.task.draft-appointment .time { color: #5c6871; }
.time { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 800; color: #3c5b57; }
.description, .client, .person { font-size: 12px; color: #607080; }
.description:empty { display: none; }
.empty { color: #97a2ae; font-size: 13px; padding: 18px 8px; }
.error { padding: 18px; border: 1px solid #f1b5b5; background: #fff0f0; border-radius: 10px; color: #8a2828; }
.conflict-dialog { width: min(620px,calc(100vw - 24px)); }
.conflict-dialog .work-order-head { margin: 0; padding: 24px 26px; background: #fff3f1; border-color: #efc2bc; }
.conflict-dialog .work-order-head .eyebrow { color: #b72f2f; }
.conflict-list { margin: 22px 26px 10px; display: grid; gap: 9px; }
.conflict-list article { padding: 13px 15px; border: 1px solid #edc6c1; border-left: 4px solid #cf3e3e; border-radius: 10px; background: #fffafa; display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.conflict-list article > strong { color: #a32929; font-variant-numeric: tabular-nums; }
.conflict-list article div { display: grid; gap: 3px; }
.conflict-list article span { color: #687785; font-size: 12px; }
.conflict-warning { margin: 12px 26px; color: #7e4c29; font-size: 13px; }
.conflict-dialog > .work-order-actions { padding: 14px 26px 24px; }
.appointment-history-dialog { width: min(720px,calc(100vw - 24px)); overflow: hidden; }
.appointment-history-dialog .work-order-head { margin: 0; padding: 24px 26px; background: #eef6f8; border-color: #cadde3; }
.appointment-history-dialog .work-order-head .eyebrow { color: #176c80; }
.appointment-history-list { max-height: min(62vh,650px); padding: 22px 26px; overflow-y: auto; display: grid; gap: 12px; background: #f5f8fa; }
.appointment-history-list > article { padding: 16px; border: 1px solid #d5e0e6; border-left: 4px solid #278d73; border-radius: 11px; background: white; }
.appointment-history-list article header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.appointment-history-list article header strong { color: #193a4e; }
.appointment-history-list article header span { color: #71818d; font-size: 11px; text-align: right; }
.history-changes { margin-top: 12px; display: grid; gap: 8px; }
.history-changes > div { padding-top: 8px; border-top: 1px solid #edf1f3; display: grid; grid-template-columns: 125px 1fr; gap: 12px; }
.history-changes b { color: #647684; font-size: 11px; text-transform: uppercase; }
.history-changes p { margin: 0; color: #2e4352; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.history-empty { margin: 0; padding: 16px; border-radius: 10px; background: white; color: #657784; }
.appointment-history-dialog > .work-order-actions { padding: 14px 26px 22px; }
@media (max-width: 520px) { .conflict-list { margin-inline: 16px; }.conflict-list article { grid-template-columns: 1fr; }.conflict-warning { margin-inline: 16px; }.conflict-dialog > .work-order-actions { padding-inline: 16px; }.conflict-dialog > .work-order-actions button { width: 100%; } }
@media (max-width: 520px) { .appointment-history-list { padding: 16px; }.appointment-history-list article header { flex-direction: column; }.appointment-history-list article header span { text-align: left; }.history-changes > div { grid-template-columns: 1fr; gap: 4px; }.appointment-history-dialog > .work-order-actions { padding-inline: 16px; }.appointment-history-dialog > .work-order-actions button { width: 100%; } }
.client-panel { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(430px, 92vw); padding: 28px; overflow-y: auto; background: white; box-shadow: -12px 0 40px #0f223533; transform: translateX(105%); transition: transform .22s ease; }
.client-panel.open { transform: translateX(0); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #e2e7eb; padding-bottom: 18px; }
.panel-head h2 { margin: 4px 0 0; font-size: 27px; }
.panel-head .eyebrow { color: #218365; }
.panel-head button { font-size: 24px; padding: 2px 10px; }
.muted { color: #788594; font-size: 13px; }
.wefact-link { display: inline-flex; margin-top: 8px; padding: 11px 14px; border-radius: 9px; background: #11283d; color: white; font-size: 13px; font-weight: 800; text-decoration: none; }
.wefact-link:hover { background: #1d425f; }
.work-order-button { display: block; width: 100%; margin-top: 10px; border-color: #1598da; background: #1598da; color: white; }
.work-order-button[hidden] { display: none; }
.work-order-button:hover { background: #087eb8; }
.work-order-button:disabled { opacity: .55; cursor: wait; }
.download-work-order { display: block; width: 100%; margin-top: 10px; padding: 11px 14px; border: 1px solid #218365; border-radius: 10px; background: #eaf8f3; color: #187357; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.planner-task-actions { margin-top: 10px; display: grid; gap: 8px; }
.planner-task-actions[hidden] { display: none; }
.planner-task-actions button { width: 100%; }
.danger-button { border-color: #c75a5a; background: #fff0f0; color: #9b2f2f; }
.task[draggable="true"] { cursor: grab; }
.task.dragging { opacity: .45; }
.tasks.drag-target { outline: 3px dashed #1598da; outline-offset: -3px; background: #e9f7fe88; }
.card-edit-button { position: absolute; right: 6px; bottom: 6px; padding: 5px 8px; border-color: #87bca9; background: #fff; color: #176f55; font-size: 11px; line-height: 1; box-shadow: 0 2px 5px #11283d22; }
.download-work-order:hover { background: #d9f1e8; }
.download-work-order[hidden] { display: none; }
.work-order-ready-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-order-ready-actions[hidden] { display: none; }
.work-order-ready-actions .download-work-order { margin-top: 0; display: flex; align-items: center; justify-content: center; }
.work-order-email-button { border-color: #178869; background: #178869; color: white; }
.work-order-email-button:hover { background: #106c53; }
.work-order-available-button { width: 100%; margin-top: 10px; border-color: #218365; background: #eaf8f3; color: #187357; }
.work-order-available-button[hidden] { display: none; }
.work-order-status-card { margin-top: 10px; padding: 13px; border: 1px solid #9ed8c4; border-radius: 11px; background: #eef9f5; display: grid; gap: 5px; color: #285847; }
.work-order-status-card[hidden] { display: none; }
.work-order-status-card strong { color: #12684e; }
.work-order-status-card span { font-size: 13px; }
.work-order-status-card button { margin-top: 5px; border-color: #218365; background: white; color: #176f55; }
.work-order-ready-dialog { width: min(560px,calc(100vw - 24px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 28px 90px #06152466; }
.work-order-ready-dialog::backdrop { background: #081827aa; backdrop-filter: blur(2px); }
.work-order-ready-content { padding: clamp(28px,6vw,46px); text-align: center; }
.work-order-ready-content h2 { margin: 8px 0 12px; color: #11283d; font-size: clamp(26px,5vw,36px); }
.work-order-ready-content > p { color: #697987; line-height: 1.55; }
.ready-check { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: #ddf5eb; color: #168261; display: grid; place-items: center; font-size: 32px; font-weight: 900; }
.work-order-ready-content .work-order-ready-actions { margin-top: 26px; }
.ready-close-button { margin-top: 12px; border: 0; background: transparent; color: #647584; }
.work-order-dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px #06152466; }
.work-order-dialog::backdrop { background: #081827aa; backdrop-filter: blur(2px); }
.email-work-order-dialog { width: min(600px,calc(100vw - 24px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px #06152466; }
.email-work-order-dialog::backdrop { background: #081827aa; backdrop-filter: blur(2px); }
.work-order-form { padding: clamp(20px, 4vw, 38px); }
.appointment-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px #06152466; }
.appointment-dialog::backdrop { background: #081827aa; backdrop-filter: blur(2px); }
.appointment-form { padding: clamp(20px, 4vw, 38px); }
.customer-search-label { position: relative; }
.customer-search-results { position: absolute; z-index: 5; top: 70px; right: 0; left: 0; max-height: 280px; overflow-y: auto; border: 1px solid #cbd7df; border-radius: 10px; background: white; box-shadow: 0 14px 35px #10283d2b; }
.customer-search-results[hidden] { display: none; }
.customer-search-result { width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid #edf1f3; border-radius: 0; background: white; color: #172a3b; text-align: left; display: grid; gap: 3px; }
.customer-search-result:hover, .customer-search-result:focus { background: #edf8fd; }
.customer-search-result strong { font-size: 13px; }
.customer-search-result span { color: #6b7885; font-size: 11px; }
.customer-search-empty { padding: 13px; color: #788594; font-size: 13px; }
.selected-quote { width: fit-content; padding: 5px 8px; border-radius: 999px; background: #e7f5fc; color: #0876ae !important; font-weight: 800 !important; }
.customer-search-result.quote-result { border-left: 4px solid #1598da; background: #f6fbfe; }
.work-order-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid #e0e6eb; }
.work-order-head h2 { margin: 4px 0; font-size: 30px; }
.work-order-head p { margin: 0; color: #697787; }
.work-order-head button { align-self: flex-start; padding: 2px 10px; font-size: 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid label { display: grid; align-content: start; gap: 7px; color: #27394a; font-size: 13px; font-weight: 750; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid #cbd5dd; border-radius: 9px; padding: 11px 12px; background: white; color: #152235; font: inherit; }
.form-grid textarea { resize: vertical; line-height: 1.45; }
.form-grid small { color: #718090; font-weight: 500; line-height: 1.4; }
.photo-field { display: grid; gap: 8px; }
.photo-field > strong { color: #27394a; font-size: 13px; }
.photo-inputs { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-choice { display: inline-flex !important; align-items: center; justify-content: center; min-width: 190px; padding: 12px 15px; border: 1px solid #1598da; border-radius: 9px; background: #eef8fd; color: #086d9f !important; cursor: pointer; }
.photo-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.signature-section { margin-top: 5px; padding: 20px; border: 1px solid #d7e0e7; border-radius: 12px; background: #f7f9fa; }
.signature-section h3 { margin: 0 0 17px; color: #11283d; }
.signature-fields { margin-bottom: 17px; }
.signature-label { display: grid; gap: 8px; color: #27394a; font-size: 13px; font-weight: 750; }
#signatureCanvas { width: 100%; height: 180px; border: 2px dashed #9eabb6; border-radius: 9px; background: white; cursor: crosshair; touch-action: none; }
#clearSignature { justify-self: start; margin-top: 10px; }
.photo-status { padding: 12px; border-radius: 9px; background: #eef5f8; color: #345163; font-size: 13px; }
.photo-status.error { background: #fff0f0; color: #8a2828; }
.work-order-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.primary-button { border-color: #11283d; background: #11283d; color: white; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.confirmation-dialog { width: min(600px,calc(100vw - 24px)); }
.confirmation-dialog form { padding: clamp(24px,5vw,38px); display: grid; gap: 18px; }
.confirmation-dialog .work-order-head { margin-bottom: 2px; }
.confirmation-dialog .photo-status { margin: 0; padding: 15px 17px; line-height: 1.5; }
.confirmation-dialog .work-order-actions { margin-top: 4px; flex-wrap: wrap; }
@media (max-width: 520px) { .confirmation-dialog { width: calc(100vw - 20px); }.confirmation-dialog form { padding: 22px 18px; }.confirmation-dialog .work-order-head { gap: 10px; }.confirmation-dialog .work-order-head h2 { font-size: 25px; }.confirmation-dialog .work-order-actions { display: grid; grid-template-columns: 1fr; }.confirmation-dialog .work-order-actions button { width: 100%; } }
.detail-section { margin-top: 24px; padding-top: 4px; display: grid; gap: 18px; }
.detail-section + .detail-section { border-top: 1px solid #e2e7eb; padding-top: 22px; }
.detail-section h3 { margin: 0; font-size: 17px; }
.detail-label { color: #788594; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.task-note { margin: -10px 0 0; white-space: pre-wrap; line-height: 1.5; }
.note-disclosure { margin-top: -10px; border: 1px solid #dbe3e9; border-radius: 10px; background: #f7f9fa; overflow: hidden; }
.note-disclosure summary { padding: 12px 14px; cursor: pointer; display: grid; gap: 6px; color: #155b72; }
.note-disclosure summary::marker { content: ""; }
.note-summary-label::after { content: " ▾"; }
.note-disclosure[open] .note-summary-label::after { content: " ▴"; }
.note-preview { color: #607080; font-size: 13px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.note-disclosure[open] .note-preview { display: none; }
.note-disclosure .task-note { margin: 0; padding: 14px; border-top: 1px solid #e2e7eb; background: white; }
.attachments { display: grid; gap: 8px; margin-top: -10px; }
.attachments a { padding: 10px 12px; border-radius: 8px; background: #eef5f8; color: #155b72; text-decoration: none; font-weight: 700; font-size: 13px; }
.attachments a:hover { background: #e0eef3; }
.attachment-preview-dialog { width: min(1100px,96vw); height: min(900px,94dvh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: white; box-shadow: 0 24px 80px #071a2b66; }
.attachment-preview-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.attachment-preview-dialog::backdrop { background: #071a2bb8; }
.attachment-preview-head,.attachment-preview-actions { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.attachment-preview-head { border-bottom: 1px solid #dce4ea; background: #12384e; color: white; }
.attachment-preview-head h2 { margin: 2px 0 0; font-size: 18px; }
.attachment-preview-head button { min-width: 44px; min-height: 44px; padding: 6px; border-color: #ffffff55; background: #ffffff18; color: white; font-size: 24px; }
.attachment-preview-pages { min-height: 0; padding: 12px; overflow: auto; overscroll-behavior: contain; background: #5d666d; display: grid; justify-items: center; align-content: start; gap: 12px; -webkit-overflow-scrolling: touch; }
.attachment-preview-pages > p { margin: 24px; padding: 14px 18px; border-radius: 10px; background: white; }
.attachment-preview-pages canvas { display: block; max-width: 100%; height: auto !important; background: white; box-shadow: 0 3px 16px #0005; }
.attachment-preview-actions { border-top: 1px solid #dce4ea; background: white; }
.attachment-preview-actions a { color: #126b96; font-weight: 800; }
@media (max-width: 650px) { .attachment-preview-dialog { width: 100vw; height: 100dvh; border-radius: 0; }.attachment-preview-actions { padding-bottom: max(14px,env(safe-area-inset-bottom)); }.attachment-preview-actions .primary-button { flex: 1; }.attachment-preview-actions a { font-size: 13px; } }
.client-details { display: grid; gap: 18px; }
.client-details > div { display: grid; gap: 3px; }
.client-details span { color: #788594; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.client-details a, .client-details strong { color: #172a3b; text-decoration: none; }
.client-details a:hover { text-decoration: underline; }
.backdrop { position: fixed; z-index: 15; inset: 0; background: #0c1c2d66; }
@media (max-width: 650px) {
  body.client-popup-open { overflow: hidden; }
  .client-panel {
    z-index: 20;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: calc(100vw - 24px);
    max-width: 520px;
    max-height: calc(100dvh - 24px);
    padding: 20px 18px 24px;
    border: 1px solid #dce5ea;
    border-radius: 18px;
    box-shadow: 0 24px 70px #07182766;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%,-46%) scale(.97);
    transition: transform .18s ease,opacity .18s ease,visibility 0s linear .18s;
    overscroll-behavior: contain;
  }
  .client-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%,-50%) scale(1);
    transition-delay: 0s;
  }
  .client-panel .panel-head {
    position: sticky;
    z-index: 2;
    top: -20px;
    margin: -20px -18px 12px;
    padding: 18px;
    border-radius: 18px 18px 0 0;
    background: white;
  }
  .client-panel .panel-head h2 { font-size: 23px; }
  .client-panel .panel-head button { min-width: 42px; min-height: 42px; }
  .backdrop { background: #081827aa; backdrop-filter: blur(2px); }
  header { align-items: flex-start; flex-direction: column; }
  main { padding-inline: 10px; }
  .planner { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; gap: 18px; }
  .day { width: 100%; }
  .timeline-scroll { max-height: 62vh; }
  .toolbar { align-items: flex-start; gap: 12px; }
  .toolbar-actions { width: 100%; justify-items: stretch; }
  .planner-navigation, .view-and-refresh { justify-content: flex-end; }
  .task-filters { grid-template-columns: 1fr 1fr; }
  .task-filters .search-filter { grid-column: 1 / -1; }
  #clearFilters { grid-column: 1 / -1; }
  .my-day-heading { align-items: flex-start; flex-direction: column; }
  .my-day-card { grid-template-columns: 1fr; }
  .my-day-actions { width: 100%; }
  .view-switch { align-self: stretch; }
  .brand-heading { align-items: flex-start; flex-direction: column; }
  .account-menu { position: absolute; top: 20px; right: 14px; }
  .header-logo { width: min(260px, 100%); height: 88px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .work-order-actions { align-items: stretch; flex-direction: column-reverse; }
  .work-order-actions button { width: 100%; }
}
@media (min-width: 651px) and (max-width: 950px) {
  .task-filters { grid-template-columns: 2fr 1fr 1fr; }
  #clearFilters { grid-column: 1 / -1; justify-self: end; }
}
.auth-body { min-height: 100vh; display: flex; flex-direction: column; background: #eef2f5; }
.auth-body .page-shell { padding: 20px; }
.auth-card { width: min(430px, 100%); padding: 34px; border-radius: 18px; background: white; box-shadow: 0 18px 50px #10283d1a; }
.auth-logo { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; margin-bottom: 20px; border-radius: 8px; }
.auth-card h1 { color: #11283d; font-size: 30px; margin-bottom: 24px; }
.auth-card form, .admin-page form { display: grid; gap: 16px; }
.auth-card label, .admin-page label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.auth-card input, .admin-page input, .admin-page select { width: 100%; border: 1px solid #cfd8df; border-radius: 9px; padding: 12px; background: white; font: inherit; }
.admin-page { max-width: 900px; margin: 40px auto; padding: 24px; }
.admin-page table { width: 100%; border-collapse: collapse; margin: 24px 0 36px; background: white; }
.admin-page th, .admin-page td { text-align: left; padding: 12px; border-bottom: 1px solid #e2e7eb; }
.inline-group-form { min-width: 340px; display: flex !important; gap: 7px !important; }
.inline-group-form .inline-id-input { width: 92px; padding: 8px; }
.inline-group-form select { min-width: 130px; padding: 8px; }
.inline-group-form button { padding: 8px 10px; }
.password-reset { min-width: 210px; }
.password-reset summary { color: var(--blue); cursor: pointer; font-weight: 700; white-space: nowrap; }
.password-reset form { margin-top: 10px; gap: 8px !important; }
.password-reset label { gap: 5px; font-size: .82rem; }
.password-reset input { min-width: 190px; padding: 8px; }
.password-reset button { padding: 8px 10px; }
.password-reset small { max-width: 220px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.admin-help { color: #667486; margin-top: -10px; }
.small-action { display: inline-block; white-space: nowrap; padding: 7px 10px; border-radius: 8px; background: #11283d; color: white; font-size: 12px; font-weight: 700; text-decoration: none; }
.linked-badge { display: inline-block; padding: 6px 9px; border-radius: 999px; background: #eaf8f3; color: #187357; font-size: 12px; font-weight: 800; }
.error-cell { color: #8a2828; }
.landing-page { position: relative; width: min(980px, 100%); padding: 28px; }
.landing-account-menu { position: absolute; top: 28px; right: 28px; z-index: 5; }
.landing-account-menu .account-name { color: #465869; }
.landing-account-menu .account-avatar { background: #11283d; }
.landing-hero { margin-bottom: 28px; }
.landing-logo { width: min(330px, 100%); height: auto; aspect-ratio: 3 / 1; object-fit: contain; margin-bottom: 24px; border-radius: 8px; }
.landing-hero h1 { color: #11283d; margin-top: 8px; }
.landing-hero p { color: #667486; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.landing-tile { min-height: 245px; padding: 26px; border: 1px solid #dbe3e9; border-radius: 18px; background: white; color: #152235; text-decoration: none; box-shadow: 0 12px 35px #10283d12; display: flex; flex-direction: column; justify-content: space-between; transition: transform .18s ease, box-shadow .18s ease; }
.landing-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 42px #10283d20; }
.landing-primary { background: #11283d; color: white; border-color: #11283d; }
.landing-tile h2 { margin: 0 0 8px; font-size: 25px; }
.landing-tile p { margin: 0; color: #697787; line-height: 1.5; }
.landing-primary p { color: #c1ced8; }
.landing-tile strong { color: #218365; }
.landing-primary strong { color: #72d6b0; }
.tile-icon { font-size: 34px; }
.landing-logout { margin-top: 24px; }
.ideas-section { margin-top: 28px; padding: clamp(22px, 4vw, 32px); border: 1px solid #cddbe5; border-radius: 18px; background: #f7fafc; box-shadow: 0 12px 35px #10283d12; }
.roadmap-section { margin-top: 28px; padding: clamp(22px,4vw,32px); border-radius: 20px; background: #102d42; color: white; box-shadow: 0 16px 42px #10283d24; }
.roadmap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.roadmap-head .eyebrow { color: #78dfba; }
.roadmap-head h2 { margin: 6px 0 7px; color: white; font-size: 28px; }
.roadmap-head p { margin: 0; max-width: 640px; color: #c8d8e2; line-height: 1.5; }
.roadmap-current { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; background: #f0b94c; color: #392a0c; font-size: 11px; font-weight: 850; }
.roadmap-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.roadmap-phase { padding: 18px; border: 1px solid #ffffff20; border-radius: 14px; background: #ffffff0c; }
.roadmap-phase.current { border-color: #f0b94c; background: #f0b94c12; }
.roadmap-phase.complete { border-color: #64cba5; }
.roadmap-phase header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.roadmap-phase header span { color: #8fa9b9; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.roadmap-phase header strong { color: white; }
.roadmap-phase header em { padding: 5px 7px; border-radius: 999px; background: #ffffff12; color: #c9d8e1; font-size: 10px; font-style: normal; font-weight: 800; }
.roadmap-phase.complete header em { background: #64cba522; color: #84e3c0; }
.roadmap-phase.current header em { background: #f0b94c22; color: #ffd77e; }
.roadmap-phase ul { margin: 15px 0 0; padding-left: 20px; color: #d2dfe6; font-size: 13px; line-height: 1.65; }
@media (max-width: 700px) { .roadmap-head { flex-direction: column; }.roadmap-grid { grid-template-columns: 1fr; }.roadmap-current { align-self: flex-start; }.roadmap-phase header { grid-template-columns: auto 1fr; }.roadmap-phase header em { grid-column: 1/-1; justify-self: start; } }
.ideas-section h2 { margin: 6px 0; color: #11283d; font-size: 27px; }
.ideas-section > div > p { margin: 0; color: #667486; }
.idea-form { margin-top: 22px; display: grid; gap: 7px; }
.idea-form label { color: #263a4c; font-size: 13px; font-weight: 800; }
.idea-form > div { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.idea-form textarea { width: 100%; min-height: 78px; resize: vertical; }
.idea-form button { height: 44px; }
.idea-list { margin: 22px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.idea-list li { padding: 14px; border: 1px solid #dce4ea; border-radius: 11px; background: white; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.idea-list span { color: #263747; line-height: 1.45; white-space: pre-wrap; }
.idea-list form { flex: 0 0 auto; }
.idea-list button { padding: 7px 9px; border-color: #d9a6a6; background: #fff4f4; color: #8a2828; font-size: 12px; }
@media (max-width: 650px) {
  .landing-page { padding-top: 112px; }
  .landing-account-menu { top: 18px; right: 20px; }
  .idea-form > div { grid-template-columns: 1fr; }
  .idea-list li { align-items: flex-start; flex-direction: column; }
}
.settings-page { width: min(760px, 100%); }
.settings-card { margin-top: 28px; padding: clamp(20px, 4vw, 34px); border: 1px solid #dbe3e9; border-radius: 18px; background: white; box-shadow: 0 12px 35px #10283d12; }
.team-composition-settings { margin: 22px 0 34px; }
.employee-admin-heading { margin: 18px 0 24px; }
.employee-admin-heading h1 { margin: 5px 0 8px; }
.employee-admin-heading p { margin: 0; color: #687985; }
.employee-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 18px; }
.employee-admin-tile { position: relative; min-width: 0; margin: 0; padding: clamp(18px,3vw,28px); border: 1px solid #d7e2e8; border-radius: 18px; background: white; box-shadow: 0 10px 30px #10283d0d; overflow: hidden; }
.employee-admin-tile h2 { margin: 4px 0 16px; padding-right: 42px; }
.employee-admin-wide,.team-composition-settings { grid-column: 1 / -1; }
.employee-admin-tile.team-composition-settings { margin: 0; }
.account-delete-form { margin-top: 10px; }
.account-delete-form .danger-button { width: 100%; }
.account-delete-note { display: block; margin-top: 10px; color: #71818b; line-height: 1.35; }
.employee-tile-number { position: absolute; top: 18px; right: 20px; color: #83a0ae; font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.employee-add-form { display: grid; gap: 13px; }
.employee-add-form label { display: grid; gap: 5px; font-weight: 750; }
.employee-add-form small { color: #6e7d88; font-weight: 500; }
.team-composition-list { display: grid; gap: 12px; }
.team-composition-form { padding: 16px; border: 1px solid #d8e3e8; border-radius: 12px; background: #f7fafb; display: grid; grid-template-columns: minmax(140px,.8fr) minmax(110px,.45fr) minmax(220px,1.5fr) auto; align-items: end; gap: 12px; }
.team-composition-form label { min-width: 0; display: grid; gap: 5px; font-weight: 750; }
.team-composition-form small { color: #6e7d88; font-weight: 500; line-height: 1.35; }
.team-composition-actions { display: flex; gap: 7px; }
.team-composition-add { margin-top: 16px; }
.team-composition-add summary { cursor: pointer; color: #176f55; font-weight: 800; }
.team-composition-add .team-composition-form { margin-top: 12px; }
@media (max-width: 850px) { .employee-admin-grid { grid-template-columns: 1fr; }.employee-admin-wide,.team-composition-settings { grid-column: auto; }.team-composition-form { grid-template-columns: 1fr; align-items: stretch; }.team-composition-actions { display: grid; grid-template-columns: 1fr; } }
.settings-card h2 { margin-top: 0; }
.settings-card small { color: #718090; font-weight: 500; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.success-message { padding: 15px; border: 1px solid #9fd8c5; border-radius: 10px; background: #eaf8f3; color: #187357; font-weight: 700; }
.connection-summary { margin: 28px 0 0; border-top: 1px solid #e2e7eb; }
.connection-summary div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0f2; }
.connection-summary dt { color: #788594; font-size: 12px; font-weight: 800; }
.connection-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

/* Openbare website */
.public-home { width: min(1180px, 100%); margin: 0 auto; color: #15283a; }
.public-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-nav img { display: block; width: min(240px, 34vw); max-height: 56px; object-fit: contain; }
.public-nav > div { display: flex; align-items: center; gap: 22px; }
.public-nav a { color: #304659; font-weight: 750; text-decoration: none; }
.public-nav .public-login, .public-cta { padding: 12px 18px; border-radius: 10px; background: #11283d; color: white; }
.public-hero { min-height: 560px; padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 70px); border-radius: 26px; background: linear-gradient(135deg,#10283d 0%,#173f54 68%,#17836d 140%); color: white; display: grid; grid-template-columns: 1.35fr .8fr; align-items: center; gap: clamp(35px,7vw,90px); box-shadow: 0 25px 70px #10283d2c; }
.public-hero h1 { max-width: 780px; margin: 12px 0 20px; font-size: clamp(40px,6vw,72px); line-height: 1.02; letter-spacing: -.04em; }
.public-hero > div > p { max-width: 690px; color: #d7e2e8; font-size: clamp(17px,2vw,21px); line-height: 1.65; }
.public-hero .eyebrow { color: #65d5ae; }
.public-hero-actions { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.public-hero-actions a { color: white; font-weight: 800; text-decoration: none; }
.public-hero-actions .public-cta { background: #20a47c; box-shadow: 0 10px 24px #06192555; }
.public-hero aside { padding: 28px; border: 1px solid #ffffff30; border-radius: 18px; background: #ffffff10; backdrop-filter: blur(8px); }
.public-hero aside strong { font-size: 20px; }
.public-hero aside ul { margin: 20px 0 0; padding-left: 20px; color: #dce8ed; line-height: 2; }
.public-section { padding: clamp(70px,10vw,120px) clamp(8px,4vw,44px); }
.public-section h2, .public-contact h2 { max-width: 800px; margin: 10px 0 18px; color: #11283d; font-size: clamp(32px,4vw,50px); line-height: 1.1; letter-spacing: -.025em; }
.public-section > p, .public-section > div > p { max-width: 760px; color: #667787; font-size: 17px; line-height: 1.65; }
.public-feature-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.public-feature-grid article, .knowledge-grid article, .license-grid article { padding: 25px; border: 1px solid #dce5eb; border-radius: 17px; background: white; box-shadow: 0 10px 30px #10283d0b; }
.public-feature-grid article > span { color: #1b9572; font-size: 13px; font-weight: 900; }
.public-feature-grid h3, .license-grid h3 { margin: 22px 0 10px; font-size: 22px; }
.public-feature-grid p, .knowledge-grid p, .license-grid p { color: #6a7887; line-height: 1.55; }
.knowledge-section { margin-inline: calc(50% - 50vw); padding-inline: max(calc((100vw - 1100px)/2),24px); background: #eef4f6; }
.knowledge-grid, .license-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.knowledge-grid { grid-template-columns: repeat(4,1fr); }
.knowledge-grid strong { color: #183044; font-size: 19px; }
.knowledge-grid span { color: #168567; font-size: 13px; font-weight: 800; }
.license-highlight { border: 2px solid #209a78 !important; transform: translateY(-10px); }
.license-highlight > span { color: #198263; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.license-grid strong { color: #168567; }
.license-note { margin-top: 25px; font-size: 14px !important; }
.public-contact { margin-bottom: 30px; padding: clamp(34px,6vw,65px); border-radius: 22px; background: #11283d; color: white; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.public-contact h2 { color: white; }
.public-contact p { margin: 8px 0; color: #cbd7df; }
.public-contact a { flex: 0 0 auto; padding: 14px 18px; border-radius: 10px; background: #1d9b76; color: white; font-weight: 800; text-decoration: none; }
.auth-back { display: block; margin-top: 18px; color: #426378; font-size: 14px; text-align: center; }
.platform-page { width: min(1180px,100%); }
.platform-page > .eyebrow { display: block; margin-top: 26px; }
.platform-page td small { display: block; margin-top: 4px; color: #7b8995; }
.organization-license-form { min-width: 480px; display: grid; grid-template-columns: 1fr 1fr 90px auto; align-items: end; gap: 8px; }
.organization-license-form select, .organization-license-form input { min-width: 0; }
.license-status { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #e7edf1; color: #445b6c; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.license-status.active { background: #ddf4eb; color: #147456; }
.license-status.trial { background: #e7efff; color: #315d9d; }
.license-status.suspended { background: #ffe4e4; color: #9a3030; }
.platform-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.platform-form-grid .settings-card { height: fit-content; }
.planning-desk { margin-bottom: 16px; padding: 20px; border-radius: 16px; background: linear-gradient(135deg,#11283d,#194760); color: white; display: grid; grid-template-columns: minmax(250px,1fr) minmax(520px,680px); grid-template-rows: auto auto auto; align-items: start; gap: 14px 20px; }
.planning-desk[hidden] { display: none; }
.planning-desk h2 { margin: 3px 0; color: white; }
.planning-desk p { margin: 0; color: #d3e0e7; line-height: 1.4; }
.planning-desk-intro,.planning-stats,.planning-desk-actions { grid-column: 1; }.planning-stats { display: grid; grid-template-columns: repeat(3,minmax(105px,1fr)); gap: 8px; }
.sync-issues-panel { grid-column: 1/-1; padding: 16px; border: 1px solid #ffffff24; border-radius: 13px; background: #081d2b66; }
.sync-issues-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sync-issues-head h3 { margin: 0 0 3px; color: white; }
.sync-issues-head p { font-size: 13px; }
.sync-all-ok { margin-top: 12px !important; padding: 11px 13px; border-radius: 9px; background: #38a47b22; color: #8be2c1 !important; font-weight: 800; }
.sync-retry-all { flex: 0 0 auto; border-color: #fff; background: white; color: #173b52; }
.sync-issue-list { margin-top: 12px; display: grid; gap: 9px; }
.sync-issue-list article { padding: 12px 13px; border-left: 4px solid #ef6b62; border-radius: 9px; background: white; color: #243b4b; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 13px; }
.sync-issue-list article > div { min-width: 0; display: grid; gap: 3px; }
.sync-issue-list span { color: #687988; font-size: 12px; }
.sync-issue-list p { color: #9b3434; font-size: 12px; overflow-wrap: anywhere; }
.sync-issue-list button { color: #8f2e2e; border-color: #dda09b; background: #fff4f3; }
@media (max-width: 600px) { .sync-issues-head { align-items: stretch; flex-direction: column; }.sync-issue-list article { grid-template-columns: 1fr; }.sync-issue-list button,.sync-retry-all { width: 100%; } }
.planning-stat { min-height: 72px; padding: 11px; border-radius: 10px; background: #ffffff14; display: flex; flex-direction: column; justify-content: center; }
.planning-stat strong { font-size: 18px; }
.planning-stat span { color: #cbdbe3; font-size: 11px; }
.planning-stat.warning { background: #8a641f99; }.planning-stat.danger { background: #842f3d99; }
.planning-desk-actions { display: flex; flex-wrap: wrap; gap: 8px; }.planning-desk-actions button { white-space: nowrap; }
.planning-queues { grid-column: 2; grid-row: 1/4; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.planning-order-queue { min-width: 0; max-height: 390px; padding: 16px 8px 16px 16px; border-radius: 12px; background: #f5f8fa; color: #193247; display: flex; flex-direction: column; overflow: hidden; border: 2px solid transparent; transition: border-color .15s,background .15s; }.planning-order-queue h3 { margin: 0 0 4px; }.planning-order-queue > div:first-child p { margin: 0 8px 12px 0; color: #647584; font-size: 13px; }.on-hold-queue { background: #fff8e8; }.on-hold-queue.drag-over { border-color: #d69627; background: #fff0c8; }
.planning-orders { min-height: 0; padding-right: 8px; display: grid; grid-template-columns: 1fr; align-content: start; gap: 9px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }.planning-order-card { padding: 10px; border: 1px solid #d7e2e8; border-radius: 10px; background: white; display: grid; gap: 8px; }.planning-order-card.dragging { opacity: .45; }.planning-order-card.held { border-color: #efd6a4; }.planning-order-card > div:first-child { min-width: 0; display: grid; gap: 2px; }.planning-order-card span,.planning-order-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.planning-order-card span { color: #334f62; }.planning-order-card small { color: #71818d; }.planning-order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }.planning-order-card.held .planning-order-actions { grid-template-columns: 1fr; }.planning-order-actions button { padding: 7px; font-size: 12px; }.hold-order-button { color: #895d13; border-color: #dab76f; background: #fff8e7; }.queue-count { display: inline-flex; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; align-items: center; justify-content: center; background: #183b52; color: white; font-size: 12px; vertical-align: 2px; }.on-hold-queue .queue-count { background: #b47716; }.planning-orders-empty { margin: 0; color: #667985; }
.concept-sync-option { display: grid !important; grid-template-columns: auto 1fr; align-items: center; justify-content: start; }.concept-sync-option input { width: auto; }.concept-sync-option small { grid-column: 2; }
.planner-mode-tile { border-color: #38a989; }
@media (max-width: 850px) { .platform-form-grid { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .planning-desk { grid-template-columns: 1fr; }.planning-stats { grid-template-columns: repeat(2,1fr); }.planning-queues { grid-column: 1; grid-row: auto; }.planning-order-queue { max-height: 360px; }.planning-desk-actions { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .planning-queues { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 6px; }.planning-order-queue { min-height: 250px; padding: 10px 4px 10px 8px; }.planning-order-queue h3 { font-size: 14px; }.planning-order-queue > div:first-child p { font-size: 11px; }.planning-order-card { padding: 8px; }.planning-order-actions { grid-template-columns: 1fr; }.planning-order-card span,.planning-order-card small { font-size: 11px; }.queue-count { min-width: 20px; height: 20px; padding: 0 5px; } }
.planning-queues { display: flex !important; align-items: stretch; }
.planning-queues > .planning-order-queue { flex: 1 1 0; width: 0; min-width: 0; }
.planning-desk-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
.planning-desk-actions button { width: 100%; min-width: 0; min-height: 48px; padding-inline: 10px; white-space: normal; line-height: 1.2; }
@media (max-width: 480px) { .planning-desk-actions button { font-size: 12px; padding-inline: 6px; } }
.customer-mode-switch { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.customer-mode-switch legend { margin-bottom: 7px; font-weight: 700; }
.customer-mode-switch label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.customer-mode-switch input { width: auto; margin: 0; }
.new-customer-fields[hidden] { display: none; }
.customer-search-label[hidden] { display: none !important; }
.installation-brief-fields { margin: 0; padding: 15px; border: 1px solid #b9d8cf; border-radius: 11px; background: #f0faf7; display: grid; gap: 12px; }
.multi-day-fields { margin: 0; padding: 15px; border: 1px solid #b9d4df; border-radius: 11px; background: #f1f8fb; display: grid; gap: 12px; }
.multi-day-fields > label:first-child { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.multi-day-fields > label:first-child input { width: auto; margin: 0; }
.multi-day-fields > label:last-child { display: grid; gap: 6px; }
.multi-day-fields input[type="number"] { max-width: 140px; }
.installation-brief-fields[hidden],.installation-brief-fields label[hidden] { display: none; }
.installation-brief-fields label { display: flex; align-items: center; gap: 8px; }
.installation-brief-fields label:first-child input { width: auto; }
.installation-brief-fields #advisorField { display: grid; align-items: stretch; }
.installation-brief-tile { border-color: #64b49c; }
.installation-list { display: grid; gap: 16px; margin-top: 24px; }
.installation-card { padding: 20px; border: 1px solid #d6e1e7; border-radius: 14px; background: white; box-shadow: 0 6px 22px #10283d0d; display: grid; gap: 14px; }
.installation-card h2 { margin: 3px 0; }
.installation-card p { margin: 0; }
.installation-card label { display: grid; gap: 7px; font-weight: 750; }
.quote-code-button { width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; color: #173f58; font: inherit; font-weight: 800; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.card-quote-button { justify-self: start; max-width: calc(100% - 4px); padding: 2px 0; border: 0; background: transparent; color: #155b72; font-size: 11px; font-weight: 800; text-align: left; text-decoration: underline; cursor: pointer; }
.inline-quote-button { justify-self: start; margin-top: -6px; border-color: #9fc5d3; background: #eef7fa; color: #155b72; font-weight: 750; }
.quote-detail-dialog { width: min(720px,calc(100vw - 24px)); overflow: hidden; background: #f4f7f9; }
.quote-detail-dialog .work-order-head { margin: 0; padding: 25px 28px 23px; border: 0; background: linear-gradient(135deg,#102c41,#17637a); color: white; }
.quote-detail-dialog .work-order-head .eyebrow { color: #8ee2cf; }
.quote-detail-dialog .work-order-head h2 { margin: 4px 0 7px; color: white; font-size: clamp(25px,5vw,34px); }
.quote-detail-dialog .work-order-head p { max-width: 560px; color: #d8e7ed; line-height: 1.45; }
.quote-detail-dialog .work-order-head button { width: 38px; height: 38px; padding: 0; border-color: #ffffff42; background: #ffffff12; color: white; line-height: 1; }
.quote-detail-dialog .work-order-head button:hover { background: #ffffff25; }
.quote-detail-content { max-height: min(62vh,650px); padding: 24px 28px 8px; overflow-y: auto; display: grid; gap: 14px; counter-reset: quote-lines; scrollbar-gutter: stable; }
.quote-detail-content h3 { margin: 12px 0 2px; padding-top: 18px; border-top: 1px solid #d8e1e7; color: #19364a; font-size: 15px; letter-spacing: .025em; text-transform: uppercase; }
.quote-detail-address,.quote-detail-description { position: relative; margin: 0; padding: 15px 17px 15px 48px; border: 1px solid #d6e1e7; border-radius: 12px; background: white; color: #314c5e; white-space: pre-wrap; line-height: 1.55; box-shadow: 0 3px 12px #10283d0a; }
.quote-detail-address::before,.quote-detail-description::before { position: absolute; top: 14px; left: 17px; font-size: 20px; }
.quote-detail-address::before { content: "⌖"; color: #1884a2; }
.quote-detail-description::before { content: "≡"; color: #278d73; font-weight: 900; }
.quote-line { counter-increment: quote-lines; position: relative; min-height: 70px; padding: 15px 16px 15px 58px; border: 1px solid #d5e0e6; border-radius: 12px; background: white; box-shadow: 0 4px 14px #10283d0c; }
.quote-line::before { content: counter(quote-lines); position: absolute; top: 15px; left: 16px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #e1f3f7; color: #14677d; font-size: 12px; font-weight: 850; }
.quote-line > strong { display: block; color: #173247; font-size: 14px; line-height: 1.35; }
.quote-line p strong,.quote-detail-description strong { display: inline; color: inherit; font-size: inherit; font-weight: 800; }
.quote-line p { margin: 7px 0 0; color: #536978; white-space: pre-wrap; line-height: 1.5; }
.quote-detail-dialog > .work-order-actions { margin: 0; padding: 17px 28px 22px; border-top: 1px solid #dbe3e8; background: white; }
.quote-detail-dialog > .work-order-actions button { min-width: 130px; border-color: #173e55; background: #173e55; color: white; }
@media (max-width: 560px) { .quote-detail-dialog .work-order-head { padding: 20px 18px; }.quote-detail-content { padding: 18px 16px 6px; }.quote-detail-dialog > .work-order-actions { padding: 14px 16px 18px; }.quote-detail-address,.quote-detail-description { padding-left: 44px; }.quote-line { padding-left: 54px; } }
@media (max-width: 480px) { .work-order-ready-actions { grid-template-columns: 1fr; } }
.planning-order-card.held { cursor: pointer; }
.planning-order-card.held:hover,.planning-order-card.held:focus-visible { border-color: #d69a2e; box-shadow: 0 5px 15px #9b6c1620; outline: none; }
.planning-order-card.available { cursor: pointer; }
.planning-order-card.available:hover,.planning-order-card.available:focus-visible { border-color: #2987a4; box-shadow: 0 5px 15px #155b7220; outline: none; }
.quote-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.quote-detail-actions #closeQuoteDetailBottom { margin-left: auto; }
@media (max-width: 520px) { .quote-detail-actions button { flex: 1 1 100%; }.quote-detail-actions #closeQuoteDetailBottom { margin-left: 0; } }
.hold-detail-dialog { width: min(620px,calc(100vw - 24px)); overflow: hidden; }
.hold-detail-dialog .work-order-head { margin: 0; padding: 24px 26px 20px; background: #fff7e7; border-color: #ead7ae; }
.hold-detail-content { margin: 22px 26px 8px; padding: 18px; border: 1px solid #ead7ae; border-radius: 12px; background: #fffaf0; }
.hold-detail-content span { color: #9a6914; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hold-detail-content p { margin: 9px 0 0; color: #3d4850; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.hold-detail-content > label { display: block; margin-bottom: 8px; color: #9a6914; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hold-detail-content > textarea { width: 100%; min-height: 125px; padding: 12px 14px; border: 1px solid #d9bd82; border-radius: 9px; background: white; color: #263845; font: inherit; line-height: 1.5; resize: vertical; }
.hold-detail-content h3 { margin: 20px 0 10px; color: #293f4d; font-size: 14px; }
.hold-detail-history { max-height: 230px; overflow-y: auto; display: grid; gap: 9px; }
.hold-detail-history article { padding: 11px 13px; border-left: 3px solid #d9a344; border-radius: 7px; background: white; }
.hold-detail-history strong { color: #825a16; font-size: 11px; }
.hold-detail-history article p { margin-top: 5px; font-size: 13px; }
.hold-detail-dialog > .work-order-actions { margin: 0; padding: 16px 26px 24px; }
@media (max-width: 520px) { .hold-detail-dialog .work-order-head { padding: 20px 18px; }.hold-detail-content { margin: 18px 16px 6px; }.hold-detail-dialog > .work-order-actions { padding: 14px 16px 20px; }.hold-detail-dialog > .work-order-actions button { width: 100%; } }
@media (max-width: 900px) {
  .public-nav > div > a:not(.public-login) { display: none; }
  .public-hero { min-height: auto; grid-template-columns: 1fr; }
  .public-feature-grid, .knowledge-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .public-nav { min-height: 66px; }
  .public-nav img { width: 190px; max-width: 52vw; }
  .public-nav .public-login { padding: 10px 13px; font-size: 14px; }
  .public-hero { margin-inline: -8px; padding: 45px 24px; border-radius: 18px; }
  .public-hero h1 { font-size: 40px; }
  .public-feature-grid, .knowledge-grid, .license-grid { grid-template-columns: 1fr; }
  .license-highlight { transform: none; }
  .public-contact { align-items: flex-start; flex-direction: column; }
}
.backup-tile { border-color: #79b9ad; background: linear-gradient(145deg,#fff,#eefaf7); }
.backup-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.backup-heading h1 { margin-bottom: 5px; }
.backup-heading form { flex: 0 0 auto; }
.backup-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.backup-summary article { padding: 20px; border: 1px solid #d4e2e4; border-radius: 14px; background: white; box-shadow: 0 5px 18px #10283d0b; }
.backup-summary strong { display: block; color: #12394e; font-size: 25px; }
.backup-summary span { color: #60727e; font-size: 13px; }
.backup-notice { margin-bottom: 20px; border-left: 4px solid #24967c; }
.backup-page td small { display: block; margin-top: 4px; color: #70818b; }
.backup-page code { font-size: 12px; }
@media (max-width: 650px) { .backup-heading { align-items: stretch; flex-direction: column; }.backup-heading button { width: 100%; }.backup-summary { grid-template-columns: 1fr; } }
