*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f5f7fa;color:#1f2937}.app{min-height:100vh;display:flex;flex-direction:column}.header{background:#1e293b;color:#fff;padding:1rem 2rem;display:flex;align-items:center;justify-content:space-between}.brand{color:#fff;text-decoration:none;font-weight:600;font-size:1.125rem}.login-link{color:#fff;text-decoration:underline;font-size:.875rem}.login-status{color:#94a3b8;font-size:.875rem}.auth-status{display:flex;align-items:center;gap:.75rem}.logout-button{background:transparent;color:#fff;border:1px solid #475569;border-radius:4px;padding:.25rem .625rem;font-size:.75rem;cursor:pointer}.logout-button:hover{background:#334155}.pre-login{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;text-align:center;padding:2rem}.pre-login h1{margin:0}.pre-login p{color:#475569;margin:0 0 .5rem}.login-link-large{background:#1e293b;color:#fff;text-decoration:none;padding:.625rem 1.25rem;border-radius:6px;font-weight:600}.login-link-large:hover{background:#334155}.main{padding:2rem;max-width:1100px;width:100%;margin:0 auto}h1{font-size:1.75rem;margin:0 0 .25rem}h2{font-size:1.125rem;margin:1.5rem 0 .75rem;display:flex;align-items:center;gap:.5rem}.count{background:#e2e8f0;color:#475569;border-radius:999px;padding:.125rem .5rem;font-size:.75rem;font-weight:600}.section-toggle{display:flex;align-items:center;gap:.5rem;background:none;border:none;padding:0;margin:1.5rem 0 .75rem;font-size:1.125rem;font-weight:600;color:#1f2937;cursor:pointer;font-family:inherit}.section-toggle:hover{background:none;color:#2563eb}.chevron{display:inline-block;font-size:.75rem;color:#64748b;transition:transform .15s ease}.chevron.open{transform:rotate(90deg)}.toolbar{display:flex;gap:.5rem;margin-bottom:1rem;align-items:center}.toolbar input[type=search]{flex:1;padding:.5rem .75rem;border:1px solid #cbd5e1;border-radius:6px;font-size:.9375rem}.muted{color:#64748b}.small{font-size:.8125rem}.empty{color:#94a3b8;font-style:italic}.error{color:#b91c1c}button{padding:.375rem .75rem;border-radius:6px;border:1px solid #cbd5e1;background:#fff;cursor:pointer;font-size:.875rem;font-family:inherit}button:hover{background:#f1f5f9}button.primary{background:#2563eb;border-color:#2563eb;color:#fff}button.primary:hover{background:#1d4ed8}button.primary:disabled{background:#94a3b8;border-color:#94a3b8;cursor:not-allowed}button.danger{background:#fff;border-color:#ef4444;color:#ef4444}button.danger:hover{background:#fef2f2}button.small{padding:.125rem .5rem;font-size:.75rem}.card-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.card-list.dim .card{opacity:.65}.card{background:#fff;padding:1rem;border-radius:8px;box-shadow:0 1px 3px #0000000f;display:flex;flex-direction:column;gap:.5rem}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem}.card-title{font-weight:600;font-size:1rem;color:#1e293b;text-decoration:none}.card-title:hover{text-decoration:underline}.badge{background:#dcfce7;color:#166534;border-radius:999px;padding:.125rem .5rem;font-size:.75rem;font-weight:600;white-space:nowrap}.meta{display:flex;gap:1rem;font-size:.8125rem;color:#64748b;flex-wrap:wrap}.meta-disabled{color:#b91c1c;font-weight:500}.meta-disabled-toggle{background:none;border:none;padding:0;font:inherit;color:#b91c1c;font-weight:500;cursor:pointer;text-decoration:underline dotted;text-underline-offset:2px}.meta-disabled-toggle:hover{background:none;color:#7f1d1d}.path{font-family:ui-monospace,monospace;font-size:.75rem;word-break:break-all}.card-actions{display:flex;gap:.5rem;margin-top:.25rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:50}.modal{background:#fff;padding:1.5rem;border-radius:8px;width:min(450px,90vw);display:flex;flex-direction:column;gap:1rem}.modal h2{margin:0}.modal form{display:flex;flex-direction:column;gap:.75rem}.modal label{display:flex;flex-direction:column;gap:.25rem;font-size:.875rem;font-weight:500}.modal input,.modal textarea,.modal select{padding:.5rem;border:1px solid #cbd5e1;border-radius:6px;font-size:.9375rem;font-family:inherit}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem}.back{display:inline-block;color:#2563eb;text-decoration:none;margin-bottom:1rem}.back:hover{text-decoration:underline}.quarry-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.permit-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1rem}.permit-id{font-weight:600}.status{border-radius:999px;padding:.125rem .625rem;font-size:.75rem;font-weight:600;white-space:nowrap}.status-active{background:#dcfce7;color:#166534}.status-warning{background:#fef3c7;color:#92400e}.status-ended{background:#fee2e2;color:#991b1b}.permit-pdf{display:flex;flex-direction:column;gap:.5rem}.permit-pdf-actions{display:flex;gap:.5rem;align-items:center}.permit-pdf-actions a{color:#2563eb;text-decoration:none;font-size:.8125rem}.permit-pdf-actions a:hover{text-decoration:underline}.permit-pdf-frame{width:100%;height:600px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc}.tags{border-top:1px solid #e2e8f0;padding-top:.75rem;margin-top:.25rem}.tags-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.tag-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.375rem}.tag{display:flex;align-items:center;gap:.5rem}.tag-type{background:#e2e8f0;color:#475569;border-radius:4px;padding:.125rem .375rem;font-size:.6875rem;font-weight:600;letter-spacing:.025em;text-transform:uppercase}.tag input{flex:1;padding:.25rem .5rem;border:1px solid #cbd5e1;border-radius:4px;font-size:.8125rem;font-family:inherit}.tag-add{display:flex;gap:.375rem;margin-top:.5rem;flex-wrap:wrap}.tag-add input,.tag-add select{padding:.25rem .5rem;border:1px solid #cbd5e1;border-radius:4px;font-size:.8125rem;font-family:inherit}.tag-add input{flex:1;min-width:100px}.role-editor{display:flex;flex-direction:column;gap:.5rem;border-top:1px solid #e2e8f0;padding-top:.75rem;margin-top:.25rem}.role-checkboxes{display:flex;gap:1rem;flex-wrap:wrap}.checkbox{display:flex;align-items:center;gap:.375rem;font-size:.8125rem;font-weight:500;cursor:pointer}.modal .checkbox input[type=checkbox]{width:auto;padding:0;border:none}.chart-card{background:#fff;padding:1rem;border-radius:8px;box-shadow:0 1px 3px #0000000f}.chart-card h3{margin:0 0 .75rem;font-size:.9375rem;font-weight:600}.storage-section{display:flex;flex-direction:column;gap:1rem}.chart-wrap{position:relative}.chart-svg{width:100%;height:auto;display:block;font-family:inherit}.chart-legend{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.75rem;font-size:.8125rem;color:#52514e}.chart-legend-item{display:flex;align-items:center;gap:.375rem;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}.chart-legend-item:hover{background:none;color:#2563eb}.chart-legend-swatch{width:12px;height:3px;border-radius:2px;display:inline-block}.chart-axis-label{cursor:pointer}.chart-axis-label:hover{fill:#2563eb}.product-code-link{background:none;border:none;padding:0;margin:0;font:inherit;font-size:inherit;color:#2563eb;text-decoration:underline dotted;text-underline-offset:2px;cursor:pointer}.product-code-link:hover{background:none;color:#1d4ed8}.product-code-fields{display:grid;grid-template-columns:auto 1fr;gap:.375rem 1rem;margin:0}.product-code-field{display:contents}.product-code-field dt{color:#64748b;font-size:.8125rem}.product-code-field dd{margin:0;font-size:.8125rem}.product-code-builder-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:.75rem}.product-code-builder{display:flex;flex-direction:column;gap:.75rem}.product-code-builder-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem .75rem}.product-code-builder-grid label{display:flex;flex-direction:column;gap:.25rem;font-size:.8125rem;font-weight:500;min-width:0}.product-code-builder-grid select{min-width:0;max-width:100%}.product-code-builder-preview{border-top:1px solid #e2e8f0;padding-top:.5rem}.chart-tooltip{position:absolute;background:#0b0b0b;color:#fff;border-radius:6px;padding:.5rem .625rem;font-size:.75rem;pointer-events:none;transform:translate(-50%,-110%);white-space:nowrap;z-index:10}.chart-tooltip-floating{transform:translate(8px,-50%)}.chart-tooltip-date{font-weight:600;margin-bottom:.25rem;color:#c3c2b7}.chart-tooltip-row{display:flex;align-items:center;gap:.375rem}.chart-tooltip-key{width:10px;height:3px;border-radius:2px;display:inline-block;flex-shrink:0}.chart-tooltip-value{font-weight:600;font-variant-numeric:tabular-nums}.chart-tooltip-label{color:#c3c2b7}.table-wrap{overflow-x:auto;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000000f}.data-table{width:100%;border-collapse:collapse;font-size:.8125rem}.data-table th{text-align:left;padding:.5rem .75rem;color:#64748b;font-weight:600;border-bottom:1px solid #e2e8f0}.data-table td{padding:.5rem .75rem;border-bottom:1px solid #f1f5f9;font-variant-numeric:tabular-nums}.data-table tr:last-child td{border-bottom:none}.data-table th.num,.data-table td.num{text-align:right}.nav{display:flex;gap:1rem}.nav a{color:#cbd5e1;text-decoration:none;font-size:.875rem;font-weight:500}.nav a:hover,.nav a.active{color:#fff}
