.service-filterbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 25px}.service-filters{display:flex;gap:5px;flex-wrap:wrap}.service-filter{border:0;border-radius:7px;background:transparent;color:#68766e;padding:10px 17px;font-size:14px}.service-filter.selected{background:#e4ecdf;color:#28503b;font-weight:500}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.service-card{background:white;border:1px solid #e0e7e2;border-radius:14px;overflow:hidden;transition:border-color .18s,box-shadow .18s}.service-card:hover{border-color:#92b09b;box-shadow:0 7px 25px #123e2010}.service-card-main{display:block;width:100%;border:0;background:none;text-align:left;padding:24px 25px 21px;color:inherit}.service-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.service-symbol{display:grid;place-items:center;width:45px;height:45px;border-radius:11px;color:#2a6248;background:#eaf1e6}.service-symbol svg{width:23px;height:23px}.service-kind{font-size:12px;color:#63776a;background:#f1f5ef;border-radius:5px;padding:5px 9px;font-weight:400}.service-card h2{font-size:18px;line-height:1.4;font-weight:500;letter-spacing:-.03em;margin:23px 0 9px}.service-card p{font-size:14px;color:#738077;line-height:1.7;min-height:48px;margin:0 0 23px}.service-price{display:block;font-size:18px;font-weight:500;letter-spacing:-.03em}.service-period{display:block;font-size:12px;color:#7c877f;margin-top:3px}.service-card-foot{padding:12px 25px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf1eb;background:#fcfdfb;font-size:12px;color:#77857b}.service-card-foot .ghost{font-size:13px;padding:5px 0}.service-detail-heading{display:flex;align-items:center;gap:15px}.service-phases{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.service-phases>span{border:1px solid var(--line);border-radius:8px;font-size:13px;padding:8px 11px;display:flex;align-items:center;gap:9px}.service-phases b{color:#60816a;font-weight:500}.service-customer{display:flex;justify-content:space-between;width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--line);background:none;color:var(--green);font-size:14px}.client-intake-modal{width:min(860px,100%)}.intake-services{margin-top:28px;border-top:1px solid var(--line);padding-top:24px}.intake-service-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.intake-choice{border:1px solid var(--line);border-radius:10px;background:#fff}.intake-choice.is-selected{border-color:#649376;background:#f5f9f1}.intake-choice-label{display:flex;align-items:center;gap:12px;padding:15px;cursor:pointer}.intake-choice-label input{width:17px;height:17px;accent-color:#146044;flex-shrink:0}.intake-choice-label strong{font-size:14px;font-weight:500;display:block}.intake-choice-label small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.intake-rate{padding:0 15px 15px 44px}.intake-rate label{font-size:12px;color:var(--muted)}.rate-input{display:flex;border:1px solid #d9e2d5;background:white;border-radius:7px;margin-top:5px;align-items:center;gap:9px;padding:7px 10px}.rate-input span{font-size:14px;color:var(--muted)}.rate-input input{width:100%;min-width:0;border:0;background:none;outline:none;font-size:16px}.customer-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.customer-service-card{border:1px solid var(--line);border-radius:12px;background:white;text-align:left;padding:21px;color:inherit}.customer-service-card:hover{border-color:#709b7c;background:#fcfefb}.customer-service-card>strong{display:block;margin:17px 0 7px;font-size:16px;font-weight:500}.customer-service-card .service-price{font-size:17px;margin-bottom:15px}.customer-tags{display:flex;gap:6px;flex-wrap:wrap;max-width:440px}.customer-tags .chip{border:0;text-align:left;white-space:normal}
@media(max-width:1180px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:820px){.service-card-main{padding:21px}.service-card h2{font-size:17px}.service-grid{gap:15px}.service-filterbar{align-items:flex-start}.service-filterbar>.card-sub{display:none}.intake-service-grid{grid-template-columns:1fr}.customer-service-grid{grid-template-columns:1fr}.service-filter{padding:9px 12px}.client-intake-modal .modal-body{padding:18px}}@media(max-width:540px){.service-grid{grid-template-columns:1fr}.service-card p{min-height:0}.service-card-main{padding-bottom:20px}.service-card h2{margin-top:18px}}
.service-client-filter{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.service-client-filter label{font-size:13px;color:var(--muted)}.service-client-filter select{max-width:260px;min-width:175px;background:white;border:1px solid var(--line2);border-radius:8px;padding:10px 32px 10px 12px;color:var(--ink);font-size:14px}.service-results{font-size:13px;color:var(--muted);margin:-9px 0 19px}.service-image{display:block;width:calc(100% + 50px);max-width:none;aspect-ratio:16/9;object-fit:cover;margin:-24px -25px 20px;background:#edf2ef;border-bottom:1px solid var(--line)}.service-detail-image{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin-bottom:20px}.service-card-main{overflow:hidden}.service-card-top .service-symbol{width:31px;height:31px;border-radius:7px}.service-card-top .service-symbol svg{width:18px;height:18px}.service-card h2{margin-top:14px}.service-filterbar{flex-wrap:wrap}.service-image-label{font-size:11px;color:var(--muted);text-align:right;margin:-13px 0 16px}.service-card-foot{font-size:12px}@media(max-width:820px){.service-image{width:calc(100% + 42px);margin:-21px -21px 18px}.service-client-filter{width:100%}.service-client-filter select{flex:1;max-width:none}.service-filterbar{gap:15px}.service-client-filter .ghost{padding:5px}}
.service-image,.service-detail-image{height:auto;aspect-ratio:16/9}

/* Compact service cards and customer browsing. */
.service-grid{gap:18px}.service-card-main{padding:18px}.service-image{width:calc(100% + 36px);margin:-18px -18px 14px;aspect-ratio:2/1}.service-card h2{margin:11px 0 7px;font-size:17px}.service-card p{margin-bottom:14px;min-height:44px;line-height:1.55}.service-card-foot{padding:8px 18px}.service-card .service-price{font-size:17px}
.customer-service-card{overflow:hidden;padding:16px}.customer-service-image{display:block;width:calc(100% + 32px);height:auto;aspect-ratio:2/1;object-fit:cover;margin:-16px -16px 14px;border-bottom:1px solid var(--line)}.customer-service-card>strong{margin-top:12px}
.customer-service-tag{display:flex;align-items:center;gap:8px;background:#f6f8f5;border:1px solid var(--line);border-radius:7px;padding:4px 9px 4px 4px;color:var(--ink);font-size:13px;text-align:left}.customer-service-tag img{object-fit:cover;border-radius:4px;flex-shrink:0}
.client-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:18px}.client-filters>div{min-width:150px}.client-filters .client-search-field{flex:1;min-width:250px}.client-filters label{display:block;font-size:14px;color:var(--muted);margin-bottom:7px}.client-filters input,.client-filters select{width:100%;min-height:43px;border:1px solid var(--line2);border-radius:8px;background:white;padding:10px 12px;color:var(--ink);font:inherit;font-size:14px}.client-filters input:focus,.client-filters select:focus{outline:2px solid #6e9e81;outline-offset:2px}.client-result-count{font-size:14px;color:var(--muted);margin-bottom:14px}.client-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:20px;font-size:14px}.client-pagination button:disabled{opacity:.4;cursor:default}
@media(min-width:1550px){.service-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:820px){.client-filters>div{flex:1}.client-filters .client-search-field{flex-basis:100%}.service-card-main{padding:18px}.service-image{width:calc(100% + 36px);margin:-18px -18px 14px}.service-card h2{margin-top:11px}.client-pagination{justify-content:center}}

body:has(#page-clients.active) .topbar .search{display:none}body:has(#page-clients.active) .top-actions{margin-left:auto}

/* Customer services stay compact even on wide screens. */
.customer-service-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px}
.customer-service-card{display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:14px;row-gap:5px;align-items:center;padding:14px}
.customer-service-card .customer-service-image{grid-column:1;grid-row:1/5;width:88px;height:68px;aspect-ratio:auto;object-fit:cover;margin:0;border:1px solid var(--line);border-radius:7px}
.customer-service-card .service-card-top,.customer-service-card>strong,.customer-service-card .service-price,.customer-service-card>.chip{grid-column:2;margin:0}
.customer-service-card>strong{font-size:15px;line-height:1.4}.customer-service-card .service-price{font-size:15px}.customer-service-card>.chip{justify-self:start;font-size:12px}.customer-service-card .service-kind{padding:2px 6px}
@media(max-width:540px){.customer-service-card{grid-template-columns:64px minmax(0,1fr);gap:5px 12px}.customer-service-card .customer-service-image{width:64px;height:52px}}

.notes-timeline{border-left:2px solid #dae5dd;margin-left:8px;padding-left:24px;display:grid;gap:16px}.note-entry{position:relative;background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 20px}.note-entry:before{content:'';position:absolute;left:-31px;top:25px;width:10px;height:10px;border-radius:50%;background:var(--green);border:2px solid #f5f7f5}.note-entry-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px}.note-entry time,.note-entry small{font-size:13px;color:var(--muted)}.note-content,.note-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.7}.note-entry small{display:block;margin-top:12px}.note-preview{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:10px}.past-services{margin-top:18px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:15px}.past-services summary{cursor:pointer;font-size:14px;color:var(--muted)}.past-service{display:flex;align-items:center;gap:12px;background:none;border:0;border-top:1px solid var(--line);width:100%;text-align:left;padding:14px 0;margin-top:12px;color:var(--ink)}.past-service img{object-fit:cover;border-radius:5px}.past-service strong,.past-service small{display:block}.past-service small{color:var(--muted);margin-top:4px}.past-service>span:last-child{margin-left:auto;font-size:13px}.service-lifecycle{margin-top:24px}

.task-status{margin-bottom:18px}.task-result-count{font-size:14px;color:var(--muted);margin-bottom:12px}.work-task-list{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.work-task{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}.work-task:last-child{border:0}.task-toggle{width:44px;height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:9px;color:var(--green);background:#f8faf7;font-size:22px}.work-task-info{border:0;background:none;text-align:left;flex:1;min-width:0;color:var(--ink);padding:4px}.work-task-info strong{display:block;font-size:15px;overflow-wrap:anywhere}.work-task-info span{display:block;font-size:13px;color:var(--muted);margin-top:5px}.work-task-date{font-size:14px;text-align:right;flex-shrink:0}.work-task-date small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.overdue{color:#a33427}.is-done .work-task-info strong{text-decoration:line-through;color:var(--muted)}.install-instructions h3{font-size:16px;margin-top:24px}.install-instructions p{line-height:1.65}
body:has(#page-tasks.active) .topbar .search{display:none}body:has(#page-tasks.active) .top-actions{margin-left:auto}
@media(max-width:820px){.main{min-width:0}.content{padding-bottom:calc(28px + env(safe-area-inset-bottom))}.topbar{padding-top:env(safe-area-inset-top);height:calc(66px + env(safe-area-inset-top))}.sidecol{display:flex;flex-direction:column;min-width:0}.tabs{overflow-x:auto;flex-wrap:nowrap}.tab{flex-shrink:0;min-height:44px}.modal{max-height:calc(100dvh - 24px);max-width:100%;overflow:auto}.modal-body{min-width:0}.modal-foot{flex-wrap:wrap;gap:10px}.modal-foot button{min-height:44px;flex:1}.field input,.field select,.field textarea,.client-filters input,.client-filters select,.search input{font-size:16px}.primary,.outline,.ghost,.tiny,.service-filter{min-height:44px}.client-name-row{flex-wrap:wrap}.client-name{overflow-wrap:anywhere}.contactline{flex-wrap:wrap;overflow-wrap:anywhere}.hero-actions{flex-wrap:wrap}.note-entry{padding:14px}.note-entry-head{flex-wrap:wrap}.task-filters>div{min-width:0;flex-basis:calc(50% - 14px)}.task-filters select{max-width:100%}.work-task{display:grid;grid-template-columns:44px minmax(0,1fr);gap:5px 10px;padding:12px}.work-task-date{grid-column:2;text-align:left;font-size:13px}.work-task-info strong{font-size:16px}.task-toggle{grid-row:1/3}.task-status{gap:6px}.client-pagination{gap:8px}.customer-tags{max-width:none}#page-clients .table,#page-quotes .table,#page-appointments .table{min-width:0}#page-clients thead,#page-quotes thead,#page-appointments thead{display:none}#page-clients tbody,#page-clients tr,#page-clients td,#page-quotes tbody,#page-quotes tr,#page-quotes td,#page-appointments tbody,#page-appointments tr,#page-appointments td{display:block;width:auto}#page-clients tr,#page-quotes tr,#page-appointments tr{padding:12px;border-bottom:1px solid var(--line)}#page-clients td,#page-quotes td,#page-appointments td{padding:6px;border:0}#page-clients td:before,#page-quotes td:before,#page-appointments td:before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:3px}}

@media(max-width:820px){.topbar .search{min-width:0}.topbar .search input{min-width:0;width:100%}.top-actions{flex-shrink:0}.search>span:first-child{flex-shrink:0}}
