
:root{font-family:Inter,Arial,sans-serif;color:#182c40;background:#f4f6f8;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #cbd4dc;background:white;border-radius:6px;padding:9px 12px;color:inherit}button.primary{background:#0878c9;color:white;border-color:#0878c9;font-weight:600}button:focus-visible,input:focus-visible{outline:3px solid #73b9e5}header{background:#fff;height:64px;border-bottom:1px solid #dce3e9;display:flex;align-items:center;gap:16px;padding:0 22px;position:sticky;top:0;z-index:3}header strong{font-size:19px;color:#123552}header small{color:#687886}header .spacer{flex:1}header select{max-width:155px}.shell{display:grid;grid-template-columns:190px 1fr;min-height:calc(100vh - 64px)}nav{background:white;border-right:1px solid #dce3e9;padding:14px 8px;position:sticky;top:64px;height:calc(100vh - 64px)}nav button{display:block;width:100%;text-align:left;border:0;padding:13px 12px;margin:3px 0;color:#405568}nav button.active{color:#086db5;background:#e7f3fd;font-weight:700}main{padding:22px;min-width:0}.bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.bar h1{font-size:23px;margin:0 auto 0 0}.panel{background:#fff;border:1px solid #dce3e9;border-radius:8px;padding:16px;margin-bottom:12px}.muted{color:#6a7885}.pill{display:inline-block;font-size:12px;background:#edf1f5;padding:4px 8px;border-radius:12px}.pill.blue{background:#e4f2ff;color:#0766a9}.pill.green{background:#e5f3e9;color:#28723c}.pill.orange{background:#fff0da;color:#925b0d}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat{font-size:26px;font-weight:700;margin-top:7px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th,td{padding:13px 10px;border-bottom:1px solid #e6ebef}th{font-size:12px;color:#596b7b;background:#f8fafb}tr[data-id]{cursor:pointer}tr[data-id]:hover{background:#f0f8ff}input,select,textarea{padding:9px;border:1px solid #cbd4dc;border-radius:6px;background:#fff;min-width:0}textarea{width:100%;min-height:80px}.schedule{display:grid;grid-template-columns:64px repeat(var(--cols),minmax(145px,1fr));min-width:420px}.schedule>div{border-bottom:1px solid #e5ebf0;border-right:1px solid #e5ebf0;min-height:65px;padding:6px}.schedule .heading{min-height:38px;background:#f7f9fb;font-weight:600}.event{border-left:4px solid #167ec6;background:#e7f3ff;padding:7px;border-radius:4px;cursor:pointer;margin:2px 0;line-height:1.4}.event b{display:block}.event.orange{background:#fff2e0;border-color:#db8b25}.drawer{position:fixed;inset:0;z-index:5;background:#142b4055;display:none;justify-content:flex-end}.drawer.open{display:flex}.detail{background:white;width:min(680px,100%);overflow:auto;padding:20px}.detail h2{margin:5px 0 15px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fields label{display:grid;gap:5px;color:#526372}.fields label.full{grid-column:1/-1}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.notice{padding:9px 12px;background:#fff3d9;border:1px solid #e8d29e;border-radius:6px;color:#76541b;margin-bottom:14px;font-size:12px}.jobcard{display:none}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.tabs button.active{color:#0878c9;border-color:#0878c9}.line{display:flex;justify-content:space-between;gap:10px;margin:10px 0}.right{text-align:right}.danger{color:#a33}.footer{font-size:12px;color:#6a7885;margin-top:15px}.hidden{display:none!important}@media(max-width:760px){header{height:56px;padding:0 10px;gap:8px}header strong{font-size:16px}header small{display:none}header .primary{font-size:12px;padding:7px}header select{width:105px}.shell{display:block}nav{display:flex;position:fixed;top:auto;bottom:0;left:0;right:0;height:65px;z-index:4;padding:3px;background:white;border-top:1px solid #dce3e9;overflow-x:auto}nav button{min-width:65px;text-align:center;padding:9px 6px;font-size:11px;margin:0}nav button span{display:block;font-size:19px}main{padding:12px 12px 85px}.bar h1{font-size:20px}.cards{grid-template-columns:1fr 1fr}.panel{padding:12px}.fields{grid-template-columns:1fr}.fields label.full{grid-column:auto}.jobs-table{display:none}.jobcard{display:block;cursor:pointer}.detail{padding:14px}.schedule{min-width:0;grid-template-columns:44px repeat(var(--cols),minmax(110px,1fr))}.schedule>div{min-height:68px;padding:3px}.event{font-size:12px}.notice{font-size:11px}.bar input{max-width:100%}}

.login{max-width:420px;margin:8vh auto;padding:24px}.login label{display:grid;gap:5px;margin:12px 0}.error{color:#a33;white-space:pre-wrap}.mobile-only{display:none}@media(max-width:760px){.mobile-only{display:block}}
.cols-1{--cols:1}.cols-3{--cols:3}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(132px,1fr));min-width:924px;gap:1px;background:#dce3e9}.calendar-grid>div,.calendar-grid>.heading{background:white;padding:7px;min-height:100px}.calendar-grid>.heading{min-height:35px;background:#f7f9fb}.calendar-grid .today{background:#f1f8ff}.event{display:block;width:100%;text-align:left;white-space:normal;font-weight:400}.event small{display:block;color:#526372}.customer-card{width:100%;display:block;text-align:left}.customer-card:hover{border-color:#0878c9}.tech-picks{display:flex;gap:12px;flex-wrap:wrap}.tech-picks label{display:flex;align-items:center;gap:5px}.visit{margin-top:10px}.calendar-grid .event{font-size:12px}.detail form>.primary{margin-top:12px}.schedule .event{margin-bottom:5px}@media(max-width:760px){.calendar-grid{min-width:770px;grid-template-columns:repeat(7,minmax(110px,1fr))}.schedule.cols-3{min-width:380px}.tech-picks label{display:flex}.calendar-grid .event{padding:5px}}

.cols-0{--cols:0}.cols-1{--cols:1}.cols-2{--cols:2}.cols-3{--cols:3}.cols-4{--cols:4}.cols-5{--cols:5}.cols-6{--cols:6}.cols-7{--cols:7}.cols-8{--cols:8}.cols-9{--cols:9}.cols-10{--cols:10}.cols-11{--cols:11}.cols-12{--cols:12}.cols-13{--cols:13}.cols-14{--cols:14}.cols-15{--cols:15}.cols-16{--cols:16}.cols-17{--cols:17}.cols-18{--cols:18}.cols-19{--cols:19}.cols-20{--cols:20}.cols-21{--cols:21}.cols-22{--cols:22}.cols-23{--cols:23}.cols-24{--cols:24}.cols-25{--cols:25}.cols-26{--cols:26}.cols-27{--cols:27}.cols-28{--cols:28}.cols-29{--cols:29}.cols-30{--cols:30}.cols-31{--cols:31}.cols-32{--cols:32}.cols-33{--cols:33}.cols-34{--cols:34}.cols-35{--cols:35}.cols-36{--cols:36}.cols-37{--cols:37}.cols-38{--cols:38}.cols-39{--cols:39}.cols-40{--cols:40}.cols-41{--cols:41}.cols-42{--cols:42}.cols-43{--cols:43}.cols-44{--cols:44}.cols-45{--cols:45}.cols-46{--cols:46}.cols-47{--cols:47}.cols-48{--cols:48}.cols-49{--cols:49}.cols-50{--cols:50}.cols-51{--cols:51}.cols-52{--cols:52}.cols-53{--cols:53}.cols-54{--cols:54}.cols-55{--cols:55}.cols-56{--cols:56}.cols-57{--cols:57}.cols-58{--cols:58}.cols-59{--cols:59}.cols-60{--cols:60}.cols-61{--cols:61}.cols-62{--cols:62}.cols-63{--cols:63}.cols-64{--cols:64}.cols-65{--cols:65}.cols-66{--cols:66}.cols-67{--cols:67}.cols-68{--cols:68}.cols-69{--cols:69}.cols-70{--cols:70}.cols-71{--cols:71}.cols-72{--cols:72}.cols-73{--cols:73}.cols-74{--cols:74}.cols-75{--cols:75}.cols-76{--cols:76}.cols-77{--cols:77}.cols-78{--cols:78}.cols-79{--cols:79}.cols-80{--cols:80}.cols-81{--cols:81}.cols-82{--cols:82}.cols-83{--cols:83}.cols-84{--cols:84}.cols-85{--cols:85}.cols-86{--cols:86}.cols-87{--cols:87}.cols-88{--cols:88}.cols-89{--cols:89}.cols-90{--cols:90}.cols-91{--cols:91}.cols-92{--cols:92}.cols-93{--cols:93}.cols-94{--cols:94}.cols-95{--cols:95}.cols-96{--cols:96}.cols-97{--cols:97}.cols-98{--cols:98}.cols-99{--cols:99}.cols-100{--cols:100}
.print-document{display:none}
@media print{body>*{display:none!important}body>.print-document{display:block!important;color:#000;background:#fff;padding:1rem;font:12pt Arial,sans-serif}.print-document table{width:100%;border-collapse:collapse}.print-document th,.print-document td{padding:8px;border-bottom:1px solid #ccc;text-align:left}.print-notes{white-space:pre-wrap}}
.inbox-grid{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,2fr);gap:12px}.inbox-thread{display:block;width:100%;text-align:left;margin:0 0 8px;overflow-wrap:anywhere}.inbox-thread small,.inbox-message small{color:#526372}.inbox-history{max-height:60vh;overflow:auto;padding:8px 0}.inbox-message{background:#f3f6f8;border:1px solid #dce3e9;border-radius:8px;padding:12px;margin:10px 10% 10px 0;overflow-wrap:anywhere}.inbox-message.outbound{background:#e7f3ff;margin:10px 0 10px 10%}.inbox-body{white-space:pre-wrap;margin-top:8px}.inbox-message h4{margin:8px 0}.inbox-grid h2{overflow-wrap:anywhere}#inboxconversation{min-width:0;overflow-wrap:anywhere}@media(max-width:760px){.inbox-grid{grid-template-columns:1fr}.inbox-history{max-height:55vh}}

.history-note{white-space:pre-wrap;overflow-wrap:anywhere;border-bottom:1px solid #e6ebef;padding-bottom:10px}nav{overflow:auto}
.control-counters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.control-card p{overflow-wrap:anywhere;margin:8px 0}.control-card .line{flex-wrap:wrap}.control-card.control-overdue{border-left:4px solid #b43b3b}.control-card small{color:#5d6b79}.control-counters button{font-size:13px}.control-card button{margin-top:8px}@media(max-width:760px){.control-counters{gap:5px}.control-counters button{font-size:12px;padding:7px}.control-card .line{gap:5px}}

.schedule .drop-active,.calendar-grid .drop-active{background:#d8efff;outline:2px dashed #0878c9;outline-offset:-2px}.event.dragging{opacity:.5}#fullDay[aria-pressed="true"]{background:#e7f3fd;border-color:#0878c9}nav{overflow-y:auto}@media(max-width:760px){nav{overflow-y:hidden}}

.task-notice{font-weight:700;white-space:nowrap}.task-notice.task-alert{background:#fff1d8;color:#854800;border-color:#dba451}.task-reason{margin:5px 0}.task-notice:focus-visible{outline:3px solid #73b9e5}@media(max-width:760px){.task-notice{font-size:12px;padding:6px;white-space:normal}header{height:auto;min-height:56px;flex-wrap:wrap;padding-block:6px}}

.attachment-photo{display:block;max-width:100%;max-height:220px;object-fit:contain;border-radius:8px;margin:8px 0}.panel a[download]{display:inline-block;margin:8px 12px 8px 0;overflow-wrap:anywhere}.panel input[type=file]{max-width:100%}
