:root{--miller-brown: #8B4A2B;--miller-brown-dark: #6E3A21;--miller-cream: #F2E3B0;--miller-charcoal: #1F2937;--miller-bg: #F7F5F1;--miller-border: #E5E0D6}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;font-family:Segoe UI,Arial,sans-serif;background-color:#f4f6f8;color:#1f2937}body{background:var(--miller-bg)}.app-container{min-height:100vh;display:flex;flex-direction:column}.app-content{flex:1;padding:32px 48px;max-width:1800px;margin:0 auto;width:100%}.app-header{background:var(--miller-brown);color:#fff;padding:18px 48px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 4px 14px #0003}.app-title{font-size:20px;font-weight:600;letter-spacing:.5px}.app-subtitle{font-size:13px;opacity:.7}.card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 4px 16px #0000000f;border:1px solid var(--miller-border);margin-bottom:24px}.btn-primary{background:var(--miller-brown);color:#fff;border:none;padding:8px 14px;border-radius:6px;font-weight:500;cursor:pointer;transition:.2s ease}.btn-primary:hover{background:var(--miller-brown-dark)}.btn-secondary{background:#fff;border:1px solid var(--miller-border);padding:8px 14px;border-radius:6px;cursor:pointer;transition:.2s ease}.btn-secondary:hover{background:var(--miller-cream)}.analysis-list-button{display:block;width:100%;text-align:left;color:#111827;background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:9px 10px;margin:6px 0;cursor:pointer}.analysis-list-button:hover,.analysis-list-button:focus-visible{background:#f3f4f6;color:#111827}.btn-danger{background:#b91c1c;color:#fff;border:none;padding:10px 18px;border-radius:9999px;font-weight:600;cursor:pointer;transition:.2s ease}.btn-danger:hover{background:#991b1b}table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 6px 20px #0000000d}.sticky-table{border-collapse:separate;border-spacing:0;overflow:visible}thead{background:var(--miller-cream)}th{text-align:center;padding:14px 12px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;color:var(--miller-charcoal);cursor:pointer;background:var(--miller-cream)}.sticky-table th{position:sticky;top:0;z-index:20;box-shadow:inset 0 -1px 0 var(--miller-border)}td{padding:14px 12px;border-top:1px solid var(--miller-border);font-size:14px}tbody tr:hover{background:#fbf8f2;transition:background .15s ease}.po-row-closed,.po-row-closed td{background:#f3f4f6;color:#6b7280}.po-row-closed:hover,.po-row-closed:hover td{background:#f3f4f6}.soft-deleted-row,.soft-deleted-row td{background:#f3f4f6;color:#6b7280}.soft-deleted-row:hover,.soft-deleted-row:hover td{background:#f3f4f6}.soft-delete-banner{margin:12px 0 16px;padding:12px 14px;border-radius:10px;background:#f3f4f6;border:1px solid #d1d5db;color:#4b5563;font-size:14px}.month-row{background:#fdfaf4;font-weight:600}.badge{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.01em;display:inline-block}.badge-draft{background:#e5e7eb;color:#374151}.badge-pending-accounting{background:#fef3c7;color:#92400e}.badge-po-assigned{background:#dbeafe;color:#1d4ed8}.badge-approved{background:#dcfce7;color:#166534}.badge-in-progress{background:#fed7aa;color:#c2410c}.badge-samples-partial{background:#ede9fe;color:#6d28d9}.badge-samples-full{background:#ccfbf1;color:#0f766e}.badge-report-partial{background:#fce7f3;color:#be185d}.badge-report-full{background:#dcfce7;color:#166534}.badge-closed{background:#e5e7eb;color:#374151}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:5000}.read-only-waste-code-overlay{z-index:6000}.modal-card{background:#fff;width:700px;max-width:90%;min-height:400px;max-height:700px;overflow-y:auto;padding:28px;border-radius:16px;box-shadow:0 20px 40px #00000026}.analysis-changes-modal{width:980px;max-width:94%}.modal-header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.analysis-change-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}.analysis-change-values pre{max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:10px;margin:6px 0 0}@media(max-width:760px){.analysis-change-values{grid-template-columns:1fr}}input,select{padding:8px 10px;border-radius:6px;border:1px solid #d1d5db;font-size:14px;width:100%}input:focus,select:focus{outline:none;border-color:#1d4ed8;box-shadow:0 0 0 2px #1d4ed826}label{font-size:13px;font-weight:500;margin-bottom:4px;display:block}.table-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:16px;flex-wrap:wrap}.table-filters{display:flex;gap:12px;align-items:center}.table-filters select,.table-filters input{width:auto;min-width:160px}.budget-strip{display:flex;gap:24px;margin-bottom:28px;flex-wrap:wrap}.budget-box{background:#fff;padding:22px 28px;border-radius:14px;box-shadow:0 4px 14px #0000000f;min-width:260px;flex:1}.budget-label{font-size:13px;text-transform:uppercase;letter-spacing:.6px;color:#64748b;margin-bottom:6px}.budget-value{font-size:26px;font-weight:700}.section-title{font-size:20px;font-weight:600;margin-bottom:16px;color:#0f172a}.header-left{display:flex;align-items:center;gap:16px}.logo-link{display:inline-flex;align-items:center;justify-content:center;transition:transform .18s ease}.logo-link:hover{transform:translateY(-1px)}.logo-link:focus-visible{outline:2px solid #ffffff;outline-offset:3px}.logo{height:68px;width:auto;display:block}.brand-accent-bar{height:6px;background:var(--miller-cream)}.profile-cell{display:flex;flex-direction:column;gap:4px;font-size:.85rem}.profile-tag{background:#0098a01f;border:1px solid rgba(0,163,173,.4);color:#000;border-radius:8px;padding:4px 8px;font-size:.8rem;font-weight:500}.profile-search-wrapper{position:relative;display:inline-block}.profile-search-wrapper input{padding:6px 10px;border-radius:6px;border:1px solid #ccc;min-width:180px}.profile-suggestions{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #ddd;border-radius:6px;max-height:200px;overflow-y:auto;z-index:50;box-shadow:0 4px 10px #00000014}.suggestion-item{padding:8px 10px;cursor:pointer}.suggestion-item:hover{background:#00a3ad1a}.suggestion-item.muted{color:#888;cursor:default}.clear-filter{position:absolute;right:6px;top:4px;border:none;background:none;cursor:pointer;font-size:.9rem;color:#999}.project-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid var(--miller-border);border-radius:8px;margin-top:6px;max-height:175px;overflow-y:auto;z-index:20;box-shadow:0 8px 24px #00000014}.project-option{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;font-size:15px;cursor:pointer;transition:background .15s ease}.project-option:hover{background:#fbf8f2}.project-option.selected{background:#8b4a2b14;font-weight:500}.dropdown-action{width:100%;border:none;border-top:1px solid var(--miller-border);background:#faf7f2;color:var(--miller-brown);font-weight:600;padding:12px 14px;text-align:left;cursor:pointer;transition:background .15s ease}.dropdown-action:hover{background:#f3eadf}.project-name{text-align:left}.project-check{font-size:18px;font-weight:700;color:var(--miller-brown)}.project-select-box{border:1px solid var(--miller-border);border-radius:8px;padding:10px;min-height:46px;cursor:pointer;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:15px}.project-select-box:hover{border-color:var(--miller-brown)}.project-pill{background:var(--miller-cream);border:1px solid var(--miller-border);padding:6px 12px;border-radius:999px;font-size:14px;font-weight:500}.project-cell{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.sample-id-cell{max-width:180px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;margin:0 auto;line-height:1.35}.project-tag{background:#f5efe6;border:1px solid #e2d6c4;padding:4px 8px;border-radius:999px;font-size:.75rem}.po-row{position:relative}.edit-cell{width:70px}.edit-btn{background:#fff;border:1px solid var(--miller-border);border-radius:6px;padding:8px 14px;font-size:12px;cursor:pointer}.edit-btn:hover{background:var(--miller-cream)}.header-nav{display:flex;gap:14px;margin-top:12px;flex-wrap:wrap;align-items:center}.nav-link{position:relative;background:transparent;border:none;padding:6px 0;color:#ffffffeb;font-size:17px;font-weight:400;letter-spacing:.01em;cursor:pointer;transition:color .18s ease}.nav-link+.nav-link:before{content:"|";position:absolute;right:calc(100% + 7px);top:50%;transform:translateY(-55%);color:#ffffff80;font-size:14px;font-weight:300;pointer-events:none}.nav-link:after{content:"";position:absolute;left:50%;bottom:-3px;width:100%;height:2px;background:var(--miller-cream);transform:translate(-50%) scaleX(0);transform-origin:center;transition:transform .22s ease}.nav-link:hover,.nav-link.active{color:var(--miller-cream)}.nav-link:hover:after,.nav-link.active:after{transform:translate(-50%) scaleX(1)}.nav-link:focus-visible{outline:none;color:var(--miller-cream)}.inventory-warning{background:#fef2f2;border:1px solid #fecaca;padding:10px 14px;border-radius:6px;margin-bottom:16px;color:#991b1b}.login-page{height:100vh;display:flex;align-items:center;justify-content:center;background:#f3f4f6}.login-card{width:340px;background:#fff;padding:32px;border-radius:10px;box-shadow:0 8px 30px #00000014;text-align:center}.login-logo{width:70px;margin-bottom:10px}.login-title{font-size:20px;font-weight:600}.login-subtitle{font-size:14px;color:#6b7280;margin-bottom:20px}.login-form input{width:100%;padding:10px;margin-bottom:12px;border-radius:6px;border:1px solid #d1d5db;font-size:14px}.login-form input:focus{outline:none;border-color:#2563eb}.login-button{width:100%;padding:10px;border-radius:6px;border:none;background:#2563eb;color:#fff;font-weight:600;cursor:pointer}.login-button:hover{background:#1e40af}.login-error{margin-top:10px;color:#dc2626;font-size:13px}.header-user{display:flex;align-items:center;gap:16px}.user-label{font-size:14px;color:#fff}.logout-button{padding:6px 12px;border-radius:6px;border:1px solid var(--miller-border);background:#fff;color:#000;font-weight:500;cursor:pointer}.logout-button:hover{background:#dc2626}.logout-message{background:#ecfdf5;border:1px solid #86efac;color:#166534;padding:10px;border-radius:6px;margin-bottom:14px;font-size:14px}.equipment-warning-box{margin-bottom:20px}.equipment-warning{padding:10px;border-radius:6px;margin-bottom:8px;font-weight:500}.equipment-warning.overdue{background:#fee2e2;color:#b91c1c}.equipment-warning.due_soon{background:#fef3c7;color:#92400e}.equipment-add-card{margin-top:30px;padding:20px;background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;min-width:500px}.equipment-add-card h3{margin-bottom:15px}.equipment-form-row{display:flex;gap:10px;margin-bottom:10px}.equipment-form-row input{flex:1}.equipment-add-card textarea{width:100%;min-height:80px;margin-bottom:12px;flex:1}textarea{width:100%;max-width:500px;min-height:120px;padding:10px;border-radius:6px;border:1px solid #d1d5db;font-family:inherit;font-size:14px;resize:vertical}textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.equipment-textarea{width:100%;max-width:450px;min-height:100px;margin-top:10px;margin-bottom:12px;padding:10px;border-radius:6px;border:1px solid #d1d5db;font-size:14px}.status-overdue{color:#b91c1c;font-weight:600}.status-soon{color:#b45309;font-weight:600}.status-ok{color:#047857}.profiles-page-header{display:block;margin-bottom:18px}.profiles-header-actions{display:flex;gap:10px;flex-wrap:nowrap;width:100%;overflow:visible;padding-bottom:2px;margin-top:16px}.profiles-page-subtitle{margin:-6px 0 0;color:#64748b;max-width:760px;line-height:1.45}.profiles-page-meta{background:#fff;border:1px solid var(--miller-border);border-radius:999px;padding:10px 14px;color:#475569;font-size:13px}.profiles-header-actions{display:flex;gap:10px;flex-wrap:nowrap;width:100%;overflow:visible;padding-bottom:2px}.profiles-header-actions>button{flex:1 1 0;min-width:0;padding:8px;font-size:14px;white-space:normal}.profiles-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(520px,1fr));gap:20px}.profiles-card h3{margin-top:0;margin-bottom:16px}.profiles-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profiles-component-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:center;margin-bottom:8px}.profiles-search-field{position:relative}.profiles-suggestions{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid var(--miller-border);border-radius:10px;box-shadow:0 10px 28px #0f172a1f;max-height:260px;overflow-y:auto;z-index:40}.profiles-property-creator{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;padding:8px;border:1px solid var(--miller-border);border-radius:8px;background:#fbf8f2}.profiles-property-creator input,.profiles-property-creator select{min-width:160px;flex:1 1 160px}.profiles-suggestion-item{width:100%;border:none;background:#fff;text-align:left;padding:12px 14px;cursor:pointer;display:flex;flex-direction:column;gap:3px}.profiles-suggestion-item:hover{background:#fbf8f2}.profiles-result-kind{display:inline-block;white-space:nowrap;border:1px solid #cbd5e1;border-radius:999px;padding:3px 8px;background:#f8fafc;color:#334155;font-size:12px;font-weight:600}.nwq-report-menu-anchor{position:relative;z-index:30}.nwq-report-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:50;display:grid;min-width:180px;gap:4px;padding:8px;background:#fff;border:1px solid #d1d5db;border-radius:6px;box-shadow:0 4px 12px #0000001f}.profiles-suggestion-item span{color:#64748b;font-size:12px}.profiles-actions{margin-top:18px;display:flex;justify-content:flex-start}.profiles-modal-actions{margin-top:18px;display:flex;justify-content:flex-end}.profiles-edit-associated{grid-column:1 / -1}.profiles-associated-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.profiles-template-editor{display:grid;gap:14px;margin-top:18px}.profiles-template-card{padding:16px}.profiles-waste-code-section{margin-top:14px;padding:16px;border:1px solid var(--miller-border);border-radius:12px;background:#fff}.profiles-waste-code-section+.profiles-waste-code-section{margin-top:0;border-top:0;border-radius:0 0 12px 12px}.profiles-waste-code-section:first-child{border-radius:12px 12px 0 0}.profiles-readonly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}.profiles-readonly-grid>div,.profiles-readonly-row{display:flex;flex-direction:column;gap:4px}.profiles-readonly-row{padding:10px 0;border-bottom:1px solid var(--miller-border)}.profiles-readonly-row:last-child{border-bottom:0}.profiles-process-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.profiles-results-meta{margin:14px 0 12px;color:#64748b;font-size:13px}.profiles-table-wrap{overflow-x:auto}.profiles-cell-title{font-weight:600}.profiles-cell-subtitle{margin-top:4px;color:#64748b;font-size:12px}.profiles-empty{text-align:center;color:#64748b;padding:20px}@media(max-width:900px){.profiles-form-grid,.profiles-component-row,.profiles-grid{grid-template-columns:1fr}}.labpack-modal{width:min(1100px,94vw);max-height:88vh}.labpack-modal-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px;flex-wrap:wrap}.labpack-header-actions{display:flex;gap:10px;flex-wrap:wrap}.labpack-status-board-tabs{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:18px}.labpack-status-board-tab{border:1px solid #b89066;background:#fffaf4;color:#6b3f20;border-radius:16px;padding:14px 20px;cursor:pointer;font-size:1rem;font-weight:600;min-width:220px;box-shadow:0 8px 18px #6b3f2014}.labpack-status-board-tab.active{background:var(--miller-brown);color:#fff;border-color:var(--miller-brown)}.labpack-sheet-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.labpack-sheet-tab{border:1px solid var(--miller-border);background:#fff;color:var(--miller-charcoal);border-radius:999px;padding:8px 14px;cursor:pointer;font-weight:600}.labpack-sheet-tab.active{background:var(--miller-cream);border-color:#d1c29e}.labpack-footer-actions{margin-top:18px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.labpack-status-popover{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);background:#fff;border:1px solid var(--miller-border);border-radius:14px;box-shadow:0 14px 30px #0000001f;padding:8px;display:grid;gap:6px;z-index:20;min-width:220px}.labpack-status-popover-option{border:none;background:#f8f3ec;color:var(--miller-charcoal);border-radius:10px;padding:10px 12px;text-align:left;cursor:pointer;font:inherit}.labpack-status-popover-option:hover{background:var(--miller-cream)}.waste-code-modal{width:min(1200px,96vw);max-height:88vh}.waste-code-detail-modal{width:min(900px,92vw);max-height:88vh}.waste-code-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:18px}.waste-code-top-actions{display:flex;gap:10px;flex-wrap:wrap}.waste-code-toolbar input{flex:1}.waste-code-chemical-list{display:flex;flex-wrap:wrap;gap:8px}.waste-code-chemical-list.collapsed,.waste-code-exclusion-list.collapsed{max-height:138px;overflow:hidden}.waste-code-chemical-button{border:1px solid #d6c4af;background:#fffaf2;color:var(--miller-brown-dark);border-radius:999px;padding:6px 10px;cursor:pointer;font-size:13px;display:inline-flex;align-items:center;gap:8px}.waste-code-chemical-button:hover{background:#f5eadb}.waste-code-chemical-button.pending{border-color:#d34d4d;background:#fff1f1;color:#9f1239}.waste-code-chemical-button.pending:hover{background:#ffe4e6}.waste-code-edit-button{margin-top:10px;border:none;background:transparent;color:var(--miller-brown);padding:0;cursor:pointer;font-weight:600}.waste-code-edit-button:hover{color:var(--miller-brown-dark)}.waste-code-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:#78350f1f;font-size:13px;font-weight:700;line-height:1}.waste-code-add-chemical-wrap{margin-top:10px}.waste-code-add-button{width:100%;border:1px dashed #d6c4af;background:#fff;color:var(--miller-brown);border-radius:12px;padding:10px 12px;cursor:pointer;font-weight:600}.waste-code-add-button:hover{background:#fffaf2}.waste-code-view-more{margin-top:10px;border:none;background:transparent;color:var(--miller-brown);padding:0;cursor:pointer;font-weight:600}.waste-code-view-more:hover{color:var(--miller-brown-dark)}.waste-code-inline-add{position:relative}.waste-code-inline-suggestions{top:calc(100% + 8px)}.waste-code-exclusion-list{display:flex;flex-wrap:wrap;gap:8px}.waste-code-exclusion-item{display:flex;flex-direction:column;gap:2px}.waste-code-exclusion-item span{color:#b45309;font-size:12px}.waste-code-detail-grid{display:grid;grid-template-columns:1fr;gap:14px}.waste-code-detail-row{display:grid;grid-template-columns:150px 1fr;gap:10px;align-items:start;margin-bottom:8px}.queue-actions{display:flex;gap:8px;flex-wrap:wrap}.chemical-waste-code-selector{border:1px solid var(--miller-border);border-radius:12px;background:#fff;max-height:280px;overflow-y:auto}.chemical-waste-code-option{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:12px;align-items:start;padding:12px 14px;border-bottom:1px solid #efe6db;cursor:pointer}.chemical-waste-code-option input{margin-top:2px;flex:0 0 auto;width:14px;height:14px}.chemical-waste-code-option>div{text-align:left;width:100%;min-width:0}.chemical-waste-code-option strong{display:block;margin-bottom:2px}.chemical-waste-code-option .profiles-cell-subtitle{display:block;width:100%;writing-mode:horizontal-tb;text-orientation:mixed;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.chemical-waste-code-option:last-child{border-bottom:none}.chemical-waste-code-option:hover{background:#fbf8f2}
