:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1d3233;background:#f5f7f7;font-synthesis:none;--teal:#087f72;--muted:#748284;--border:#e3e9e8;--dark:#102b2b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a{touch-action:manipulation}a{color:var(--teal)}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-1px;line-height:1.2}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:15px}p{line-height:1.65}.muted,.small{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:700;text-transform:uppercase;color:#8baaa7}.icon{width:19px;height:19px;vertical-align:middle;flex-shrink:0;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand-mark{width:39px;height:39px;border-radius:12px;background:var(--teal);display:grid;place-items:center;color:white;font-size:23px;font-weight:800}.brand strong{font-size:19px;letter-spacing:1.5px}.brand small{display:block;font-size:10px;color:#8da8a5;margin-top:4px;letter-spacing:.3px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--dark);color:#a5bab7;padding:30px 20px 22px;display:flex;flex-direction:column;z-index:20}.sidebar .brand{color:white;padding:0 5px 32px}.side-label{font-size:10px;font-weight:600;letter-spacing:1.8px;margin:15px 15px 12px;color:#678c85}.nav{display:grid;gap:6px}.nav button{border:0;background:none;color:#a5bab7;display:flex;gap:13px;align-items:center;text-align:left;padding:13px 15px;border-radius:8px;font-size:13px;font-weight:500}.nav button:hover{background:#ffffff09;color:white}.nav button.active{background:#254542;color:#fff}.nav button.active:after{content:'';height:6px;width:6px;background:#65cfaa;border-radius:50%;margin-left:auto}.side-bottom{margin-top:auto}.side-promo{border:1px solid #35524d;border-radius:12px;padding:17px;margin-bottom:23px;background:#173733}.side-promo p{font-size:11px;margin:9px 0 0;color:#8eaaa3}.side-promo strong{color:#cee8df;font-size:12px}.user{display:flex;align-items:center;gap:10px;border-top:1px solid #304844;padding-top:20px;font-size:12px}.avatar{width:35px;height:35px;background:#d8eae3;color:#1e5c4b;border-radius:50%;display:grid;place-items:center;font-weight:700;flex-shrink:0}.user strong{display:block;color:white;font-size:12px}.user small{display:block;font-size:10px;margin-top:4px}.user button{margin-left:auto;background:none;border:0;color:#9bb6af}.workspace{margin-left:238px;min-height:100vh}.topbar{height:81px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:16px}.breadcrumb{font-size:12px;color:#82908f}.breadcrumb strong{color:#304c48;font-weight:500}.top-actions{display:flex;align-items:center;gap:15px}.top-actions .date{font-size:12px;color:#6b7d79}.round-btn{border:1px solid var(--border);background:#fff;width:35px;height:35px;border-radius:50%;color:#5a746f}.mobile-menu{display:none}.demo-bar{background:#e8f4ee;padding:9px 34px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#3b6856;border-bottom:1px solid #d9e9e1}.demo-bar select{font-size:11px;padding:4px;background:transparent;border:1px solid #bdd4c7;border-radius:5px;color:#315d4c;max-width:140px}.demo-bar button{font-size:11px;border:0;background:none;color:#315d4c;text-decoration:underline}.content{max-width:1530px;margin:auto;padding:31px 34px 45px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;gap:16px}.page-head h1{margin-bottom:8px}.page-head p{font-size:12px;color:var(--muted);margin:0}.btn{border:1px solid var(--border);background:white;color:#2f4744;min-height:39px;padding:10px 15px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-size:12px;font-weight:600}.btn:hover{background:#eff5f2}.btn.primary{background:var(--teal);color:white;border-color:var(--teal);box-shadow:0 3px 6px #087f7214}.btn.primary:hover{background:#06695e}.btn.danger{color:#b54735;background:#fff5f1;border-color:#f2d9d1}.btn.small{padding:6px 10px;min-height:31px;font-size:11px}.btn.ghost{background:transparent;border-color:transparent;box-shadow:none}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}.stat{border:1px solid var(--border);border-radius:11px;background:white;padding:21px 20px;position:relative}.stat .stat-label{font-size:11px;font-weight:500;color:#6d807b;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:8px}.stat .stat-value{font-size:28px;font-weight:650;letter-spacing:-1px;margin-bottom:10px;overflow-wrap:anywhere}.stat .stat-foot{font-size:10px;color:#88958f}.stat .stat-icon{height:31px;width:31px;border-radius:9px;background:#eaf4ef;display:grid;place-items:center;color:#298168}.stat.highlight{background:#eaf3ee;border-color:#d5e8dc}.card{background:#fff;border:1px solid var(--border);border-radius:11px;min-width:0;overflow:hidden}.card-head{padding:21px 22px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.card-head h2{margin:0;font-size:15px}.card-head p{font-size:11px;color:var(--muted);margin:5px 0 0}.card-body{padding:0 22px 22px}.grid-two{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);gap:22px;margin-bottom:22px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--border);padding:0 22px;overflow:auto}.tabs button{white-space:nowrap;background:none;border:0;border-bottom:2px solid transparent;padding:12px 0;color:#88938d;font-size:11px}.tabs button.active{color:var(--teal);border-color:var(--teal);font-weight:600}.count{background:#f0f3f0;color:#7b8981;border-radius:5px;padding:2px 6px;margin-left:5px;font-size:10px}.toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:19px;flex-wrap:wrap}.search{position:relative;flex:1;max-width:380px}.search .icon{position:absolute;top:11px;left:12px;color:#9ba8a1;width:16px}.search input{padding-left:36px;width:100%}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:10px;color:#8d9993;font-weight:500;background:#fbfcfb;padding:13px 20px;border-bottom:1px solid var(--border)}td{font-size:11px;padding:16px 20px;border-bottom:1px solid #edf1ee;color:#3c534a}tr:last-child td{border-bottom:0}tbody tr[data-job]{cursor:pointer}tbody tr[data-job]:hover{background:#f8fbf9}td strong{display:block;font-size:11px;color:#324d43;font-weight:600}td small{display:block;font-size:10px;color:#99a49c;margin-top:5px}td .job-number{color:#348a70;font-size:10px}td .btn{padding:4px 8px}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:9px;font-weight:600;white-space:nowrap;background:#edf1ef;color:#6c8278}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.repairing,.badge.inspecting{background:#eaf0fe;color:#5578c2}.badge.booked{background:#eef0f4;color:#788398}.badge.awaiting_approval,.badge.awaiting_parts,.badge.urgent{background:#fff3dd;color:#b68631}.badge.completed,.badge.delivered,.badge.active{background:#e5f4e9;color:#4b9564}.badge.cancelled,.badge.suspended{background:#fceae6;color:#b86b59}.upcoming{display:flex;gap:13px;padding:18px 0;border-bottom:1px solid #edf1ee}.upcoming:last-child{border-bottom:0}.time-block{border-radius:8px;background:#f3f5f0;padding:10px 7px;min-width:55px;text-align:center;font-size:11px;color:#5a7566;font-weight:600;height:45px}.upcoming h3{margin:0 0 5px;font-size:12px}.upcoming p{margin:0;font-size:10px;color:#94a196;line-height:1.65}.upcoming .badge{margin-top:8px}.link-button{border:0;background:none;padding:0;color:var(--teal);font-size:11px;cursor:pointer;text-align:left}.pipeline{display:flex;gap:5px;height:8px;border-radius:7px;overflow:hidden;margin:10px 0 20px}.pipeline span{flex:1;background:#86b69f}.pipeline span:nth-child(2){background:#aabce0}.pipeline span:nth-child(3){background:#e6c998}.pipeline span:nth-child(4){background:#4d9078}.legend{display:flex;flex-wrap:wrap;gap:20px;font-size:10px;color:#8c9b92}.legend b{color:#405e4e;margin-left:5px}.welcome-note{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#edf3e9;border:1px solid #dce6d4;border-radius:10px;padding:20px 25px;margin-top:22px}.welcome-note h3{font-size:12px;margin:0 0 7px;color:#54734a}.welcome-note p{font-size:11px;color:#84967b;margin:0}.empty{text-align:center;padding:45px 25px;color:#8b9990}.empty h3{color:#4b6457;font-size:16px;margin:12px 0 7px}.empty p{font-size:12px;max-width:340px;margin:0 auto 20px}.empty .icon{width:33px;height:33px;color:#8cad97}.list-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.person-card{padding:23px}.person-card h3{margin:12px 0 5px}.person-card p{font-size:12px;margin-bottom:12px}.customer-line{display:flex;gap:12px;align-items:center}.notice{padding:13px 17px;background:#fff7e7;border:1px solid #f0dfbd;border-radius:8px;color:#907b49;font-size:12px;line-height:1.6;margin-bottom:20px}.success{background:#ecf7ef;color:#3e7b51;border-color:#cce6d2}.schedule-item{display:flex;gap:20px;align-items:center;padding:20px;border-bottom:1px solid var(--border)}.schedule-item:last-child{border:0}.schedule-item .grow{flex:1}.schedule-item h3{margin:0 0 6px}.schedule-item p{margin:0;font-size:12px;color:var(--muted)}input,select,textarea{background:#fff;border:1px solid #dce4df;border-radius:7px;padding:10px 11px;font-size:12px;color:#284c3b;min-height:39px;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #99c7b0;border-color:transparent}textarea{resize:vertical;min-height:85px}label{font-size:11px;font-weight:600;display:grid;gap:7px;margin-bottom:15px;color:#5f796a}label small{font-weight:400;font-size:10px;color:#8fa193}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.full{grid-column:1/-1}.field-help{font-size:11px;color:#8d9f92;line-height:1.6;margin-bottom:16px}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid var(--border);margin-top:15px}.error{color:#a34c3e;font-size:12px;background:#fff1ed;border:1px solid #f3d7ce;padding:10px 13px;border-radius:7px;line-height:1.6}.error:empty{display:none}.inline-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.spacer{height:20px}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-panel{border:1px solid var(--border);border-radius:8px;padding:18px;margin:0 0 18px}.detail-panel h3{margin:0 0 12px}.detail-panel p{font-size:12px;white-space:pre-wrap;margin:0 0 10px}.detail-panel .small{font-size:10px}.detail-money{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.detail-money>div{padding:15px;background:#f1f6f2;border-radius:8px;font-size:10px;color:#7a9382}.detail-money strong{display:block;color:#325d44;font-size:20px;margin-top:8px;overflow-wrap:anywhere}.history-item{border-left:2px solid #dce9df;padding:0 0 20px 15px;font-size:12px}.history-item small{display:block;margin-top:6px;color:#9ba79f;font-size:10px}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.photo-grid img{width:100%;height:150px;object-fit:cover;border-radius:8px}.auth-page{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:#fff}.auth-hero{background:var(--dark);padding:50px 12%;color:white;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-hero:after{content:'';position:absolute;width:450px;height:450px;border:1px solid #35534b;border-radius:50%;right:-230px;bottom:-80px;pointer-events:none}.auth-hero .brand{margin-bottom:85px}.auth-hero h1{font-size:48px;line-height:1.15;letter-spacing:-2px;max-width:440px}.auth-hero h1 span{color:#a1c5ad}.auth-hero p{font-size:14px;color:#9cb5a4;max-width:380px}.auth-hero .feature{display:flex;align-items:center;gap:12px;font-size:12px;margin:20px 0;color:#c0d4c5}.auth-hero .feature .icon{color:#82b197}.auth-hero .fine{font-size:10px;color:#779181;margin-top:60px}.auth-main{display:flex;align-items:center;justify-content:center;padding:50px 35px}.auth-box{width:100%;max-width:355px}.auth-box h2{font-size:27px;margin-bottom:10px}.auth-box>p{font-size:12px;color:#899b8f;margin-bottom:28px}.auth-box label{margin-bottom:20px}.auth-box .btn{width:100%;margin-top:5px}.auth-divider{text-align:center;position:relative;margin:25px 0;font-size:10px;color:#a2ada4}.auth-footer{text-align:center;margin-top:20px;font-size:11px;color:#8c9f90}.auth-footer button{background:none;border:0;color:var(--teal);font-size:11px}.auth-box .error{margin-bottom:15px}.loading{display:grid;place-items:center;min-height:60vh;color:var(--muted);font-size:13px}.initial-load{display:grid;place-items:center;min-height:100vh;font-size:16px;color:#608073}.loading:before{content:'';width:25px;height:25px;border:2px solid #d8e6dd;border-top-color:var(--teal);border-radius:50%;animation:spin .7s linear infinite;margin-bottom:15px}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:0;border-radius:15px;padding:0;width:min(850px,calc(100% - 28px));max-height:90dvh;box-shadow:0 25px 100px #102b2b33;color:inherit}dialog.small-dialog{width:min(540px,calc(100% - 28px))}dialog::backdrop{background:#102b2b85;backdrop-filter:blur(3px)}.modal-head{padding:23px 25px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;align-items:flex-start;position:sticky;top:0;background:white;z-index:2}.modal-head h2{margin:0 0 6px;font-size:19px}.modal-head p{margin:0;font-size:11px;color:#8b9c91}.modal-head button{background:#f1f5f2;border:0;border-radius:7px;width:29px;height:29px;flex-shrink:0}.modal-body{padding:22px 25px}.modal-body .tabs{padding:0;margin-bottom:20px}.modal-body .tabs button{padding-top:0}.modal-body form{margin:0}.modal-body .notice{font-size:11px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#163c2d;color:#fff;padding:14px 22px;border-radius:9px;box-shadow:0 8px 30px #0002;z-index:100;font-size:12px;transition:transform .2s;max-width:90vw;line-height:1.6}#toast.visible{transform:translateX(-50%) translateY(0)}#toast.bad{background:#803e30}#print-area{display:none}.report-table{margin-top:20px}.mobile-overlay{display:none}.filter-select{min-width:150px}.report-period{font-size:12px;color:#748b7c;margin-bottom:15px}.auth-note{font-size:10px;line-height:1.7;color:#84998b}.job-card-title{display:flex;gap:10px;align-items:center}.table-footer{padding:13px 20px;border-top:1px solid var(--border);font-size:10px;color:#98a59b}.status-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.status-counts>div{background:#f7f9f7;padding:15px;border-radius:8px}.status-counts strong{display:block;font-size:24px;margin-bottom:10px}.status-counts span{font-size:10px;color:#85978a}.hidden{display:none!important}button .icon{width:16px;height:16px}
@media(min-width:1600px){.content{padding-top:40px}.sidebar{width:255px}.workspace{margin-left:255px}}
@media(max-width:1100px){.sidebar{width:210px;padding:25px 15px}.workspace{margin-left:210px}.content{padding:26px 22px}.topbar{padding:0 22px}.demo-bar{padding:9px 22px}.stats{gap:12px}.stat{padding:17px 15px}.stat .stat-value{font-size:24px}.grid-two{grid-template-columns:1fr}.list-cards{grid-template-columns:repeat(2,1fr)}.top-actions .date{display:none}.auth-hero{padding:40px 10%}.auth-hero h1{font-size:40px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:240px}.sidebar.open{transform:translateX(0)}.sidebar.open+.mobile-overlay{display:block;position:fixed;inset:0;background:#102b2b66;z-index:19}.workspace{margin-left:0}.topbar{height:65px;padding:0 17px}.mobile-menu{display:block;background:none;border:0;color:#375b46;padding:5px}.breadcrumb{display:none}.content{padding:23px 17px 35px}.page-head{align-items:flex-start;margin-bottom:20px}.page-head h1{font-size:24px}.page-head p{font-size:11px;max-width:230px}.page-head>.btn{padding:10px;font-size:10px;white-space:nowrap}.top-actions{gap:8px}.topbar .brand-mobile{font-size:13px;font-weight:700;letter-spacing:1px}.demo-bar{padding:8px 17px;flex-wrap:wrap;font-size:10px}.demo-bar>span{max-width:240px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.stat{padding:15px}.stat .stat-label{font-size:10px;margin-bottom:12px}.stat .stat-value{font-size:24px}.stat .stat-icon{width:25px;height:25px}.stat .stat-foot{font-size:9px}.grid-two{gap:17px;margin-bottom:17px}.card-head{padding:18px 16px}.card-body{padding:0 16px 18px}.tabs{padding:0 16px;gap:18px}.tabs button{font-size:10px}.welcome-note{padding:17px;gap:12px}.welcome-note p{font-size:10px}.welcome-note .btn{font-size:10px;padding:8px}.form-grid,.details-grid{grid-template-columns:1fr}.list-cards{grid-template-columns:1fr}.auth-page{grid-template-columns:1fr}.auth-hero{padding:28px 25px}.auth-hero .brand{margin-bottom:28px}.auth-hero h1{font-size:30px;margin-bottom:12px;max-width:none}.auth-hero p{font-size:12px;margin-bottom:0}.auth-hero .feature,.auth-hero .fine{display:none}.auth-main{padding:35px 25px}.auth-box h2{font-size:24px}.detail-money{gap:8px}.detail-money>div{padding:12px 9px;font-size:9px}.detail-money strong{font-size:17px}.modal-head{padding:18px}.modal-body{padding:18px}.schedule-item{padding:16px;gap:12px;flex-wrap:wrap}.schedule-item .grow{min-width:150px}.photo-grid{grid-template-columns:repeat(2,1fr)}.status-counts{grid-template-columns:repeat(2,1fr)}th,td{padding:13px 15px}.search{max-width:none;min-width:180px}.toolbar .filter-select{flex:1}.top-actions>.small{display:none}}
@media(min-width:761px){.brand-mobile{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media print{body>*{display:none!important}body>#print-area{display:block!important;padding:25px;font-family:Arial,sans-serif;color:#111}#print-area h1{font-size:26px}#print-area table{white-space:normal;margin-top:25px}#print-area th,#print-area td{padding:12px 8px;border-bottom:1px solid #ddd;font-size:12px}#print-area .invoice-head{display:flex;justify-content:space-between;gap:30px}#print-area .invoice-total{text-align:right;margin-top:25px}#print-area .invoice-total p{margin:10px 0}#print-area .invoice-footer{margin-top:35px;font-size:11px;color:#555}}


/* Keep correction controls readable on narrow job cards. */
.detail-panel .upcoming{flex-wrap:wrap;align-items:flex-start}.detail-panel .upcoming .grow{min-width:150px;overflow-wrap:anywhere}.history-item p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
