:root{font-family:Inter,'Segoe UI',system-ui,-apple-system,sans-serif;color:#26354f;background:#f6f8fc;font-synthesis:none;-webkit-font-smoothing:antialiased;--accent:#7264d9;--accent-dark:#5747ba;--line:#e9edf5;--muted:#8592a9;--ink:#293752;--nav-width:250px}
*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #9b91f8;outline-offset:2px}button:disabled{opacity:.55;cursor:not-allowed}[hidden]{display:none!important}a{color:var(--accent)}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.025em}small{color:var(--muted)}.muted{color:var(--muted);font-size:13px}.brand-title,.wordmark{font-size:25px;font-weight:900;color:#29344d;letter-spacing:.11em}.brand-title span,.wordmark span{color:var(--accent)}.app-layout{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--nav-width);z-index:30;background:#fff;border-right:1px solid var(--line);padding:27px 15px 17px;display:flex;flex-direction:column}.sidebar-logo{display:flex;align-items:center;gap:11px;margin-bottom:46px;padding:0 8px}.logo-mark{width:41px;height:41px;display:grid;place-items:center;background:linear-gradient(145deg,#8a7fea,#5d50c8);border-radius:13px;color:#fff;font-size:23px;font-weight:900;box-shadow:0 5px 20px #756bd02a}.sidebar-logo .wordmark{font-size:18px;letter-spacing:.06em}.sidebar-logo small{font-size:9px;letter-spacing:.16em;font-weight:800}.nav-heading{font-size:10px;color:#a0abc0;letter-spacing:.14em;font-weight:800;padding:0 12px;margin-bottom:15px}.sidebar nav{display:grid;gap:5px;overflow:auto}.nav-btn{width:100%;display:flex;align-items:center;gap:13px;padding:12px 13px;border:0;background:transparent;color:#697893;text-align:left;border-radius:10px;font-weight:700;font-size:13px}.nav-btn:hover{background:#f6f7fc}.nav-btn.active{color:#6357c8;background:#f0eefc}.nav-icon{width:19px;text-align:center;font-size:18px;font-weight:600}.nav-counter{margin-left:auto;background:#f4f1ff;color:#7767cd;font-size:10px;border-radius:7px;padding:4px 6px}.sidebar-footer{margin-top:auto;display:grid;gap:20px}.db-state{border:1px solid #e8eee9;background:#f7fcf8;border-radius:9px;padding:12px;color:#547460;font-size:11px;font-weight:700}.state-led{display:inline-block;background:#3db987;width:7px;height:7px;border-radius:50%;margin-right:6px}.sidebar-user{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:18px 7px 2px}.sidebar-user>span{background:#f1efff;color:#695bc8;border-radius:10px;width:35px;height:35px;display:grid;place-items:center;font-weight:800}.sidebar-user strong,.sidebar-user small{display:block;font-size:11px}.sidebar-user small{margin-top:4px}.workspace{margin-left:var(--nav-width);min-height:100vh}.topbar{height:77px;background:#fff;border-bottom:1px solid var(--line);padding:0 31px;display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:17px;min-width:0}.breadcrumb{font-size:11px;letter-spacing:.055em;color:#929fb4;white-space:nowrap}.breadcrumb span{padding:0 9px;color:#c2cad5}.breadcrumb b{color:#566782}.searchbox{height:37px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#f9faff;border-radius:9px;padding:0 11px;color:#8898b3}.searchbox>span{font-size:21px}.searchbox input{outline:none;border:0;background:transparent;max-width:200px;width:170px;font-size:12px;color:var(--ink)}.userchip{white-space:nowrap;font-size:12px;font-weight:700;color:#687792}.icon-button{border:1px solid var(--line);background:#fff;color:#6b7892;border-radius:9px;display:inline-grid;place-items:center;min-width:35px;height:35px;font-size:21px}.icon-button:hover{background:#f2f0ff;color:var(--accent)}.mobile-menu,.mobile-scrim{display:none}.page-content{padding:30px 32px 60px;max-width:1660px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;flex-wrap:wrap}.eyebrow{font-size:10px;letter-spacing:.16em;color:#8c80dd;font-weight:900;margin-bottom:9px}.page-heading h1{font-size:29px;margin-bottom:7px;font-weight:830}.page-heading p{margin:0;color:#8995ab;font-size:12px;line-height:1.7}.page-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn,.primary-button,.secondary-button{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:36px;border-radius:9px;border:1px solid #e6eaf3;background:#fff;color:#55647f;font-weight:800;font-size:12px;padding:9px 15px;text-decoration:none;white-space:nowrap}.btn:hover,.secondary-button:hover{background:#f4f5fc;border-color:#d8d4ff}.btn.primary,.primary-button{border:1px solid #7062d8;background:#7062d8;color:#fff;box-shadow:0 5px 14px #7564d424}.btn.primary:hover,.primary-button:hover{background:#5d4ac4}.btn.small{font-size:11px;min-height:31px;padding:6px 10px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.stat{border:1px solid var(--line);background:#fff;border-radius:14px;padding:21px 21px 17px;min-width:0;overflow-wrap:anywhere}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#7f8da6;font-size:12px;font-weight:600;margin-bottom:19px}.stat-top i{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;background:#f1effe;color:#7466d5;font-size:19px;font-style:normal}.stat strong{display:block;font-size:28px;letter-spacing:-.04em;color:#263651;margin-bottom:6px}.stat small{font-size:11px;line-height:1.4}.home-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:18px;min-width:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:21px 23px 16px;border-bottom:1px solid #f0f2f8}.panel-header h2{font-size:14px;margin:0}.panel-header span{font-size:11px;color:#929db0}.link-btn{border:0;padding:4px;background:none;color:var(--accent);font-weight:800;font-size:11px}.listline{width:100%;text-align:left;border:0;border-bottom:1px solid #f2f3f8;padding:16px 20px;background:#fff;display:flex;align-items:center;gap:12px}.listline:hover{background:#fcfcff}.listline-main{display:flex;flex-direction:column;align-items:flex-start;gap:5px;flex:1;min-width:0}.listline-main strong{font-size:12px}.listline-main small{font-size:11px}.avatar{width:43px;height:43px;border-radius:12px;background:#ebe8ff;color:#6b61c6;display:grid;place-items:center;flex-shrink:0;font-weight:900;font-size:15px}.avatar.mini{width:37px;height:37px;border-radius:10px;font-size:13px}.avatar.purple{font-size:22px}.badge{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:6px 9px;border-radius:7px;background:#f1f3f8;color:#737f97;font-size:10px;font-weight:800}.badge.new{background:#eeedff;color:#776be1}.badge.contact{background:#fff5e6;color:#bc8f4c}.badge.meeting{background:#e9f3ff;color:#5a89cc}.badge.offer{background:#f5eeff;color:#9b65c7}.badge.won{background:#eaf8f0;color:#31956a}.badge.lost{background:#f9eef1;color:#b67386}.badge.install,.badge.installation{background:#fff3e5;color:#ae752f}.badge.material,.badge.materials{background:#eaf1ff;color:#5b80bf}.badge.unallocated{background:#f0f2f6;color:#79869e}.badge.brand{background:#f6f4fc;color:#8e79bd}.focus-list{padding:16px 23px}.focus-list>div{display:flex;gap:14px;padding:16px 2px;border-bottom:1px solid #f0f2f6}.focus-list>div:last-child{border:0}.focus-list>div>span{font-size:14px;color:#afa5ee;font-weight:900}.focus-list strong{font-size:12px}.focus-list p{font-size:11px;color:#8a97ae;margin:5px 0 0}.blank{grid-column:1/-1;padding:35px 22px;text-align:center;color:#98a3b5;font-size:12px}.blank>span{display:block;font-size:38px;line-height:1;color:#bdb5eb}.blank p{margin:12px 0 0}.tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:17px}.tile{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;min-width:0}.customer-tile{display:flex;flex-direction:column}.tile-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}.tile-head>div:last-child{min-width:0}.tile-head h3{font-size:14px;margin:0 0 6px;overflow-wrap:anywhere}.tile-head p{font-size:11px;color:#8b98ab;margin:0;overflow-wrap:anywhere}.tile-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0;border-top:1px solid #f1f3f8;font-size:11px;color:#8c98a9}.tile-row b,.tile-row strong{color:#32415d;font-size:12px;text-align:right;overflow-wrap:anywhere}.tile-actions{display:flex;gap:9px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:auto;padding-top:18px}.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}table{border-collapse:collapse;width:100%;min-width:740px}th{text-align:left;color:#8794aa;background:#fafbfe;white-space:nowrap;font-size:10px;letter-spacing:.02em}td,th{padding:15px 16px;border-bottom:1px solid #eff2f7}td{font-size:11px;color:#667690;vertical-align:middle}td strong,td b{font-weight:800;color:#2b3a55}tr:last-child td{border-bottom:0}.cell-actions{display:flex;gap:6px;flex-wrap:wrap}.filter-row{display:flex;gap:12px;margin:17px 0}.filter-row label{display:flex;align-items:center;gap:12px;color:#8490a4;font-size:11px;font-weight:700}.filter-row select{padding:9px 13px;border:1px solid #e5e8f2;border-radius:9px;background:#fff;font-size:12px;color:#50617c;min-width:190px}.order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(315px,1fr));gap:17px}.order-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;min-width:0}.order-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.order-card h3{font-size:14px;line-height:1.4;margin:18px 0 6px}.order-card>p{color:#8f9bac;font-size:11px;margin:0 0 20px}.order-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:12px}.order-amounts>div{min-width:0}.order-amounts small{display:block;font-size:10px;margin-bottom:6px}.order-amounts b,.order-amounts strong{font-size:13px;color:#303d55;overflow-wrap:anywhere}.order-amounts strong{color:#6859ce;font-size:16px}.payment-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:15px 0;border-top:1px solid #eff0f6}.payment-split>div{border:1px solid #eaebf6;padding:11px;border-radius:10px;background:#fafaff;display:flex;flex-direction:column;gap:5px;min-width:0}.payment-split small{font-size:10px}.payment-split strong{font-size:12px;color:#293750;overflow-wrap:anywhere}.payment-split span{font-size:10px;color:#83a08e}.install-date{padding:11px 0;font-size:11px;color:#8290a8}.order-card-foot{display:flex;gap:8px;justify-content:flex-end;align-items:center;border-top:1px solid #eff1f7;padding-top:14px;flex-wrap:wrap}.finance-stats{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.commission{background:linear-gradient(150deg,#7165dc,#4b3eb0);color:#fff;border:0}.commission span{font-size:10px;font-weight:900;letter-spacing:.04em}.commission strong{color:#fff;font-size:30px;margin:27px 0 8px}.commission small{color:#e0dbff}.after-table{display:flex;gap:11px;margin-top:22px;flex-wrap:wrap}.kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,1fr);gap:13px;overflow-x:auto;padding-bottom:15px;align-items:start;min-width:0}.kanban-col{background:#f0f2f9;border:1px solid #edf0f7;border-radius:13px;padding:11px;min-height:250px}.kanban-title{display:flex;align-items:center;justify-content:space-between;margin:7px 6px 14px;font-size:12px}.kanban-title>div{display:flex;align-items:center;gap:9px}.kanban-title>span{background:white;border-radius:6px;padding:4px 7px;color:#8691a9;font-size:10px;font-weight:900}.stage-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#9287dc}.stage-dot.contact{background:#e4aa65}.stage-dot.meeting{background:#6da6d7}.stage-dot.offer{background:#af88d0}.stage-dot.won{background:#50b58b}.stage-dot.lost{background:#c793a1}.kanban-cards{display:grid;gap:11px}.lead-card{background:#fff;border:1px solid #ebeef7;border-radius:11px;padding:15px;cursor:grab;min-width:0}.lead-card-top{display:flex;align-items:center;justify-content:space-between;gap:7px}.lead-name{display:block;background:none;border:0;padding:12px 0 4px;text-align:left;font-size:13px;font-weight:900;color:#2f3d56}.lead-name:hover{color:var(--accent)}.lead-sub{color:#8190a7;font-size:10px;min-height:22px;line-height:1.5}.lead-phone{color:#697a92;font-size:11px;font-weight:700;margin:10px 0}.lead-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f2f6;padding-top:11px;margin-top:10px}.lead-foot small{font-size:10px}.lead-mobile-stage{width:100%;border:1px solid #e7eaf4;background:#f8f9ff;border-radius:7px;color:#60718c;padding:8px;font-size:12px}.kanban-empty{padding:20px;color:#b0bacc;text-align:center;font-size:11px}.kanban-col.drag-over{background:#e5e1ff;outline:2px dashed #8a76db}.modal-shade,.detail-shade{position:fixed;inset:0;z-index:100;background:#23314a88;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(3px)}.dialog{width:min(670px,100%);max-height:min(92vh,850px);display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 20px 70px #192a4c44;overflow:hidden}.dialog-head{padding:23px 25px 17px;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #eff1f6}.dialog-head small,.drawer-header small{font-size:10px;color:#a293da;letter-spacing:.13em;font-weight:900}.dialog-head h2,.drawer-header h2{font-size:21px;margin:8px 0 6px}.dialog-head p,.drawer-header p{font-size:11px;color:#8a97ab;line-height:1.6;margin:0}.dialog form{min-height:0;display:flex;flex-direction:column;overflow:hidden}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:21px 25px;overflow-y:auto;align-content:start}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;color:#71809b;min-width:0}.field span{display:block}.field input,.field textarea,.field select{display:block;width:100%;min-height:39px;background:#fbfcff;color:#35455f;border:1px solid #e4e9f3;border-radius:9px;padding:10px 11px;font-size:13px;outline-offset:0}.field textarea{min-height:80px;resize:vertical}.field.full,.field-span,.form-notice,.import-guide{grid-column:1/-1}.install-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:14px 0;border-top:1px solid #eeeef5;border-bottom:1px solid #eeeef5}.form-notice{border:1px solid #e6e7fa;background:#f8f7ff;color:#625cad;border-radius:9px;padding:11px 14px;font-size:12px;font-weight:700}.dialog-foot{display:flex;justify-content:flex-end;gap:10px;padding:17px 25px;background:#fafbfe;border-top:1px solid #eff1f6}.detail-shade{justify-content:flex-end;padding:0}.drawer{height:100%;width:min(540px,100%);background:#fff;box-shadow:-20px 0 55px #192b4b30;display:flex;flex-direction:column}.drawer-header{padding:25px 25px 20px;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #edf0f5}.drawer-header h2{font-size:24px}.drawer-body{padding:22px 25px 35px;overflow-y:auto}.drawer-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:21px}.detail-section{border-top:1px solid #edf0f6;padding:20px 0 14px}.detail-section:first-of-type{border:0}.detail-section h3{font-size:13px;margin-bottom:16px}.detail-row{display:flex;justify-content:space-between;align-items:baseline;gap:15px;border-bottom:1px solid #f1f3f7;padding:11px 0;font-size:11px}.detail-row span{color:#8795a9}.detail-row strong{color:#2f3c55;max-width:62%;text-align:right;overflow-wrap:anywhere}.detail-project{border:1px solid #e9edf5;background:#fcfdff;border-radius:10px;padding:14px;margin:10px 0}.detail-project-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.detail-project-title strong{display:block;font-size:12px}.detail-project-title small{display:block;margin-top:6px;font-size:10px}.detail-project-stats{display:flex;gap:13px;flex-wrap:wrap;margin:13px 0 9px}.detail-project-stats span{font-size:10px;color:#8a96aa;display:flex;flex-direction:column;gap:4px}.detail-project-stats b{color:#33425e;font-size:11px}.detail-project-stats.payout{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #eff1f7}.detail-copy{font-size:12px;line-height:1.8;color:#61708a;white-space:pre-wrap}.import-guide{padding:15px;background:#f6f7fc;border:1px solid #e5e9f4;border-radius:10px;font-size:11px;line-height:1.7;color:#62718d}.import-guide p{margin:6px 0 10px}.import-guide code{display:block;background:#fff;padding:11px;border-radius:7px;overflow-x:auto;white-space:nowrap;color:#4d49a3}.audit-rows{overflow-y:auto;padding:10px 23px 25px}.audit-entry{border-bottom:1px solid #eef1f5;padding:14px 0}.audit-entry strong,.audit-entry small{display:block;font-size:12px}.audit-entry small{margin-top:5px;font-size:10px}.toast{position:fixed;bottom:24px;right:22px;z-index:200;background:#304e40;color:#fff;padding:14px 18px;border-radius:10px;font-size:12px;box-shadow:0 9px 35px #162a2550;max-width:min(450px,95vw)}.toast.error{background:#9b4f57}.loading-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.loading-page p{font-size:12px;color:#8996a7}.login-wrapper{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}.login-brand{background:radial-gradient(ellipse at 70% 80%,#8678e5,#5345ae 70%);color:#fff;display:flex;flex-direction:column;justify-content:center;padding:clamp(25px,8vw,105px)}.login-brand .wordmark{font-size:32px;color:#fff;letter-spacing:.06em;margin-bottom:10px}.login-brand .wordmark span{color:#cfcbff}.login-tag{font-size:10px;letter-spacing:.24em;color:#dad7ff}.login-brand h1{font-size:clamp(34px,4.5vw,65px);line-height:1.1;margin:66px 0 20px}.login-brand h1 em{color:#cbc7ff;font-style:normal}.login-brand>p{font-size:14px;color:#e5e1ff;line-height:1.8;max-width:380px}.login-benefits{display:flex;flex-direction:column;gap:10px;margin-top:50px;font-size:11px;color:#dedaff}.login-panel{display:flex;align-items:center;justify-content:center;padding:35px}.login-form{width:min(380px,100%)}.login-overline{font-size:10px;letter-spacing:.18em;font-weight:900;color:#8375da;margin-bottom:14px}.login-form h2{font-size:31px;margin:0 0 11px}.login-form>p{font-size:12px;color:#8d98aa;margin-bottom:30px}.login-form label,.setup-form label{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:750;color:#5e6a81;margin-bottom:16px}.login-form input,.setup-form input{min-height:44px;width:100%;border-radius:9px;border:1px solid #e0e4ed;background:#fafbfe;padding:11px;color:#283750}.login-form .primary-button{display:flex;width:100%;margin:10px 0 19px;min-height:47px}.login-form small{font-size:10px;line-height:1.7}.setup-page{min-height:100vh;padding:35px 15px;background:#f4f5fb}.setup-card{width:min(550px,100%);background:white;padding:32px;border-radius:15px;box-shadow:0 10px 45px #28304a14;margin:0 auto}.setup-card h1{margin:30px 0 10px}.setup-card p{font-size:12px;line-height:1.8;color:#748098}.setup-card h3{font-size:13px;margin:25px 0 15px}.setup-form .primary-button{width:100%;margin:12px 0 17px}.setup-actions{display:flex;gap:10px}.setup-actions .primary-button,.setup-actions .secondary-button{flex:1}.error-box{padding:12px;border:1px solid #ffd5d9;border-radius:9px;background:#fff3f4!important;color:#ad3949!important}.notice{padding:14px;background:#f9f6ff;border:1px solid #e7e1ff;border-radius:9px;color:#5e56a1!important}
@media(max-width:1320px){.page-content{padding:25px 23px}.topbar{padding:0 23px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.kanban{grid-auto-columns:255px}}
@media(max-width:1000px){:root{--nav-width:220px}.sidebar{padding:20px 12px}.page-content{padding:24px 20px}.home-grid{grid-template-columns:1fr}.userchip{display:none}.searchbox input{width:130px}.finance-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.sidebar{transform:translateX(-105%);transition:transform .2s;box-shadow:10px 0 25px #253a5726;width:260px}.sidebar.open{transform:translateX(0)}.mobile-scrim.open{display:block;position:fixed;inset:0;background:#19274488;z-index:25}.workspace{margin-left:0}.mobile-menu{display:inline-grid}.topbar{height:68px;padding:0 17px}.page-content{padding:24px 16px 70px}.breadcrumb{font-size:10px}.breadcrumb span{padding:0 4px}.page-heading h1{font-size:26px}.stats{gap:11px}.stat{padding:16px}.stat strong{font-size:24px}.stat-top{margin-bottom:10px;font-size:11px}.tile-grid,.order-grid{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}.kanban{grid-auto-columns:80vw;max-width:100%}.login-wrapper{grid-template-columns:1fr}.login-brand{padding:32px;min-height:270px}.login-brand h1{font-size:35px;margin:20px 0 10px}.login-benefits{display:none}.login-panel{padding:32px 20px}.searchbox{min-width:0}.searchbox input{width:100px}.dialog{max-height:96dvh}.modal-shade{padding:7px}.drawer-header,.drawer-body{padding-left:17px;padding-right:17px}}
@media(max-width:500px){.topbar{gap:6px}.topbar-left,.topbar-right{gap:8px}.breadcrumb{max-width:126px;overflow:hidden;text-overflow:ellipsis}.searchbox{width:110px}.searchbox input{width:65px}.page-heading{align-items:flex-start}.page-actions{width:100%}.page-actions .btn{flex:1}.stats,.finance-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{padding:12px}.stat-top i{width:28px;height:28px;font-size:16px}.stat strong{font-size:clamp(17px,4.4vw,23px)}.stat small{font-size:10px}.commission strong{font-size:clamp(17px,4vw,24px)}.order-amounts{gap:8px}.order-amounts strong{font-size:15px}.dialog-head{padding:18px 16px 14px}.dialog-head h2{font-size:19px}.fields{grid-template-columns:1fr;padding:17px 16px;gap:12px}.install-fields{grid-template-columns:1fr}.dialog-foot{padding:12px 16px}.field input,.field select,.field textarea,.login-form input,.setup-form input,.searchbox input{font-size:16px!important}.drawer-header h2{font-size:20px}.tile{padding:16px}.setup-card{padding:22px}.filter-row label{flex-wrap:wrap}.toast{bottom:13px;left:10px;right:10px}.page-content{padding:22px 13px}.payment-split{grid-template-columns:1fr 1fr}.nav-btn{font-size:13px}.lead-mobile-stage{font-size:16px}}
@media(max-width:360px){.stat{padding:10px}.stat strong{font-size:16px}.stat-top{font-size:10px}.stats,.finance-stats{gap:7px}.payment-split{grid-template-columns:1fr}.breadcrumb{display:none}}

/* SENSORI CRM 1.1 — quotes, prices, company settings, responsive forms */
.quick-presets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  width: 100%; margin-top: 6px;
}
.preset-btn {white-space: normal; text-align: left; max-width: 100%; line-height: 1.35;}
.preset-btn.selected,
.preset-btn:focus-visible {border-color: #6670c7; color: #433c9a; background: #eeedfb; box-shadow: inset 0 0 0 1px #a7a1e7;}
.page-actions {display: flex; align-items: center; flex-wrap: wrap; gap: 8px;}
.settings-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start;}
.settings-panel {min-width: 0; padding-bottom: 24px;}
.settings-panel .panel-header {margin-bottom: 18px;}
.settings-form .fields {padding: 0 22px;}
.settings-form .field.full {grid-column: 1 / -1;}
.settings-form .field input,
.settings-form .field textarea {width: 100%; max-width: 100%;}
.settings-actions {display: flex; justify-content: flex-end; padding: 15px 22px 0;}
.settings-note {padding: 0 22px 8px; color: #68768c; font-size: 12px; line-height: 1.6;}
.service-price-list {display: grid; gap: 11px; padding: 5px 22px 10px;}
.service-price-item {display: grid; grid-template-columns: minmax(0, 1fr) 115px; gap: 8px 14px; align-items: center; padding: 15px; border: 1px solid #e5e9f3; border-radius: 12px; background: #fafbfe;}
.service-price-item strong,.service-price-item small {display: block;}
.service-price-item strong {font-size: 13px; line-height: 1.4; color: #28374c;}
.service-price-item small {font-size: 11px; color: #8893a5; margin-top: 5px;}
.service-price-item input {width: 100%; min-width: 0; padding: 10px; border: 1px solid #dbe1ec; border-radius: 8px; font-size: 16px;}
.service-price-item textarea {grid-column: 1 / -1; width: 100%; border-radius: 8px; border: 1px solid #dbe1ec; padding: 9px 10px; font: inherit; resize: vertical;}
.feature-install {padding: 25px; line-height: 1.7; display: grid; gap: 16px; justify-items: start;}
.feature-install h2 {margin: 0; color: #25364b;}
.feature-install p {margin: 0; color: #67778a;}
.table-sub {display: block; margin-top: 4px; color: #7c899b; max-width: 300px; line-height: 1.3;}
.quote-dialog {width: min(900px, calc(100vw - 28px)); max-width: 900px; max-height: calc(100dvh - 30px); overflow-y: auto; overscroll-behavior: contain;}
.quote-dialog .fields {margin-bottom: 16px;}
.quote-dialog-intro {background: #f3f6fc; border: 1px solid #e2e8f2; border-radius: 10px; padding: 13px; color: #66768d; font-size: 12px; line-height: 1.65; margin-bottom: 16px;}
.quote-links {display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px;}
.quote-links .field {min-width: 0;}
.quote-links .field select {max-width: 100%; width: 100%;}
.quote-service-heading {display: flex; flex-direction: column; gap: 5px; margin: 12px 0 10px;}
.quote-service-heading strong {font-size: 14px; color: #2e4159;}
.quote-service-heading small {color: #7889a1;}
.quote-presets {padding: 0 0 20px;}
.quote-presets .btn {flex: 1; min-width: 145px; justify-content: center; padding: 12px 9px;}
.quote-lines-head {display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 20px 0 10px;}
.quote-lines-head strong {color: #2e4159; font-size: 14px;}
[data-quote-lines] {display: grid; gap: 10px;}
.quote-line {border-radius: 12px; border: 1px solid #e5eaf1; background: #fafbfe; padding: 13px; min-width: 0;}
.quote-line-top {display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px;}
.quote-line-top b {font-size: 12px; color: #3a4b65;}
.quote-line-grid {display: grid; grid-template-columns: 1.1fr 1.1fr .75fr .8fr .8fr; gap: 9px; align-items: end;}
.quote-line-grid label {display: flex; flex-direction: column; gap: 7px; font-size: 11px; color: #6b798e; min-width: 0;}
.quote-line-grid input {font-size: 16px; min-height: 40px; min-width: 0; width: 100%; background: white; color: #26394b; border: 1px solid #dbe1ec; border-radius: 8px; padding: 9px;}
.quote-item-total {display: flex; flex-direction: column; align-items: flex-end; gap: 7px; font-size: 11px; color: #7a889a;}
.quote-item-total b {font-size: 14px; color: #2f4c62; overflow-wrap: anywhere;}
.quote-totals {background: #eef2f8; padding: 15px; border-radius: 10px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 16px 0;}
.quote-totals div {display: flex; flex-direction: column; gap: 6px; min-width: 0;}
.quote-totals span {font-size: 11px; color: #6d7d90;}
.quote-totals b {font-size: 16px; color: #283b52; overflow-wrap: anywhere;}
.quote-refresh {display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 11px; color: #67788e;}
.quote-refresh input {width: 18px; height: 18px;}
.upgrade-screen {min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #f5f7fc;}
.upgrade-card {width: min(600px,100%); background: white; border: 1px solid #e7ebf2; border-radius: 18px; padding: 30px; display: grid; gap: 18px; box-shadow: 0 12px 60px rgba(30,55,90,.07);}
.upgrade-card h1 {margin: 0; font-size: 26px; color: #23344e;}
.upgrade-card p {line-height: 1.6; margin: 0; color: #64738a;}
.upgrade-card small {color: #7c8799; line-height: 1.7;}
.upgrade-card .form-notice {padding: 14px;}
.upgrade-card a {color: #6457bd;}
@media(max-width:1100px) {.settings-grid {grid-template-columns: 1fr;}}
@media(max-width:720px) {
  .quote-dialog {max-width: 100%; width: calc(100vw - 10px); max-height: 96dvh; margin: 0 5px;}
  .quote-links {grid-template-columns: 1fr;}
  .quote-line-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
  .quote-line-grid label:first-child,.quote-line-grid label:nth-child(2) {grid-column: 1 / -1;}
  .quote-item-total {text-align: right;}
  .quote-totals {grid-template-columns: repeat(2,minmax(0,1fr));}
  .quote-presets {flex-direction: column; align-items: stretch;}
  .quote-presets .btn {flex: auto; width: 100%;}
  .settings-form .fields,.service-price-list,.settings-actions {padding-left: 13px; padding-right: 13px;}
  .settings-grid {gap: 14px;}
  [data-crm-form="quote"] input,[data-crm-form="quote"] select,[data-crm-form="quote"] textarea,
  [data-crm-form="company"] input,[data-crm-form="company"] textarea {font-size: 16px;}
  .quote-line {padding: 11px;}
  .settings-panel .panel-header {padding: 15px;}
}

/* 1.1 quote modal uses a continuous scrollable form, never nested grid columns */
.quote-dialog form {min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
.quote-form-body {display:block;flex:1;min-height:0;overflow:auto;padding:20px 25px 26px;overscroll-behavior:contain}
.quote-form-body > .fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:0;margin:14px 0;overflow:visible}
.quote-form-body > .fields > .field.full {grid-column:1/-1}
.quote-form-body .field input,.quote-form-body .field select,.quote-form-body .field textarea {font-size:16px}
.quote-dialog .dialog-foot {flex-shrink:0}
@media(max-width:720px){
 .quote-form-body {padding:16px 16px 22px}
 .quote-form-body > .fields {grid-template-columns:1fr}
 .quote-form-body .quote-links {grid-template-columns:1fr}
 .quote-dialog .dialog-foot {padding:12px 14px;flex-wrap:wrap}
 .quote-dialog .dialog-foot .btn {flex:1;min-width:110px;font-size:12px}
}

.home-services {margin-top:20px;}
.home-service-prices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px 20px;}
.home-service-prices>div {border:1px solid #e4eaf2;border-radius:10px;background:#fafbfe;padding:15px;display:flex;flex-direction:column;gap:8px;}
.home-service-prices span {font-size:12px;color:#667890;font-weight:600;line-height:1.4;}
.home-service-prices strong {font-size:17px;color:#293e5a;}
@media(max-width:720px){.home-service-prices{grid-template-columns:1fr;padding:12px;gap:8px}}
