:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1b2430; background: #f5f7f8; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #0d5c63; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(1.25rem, calc((100% - 68rem) / 2)); background: #fff; border-bottom: 1px solid #dce3e5; }
.brand { color: #172c3a; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
nav { display: flex; align-items: center; gap: 1rem; }
nav a, .link-button { font: inherit; color: #36474f; text-decoration: none; }
nav form { margin: 0; }
.link-button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.main-nav { gap: .75rem; }
.nav-item { display: inline-flex; align-items: center; justify-content: center; color: #36474f; }
.nav-icon { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon-solid { fill: currentColor; stroke: none; }
.nav-icon-outline { fill: none; stroke: currentColor; }
.nav-item:last-of-type > .nav-icon:not(.nav-icon-solid) { display: none; }
.nav-item:hover, .nav-item:focus-visible { color: #0d5c63; }
.nav-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-shell { width: min(100% - 2.5rem, 68rem); margin: 0 auto; padding: 3rem 0; }
.auth-card { width: min(100%, 30rem); margin: 2rem auto; padding: 2rem; background: #fff; border: 1px solid #dce3e5; border-radius: 1rem; box-shadow: 0 12px 32px rgb(26 54 67 / 8%); }
h1 { margin: 0 0 .75rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
p { line-height: 1.55; }
.eyebrow { margin: 0 0 .5rem; color: #0d5c63; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stack { display: grid; gap: 1rem; margin: 1.5rem 0; }
label { display: grid; gap: .4rem; font-weight: 650; }
input, select, textarea { width: 100%; padding: .75rem; border: 1px solid #aab9bf; border-radius: .5rem; background: #fff; font: inherit; }
.project-select { min-height: 3.5rem; font-size: 1.1rem; }
.project-select option { padding-block: .65rem; }
.checkbox { display: flex; align-items: center; font-weight: 500; }
.checkbox input { width: auto; }
button, .button { display: inline-block; padding: .8rem 1rem; border: 0; border-radius: .5rem; background: #0d5c63; color: #fff; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button-secondary { background: #e6eff0; color: #1b4a50; }
.button-danger { background: #9d2d22; }
.button-danger:hover, .button-danger:focus-visible { background: #76251d; }
.is-loading { cursor: progress; }
.loading-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; gap: .75rem; background: rgb(245 247 248 / 78%); color: #0d5c63; font-weight: 750; backdrop-filter: blur(2px); }
.loading-overlay[hidden] { display: none; }
.loading-spinner { width: 1.5rem; height: 1.5rem; border: .2rem solid rgb(13 92 99 / 22%); border-top-color: #0d5c63; border-radius: 50%; animation: loading-spin .75s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.hero { max-width: 42rem; margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.25rem; background: #fff; border: 1px solid #dce3e5; border-radius: .75rem; }
.card p { margin: 0; color: #52636a; }
.settings-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.settings-card:hover, .settings-card:focus-visible { border-color: #8eb9bd; box-shadow: 0 .35rem 1rem rgb(26 54 67 / 10%); transform: translateY(-1px); }
.settings-logout { margin-top: 1.5rem; }
.alert { margin-bottom: 1.5rem; padding: 1rem; border-radius: .5rem; }
.alert-error { border: 1px solid #e7aaa4; background: #fff1ef; color: #76251d; }
.alert-success { border: 1px solid #90c7a4; background: #ecf9f0; color: #155f31; }
.alert ul { margin-bottom: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.page-heading p { margin-bottom: 0; }
.form-card, .list-card, .empty-state, .details-card, .note-card { background: #fff; border: 1px solid #dce3e5; border-radius: .75rem; }
.form-card { width: min(100%, 42rem); padding: 1.5rem; }
.empty-state, .note-card { padding: 1.5rem; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #e8edef; }
.list-row:last-child { border-bottom: 0; }
.list-row h2, .list-row p { margin: 0; }
.list-row p { color: #52636a; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.form-actions > a { margin-right: auto; }
.field-grid, .details-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.material-trip-row { grid-template-columns: repeat(3, 1fr); }
.details-card { grid-template-columns: repeat(3, 1fr); padding: 1.25rem; }
.details-card span { display: block; color: #52636a; font-size: .9rem; }
.details-card strong { display: block; margin-top: .25rem; }
.complete-form { margin-top: 2rem; }
.active-timer { padding: 1.5rem; border: 2px solid #0d5c63; border-radius: .75rem; background: #effafa; }
.active-timer h2, .active-timer p { margin: 0 0 .5rem; }
.timer-actions, .start-form { display: flex; align-items: end; gap: .75rem; margin-top: 1rem; }
.timer-stop-action { margin-left: .75rem; }
.start-form label { flex: 1; }
.recent-projects { display: grid; gap: .5rem; margin: 1.5rem 0 1rem; }
.recent-projects p { margin: 0; }
.recent-project-list { display: grid; gap: .6rem; }
.recent-project-list form { margin: 0; }
.recent-project-button { width: 100%; text-align: left; }
.history-section { margin-top: 2.5rem; }
.history-section > h2 { margin-bottom: 1rem; }
.list-row h3 { margin: 0; font-size: 1rem; }
.rounding-note { color: #52636a; font-size: .9rem; }
.help-text { margin: -.5rem 0 0; color: #52636a; font-size: .9rem; }
.button-group { display: flex; flex-wrap: wrap; gap: .75rem; }
.tag { padding: .3rem .5rem; border-radius: .35rem; background: #e6eff0; color: #1b4a50; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tag-invoiced { background: #edf0f1; color: #617078; }
.status-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.compact-card { margin-top: 2rem; }
.receipt-details { margin-bottom: 2rem; }
.receipt-ai-note { margin-bottom: 2rem; }
.receipt-ai-note h2 { margin-bottom: .5rem; }
.receipt-ai-note form { margin-top: 1rem; }
.receipt-line { align-items: flex-start; }
.receipt-suggestion { min-width: 15rem; }
.receipt-suggestion summary { color: #0d5c63; cursor: pointer; font-weight: 700; }
.compact-stack { margin: 1rem 0 0; }
.receipt-distribution { padding: 0 1.25rem 1rem; border-bottom: 1px solid #e8edef; background: #fbfcfc; }
.receipt-distribution p { margin: .75rem 0; }
.allocation-list { margin: .75rem 0; padding-left: 1.25rem; color: #52636a; }
.report-filter { margin-bottom: 2rem; }
.report-group { margin-bottom: 1rem; }
.work-log-details { margin-top: 1rem; }
.pagination-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.pagination-status { color: #52636a; font-size: .9rem; }
.today-work-log { margin-top: 2.25rem; }
.today-work-log .list-card { border: 2px solid #bdd6d8; }
.work-log-details summary, .work-log-events summary, .form-card summary { cursor: pointer; color: #0d5c63; font-weight: 650; }
.work-log-row { align-items: flex-start; }
.work-completion-items { margin: .5rem 0 0; padding-left: 1.25rem; color: #52636a; }
.work-completion-items li + li { margin-top: .2rem; }
.invoice-line-description { white-space: pre-line; }
.work-log-invoiced { background: #edf0f1; color: #617078; }
.work-log-warning { color: #8b3920 !important; }
.work-log-events { list-style: none; padding: 0; }
.work-log-events > li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem; border-left: 3px solid #bdd6d8; margin-bottom: .5rem; background: white; }
.work-log-events p { margin: .25rem 0; overflow-wrap: anywhere; }
.button-group form { margin: 0; }
.icon-actions { display: flex; align-items: center; justify-content: flex-end; flex-direction: row; flex-wrap: nowrap; gap: .5rem; width: max-content; }
.icon-actions form { margin: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 0; background: transparent; color: #0d5c63; text-decoration: none; }
.icon-button:hover, .icon-button:focus-visible { background: transparent; color: #083f44; }
.icon-button svg { width: 1.45rem; height: 1.45rem; fill: none !important; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button-gear svg { fill: currentColor !important; stroke: none; }
.icon-button-danger { color: #9d2d22; }
.icon-button-danger:hover, .icon-button-danger:focus-visible { color: #76251d; }
fieldset { border: 1px solid #dce3e5; border-radius: .5rem; min-width: 0; }
.quick-dialog { position: relative; width: min(100% - 2rem, 40rem); padding: 2.5rem; border: 1px solid #dce3e5; border-radius: 1rem; box-shadow: 0 1rem 3rem rgb(26 54 67 / 40%); }
.dialog-loading-indicator { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; gap: .75rem; border-radius: inherit; background: rgb(255 255 255 / 88%); color: #0d5c63; font-weight: 750; backdrop-filter: blur(2px); }
.dialog-loading-indicator[hidden] { display: none; }
.material-trip-dialog { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.quick-dialog::backdrop { background: rgb(5 12 17 / 85%); }
.quick-dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.quick-dialog-heading h2 { margin: 0; }
.quick-dialog-close { padding: .15rem .5rem; background: transparent; color: #36474f; font-size: 1.5rem; line-height: 1; }
.quick-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.address-picker { display: grid; gap: .75rem; }
.address-picker-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.address-picker-actions .help-text { margin: 0; }
.address-map { width: 100%; height: 220px; min-height: 0; border: 1px solid #aab9bf; border-radius: .5rem; overflow: hidden; z-index: 0; }
.driver-fieldset { padding: 0; border: 0; }
.driver-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 28rem); padding: .2rem; border: 1px solid #aab9bf; border-radius: 999px; background: #fff; overflow: hidden; }
.driver-toggle input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.driver-toggle label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1rem; color: #1b4a50; font-weight: 750; text-align: center; cursor: pointer; }
.driver-toggle input:checked + label { color: #fff; }
.driver-toggle input:focus-visible + label { outline: 3px solid rgb(13 92 99 / 35%); outline-offset: -3px; }
.driver-toggle-thumb { position: absolute; top: .2rem; bottom: .2rem; left: .2rem; width: calc(50% - .3rem); border-radius: 999px; background: #0d5c63; transition: left .15s ease; }
.driver-toggle input[value="other"]:checked ~ .driver-toggle-thumb { left: calc(50% + .1rem); }
.project-address-toggle input[value="own"]:checked ~ .driver-toggle-thumb { left: calc(50% + .1rem); }
.material-location-row p { margin: .25rem 0 0; color: #52636a; }
.material-toggle-form { margin: 0; }
.material-toggle { display: inline-flex; align-items: center; gap: .65rem; min-width: 10.5rem; padding: .35rem .5rem .35rem .35rem; border: 0; border-radius: 999px; background: transparent; color: #36474f; font: inherit; font-weight: 750; cursor: pointer; }
.material-toggle:hover, .material-toggle:focus-visible { background: #eef4f4; }
.material-toggle:focus-visible { outline: 3px solid rgb(13 92 99 / 35%); outline-offset: 2px; }
.material-toggle-track { position: relative; flex: 0 0 auto; width: 3.5rem; height: 2rem; border-radius: 999px; background: #bd453c; transition: background-color .15s ease; }
.material-toggle-thumb { position: absolute; top: .2rem; left: .2rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; box-shadow: 0 .15rem .35rem rgb(26 54 67 / 25%); transition: transform .15s ease; }
.material-toggle.is-active .material-toggle-track { background: #2f9e63; }
.material-toggle.is-active .material-toggle-thumb { transform: translateX(1.5rem); }
.material-toggle.is-active .material-toggle-state { color: #1f7a4b; }
.material-toggle.is-inactive .material-toggle-state { color: #a2322b; }
.admin-stats .card { min-height: 7rem; }
.admin-stats strong { display: block; margin: .35rem 0; font-size: 1.5rem; }
.stat-label { color: #52636a; font-size: .9rem; }
.route-batch-list { overflow: hidden; }
.route-batch-row { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); align-items: center; gap: 1rem; }
.route-batch-header { padding: .75rem 1.25rem; color: #52636a; font-size: .85rem; font-weight: 700; }
.route-batch-metric { display: grid; gap: .15rem; }
.route-batch-metric span { color: #52636a; font-size: .8rem; }
.route-batch-metric strong { font-size: 1.1rem; }
@media (max-width: 38rem) { .work-log-row { flex-direction: column; } .work-log-events > li { grid-template-columns: 1fr; gap: .3rem; } .active-timer { padding: 1.75rem 1.5rem; } .timer-actions { gap: .75rem; } .timer-actions form, .timer-actions > .button { width: 100%; } .timer-actions button, .timer-actions > .button { width: 100%; text-align: center; } .timer-stop-action { margin-top: .75rem; margin-left: 0; } .route-batch-header { display: none; } .route-batch-row { grid-template-columns: repeat(2, 1fr); gap: .75rem 1rem; } .route-batch-row > :first-child { grid-column: 1 / -1; } }
@media (max-width: 38rem) { .site-header { align-items: flex-start; flex-direction: column; padding: .85rem 1rem .65rem; } .site-header .main-nav { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; } .site-header .main-nav .nav-item { min-height: 2.75rem; } .site-header .main-nav .nav-icon { width: 1.65rem; height: 1.65rem; } .card-grid, .field-grid, .details-card { grid-template-columns: 1fr; } .material-trip-row { grid-template-columns: 1fr; } .page-shell { padding: 1.5rem 0; } .page-heading, .timer-actions, .start-form, .pagination-nav { align-items: stretch; flex-direction: column; } }
@media (max-width: 38rem) { .material-toggle { min-width: 0; } .material-toggle-state { font-size: .9rem; } }
@supports (padding: env(safe-area-inset-top)) {
    .site-header { padding-top: calc(1rem + env(safe-area-inset-top)); }
    .page-shell { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
}
