.nav-tabs .active{color:#f2b84b!important;background:#f2b84b29!important;box-shadow:inset 0 0 0 1px #f2b84b8c!important}.report-toolbar .button:not(.secondary){color:#111!important;box-shadow:none!important;background:#f2b84b!important;border-color:#f2b84b!important}.report-toolbar .button:not(.secondary):hover{background:#ffc95d!important;border-color:#ffc95d!important}.remote-report-note{letter-spacing:.03em;color:#6f757b!important;background:0 0!important;border:0!important;font-size:26px!important;font-weight:700!important}:root{color:#f3f5f7;font-synthesis:none;--hik-red:#d71920;--hik-red-bright:#ef3f46;--hik-red-soft:#d719201f;--bg:#101316;--panel:#181d21;--panel-2:#20262b;--line:#30373d;--muted:#939ca4;--text:#f3f5f7;background:#101316;font-family:Inter,Segoe UI Variable Text,Segoe UI,Noto Sans Thai,Arial,sans-serif}*{box-sizing:border-box}body{color:var(--text);background:radial-gradient(circle at 12% -10%,#d7192017,#0000 34%),#101316;margin:0}button,input,select,textarea{font:inherit}a{color:#ff7479}.app-shell{max-width:1600px;min-height:100vh;margin:0 auto;padding:24px}.topbar{border-bottom:1px solid #343b41;justify-content:space-between;align-items:flex-end;gap:22px;padding:8px 0 20px;display:flex;position:relative}.topbar:after{content:"";background:var(--hik-red);width:128px;height:2px;position:absolute;bottom:-1px;left:0}.brand-block{min-width:0}.topbar h1{letter-spacing:-.035em;color:#fff;margin:5px 0 0;font-family:Segoe UI Variable Display,Segoe UI,Noto Sans Thai,Arial,sans-serif;font-size:30px;font-weight:730;line-height:1.08}.brand-word{color:var(--hik-red-bright);font-weight:800}.eyebrow{letter-spacing:.14em;color:#c8cdd1;font-size:11px;font-weight:650}.brand-block>.eyebrow{color:#f2676c;text-transform:uppercase}.header-actions,.toolbar-right{align-items:center;gap:8px;display:flex}.google-login-wrap{align-items:center;min-height:34px;display:flex}.account-chip{text-overflow:ellipsis;white-space:nowrap;color:#cfd4d8;background:#171b1f;border:1px solid #3b434a;border-radius:999px;max-width:260px;padding:7px 10px;font-size:11px;overflow:hidden}.button{border:1px solid var(--hik-red);background:var(--hik-red);color:#fff;cursor:pointer;border-radius:7px;justify-content:center;align-items:center;gap:7px;padding:8px 12px;font-weight:700;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s;display:inline-flex;box-shadow:0 0 #d7192000}.button:hover{background:var(--hik-red-bright);border-color:var(--hik-red-bright);box-shadow:0 0 0 3px #d719201f}.button:active{transform:translateY(1px)}.button:disabled{cursor:not-allowed;opacity:.55}.button.secondary{color:#edf1f4;box-shadow:none;background:#20262b;border-color:#3b444b;font-weight:600}.button.secondary:hover{background:#252c31;border-color:#59646d}.compact-button{padding:7px 10px;font-size:12px}.nav-tabs{gap:5px;margin:16px 0;display:flex}.nav-tabs button{color:#9099a1;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:6px;padding:8px 12px;font-weight:600;display:flex}.nav-tabs button:hover{color:#fff;background:#171c20}.nav-tabs .active,.lang-switch .active{background:var(--hik-red-soft);color:#fff}.nav-tabs .active{box-shadow:inset 0 0 0 1px #d7192052}.lang-switch{background:#20262b;border:1px solid #30383f;border-radius:8px;align-items:center;gap:2px;padding:3px;display:flex}.lang-switch button{color:#959da5;cursor:pointer;background:0 0;border:0;border-radius:5px;padding:6px 8px}.lang-switch .active{color:#fff}.panel,.metric-card,.form-card{background:linear-gradient(#1a1f23,#171b1f);border:1px solid #2f363c;border-radius:10px;box-shadow:0 8px 28px #0000001f}.loading-panel,.error-panel{padding:18px}.error-panel,.form-error{color:#ffadb2}.overview-toolbar{justify-content:flex-end;margin-bottom:10px;display:flex}.overview-toolbar select,.toolbar select{color:#f1f3f5;background:#15191c;border:1px solid #3a4249;border-radius:7px;outline:none;padding:8px 10px}.overview-toolbar select:focus,.toolbar select:focus{border-color:var(--hik-red)}.overview-grid{grid-template-columns:300px 1fr;gap:14px;display:grid}.metric-card{padding:22px;position:relative;overflow:hidden}.metric-card:before{content:"";background:var(--hik-red);width:3px;position:absolute;inset:0 auto 0 0}.metric-card span{color:#b5bcc2;font-size:13px}.metric-card strong{color:#fff;margin:8px 0 2px;font-size:42px;display:block}.metric-card small,.panel-title small{color:#7f8991}.status-panel{padding:16px}.work-panel{grid-column:1/-1;padding:16px}.panel-title{text-transform:uppercase;letter-spacing:.08em;color:#f05a60;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:12px;font-weight:700;display:flex}.status-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.status-card{text-align:left;color:#e4e8eb;cursor:pointer;background:#20262b;border:1px solid #313940;border-radius:8px;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:13px;display:grid}.status-card:hover{background:#242b30;border-color:#59646d}.status-card strong{font-size:20px}.status-dot{background:#8b939b;border-radius:50%;width:8px;height:8px}.status-completed{background:#45b97c}.status-in-progress{background:#37d6c4}.status-waiting-for-parts{background:#f2b84b}.status-cancelled-by-customer{background:#e5636a}.rank-list{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.rank-list button{color:#e2e6e9;cursor:pointer;background:#20262b;border:1px solid #30383f;border-radius:7px;justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.rank-list button:hover{background:#252c31;border-color:#555f68}.panel{padding:16px}.toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.search-box{align-items:center;gap:8px;min-width:420px;display:flex}.search-box input,.field input,.field select,.field textarea,.technician-entry input{color:#f2f4f5;background:#14181b;border:1px solid #384148;border-radius:7px;outline:none;padding:9px 10px}.search-box input{width:100%}.search-box input:focus,.field input:focus,.field select:focus,.field textarea:focus,.technician-entry input:focus{border-color:var(--hik-red);box-shadow:0 0 0 3px #d7192017}.toolbar-actions{align-items:center;gap:8px;display:flex}.table-wrap{border:1px solid #30383f;border-radius:8px;overflow:auto}table{border-collapse:collapse;width:100%;min-width:1500px;font-size:12px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #2d343a;padding:9px 10px}th{color:#aeb6bd;letter-spacing:.04em;white-space:nowrap;background:#14181b;font-size:10px;position:sticky;top:0}tbody tr{cursor:pointer}tbody tr:hover{background:#20262b}.text-cell{white-space:normal;max-width:280px;line-height:1.45}.mono{font-family:Cascadia Mono,Consolas,monospace}.badge{white-space:nowrap;border:1px solid #3b4349;border-radius:999px;padding:4px 8px;font-size:10px;display:inline-flex}.badge-completed{color:#8fe1b5;background:#45b97c14;border-color:#2f7d55}.badge-in-progress{color:#78e3d7;background:#37d6c414;border-color:#287e75}.badge-waiting-for-parts{color:#ffd277;background:#f2b84b14;border-color:#8c641b}.badge-cancelled-by-customer{color:#f29aa0;background:#e5636a14;border-color:#8d373d}.row-actions{gap:4px;display:flex}.icon-button{color:#e1e5e8;cursor:pointer;background:#20262b;border:1px solid #3a434a;border-radius:6px;place-items:center;width:30px;height:30px;display:inline-grid}.icon-button:hover{border-color:#59646d}.icon-button.danger{color:#ff9ca2}.empty-row{color:#8d969e;text-align:center!important;padding:24px!important}.record-count{color:#8d969e;margin-top:10px;font-size:11px}.form-card{max-width:1040px;margin:0 auto;padding:18px}.form-header{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:6px;display:flex}.form-header h2{margin:3px 0;font-size:24px}.section-label{text-transform:uppercase;letter-spacing:.08em;color:#f05a60;border-bottom:1px solid #30373d;margin:22px 0 12px;padding-bottom:7px;font-size:11px;font-weight:700}.grid-2,.grid-3{gap:12px;display:grid}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.selection-grid{align-items:start}.field{flex-direction:column;gap:6px;margin-bottom:12px;display:flex;position:relative}.field label{color:#c5cbd0;font-size:12px}.field input,.field select,.field textarea{width:100%}.field textarea{resize:vertical;line-height:1.5}.compact-field{width:180px}.sensitive-field label:after{content:" · private";color:#7f878e;text-transform:uppercase;letter-spacing:.05em;font-size:9px}.details-block{background:#151a1e;border:1px solid #30383f;border-radius:8px;margin:12px 0;padding:10px 12px}.details-block summary{cursor:pointer;color:#f16a70;margin:2px 0 8px;font-size:12px;font-weight:650}.multi-select-field{z-index:5}.multi-select-trigger{text-align:left;color:#f1f3f5;cursor:pointer;background:#14181b;border:1px solid #384148;border-radius:7px;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:41px;padding:9px 10px;display:flex}.multi-select-trigger span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.multi-select-menu{z-index:30;background:#1a1f23;border:1px solid #424b52;border-radius:8px;max-height:290px;padding:5px;position:absolute;top:70px;left:0;right:0;overflow:auto;box-shadow:0 16px 40px #00000061}.multi-select-option{color:#e3e7ea;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:9px;width:100%;padding:9px;display:flex}.multi-select-option:hover{background:#252c31}.check-box{border:1px solid #4a555d;border-radius:4px;place-items:center;width:17px;height:17px;display:grid}.check-box.checked{background:var(--hik-red);border-color:var(--hik-red);color:#fff}.selected-chips{flex-wrap:wrap;gap:6px;margin-top:7px;display:flex}.selected-chips>span{background:#252b30;border:1px solid #3b454d;border-radius:999px;align-items:center;gap:5px;padding:5px 8px;font-size:11px;display:inline-flex}.selected-chips>span>button{color:#a2aab1;cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.technician-picker{flex-direction:column;gap:8px;display:flex}.technician-entry{grid-template-columns:1fr auto;gap:8px;display:grid}.remote-photo-note,.translation-note{color:#cbd1d5;background:#151a1e;border:1px dashed #4b555d;border-radius:8px;padding:14px}.photo-uploader{flex-direction:column;gap:8px;display:flex}.upload-button{color:#e0e4e7;cursor:pointer;background:#151a1e;border:1px dashed #59646d;border-radius:9px;justify-content:center;align-items:center;gap:9px;padding:20px;display:flex}.upload-button:hover{border-color:var(--hik-red);background:#d719200a}.upload-button input{display:none}.photo-uploader small{color:#8b939b}.photo-preview-row{flex-wrap:wrap;gap:7px;display:flex}.photo-preview-row img,.photo-file{object-fit:cover;border:1px solid #343c42;border-radius:6px;width:112px;height:78px}.photo-file{color:#9ca5ad;text-align:center;justify-content:center;align-items:center;padding:7px;font-size:10px;display:flex;overflow:hidden}.form-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.form-error{background:#e5636a14;border:1px solid #74383c;border-radius:7px;margin-top:14px;padding:10px 12px}.translation-note{color:#ffc865;border-color:#8c641b;max-width:940px;margin:0 auto 10px}.report-wrap{max-width:980px;margin:0 auto}.report-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.report-page{color:#111;background:#fff;border:1px solid #222;width:760px;min-height:1060px;margin:0 auto 30px;padding:18px 20px 22px;font-family:Arial,Tahoma,sans-serif;font-size:12px}.report-head{border-bottom:2px solid #d81920;justify-content:space-between;align-items:center;padding:6px 0 10px;display:flex}.report-brand{letter-spacing:-.04em;color:#d81920;font-size:30px;font-weight:800}.report-address{text-align:right;font-size:10px;line-height:1.45}.report-title{text-align:center;border:1px solid #222;margin-top:8px;padding:8px;font-size:15px;font-weight:700}.report-table{border-collapse:collapse;width:100%;min-width:0}.report-table th,.report-table td{color:#111;background:#fff;border:1px solid #222;padding:6px 8px}.report-table th{text-align:center;color:#111;background:#efefef;font-size:11px;position:static}.report-table tbody tr:hover{background:0 0}.report-details{white-space:pre-wrap;height:50px;line-height:1.45}.signature{text-align:center;padding:14px 0 10px;line-height:1.55}.photo-grid{grid-template-columns:repeat(3,1fr);gap:3px;margin-top:6px;display:grid}.photo-grid>div{background:#eee;height:165px;overflow:hidden}.photo-grid img{object-fit:cover;width:100%;height:100%;display:block}.remote-report-note{color:#555;text-align:center;border:1px solid #222;place-items:center;min-height:260px;margin-top:6px;padding:30px;font-size:18px;font-weight:700;display:grid}.empty-state{text-align:center;color:#8f989f;background:#181d21;border:1px solid #30383f;border-radius:10px;max-width:940px;margin:0 auto;padding:30px}@media (width<=900px){.overview-grid{grid-template-columns:1fr}.work-panel{grid-column:auto}.status-grid,.rank-list{grid-template-columns:1fr 1fr}.toolbar{flex-direction:column;align-items:stretch}.search-box{min-width:0}.toolbar-actions{justify-content:space-between}.grid-3{grid-template-columns:1fr 1fr}.topbar{align-items:flex-start}.header-actions{flex-wrap:wrap;justify-content:flex-end}}@media (width<=640px){.app-shell{padding:12px}.topbar,.form-header,.report-toolbar{flex-direction:column;align-items:stretch}.topbar h1{font-size:23px}.header-actions,.toolbar-right{flex-wrap:wrap;align-items:stretch}.account-chip{max-width:100%}.status-grid,.rank-list,.grid-2,.grid-3{grid-template-columns:1fr}.button{justify-content:center}.compact-field{width:100%}.toolbar-actions{flex-direction:column;align-items:stretch}.lang-switch{width:max-content}.report-page{width:100%;min-width:680px}.report-wrap{overflow:auto}.technician-entry{grid-template-columns:1fr}}@media print{body{background:#fff}.no-print,.topbar,.nav-tabs,.translation-note{display:none!important}.app-shell{background:#fff;max-width:none;padding:0}.report-wrap{max-width:none}.report-page{box-sizing:border-box;border:0;width:210mm;min-height:297mm;margin:0 auto;padding:10mm}.photo-grid>div{height:52mm}}
