@charset "UTF-8";

/* ── BASE ─────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; font-family: 'Georgia', 'Times New Roman', serif; font-size: 15px; }
body { margin: 0; padding: 0; background: #f2f0eb; color: #1a1a1a; }


a { color: #3a2a00; text-decoration: underline; }
a:hover { color: #6a4a00; }

/* ── HEADER ───────────────────────────────────────────────────────────────── */
.site-header { background: #2a1a00; color: white; padding: 14px 24px; border-bottom: 3px solid #8a6a00; }
.header-inner { max-width: 100%; display: flex; align-items: center; gap: 16px; }
.header-logo { width: 62px; height: 62px; flex-shrink: 0; }
.header-titles h1 { margin: 0; font-size: 1.2rem; font-weight: bold; color: white; line-height: 1.2; }
.header-titles p  { margin: 2px 0 0; font-size: 0.8rem; color: #c8b87a; font-style: italic; }
.header-seal { margin-left: auto; font-size: 0.7rem; color: #a89060; text-align: right; line-height: 1.5; font-style: italic; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.site-nav { background: #3a2a00; border-bottom: 1px solid #2a1a00; }
.site-nav ul { list-style: none; margin: 0; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 0; }
.site-nav ul li a { display: block; padding: 9px 16px; color: #c8b87a; font-size: 0.85rem; text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.15s; }
.site-nav ul li a:hover { color: white; border-bottom-color: #8a6a00; text-decoration: none; }
.site-nav ul li a.active { color: white; border-bottom-color: #d4a800; }

/* ── JURISDICTION BANNER ──────────────────────────────────────────────────── */
.jurisdiction-banner { background: #f8f4e8; border-bottom: 1px solid #c8b87a; padding: 9px 24px; text-align: center; font-size: 0.8rem; color: #5a4a20; font-style: italic; }

/* ── PAGE WRAP ────────────────────────────────────────────────────────────── */
.page-wrap { padding: 24px; }

/* ── TITLES ───────────────────────────────────────────────────────────────── */
.page-title { font-size: 1.35rem; font-weight: bold; color: #2a1a00; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid #8a6a00; }
.page-subtitle { font-size: 0.85rem; color: #7a6a40; margin: 0 0 20px; font-style: italic; }

/* ── SEARCH BAR ───────────────────────────────────────────────────────────── */
.search-bar { background: #faf6ec; border: 1px solid #c8b87a; padding: 14px 18px; margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.search-bar .field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 150px; }
.search-bar label { font-size: 0.75rem; font-weight: bold; color: #5a4a20; text-transform: uppercase; letter-spacing: 0.5px; font-family: system-ui, sans-serif; }
.search-bar input, .search-bar select { border: 1px solid #c8b87a; padding: 7px 10px; font-size: 0.88rem; background: white; color: #1a1a1a; outline: none; font-family: 'Georgia', serif; width: 100%; }
.search-bar input:focus, .search-bar select:focus { border-color: #8a6a00; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn { display: inline-block; padding: 7px 18px; font-size: 0.85rem; font-weight: bold; cursor: pointer; border: 1px solid; text-decoration: none; font-family: 'Georgia', serif; }
.btn-primary   { background: #2a1a00; color: #f0e8c8; border-color: #2a1a00; }
.btn-primary:hover   { background: #3a2a00; color: #f0e8c8; text-decoration: none; }
.btn-secondary { background: #f8f4e8; color: #3a2a00; border-color: #c8b87a; }
.btn-secondary:hover { background: #ede8d8; color: #3a2a00; text-decoration: none; }
.btn-danger    { background: #6a0000; color: white; border-color: #6a0000; }
.btn-danger:hover    { background: #500000; color: white; text-decoration: none; }
.btn-sm { padding: 4px 12px; font-size: 0.78rem; }

/* ── BADGES ───────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; font-size: 0.72rem; font-weight: bold; letter-spacing: 0.4px; text-transform: uppercase; font-family: system-ui, sans-serif; }
.badge-pending   { background: #fff4cc; color: #6b4c00; border: 1px solid #d4a800; }
.badge-review    { background: #e8f0ff; color: #1a3a7a; border: 1px solid #7a9adf; }
.badge-delib     { background: #f4e8ff; color: #4a1a7a; border: 1px solid #9a7adf; }
.badge-ruled     { background: #e8f4e8; color: #1a4a1a; border: 1px solid #5a9a5a; }
.badge-dismissed { background: #f0f0f0; color: #4a4a4a; border: 1px solid #aaaaaa; }
.badge-closed    { background: #f4f0e8; color: #4a3a1a; border: 1px solid #c8b87a; }

/* ── CASE TABLE ───────────────────────────────────────────────────────────── */
.case-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid #c8b87a; }
.case-table thead { background: #2a1a00; color: #f0e8c8; }
.case-table thead th { padding: 10px 14px; text-align: left; font-size: 0.78rem; font-weight: bold; letter-spacing: 0.5px; text-transform: uppercase; font-family: system-ui, sans-serif; }
.case-table tbody tr { border-bottom: 1px solid #e8e0cc; transition: background 0.1s; }
.case-table tbody tr:hover { background: #faf6ec; }
.case-table tbody tr:last-child { border-bottom: none; }
.case-table tbody td { padding: 10px 14px; font-size: 0.88rem; vertical-align: middle; }
.case-rec-num { font-family: 'Courier New', monospace; font-size: 0.8rem; color: #5a4a20; }
.case-title-link { color: #3a2a00; font-weight: bold; font-size: 0.9rem; text-decoration: none; }
.case-title-link:hover { text-decoration: underline; }
.no-results { text-align: center; padding: 40px; color: #7a6a40; font-style: italic; }

/* ── CASE DETAIL ──────────────────────────────────────────────────────────── */
.case-header-block { background: #faf6ec; border: 1px solid #c8b87a; border-left: 4px solid #8a6a00; padding: 18px 20px; margin-bottom: 20px; }
.case-header-block h2 { margin: 0 0 8px; font-size: 1.35rem; color: #1a1a1a; line-height: 1.3; }
.case-meta-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; font-size: 0.82rem; color: #5a4a20; }
.case-meta-row strong { color: #1a1a1a; }
.case-detail-wrap { display: flex; gap: 22px; align-items: flex-start; }
.case-detail-main { flex: 1; min-width: 0; }
.case-detail-side { width: 255px; flex-shrink: 0; }
@media (max-width: 700px) { .case-detail-wrap { flex-direction: column; } .case-detail-side { width: 100%; } }

/* ── DETAIL CARDS ─────────────────────────────────────────────────────────── */
.detail-card { background: white; border: 1px solid #c8b87a; margin-bottom: 18px; }
.detail-card-header { background: #3a2a00; color: #f0e8c8; padding: 8px 16px; font-size: 0.75rem; font-weight: bold; letter-spacing: 0.5px; text-transform: uppercase; font-family: system-ui, sans-serif; }
.detail-card-body { padding: 16px; }

/* ── JURISDICTION NOTE ────────────────────────────────────────────────────── */
.jurisdiction-note { background: #f8f4e8; border: 1px solid #d4c888; border-left: 3px solid #8a6a00; padding: 12px 14px; margin-bottom: 16px; font-size: 0.83rem; color: #4a3a10; font-style: italic; line-height: 1.6; }
.law-basis-box { background: #f8f4e8; border: 1px solid #c8b87a; padding: 12px 14px; font-size: 0.88rem; line-height: 1.7; color: #2a1a00; }
.case-description { font-size: 0.9rem; line-height: 1.8; color: #1a1a1a; white-space: pre-wrap; }

/* ── RULING ───────────────────────────────────────────────────────────────── */
.ruling-box { background: #eef4ee; border: 1px solid #8a9a8a; border-left: 4px solid #1a4a1a; padding: 14px 16px; font-size: 0.9rem; line-height: 1.75; color: #1a1a1a; white-space: pre-wrap; }
.ruling-pending { background: #fff9e8; border: 1px solid #d4c888; border-left: 4px solid #8a6a00; padding: 14px 16px; font-size: 0.9rem; color: #5a4a10; font-style: italic; line-height: 1.6; }
.ruling-date { font-size: 0.8rem; color: #5a4a20; margin-top: 10px; font-style: italic; border-top: 1px solid #c8c0a8; padding-top: 8px; }

/* ── PARTIES ──────────────────────────────────────────────────────────────── */
.party-group { margin-bottom: 14px; }
.party-role-label { font-size: 0.72rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; color: #8a6a00; margin-bottom: 4px; font-family: system-ui, sans-serif; border-bottom: 1px solid #e8e0cc; padding-bottom: 3px; }
.party-entry { padding: 5px 0; border-bottom: 1px solid #f0ece0; }
.party-entry:last-child { border-bottom: none; }
.party-name { font-size: 0.9rem; color: #1a1a1a; font-weight: bold; }
.party-lro { font-size: 0.75rem; color: #7a6a40; font-family: 'Courier New', monospace; }
.party-notes-text { font-size: 0.78rem; color: #7a6a40; font-style: italic; }

/* ── DOCUMENTS ────────────────────────────────────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #c8b87a; background: #faf6ec; }
.doc-item:hover { background: #f4eed8; }
.doc-thumb { width: 60px; height: 78px; flex-shrink: 0; border: 1px solid #c8b87a; background: #e8e0cc; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #8a7a50; }
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-weight: bold; font-size: 0.9rem; color: #1a1a1a; margin-bottom: 2px; }
.doc-type-tag { display: inline-block; background: #ede8d8; border: 1px solid #c8b87a; padding: 1px 7px; font-size: 0.7rem; color: #5a4a20; margin-bottom: 5px; text-transform: uppercase; font-family: system-ui, sans-serif; }
.doc-date { font-size: 0.78rem; color: #7a6a40; margin-bottom: 7px; font-style: italic; }

/* ── INFO TABLE ───────────────────────────────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid #f0ece0; }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 6px 8px; font-size: 0.85rem; vertical-align: top; }
.info-table td:first-child { width: 42%; color: #5a4a20; font-weight: bold; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3px; font-family: system-ui, sans-serif; }

/* ── QUORUM ───────────────────────────────────────────────────────────────── */
.quorum-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; font-size: 0.75rem; font-weight: bold; font-family: system-ui, sans-serif; }
.quorum-yes { background: #e8f4e8; color: #1a4a1a; border: 1px solid #5a9a5a; }
.quorum-no  { background: #f8e8e8; color: #4a1a1a; border: 1px solid #c87a7a; }

/* ── ADMIN FORMS ──────────────────────────────────────────────────────────── */
.form-wrap { max-width: 860px; }
.form-section { background: white; border: 1px solid #c8b87a; margin-bottom: 20px; }
.form-section-title { background: #3a2a00; color: #f0e8c8; padding: 9px 16px; font-size: 0.78rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; font-family: system-ui, sans-serif; }
.form-section-body { padding: 18px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.78rem; font-weight: bold; color: #5a4a20; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.3px; font-family: system-ui, sans-serif; }
.form-label .req { color: #8a0000; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 8px 11px; border: 1px solid #c8b87a; font-size: 0.9rem; background: #faf6ec; color: #1a1a1a; outline: none; font-family: 'Georgia', serif; transition: border-color 0.15s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #8a6a00; }
.form-textarea { min-height: 110px; resize: vertical; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 160px; }
.form-hint { font-size: 0.75rem; color: #7a6a40; margin-top: 3px; font-style: italic; }
.form-check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.88rem; color: #3a2a00; }
.form-check-label input[type="checkbox"] { accent-color: #8a6a00; width: 16px; height: 16px; }

/* ── PARTY ROWS ───────────────────────────────────────────────────────────── */
.party-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.party-row select { width: 175px; flex-shrink: 0; padding: 7px 8px; border: 1px solid #c8b87a; font-family: 'Georgia', serif; font-size: 0.88rem; background: #faf6ec; color: #1a1a1a; }
.party-row input  { flex: 1; min-width: 110px; }
.btn-remove-party { background: none; border: none; color: #6a0000; cursor: pointer; font-size: 1.1rem; padding: 0 4px; line-height: 1; }
.btn-add-party { background: transparent; border: 1px dashed #8a6a00; color: #8a6a00; padding: 5px 14px; font-size: 0.82rem; cursor: pointer; margin-top: 4px; font-family: 'Georgia', serif; }
.btn-add-party:hover { background: #faf6ec; }

/* ── DOC UPLOAD ROWS ──────────────────────────────────────────────────────── */
.doc-upload-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.doc-upload-row input[type="text"] { flex: 1; min-width: 120px; }
.doc-upload-row select { width: 150px; flex-shrink: 0; padding: 7px 8px; border: 1px solid #c8b87a; background: #faf6ec; font-family: 'Georgia', serif; font-size: 0.88rem; color: #1a1a1a; }
.doc-upload-row input[type="file"] { flex: 1; min-width: 160px; font-size: 0.82rem; font-family: system-ui, sans-serif; }

/* ── MESSAGES ─────────────────────────────────────────────────────────────── */
.msg { padding: 10px 16px; margin-bottom: 16px; font-size: 0.88rem; border: 1px solid; }
.msg-success { background: #eef4ee; border-color: #5a9a5a; color: #1a4a1a; }
.msg-error   { background: #f8e8e8; border-color: #c87a7a; color: #4a1a1a; }

/* ── DASHBOARD STATS ──────────────────────────────────────────────────────── */
.dash-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-card { background: white; border: 1px solid #c8b87a; padding: 14px 18px; flex: 1; min-width: 100px; text-align: center; }
.stat-num { font-size: 1.9rem; font-weight: bold; color: #2a1a00; line-height: 1; }
.stat-label { font-size: 0.72rem; color: #7a6a40; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 4px; font-family: system-ui, sans-serif; }

/* ── LOGIN ────────────────────────────────────────────────────────────────── */
.login-wrap { max-width: 380px; margin: 50px auto; background: white; border: 1px solid #c8b87a; }
.login-header-bar { background: #2a1a00; color: #f0e8c8; padding: 14px 18px; font-size: 1rem; font-weight: bold; }
.login-body { padding: 22px 20px; }

/* ── ADMIN NAV ────────────────────────────────────────────────────────────── */
.admin-nav { background: #2a1a00; display: flex; border-bottom: 1px solid #1a0a00; }
.admin-nav a { color: #c8b87a; font-size: 0.85rem; padding: 9px 16px; text-decoration: none; border-bottom: 2px solid transparent; }
.admin-nav a.active { color: white; border-bottom-color: #d4a800; }
.admin-nav a:hover  { color: white; text-decoration: none; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer.footercolor { background: #2a1a00; color: #c8b87a; text-align: center; padding: 14px 24px; margin-top: 40px; font-size: 0.8rem; font-style: italic; }
footer.footercolor a { color: #a89060; }

/* ── UTILITIES ────────────────────────────────────────────────────────────── */
.back-link { color: #5a4a20; font-size: 0.85rem; display: inline-block; margin-bottom: 16px; text-decoration: none; }
.back-link:hover { text-decoration: underline; color: #2a1a00; }
.divider { border: none; border-top: 1px solid #c8b87a; margin: 22px 0; }
.text-muted { color: #7a6a40; font-style: italic; }
.seal-note { font-size: 0.78rem; color: #7a6a40; font-style: italic; text-align: center; padding: 8px; border-top: 1px solid #e8e0cc; margin-top: 10px; }
