@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-background:hsl(var(--background))}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}}@layer components;@layer utilities{.visible{visibility:visible}.block{display:block}.grid{display:grid}.inline{display:inline}.table{display:table}.min-h-screen{min-height:100vh}.bg-background{background-color:var(--color-background)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}:root{--neutral-50:#f8fafc;--neutral-100:#f1f5f9;--neutral-200:#e2e8f0;--neutral-300:#cbd5e1;--neutral-400:#94a3b8;--neutral-500:#64748b;--neutral-600:#475569;--neutral-700:#334155;--neutral-800:#1e293b;--neutral-900:#0f172a;--neutral-950:#020617;--accent-50:#eef2ff;--accent-100:#e0e7ff;--accent-200:#c7d2fe;--accent-300:#a5b4fc;--accent-400:#818cf8;--accent-500:#6366f1;--accent-600:#4f46e5;--accent-700:#4338ca;--accent-800:#3730a3;--accent-900:#312e81;--accent-950:#1e1b4b;--color-success:#10b981;--color-success-soft:#d1fae5;--color-warning:#f59e0b;--color-warning-soft:#fef3c7;--color-error:#ef4444;--color-error-soft:#fee2e2;--color-info:#3b82f6;--color-info-soft:#dbeafe;--background:210 40% 98%;--foreground:222 47% 11%;--card:0 0% 100%;--card-foreground:222 47% 11%;--popover:0 0% 100%;--popover-foreground:222 47% 11%;--primary:239 84% 67%;--primary-foreground:0 0% 100%;--secondary:210 40% 96.1%;--secondary-foreground:222 47% 11%;--muted:210 40% 96.1%;--muted-foreground:215 16% 47%;--accent:210 40% 96.1%;--accent-foreground:222 47% 11%;--destructive:0 84% 60%;--destructive-foreground:210 40% 98%;--border:214 32% 91%;--input:214 32% 91%;--ring:239 84% 67%;--radius:.5rem;--chart-1:239 84% 67%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}.dark{--background:222 47% 11%;--foreground:210 40% 98%;--card:217 33% 17%;--card-foreground:210 40% 98%;--popover:217 33% 17%;--popover-foreground:210 40% 98%;--primary:239 84% 67%;--primary-foreground:0 0% 100%;--secondary:217 33% 17%;--secondary-foreground:210 40% 98%;--muted:217 33% 17%;--muted-foreground:215 20% 65%;--accent:217 33% 17%;--accent-foreground:210 40% 98%;--destructive:0 62% 30%;--destructive-foreground:210 40% 98%;--border:217 33% 17%;--input:217 33% 17%;--ring:239 84% 67%;--neutral-50:#0f172a;--neutral-100:#1e293b;--neutral-200:#334155;--neutral-300:#475569;--neutral-400:#64748b;--neutral-500:#94a3b8;--neutral-600:#cbd5e1;--neutral-700:#e2e8f0;--neutral-800:#f1f5f9;--neutral-900:#f8fafc;--neutral-950:#fff}:root{--bg:#f8fafc;--bg-soft:#f1f5f9;--surface:#fff;--surface-alt:#f8fafc;--text:#0f172a;--muted:#64748b;--border:#e2e8f0;--accent:#6366f1;--accent-soft:#e0e7ff;--shadow:0 4px 6px -1px #0000000a,0 2px 4px -2px #0000000a}*{box-sizing:border-box}body{color:var(--text);background:hsl(var(--background));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}a{color:inherit;text-decoration:none}.app-shell{grid-template-columns:300px 1fr;min-height:100dvh;display:grid}.app-shell.is-collapsed{grid-template-columns:92px 1fr}.app-sidebar{border-right:1px solid var(--border);background:linear-gradient(160deg,#fff 0%,#f8fafc 55%,#f1f5f9 100%);height:100dvh;padding:20px 16px;position:sticky;top:0}.sidebar-inner{flex-direction:column;gap:18px;height:100%;display:flex}.brand-block{align-items:center;gap:12px;padding:4px 8px 2px;display:flex}.brand-logo{-o-object-fit:cover;object-fit:cover;border-radius:999px;flex-shrink:0;width:42px;height:42px}.brand-copy h2{margin:0;font-size:1rem;line-height:1.15}.brand-copy p{color:var(--muted);margin:3px 0 0;font-size:.8rem}.sidebar-divider{background:var(--border);width:86%;height:1px;margin-left:8px}.sidebar-user-compact{align-items:center;gap:10px;padding:0 8px;display:flex}.user-mini-icon{color:#6366f1;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid}.user-mini-icon svg{stroke:currentColor;fill:none;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px}.sidebar-user-details{gap:1px;display:grid}.sidebar-user-details strong{font-size:.95rem;line-height:1.2}.sidebar-user-details .muted{color:var(--muted)}.sidebar-nav{align-content:start;gap:8px;display:grid}.nav-item{color:#334155;border:1px solid #0000;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;font-size:.92rem;font-weight:700;transition:all .2s;display:flex}.nav-item:hover{border-color:var(--border);background:var(--surface)}.nav-item.active{background:var(--accent-soft);color:#4338ca;border-color:#c7d2fe}.nav-icon{color:#4338ca;background:#e0e7ff;border-radius:10px;place-items:center;width:30px;height:30px;display:grid}.nav-icon svg{stroke:currentColor;fill:none;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.sidebar-footer{gap:10px;margin-top:auto;padding-top:2px;display:grid}.sidebar-divider-bottom{width:86%;margin-left:auto;margin-right:auto}.nav-signout{width:100%}.app-shell.is-collapsed .brand-copy,.app-shell.is-collapsed .nav-label{display:none}.app-shell.is-collapsed .brand-block{justify-content:center}.app-shell.is-collapsed .sidebar-user-compact{display:none}.app-shell.is-collapsed .sidebar-divider{width:68%;margin-left:auto;margin-right:auto}.app-shell.is-collapsed .nav-item{justify-content:center;padding:10px 0}.app-shell.is-collapsed .nav-icon{width:34px;height:34px}.app-shell.is-collapsed .nav-signout{min-height:42px;font-size:0;position:relative}.app-shell.is-collapsed .nav-signout:after{content:"⎋";color:inherit;font-size:18px}.app-content{padding:28px 30px}.content-wrap{gap:16px;width:min(1700px,100%);margin:0 auto;display:grid}.card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:16px;padding:24px}.button{background:var(--accent);color:#fff;cursor:pointer;border:1px solid #0000;border-radius:11px;padding:10px 14px;font-weight:700;transition:transform .1s,opacity .2s,box-shadow .2s}.button:hover{box-shadow:0 8px 18px #6366f138}.button:active{transform:translateY(1px)}.button:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}.button.secondary{color:#1e293b;border-color:var(--border);background:#fff}.button.secondary:hover{box-shadow:0 6px 14px #0f17281a}.button-small{padding:7px 10px;font-size:12px}.confirm-overlay{z-index:80;background:#0f172a59;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-card{background:var(--surface);border:1px solid var(--border);width:min(460px,100%);box-shadow:var(--shadow);border-radius:16px;gap:12px;padding:20px;display:grid}.confirm-card h3{margin:0;font-size:1.1rem}.confirm-card p{color:var(--muted);margin:0}.confirm-actions{justify-content:flex-end;gap:8px;display:flex}.input{border:1px solid var(--border);width:100%;font:inherit;color:var(--text);background:#fff;border-radius:10px;padding:10px 12px}.input:focus{border-color:#a5b4fc;outline:none;box-shadow:0 0 0 3px #6366f126}.label{color:#1e293b;margin-bottom:6px;font-size:13px;font-weight:700;display:block}.stack{gap:14px;display:grid}.row{align-items:center;gap:10px;display:flex}.muted{color:var(--muted)}.redirect-loader-dots{align-items:center;gap:8px;display:inline-flex}.redirect-loader-dot{border-radius:999px;width:10px;height:10px;animation:1.1s ease-in-out infinite redirectPulse}.redirect-loader-dot.dot-1{background:#6366f1}.redirect-loader-dot.dot-2{background:#818cf8;animation-delay:.12s}.redirect-loader-dot.dot-3{background:#c7d2fe;animation-delay:.24s}@keyframes redirectPulse{0%,to{opacity:.65;transform:scale(.86)}50%{opacity:1;transform:scale(1)}}.error{color:#dc2626;background:#fef2f2;border:1px solid #fca5a5;border-radius:10px;padding:10px;font-size:14px}.dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;display:grid}.followup-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media (min-width:1680px){.followup-stats-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}@media (max-width:1460px){.followup-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:1080px){.followup-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){.followup-stats-grid{grid-template-columns:1fr}}.filters-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;display:grid}.table-wrap{border-radius:12px;width:100%;overflow-x:auto}.table-wrap.sticky-head{border:1px solid var(--border);max-height:min(68vh,920px);overflow:auto}.table{border-collapse:collapse;width:100%;min-width:980px}.table th,.table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:12px 10px;font-size:14px}.table th{color:#475569;white-space:nowrap;background:#f8fafc;font-weight:700}.table-sort{font:inherit;font-weight:inherit;color:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;display:inline-flex}.table-sort span{color:#94a3b8;font-size:12px}.sortable-table th{padding:0}.sortable-table .table-sort{text-align:left;justify-content:space-between;width:100%;min-height:44px;padding:12px 10px;display:flex}.table-wrap.sticky-head .table th{z-index:6;position:sticky;top:0;box-shadow:inset 0 -1px #e2e8f0}.table tbody tr:hover td{background:#f8fafc}.table tbody tr.row-focused td{background:#e0e7ff}.table tbody tr.row-focused:hover td{background:#dbe4ff}.table-row-clickable{cursor:pointer}.table-row-clickable td{transition:background-color .15s}.table-row-clickable:focus-visible{outline-offset:-2px;outline:2px solid #a5b4fc}.table-row-clickable.expanded td{background:#eef2ff}.table-detail-row td{background:#f8fafc;border-bottom-color:#e2e8f0}.item-details-layout{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px;display:grid}.certificates-detail-layout{grid-template-columns:1fr;gap:12px;display:grid}.item-details-panel{border:1px solid var(--border);background:#fff;border-radius:12px;padding:14px}.cert-form-grid,.item-meta-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;display:grid}.item-meta-grid div{gap:2px;display:grid}.item-meta-grid strong{font-size:14px;line-height:1.3}.detail-table{min-width:640px}.draft-items-wrap{width:100%;overflow-x:auto}.draft-items-table{table-layout:fixed;width:100%;min-width:1320px}.draft-items-table th,.draft-items-table td{vertical-align:top;overflow:hidden}.draft-col-index{width:46px}.draft-col-item-name{width:220px}.draft-col-type,.draft-col-model,.draft-col-serial{width:160px}.draft-col-manufacture,.draft-col-commissioned,.draft-col-expiry{width:170px}.draft-col-upload{width:240px}.draft-col-action{width:120px}.draft-items-table th:last-child{text-align:center;min-width:120px}.draft-items-table td:last-child{text-align:center;vertical-align:top;min-width:120px;padding-top:16px}.draft-items-table .input,.draft-file-input{width:100%;min-width:0;max-width:100%}.draft-file-count{font-size:12px}.draft-row-actions{justify-content:center;align-items:center;gap:8px;margin-top:2px;display:inline-flex}.icon-action-button{cursor:pointer;background:#fff;border:1.5px solid;border-radius:10px;justify-content:center;align-items:center;width:42px;height:42px;padding:0;transition:all .18s;display:inline-flex;box-shadow:0 1px #14285a08}.icon-action-button svg{stroke:currentColor;fill:none;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.icon-action-button.save{color:#4338ca;background:#eef2ff;border-color:#c7d2fe}.icon-action-button.save:hover{color:#3730a3;border-color:#a5b4fc;box-shadow:0 0 0 2px #6366f11f}.icon-action-button.delete{color:#dc2626;background:#fef2f2;border-color:#fca5a5}.icon-action-button.delete:hover{color:#b91c1c;border-color:#f87171;box-shadow:0 0 0 2px #dc26261a}.icon-action-button:disabled{opacity:.6;cursor:not-allowed}.certificate-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.certificate-list li{background:#fafbfc;border:1px solid #e2e8f0;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:10px;display:flex}.followup-table{min-width:1240px}.followup-table col.col-history{width:5%}.followup-table col.col-job{width:9%}.followup-table col.col-customer{width:16%}.followup-table col.col-serial{width:9%}.followup-table col.col-expiry{width:8%}.followup-table col.col-next,.followup-table col.col-last{width:10%}.followup-table col.col-tracking{width:9%}.followup-table col.col-comment{width:24%}.followup-table .status-editor{min-width:146px}.followup-table .status-trigger{padding:7px 10px}.history-col-head{color:#64748b;letter-spacing:.02em;justify-content:center;align-items:center;width:100%;font-size:12px;display:inline-flex}.history-toggle{color:#6366f1;cursor:pointer;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:10px;justify-content:center;align-items:center;width:36px;height:36px;transition:all .15s;display:inline-flex}.history-toggle:hover{background:#e2e8f0;border-color:#cbd5e1}.history-toggle.active{color:#4338ca;background:#e0e7ff;border-color:#a5b4fc}.history-toggle svg{stroke:currentColor;fill:none;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.history-delete-button{color:#dc2626;cursor:pointer;background:#fef2f2;border:1px solid #fca5a5;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:700}.history-delete-button:disabled{opacity:.65;cursor:not-allowed}.followup-table td:last-child,.followup-table th:last-child{text-align:center}.badge{border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:700;display:inline-flex}.badge-status-pending{color:#1d4ed8;background:#eff4ff}.badge-status-in-progress{color:#c2410c;background:#fff7ed}.badge-status-completed{color:#15803d;background:#f0fdf4}.badge-status-blocked{color:#dc2626;background:#fef2f2}.badge-followup-pending-follow-up{color:#c2410c;background:#fff7ed}.badge-followup-delivered-to-customer{color:#1d4ed8;background:#eff4ff}.badge-followup-old-sensor-returned{color:#15803d;background:#f0fdf4}.badge-followup-unknown{color:#475569;background:#f1f5f9}.badge-tracking-not-contacted{color:#4338ca;background:#eef2ff}.badge-tracking-proceeding{color:#15803d;background:#f0fdf4}.badge-tracking-delayed-budget{color:#a16207;background:#fff7ed}.badge-tracking-delayed-needed{color:#a16207;background:#fefce8}.badge-tracking-no-response{color:#52525b;background:#f4f4f5}.badge-tracking-declined{color:#dc2626;background:#fef2f2}.badge-tracking-switched{color:#6d28d9;background:#f5f3ff}.status-editor{min-width:180px;position:relative}.status-trigger{cursor:pointer;text-align:center;border:1px solid #e2e8f0;justify-content:center;width:100%;padding:8px 12px}.status-menu{z-index:12;border:1px solid var(--border);background:#fff;border-radius:12px;gap:6px;width:max-content;min-width:240px;padding:8px;display:grid;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 10px 24px #0f172a29}.status-option{text-align:left;cursor:pointer;background:#f8fafc;border:1px solid #0000;border-radius:10px;padding:6px}.status-option:hover{border-color:#c7d2fe}.status-option.active{background:#eef2ff;border-color:#a5b4fc}.pagination-bar{color:var(--muted);grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:10px;margin-top:14px;font-size:13px;display:grid}.pagination-section{align-items:center;gap:8px;display:flex}.pagination-left{justify-content:flex-start}.pagination-center{justify-content:center}.pagination-right{justify-content:flex-end}.pagination-input{width:74px;height:34px;padding:6px 10px}.pagination-select{width:92px;height:34px;padding:6px 10px}@media (max-width:1080px){.app-content{padding:20px 16px}.card{padding:18px}.table{min-width:900px}}@media (max-width:920px){.app-shell,.app-shell.is-collapsed{grid-template-columns:1fr}.app-sidebar{border-right:0;border-bottom:1px solid var(--border);height:auto;padding:12px;position:static}.sidebar-inner{gap:10px}.sidebar-user-compact{display:none}.sidebar-divider{width:100%;margin-left:0}.sidebar-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-item{justify-content:center}.nav-icon{width:28px;height:28px}.sidebar-footer{margin-top:0}.app-shell.is-collapsed .brand-copy,.app-shell.is-collapsed .nav-label{display:block}.app-shell.is-collapsed .nav-signout{font-size:inherit}.app-shell.is-collapsed .nav-signout:after{content:none}.pagination-bar{grid-template-columns:1fr}.pagination-left,.pagination-center,.pagination-right{justify-content:flex-start}.item-details-layout,.certificates-detail-layout{grid-template-columns:1fr}.certificate-list li{flex-direction:column;align-items:flex-start}}
