﻿:root {
    font-family:"Segoe UI",system-ui,sans-serif;
    color:#263a34;
    background:#f5f6f2;
    font-synthesis:none;
    --green:#174c42;
    --muted:#75817a;
    --line:#e3e8e1
}
* {
    box-sizing:border-box
}
body {
    margin:0
}
a {
    color:var(--green)
}
button,input,select,textarea {
    font:inherit
}
button,a,input,select,textarea {
    -webkit-tap-highlight-color:transparent
}
button {
    cursor:pointer;
    background:white;
    border:1px solid #dce2da;
    border-radius:8px;
    padding:10px 16px;
    color:inherit;
    min-height:42px
}
button:hover {
    background:#edf2eb
}
button:disabled {
    opacity:.55;
    cursor:wait
}
button.primary {
    background:var(--green);
    color:white;
    border-color:var(--green);
    font-weight:600;
    box-shadow:0 3px 6px #174c4210
}
button.primary:hover {
    background:#246354
}
button.subtle {
    border-color:transparent;
    background:transparent;
    color:var(--muted)
}
button.subtle:hover {
    background:#edf2eb;
    color:var(--green)
}
button:focus-visible,a:focus-visible {
    outline:3px solid #d2a94e;
    outline-offset:3px
}
input,select,textarea {
    width:100%;
    border:1px solid #dce2da;
    border-radius:7px;
    background:white;
    padding:11px 12px;
    min-height:44px;
    color:inherit
}
input:focus,select:focus,textarea:focus {
    outline:2px solid #418873;
    outline-offset:1px
}
textarea {
    resize:vertical
}
label {
    display:block;
    font-size:13px;
    font-weight:600
}
form>label {
    margin:18px 0 7px
}
h1,h2,h3,p {
    margin-top:0
}
h1 {
    font-size:36px;
    font-weight:650;
    letter-spacing:-1.3px;
    margin-bottom:12px;
    line-height:1.15
}
h2 {
    font-size:17px;
    font-weight:650;
    margin:0
}
h3 {
    font-size:18px
}
p {
    line-height:1.6
}
.muted {
    color:var(--muted);
    font-size:14px
}
.eyebrow {
    font-size:10px;
    font-weight:700;
    letter-spacing:2px;
    color:#80907c;
    margin-bottom:14px
}
.app-shell {
    display:flex;
    min-height:100dvh
}
.sidebar {
    width:236px;
    flex-shrink:0;
    background:#fcfcf9;
    border-right:1px solid var(--line);
    padding:36px 22px;
    position:fixed;
    inset:0 auto 0 0;
    display:flex;
    flex-direction:column
}
.brand {
    text-decoration:none;
    font-size:27px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:10px;
    letter-spacing:-1px
}
.brand-mark {
    display:inline-grid;
    place-items:center;
    width:35px;
    height:35px;
    border-radius:11px;
    background:var(--green);
    color:#f9f9ef;
    font-size:23px
}
.brand-dot {
    color:#bca76b;
    margin-left:-9px
}
.sidebar-caption {
    color:#9aA397;
    font-size:9px;
    letter-spacing:1.7px;
    font-weight:700;
    margin-top:53px;
    margin-bottom:16px
}
.sidebar nav {
    display:grid;
    gap:8px
}
.sidebar nav a {
    display:flex;
    gap:12px;
    align-items:center;
    text-decoration:none;
    padding:13px 14px;
    border-radius:8px;
    color:#788078;
    font-size:14px;
    font-weight:550
}
.sidebar nav a span {
    font-size:22px;
    width:23px;
    line-height:1
}
.sidebar nav a.active {
    color:var(--green);
    background:#e8efe5
}
.sidebar-bottom {
    margin-top:auto;
    padding-top:36px
}
.connection-label {
    font-size:11px;
    color:#8b948b;
    display:flex;
    gap:7px;
    align-items:center
}
.connection-label i {
    width:6px;
    height:6px;
    border-radius:50%;
    background:#77a283
}
.logout {
    margin-top:14px;
    padding:0;
    border:none;
    background:none;
    color:#7f897f;
    font-size:12px
}
.workspace {
    margin-left:236px;
    min-width:0;
    flex:1
}
.topbar {
    height:82px;
    display:flex;
    align-items:center;
    gap:18px;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    padding:0 44px;
    font-size:12px;
    color:#8a9388
}
.topbar>span:first-child {
    margin-right:auto
}
.avatar {
    background:#e4e9df;
    color:#64725e;
    border:3px solid #fff;
    border-radius:50%;
    width:35px;
    height:35px;
    display:grid;
    place-items:center;
    font-size:10px;
    font-weight:700
}
.workspace main {
    max-width:1450px;
    margin:auto;
    padding:49px 44px 32px
}
.page-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    margin-bottom:28px
}
.page-heading p.muted {
    margin-bottom:0
}
.page-heading>.primary {
    white-space:nowrap
}
.stats {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-bottom:34px
}
.stats>div {
    background:#fcfcfa;
    border:1px solid var(--line);
    border-radius:12px;
    padding:21px 24px;
    position:relative
}
.stats span {
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:10px
}
.stats strong {
    font-size:30px;
    font-weight:550;
    letter-spacing:-1px
}
.stat-dot {
    position:absolute;
    right:23px;
    top:25px;
    width:8px;
    height:8px;
    border-radius:50%
}
.stat-dot.open {
    background:#a3ae9c
}
.stat-dot.progress {
    background:#d1ae5c
}
.stat-dot.done {
    background:#639580
}
.list-panel {
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden
}
.list-heading {
    padding:24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px
}
.count {
    font-size:10px;
    margin-left:7px;
    vertical-align:middle;
    padding:4px 8px;
    border-radius:6px;
    background:#edf1e9;
    color:#7d8a76
}
.filters {
    display:flex;
    gap:10px;
    padding:0 24px 18px;
    align-items:center
}
.filters label {
    flex:1;
    min-width:0
}
.filters .search {
    flex:2
}
.filters input,.filters select {
    font-size:12px;
    background:#fdfefc
}
.sort-note {
    font-size:10px;
    color:#949c90;
    padding:0 24px 15px;
    margin:0
}
.sort-note span {
    padding:0 9px;
    color:#aab2a4
}
.task-column-head,.task-row {
    display:grid;
    grid-template-columns:minmax(160px,1fr) 145px 85px 115px 75px;
    align-items:center;
    gap:14px
}
.task-column-head {
    font-size:9px;
    font-weight:650;
    letter-spacing:1.3px;
    color:#909a8b;
    background:#fafbf8;
    padding:13px 24px;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line)
}
.task-row {
    padding:22px 24px;
    border-bottom:1px solid #edf0e9
}
.task-row:last-child {
    border-bottom:0
}
.task-main {
    display:flex;
    gap:13px;
    min-width:0;
    align-items:flex-start
}
.task-main>div {
    min-width:0
}
.task-symbol {
    color:#9da995;
    font-size:24px;
    line-height:1.1
}
.task-symbol.complete {
    color:#3c866e;
    font-size:20px
}
.task-title {
    padding:0;
    min-height:0;
    background:none;
    border:0;
    border-radius:0;
    text-align:left;
    font-size:14px;
    font-weight:600;
    overflow-wrap:anywhere
}
.task-title:hover {
    background:none;
    color:#3d866f
}
.task-description {
    font-size:12px;
    color:#869080;
    margin:5px 0 0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:480px
}
.task-meta {
    display:flex;
    flex-wrap:wrap;
    gap:7px 14px;
    font-size:10px;
    color:#8a9483;
    margin-top:9px
}
.task-meta .overdue {
    color:#ad6448
}
.status-select,.priority-select {
    font-size:11px;
    border-color:transparent;
    min-height:36px;
    padding:7px;
    max-width:100%
}
.status-select.open {
    color:#7e8872;
    background:#f0f3eb
}
.status-select.inprogress {
    color:#a38335;
    background:#faf5e6
}
.status-select.done {
    color:#3a7e65;
    background:#eaf3ec
}
.priority-select {
    font-weight:600;
    color:#7c765d;
    background:#fafaf6
}
.row-actions {
    display:flex;
    justify-content:flex-end;
    gap:3px
}
.icon-button {
    font-size:21px;
    border-color:transparent;
    background:transparent;
    width:36px;
    min-height:36px;
    padding:2px;
    color:#84917b
}
.danger:hover {
    color:#ae4f39;
    background:#fcf0ec
}
.empty-state {
    padding:54px 24px 62px;
    text-align:center;
    color:#8c9586
}
.empty-state>span {
    font-size:33px;
    display:block;
    margin-bottom:18px;
    color:#9aae8a
}
.empty-state h3 {
    font-size:16px;
    color:#5b6d54;
    margin-bottom:6px
}
.empty-state p {
    font-size:13px
}
.workspace footer {
    font-size:10px;
    text-align:center;
    padding:12px 20px 32px;
    color:#a0a795;
    letter-spacing:.3px
}
.error,.success {
    margin:12px 24px;
    padding:12px 16px;
    border-radius:7px;
    font-size:13px
}
.error {
    color:#9b3e2e;
    background:#fceee8
}
.success {
    color:#376c50;
    background:#edf5e9
}
.editor .error {
    margin:12px 0
}
.modal-backdrop {
    position:fixed;
    inset:0;
    background:#173c3460;
    backdrop-filter:blur(3px);
    z-index:20;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px
}
.editor {
    width:100%;
    max-width:600px;
    max-height:90dvh;
    overflow:auto;
    background:#fcfdf9;
    border-radius:16px;
    padding:28px;
    box-shadow:0 20px 80px #173c3430
}
.editor-heading {
    display:flex;
    justify-content:space-between;
    align-items:center
}
.editor-heading h2 {
    font-size:25px;
    letter-spacing:-.6px
}
.editor-heading .eyebrow {
    margin-bottom:7px
}
.form-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-top:18px
}
.form-grid label {
    margin-bottom:7px
}
.form-actions {
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:26px
}
.customer-grid {
    padding:0 24px 24px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:18px
}
.customer-card {
    border:1px solid var(--line);
    border-radius:10px;
    padding:22px;
    min-width:0
}
.customer-card-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px
}
.customer-initial {
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    background:#edf1e5;
    border-radius:10px;
    color:#73835f;
    font-size:18px
}
.tag {
    font-size:10px;
    color:#92997f;
    background:#f4f4e9;
    padding:5px 8px;
    border-radius:5px
}
.customer-card h3 {
    margin-bottom:12px;
    overflow-wrap:anywhere
}
.customer-card p {
    font-size:12px;
    margin-bottom:7px;
    overflow-wrap:anywhere
}
.customer-notes {
    white-space:pre-wrap;
    color:#7a8571
}
.customer-actions {
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    margin-top:20px
}
.customer-actions button {
    font-size:11px;
    padding:7px 10px
}
.checkbox-label {
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:400;
    white-space:nowrap
}
.checkbox-label input {
    width:18px;
    min-height:18px
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap
}
.login-body {
    min-height:100dvh;
    display:grid;
    place-items:center;
    padding:24px;
    background:radial-gradient(ellipse at 25% 15%,#e4ecdd,transparent 60%),#f5f6f2
}
.login-panel {
    max-width:440px;
    width:100%;
    background:#fff;
    padding:40px;
    border-radius:18px;
    border:1px solid var(--line);
    box-shadow:0 15px 70px #174c4208
}
.login-panel>.brand-mark {
    margin-bottom:32px
}
.login-panel h1 {
    font-size:29px
}
.login-panel .eyebrow {
    font-size:9px
}
.login-panel form .primary {
    width:100%;
    margin-top:24px;
    display:flex;
    justify-content:space-between
}
.login-panel .error {
    margin:10px 0
}
.login-note {
    text-align:center;
    font-size:11px;
    color:#98a18f;
    margin:24px 0 0
}
#blazor-error-ui {
    display:none;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:100;
    background:#fceee8;
    color:#9b3e2e;
    padding:20px
}
@media(min-width:1600px) {
    .workspace main {
        padding-top:65px
    }
}
@media(max-width:1150px) {
    .sidebar {
        width:200px;
        padding:30px 16px
    }
    .workspace {
        margin-left:200px
    }
    .workspace main {
        padding:32px 24px
    }
    .topbar {
        padding:0 24px
    }
    .filters {
        flex-wrap:wrap
    }
    .filters .search {
        flex-basis:100%
    }
    .task-column-head,.task-row {
        grid-template-columns:minmax(130px,1fr) 140px 80px 70px;
        gap:8px
    }
    .task-description {
        max-width:200px
    }
}
@media(max-width:760px) {
    .app-shell {
        display:block
    }
    .sidebar {
        position:static;
        width:100%;
        padding:16px 18px 0;
        border-right:0;
        border-bottom:1px solid var(--line);
        display:block
    }
    .brand {
        font-size:24px
    }
    .brand-mark {
        width:30px;
        height:30px;
        font-size:20px
    }
    .sidebar-caption,.sidebar-bottom .connection-label {
        display:none
    }
    .sidebar nav {
        display:flex;
        margin-top:18px;
        gap:6px
    }
    .sidebar nav a {
        flex:1;
        justify-content:center;
        font-size:12px;
        padding:12px 7px;
        border-radius:7px 7px 0 0;
        gap:7px
    }
    .sidebar nav a span {
        font-size:18px;
        width:auto
    }
    .sidebar-bottom {
        position:absolute;
        right:18px;
        top:14px;
        padding:0
    }
    .logout {
        font-size:11px;
        margin:0
    }
    .workspace {
        margin:0
    }
    .topbar {
        height:49px;
        padding:0 18px;
        font-size:10px
    }
    .topbar .avatar {
        width:26px;
        height:26px;
        font-size:8px
    }
    .topbar button {
        font-size:10px;
        min-height:28px;
        padding:5px 8px
    }
    .workspace main {
        padding:30px 16px 20px
    }
    .page-heading {
        align-items:flex-start;
        flex-wrap:wrap;
        gap:20px;
        margin-bottom:22px
    }
    h1 {
        font-size:30px
    }
    .page-heading .muted {
        font-size:12px
    }
    .eyebrow {
        font-size:9px
    }
    .page-heading>.primary {
        font-size:12px;
        padding:11px 15px
    }
    .stats {
        gap:8px;
        margin-bottom:23px
    }
    .stats>div {
        padding:16px 12px;
        border-radius:9px
    }
    .stats span {
        font-size:10px
    }
    .stats strong {
        font-size:25px
    }
    .stat-dot {
        right:12px;
        top:18px;
        width:6px;
        height:6px
    }
    .list-heading {
        padding:17px 15px
    }
    .list-heading h2 {
        font-size:15px
    }
    .list-heading .subtle {
        font-size:10px;
        padding:5px
    }
    .filters {
        padding:0 15px 14px;
        gap:8px
    }
    .filters label {
        flex:1 1 40%
    }
    .filters .search {
        flex:1 1 100%
    }
    .filters input,.filters select {
        font-size:11px;
        padding:9px 7px
    }
    .sort-note {
        padding:0 15px 14px
    }
    .task-column-head {
        display:none
    }
    .task-row {
        margin:0;
        padding:19px 15px;
        grid-template-columns:1fr 1fr 72px;
        gap:13px 10px;
        border-top:1px solid #edf0e9;
        border-bottom:0
    }
    .task-main {
        grid-column:1/-1;
        gap:10px
    }
    .task-title {
        font-size:14px
    }
    .task-description {
        max-width:65vw
    }
    .task-meta {
        font-size:10px
    }
    .inline-field {
        padding-left:0
    }
    .status-select,.priority-select {
        min-height:38px;
        font-size:11px
    }
    .row-actions {
        align-self:end
    }
    .customer-grid {
        grid-template-columns:1fr;
        padding:0 15px 15px
    }
    .modal-backdrop {
        padding:12px
    }
    .editor {
        padding:22px 18px;
        max-height:94dvh
    }
    .form-grid {
        gap:12px
    }
    .form-actions button {
        font-size:12px
    }
    .login-panel {
        padding:28px
    }
    .customer-actions button {
        min-height:42px
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior:auto!important
    }
}
dialog.editor {
    border:0;
    margin:auto
}
dialog.editor::backdrop {
    background:#173c3460;
    backdrop-filter:blur(3px)
}


.active-timer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:20px 24px;
    margin-bottom:24px;
    border:1px solid #bfd4c3;
    background:#eaf3e8;
    border-radius:12px;
}
.active-timer > div {
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
}
.active-timer strong {
    overflow-wrap:anywhere;
}
.active-timer .eyebrow {
    margin:0;
}
.active-timer span:not(.eyebrow) {
    font-size:12px;
    color:#52715d;
}
.time-controls {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
}
.elapsed-time {
    font-variant-numeric:tabular-nums;
    font-size:13px;
    white-space:nowrap;
}
.timer-start,.timer-stop {
    font-size:11px;
    padding:6px 12px;
    min-height:36px;
    white-space:nowrap;
}
.timer-start {
    color:var(--green);
    background:#eff5eb;
    border-color:#dce8d6;
}
.timer-stop {
    color:#8b4f35;
    background:#fff4e9;
    border-color:#e9d4bd;
}
.report-total {
    font-size:26px;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}
.report-filters label {
    max-width:300px;
}
.report-filters input,.report-filters select {
    margin-top:8px;
}
.report-customer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px 24px;
    background:#f0f4eb;
    border-top:1px solid var(--line);
}
.report-customer h3 {
    font-size:14px;
    margin:0;
}
.report-customer strong {
    font-size:13px;
    font-variant-numeric:tabular-nums;
}
.report-row {
    padding:20px 24px;
    border-bottom:1px solid var(--line);
}
.report-task-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}
.report-task-heading h3 {
    font-size:14px;
    margin:0;
    overflow-wrap:anywhere;
}
.report-row details {
    font-size:12px;
    margin-top:12px;
    color:var(--muted);
}
.report-row summary {
    cursor:pointer;
    padding:8px 0;
}
.booking-list {
    list-style:none;
    padding:0;
    margin:8px 0 0;
}
.booking-list li {
    display:flex;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
    padding:10px 0;
    border-top:1px solid var(--line);
    font-variant-numeric:tabular-nums;
}
@media(max-width:1150px) and (min-width:1051px) {
    .task-column-head,.task-row {
        grid-template-columns:minmax(140px,1fr) 135px 75px 105px 70px;
    }
}
@media(max-width:1050px) {
    .task-column-head {
        display:none;
    }
    .task-row {
        grid-template-columns:1fr 1fr 72px;
    }
    .task-main {
        grid-column:1/-1;
    }
    .time-controls {
        grid-column:1/3;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
    }
}
@media(max-width:760px) {
    .active-timer {
        padding:16px;
        gap:12px;
    }
    .report-total {
        font-size:22px;
    }
    .report-row,.report-customer {
        padding:18px 15px;
    }
}

.report-actions {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.pdf-download {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 16px;
    border-radius:8px;
    border:1px solid var(--green);
    background:var(--green);
    color:white;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
}
.pdf-download:hover {
    background:#246354;
}

.customer-tracking {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}
.customer-time-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
    gap: 1rem;
    align-items: end;
}
.customer-time-form label {
    display: grid;
    gap: .5rem;
    min-width: 0;
}
.customer-time-form textarea {
    resize: vertical;
    width: 100%;
}
@media (max-width: 700px) {
    .customer-time-form {
        grid-template-columns: 1fr;
    }
}
