:root{--app-font-family: "Outfit", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;font-family:var(--app-font-family);color:#0f172a;background-color:#f5f7fb}*,*:before,*:after{box-sizing:border-box}body{margin:0;background-color:#f5f7fb;color:#0f172a;font-family:var(--app-font-family)}button,input,textarea,select{font-family:var(--app-font-family)}.app-layout{display:flex;min-height:100vh}.sidebar{width:280px;background:#0b1d3d;color:#f8fafc;padding:2rem 1.5rem;display:flex;flex-direction:column;gap:2rem;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;justify-content:flex-start;margin-bottom:1.5rem;padding-left:.5rem}.brand span{font-size:.85rem;opacity:.7}.brand-logo{width:190px;height:auto;object-fit:contain;filter:drop-shadow(0 10px 25px rgba(13,33,77,.45))}nav{display:flex;flex-direction:column;gap:.75rem}.nav-item{display:block;padding:.85rem 1rem;border-radius:1rem;text-decoration:none;background:#ffffff14;color:#f1f5f9;font-weight:600;transition:background .15s ease,transform .15s ease}.nav-item:hover{background:#ffffff2e;transform:translate(4px)}.nav-item.active{background:#3e84f780}.sidebar-footer{margin-top:auto;font-size:.85rem;opacity:.8}.main-panel{flex:1;padding:1.5rem 2.5rem;background:#f5f7fb;display:flex;flex-direction:column;gap:1.5rem}.top-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem}.search-bar{flex:1;display:flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:#fff;border:1px solid #e2e8f0;border-radius:999px}.search-bar input{border:none;flex:1;font-size:.95rem;outline:none;background:transparent}.top-actions{display:flex;gap:.5rem}.icon-btn{width:40px;height:40px;border-radius:12px;border:1px solid #dbe1f1;background:#fff;cursor:pointer}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap}.heading-inline{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem}.heading-subtext{margin-top:.15rem;margin-bottom:1rem}@media (max-width: 600px){.heading-inline{flex-direction:column;align-items:stretch}}.page-header h1{margin:.2rem 0;font-size:clamp(2rem,4vw,2.8rem)}.eyebrow{text-transform:uppercase;letter-spacing:.24em;font-size:.75rem;color:#94a3b8}.primary-btn{background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;border:none;padding:.85rem 1.5rem;border-radius:12px;font-weight:600;cursor:pointer;box-shadow:0 10px 20px #2563eb4d}.filters-row{display:flex;justify-content:flex-start;align-items:center;gap:1rem}.filters-row.single{justify-content:flex-end}.filter-actions{display:flex;gap:.5rem}.ghost-btn{border:1px solid #dbe1f1;border-radius:12px;padding:.6rem 1.6rem;background:linear-gradient(145deg,#fff,#f3f6fb);cursor:pointer;font-weight:600;color:#1f2937;display:inline-flex;align-items:center;gap:.45rem;transition:box-shadow .15s ease,transform .15s ease}.ghost-btn.primary{font-size:.95rem;background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;border-color:transparent;box-shadow:0 15px 30px #2563eb4d}.ghost-btn.primary span{font-size:1rem}.ghost-btn:hover{box-shadow:0 15px 30px #94a3b840;transform:translateY(-2px)}.content-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:2rem}.cards-panel{background:transparent}.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}.work-order-card{display:flex;flex-direction:column;gap:.3rem;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:1rem 1.15rem .85rem;text-align:left;cursor:pointer;box-shadow:0 16px 32px #94a3b81f;transition:border-color .15s ease,transform .15s ease;color:inherit;border-width:1px;outline:none}.work-order-card:hover{transform:translateY(-4px);border-color:#2563eb}.work-order-card.active{border-color:#2563eb;box-shadow:0 25px 50px #2563eb33}.card-top-line{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;margin-bottom:.75rem}.record-pill{padding:.2rem .6rem;border-radius:999px;background:#f1f5f9;font-weight:600}.priority-pill{display:inline-flex;align-items:center;justify-content:center;padding:.18rem .65rem;border-radius:10px;font-size:.7rem;text-transform:uppercase;font-weight:700;letter-spacing:.03em}.priority-pill.emergency{background:#fee2e2;color:#b91c1c}.priority-pill.standard{background:#e0ecff;color:#1d4ed8}.card-title{margin:.2rem 0 .65rem;font-size:.85rem;color:#0f172a;display:flex;justify-content:space-between;gap:.85rem;align-items:center}.card-title .title-text{flex:1}.priority-stack{display:flex;flex-direction:column;align-items:flex-end;gap:.1rem}.card-meta{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:#475569}.icon{margin-right:.35rem}.card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;gap:.75rem}.card-footer-right{display:flex;align-items:center;gap:.5rem}.sla-chip{background:#fee2e2;color:#b91c1c;border-radius:800px;padding:.2rem .8rem;font-size:.7rem;font-weight:600;letter-spacing:.05em}.workflow-chip{font-size:.75rem;text-transform:uppercase;font-weight:700;padding:.2rem .6rem;border-radius:999px;background:#e0e7ff;color:#312e81}.workflow-chip.completed{background:#dcfce7;color:#14532d}.workflow-chip.in-progress{background:#fef3c7;color:#92400e}.late-flag{display:inline-flex;align-items:center;gap:.25rem;background:#fee2e2;color:#b91c1c;border-radius:999px;padding:.2rem .6rem;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.late-icon{display:inline-flex;align-items:center;justify-content:center;color:#b91c1c;font-size:1rem}.card-actions{display:flex;justify-content:space-between;gap:.5rem;margin-top:.4rem}.ghost-btn.small,.primary-btn.small{padding:.4rem .9rem;font-size:.85rem}.status-chip{padding:.25rem .85rem;border-radius:999px;font-size:.8rem;background:#e0f2fe;color:#0369a1;text-transform:capitalize}.status-chip.completed{background:#dcfce7;color:#15803d}.status-chip.in-progress,.status-chip.pending,.status-chip.open,.status-chip.new{background:#fef3c7;color:#c2410c}.town-label{font-size:.85rem;color:#64748b}.details-panel{min-height:100%}.details-card{background:#fff;border-radius:20px;border:1px solid #e2e8f0;padding:1.5rem;box-shadow:0 25px 50px #94a3b833;height:100%}.details-card h2{margin-top:0;margin-bottom:1rem}.detail-page{display:flex;flex-direction:column;gap:1.5rem}.detail-page-card{background:#fff;border-radius:24px;border:1px solid #e2e8f0;box-shadow:0 35px 60px #94a3b840;padding:1.75rem}.detail-page-header{display:flex;flex-direction:column;gap:1rem}.back-link{border:none;background:transparent;color:#2563eb;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem;padding:0}.detail-hero{background:#fff;border-radius:20px;border:1px solid #e2e8f0;padding:1.25rem 1.5rem;box-shadow:0 30px 50px #94a3b833}.detail-hero h1{margin:.25rem 0 .75rem}.detail-hero-meta{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;font-size:.9rem;color:#475569}.detail-meta-item{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .75rem;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0}.detail-panel{display:flex;flex-direction:column;gap:1.25rem}.detail-header{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}.detail-header h2{margin:.2rem 0}.detail-meta{display:flex;gap:2rem;align-items:flex-start}.meta-block{display:flex;flex-direction:column;gap:.35rem;min-width:140px}.block-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;color:#0f172a;font-weight:700;margin:0}.priority-chip{border-radius:999px;padding:.3rem .95rem;background:#eff6ff;color:#1d4ed8;font-size:.85rem}.priority-chip.emergency{background:#fee2e2;color:#b91c1c}section h3{margin:0 0 .5rem}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}.info-grid.horizontal{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.info-row{background:#f8fafc;padding:.85rem;border-radius:12px;border:1px solid #e2e8f0}.info-row .label{font-weight:700;color:#0f172a}.team-panel{border:1px dashed #cbd5f5;border-radius:16px;padding:1rem 1.25rem;background:#f8fbff}.team-line{margin:0;color:#0f172a;font-weight:600}.attachments-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}.attachment-card{border:1px solid #dbe1f1;border-radius:12px;padding:.75rem;text-decoration:none;color:inherit;display:flex;gap:.5rem;align-items:center;background:#fff}.attachment-card img{width:48px;height:48px;object-fit:cover;border-radius:10px;border:1px solid #e2e8f0}.file-icon{font-size:1.6rem}.muted{color:#64748b}.empty-state,.empty-detail,.alert-error,.centered{text-align:center;padding:1.5rem;color:#475569}.alert-error{background:#fee2e2;border:1px solid #fecaca;border-radius:12px}.workflow-form{background:#fff;border-radius:20px;border:1px solid #e2e8f0;padding:1.5rem;box-shadow:0 20px 45px #94a3b833;display:flex;flex-direction:column;gap:2rem}.workflow-section{display:flex;gap:2rem;padding:1.5rem;border-radius:18px;border:1px solid #d9e3ff;background:linear-gradient(135deg,#f8fbff,#f1f5ff);box-shadow:0 12px 30px #0f172a14}.workflow-question{flex:0 0 40%;display:flex;gap:1rem;align-items:flex-start}.question-number{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;box-shadow:0 10px 25px #2563eb40;flex-shrink:0;font-variant-numeric:tabular-nums}.question-title{margin:0;font-size:1.15rem;font-weight:700;color:#0f172a}.question-caption{margin:.25rem 0 0;color:#475569;line-height:1.4}.workflow-response{flex:1;display:flex;flex-direction:column;gap:1rem}.radio-pill-group{display:inline-flex;gap:.75rem}.radio-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.6rem 1.4rem;border-radius:999px;border:1px solid #c7d2fe;background:#fff;font-weight:600;color:#1e293b;cursor:pointer;transition:all .2s ease}.radio-pill input{display:none}.radio-pill.active{background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;border-color:transparent;box-shadow:0 10px 25px #2563eb4d}.file-pill{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem 1.7rem;border-radius:999px;background:linear-gradient(135deg,#1d4ed8,#60a5fa);color:#fff;font-weight:600;cursor:pointer;width:fit-content;box-shadow:0 15px 35px #2152ff59}.file-pill input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.notes-field{width:100%;border-radius:16px;border:1px solid #d0d7f6;padding:1rem 1.25rem;min-height:180px;font-family:inherit;font-size:1rem;background:#fff;box-shadow:inset 0 1px 2px #0f172a14}.notes-field:focus{outline:2px solid #2563eb;border-color:transparent}.workflow-form textarea{width:100%;border-radius:12px;border:1px solid #dbe1f1;padding:.85rem;font-family:inherit;font-size:1rem;resize:vertical}.checkbox-field,.radio-field{display:inline-flex;align-items:center;gap:.5rem;font-weight:600}.radio-group{display:flex;gap:1.25rem}.photo-grid{margin-top:.75rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem}.photo-thumb{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:.5rem;display:flex;flex-direction:column;gap:.4rem}.photo-thumb img{width:100%;height:120px;object-fit:cover;border-radius:8px}.photo-thumb button{border:none;border-radius:8px;padding:.35rem .5rem;background:#fee2e2;color:#b91c1c;cursor:pointer}.form-actions{display:flex;justify-content:flex-end;gap:.75rem}@media (max-width: 1100px){.app-layout{flex-direction:column;min-height:100vh}.sidebar{position:static;height:auto;width:100%;flex-direction:column;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.1)}nav{width:100%;flex-direction:row;flex-wrap:wrap;gap:.5rem}.brand{justify-content:center;padding-left:0;width:100%}.main-panel{padding:1.5rem 1.5rem 2rem}}@media (max-width: 900px){.content-columns{grid-template-columns:1fr}.workflow-section{flex-direction:column}.workflow-question{flex:1}}@media (max-width: 768px){.top-bar,.heading-inline,.card-actions{flex-direction:column;align-items:stretch;gap:.75rem}.top-actions{width:100%;justify-content:flex-end}nav{flex-wrap:nowrap;overflow-x:auto}nav::-webkit-scrollbar{display:none}.nav-item{flex:1 0 140px;text-align:center}.main-panel{padding:1.25rem 1rem 2rem}.cards-grid{grid-template-columns:minmax(0,1fr)}.work-order-card{padding:1rem}.detail-meta{flex-wrap:wrap;gap:1rem}.info-grid.horizontal{grid-template-columns:minmax(0,1fr)}.form-actions{flex-direction:column}.form-actions .ghost-btn,.form-actions .primary-btn,.card-actions .ghost-btn,.card-actions .primary-btn{width:100%;justify-content:center}.workflow-section{padding:1.25rem}}@media (max-width: 540px){.sidebar{padding:1rem 1.25rem}.brand-logo{width:150px}.top-actions{justify-content:center;gap:.75rem}.top-bar{align-items:stretch}.workflow-section{padding:1rem}.question-number{width:40px;height:40px}}
