/* drawer.css - extracted from mesh-PO_sheet.html */

.main-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 480px; border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; overflow: hidden; background: white; transform: translateX(100%); transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.24s ease; z-index: 20; box-shadow: none; pointer-events: none; }
.md-header { padding: 18px 20px 14px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; display: flex; align-items: flex-start; gap: 12px; }
.md-header-text { flex: 1; min-width: 0; }
.md-po { font-size: 22px; font-weight: 700; color: #111827; line-height: 1.15; letter-spacing: -0.4px; }
.md-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; color: #6b7280; border: none; background: none; flex-shrink: 0; transition: background 0.12s, color 0.12s; }
.md-close:hover { background: #f3f4f6; color: #111827; }
.md-meta { font-size: 12px; color: #6b7280; margin-top: 4px; line-height: 1.4; }
.md-tabs { display: flex; border-bottom: 1px solid #e5e7eb; padding: 0 16px; flex-shrink: 0; gap: 4px; }
.md-tab { padding: 10px 10px; font-size: 12.5px; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: color 0.12s; background: none; border-left: none; border-right: none; border-top: none; }
.md-tab svg { color: currentColor; flex-shrink: 0; }
.md-tab:hover { color: #374151; }
.md-tab.on { color: #4f6ef7; border-bottom-color: #4f6ef7; font-weight: 500; }
.md-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.md-details { display: none; padding: 16px; }
.md-details.on { display: block; }
.md-invoices { display: none; padding: 16px; }
.md-invoices.on { display: block; }
.md-history { display: none; padding: 16px; }
.md-history.on { display: block; }
.md-activity { display: none; padding: 18px 20px; }
.md-activity.on { display: block; }
.md-checklist { display: none; flex-direction: column; padding: 14px 14px 12px; }
.md-checklist.on { display: flex; }
.md-checklist .cl-tabs { display: flex; gap: 0; padding: 0; border-bottom: 1px solid #e5e7eb; margin: 0 -2px 8px; }
.md-checklist .cl-tab { padding: 6px 12px 8px; margin-right: 8px; font-size: 12px; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.md-checklist .cl-tab:hover { color: #374151; }
.md-checklist .cl-tab.on { color: #4f6ef7; border-bottom-color: #4f6ef7; font-weight: 500; }
.md-checklist .cl-list { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 0; }
.md-emails { display: none; padding: 16px; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 0; }
.md-emails.on { display: flex; }
.md-emails-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 60px; color: #9ca3af; }
.md-emails-empty svg { color: #c4c9d4; }
.md-emails-empty .me-msg { font-size: 12.5px; color: #6b7280; text-align: center; }
.hist-list { display: flex; flex-direction: column; }
.hist-row { display: flex; gap: 12px; padding-bottom: 18px; position: relative; }
.hist-row:last-child { padding-bottom: 0; }
.hist-ic-col { width: 22px; flex-shrink: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.hist-ic { width: 22px; height: 22px; border-radius: 50%; background: #eef2ff; color: #4f6ef7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; }
.hist-ic.current { background: #dbeafe; color: #2563eb; }
.hist-line { flex: 1; width: 1px; background: #e5e7eb; margin-top: 1px; }
.hist-row:last-child .hist-line { display: none; }
.hist-body { flex: 1; min-width: 0; padding-bottom: 2px; }
.hist-title { font-size: 12.5px; font-weight: 500; color: #111827; line-height: 1.4; }
.hist-meta { font-size: 11px; color: #6b7280; margin-top: 2px; }
.hist-detail { font-size: 11.5px; color: #374151; margin-top: 10px; line-height: 1.4; }
.hist-source { font-size: 11px; color: #9ca3af; margin-top: 3px; line-height: 1.4; }
.hist-toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; font-size: 12px; color: #4f6ef7; cursor: pointer; font-weight: 500; user-select: none; }
.hist-toggle:hover { color: #4060e8; }
.hist-toggle .chev { transition: transform 0.15s; display: inline-flex; }
.hist-toggle.open .chev { transform: rotate(180deg); }
.hist-changes { margin-top: 8px; padding: 8px 10px; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 6px; font-size: 11.5px; color: #374151; line-height: 1.5; display: none; }
.hist-changes.on { display: block; }
.hist-changes .hc-row { display: flex; gap: 6px; padding: 2px 0; }
.hist-changes .hc-row + .hc-row { border-top: 1px dashed #f3f4f6; padding-top: 4px; margin-top: 4px; }
.hist-changes .hc-field { color: #6b7280; min-width: 80px; }
.hist-changes .hc-from { color: #9ca3af; text-decoration: line-through; }
.hist-changes .hc-arr { color: #c4c9d4; }
.hist-changes .hc-to { color: #111827; font-weight: 500; }
.hist-empty { font-size: 11.5px; color: #9ca3af; margin-top: 6px; }
.det-row { display: flex; padding: 7px 0; border-bottom: 1px solid #f3f4f6; }
.det-row:last-child { border-bottom: none; }
.det-label { width: 120px; flex-shrink: 0; font-size: 11px; color: #9ca3af; font-weight: 500; }
.det-value { font-size: 12px; color: #111827; font-weight: 500; flex: 1; }
.det-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid #f3f4f6; margin-bottom: 12px; }
.det-hero-left { flex: 1; min-width: 0; }
.det-hero-lbl { font-size: 10px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.det-hero-amt { font-size: 22px; font-weight: 700; color: #111827; line-height: 1.1; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.det-hero-prev { font-size: 11px; color: #9ca3af; margin-top: 4px; text-decoration: line-through; }
.det-hero-delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; background: #eff6ff; color: #1e40af; border-radius: 4px; font-size: 10px; font-weight: 600; margin-left: 6px; vertical-align: middle; text-decoration: none; }
.det-hero-delta.up { background: #f0fdf4; color: #15803d; }
.det-hero-delta.down { background: #fffbeb; color: #b45309; }
.det-hero-status { margin-top: 8px; }
.det-section { padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.det-section:last-child { border-bottom: none; }
.det-section-lbl { font-size: 9.5px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.det-section .det-row { padding: 5px 0; border-bottom: none; }
.det-section .det-label { width: 100px; }
.md-details, .md-invoices, .md-comments, .md-activity, .md-emails, .md-history, .md-reasoning { padding: 18px 20px; }
.md-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.md-foot { flex-shrink: 0; padding: 12px 20px 14px; border-top: 1px solid #e5e7eb; background: white; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.md-foot-btn { width: 100%; padding: 11px 14px; font-size: 13.5px; font-weight: 600; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; font-family: inherit; }
.md-foot-btn.primary.tone-blue { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.md-foot-btn.primary.tone-blue:hover { background: #dbeafe; }
.md-foot-btn.primary.tone-amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.md-foot-btn.primary.tone-amber:hover { background: #fef3c7; }
.md-foot-btn.primary.tone-green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.md-foot-btn.primary.tone-green:hover { background: #dcfce7; }
.md-foot-btn.primary.tone-gray { background: #f3f4f6; color: #9ca3af; border-color: #e5e7eb; cursor: not-allowed; }
.md-foot-btn.primary.tone-gray:hover { background: #f3f4f6; }
.md-foot-secondary { display: inline-flex; align-items: center; gap: 6px; justify-content: center; padding: 8px 12px; font-size: 12.5px; cursor: pointer; border-radius: 7px; transition: color 0.12s, background 0.12s; background: none; border: none; font-family: inherit; font-weight: 500; }
.md-foot-secondary.tone-amber { color: #b45309; }
.md-foot-secondary.tone-amber:hover { background: #fff7ed; }
.md-foot-secondary.tone-pink { color: #be185d; }
.md-foot-secondary.tone-pink:hover { background: #fdf2f8; }
.md-foot-secondary.tone-ghost { color: #6b7280; font-weight: 400; }
.md-foot-secondary.tone-ghost:hover { color: #111827; background: #f3f4f6; }
.md-foot-escalate { display: inline-flex; align-items: center; gap: 6px; justify-content: center; padding: 8px 12px; font-size: 12.5px; color: #b45309; cursor: pointer; border-radius: 7px; transition: color 0.12s, background 0.12s; background: none; border: none; font-family: inherit; font-weight: 500; }
.md-foot-escalate:hover { background: #fff7ed; }
.dr-sugg { padding: 14px 16px; background: #f5f7fb; border: 1px solid #e7eaf3; border-radius: 12px; margin-bottom: 18px; position: relative; }
.dr-sugg.has-override { border-color: #c7d2fe; background: #eef2ff; }
.dr-sugg-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dr-sugg-lbl { font-size: 10.5px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.dr-sugg-amt { font-size: 28px; font-weight: 700; color: #111827; line-height: 1.1; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.dr-sugg-prev { font-size: 11.5px; color: #9ca3af; margin-top: 4px; text-decoration: line-through; }
.dr-sugg-override-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 4px 6px; border-radius: 5px; font-size: 12px; color: #4b5563; cursor: pointer; font-family: inherit; transition: background 0.12s, color 0.12s; }
.dr-sugg-override-btn:hover { background: rgba(0,0,0,0.04); color: #111827; }
.dr-sugg-override-btn svg { color: currentColor; }
.dr-override-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: #e0e7ff; color: #4338ca; font-size: 10.5px; font-weight: 600; border-radius: 999px; margin-top: 6px; }
.dr-override-form { margin-top: 12px; padding: 12px; background: white; border: 1px solid #c7d2fe; border-radius: 10px; display: none; flex-direction: column; gap: 8px; }
.dr-override-form.on { display: flex; }
.dr-override-input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; font-family: inherit; outline: none; transition: border-color 0.12s, box-shadow 0.12s; background: white; }
.dr-override-input:focus { border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12); }
.dr-override-textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; font-family: inherit; outline: none; resize: vertical; min-height: 64px; transition: border-color 0.12s, box-shadow 0.12s; background: white; }
.dr-override-textarea:focus { border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12); }
.dr-override-attach { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 12.5px; color: #6b7280; cursor: pointer; align-self: flex-start; background: none; border: none; font-family: inherit; }
.dr-override-attach:hover { color: #374151; }
.dr-override-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.dr-override-btn { padding: 7px 14px; font-size: 12.5px; font-weight: 500; border-radius: 999px; cursor: pointer; font-family: inherit; transition: background 0.12s; border: none; }
.dr-override-btn.cancel { background: none; color: #6b7280; }
.dr-override-btn.cancel:hover { color: #111827; background: #f3f4f6; }
.dr-override-btn.save { background: #2046ff; color: white; opacity: 0.6; }
.dr-override-btn.save.active { opacity: 1; }
.dr-override-btn.save.active:hover { background: #1a3dd6; }
.dr-override-btn.save:disabled, .dr-override-btn.save:not(.active) { cursor: not-allowed; }
.dr-sec { padding: 16px 0; border-bottom: 1px solid #f3f4f6; }
.dr-sec:last-child { border-bottom: none; }
.dr-sec-lbl { font-size: 10.5px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.dr-pill { display: inline-block; padding: 9px 14px; background: #f5f7fb; border: 1px solid #e7eaf3; border-radius: 999px; font-size: 13px; color: #111827; font-weight: 500; max-width: 100%; }
.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.dr-grid-key { font-size: 11.5px; color: #6b7280; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.dr-grid-val { font-size: 13.5px; font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; line-height: 1.3; }
.dr-grid-val.muted { color: #c4c9d4; font-weight: 500; }
.dr-grid-val.dash::before { content: '—'; color: #c4c9d4; }
.dr-signoff { padding: 14px 16px; border: 1px solid #e7eaf3; border-radius: 10px; }
.dr-signoff-lbl { font-size: 10.5px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.dr-signoff-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; }
.dr-signoff-row::before { content: ''; position: absolute; top: 50%; left: 80px; right: 80px; height: 1px; background: #e5e7eb; z-index: 0; }
.dr-sign { display: inline-flex; align-items: center; gap: 8px; background: white; padding: 0 4px; position: relative; z-index: 1; }
.dr-sign-circle { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #d1d5db; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dr-sign.done .dr-sign-circle { border-color: #2046ff; background: #2046ff; color: white; }
.dr-sign-name { font-size: 13px; font-weight: 600; color: #6b7280; }
.dr-sign.done .dr-sign-name { color: #2046ff; }
.dr-rule-card { padding: 12px 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; }
.dr-rule-card.no-match { background: #fffbeb; border-color: #fde68a; }
.dr-rule-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dr-rule-check { width: 20px; height: 20px; border-radius: 50%; background: #16a34a; color: white; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dr-rule-card.no-match .dr-rule-check { background: #d97706; }
.dr-rule-name { font-size: 14px; font-weight: 700; color: #111827; line-height: 1.25; flex: 1; min-width: 0; }
.dr-rule-view-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: white; border: 1px solid #bbf7d0; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: #15803d; cursor: pointer; font-family: inherit; transition: background 0.12s, border-color 0.12s; flex-shrink: 0; }
.dr-rule-view-btn:hover { background: #f0fdf4; border-color: #86efac; }
.dr-rule-card.no-match .dr-rule-view-btn { color: #b45309; border-color: #fde68a; }
.dr-rule-card.no-match .dr-rule-view-btn:hover { background: #fffbeb; border-color: #fcd34d; }
.dr-preview-modal { width: 440px; max-width: calc(100vw - 32px); padding: 0; }
.dr-preview-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid #f3f4f6; }
.dr-preview-num { width: 30px; height: 30px; border-radius: 7px; background: #eff6ff; color: #2046ff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.dr-preview-titles { flex: 1; min-width: 0; }
.dr-preview-title { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.25; }
.dr-preview-sub { font-size: 11.5px; color: #6b7280; margin-top: 3px; line-height: 1.4; }
.dr-preview-close { width: 28px; height: 28px; border-radius: 6px; background: none; border: none; color: #6b7280; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.12s, color 0.12s; }
.dr-preview-close:hover { background: #f3f4f6; color: #111827; }
.dr-preview-body { padding: 16px 20px 18px; max-height: 50vh; overflow-y: auto; }
.dr-preview-section-lbl { font-size: 10.5px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.dr-preview-section-lbl + .dr-preview-section-lbl { margin-top: 14px; }
.dr-preview-desc { font-size: 12.5px; color: #374151; line-height: 1.55; margin-bottom: 14px; }
.dr-preview-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; background: #f5f7fb; border: 1px solid #e7eaf3; border-radius: 8px; font-size: 12px; line-height: 1.7; }
.dr-preview-action { font-size: 12.5px; color: #374151; padding: 8px 12px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; margin-top: 10px; line-height: 1.5; }
.dr-preview-action b { color: #15803d; }
.dr-preview-foot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 20px 16px; border-top: 1px solid #f3f4f6; }
.dr-preview-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; font-size: 12.5px; font-weight: 500; border-radius: 7px; cursor: pointer; font-family: inherit; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.dr-preview-btn.ghost { background: none; border: none; color: #6b7280; }
.dr-preview-btn.ghost:hover { background: #f3f4f6; color: #111827; }
.dr-preview-btn.primary { background: #2046ff; color: white; border: 1px solid #2046ff; }
.dr-preview-btn.primary:hover { background: #1a3dd6; border-color: #1a3dd6; }
.dr-rule-why { font-size: 12px; color: #4b5563; line-height: 1.5; margin-top: 4px; }
.dr-rule-evidence { margin-top: 10px; padding: 9px 11px; background: white; border: 1px solid #e7eaf3; border-radius: 7px; }
.dr-rule-evidence-lbl { font-size: 9.5px; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.dr-rule-evidence-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: 11.5px; gap: 12px; }
.dr-rule-evidence-row + .dr-rule-evidence-row { border-top: 1px dashed #f3f4f6; }
.dr-rule-evidence-key { color: #6b7280; flex-shrink: 0; }
.dr-rule-evidence-val { color: #111827; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; word-break: break-word; }
.dr-other-toggle { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: white; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; user-select: none; transition: background 0.12s, border-color 0.12s; font-family: inherit; width: 100%; text-align: left; }
.dr-other-toggle:hover { background: #f9fafb; border-color: #d1d5db; }
.dr-other-toggle .chev { color: #9ca3af; transition: transform 0.18s; flex-shrink: 0; }
.dr-other-toggle.open .chev { transform: rotate(180deg); }
.dr-other-toggle-lbl { flex: 1; font-size: 12.5px; font-weight: 500; color: #374151; }
.dr-other-toggle-count { font-size: 11px; color: #9ca3af; }
.dr-other-list { margin-top: 6px; display: none; flex-direction: column; gap: 1px; }
.dr-other-list.on { display: flex; }
.dr-other-item { padding: 9px 12px; background: #fafafa; border-radius: 7px; display: flex; gap: 10px; align-items: flex-start; }
.dr-other-x { width: 16px; height: 16px; flex-shrink: 0; color: #cbd5e1; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.dr-other-body { flex: 1; min-width: 0; }
.dr-other-name { font-size: 12.5px; font-weight: 500; color: #374151; line-height: 1.3; }
.dr-other-num { display: inline-block; min-width: 22px; padding: 1px 6px; margin-right: 6px; background: #eef2ff; color: #4f6ef7; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 4px; line-height: 1.4; text-align: center; vertical-align: 1px; }
.dr-rule-num { display: inline-block; min-width: 22px; padding: 1px 6px; margin-right: 8px; background: white; color: #15803d; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 4px; line-height: 1.4; text-align: center; border: 1px solid #bbf7d0; vertical-align: 2px; }
.dr-rule-card.no-match .dr-rule-num { color: #b45309; border-color: #fde68a; }
.dr-other-why { font-size: 11.5px; color: #8b8f99; line-height: 1.5; margin-top: 3px; }
.dr-other-status { font-size: 10.5px; color: #9ca3af; margin-top: 5px; font-weight: 500; letter-spacing: 0.02em; }
.dr-other-item.not-evaluated { opacity: 0.6; }
.dr-other-item.not-evaluated .dr-other-x { color: #d1d5db; }
.dr-other-item.not-evaluated .dr-other-status { color: #b6bcc7; }
.md-reasoning { display: none; padding: 16px; }
.md-reasoning.on { display: block; }
.inv-summary { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.inv-summary-row { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; margin-bottom: 4px; }
.inv-summary-row:last-child { margin-bottom: 0; }
.inv-summary-row strong { color: #111827; font-weight: 600; }
.inv-callout { display: flex; align-items: flex-start; gap: 6px; padding: 8px 10px; border-radius: 6px; font-size: 11px; margin-bottom: 8px; }
.inv-callout.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.inv-callout.info { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.inv-table th { text-align: left; font-weight: 500; color: #9ca3af; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; padding: 6px 4px; border-bottom: 1px solid #e5e7eb; }
.inv-table th.r { text-align: right; }
.inv-table td { padding: 7px 4px; border-bottom: 1px solid #f3f4f6; font-size: 11px; }
.inv-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.inv-table tbody tr:hover { background: #fafbff; }
.inv-num { color: #4f6ef7; font-weight: 500; cursor: pointer; }
.inv-status-pill { display: inline-flex; padding: 1px 6px; border-radius: 3px; font-size: 9px; font-weight: 600; }
.inv-status-paid { background: #f0fdf4; color: #16a34a; }
.inv-status-pending { background: #fffbeb; color: #d97706; }
.inv-month-hdr { background: #f9fafb; font-weight: 600; color: #374151; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.inv-month-hdr td { padding: 5px 4px; }
.md-comments { display: none; flex-direction: column; flex: 1; min-height: 0; }
.md-comments.on { display: flex; }
.det-health { margin-top: 6px; padding-top: 4px; }
.det-health-hd { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.det-health-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 11.5px; }
.det-health-row .det-health-ic { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.det-health-row.pass { color: #16a34a; }
.det-health-row.pass .det-health-ic { color: #16a34a; }
.det-health-row.fail { color: #dc2626; }
.det-health-row.fail .det-health-ic { color: #dc2626; }
.det-health-row .det-health-lbl { flex: 1; color: #374151; }
.det-je-link { color: #4f6ef7; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.det-je-link:hover { text-decoration: underline; }
