:root {
  --ink: #182325;
  --muted: #718083;
  --soft: #f4f5f3;
  --paper: #fbfbf8;
  --line: #e4e8e4;
  --sidebar: #111719;
  --sidebar-soft: #1a2224;
  --lime: #d4ee5a;
  --lime-dark: #8faf18;
  --green: #1d8c72;
  --green-bg: #e6f5ef;
  --amber: #b87517;
  --amber-bg: #fff4dd;
  --red: #c5534c;
  --red-bg: #fde9e6;
  --blue: #437a9d;
  --blue-bg: #e8f2f8;
  --shadow: 0 18px 50px rgba(25, 37, 36, .06);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--soft); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; flex: 0 0 252px; min-height: 100vh; background: var(--sidebar); color: #fff; padding: 28px 18px 20px; display: flex; flex-direction: column; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 12px 38px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); color: var(--sidebar); border-radius: 10px 3px 10px 3px; font-size: 11px; font-weight: 850; letter-spacing: -.5px; }
.brand-name { font-size: 14px; letter-spacing: 5px; font-weight: 800; line-height: 1; }
.brand-subtitle { margin-top: 6px; font-size: 8px; letter-spacing: 3px; color: #8f9a9b; font-weight: 700; }
.workspace-label, .eyebrow { font-size: 10px; letter-spacing: 1.4px; font-weight: 800; color: #8a989a; }
.workspace-label { padding: 0 12px 11px; }
.company-switcher { width: 100%; border: 1px solid #2c383a; background: #1a2224; color: #fff; border-radius: 12px; padding: 11px 10px; display: flex; align-items: center; gap: 10px; text-align: left; }
.company-avatar { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #48595b; color: #e9f3eb; font-size: 10px; font-weight: 800; }
.company-copy { min-width: 0; display: grid; gap: 4px; flex: 1; }
.company-copy strong { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-copy small { color: #91a0a1; font-size: 10px; }
.chevron { color: #92a1a2; font-size: 18px; line-height: 1; }
.primary-nav { margin-top: 31px; display: grid; gap: 5px; }
.nav-item { appearance: none; border: 0; background: transparent; color: #8d999a; border-radius: 9px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 12px; transition: .2s ease; }
.nav-item:hover { background: var(--sidebar-soft); color: #fff; }
.nav-item.active { background: #273033; color: #fff; }
.nav-icon { width: 16px; text-align: center; color: #a0acae; font-size: 18px; line-height: 1; }
.nav-item.active .nav-icon { color: var(--lime); }
.nav-count { margin-left: auto; font-size: 10px; padding: 3px 7px; border-radius: 20px; color: #14191a; background: var(--lime); font-weight: 800; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 15px; }
.local-mode { display: flex; align-items: center; gap: 9px; border-top: 1px solid #293436; padding: 19px 9px 5px; }
.local-mode > span:last-child { display: grid; gap: 4px; }
.local-mode strong { font-size: 11px; color: #c8d2d1; }
.local-mode small { font-size: 9px; color: #768487; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #83d3a1; box-shadow: 0 0 0 4px rgba(131, 211, 161, .1); }
.nav-item.muted { font-size: 11px; color: #697577; padding-left: 9px; }

.main-content { min-width: 0; flex: 1; padding: 0 48px 56px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; gap: 10px; color: #829092; font-size: 11px; }
.breadcrumbs b { color: #c1c8c6; font-weight: 500; }
.breadcrumbs span:last-child { color: #344245; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .avatar-button { border: 1px solid var(--line); background: #fff; color: #405052; border-radius: 8px; display: grid; place-items: center; }
.icon-button { width: 32px; height: 32px; font-size: 16px; }
.avatar-button { width: 31px; height: 31px; border: 0; background: var(--ink); color: var(--lime); font-size: 10px; font-weight: 850; border-radius: 50%; }
.view { display: none; padding-top: 43px; animation: appear .25s ease; }
.view.active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 31px; }
.dashboard-heading { align-items: center; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.8px; line-height: 1.05; margin-top: 8px; font-weight: 500; color: #203032; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: -.3px; font-weight: 500; color: #203032; margin-top: 7px; }
h3 { font-size: 14px; }
.page-heading p { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.primary-button, .secondary-button { border-radius: 8px; padding: 12px 16px; font-size: 12px; font-weight: 750; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.primary-button { border: 1px solid var(--lime); color: #1b241d; background: var(--lime); box-shadow: 0 5px 18px rgba(169, 198, 59, .18); }
.primary-button:hover { background: #dff56b; }
.primary-button:disabled { cursor: wait; opacity: .65; box-shadow: none; }
.secondary-button { border: 1px solid #cfd8d4; background: #fff; color: #3d4b4b; }
.secondary-button:hover { border-color: #9cafaa; }
.text-button { border: 0; background: transparent; color: #567173; font-size: 11px; font-weight: 750; padding: 5px 0; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 19px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; min-height: 139px; padding: 19px 20px 16px; box-shadow: var(--shadow); border-top: 3px solid transparent; }
.metric-card.accent-green { border-top-color: #65bda6; }.metric-card.accent-amber { border-top-color: #e1b058; }.metric-card.accent-red { border-top-color: #e68b81; }.metric-card.accent-blue { border-top-color: #84b5ce; }
.metric-label { color: #7c8a8a; font-size: 9px; font-weight: 850; letter-spacing: 1.1px; display: flex; justify-content: space-between; }
.metric-spark { color: #8fa29d; font-size: 14px; line-height: 8px; }
.metric-value { font-size: 35px; color: #203032; letter-spacing: -1.4px; font-weight: 500; margin-top: 14px; }
.metric-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #97a3a2; margin-top: 10px; }
.trend { font-weight: 800; }.trend.up { color: var(--green); }.trend.warn { color: var(--amber); }.trend.danger { color: var(--red); }.trend.info { color: var(--blue); }
.dashboard-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 19px; margin-bottom: 19px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.validation-panel, .attention-panel, .recent-panel { padding: 24px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.panel-kicker { border: 1px solid #dae2d8; color: #8a9b8c; border-radius: 20px; padding: 5px 8px; font-size: 8px; font-weight: 850; letter-spacing: .8px; }
.workflow-list { display: grid; gap: 6px; }
.workflow-row { border: 0; border-bottom: 1px solid #eef1ed; background: transparent; padding: 13px 0; display: grid; grid-template-columns: 36px 1fr 20px; align-items: center; gap: 4px; text-align: left; color: var(--ink); }
.workflow-row:last-child { border-bottom: 0; }.workflow-row:hover strong { color: var(--green); }.workflow-number { color: #b0bbb7; font-size: 10px; font-weight: 800; align-self: start; padding-top: 2px; }.workflow-row > span:nth-child(2) { display: grid; gap: 5px; }.workflow-row strong { font-size: 12px; font-weight: 750; transition: color .2s; }.workflow-row small { font-size: 10px; color: #93a09e; }.row-arrow { color: #9caaa4; font-size: 17px; text-align: right; }
.assurance-note { display: flex; gap: 8px; align-items: flex-start; background: #f6f9e9; border-radius: 8px; padding: 11px 12px; margin-top: 16px; color: #6d7943; font-size: 10px; line-height: 1.5; }.assurance-note strong { color: #4e5b2a; }.lock-icon { font-size: 15px; line-height: 1; }
.attention-list { display: grid; gap: 7px; }.attention-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eef1ed; }.attention-row:last-child { border-bottom: 0; }.attention-badge { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 11px; font-weight: 850; }.attention-badge.amber { background: var(--amber-bg); color: var(--amber); }.attention-badge.red { background: var(--red-bg); color: var(--red); }.attention-badge.gray { background: #f0f2f0; color: #7e8988; }.attention-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }.attention-copy strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.attention-copy small { color: #94a09f; font-size: 10px; }.attention-date { color: #687676; font-size: 10px; font-weight: 800; }
.recent-panel { padding-bottom: 7px; }

.table-wrap { width: 100%; overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; min-width: 690px; }.data-table th { padding: 0 12px 13px; text-align: left; color: #9aa6a4; font-size: 9px; letter-spacing: 1px; font-weight: 850; white-space: nowrap; }.data-table th:first-child, .data-table td:first-child { padding-left: 0; }.data-table th:last-child, .data-table td:last-child { padding-right: 0; text-align: right; }.data-table td { border-top: 1px solid #edf0ed; padding: 14px 12px; vertical-align: middle; color: #516060; font-size: 11px; }.data-table tbody tr { cursor: pointer; }.data-table tbody tr:hover td { background: #fbfcfa; }.data-table tbody tr:hover td:first-child { border-radius: 8px 0 0 8px; }.data-table tbody tr:hover td:last-child { border-radius: 0 8px 8px 0; }.doc-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }.doc-icon { width: 29px; height: 34px; border: 1px solid #dae1dc; background: #f8faf6; border-radius: 5px; display: grid; place-items: center; color: #779184; font-size: 12px; position: relative; }.doc-icon::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-top: 1px solid #c8d1cb; border-right: 1px solid #c8d1cb; }.doc-copy { display: grid; gap: 4px; min-width: 0; }.doc-copy strong { color: #2d3a3b; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.doc-copy small { color: #9aa6a4; font-size: 9px; }.entity-cell { display: grid; gap: 4px; }.entity-cell strong { color: #536160; font-size: 11px; }.entity-cell small { color: #a1aba8; font-size: 9px; }.muted-text { color: #a2aeab; }.status-pill, .pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 30px; padding: 5px 8px; font-size: 9px; font-weight: 850; white-space: nowrap; }.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status-verified, .status-valid { color: var(--green); background: var(--green-bg); }.status-expiring { color: var(--amber); background: var(--amber-bg); }.status-expired, .status-failed { color: var(--red); background: var(--red-bg); }.status-review { color: #7c8783; background: #eef1ee; }.row-menu { background: transparent; border: 0; color: #91a09c; font-size: 18px; padding: 4px 0 4px 10px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: -6px 0 19px; }.search-box { min-width: 260px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #8a9997; }.search-box input { border: 0; outline: 0; width: 100%; color: var(--ink); font-size: 11px; background: transparent; }.filter-group { display: flex; gap: 8px; }.filter-group select { border: 1px solid var(--line); color: #5c6b69; background: #fff; border-radius: 8px; padding: 9px 30px 9px 11px; font-size: 10px; outline: 0; }
.empty-state { text-align: center; padding: 60px 20px 70px; }.empty-icon { margin: auto; width: 42px; height: 48px; border: 1px solid #d4ded8; border-radius: 7px; color: #a2b3aa; display: grid; place-items: center; font-size: 20px; }.empty-state h3 { margin-top: 15px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }.empty-state p { color: var(--muted); font-size: 12px; margin: 8px 0 18px; }.hidden { display: none !important; }

.entity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }.entity-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 19px; box-shadow: var(--shadow); }.entity-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }.entity-title { display: flex; gap: 11px; align-items: center; }.entity-avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; background: #edf4e6; color: #78924b; font-size: 14px; font-weight: 800; }.entity-avatar.blue { background: var(--blue-bg); color: var(--blue); }.entity-title h3 { font-size: 14px; font-weight: 750; }.entity-title p { margin-top: 4px; color: #93a09d; font-size: 10px; }.entity-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 19px; padding-top: 14px; border-top: 1px solid #edf1ed; }.entity-meta span { display: grid; gap: 4px; }.entity-meta small { color: #a1adab; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }.entity-meta strong { font-size: 11px; color: #52615f; }.entity-docs { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; color: #7d8b87; font-size: 10px; }.entity-docs strong { color: #3f5c51; }

.rulepack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }.rulepack-card { min-height: 210px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 21px; box-shadow: var(--shadow); }.active-rule { border-top: 3px solid #7db696; }.rulepack-top { display: flex; justify-content: space-between; align-items: center; }.rulepack-flag { width: 30px; height: 21px; display: grid; place-items: center; border-radius: 4px; font-size: 9px; font-weight: 850; background: #ecf2df; color: #6b8737; }.muted-flag { background: #f0f2f0; color: #9da7a4; }.pill { font-size: 8px; letter-spacing: .7px; }.pill.green { color: var(--green); background: var(--green-bg); }.pill.gray { color: #8c9995; background: #eff1ef; }.rulepack-card h3 { margin-top: 28px; font-family: Georgia, serif; font-weight: 500; font-size: 18px; color: #2b3939; }.rulepack-card p { color: #8a9997; font-size: 11px; line-height: 1.6; margin-top: 9px; }.rulepack-meta { display: flex; justify-content: space-between; gap: 8px; color: #9aa6a4; font-size: 9px; margin-top: 20px; }.add-rule { display: flex; flex-direction: column; justify-content: center; border-style: dashed; box-shadow: none; }.add-rule-mark { color: #8cab84; font-size: 23px; }.add-rule h3 { margin-top: 12px; }.principle-panel { display: flex; gap: 14px; margin-top: 19px; padding: 20px; background: #f7faed; border-color: #e5ecd3; box-shadow: none; }.principle-icon { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #6c853e; background: #e8f1c9; font-weight: 850; }.principle-panel h2 { font-size: 18px; color: #4a582e; margin-top: 0; }.principle-panel p { color: #76825b; font-size: 11px; line-height: 1.6; margin-top: 7px; max-width: 720px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(13, 20, 21, .54); backdrop-filter: blur(4px); }.modal { width: min(680px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 15px; background: #fbfcf8; box-shadow: 0 30px 80px rgba(11, 18, 18, .22); }.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 25px 27px 20px; border-bottom: 1px solid var(--line); }.modal-header h2 { margin-top: 6px; font-size: 25px; }.modal-header p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 7px; }.modal-close { border: 0; background: #f0f3ef; color: #667572; width: 29px; height: 29px; border-radius: 50%; font-size: 17px; }.modal-body { padding: 22px 27px 27px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }.form-field { display: grid; gap: 7px; }.form-field.full { grid-column: 1 / -1; }.form-field label { color: #62716e; font-size: 10px; font-weight: 800; letter-spacing: .4px; }.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #dbe2dd; background: #fff; color: #334344; border-radius: 7px; outline: 0; padding: 10px 11px; font-size: 11px; }.form-field textarea { min-height: 70px; resize: vertical; }.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #9dbf9b; box-shadow: 0 0 0 3px rgba(137, 181, 126, .12); }.file-drop { border: 1px dashed #b9cdbb; border-radius: 9px; background: #f7faef; padding: 18px; text-align: center; color: #7a8a6c; }.file-drop.dragging { background: #ecf5d9; border-color: #8eaf47; }.file-drop input { display: none; }.file-drop strong { color: #546a3e; font-size: 11px; }.file-drop small { display: block; margin-top: 5px; font-size: 10px; color: #9aa690; }.file-name { margin-top: 9px; font-size: 10px; color: #53685e; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.check-row { display: flex; align-items: flex-start; gap: 9px; background: #f4f7f3; border-radius: 8px; padding: 11px; }.check-row input { margin-top: 2px; accent-color: #6e9a49; }.check-row label { font-size: 10px; color: #63736d; line-height: 1.4; }.check-row strong { display: block; color: #43564e; }.modal-footer { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 4px; }.form-hint { color: #9aa6a4; font-size: 9px; line-height: 1.5; }

.detail-drawer { position: fixed; z-index: 15; top: 0; right: 0; bottom: 0; width: min(430px, 100%); overflow-y: auto; background: #fbfcf8; box-shadow: -20px 0 50px rgba(18, 28, 28, .13); animation: slidein .25s ease; }.detail-drawer::before { content: ""; display: block; position: fixed; inset: 0; right: min(430px, 100%); z-index: -1; background: rgba(13, 20, 21, .22); }.detail-content { padding: 27px; }.drawer-header { display: flex; justify-content: space-between; gap: 15px; }.drawer-header h2 { font-size: 24px; margin-top: 7px; }.drawer-header p { color: #8b9995; font-size: 11px; margin-top: 7px; }.drawer-close { border: 0; background: #f0f3ef; border-radius: 50%; width: 29px; height: 29px; color: #647370; }.detail-hero { padding-bottom: 21px; border-bottom: 1px solid var(--line); }.detail-status { margin-top: 18px; }.detail-section { padding: 20px 0; border-bottom: 1px solid var(--line); }.detail-section:last-child { border-bottom: 0; }.detail-section h3 { font-size: 10px; color: #96a29f; letter-spacing: 1px; }.detail-field-grid { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 10px; }.detail-field { display: grid; gap: 4px; }.detail-field small { color: #9aa7a3; font-size: 9px; }.detail-field strong { color: #3e4d4c; font-size: 11px; overflow-wrap: anywhere; }.evidence-list { display: grid; gap: 8px; margin-top: 12px; }.evidence-item { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #687773; }.evidence-item::before { content: "✓"; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #4d875f; background: #e4f1e8; font-size: 9px; font-weight: 850; }.evidence-item.review::before { content: "!"; color: #9b791e; background: #fff2ca; }.hash-box { margin-top: 12px; padding: 10px; border-radius: 7px; background: #f1f3f0; color: #87948f; font: 9px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }.archive-card { display: grid; gap: 13px; margin-top: 12px; padding: 12px; border: 1px solid #e0e7df; border-radius: 9px; background: #f7faf6; }.archive-card > div:first-child { display: grid; gap: 4px; }.archive-card strong { color: #43564e; font-size: 11px; }.archive-card small { color: #87948f; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }.archive-actions { display: flex; gap: 8px; }.archive-actions button { flex: 1; justify-content: center; }.drawer-actions { display: flex; gap: 9px; margin-top: 20px; }.drawer-actions button { flex: 1; justify-content: center; }.delete-button { border: 1px solid #f0ceca; color: var(--red); background: #fff; border-radius: 8px; padding: 10px; font-size: 10px; font-weight: 750; }
.register-panel { margin-bottom: 20px; }.plant-register-wrap { overflow-x: hidden; }.plant-register-table { width: 100%; min-width: 0; table-layout: fixed; }.plant-register-table th, .plant-register-table td { padding-left: 7px; padding-right: 7px; }.plant-register-table th { white-space: normal; line-height: 1.25; font-size: 8px; letter-spacing: .75px; }.plant-register-table th:nth-child(1), .plant-register-table td:nth-child(1) { width: 6%; }.plant-register-table th:nth-child(2), .plant-register-table td:nth-child(2) { width: 25%; }.plant-register-table th:nth-child(3), .plant-register-table td:nth-child(3) { width: 21%; }.plant-register-table th:nth-child(4), .plant-register-table td:nth-child(4), .plant-register-table th:nth-child(5), .plant-register-table td:nth-child(5) { width: 24%; }.plant-register-table tbody tr[data-equipment-id] { cursor: default; }.plant-register-table td:first-child { color: #87948f; font-weight: 750; }.register-id { display: grid; gap: 4px; min-width: 0; }.register-id strong { color: #2e3d3d; font-size: 11px; overflow-wrap: anywhere; }.register-id small { color: #87948f; font-size: 9px; overflow-wrap: anywhere; }.register-status { display: block; padding: 8px 5px; border: 1px solid; border-radius: 6px; text-align: center; font-size: 9px; font-weight: 850; white-space: nowrap; }.register-status.received { color: #13662d; background: #cdeed3; border-color: #3c9656; }.register-status.pending, .register-status.expired { color: #8f1717; background: #f8d2d2; border-color: #d94a4a; }.register-status.review { color: #926215; background: #fff0c9; border-color: #ddb14c; }
.plant-register-table td[data-label="Plant type"] { overflow-wrap: anywhere; }
.register-status.not-required { color: #687772; background: #eef2ef; border-color: #cbd6d0; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.walkaround-warning { display: block; margin-top: 4px; color: #a36d16; font-size: 9px; font-weight: 850; line-height: 1.25; }
.supplier-action { color: #a36d16 !important; }
.documents-table { width: 100%; min-width: 0; table-layout: fixed; }
.documents-table th, .documents-table td { padding-left: 7px; padding-right: 7px; }
.documents-table th { white-space: normal; line-height: 1.25; font-size: 8px; letter-spacing: .7px; }
.documents-table th:nth-child(1), .documents-table td:nth-child(1) { width: 27%; }
.documents-table th:nth-child(2), .documents-table td:nth-child(2) { width: 12%; }
.documents-table th:nth-child(3), .documents-table td:nth-child(3) { width: 22%; }
.documents-table th:nth-child(4), .documents-table td:nth-child(4) { width: 11%; }
.documents-table th:nth-child(5), .documents-table td:nth-child(5) { width: 11%; }
.documents-table th:nth-child(6), .documents-table td:nth-child(6) { width: 13%; }
.documents-table th:nth-child(7), .documents-table td:nth-child(7) { width: 4%; }
.documents-table .doc-cell, .documents-table .entity-cell { min-width: 0; }
.documents-table .doc-copy strong, .documents-table .doc-copy small, .documents-table .entity-cell strong, .documents-table .entity-cell small { overflow-wrap: anywhere; }
.documents-table .doc-copy strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.documents-table .doc-copy small { white-space: normal; line-height: 1.25; }
.documents-table .status-pill { white-space: normal; justify-content: center; text-align: center; }
.entity-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.entity-remove { width: 23px; height: 23px; padding: 0; border: 1px solid #ead5d1; border-radius: 50%; background: #fff; color: #bd6d65; font-size: 15px; line-height: 1; }
.entity-remove:hover { background: var(--red-bg); color: var(--red); }
.project-list { display: grid; gap: 8px; margin-bottom: 22px; }.project-choice { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid #e0e7df; border-radius: 9px; background: #fff; text-align: left; color: #425451; }.project-choice:hover, .project-choice.active { background: #f4f8f1; border-color: #a8c69b; }.project-choice-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #e8f1df; color: #6f924b; font-size: 10px; font-weight: 850; }.project-choice > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }.project-choice strong { font-size: 11px; }.project-choice small { color: #8b9995; font-size: 9px; }.project-choice em { color: #6a9657; font-size: 9px; font-style: normal; font-weight: 850; }.project-form-heading { display: grid; gap: 4px; padding: 17px 0 13px; border-top: 1px solid var(--line); }.project-form-heading strong { color: #43564e; font-size: 12px; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-region { position: fixed; z-index: 40; right: 22px; bottom: 22px; display: grid; gap: 9px; width: min(330px, calc(100vw - 44px)); }.toast { background: #172123; color: #eaf1eb; border: 1px solid #38494a; border-radius: 9px; box-shadow: 0 12px 30px rgba(10, 20, 20, .18); padding: 12px 14px; font-size: 11px; line-height: 1.45; animation: appear .2s ease; }.toast strong { color: var(--lime); }

@media (max-width: 1080px) { .main-content { padding-left: 29px; padding-right: 29px; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.rulepack-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { width: auto; min-height: 0; padding: 17px 15px 12px; }.brand-lockup { padding: 0 4px 16px; }.workspace-label, .company-switcher, .sidebar-bottom { display: none; }.primary-nav { margin: 0; display: flex; gap: 4px; overflow-x: auto; }.nav-item { padding: 9px 11px; white-space: nowrap; }.nav-count { display: none; }.main-content { padding: 0 16px 36px; }.topbar { height: 56px; }.view { padding-top: 28px; }.page-heading, .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 19px; }.page-heading .primary-button { align-self: stretch; justify-content: center; }.heading-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }.heading-actions button { justify-content: center; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { min-height: 126px; padding: 15px; }.metric-value { font-size: 29px; }.metric-foot { display: grid; gap: 4px; }.validation-panel, .attention-panel, .recent-panel { padding: 17px; }.toolbar { display: grid; gap: 10px; }.search-box { min-width: 0; }.filter-group { display: grid; grid-template-columns: 1fr 1fr; }.filter-group select { width: 100%; }.entity-grid, .rulepack-grid { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-field.full { grid-column: auto; }.modal-backdrop { padding: 0; place-items: end center; }.modal { max-height: 93vh; border-radius: 16px 16px 0 0; }.modal-header, .modal-body { padding-left: 19px; padding-right: 19px; }.detail-drawer { width: 100%; }.detail-drawer::before { display: none; } }
@media (max-width: 760px) { .plant-register-wrap { overflow-x: hidden; }.plant-register-table, .plant-register-table thead, .plant-register-table tbody, .plant-register-table tr, .plant-register-table th, .plant-register-table td { display: block; width: 100% !important; }.plant-register-table thead { display: none; }.plant-register-table tbody tr { padding: 10px 0; border-top: 1px solid #edf0ed; }.plant-register-table tbody tr:first-child { border-top: 0; }.plant-register-table td { display: grid; grid-template-columns: 38% 62%; align-items: center; gap: 8px; border: 0; padding: 6px 0 !important; font-size: 10px; }.plant-register-table td::before { content: attr(data-label); color: #96a29f; font-size: 8px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }.plant-register-table td:first-child { display: none; }.plant-register-table .register-status { max-width: 190px; }.register-panel { padding: 15px; } }
@media (max-width: 900px) { .documents-table, .documents-table thead, .documents-table tbody, .documents-table tr, .documents-table th, .documents-table td { display: block; width: 100% !important; }.documents-table thead { display: none; }.documents-table tbody tr { position: relative; padding: 13px 30px 13px 0; border-top: 1px solid #edf0ed; }.documents-table tbody tr:first-child { border-top: 0; }.documents-table td { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 8px; border: 0; padding: 4px 0 !important; font-size: 10px; }.documents-table td::before { content: attr(data-label); color: #96a29f; font-size: 8px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }.documents-table td:first-child { display: block; padding: 0 0 8px !important; }.documents-table td:first-child::before, .documents-table td:last-child::before { display: none; }.documents-table td:last-child { position: absolute; top: 13px; right: 0; display: block; width: auto !important; padding: 0 !important; }.documents-table .status-pill { max-width: 190px; width: fit-content; }.documents-table .doc-cell { gap: 8px; } }
@media (max-width: 430px) { .metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 112px; }.topbar-actions .icon-button { display: none; }.breadcrumbs { font-size: 10px; } }
