:root{color-scheme:dark;font-family:Inter,Segoe UI,Noto Sans TC,system-ui,sans-serif;--app-background: radial-gradient(circle at top, #2898c65e, #1e293b);color:#e2e8f0}body,html,#root{margin:0;min-height:100%;background:var(--app-background)}.login-wrapper{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:clamp(24px,5vw,60px)}.login-card{width:min(420px,100%);background:#0f172aeb;border:1px solid rgba(148,163,184,.35);border-radius:24px;padding:clamp(28px,6vw,40px);box-shadow:0 24px 60px #080b14a6;display:flex;flex-direction:column;gap:24px;color:#e2e8f0}.login-card h1{margin:0;font-size:clamp(1.8rem,4vw,2.3rem);letter-spacing:.05em;text-align:center}.login-subtitle{margin:0;text-align:center;color:#94a3b8;font-size:.95rem}.login-form{display:flex;flex-direction:column;gap:18px}.login-field{display:flex;flex-direction:column;gap:8px}.login-label{font-weight:600;color:#cbd5f5;font-size:.95rem}.login-input{width:100%;border-radius:12px;border:1px solid rgba(59,130,246,.45);background:#0f172a99;color:#e2e8f0;padding:12px 14px;font-size:1rem;transition:border-color .2s ease,box-shadow .2s ease}.login-input:focus{outline:none;border-color:#60a5facc;box-shadow:0 0 0 4px #3b82f633}.login-error{margin:0;color:#f87171;text-align:center;font-size:.9rem}.login-button{border:none;border-radius:999px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#f8fafc;padding:12px 20px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.login-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 18px 30px #2563eb59}.login-button:disabled{opacity:.6;cursor:not-allowed;box-shadow:none;transform:none}.app-shell{display:flex;min-height:100vh}.app{flex:1;min-height:100vh;padding:24px 32px 40px;display:flex;flex-direction:column;gap:28px}.app-top-banner{display:flex;justify-content:space-between;align-items:center;background:#0f172aeb;border:1px solid rgba(59,130,246,.25);border-radius:20px;padding:18px 24px;box-shadow:0 18px 40px #080b1473;gap:16px;position:sticky;top:24px;z-index:30;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);margin-bottom:28px}.app-top-banner-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.app-top-banner-title{font-size:1.3rem;font-weight:600;letter-spacing:.05em}.app-top-banner-user{display:flex;align-items:center;gap:12px}.app-top-banner-avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#7c3aed);display:flex;align-items:center;justify-content:center;font-weight:600;color:#f8fafc;font-size:1.1rem}.app-top-banner-userinfo{display:flex;flex-direction:column;gap:2px;text-align:right}.app-top-banner-name{font-weight:600;font-size:1rem}.app-top-banner-meta{font-size:.85rem;color:#94a3b8}.logout-button{border:none;border-radius:999px;padding:8px 14px;font-size:.9rem;font-weight:600;cursor:pointer;color:#0f172a;background:linear-gradient(135deg,#fca5a5,#f87171);box-shadow:0 12px 24px #f8717159;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}.logout-button:hover,.logout-button:focus{transform:translateY(-1px);box-shadow:0 16px 28px #f8717173}.logout-button:active{transform:translateY(0)}header{display:flex;flex-direction:column;gap:8px}header h1{margin:0;font-size:2rem;letter-spacing:.05em}header p{margin:0;color:#94a3b8}.status{padding:32px;background:#0f172acc;border:1px solid rgba(148,163,184,.2);border-radius:16px;text-align:center;font-size:1.2rem}.status-error{color:#f87171;border-color:#f8717166}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.mini-chart-card{display:flex;flex-direction:column;gap:12px}.level-chart-svg{width:100%;height:auto}.level-chart-axis{fill:#94a3b8;font-size:.55rem}.level-chart-label,.level-chart-value{fill:#e2e8f0;font-size:.5rem}.level-chart-bar{fill:#3b82f68c}.level-chart-empty{color:#94a3b8;font-size:.85rem}.dashboard-summary-row{margin-bottom:16px}.dashboard-analysis-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;align-items:stretch}.system-distribution-column{display:flex;flex-direction:column;gap:16px}.dashboard-timeline-row,.symptom-row,.carset-row,.carset-sunburst-row{margin-top:16px}.sunburst-panel svg{width:100%;height:auto}.sunburst-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.sunburst-reset{background:#3b82f626;border:1px solid rgba(59,130,246,.4);color:#e0ecff;padding:6px 12px;border-radius:8px;cursor:pointer}.sunburst-container{position:relative}.sunburst-tooltip{position:absolute;background:#0f172aeb;border:1px solid rgba(148,163,184,.4);border-radius:8px;padding:8px 10px;color:#f8fafc;font-size:.85rem;pointer-events:none;box-shadow:0 10px 25px #0f172a59}.sunburst-tooltip-name{font-weight:600}.sunburst-tooltip-value{font-size:.8rem;color:#fcd34d}.sunburst-label{fill:#f8fafc;font-size:.3rem;pointer-events:none}.symptom-panel svg{width:100%;height:auto}.symptom-chart-axis{fill:#94a3b8;font-size:.45rem}.symptom-chart-label,.symptom-chart-value{fill:#e2e8f0;font-size:.4rem}.symptom-chart-summary{margin-top:8px;text-align:right;color:#d1d5f0;font-size:.85rem}@media (max-width: 768px){.symptom-chart-axis{font-size:.75rem}.symptom-chart-label,.symptom-chart-value{font-size:.7rem}}.root-system-panel svg{width:100%;height:auto}.root-system-content{display:flex;flex-direction:column;gap:12px}.root-system-legend{display:flex;flex-direction:column;gap:8px}.root-system-total{margin-top:8px;text-align:center;color:#cbd5f5;font-size:.9rem}.root-axis-label,.root-system-axis-label,.root-system-value{fill:#e2e8f0;font-size:.45rem}.root-system-axis-label{font-weight:600}.root-system-value{font-weight:500}@media (max-width: 768px){.root-axis-label,.root-system-axis-label,.root-system-value{font-size:.55rem}}.panel-2d{position:relative}.bars2d-axis-label,.bars2d-label,.bars2d-value{fill:#e2e8f0;font-size:.55rem}.bars2d-label{font-weight:600}.bars2d-value{font-weight:500}.trend2d-panel{position:relative}.trend2d-axis-label{fill:#e2e8f0;font-size:.7rem}.trend2d-legend{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:.85rem;color:#e2e8f0}.trend2d-legend-bar{display:grid;grid-template-columns:repeat(20,1fr);width:160px;height:12px;border-radius:8px;overflow:hidden;border:1px solid rgba(148,163,184,.4)}.trend2d-legend-bar span{display:block}.trend2d-tooltip{position:absolute;padding:10px 12px;background:#0f172aeb;border:1px solid rgba(148,163,184,.4);border-radius:10px;color:#f8fafc;font-size:.85rem;pointer-events:none;box-shadow:0 10px 30px #0f172a59;z-index:2}.trend2d-tooltip-system{font-weight:600;margin-bottom:2px}.trend2d-tooltip-date{color:#cbd5f5;font-size:.8rem}.trend2d-tooltip-value{margin-top:4px;font-weight:500}.trend2d-empty-note{margin-top:8px;font-size:.85rem;color:#94a3b8}@media (max-width: 768px){.trend2d-axis-label{font-size:1rem}.trend2d-legend,.trend2d-tooltip{font-size:1.1rem}.trend2d-tooltip-date{font-size:1rem}.trend2d-empty-note{font-size:1.1rem}}.card{background:#0f172acc;border:1px solid rgba(148,163,184,.2);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:12px}.card .label{color:#94a3b8;font-size:.9rem;text-transform:uppercase;letter-spacing:.06em}.card .value{font-size:1.4rem;font-weight:600;color:#f8fafc}.split{display:flex;flex-wrap:wrap;gap:8px}.badge{background:#3b82f629;border:1px solid rgba(96,165,250,.4);padding:6px 10px;border-radius:999px;font-size:.85rem}.grid{display:grid;grid-template-columns:minmax(320px,1fr) 2fr;gap:20px}.panel{background:#0f172ae6;border:1px solid rgba(148,163,184,.25);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:16px;box-shadow:0 24px 60px #0f172a73}.panel h2{margin:0;font-size:1.25rem;color:#f1f5f9}.panel-3d{min-height:380px}.panel-3d canvas{height:320px!important;border-radius:14px}.trend-panel{position:relative}.trend-content{display:flex;align-items:flex-start;gap:18px;margin-top:12px}.trend-canvas{flex:2 1 0;min-width:0}.panel-header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.panel-header .hint{font-size:.85rem;color:#8ea3c9}.trend-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:6px;font-size:.85rem;color:#d0d6f0}.trend-tooltip{flex:0 0 32%;background:#0a1020d9;border:1px solid rgba(148,163,184,.25);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;min-height:320px;max-height:320px;max-width:32%;overflow-y:auto}.tooltip-header{display:flex;justify-content:space-between;align-items:center;font-size:.95rem;color:#dbe4ff;gap:12px}.tooltip-date{font-weight:600;letter-spacing:.04em}.tooltip-system{padding:4px 8px;border-radius:8px;background:#3b82f633;border:1px solid rgba(96,165,250,.4);color:#bfdbfe;font-size:.85rem}.tooltip-count{font-size:.9rem;color:#cbd5f5}.tooltip-list{margin:0;padding-left:16px;display:flex;flex-direction:column;gap:6px}.tooltip-list li{list-style:disc;color:#e2e8ff;font-size:.85rem}.tooltip-order{font-weight:600;margin-right:6px;color:#f8fafc}.tooltip-desc{display:block;margin-top:2px;color:#e2e8ff;white-space:pre-wrap}.tooltip-note{display:block;margin-top:2px;color:#cbd5f5}.tooltip-cause{display:block;margin-top:2px;color:#a0b4e2}.tooltip-meta{display:block;margin-top:2px;color:#94a3c7}.tooltip-more{font-size:.8rem;color:#94a3c7}@media (max-width: 960px){.trend-content{flex-direction:column}.trend-tooltip{flex:none;max-width:100%;min-height:auto;margin-top:10px}}.tooltip-empty{color:#94a3c7;font-size:.85rem}.legend-item{display:inline-flex;align-items:center;gap:8px}.legend-swatch{width:14px;height:14px;border-radius:4px}.timeline-panel{display:flex;flex-direction:column;position:relative}.timeline-panel svg{width:100%}.timeline-panel .x-axis text,.timeline-panel .y-axis text{fill:#94a3b8;font-size:.7rem}.timeline-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:12px;font-size:.85rem;color:#d1d5f0}.timeline-legend-item{display:inline-flex;align-items:center;gap:8px}.timeline-legend-swatch{width:12px;height:12px;border-radius:999px}.timeline-legend-label{white-space:nowrap}.timeline-tooltip{position:absolute;min-width:140px;max-width:220px;background:#0f172aeb;border:1px solid rgba(148,163,184,.4);border-radius:12px;padding:10px 12px;box-shadow:0 12px 32px #0f172a66;pointer-events:none;color:#f8fafc;font-size:.85rem;z-index:3}.timeline-tooltip-label{font-weight:600;margin-bottom:4px;color:#bfdbfe}.timeline-tooltip-system{margin-bottom:2px;color:#cbd5f5}.timeline-tooltip-value{color:#fcd34d;font-weight:600}.fault-tabs-container{display:flex;flex-direction:column;gap:16px}.fault-tabs-header{display:flex;flex-wrap:wrap;gap:8px}.fault-tab{padding:8px 14px;border-radius:999px;border:1px solid rgba(148,163,184,.4);background:#0f172a99;color:#e2e8ff;font-size:.9rem;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease}.fault-tab:hover{border-color:#94a3b8a6}.fault-tab.active{background:#3b82f640;border-color:#3b82f673;color:#bfdbfe}.fault-tab-panel{border-radius:16px;border:1px solid rgba(148,163,184,.35);padding:16px 18px;background:#0a1020a6;display:flex;flex-direction:column;gap:16px}.component-panel{min-height:260px}.component-panel h3{margin:0 0 12px;font-size:1.1rem;color:#f1f5f9}.bar-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:12px;font-size:.85rem;color:#d1d7f1}.warning{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border-radius:14px;border:1px solid rgba(248,113,113,.35);background:#ef44441a;color:#fecaca;font-size:.95rem}svg{width:100%;height:auto}.sidebar{width:240px;background:#0a1020eb;border-right:1px solid rgba(148,163,184,.25);display:flex;flex-direction:column;padding:18px 16px;gap:18px;flex-shrink:0;position:sticky;top:24px;max-height:calc(100vh - 48px);overflow:hidden}.sidebar-header{display:flex;align-items:center;justify-content:flex-start;gap:12px;color:#f8fafc;font-weight:600;letter-spacing:.04em}.sidebar-title{white-space:nowrap}.sidebar-toggle{border:none;border-radius:999px;background:#f8fafc26;color:#f8fafc;padding:10px 18px;font-size:.95rem;cursor:pointer;transition:background .2s ease,transform .2s ease}.sidebar-toggle:hover{background:#f8fafc40;transform:translateY(-1px)}.sidebar-nav ul{list-style:none;margin:0;padding:0 4px 0 0;display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-height:0;overflow-y:auto}.sidebar-link{width:100%;display:flex;align-items:center;gap:12px;border:none;border-radius:12px;padding:10px 12px;background:#1e293ba6;color:#e2e8f0;cursor:pointer;font-size:.95rem;transition:background .2s ease,transform .2s ease}.sidebar-link:hover{background:#3b82f640;transform:translate(4px)}.sidebar-link.active{background:linear-gradient(135deg,#3b82f673,#0e7490a6);color:#f8fafc;box-shadow:0 10px 24px #3b82f659}.sidebar-link-icon{width:32px;height:32px;border-radius:10px;background:#3b82f659;display:flex;align-items:center;justify-content:center;color:#bfdbfe;font-weight:600;font-size:.9rem}.sidebar-link-text{flex:1;text-align:left;white-space:nowrap}.app-shell.sidebar-hidden .sidebar{display:none}.app-shell.sidebar-hidden .app{padding-left:clamp(24px,4vw,40px)}.workorder-page{display:flex;flex-direction:column;gap:24px}.page-header{scroll-margin-top:200px;padding-top:16px}.page-header h1{margin-top:0}.workorder-filter-panel{gap:18px}.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.filter-field{display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:#cbd5f5}.filter-field input,.filter-field select{border-radius:10px;border:1px solid rgba(148,163,184,.4);background:#0f172acc;color:#f8fafc;padding:8px 10px;font-size:.95rem;transition:border-color .2s ease,box-shadow .2s ease}.filter-field input:focus,.filter-field select:focus{outline:none;border-color:#3b82f6b3;box-shadow:0 0 0 2px #3b82f640}.filter-field-full{grid-column:1 / -1}.filter-search-row{display:flex;gap:8px;align-items:center}.filter-search-row input{flex:1}.filter-search-row button{white-space:nowrap;flex-shrink:0}.filter-actions{display:flex;justify-content:space-between;align-items:center;font-size:.9rem}.filter-hint{color:#94a3b8}.system-filter-panel{margin-top:12px;padding:12px 16px;border:1px solid rgba(148,163,184,.35);border-radius:8px;background:#0f172a8c}.system-filter-panel h3{margin:0 0 8px;font-size:1rem;color:#e2e8f0}.system-filter-controls{display:flex;flex-wrap:wrap;gap:12px 18px}.system-filter-controls label{display:flex;flex-direction:column;flex:1 1 220px;font-size:.95rem;color:#cbd5f5}.system-filter-controls select{margin-top:6px;padding:8px 12px;border-radius:8px;border:1px solid rgba(148,163,184,.5);background:#0f172ae6;color:#f8fafc;font-size:1rem}.button-primary,.button-secondary{border-radius:999px;border:none;padding:8px 18px;font-size:.95rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}.button-primary{background:linear-gradient(135deg,#2563eb,#4c1d95);color:#fff;border:1px solid rgba(96,165,250,.4)}.button-danger{border-radius:999px;border:none;padding:8px 18px;font-size:.95rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff;border:1px solid rgba(252,165,165,.4)}.button-secondary{background:#1e293bb3;color:#cbd5f5;border:1px solid rgba(148,163,184,.4)}.button-primary:hover,.button-secondary:hover,.button-danger:hover{transform:translateY(-1px);box-shadow:0 12px 24px #3b82f640}.button-danger:hover{box-shadow:0 12px 24px #ef444459}.button-primary:disabled,.button-secondary:disabled,.button-danger:disabled{opacity:.6;cursor:not-allowed;box-shadow:none;transform:none}.pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-left:auto;font-size:.9rem;color:#cbd5f5}.pagination-jump{display:inline-flex;align-items:center;gap:8px}.pagination-jump select{border-radius:10px;border:1px solid rgba(148,163,184,.4);background:#0f172acc;color:#f8fafc;padding:8px 10px;font-size:.95rem;transition:border-color .2s ease,box-shadow .2s ease}.pagination-jump select:focus{outline:none;border-color:#3b82f6b3;box-shadow:0 0 0 2px #3b82f640}.workorder-table-panel{overflow:auto}.workorder-table{width:100%;border-collapse:collapse;font-size:.95rem}.workorder-table thead{background:#1e293be6}.workorder-table th,.workorder-table td{padding:12px 14px;text-align:left;border-bottom:1px solid rgba(148,163,184,.2)}.workorder-table tbody tr:hover{background:#3b82f61f}.workorder-table td:nth-child(4){max-width:320px}.workorder-card-panel{display:flex;flex-direction:column;gap:16px}.workorder-card-list{display:flex;flex-direction:column;gap:14px}.workorder-card{background:#0f172ae0;border:1px solid rgba(148,163,184,.25);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 18px 30px #0f172a59}.workorder-card-header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.workorder-card-id{font-weight:700;font-size:1.05rem;color:#f8fafc}.workorder-card-status{display:flex;align-items:center;justify-content:flex-end}.status-chip{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;font-size:.85rem;font-weight:600;letter-spacing:.02em;border:1px solid rgba(148,163,184,.35);color:#e2e8f0;background:#94a3b826;white-space:nowrap}.status-chip-reported{color:#f472b6;border-color:#f472b699;background:#f472b626}.status-chip-accepted{color:#60a5fa;border-color:#60a5fa99;background:#60a5fa26}.status-chip-dispatched{color:#facc15;border-color:#facc1599;background:#facc152e}.status-chip-completed{color:#86efac;border-color:#86efac99;background:#86efac2e}.status-chip-reviewed{color:#4ade80;border-color:#4ade8099;background:#4ade802e}.status-chip-closed{color:#34d399;border-color:#34d39999;background:#34d3992e}.status-chip-merged{color:#c084fc;border-color:#c084fc99;background:#c084fc2e}.status-chip-transferred,.status-chip-void{color:#f97373;border-color:#f9737399;background:#f9737329}.status-chip-shortage{color:#dc2626;border-color:#dc262699;background:#dc262626}.status-chip-observation{color:#ea580c;border-color:#ea580c99;background:#ea580c26}.user-status-tag{display:inline-flex;align-items:center;justify-content:center;padding:2px 10px;border-radius:999px;font-size:.75rem;font-weight:600;background:#94a3b826;color:#e2e8f0;border:1px solid rgba(148,163,184,.35)}.user-status-active{background:#22c55e2e;color:#4ade80;border-color:#22c55e73}.user-status-pending{background:#facc152e;color:#facc15;border-color:#facc1573}.user-table td:nth-child(7){white-space:normal;word-break:break-word;max-width:320px}.workorder-card-body{display:flex;flex-direction:column;gap:10px}.workorder-card-field{display:flex;flex-direction:column;gap:4px}.workorder-card-label{font-size:.8rem;color:#94a3b8;letter-spacing:.03em}.workorder-card-value{font-size:.95rem;color:#e2e8f0;line-height:1.4;word-break:break-word}.workorder-card-path{white-space:pre-wrap}.system-path-list{display:flex;flex-direction:column;gap:4px;color:#e2e8f0}.system-path-node{display:flex;align-items:center;gap:6px;line-height:1.35}.system-path-branch{color:#94a3b8;font-size:.85rem}.system-path-name{word-break:break-word}.system-path-empty{color:#94a3b8}.system-path-cell{min-width:220px}.workorder-card-footer{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.workorder-detail{display:flex;flex-direction:column;gap:20px}.detail-actions{display:flex;flex-wrap:wrap;gap:12px}.workorder-detail-card{background:#0f172ae0;border:1px solid rgba(148,163,184,.25);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:18px;box-shadow:0 22px 38px #0f172a59}.workorder-detail-card>h2{margin:0;font-size:1.4rem;color:#f8fafc}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.detail-item{background:#0f172aa6;border:1px solid rgba(148,163,184,.2);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}.detail-label{font-size:.85rem;color:#94a3b8;letter-spacing:.03em}.detail-value{font-size:1rem;color:#e2e8f0;word-break:break-word}.detail-section{display:flex;flex-direction:column;gap:10px}.detail-section h3{margin:0;font-size:1.05rem;color:#cbd5f5}.detail-hint{margin:0;font-size:.9rem;color:#cbd5f5}.detail-error{margin:0;font-size:.9rem;color:#f87171}.detail-empty{margin:0;color:#94a3b8}.detail-text-block{max-height:none}.detail-log-list{display:flex;flex-direction:column;gap:12px}.detail-log-entry{background:#0f172a99;border:1px solid rgba(148,163,184,.18);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}.detail-log-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px}.detail-log-date{font-size:.95rem;font-weight:600;color:#e2e8f0}.detail-log-user{font-size:.9rem;color:#94a3b8}.detail-log-type{font-size:.95rem;color:#fbbf24;font-weight:600}.detail-log-reason{margin:0;font-size:.9rem;color:#e2e8f0;line-height:1.5;white-space:pre-wrap}.picture-section{display:flex;flex-direction:column;gap:10px}.picture-list{display:flex;flex-direction:column;gap:12px}.picture-entry{background:#0f172a99;border:1px solid rgba(148,163,184,.18);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}.picture-entry-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px}.picture-entry-date{font-size:.95rem;font-weight:600;color:#e2e8f0}.picture-entry-count{font-size:.85rem;color:#94a3b8}.picture-entry-note{margin:0;font-size:.9rem;color:#94a3b8;line-height:1.5;white-space:pre-wrap}.picture-entry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.picture-entry-grid a{display:block;border-radius:10px;overflow:hidden;border:1px solid rgba(148,163,184,.2)}.picture-entry-image{width:100%;height:100%;object-fit:cover;display:block}.workorder-history-list{display:flex;flex-direction:column;gap:16px}.workorder-history-entry{background:#0f172a99;border:1px solid rgba(148,163,184,.2);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}.workorder-history-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px}.workorder-history-status-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.workorder-status-chip{padding:2px 10px;border-radius:999px;font-size:.85rem;font-weight:600;letter-spacing:.01em;color:#f8fafc;border:1px solid transparent}.workorder-status-chip.completed{background:#22c55e40;border-color:#22c55e66;color:#bbf7d0}.workorder-status-chip.pending{background:#fbbf2433;border-color:#fbbf2459;color:#fde68a}.workorder-status-chip.cancelled{background:#f8717133;border-color:#f8717173;color:#fecaca}.workorder-breaked-flag{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:999px;border:1px solid rgba(251,146,60,.7);background:#fb923c2e;color:#ffedd5;font-size:.8rem;font-weight:600}.workorder-breaked-icon{font-size:.9rem;line-height:1}.workorder-history-user{font-size:1rem;font-weight:600;color:#f8fafc}.workorder-history-created{font-size:.85rem;color:#94a3b8}.workorder-history-report-card{background:#3b82f61f;border:1px solid rgba(59,130,246,.25);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}.workorder-history-report-title{font-weight:600;color:#bfdbfe;font-size:.9rem}.workorder-history-report-text{margin:0;font-size:.95rem;color:#e2e8f0;line-height:1.5;white-space:pre-wrap}.workorder-history-status{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;color:#cbd5f5}.workorder-history-status li{list-style:disc}.workorder-history-danger{background:#22d3ee14;border:1px solid rgba(34,211,238,.2);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}.workorder-history-danger-title{font-size:.9rem;font-weight:600;color:#22d3ee}.workorder-history-danger p{margin:0;font-size:.9rem;color:#cbd5f5;line-height:1.5;white-space:pre-wrap}.workorder-history-danger--warning{background:#f43f5e1f;border:1px solid rgba(244,63,94,.35)}.workorder-history-danger--warning .workorder-history-danger-title{color:#f43f5e}.workorder-history-danger--warning p{color:#ffe3ec}.workorder-history-danger--info{background:#3b82f61f;border:1px solid rgba(59,130,246,.3)}.workorder-history-details{background:#3b82f614;border:1px solid rgba(59,130,246,.2);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:10px}.detail-toggle-button{margin:6px 0}.detail-actions .button-primary{margin-left:auto}.workorder-total-tip{margin-left:10px;padding:2px 10px;border-radius:999px;background:#3b82f626;border:1px solid rgba(59,130,246,.35);color:#c7dfff;font-size:.9rem;display:inline-flex;align-items:center;gap:6px}@media (max-width: 1024px){.app{padding:20px 20px 32px}.sidebar{position:static;max-height:none;overflow:visible}.sidebar-nav ul{max-height:none;overflow:visible}.app-top-banner{flex-direction:column;align-items:stretch;gap:12px}.app-top-banner-user{justify-content:space-between}.grid{grid-template-columns:1fr}.panel{padding:18px}.trend-content{flex-direction:column}.trend-canvas,.trend-tooltip{width:100%;max-width:100%}.trend-tooltip{max-height:280px}.workorder-table-panel{margin:0 -8px;padding:0 8px}}@media (max-width: 768px){.app{padding:18px 16px 28px}.app-top-banner-left{justify-content:space-between}.sidebar-toggle{padding:8px 14px;font-size:.9rem}.summary-grid{grid-template-columns:1fr}.panel{padding:16px}.workorder-detail-card{padding:18px}.dispatch-panel{padding:14px}.dispatch-panel-header{flex-direction:column;align-items:flex-start;gap:6px}.detail-actions{flex-direction:column;align-items:stretch}.detail-actions .button-primary{margin-left:0}.workorder-table-panel{overflow-x:auto;-webkit-overflow-scrolling:touch}.workorder-table{min-width:720px}}@media (max-width: 540px){.app{padding:16px 12px 24px}.app-top-banner{top:12px}.app-top-banner-avatar{width:36px;height:36px}.sidebar-toggle{width:100%;justify-content:center}.panel{padding:14px}.workorder-detail-card{padding:16px}.trend-tooltip{max-height:240px}}.modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background:#080f1ebf;display:flex;align-items:center;justify-content:center;padding:24px;z-index:1000}.modal{width:95%;background:#0c1220f2;border:1px solid rgba(148,163,184,.3);border-radius:18px;display:flex;flex-direction:column;max-height:90vh;overflow:hidden}.modal-header,.modal-footer{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid rgba(148,163,184,.2)}.modal-footer{border-top:1px solid rgba(148,163,184,.2);border-bottom:none}.modal-body{padding:18px 20px;overflow-y:auto}.modal-hint,.modal-error{margin:0;font-size:.85rem}.modal-hint{color:#94a3b8}.modal-error{color:#f87171}.modal-hint.span-2,.modal-error.span-2{grid-column:1 / -1}.modal-close{border:none;background:transparent;color:#cbd5f5;font-size:1.1rem;cursor:pointer}.modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.modal-grid label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:#e2e8f0}.modal-grid input,.modal-grid select,.modal-grid textarea{border-radius:10px;border:1px solid rgba(148,163,184,.4);background:#0f172ad9;color:#f8fafc;padding:8px 10px;font-size:.95rem}.modal-grid textarea{resize:vertical}.modal-picture-section{display:flex;flex-direction:column;gap:10px}.modal-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.modal-text-block{margin-top:6px;padding:12px 14px;border-radius:10px;background:#0f172abf;border:1px solid rgba(148,163,184,.3);color:#f8fafc;max-height:160px;overflow-y:auto;white-space:pre-wrap;word-break:break-word}.modal-text-block p{margin:0 0 6px}.modal-text-block p:last-child{margin-bottom:0}.modal-merge-layout{display:flex;flex-direction:column;gap:20px}.modal-merge-layout.with-panel{align-items:stretch}.modal-grid{flex:1}.merge-panel{background:#091121e6;border:1px solid rgba(59,130,246,.25);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px;width:100%;max-height:90vh;min-height:60vh;overflow-y:auto}.void-panel{background:#2d0e0ee6;border:1px solid rgba(248,113,113,.35);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px}.void-panel h4{margin:0;font-size:1rem;color:#fecaca}.void-panel textarea{flex:1;border-radius:10px;border:1px solid rgba(248,113,113,.45);background:#4b0000a6;color:#fee2e2;padding:12px;font-size:.95rem;resize:vertical;min-height:240px}.dispatch-panel{background:#2563eb1f;border:1px solid rgba(96,165,250,.45);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:16px;color:#e2e8f0;width:100%}.dispatch-panel-header{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.dispatch-panel h4{margin:0;font-size:1rem;color:#1d4ed8}.dispatch-panel-meta{font-size:.85rem;color:#3b82f6d9}.dispatch-section{display:flex;flex-direction:column;gap:8px}.dispatch-field{display:flex;flex-direction:column;gap:6px}.dispatch-panel select,.dispatch-panel textarea{border-radius:10px;border:1px solid rgba(96,165,250,.35);background:#1e3a8a47;color:#f8fafc;padding:10px;font-size:.95rem;width:100%}.dispatch-panel select:disabled,.dispatch-panel textarea:disabled{opacity:.65}.dispatch-panel textarea{resize:vertical;min-height:200px}@media (min-width: 1100px){.modal-merge-layout.with-panel{flex-direction:row;align-items:flex-start}.dispatch-panel,.void-panel,.merge-panel{flex:0 0 50%}.merge-panel{max-height:90vh;min-height:65vh;overflow-y:auto}}.dispatch-location-grid{display:flex;flex-direction:column;gap:10px}.dispatch-location-select{display:flex;flex-direction:column;gap:6px}.dispatch-label{font-weight:600;color:#bfdbfe}.dispatch-hint-error{color:#f87171;font-size:.9rem}.dispatch-hint-success{color:#34d399;font-size:.9rem}.acceptance-panel{background:#1e40af1f;border:1px solid rgba(59,130,246,.45)}.acceptance-panel h4{color:#1d4ed8}.acceptance-panel textarea{border:1px solid rgba(59,130,246,.4);background:#1e40af14;color:#f8fafc}.completion-panel,.review-panel,.closure-panel{background:#16a34a26;border:1px solid rgba(34,197,94,.45)}.completion-panel h4,.review-panel h4,.closure-panel h4{color:#15803d}.completion-panel textarea,.review-panel textarea,.closure-panel textarea{border:1px solid rgba(22,163,74,.4);background:#15803d14;color:#f8fafc}.transfer-panel{background:#facc152e;border:1px solid rgba(250,204,21,.45)}.transfer-panel h4{color:#ca8a04}.transfer-panel textarea{border:1px solid rgba(234,179,8,.4);background:#facc151a;color:#f8fafc}.merge-panel h4{margin:0;font-size:1rem;color:#bfdbfe}.merge-filters{display:flex;flex-direction:column;gap:8px}.merge-filters input,.merge-filters select{border-radius:8px;border:1px solid rgba(148,163,184,.35);background:#0f172ad9;color:#f8fafc;padding:6px 10px;font-size:.9rem}.merge-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.merge-list{flex:1;min-height:320px;overflow-y:auto;background:#0f172aa6;border:1px solid rgba(148,163,184,.35);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:10px}.merge-item{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#1e293bbf;border-radius:10px;padding:10px 12px}.merge-item-main{display:flex;flex-direction:column;gap:4px}.merge-item-title{font-weight:600;color:#bfdbfe}.merge-item-meta{display:flex;gap:12px;font-size:.8rem;color:#94a3b8;flex-wrap:wrap}.merge-item-meta .system-path-inline{width:100%;display:block}.merge-item-meta .system-path-inline>strong{display:inline-block;margin-right:6px}.merge-filter-label{color:#cbd5f5;font-weight:600;margin:6px 0 2px;font-size:.9rem}.merge-empty{margin:0;text-align:center;color:#94a3b8}.merge-summary{background:#22c55e2e;color:#4ade80;border:1px solid rgba(34,197,94,.35);border-radius:12px;padding:10px 14px;margin:0 20px;font-size:.95rem;display:inline-flex;gap:6px;align-items:center}.merge-summary strong{color:#bbf7d0}.merge-summary-button{border:1px solid rgba(125,211,252,.45);background:#0ea5e926;color:#bae6fd;border-radius:999px;padding:4px 10px;font-size:.8rem;cursor:pointer;transition:background .2s ease,transform .2s ease}.merge-summary-button:hover{background:#0ea5e94d;transform:translateY(-1px)}.tag-warning,.tag-danger,.tag-info{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:600}.tag-warning{background:#f59e0b2e;color:#fbbf24;border:1px solid rgba(245,158,11,.45)}.tag-danger{background:#f871712e;color:#f87171;border:1px solid rgba(248,113,113,.45)}.tag-info{background:#22d3ee2e;color:#22d3ee;border:1px solid rgba(34,211,238,.45)}.span-2{grid-column:1 / -1}@media (max-width: 768px){.filter-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.modal-grid,.modal-levels{grid-template-columns:repeat(1,minmax(0,1fr))}}.link-button{border:none;background:none;color:inherit;font:inherit;padding:0;cursor:pointer;text-align:left;transition:color .15s ease}.link-button:focus-visible{outline:2px solid rgba(148,197,255,.5);outline-offset:2px}.link-accent{color:#60a5fa}.link-accent:hover,.link-accent:focus-visible{color:#93c5fd}.user-detail{display:flex;flex-direction:column;gap:16px}.user-detail-card{background:#0f172abf;border:1px solid rgba(148,163,184,.35);border-radius:18px;padding:20px clamp(16px,3vw,28px);display:flex;flex-direction:column;gap:20px}.user-detail-card h2{margin:0;font-size:1.2rem;color:#bfdbfe}.user-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.user-detail-field label{display:block;color:#94a3b8;font-size:.85rem;margin-bottom:4px}.user-detail-field p{margin:0;color:#f8fafc;font-size:.95rem;background:#1e293ba6;border-radius:10px;padding:10px 14px;border:1px solid rgba(148,163,184,.2);min-height:40px}.user-detail-field select{width:100%;border-radius:10px;border:1px solid rgba(148,163,184,.35);background:#1e293bbf;color:#f8fafc;padding:10px 12px;font-size:.95rem}.user-detail-permissions h3{margin:0 0 12px;color:#bae6fd;font-size:1.05rem}.user-detail-permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.user-permission-item{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:#1e293ba6;border:1px solid rgba(148,163,184,.25);color:#e2e8f0;font-size:.95rem}.user-permission-item input[type=checkbox]{width:16px;height:16px}.user-detail-actions{display:flex;justify-content:flex-end}.user-detail-actions .button-primary{min-width:200px}.user-card{cursor:pointer}.user-card:focus-visible{outline:2px solid rgba(148,197,255,.6);outline-offset:4px}.user-table tbody tr.user-row{cursor:pointer}.user-table tbody tr.user-row:focus-visible{outline:2px solid rgba(148,197,255,.6);outline-offset:2px}@media (max-width: 768px){.user-detail-card{padding:18px 16px}.user-detail-permission-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}.inline-spinner{display:inline-flex;align-items:center;gap:6px}.inline-spinner-dot{width:12px;height:12px;border-radius:50%;border:2px solid rgba(148,197,255,.25);border-top-color:#93c5fd;animation:inlineSpinner .75s linear infinite}@keyframes inlineSpinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.primary-button{background:linear-gradient(90deg,#60a5fa,#3b82f6);border:none;border-radius:10px;color:#0b1628;padding:10px 14px;font-weight:800;font-size:.95rem;cursor:pointer;box-shadow:0 8px 18px #3b82f659}.primary-button:hover,.primary-button:focus{box-shadow:0 10px 20px #3b82f673}.header-actions{display:flex;align-items:center;gap:10px}option{background-color:#fff;color:#0f172a}
