
:root {
  --bg: #f5f5f5;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #666666;
  --line: #d9d9d9;
  --soft: #efefef;
  --accent: #c5611e;
  --accent-soft: #fff2e8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: "Tajawal", "Segoe UI", sans-serif; line-height: 1.55; }
body { padding: 32px; }
.doc-shell { max-width: 1120px; margin: 0 auto; display: grid; gap: 24px; }
.doc-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.doc-cover { background: linear-gradient(180deg, #ffffff, #fafafa); border-top: 5px solid var(--accent); }
.doc-cover h1, .doc-card h1, .doc-card h2, .doc-card h3 { margin-top: 0; font-weight: 500; }
.brand-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rimmit-logo { display: block; max-width: 152px; height: auto; object-fit: contain; }
.confidential-note { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 14px 16px; background: #fffaf6; }
.kicker { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.meta-grid, .link-grid, .two-col { display: grid; gap: 16px; }
.meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meta-item, .link-item { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fcfcfc; text-decoration: none; display: block; }
.link-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.meta-item span, .link-item span { display: block; color: var(--muted); font-size: .84rem; margin-bottom: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; text-decoration: none; font-size: .86rem; background: #fff; }
.pill.primary { border-color: var(--accent); color: var(--accent); }
a { color: inherit; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: left; }
th { background: var(--soft); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.muted, .print-note { color: var(--muted); }
.print-note { font-size: .86rem; }
@media (max-width: 760px) { body { padding: 16px; } .brand-strip { align-items: flex-start; flex-direction: column; } .meta-grid, .link-grid { grid-template-columns: 1fr; } .doc-card { padding: 20px; border-radius: 16px; } }
@media print { body { padding: 0; background: #fff; } .doc-shell { max-width: none; } .doc-card,.doc-cover { border: none; border-radius: 0; padding: 0; break-inside: avoid; } .actions { display: none; } }
