/* Generated by bin/build-files-skills from shared/ui/index.css. Do not edit. */
:root {
    --ds-terracotta: #c95f5b;
    --ds-orange: #e36d42;
    --ds-ochre: #d8b76a;
    --ds-olive: #a8af6d;
    --ds-seafoam: #7f9c7d;
    --ds-mint: #c0e1dc;
    --ds-blue: #5c76ad;
    --ds-indigo: #706f9c;
    --ds-purple: #987fa0;
    --ds-salmon: #d99091;
    --ds-pink: #fac7c2;
    --ds-background-1: #ffffff;
    --ds-background-2: #fdfcfb;
    --ds-background-3: #dacbc0;
    --ds-foreground-1: #4d3533;
    --ds-foreground-2: rgb(77 53 51 / 0.7);
    --ds-foreground-3: rgb(77 53 51 / 0.5);
    --ds-foreground-4: rgb(77 53 51 / 0.2);
    --ds-foreground-5: rgb(77 53 51 / 0.05);
    --ds-border: var(--ds-foreground-4);
    --ds-hairline: rgb(77 53 51 / 0.1);
    --ds-muted: #f6f2ef;
    --ds-primary: var(--ds-foreground-1);
    --ds-on-primary: #fdfcfb;
    --ds-success: #73a89a;
    --ds-success-wash: rgb(115 168 154 / 0.1);
    --ds-danger: #ed313e;
    --ds-danger-wash: rgb(237 49 62 / 0.1);
    --ds-radius: 12px;
    --ds-radius-compact: 8px;
    --ds-control: 44px;
    --ds-control-compact: 32px;
    --ds-fg1: var(--ds-foreground-1);
    --ds-fg2: var(--ds-foreground-2);
    --ds-fg3: var(--ds-foreground-3);
    --ds-fg4: var(--ds-foreground-4);
    --ds-fg5: var(--ds-foreground-5);
    --ds-bg1: var(--ds-background-1);
    --ds-bg2: var(--ds-background-2);
    --ds-bg3: var(--ds-background-3);
    --ds-white: var(--ds-background-1);
    --ds-page: var(--ds-background-2);
    --ds-raised: var(--ds-muted);
    --ds-ink: var(--ds-foreground-1);
    --ds-ink-2: var(--ds-foreground-2);
    --ds-ink-3: var(--ds-foreground-3);
    --ds-ink-4: var(--ds-foreground-4);
    --ds-teal: var(--ds-success);
    --ds-red: var(--ds-danger);
    --ds-red-border: var(--ds-danger);
    --ds-hover: var(--ds-foreground-5);
    --ds-hover-strong: color-mix(in srgb, #4d3533 10%, transparent);
    --ds-hover-red: color-mix(in srgb, #ed313e 5%, transparent);
    --ds-scrim: rgb(77 53 51 / 0.4);
    --ds-shadow-control: 0 1px 2px color-mix(in srgb, #251f21 5%, transparent);
    --ds-ring: 0 0 0 1px rgb(77 53 51 / 0.05);
    --ds-elevation-0: 0 1px 2px rgb(77 53 51 / 0.05);
    --ds-elevation-1: 0 2px 5px rgb(77 53 51 / 0.075), 0 9px 10px rgb(77 53 51 / 0.064), 0 21px 13px rgb(77 53 51 / 0.038), 0 38px 16px rgb(77 53 51 / 0.011), 0 59px 16px rgb(77 53 51 / 0);
    --ds-elevation-2: var(--ds-ring), 0 6px 12px rgb(77 53 51 / 0.1), 0 22px 23px rgb(77 53 51 / 0.085), 0 50px 31px rgb(77 53 51 / 0.05), 0 88px 37px rgb(77 53 51 / 0.015), 0 138px 38px rgb(77 53 51 / 0);
    --ds-elevation-3: 0 11px 24px rgb(77 53 51 / 0.13), 0 44px 45px rgb(77 53 51 / 0.111), 0 99px 62px rgb(77 53 51 / 0.065), 0 176px 73px rgb(77 53 51 / 0.019), 0 275px 77px rgb(77 53 51 / 0);
    --ds-lift: var(--ds-elevation-0);
    --ds-shadow-modal: var(--ds-elevation-3);
    --ds-font-display: "Aime", Georgia, serif;
    --ds-font-text: "KMR Melange Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- الهيكل العام ---------- */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--ds-font-text);
    color: var(--ds-ink);
    background: #f4efec;
    -webkit-text-size-adjust: 100%;
}
.ohs-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 16px 40px;
    background: var(--ds-background-1);
    min-height: 100vh;
}
@media (min-width: 760px) {
    .ohs-card {
        margin: 28px auto;
        min-height: 0;
        padding: 28px 32px 36px;
        border-radius: 16px;
        box-shadow: 0 1px 3px rgb(77 53 51 / 0.08);
    }
}

/* ---------- العنوان ---------- */
.ohs-title { font-size: 25px; line-height: 1.25; font-weight: 700; margin: 8px 0 6px; }
.ohs-header-fact { font-size: 13px; color: var(--ds-ink-2); margin: 0 0 12px; }
.ohs-header-intro { font-size: 15px; line-height: 1.65; color: var(--ds-ink-2); margin: 0 0 6px; }

/* ---------- المجموعات ---------- */
.ohs-group { padding: 18px 0; border-top: 1px solid var(--ds-hairline); }
.ohs-brand + .ohs-header + .ohs-group, .ohs-header + .ohs-group { border-top: 0; }
.ohs-group-label { font-size: 12px; color: var(--ds-ink-3); margin-bottom: 4px; }
.ohs-group-heading { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 0 0 12px; }

/* ---------- نصوص ---------- */
.ohs-para { font-size: 15px; line-height: 1.7; color: var(--ds-ink-2); margin: 0 0 10px; }
.ohs-caption { font-size: 13px; line-height: 1.6; color: var(--ds-ink-3); margin: 8px 0; }
.ohs-key {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    padding: 12px 14px;
    background: var(--ds-muted);
    border-right: 3px solid var(--ds-ink);
    border-radius: 8px;
}
.ohs-closing { font-size: 13px; line-height: 1.6; color: var(--ds-ink-3); border-top: 1px solid var(--ds-hairline); margin-top: 22px; padding-top: 14px; }

/* ---------- تنبيه ---------- */
.ohs-callout { padding: 12px 14px; border-radius: 10px; background: var(--ds-muted); border-right: 3px solid var(--ds-ochre); }
.ohs-callout-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.ohs-callout-body { font-size: 14px; line-height: 1.7; color: var(--ds-ink-2); }

/* ---------- حقائق ---------- */
.ohs-facts { margin: 14px 0 0; display: grid; gap: 10px; }
.ohs-fact { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ds-hairline); padding-bottom: 6px; }
.ohs-fact dt { color: var(--ds-ink-2); font-size: 14px; }
.ohs-fact dd { margin: 0; font-weight: 600; font-size: 14px; }

/* ---------- أزرار الاختيار ---------- */
.ohs-choice { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.ohs-choice-label { font-size: 13px; color: var(--ds-ink-3); }
.ohs-choice-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ohs-choice-btn {
    font: inherit;
    font-size: 13px;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: transparent;
    color: var(--ds-ink-2);
    cursor: pointer;
}
.ohs-choice-btn.is-on { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-on-primary); }

/* ---------- الرسوم ---------- */
.ohs-chart { margin: 16px 0 6px; }
.ohs-chart-label { font-size: 13px; color: var(--ds-ink-2); margin-bottom: 8px; }
.ohs-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--ds-muted); }
.ohs-stack-part { display: block; height: 100%; }
.ohs-tone-ok { background: var(--ds-success); }
.ohs-tone-warn { background: var(--ds-ochre); }
.ohs-tone-info { background: var(--ds-orange); }
.ohs-tone-muted { background: var(--ds-foreground-4); }
.ohs-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--ds-ink-2); }
.ohs-legend li { display: flex; align-items: center; gap: 6px; }
.ohs-legend b { font-weight: 600; color: var(--ds-ink); }
.ohs-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.ohs-columns { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 4px; direction: ltr; }
.ohs-column { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.ohs-column-value { font-size: 13px; font-weight: 600; }
.ohs-column-bar { width: 100%; max-width: 44px; background: var(--ds-foreground-4); border-radius: 6px 6px 0 0; min-height: 2px; }
.ohs-column-bar.is-highlight { background: var(--ds-success); }
.ohs-column-label { font-size: 11px; line-height: 1.25; color: var(--ds-ink-2); text-align: center; }

/* ---------- زر رجوع ---------- */
.ohs-back { margin: 16px 0 0; }
.file-button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    color: var(--ds-ink);
    text-decoration: none;
    font-size: 13px;
}
.file-button:hover { background: var(--ds-hover); }

html, body, #root { margin: 0; min-height: 100%; }
body { background: var(--ds-page); }

/* عربي: نفس خطوط النظام مع بدائل عربية واضحة */
:root {
    --ds-font-text: "KMR Melange Grotesk", "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    --ds-font-display: "Aime", "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, Georgia, serif;
}

.file-nav { display: flex; flex-wrap: wrap; gap: 20px; border-bottom: 1px solid var(--ds-hairline); }
.file-nav a { padding: 10px 0; color: var(--ds-ink-2); text-decoration: none; }
.file-nav a[aria-current="page"] { color: var(--ds-ink); box-shadow: inset 0 -1px 0 var(--ds-ink); }
@media (max-width: 600px) { .file-nav a { display: inline-flex; align-items: center; min-height: 44px; } }
.ohs-nav { margin-bottom: 8px; }


/* ---------- شعار الشركة ---------- */
.ohs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0 10px;
    min-width: 0;
}
.ohs-brand-logo {
    display: block;
    height: 44px;
    width: auto;
    flex: none;
}
.ohs-brand-name {
    font-size: 13px;
    line-height: 1.35;
    color: var(--ds-ink-2);
    min-width: 0;
}
@media (min-width: 700px) {
    .ohs-brand-logo { height: 56px; }
    .ohs-brand-name { font-size: 15px; }
}

/* ---------- القائمة ---------- */
.ohs-menu { display: grid; }
.ohs-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ds-hairline);
    text-decoration: none;
    color: var(--ds-ink);
}
.ohs-menu-item:first-child { border-top: 1px solid var(--ds-hairline); }
.ohs-menu-item:hover .ohs-menu-name { text-decoration: underline; }
.ohs-menu-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ohs-menu-name { font-size: 15px; font-weight: 600; }
.ohs-menu-desc { font-size: 13px; color: var(--ds-ink-2); line-height: 1.4; }
.ohs-menu-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ohs-menu-count { font-size: 13px; color: var(--ds-ink-2); white-space: nowrap; }

/* ---------- أرقام ---------- */
.ohs-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 16px;
}
.ohs-stat {
    border: 1px solid var(--ds-hairline);
    border-radius: var(--ds-radius);
    padding: 14px;
    background: var(--ds-bg2);
}
.ohs-stat-value {
    font-family: var(--ds-font-display);
    font-size: 30px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.02em;
}
.ohs-stat-label { margin-top: 6px; font-size: 13px; font-weight: 600; }
.ohs-stat-hint { margin-top: 2px; font-size: 12px; color: var(--ds-ink-2); line-height: 1.4; }
.ohs-stat-danger { border-color: color-mix(in srgb, var(--ds-red) 30%, transparent); }
.ohs-stat-danger .ohs-stat-value { color: var(--ds-red); }
.ohs-stat-warn { border-color: color-mix(in srgb, var(--ds-teal) 25%, transparent); }

/* ---------- حالات ---------- */
.ohs-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--ds-hairline);
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
}
.ohs-pill-ok { color: #3f6f63; background: var(--ds-success-wash); border-color: color-mix(in srgb, var(--ds-teal) 40%, transparent); }
.ohs-pill-warn { color: #7a5a1f; background: color-mix(in srgb, #d8b76a 18%, transparent); border-color: color-mix(in srgb, #d8b76a 55%, transparent); }
.ohs-pill-danger { color: #a51e28; background: var(--ds-danger-wash); border-color: color-mix(in srgb, var(--ds-red) 35%, transparent); }
.ohs-pill-muted { color: var(--ds-ink-2); background: var(--ds-muted); }
.ohs-pill-info { color: var(--ds-ink); background: transparent; }

/* ---------- سجل ---------- */
.ohs-rec { border-top: 1px solid var(--ds-hairline); padding: 16px 0 18px; }
.ohs-rec:first-of-type { border-top: 0; }
.ohs-rec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ohs-id {
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-ink-2);
    unicode-bidi: isolate;
    letter-spacing: 0.01em;
}
.ohs-rec-title { margin: 8px 0 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.ohs-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 12px 0 0;
}
.ohs-field dt { margin: 0; font-size: 12px; color: var(--ds-ink-2); }
.ohs-field dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ohs-note {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ds-ink-2);
    background: var(--ds-muted);
    border-radius: var(--ds-radius-compact);
    padding: 10px 12px;
}
.ohs-empty { font-size: 14px; color: var(--ds-ink-2); padding: 12px 0; }

/* ---------- أولوية المتابعة ---------- */
.ohs-priority { display: grid; }
.ohs-priority-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ds-hairline);
}
.ohs-priority-row:first-child { border-top: 1px solid var(--ds-hairline); }
.ohs-priority-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ohs-priority-name { font-size: 14px; font-weight: 600; line-height: 1.45; }
.ohs-priority-meta { font-size: 12px; color: var(--ds-ink-2); }

/* ---------- القوائم ---------- */
.ohs-list-row { padding: 12px 0; border-bottom: 1px solid var(--ds-hairline); }
.ohs-list-row:first-of-type { border-top: 1px solid var(--ds-hairline); }
.ohs-list-name { font-size: 13px; font-weight: 600; color: var(--ds-ink-2); margin-bottom: 4px; }
.ohs-list-values { font-size: 14px; line-height: 1.6; }

.ohs-back { margin: 24px 0 0; }

@media (min-width: 768px) {
    .ohs-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .ohs-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ohs-stat { padding: 18px; }
    .ohs-stat-value { font-size: 34px; }
}

/* ---------- أدوات القسم: تصدير وطباعة ---------- */
.ohs-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.ohs-tool {
    font: inherit;
    font-size: 13px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: transparent;
    color: var(--ds-ink);
    cursor: pointer;
}
.ohs-tool:hover { background: var(--ds-hover); }
.ohs-tool-strong { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-on-primary); }

/* ---------- الطباعة ---------- */
.ohs-print-head, .ohs-print-table { display: none; }

@media print {
    @page { size: A4; margin: 12mm 10mm 14mm; }

    html, body { background: #fff !important; }
    .ohs-card {
        max-width: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 0;
        background: #fff;
    }
    .file-nav, .ohs-choice, .ohs-tools, .ohs-back, .file-button, .ohs-rec,
    .ohs-menu, .ohs-closing, .ohs-callout, .ohs-header { display: none !important; }

    .ohs-brand { padding: 0 0 6px; }
    .ohs-brand-logo { height: 34px; }
    .ohs-brand-name { display: none; }

    .ohs-print-head {
        display: block;
        border-bottom: 1.5pt solid #4d3533;
        padding-bottom: 4pt;
        margin-bottom: 8pt;
    }
    .ohs-print-title { font-size: 15pt; font-weight: 700; line-height: 1.3; }
    .ohs-print-date { font-size: 9pt; color: #6b514e; margin-top: 2pt; }

    .ohs-print-table {
        display: table;
        width: 100%;
        border-collapse: collapse;
        font-size: 7.5pt;
        margin-top: 4pt;
        table-layout: auto;
    }
    .ohs-print-table caption { caption-side: top; text-align: right; font-weight: 700; font-size: 11pt; padding-bottom: 4pt; }
    .ohs-print-table thead { display: table-header-group; }
    .ohs-print-table tr { page-break-inside: avoid; }
    .ohs-print-table th, .ohs-print-table td {
        border: 0.5pt solid #b9aca4;
        padding: 2.5pt 3.5pt;
        text-align: right;
        vertical-align: top;
        word-break: normal;
        overflow-wrap: break-word;
        line-height: 1.35;
    }
    .ohs-print-table td.is-date { white-space: nowrap; }
    .ohs-print-table th { white-space: nowrap; }
    .ohs-print-table th {
        background: #f1edea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-weight: 700;
    }
    .ohs-print-table td.is-num { text-align: center; }

    .ohs-group { border-top: 0; padding: 2pt 0; }
    .ohs-group-heading, .ohs-group-label { display: none !important; }
    .ohs-caption { font-size: 8.5pt; }

    /* لوحة التحكم: الكروت والرسوم على صفحة واحدة */
    .ohs-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6pt; }
    .ohs-stat { padding: 6pt; }
    .ohs-chart, .ohs-stat { page-break-inside: avoid; }
    .ohs-priority-row { page-break-inside: avoid; }
    /* لوحة التحكم: الكروت والرسوم في صفحة، وقوائم الأولوية بعدها */
    .ohs-group:has(.ohs-priority) { break-before: page; }
    a[href]::after { content: none !important; }
}
/* ================= هوية PMS Drive: كحلي ولبني وأمبر ================= */
:root {
    --ds-font-text: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", Roboto, "Segoe UI", Tahoma, Arial, sans-serif;
    --ds-font-display: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", Roboto, "Segoe UI", Tahoma, Arial, sans-serif;

    --ds-ink: #031b33;
    --ds-ink-2: #5a6d82;
    --ds-ink-3: #7c8ea1;
    --ds-ink-4: #b9c9d8;
    --ds-foreground-1: #031b33;
    --ds-foreground-2: #5a6d82;
    --ds-foreground-3: #7c8ea1;
    --ds-foreground-4: #d9e6f2;
    --ds-foreground-5: rgba(7, 41, 73, 0.05);
    --ds-hairline: #e3eef8;
    --ds-page: #f2f7fc;
    --ds-background-1: #ffffff;
    --ds-background-2: #f2f7fc;
    --ds-background-3: #d9ebf9;
    --ds-muted: #f4f9ff;
    --ds-raised: #eef8ff;
    --ds-success: #0e5f95;
    --ds-danger: #b3261e;
    --ds-ochre: #f2ae2e;
    --ds-orange: #d9862b;
    --ds-radius: 16px;
    --ds-radius-compact: 10px;
    --ds-on-primary: #f4f9ff;

    --ohs-navy: #072949;
    --ohs-navy-strong: #031b33;
    --ohs-navy-button: #0b2a4a;
    --ohs-blue: #0e5f95;
    --ohs-pale: #f4f9ff;
    --ohs-pale-2: #eef8ff;
    --ohs-pale-3: #d9ebf9;
    --ohs-body: #5a6d82;
    --ohs-amber: #f2ae2e;
    --ohs-card-shadow: 0 8px 20px rgba(3, 27, 51, 0.07);
}

body { background: var(--ds-page); color: var(--ohs-navy-strong); }

/* ---------- شريط التطبيق ---------- */
.ohs-brand {
    background: var(--ohs-navy);
    border-radius: 18px;
    padding: 12px 14px;
    gap: 12px;
    box-shadow: 0 14px 30px rgba(3, 27, 51, 0.22);
    margin-bottom: 16px;
}
.ohs-brand-logo {
    height: 34px;
    width: auto;
    background: #fff;
    border-radius: 9px;
    padding: 4px 6px;
}
.ohs-brand-name { color: var(--ohs-pale-2); font-size: 13px; letter-spacing: 0.03em; }

/* ---------- العنوان ---------- */
.ohs-title { font-size: 26px; font-weight: 400; line-height: 1.3; color: var(--ohs-navy-strong); margin: 2px 0 8px; }
.ohs-header-fact { font-size: 12px; letter-spacing: 0.04em; color: var(--ohs-body); margin: 0 0 12px; }
.ohs-header-intro { font-size: 15px; line-height: 1.65; color: var(--ohs-body); margin: 0 0 4px; }

/* ---------- الأقسام والشرائط الصغيرة ---------- */
.ohs-group { border-top: 0; padding: 20px 0 4px; }
.ohs-group-label,
.file-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--ohs-blue);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.ohs-group-heading,
.file-group-heading { font-size: 21px; font-weight: 500; line-height: 1.35; color: var(--ohs-navy-strong); margin: 0 0 12px; }
.file-header h1 { color: var(--ohs-navy-strong); font-weight: 400; }
.file-header { border-bottom: 0; }

/* ---------- القائمة ---------- */
.ohs-menu { gap: 10px; }
.ohs-menu-item {
    background: #fff;
    border: 1px solid var(--ohs-pale-3);
    border-radius: 16px;
    padding: 16px;
    min-height: 0;
    box-shadow: var(--ohs-card-shadow);
}
.ohs-menu-item:first-child { border-top: 1px solid var(--ohs-pale-3); }
.ohs-menu-item::after { content: "‹"; color: var(--ohs-amber); font-size: 22px; line-height: 1; }
.ohs-menu-name { font-size: 16px; font-weight: 600; color: var(--ohs-navy-strong); }
.ohs-menu-desc { font-size: 13px; color: var(--ohs-body); }
.ohs-menu-count { color: var(--ohs-body); }

/* ---------- كروت الأرقام ---------- */
.ohs-stats { gap: 10px; }
.ohs-stat {
    background: var(--ohs-pale);
    border: 1px solid var(--ohs-pale-3);
    border-radius: 16px;
    padding: 14px;
}
.ohs-stat-value { font-size: 26px; font-weight: 600; color: var(--ohs-navy-strong); }
.ohs-stat-label { font-size: 12.5px; color: var(--ohs-body); }
.ohs-stat-hint { font-size: 11.5px; color: var(--ohs-ink-3, #7c8ea1); }
.ohs-stat-danger { background: #fff5f4; border-color: #f6d5d2; }
.ohs-stat-danger .ohs-stat-value { color: var(--ds-danger); }
.ohs-stat-warn { background: #fffaef; border-color: #f7e3b8; }
.ohs-stat-warn .ohs-stat-value { color: #a06b00; }

/* ---------- كروت السجلات ---------- */
.ohs-rec {
    background: #fff;
    border: 1px solid var(--ohs-pale-3);
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: var(--ohs-card-shadow);
}
.ohs-rec-title { color: var(--ohs-navy-strong); font-weight: 500; }
.ohs-id { color: var(--ohs-blue); font-weight: 600; }
.ohs-field dt { color: var(--ohs-body); }
.ohs-field dd { color: var(--ohs-navy-strong); }
.ohs-note { color: var(--ohs-body); }

/* ---------- الشارات ---------- */
.ohs-pill { border-radius: 999px; font-size: 12px; font-weight: 600; padding: 4px 10px; border: 0; }
.ohs-pill-ok { background: rgba(14, 95, 149, 0.1); color: var(--ohs-blue); }
.ohs-pill-warn { background: rgba(242, 174, 46, 0.2); color: #7a5200; }
.ohs-pill-danger { background: rgba(179, 38, 30, 0.1); color: var(--ds-danger); }
.ohs-pill-info { background: rgba(14, 95, 149, 0.08); color: var(--ohs-blue); }
.ohs-pill-muted { background: #eef2f6; color: var(--ohs-body); }

/* ---------- الأزرار ---------- */
.ohs-tools { gap: 10px; margin: 14px 0 16px; }
.ohs-tool {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--ohs-pale-3);
    background: #fff;
    color: var(--ohs-blue);
    font-size: 14px;
    font-weight: 600;
}
.ohs-tool:hover { background: var(--ohs-pale-2); }
.ohs-tool + .ohs-tool {
    background: rgba(242, 174, 46, 0.16);
    border-color: rgba(242, 174, 46, 0.5);
    color: #7a5200;
}
.ohs-tool-strong {
    background: var(--ohs-navy-button);
    border-color: var(--ohs-navy-button);
    color: var(--ohs-pale-2);
}
.ohs-tool-strong:hover { background: var(--ohs-navy); }

.ohs-choice { gap: 10px; }
.ohs-choice-label { color: var(--ohs-blue); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.ohs-choice-opts { gap: 8px; }
.ohs-choice-btn {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid var(--ohs-pale-3);
    background: #fff;
    color: var(--ohs-body);
    font-size: 13px;
    padding: 8px 14px;
}
.ohs-choice-btn.is-on { background: var(--ohs-navy); border-color: var(--ohs-navy); color: var(--ohs-pale-2); }

/* ---------- النصوص ---------- */
.ohs-para { color: var(--ohs-body); font-size: 15px; line-height: 1.65; }
.ohs-caption { color: var(--ohs-body); font-size: 12.5px; }
.ohs-key { background: var(--ohs-pale-2); border-right: 3px solid var(--ohs-amber); border-radius: 12px; color: var(--ohs-navy-strong); }
.ohs-callout { background: var(--ohs-pale-2); border-right: 3px solid var(--ohs-amber); border-radius: 14px; }
.ohs-callout-title { color: var(--ohs-navy-strong); }
.ohs-callout-body { color: var(--ohs-body); }
.ohs-closing { color: var(--ohs-body); border-top: 1px solid var(--ohs-pale-3); }
.ohs-fact dt { color: var(--ohs-body); }
.ohs-fact dd { color: var(--ohs-navy-strong); }
.ohs-fact { border-bottom: 1px solid var(--ohs-pale-3); }

/* ---------- عناصر المكتبة في نسخة Files ---------- */
.file-nav { gap: 18px; border-bottom: 1px solid var(--ohs-pale-3); }
.file-nav a { color: var(--ohs-body); font-size: 14px; padding: 12px 0; }
.file-nav a[aria-current="page"] { color: var(--ohs-navy); box-shadow: inset 0 -2px 0 var(--ohs-amber); }
.file-button { border-radius: 10px; border-color: var(--ohs-pale-3); color: var(--ohs-blue); font-weight: 600; }
.file-button:hover { background: var(--ohs-pale-2); }
.file-caption { color: var(--ohs-body); }
.file-closing { color: var(--ohs-body); }
.file-callout { border-radius: 14px; }
.file-fact { border-bottom: 1px solid var(--ohs-pale-3); }
.file-choice-row label,
.file-control-label { color: var(--ohs-blue); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }

/* ---------- الطباعة: بدون ظلال ولا ألوان خلفية ثقيلة ---------- */
@media print {
    .ohs-brand {
        background: #fff;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 6px;
    }
    .ohs-brand-logo { background: transparent; padding: 0; border-radius: 0; }
    .ohs-rec { box-shadow: none; }
    .ohs-tool, .ohs-choice-btn { display: none !important; }
}
/* ================= PMS Drive: الشريط الأبيض والكروت الملونة ================= */
body {
    background: linear-gradient(170deg, #efe6d6 0%, #e9eeea 45%, #dfeaec 100%);
    background-attachment: fixed;
}

/* ---------- شريط التطبيق ---------- */
.ohs-appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 8px 10px;
    margin: 0 0 14px;
    box-shadow: 0 6px 18px rgba(3, 27, 51, 0.1);
}
.ohs-appbar-start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ohs-appbar-end { display: flex; align-items: center; gap: 8px; flex: none; }
.ohs-logo-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #dbe7f1;
    background: #fff;
    flex: none;
}
.ohs-appbar-logo { height: 26px; width: auto; display: block; }
.ohs-appbar-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ohs-navy-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ohs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #dbe7f1;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    flex: none;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}
.ohs-icon-menu {
}
.ohs-icon-settings {
}
.ohs-icon-print {
}

/* ---------- الشرائط الصغيرة والعنوان ---------- */
.ohs-eyebrow,
.ohs-group-label,
.file-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #5a6d82;
    margin: 0 0 6px;
}
.ohs-eyebrow { padding: 0 4px; }

.ohs-header,
.file-header {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    margin: 0 0 14px;
    box-shadow: 0 8px 22px rgba(3, 27, 51, 0.08);
    border: 0;
}
.ohs-title { font-size: 24px; font-weight: 700; line-height: 1.35; color: var(--ohs-navy-strong); margin: 0 0 8px; }
.ohs-header-fact { font-size: 12px; color: #7c8ea1; margin: 0 0 10px; }
.ohs-header-intro { font-size: 15px; line-height: 1.7; color: #5a6d82; margin: 0; }

/* ---------- التنقل ---------- */
.file-nav,
.ohs-nav {
    background: #fff;
    border-radius: 14px;
    padding: 0 14px;
    margin: 0 0 14px;
    border: 0;
    box-shadow: 0 6px 16px rgba(3, 27, 51, 0.06);
}
.file-nav a { color: #5a6d82; }
.file-nav a[aria-current="page"] { color: var(--ohs-navy-strong); font-weight: 600; }

/* ---------- كل قسم كارت أبيض ---------- */
.ohs-group {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    margin: 0 0 14px;
    box-shadow: 0 8px 22px rgba(3, 27, 51, 0.07);
    border: 0;
}
.ohs-group-heading,
.file-group-heading { font-size: 20px; font-weight: 700; color: var(--ohs-navy-strong); margin: 0 0 10px; }

/* ---------- كروت الأرقام الملونة ---------- */
.ohs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ohs-stat {
    border: 0;
    border-radius: 18px;
    padding: 16px;
    background: #eef4fd;
    box-shadow: none;
}
.ohs-stat:nth-child(4n + 1) { background: #eef4fd; }
.ohs-stat:nth-child(4n + 2) { background: #e8f5ef; }
.ohs-stat:nth-child(4n + 3) { background: #fdf4e2; }
.ohs-stat:nth-child(4n + 4) { background: #f1edfb; }
.ohs-stat-danger { background: #fdecea; }
.ohs-stat-warn { background: #fdf4e2; }
.ohs-stat-value { font-size: 27px; font-weight: 700; color: var(--ohs-navy-strong); }
.ohs-stat-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #5a6d82; margin-top: 2px; }
.ohs-stat-hint { font-size: 12px; color: #5a6d82; }

/* ---------- السجلات داخل الكارت ---------- */
.ohs-rec {
    background: #f7fbff;
    border: 1px solid #e3eef8;
    border-radius: 14px;
    box-shadow: none;
    padding: 14px;
    margin: 10px 0;
}
.ohs-menu-item { box-shadow: none; }

/* ---------- الأزرار: كحلي أساسي ورمادي ثانوي ---------- */
.ohs-tool {
    background: #eef1f5;
    border: 1px solid #e2e7ee;
    color: var(--ohs-navy-strong);
    font-weight: 600;
    border-radius: 10px;
}
.ohs-tool:hover { background: #e6ebf2; }
.ohs-tool + .ohs-tool { background: #eef1f5; border-color: #e2e7ee; color: var(--ohs-navy-strong); }
.ohs-tool-strong { background: var(--ohs-navy-button); border-color: var(--ohs-navy-button); color: #f4f9ff; }
.ohs-tool-strong:hover { background: var(--ohs-navy); }

/* ---------- زر عائم ---------- */
.ohs-fab {
    position: fixed;
    inset-inline-start: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #157a6e center/24px 24px no-repeat;
    box-shadow: 0 10px 24px rgba(21, 122, 110, 0.35);
    z-index: 30;
}

/* ---------- الطباعة ---------- */
@media print {
    .ohs-appbar { box-shadow: none; padding: 0 0 6px; border-radius: 0; }
    .ohs-appbar-end, .ohs-fab, .ohs-eyebrow { display: none !important; }
    .ohs-header { box-shadow: none; padding: 0; margin: 0 0 6pt; }
    .ohs-group { box-shadow: none; padding: 0; margin: 0 0 8pt; }
}
/* ================= القائمة الجانبية والأزرار الحبّة والجدول على الشاشات الكبيرة ================= */

/* ---------- أزرار حبّة ---------- */
.ohs-tool,
.ohs-pill-btn {
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #cfe4f6;
    background: #eaf4fd;
    color: var(--ohs-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.ohs-tool:hover,
.ohs-pill-btn:hover { background: #dcecfb; }
.ohs-tool + .ohs-tool,
.ohs-tool:nth-child(2) {
    background: #eef1f5;
    border-color: #e2e7ee;
    color: var(--ohs-navy-strong);
}
.ohs-tool-strong,
.ohs-pill-btn.is-filled {
    background: var(--ohs-navy-button);
    border-color: var(--ohs-navy-button);
    color: #f4f9ff;
}
.ohs-tool-strong:hover,
.ohs-pill-btn.is-filled:hover { background: var(--ohs-navy); }
.ohs-pill-btn:disabled { background: #f2f5f8; border-color: #e6ebf1; color: #a9b6c4; }

/* ---------- الدرج ---------- */
.ohs-drawer-scrim {
    position: fixed;
    inset: 0;
    background: rgba(3, 27, 51, 0.38);
    z-index: 55;
    display: flex;
    justify-content: flex-start;
}
.ohs-drawer {
    position: relative;
    width: min(86vw, 340px);
    max-width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f6fbff 0%, #eef5fb 60%, #e9f1f8 100%);
    box-shadow: 0 20px 42px rgba(3, 27, 51, 0.34);
    display: flex;
    flex-direction: column;
    padding: 14px 16px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ohs-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.ohs-drawer-title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: #5a6d82; text-transform: uppercase; }
.ohs-icon-close {
    background-color: #fff;
}
.ohs-drawer-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ohs-drawer-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93a4b5;
    margin: 14px 0 6px;
    padding: 0 6px;
}
.ohs-drawer-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #5a6d82;
    text-decoration: none;
}
.ohs-drawer-link:hover { background: rgba(14, 95, 149, 0.07); }
.ohs-drawer-link[aria-current="page"] {
    background: var(--ohs-navy);
    color: #f4f9ff;
    box-shadow: 0 10px 20px rgba(3, 27, 51, 0.22);
}
.ohs-drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #dbe7f1;
}
.ohs-drawer-foot .ohs-pill-btn { width: 100%; min-height: 48px; }

/* ---------- جدول على الشاشات الكبيرة، كروت على الموبايل ---------- */
@media (min-width: 900px) {
    .ohs-print-table {
        display: table;
        width: 100%;
        border-collapse: collapse;
        font-size: 12.5px;
        margin: 6px 0 4px;
    }
    .ohs-print-table thead { display: table-header-group; }
    .ohs-print-table th,
    .ohs-print-table td {
        border-bottom: 1px solid #e3eef8;
        padding: 9px 8px;
        text-align: right;
        vertical-align: top;
    }
    .ohs-print-table th {
        background: #f4f9ff;
        color: #5a6d82;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .ohs-print-table td.is-num { text-align: center; }
    .ohs-rec { display: none; }
}

@media print {
    .ohs-drawer, .ohs-drawer-scrim { display: none !important; }
}

/* ---------- تثبيت أسفل الدرج وأرقام كحلية ---------- */
.ohs-drawer { overflow: hidden; }
.ohs-drawer-body { overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.ohs-drawer-foot { flex: none; }
.ohs-drawer-link { padding: 10px 14px; }
.ohs-stat-danger .ohs-stat-value,
.ohs-stat-warn .ohs-stat-value { color: var(--ohs-navy-strong); }
@media print { .ohs-icon-btn { display: none !important; } }

/* ---------- أيقونات مرسومة بـCSS (بدون أي ملفات أو روابط) ---------- */
.ohs-icon-btn { position: relative; }
.ohs-icon-menu::before {
    content: "";
    width: 18px;
    height: 12px;
    background-image: linear-gradient(#0b2a4a, #0b2a4a), linear-gradient(#0b2a4a, #0b2a4a), linear-gradient(#0b2a4a, #0b2a4a);
    background-size: 100% 2px;
    background-position: 0 0, 0 5px, 0 10px;
    background-repeat: no-repeat;
}
.ohs-icon-settings::before {
    content: "";
    width: 18px;
    height: 14px;
    background-image: linear-gradient(#0b2a4a, #0b2a4a), linear-gradient(#0b2a4a, #0b2a4a);
    background-size: 100% 2px;
    background-position: 0 2px, 0 12px;
    background-repeat: no-repeat;
}
.ohs-icon-settings::after {
    content: "";
    position: absolute;
    top: 1px;
    inset-inline-end: 8px;
    width: 6px;
    height: 6px;
    border: 2px solid #0b2a4a;
    border-radius: 50%;
    background: #fff;
}
.ohs-icon-print::before {
    content: "";
    width: 15px;
    height: 6px;
    border: 2px solid #0b2a4a;
    border-bottom: 0;
    border-radius: 2px 2px 0 0;
    margin-bottom: 2px;
}
.ohs-icon-print::after {
    content: "";
    width: 18px;
    height: 9px;
    border: 2px solid #0b2a4a;
    border-radius: 2px;
}
.ohs-icon-close::before,
.ohs-icon-close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: #0b2a4a;
    border-radius: 2px;
}
.ohs-icon-close::before { transform: rotate(45deg); }
.ohs-icon-close::after { transform: rotate(-45deg); }
.ohs-fab {
    background: #157a6e;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding-bottom: 17px;
}
.ohs-fab i { display: block; width: 4px; background: #fff; border-radius: 2px; }
.ohs-fab i:nth-child(1) { height: 9px; }
.ohs-fab i:nth-child(2) { height: 18px; }
.ohs-fab i:nth-child(3) { height: 13px; }

/* ================= حالة المزامنة مع شيت جوجل ================= */
.ohs-sync {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 4px 12px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--ohs-ink-3);
}
.ohs-sync::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}
.ohs-sync.is-loading { color: var(--ohs-amber); }
.ohs-sync.is-loading::before { animation: ohs-sync-pulse 1.1s ease-in-out infinite; }
.ohs-sync.is-live { color: #1d7a4d; }
.ohs-sync.is-fallback { color: #9a5a00; }
.ohs-sync-retry {
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ohs-navy);
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}
@keyframes ohs-sync-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}
@media print {
    .ohs-sync { display: none !important; }
}

/* ================= أيقونات SVG نظيفة + أزرار مربعة ================= */
.ohs-icon-btn {
    width: 42px;
    height: 42px;
    aspect-ratio: 1 / 1;
    color: #0b2a4a;
    border-radius: 12px;
}
.ohs-icon-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* نشيل الأيقونات القديمة المرسومة بـCSS بعد ما بقى فيه SVG */
.ohs-icon-menu::before,
.ohs-icon-settings::before,
.ohs-icon-settings::after,
.ohs-icon-print::before,
.ohs-icon-print::after,
.ohs-icon-close::before,
.ohs-icon-close::after { content: none; display: none; }

/* ================= الشاشات الكبيرة: الصفحة تستخدم العرض والجداول تتفرج ================= */
.ohs-table-wrap { display: block; }

@media screen and (min-width: 900px) {
    .ohs-card {
        max-width: 1180px;
        margin: 0 auto;
        padding: 22px 26px;
    }
    .ohs-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }
    .ohs-print-table {
        table-layout: auto;
        min-width: 100%;
        width: max-content;
        max-width: none;
    }
    .ohs-print-table th { white-space: nowrap; }
    .ohs-print-table td { white-space: nowrap; }
    .ohs-print-table td:first-child,
    .ohs-print-table th:first-child {
        position: sticky;
        inset-inline-start: 0;
        background: #fff;
        z-index: 2;
        box-shadow: -1px 0 0 #e3eef8 inset;
    }
    .ohs-print-table th:first-child { background: #f4f9ff; }
}

@media print {
    .ohs-table-wrap { overflow: visible !important; }
    .ohs-print-table { width: 100% !important; min-width: 0 !important; }
    .ohs-print-table td,
    .ohs-print-table th { white-space: normal !important; }
    .ohs-print-table td:first-child,
    .ohs-print-table th:first-child { position: static !important; box-shadow: none !important; }
}
