/* ميثاق: الهوية البصرية ونظام التصميم */
:root {
    /* لوحة الألوان */
    --green-950: #05241f;
    --green-900: #072f28;
    --green-800: #0a3f36;
    --green-700: #0b4f43;
    --green-600: #0e5e4e;
    --green-500: #1f8a70;
    --green-100: #e3f0ec;
    --green-50: #f1f7f4;
    --gold: #c9a24b;
    --gold-deep: #b8892f;
    --gold-ink: #7a5712;
    --gold-soft: #f5ecd6;
    --paper: #f7f5f0;
    --line: #e9e4da;
    --line-strong: #ddd7cc;
    --line-soft: #f1ede5;
    --track: #eeeae2;
    --ink: #13221e;
    --muted: #73817d;

    /* حالات المعيار */
    --none: #9aa5a1;
    --none-soft: #eef1f0;
    --none-ink: #55625e;
    --progress: #2b8fd6;
    --progress-soft: #e6f1fb;
    --progress-ink: #1c6fb0;
    --review: #7b4fd6;
    --review-soft: #f1ebfc;
    --review-ink: #5b34b8;
    --needs: #d8942a;
    --needs-soft: #fbf1e1;
    --needs-ink: #94600e;
    --ok: #1e9e6a;
    --ok-soft: #e6f5ee;
    --ok-ink: #137a50;
    --failed: #d04a3b;
    --failed-soft: #fbe9e7;
    --failed-ink: #a8352a;

    /* الخطوط */
    --font-ui: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    --font-display: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
    --text-page: 20px;
    --text-card: 15px;
    --text-body: 13px;
    --text-caption: 11.5px;

    --radius-card: 16px;
    --radius-control: 10px;
    --radius-tag: 7px;
    --focus-ring: 0 0 0 3px rgba(31, 138, 112, .16);

    --star-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' fill='none' stroke='%23fff'%3E%3Cpath d='M18.5 18.5h23v23h-23z'/%3E%3Cpath d='M30 13.7 46.3 30 30 46.3 13.7 30z'/%3E%3Cpath d='M30 0v13.7M30 46.3V60M0 30h13.7M46.3 30H60'/%3E%3C/svg%3E");
    --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --check-icon-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --chevron-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5a1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
}

/* الأساس */
* { box-sizing: border-box; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font: 400 var(--text-body)/1.6 var(--font-ui);
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.ltr { direction: ltr; text-align: right; }
.small { color: var(--muted); font-size: var(--text-caption); }
.muted { color: var(--muted); }

/* زخرفة النجمة الثمانية بشفافية 8% */
.star-pattern { isolation: isolate; }
.star-pattern:not(.sidebar) { position: relative; }
.star-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--star-pattern) 0 0 / 60px 60px;
    opacity: .08;
    pointer-events: none;
}

/* الشعار */
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-700); font: 700 22px/1.3 var(--font-display); }
.brand-light { color: #fff; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 27%; background: var(--green-700); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-star { stroke: var(--gold); }
.brand-check { stroke: #fff; }
.brand-mark-gold { background: var(--gold); }
.brand-mark-gold .brand-star, .brand-mark-gold .brand-check { stroke: var(--green-700); }
.brand-mark-dark { background: var(--green-600); }

/* الأزرار */
.btn {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    font-size: var(--text-body);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}
.btn .icon { width: 17px; height: 17px; }
.btn-block { width: 100%; height: 48px; font-size: 14px; }
.btn-sm { height: 32px; gap: 6px; padding: 0 11px; border-radius: 8px; font-size: 12px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-primary { color: #fff; background: var(--green-700); }
.btn-primary:hover { background: var(--green-800); }
.btn-gold { color: var(--green-900); background: var(--gold); }
.btn-gold:hover { background: #bd953c; }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-secondary:hover { background: var(--paper); }
.btn-warning { border-color: #ebcb95; color: var(--needs-ink); background: #fff; }
.btn-warning:hover { background: var(--needs-soft); }
.btn-danger { border-color: #f0c5bf; color: var(--failed-ink); background: #fff; }
.btn-danger:hover { background: var(--failed-soft); }
.btn-text { color: var(--ink); }
.btn-text:hover { background: var(--green-50); }
.icon-button { width: 40px; height: 40px; position: relative; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--green-700); background: #fff; }
.icon-button:hover { background: var(--green-50); }
.icon-button i { width: 9px; height: 9px; position: absolute; top: 8px; right: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--failed); }

/* الحقول والاختيارات */
.field { min-width: 0; display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 600; }
.field > span b { color: var(--failed); font-weight: 600; }
.input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    outline: 0;
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .search-box input::placeholder { color: var(--none); }
.input:focus { border-color: var(--green-500); box-shadow: var(--focus-ring); }
input.input:not([type='file']):user-valid:not(:placeholder-shown) { padding-left: 38px; border-color: var(--green-500); background: #fff var(--check-icon) left 12px center / 18px no-repeat; }
.input:user-invalid { border-color: var(--failed); }
select.input { padding-left: 36px; appearance: none; background: #fff var(--chevron-icon) left 11px center / 17px no-repeat; cursor: pointer; }
.input-sm { height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
select.input-sm { padding-left: 28px; background-position: left 8px center; background-size: 14px; }
input[type='file'].input { padding: 5px; color: var(--muted); font-size: 12px; }
input[type='file']::file-selector-button { height: 30px; margin: 0 0 0 10px; padding: 0 12px; border: 0; border-radius: 7px; color: var(--green-700); background: var(--green-100); font: 600 12px var(--font-ui); cursor: pointer; }
input[type='checkbox'], input[type='radio'] { width: 18px; height: 18px; flex: none; margin: 0; border: 1.5px solid var(--line-strong); border-radius: 5px; appearance: none; background: #fff center / 12px no-repeat; cursor: pointer; }
input[type='checkbox']:checked { border-color: var(--green-500); background-color: var(--green-500); background-image: var(--check-icon-white); }
input[type='radio'] { border-radius: 50%; }
input[type='radio']:checked { border-color: var(--green-500); background-color: var(--green-500); box-shadow: inset 0 0 0 3px #fff; }
input[type='checkbox'].switch { width: 36px; height: 21px; border: 0; border-radius: 99px; background: radial-gradient(circle, #fff 8px, transparent 8.5px) right 1px center / 19px 21px no-repeat #d9d4ca; }
input[type='checkbox'].switch:checked { background-color: var(--green-500); background-image: radial-gradient(circle, #fff 8px, transparent 8.5px); background-position: left 1px center; }
.search-box { width: 290px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--muted); background: var(--paper); }
.search-box:focus-within { border-color: var(--green-500); background: #fff; box-shadow: var(--focus-ring); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }

/* الوسوم والمؤشرات */
.status-pill { height: 28px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-pill.none { color: var(--none-ink); background: var(--none-soft); }
.status-pill.progress { color: var(--progress-ink); background: var(--progress-soft); }
.status-pill.review { color: var(--review-ink); background: var(--review-soft); }
.status-pill.needs { color: var(--needs-ink); background: var(--needs-soft); }
.status-pill.ok { color: var(--ok-ink); background: var(--ok-soft); }
.status-pill.failed { color: var(--failed-ink); background: var(--failed-soft); }
.status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.status-dot.none, .segment.none { background: var(--none); }
.status-dot.progress, .segment.progress { background: var(--progress); }
.status-dot.review, .segment.review { background: var(--review); }
.status-dot.needs, .segment.needs { background: var(--needs); }
.status-dot.ok, .segment.ok { background: var(--ok); }
.status-dot.failed, .segment.failed { background: var(--failed); }
.segmented-bar { height: 10px; display: flex; gap: 2px; border-radius: 99px; overflow: hidden; }
.segment { min-width: 4px; }
.code-badge { height: 25px; display: inline-flex; align-items: center; direction: ltr; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-tag); color: var(--green-700); background: #fff; font-size: var(--text-caption); font-weight: 600; white-space: nowrap; }
.tag { height: 25px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-tag); color: var(--green-700); background: var(--green-100); font-size: var(--text-caption); font-weight: 600; white-space: nowrap; }
.tag-gold { color: var(--gold-ink); background: var(--gold-soft); }
.avatar, .club-mark { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 50%; color: #fff; background: var(--green-600); font-size: 13px; font-weight: 600; line-height: 1; }
.avatar-gold { background: var(--gold-deep); }
.avatar-blue { background: var(--progress); }
.avatar-slate { background: #4b5d58; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { border: 2px solid #fff; }
.avatar-stack .avatar + .avatar { margin-right: -10px; }
.club-mark { border-radius: 9px; background: var(--green-700); }
.person { display: flex; align-items: center; gap: 9px; }
.person .avatar { width: 28px; height: 28px; font-size: 12px; }
.progress-track { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.progress-track i { height: 100%; display: block; border-radius: 99px; background: var(--green-500); }
.progress-cell { display: flex; align-items: center; gap: 10px; }
.progress-cell .progress-track { width: 110px; }
.progress-cell strong { direction: ltr; font-weight: 700; }
.icon-tile { width: 42px; height: 38px; display: grid; place-items: center; flex: none; border-radius: var(--radius-control); color: var(--green-700); background: var(--green-50); }
.icon-tile .icon { width: 20px; height: 20px; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.filter { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 500; }
.filter:hover { background: var(--green-50); }
.filter.active { border-color: var(--green-700); color: #fff; background: var(--green-700); }
.filter b { min-width: 24px; padding: 0 7px; border-radius: 99px; background: var(--track); font-size: 11px; line-height: 19px; text-align: center; }
.filter.active b { background: rgba(255, 255, 255, .18); }
.success-note { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 11px 14px; border: 1px solid #cfe5dc; border-radius: var(--radius-control); color: var(--ok-ink); background: var(--ok-soft); font-weight: 500; }
.positive, .negative { display: inline-block; }
.positive { color: var(--ok-ink); }
.negative { color: var(--failed-ink); }

/* إضافات المكوّنات */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.push { margin-inline-start: auto; }
.inline { display: inline-flex; align-items: center; gap: 8px; }
.block { display: block; }
.pre { margin: 0; white-space: pre-line; }
.stack { display: grid; gap: 12px; align-content: start; }
.stack-lg { display: grid; gap: 16px; align-content: start; min-width: 0; }
.split { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.split > .btn, .split > form > .btn { width: 100%; }
.text-link { color: var(--green-500); font-weight: 500; text-decoration: none; }
.link-button { padding: 0 4px; border: 0; color: var(--failed-ink); background: none; font-weight: 700; }
.ink-ok { color: var(--ok-ink); } .ink-failed { color: var(--failed-ink); font-weight: 600; } .ink-needs { color: var(--needs-ink); } .ink-progress { color: var(--progress-ink); } .ink-review { color: var(--review-ink); } .ink-none { color: var(--none-ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ok { color: #fff; background: var(--ok); } .btn-ok:hover:not(:disabled) { background: #188a5b; }
.btn-ghost { border-color: rgba(255, 255, 255, .18); color: #fff; background: rgba(255, 255, 255, .06); } .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-block-sm { width: 100%; }
.icon-button.plain { width: 34px; height: 34px; border-color: transparent; background: transparent; }
.icon-button.plain:hover { background: var(--green-50); }
.only-mobile { display: none; }
.error-note { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 11px 14px; border: 1px solid #f0c5bf; border-radius: var(--radius-control); color: var(--failed-ink); background: var(--failed-soft); font-weight: 500; }
.flash-area { padding: 0 26px; }
.flash-area > * { margin: 16px 0 0; transition: opacity .5s; }
.flash-area:has(+ .follow-space) { position: fixed; inset-inline: 252px 0; top: 70px; z-index: 30; pointer-events: none; } .flash-area:has(+ .follow-space) > * { width: max-content; max-width: 100%; margin-inline: auto; box-shadow: 0 12px 34px rgba(5, 36, 31, .16); }
.flash-area .fade { opacity: .0; height: 0; margin: 0; padding: 0; border: 0; overflow: hidden; }
.success-note .btn { margin-inline-start: auto; }
.note { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 14px; padding: 11px 14px; border: 1px solid #cfe5dc; border-radius: var(--radius-control); color: var(--green-700); background: var(--green-50); font-size: 12.5px; }
.note.gold { border-color: #ecdcb2; color: var(--gold-ink); background: #fcf8ee; }
.note.in-panel { margin: 0 18px 16px; }
.stack > .note { margin: 0; }
.field > small { color: var(--muted); font-size: var(--text-caption); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.field-row.code-row { grid-template-columns: 150px 1fr 1fr; }
fieldset.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.input.area { height: auto; padding: 10px 14px; line-height: 1.7; resize: vertical; }
.input.strong { font-weight: 600; }
.input[readonly], .input:disabled { color: var(--muted); background-color: var(--paper); }
.color-input { width: 46px; height: 38px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: #fff; cursor: pointer; }
.input-icon { position: relative; display: block; }
.input-icon > .icon { position: absolute; inset-inline-start: 13px; top: 50%; translate: 0 -50%; color: var(--green-700); pointer-events: none; }
.input-icon > .input { padding-inline-start: 40px; }
.input-icon.end > .icon { inset-inline: auto 12px; color: var(--none); }
.input-icon.end > .input { padding-inline: 14px 38px; }
.input-icon > .icon-button { position: absolute; inset-inline-end: 5px; top: 50%; translate: 0 -50%; color: var(--none); }
.input-icon > .input[dir='ltr'] { text-align: start; direction: ltr; padding-inline: 40px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-control); font-weight: 500; cursor: pointer; }
.choice:has(:checked) { border-color: var(--green-500); background: var(--green-50); }
.choice .tag { margin-inline-start: auto; }
.check-list { display: grid; gap: 8px; } .check-list label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.check-list.scroll { max-height: 190px; overflow-y: auto; }
.settings-box { padding: 2px 14px; border: 1px solid var(--line); border-radius: 12px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; cursor: pointer; }
.setting-row + .setting-row { border-top: 1px solid var(--line-soft); }
.setting-row strong { display: block; font-size: 12.5px; font-weight: 600; } .setting-row small { color: var(--muted); font-size: var(--text-caption); }
input[type='checkbox'].switch { flex: none; }
.search-trigger { cursor: pointer; text-align: start; } .search-trigger span { flex: 1; color: var(--none); }
kbd { padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; font: 500 11px var(--font-ui); direction: ltr; }
.select-chip { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 99px; background: #fff; font-size: 12.5px; white-space: nowrap; }
.select-chip .icon { width: 16px; height: 16px; color: var(--green-700); }
.select-chip select, .select-chip input { max-width: 190px; padding: 0 0 0 20px; border: 0; outline: 0; appearance: none; background: var(--chevron-icon) left center / 15px no-repeat; font-weight: 500; cursor: pointer; }
.select-chip input { padding: 0; background: none; }
.select-chip:focus-within { border-color: var(--green-500); box-shadow: var(--focus-ring); }
.select-chip.active { border-color: var(--green-500); background: var(--green-50); }
.select-chip.solid { border-color: var(--green-700); color: #fff; background: var(--green-700); } .select-chip.solid .icon { color: #fff; } .select-chip.solid option { color: var(--ink); }
.topbar .select-chip { height: 40px; }
.segmented { display: inline-flex; padding: 3px; border-radius: var(--radius-control); background: var(--track); }
.segmented > a, .segmented > button, .segmented label span { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 500; text-decoration: none; cursor: pointer; }
.segmented > .active, .segmented label:has(:checked) span { color: var(--ink); background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(19, 34, 30, .08); }
.segmented.radio { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.segmented.radio input { position: absolute; opacity: 0; pointer-events: none; } .segmented.radio label span { width: 100%; padding: 0 4px; white-space: nowrap; } .segmented.radio label:focus-within span { outline: 2px solid var(--green-500); }
.filter { color: var(--ink); text-decoration: none; white-space: nowrap; } .filter.active b { color: #fff; }
.filter.danger b { color: var(--failed-ink); background: var(--failed-soft); } .filter.danger.active { border-color: var(--failed); background: var(--failed); }
.filter-bar { align-items: center; flex-wrap: wrap; } .filter-bar .divider { width: 1px; height: 24px; margin: 0 4px; background: var(--line); }
.tag { gap: 5px; } .tag .icon { width: 13px; height: 13px; }
.tag-plain { color: #4b5d58; background: #f1ede5; } .tag-review { color: var(--review-ink); background: var(--review-soft); } .tag-failed { color: var(--failed-ink); background: var(--failed-soft); }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chip { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 12px; } .chip .icon { width: 15px; height: 15px; } .chip .avatar { width: 22px; height: 22px; font-size: 10px; } .chip b { padding: 0 6px; border-radius: 99px; background: var(--track); font-size: 11px; }
.new-badge { padding: 1px 8px; border-radius: 7px; color: #fff; background: var(--failed); font-size: 11px; font-weight: 600; white-space: nowrap; }
.role-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 11px; border: 1px solid transparent; border-radius: 99px; font-size: var(--text-caption); font-weight: 600; white-space: nowrap; }
.role-admin { color: #fff; background: var(--green-700); } .role-gold { border-color: #e6d4a5; color: var(--gold-ink); background: var(--gold-soft); } .role-purple { border-color: #d9c9f5; color: var(--review-ink); background: var(--review-soft); } .role-blue { border-color: #bddcf4; color: var(--progress-ink); background: var(--progress-soft); }
.avatar-purple { background: var(--review); } .avatar-rust { background: #c2573a; } .avatar-teal { background: #3a8f74; }
.person > span:last-child { min-width: 0; line-height: 1.45; } .person strong { display: block; font-weight: 600; } .person small { display: block; color: var(--muted); font-size: var(--text-caption); }
.club-mark { background: linear-gradient(135deg, color-mix(in srgb, var(--club, var(--green-700)) 82%, #fff), var(--club, var(--green-700))); }
.club-mark.lg { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; } .club-mark.xl { width: 72px; height: 72px; border-radius: 18px; font-size: 26px; }
.club-name { color: inherit; text-decoration: none; } .club-name small { display: block; color: var(--muted); font-size: var(--text-caption); }
.standard-name { color: inherit; text-decoration: none; }
.status-square { width: 9px; height: 9px; display: inline-block; flex: none; border-radius: 3px; }
.status-square.ok { background: var(--ok); } .status-square.review { background: var(--review); } .status-square.progress { background: var(--progress); } .status-square.needs { background: var(--needs); } .status-square.failed { background: var(--failed); } .status-square.none { background: var(--none); }
.segmented-bar.tall { height: 14px; } .segment { outline-offset: -2px; }
.icon-tile.tile-ok { color: var(--ok-ink); background: var(--ok-soft); } .icon-tile.tile-progress, .tile-progress { color: var(--progress-ink); background: var(--progress-soft); } .icon-tile.tile-needs { color: var(--needs-ink); background: var(--needs-soft); } .tile-review, .icon-tile.tile-review { color: var(--review-ink); background: var(--review-soft); } .tile-failed, .icon-tile.tile-failed { color: var(--failed-ink); background: var(--failed-soft); } .tile-gold, .icon-tile.tile-gold { color: var(--gold-ink); background: var(--gold-soft); } .tile-ok { color: var(--ok-ink); background: var(--ok-soft); } .tile-none { color: var(--none-ink); background: var(--none-soft); }
.progress-track { position: relative; overflow: visible; } .progress-track.weak i { background: #5fa98f; } .progress-track.thick { height: 14px; } .progress-track.on-dark { background: rgba(255, 255, 255, .16); } .progress-track.on-dark i { background: var(--gold); }
.progress-track u { width: 3px; position: absolute; inset-block: -2px; border: 1px solid rgba(19, 34, 30, .35); border-radius: 3px; background: #fff; text-decoration: none; }
.progress-cell.narrow .progress-track { width: 64px; }
.ring { position: relative; display: grid; place-items: center; flex: none; } .ring svg { width: 100%; height: 100%; } .ring circle { fill: none; stroke-linecap: round; }
.ring-track { stroke: var(--track); } .ring-value { stroke: var(--green-500); } .ring > span { position: absolute; display: grid; text-align: center; line-height: 1.35; } .ring strong { font-size: 1.25em; font-weight: 700; } .ring small { color: var(--muted); font-size: 11px; }
.ring-gold .ring-track { stroke: rgba(255, 255, 255, .16); } .ring-gold .ring-value { stroke: var(--gold); } .ring-gold strong { font: 700 26px/1.3 var(--font-display); } .ring-gold small { color: #cfe2dc; }
.donut { position: relative; display: grid; place-items: center; flex: none; } .donut svg { width: 100%; height: 100%; } .donut-slice { fill: none; stroke-width: 14; outline: 0; } .donut-slice:hover, .donut-slice:focus { stroke-width: 16; } .donut > span { position: absolute; display: grid; text-align: center; pointer-events: none; } .donut strong { font: 700 24px/1.3 var(--font-display); } .donut small { color: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 14px; margin-inline-start: auto; color: var(--muted); font-size: 12px; } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 14px; height: 4px; border-radius: 3px; } .legend .dashed { border-top: 2px dashed var(--gold-deep); height: 0; border-radius: 0; }
.legend-table { width: 100%; border-collapse: collapse; } .legend-table td { padding: 5px 0; } .legend-table td:not(:first-child) { text-align: end; padding-inline-start: 14px; } .legend-table td:first-child { display: flex; align-items: center; gap: 8px; } .legend-table a { color: inherit; text-decoration: none; } .legend-table a:hover { text-decoration: underline; }
.sparkline { width: 100px; height: 32px; } .sparkline polyline { fill: none; stroke: var(--green-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .sparkline circle { fill: var(--green-500); stroke: #fff; stroke-width: 1.5; }
.line-chart svg { width: 100%; height: auto; display: block; overflow: visible; } .line-chart .grid { stroke: var(--line); } .line-chart text { fill: var(--muted); font-size: 11.5px; } .line-chart .month { text-anchor: middle; } .line-chart .direct { fill: var(--ink); font-weight: 600; font-size: 12px; } .line-chart .actual, .line-chart .target { fill: none; stroke-width: 2; stroke-linejoin: round; } .line-chart .actual { stroke: var(--green-500); } .line-chart .target { stroke: var(--gold-deep); stroke-dasharray: 5 4; } .line-chart .dot { fill: #fff; stroke: var(--green-500); stroke-width: 2; } .line-chart .dot.last { fill: var(--green-500); stroke: #fff; } .line-chart .dot-target { fill: var(--gold-deep); stroke: #fff; stroke-width: 2; } .line-chart .crosshair { stroke: var(--none); stroke-dasharray: 3 3; }
.tooltip { position: fixed; z-index: 100; max-width: 300px; padding: 7px 11px; border-radius: 9px; color: #fff; background: var(--green-900); font-size: 12px; line-height: 1.6; pointer-events: none; box-shadow: 0 8px 24px rgba(5, 36, 31, .22); }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 34px 18px; color: var(--muted); text-align: center; } .empty-state strong { color: var(--ink); font-weight: 600; } .empty-state p { margin: 0; font-size: 12px; }
.side-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: var(--text-caption); font-weight: 600; } .stack > .side-label { margin: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .side-head h2 { margin: 0; font-size: var(--text-card); font-weight: 600; }
.rich { font-size: 13px; line-height: 1.9; } .rich p { margin: 0 0 6px; } .rich ul, .rich ol { margin: 0; padding-inline-start: 20px; } .rich a { color: var(--green-500); }
.mention { color: var(--green-500); font-weight: 600; }
.file-card { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: #fff; }
.file-type { min-width: 34px; height: 34px; display: grid; place-items: center; flex: none; padding: 0 4px; border-radius: 8px; color: #fff; background: var(--progress); font-size: 10px; font-weight: 700; } .file-type.pdf { background: #c44536; } .file-type.xls { background: #1e7f4f; } .file-type.doc { background: #2b6cb8; }
.file-name { min-width: 0; flex: 1; } .file-name strong { display: block; overflow: hidden; direction: ltr; font-size: 12px; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .file-name small { color: var(--muted); font-size: 11px; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; } .evidence-item { min-width: 0; overflow-wrap: anywhere; } .evidence-item > small { display: block; margin-top: 5px; color: var(--muted); font-size: var(--text-caption); } .evidence-item a { text-decoration: none; }

/* الأدراج والنوافذ */
dialog { color: inherit; } dialog::backdrop { background: rgba(5, 36, 31, .38); }
.drawer { width: min(440px, 100vw); height: 100dvh; max-width: none; max-height: none; position: fixed; inset-block: 0; inset-inline: auto 0; margin: 0; padding: 0; border: 0; background: #fff; box-shadow: 0 0 60px rgba(5, 36, 31, .3); }
.drawer[open] { display: flex; flex-direction: column; animation: drawer .18s ease-out; } .drawer-lg { width: min(600px, 100vw); }
@keyframes drawer { from { transform: translateX(-24px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); } .drawer-head h2 { margin: 0; font-size: 17px; } .drawer-head small { color: var(--muted); } .drawer-head .icon-button { margin-inline-start: auto; }
.drawer > form { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.drawer-body { min-height: 0; flex: 1; display: grid; align-content: start; gap: 14px; padding: 20px; overflow-y: auto; } .drawer-body h3 { margin: 0; font-size: 16px; }
.drawer-foot { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fcfbf8; } .drawer-foot .btn-primary { flex: 1; }
.palette { width: min(560px, calc(100vw - 28px)); margin: 12vh auto 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(5, 36, 31, .28); } .palette label { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); } .palette input { flex: 1; height: 54px; border: 0; outline: 0; font-size: 15px; } .palette-results { max-height: 46vh; overflow-y: auto; } .palette-results p { padding: 8px 18px; } .palette-item { display: grid; padding: 10px 18px; color: inherit; text-decoration: none; } .palette-item:hover, .palette-item:focus { outline: 0; background: var(--green-50); } .palette-item strong { font-weight: 600; } .palette-item small, .palette-hint { color: var(--muted); font-size: 11.5px; } .palette-hint { margin: 0; padding: 9px 18px; background: var(--paper); }
.bulk-bar { position: fixed; inset-inline: 252px 0; bottom: 22px; z-index: 30; width: max-content; max-width: calc(100vw - 30px); display: flex; align-items: center; gap: 12px; margin-inline: auto; padding: 11px 18px; border-radius: 14px; color: #cfe2dc; background: var(--green-900); box-shadow: 0 16px 44px rgba(5, 36, 31, .34); } .bulk-bar b { color: var(--gold); } .bulk-bar .input-sm { max-width: 170px; color: var(--ink); }
.combobox { position: relative; min-width: 190px; } .combobox > button { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: #fff; } .combobox > button .icon { width: 15px; color: var(--none); } .combobox em { color: var(--none); font-style: normal; } .combobox.open > button, .combobox.changed > button { border-color: var(--green-500); } .combobox.open > button { box-shadow: var(--focus-ring); } .combobox > button .person .avatar { width: 24px; height: 24px; font-size: 11px; } .combobox > button .person small { display: none; }
.combobox-menu { width: 290px; position: absolute; inset-inline-start: 0; top: calc(100% + 5px); z-index: 20; display: none; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 18px 44px rgba(5, 36, 31, .18); } .combobox.open .combobox-menu { display: block; } .combobox.up .combobox-menu { top: auto; bottom: calc(100% + 5px); } .combobox-menu .search-box { width: 100%; } .combobox-menu ul { max-height: 240px; margin: 6px 0 0; padding: 0; overflow-y: auto; list-style: none; } .combobox-menu li button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 8px; border: 0; border-radius: 9px; background: none; text-align: start; } .combobox-menu li button:hover, .combobox-menu li button:focus { background: var(--green-50); }

/* تسجيل الدخول */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .75fr) 1fr; background: #fff; }
.login-panel { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 30px; padding: 46px 48px 30px; }
.login-card { width: min(410px, 100%); }
.login-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 60px; } .login-top .brand small { display: block; color: var(--muted); font: 400 11.5px/1.5 var(--font-ui); }
.lang-switch { height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink); font-size: 12px; text-decoration: none; } .lang-switch .icon { width: 15px; height: 15px; }
.login-heading { margin-bottom: 28px; } .login-heading h2 { margin: 0 0 6px; font: 700 28px/1.5 var(--font-display); } .login-heading p { margin: 0; color: var(--muted); }
.login-card .field { margin-bottom: 16px; } .login-card .input { height: 48px; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; } .login-options a, .otp-foot a { color: var(--green-500); font-weight: 600; text-decoration: none; }
.remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.or { height: 54px; display: flex; align-items: center; color: var(--muted); font-size: 12px; } .or::before, .or::after { content: ''; height: 1px; flex: 1; background: var(--line); } .or span { padding: 0 12px; }
.login-legal { width: min(410px, 100%); margin: 0; color: var(--muted); font-size: var(--text-caption); }
.login-art { min-height: 100vh; display: flex; flex-direction: column; padding: 74px 74px 46px; color: #fff; background: radial-gradient(circle at 20% 88%, rgba(201, 162, 75, .2), transparent 42%), var(--green-800); overflow: hidden; }
.login-art-copy { max-width: 620px; } .login-art-copy h1 { margin: 16px 0 12px; font: 700 clamp(34px, 3.4vw, 50px)/1.5 var(--font-display); } .login-art-copy p { margin: 0; color: #cfe2dc; font-size: 15px; }
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 14px; margin-top: 34px; } .trust-row div { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .07); } .trust-row strong { color: #ead9a6; font: 700 26px/1.3 var(--font-display); } .trust-row span { color: #a9c4bb; font-size: 12px; }
.otp-card { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(5, 36, 31, .1); } .otp-card > p { margin: 0; color: var(--muted); } .otp-card p b { color: var(--ink); } .otp-head { display: flex; align-items: center; gap: 12px; } .otp-head strong { display: block; font-size: 16px; } .otp-head small { color: var(--muted); }
.otp-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; } .otp-inputs input { width: 100%; height: 62px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; font: 700 24px var(--font-display); text-align: center; } .otp-inputs input:focus { border-color: var(--green-500); box-shadow: var(--focus-ring); }
.otp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12.5px; } .otp-card .error-note, .otp-card .success-note { margin: 0; }
.dev-note { display: flex; gap: 8px; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: var(--radius-control); color: var(--gold-ink); background: var(--gold-soft); font-size: 12px; }
.error-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; color: #fff; background: var(--green-800); text-align: center; } .error-page .brand-mark { width: 76px; height: 76px; } .error-page > strong { color: var(--gold); font: 700 54px/1.3 var(--font-display); } .error-page h1 { margin: 0; font: 700 24px/1.5 var(--font-display); } .error-page p { max-width: 420px; margin: 0 0 14px; color: #cfe2dc; }

/* هيكل النظام */
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; height: 100vh; position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; flex: none; padding: 18px 14px 14px; color: #cfe2dc; background: var(--green-800); }
.sidebar.star-pattern::before { mask-image: linear-gradient(transparent 58%, #000 88%); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none; } .sidebar-brand strong { display: block; font: 700 20px/1.3 var(--font-display); } .sidebar-brand small { display: block; color: #a9c4bb; font-size: 11px; white-space: nowrap; }
.account-context { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .06); } .account-context div { min-width: 0; } .account-context strong { display: block; color: #fff; font-size: 12.5px; font-weight: 600; } .account-context div span { display: block; color: #9fc2b7; font-size: 11px; } .context-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 9px; color: var(--gold); background: rgba(201, 162, 75, .16); }
.main-nav { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; overflow-y: auto; scrollbar-width: none; }
.nav-label { margin: 14px 12px 4px; color: #86ada2; font-size: 11px; font-weight: 500; }
.main-nav a { min-height: 39px; display: flex; align-items: center; gap: 11px; flex: none; padding: 0 12px; border: 1px solid transparent; border-radius: var(--radius-control); color: #cfe2dc; text-decoration: none; } .main-nav a:hover { background: rgba(255, 255, 255, .06); } .main-nav a.active { border-color: rgba(255, 255, 255, .1); color: #fff; background: rgba(255, 255, 255, .11); box-shadow: inset -3px 0 0 var(--gold); font-weight: 600; } .main-nav a.active .icon { color: var(--gold); } .main-nav a b { min-width: 22px; margin-inline-start: auto; padding: 0 7px; border-radius: 99px; color: var(--green-900); background: var(--gold); font-size: 11px; line-height: 18px; text-align: center; }
.main-nav a:focus-visible, .sidebar-brand:focus-visible, .logout-button:focus-visible, .sidebar-user-link:focus-visible { outline-color: var(--gold); outline-offset: -2px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; border-top: 1px solid rgba(255, 255, 255, .08); } .sidebar-user-link { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; } .sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sidebar-user strong { color: #fff; font-size: 12.5px; font-weight: 600; } .sidebar-user small { color: #9fc2b7; font-size: 11px; }
.logout-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #9fc2b7; background: transparent; } .logout-button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-area { min-width: 0; flex: 1; }
.topbar { min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 12px 26px; border-bottom: 1px solid var(--line); background: #fff; } .topbar-title { min-width: 0; } .topbar h1 { margin: 0; font-size: var(--text-page); font-weight: 700; line-height: 1.5; } .breadcrumb { display: block; color: var(--muted); font-size: var(--text-caption); font-weight: 500; } .topbar-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.page-content { padding: 22px 26px 40px; }
.bottom-nav { display: none; }

/* البطاقات */
.panel, .kpi-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; }
.panel-body { padding: 18px; }
.panel-heading { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 10px; } .panel-heading > div:first-child:not(.no-bar) { position: relative; padding-inline-start: 15px; } .panel-heading > div:first-child:not(.no-bar)::before { content: ''; width: 5px; position: absolute; inset-block: 4px; inset-inline-start: 0; border-radius: 99px; background: var(--gold); } .panel-heading h2 { margin: 0; font-size: var(--text-card); font-weight: 600; line-height: 1.5; } .panel-heading > a, .panel-heading > .segmented, .panel-heading > .push { margin-inline-start: auto; } .panel-heading .legend + .segmented { margin: 0; } .panel-heading > a { color: var(--green-500); font-weight: 600; text-decoration: none; } .panel-heading + .panel-body { padding-top: 6px; }
.panel-kicker { display: block; color: var(--muted); font-size: var(--text-caption); font-weight: 500; }
.panel-more { display: block; padding: 13px; border-top: 1px solid var(--line-soft); color: var(--green-500); font-weight: 600; text-align: center; text-decoration: none; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi-card { position: relative; display: grid; align-content: start; gap: 4px; padding: 14px 16px; } .kpi-card .icon-tile { width: 32px; height: 32px; } .kpi-card .icon-tile .icon { width: 17px; height: 17px; } .kpi-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 500; } .kpi-card strong { font: 700 27px/1.4 var(--font-display); } .kpi-card em { color: var(--muted); font-size: 14px; font-style: normal; } .kpi-card small { color: var(--muted); font-size: var(--text-caption); font-weight: 500; } .kpi-card small b:not([class]) { color: var(--ink); } .kpi-card .sparkline { position: absolute; inset-inline-end: 12px; top: 46px; width: 78px; }
.kpi-failed { border-color: #f0c5bf; } .kpi-failed strong { color: var(--failed-ink); } .kpi-review { border-color: #e1d6f7; }
.mini-kpi { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; } .mini-kpi small { color: var(--muted); } .mini-kpi strong { display: block; font: 700 22px/1.3 var(--font-display); }
.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 16px; } .dashboard-grid.half { grid-template-columns: 1fr 1fr; }
.dashboard-thirds { display: grid; grid-template-columns: .85fr 1.4fr .85fr; gap: 16px; align-items: start; } .donut-row { display: flex; align-items: center; gap: 22px; }
.club-line { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; color: inherit; text-decoration: none; } .club-line strong, .club-line small { display: block; } .club-line strong { font-weight: 600; } .club-line small { color: var(--muted); font-size: var(--text-caption); }
.activity-row { display: flex; align-items: flex-start; gap: 10px; } .activity-row > .status-dot { margin-top: 7px; } .activity-row p { margin: 0; line-height: 1.8; } .activity-row p strong { font-weight: 600; } .activity-row small { display: block; color: var(--none); font-size: var(--text-caption); }

/* الجداول */
.table-panel { overflow-x: auto; } .table-panel.overflow-visible { overflow: visible; }
.data-table { width: 100%; border-collapse: collapse; } .data-table th { height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); background: #faf8f4; font-size: var(--text-caption); font-weight: 500; text-align: start; white-space: nowrap; } .data-table tr:first-child th:first-child { border-start-start-radius: 15px; } .data-table tr:first-child th:last-child { border-start-end-radius: 15px; } .panel-heading + .data-table th { border-radius: 0 !important; border-top: 1px solid var(--line-soft); } .data-table td { height: 60px; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); } .data-table.compact th, .data-table.compact td { padding-inline: 12px; } .data-table.compact td { height: 54px; } .data-table tbody tr:hover { background: #fcfbf8; } .data-table tr:last-child td { border-bottom: 0; } .data-table tr.selected, .selected { background: #fcf8ee !important; } .data-table tr.done { opacity: .55; } .data-table td strong { font-weight: 600; } .data-table .check { width: 44px; padding-inline-end: 0; } .data-table td a:not(.btn):not(.icon-button) { color: inherit; text-decoration: none; }
.bar-cell { min-width: 150px; } .details-cell { max-width: 300px; overflow-wrap: anywhere; } .club-name, .standard-name { display: flex; align-items: center; gap: 10px; } .row-actions { display: flex; align-items: center; gap: 8px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); } .pagination > div { display: flex; flex-wrap: wrap; gap: 6px; } .pagination a, .pagination div > span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-decoration: none; } .pagination .active { border-color: var(--green-700); color: #fff; background: var(--green-700); } .pagination .disabled { color: var(--none); } .pagination .icon { width: 15px; } .pagination .muted { font-size: 12px; }
.page-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; } .page-tabs a { min-height: 46px; display: flex; align-items: center; gap: 8px; flex: none; padding: 0 13px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; text-decoration: none; } .page-tabs a.active { border-color: var(--green-700); color: var(--green-700); font-weight: 600; } .page-tabs b { padding: 0 8px; border-radius: 99px; background: var(--track); font-size: 11px; line-height: 19px; } .page-tabs.inset { margin: 0; padding: 0 14px; }

/* شبكة الأندية */
.card-table.as-grid thead { display: none; } .card-table.as-grid tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 16px; } .card-table.as-grid tr { position: relative; display: grid; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; } .card-table.as-grid td { height: auto; padding: 0; border: 0; } .card-table.as-grid td:nth-child(4), .card-table.as-grid td:nth-child(5), .card-table.as-grid td:nth-child(9) { display: none; } .card-table.as-grid td.check { position: absolute; inset-inline-end: 14px; top: 16px; } .card-table.as-grid td:last-child { position: absolute; inset-inline-end: 8px; bottom: 8px; }

/* ملف النادي */
.club-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; padding: 18px 22px; } .club-hero-main { flex: 1; min-width: 0; } .club-hero h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 20px; } .club-hero p { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; color: var(--muted); } .club-hero p span { display: inline-flex; align-items: center; gap: 6px; } .club-hero p .icon { width: 15px; } .hero-stats { display: flex; margin: 0; } .hero-stats > div { min-width: 104px; padding: 0 18px; text-align: center; } .hero-stats > div + div { border-inline-start: 1px solid var(--line); } .hero-stats dt, .hero-stats small { color: var(--muted); font-size: var(--text-caption); } .hero-stats dd { margin: 0; font: 700 21px/1.5 var(--font-display); } .hero-stats em { color: var(--muted); font-size: 13px; font-style: normal; }
.team-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; } .member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; } .member-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; } .member-card > div { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; } .member-card > div small { color: var(--muted); font-size: 11px; } .committees { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); } .committees > small { display: block; margin-bottom: 9px; color: var(--muted); font-weight: 600; }
.status-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; } .status-tile { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; } .status-tile span { display: inline-flex; align-items: center; gap: 8px; color: #4b5d58; } .status-tile strong { font: 700 19px/1.5 var(--font-display); } .status-tile.highlight { border-color: #ebcb95; background: var(--needs-soft); } .status-tile.highlight strong { color: var(--needs-ink); }
.axis-list { display: grid; gap: 16px; } .axis-list > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; outline-offset: 4px; } .axis-list .progress-track { grid-column: 1 / -1; } .axis-values small { color: var(--muted); }

/* الإسناد */
.load-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-bottom: 16px; } .load-card { display: grid; gap: 9px; padding: 14px; } .load-numbers { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; } .load-numbers b { color: var(--ink); } .load-numbers b.ink-failed { color: var(--failed-ink); } .load-needs i { background: var(--needs); } .load-failed i { background: var(--failed); }

/* المعايير */
.library { display: grid; grid-template-columns: 232px 1fr; gap: 16px; align-items: start; } .library-side { display: grid; gap: 14px; } .library-main { min-width: 0; } .side-link { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 12px; border-radius: 9px; color: var(--ink); text-decoration: none; } .side-link:hover { background: var(--green-50); } .side-link i { width: 8px; height: 8px; border-radius: 3px; } .side-link b, .side-check b { margin-inline-start: auto; color: var(--muted); font-weight: 500; } .side-link.active { color: #fff; background: var(--green-700); } .side-link.active b { color: #fff; } .side-link.current { background: #fcf8ee; font-weight: 600; } .side-check { display: flex; align-items: center; gap: 9px; min-height: 34px; cursor: pointer; } .library .setting-row { padding: 0; } .library-side .note { margin: 0; } .note a { color: inherit; font-weight: 600; }
.standards-list { overflow: hidden; } .standard-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 180px 34px; align-items: center; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); } .standard-row:last-child { border-bottom: 0; } .standard-row:hover { background: #fcfbf8; } .standard-row h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; font-size: 14px; font-weight: 600; } .standard-row h3 a { color: inherit; text-decoration: none; } .standard-row h3 a:hover { color: var(--green-500); } .standard-row p { margin: 5px 0 9px; color: var(--muted); font-size: 12.5px; } .standard-progress > span { display: flex; justify-content: space-between; margin-bottom: 6px; } .standard-progress small { color: var(--muted); font-size: var(--text-caption); } .standard-progress b { font-size: 12px; } .as-grid.standards-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; border: 0; background: none; } .as-grid .standard-row { grid-template-columns: 1fr auto; align-content: start; border: 1px solid var(--line); border-radius: 14px; background: #fff; } .as-grid .standard-main, .as-grid .standard-progress { grid-column: 1 / -1; }
.standard-form { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; } .form-main, .form-side { display: grid; gap: 16px; } .step-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--text-card); font-weight: 600; } .step-title > b { width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 8px; color: #fff; background: var(--green-700); font-size: 12px; } .step-title small { display: block; color: var(--muted); font-size: var(--text-caption); font-weight: 400; } .step-head { display: flex; align-items: center; justify-content: space-between; } .save-state { white-space: nowrap; } .form-side .note { margin: 0; }
.editor { border: 1px solid var(--line-strong); border-radius: var(--radius-control); overflow: hidden; } .editor:focus-within { border-color: var(--green-500); box-shadow: var(--focus-ring); } .editor-bar { display: flex; align-items: center; gap: 3px; padding: 5px 8px; border-bottom: 1px solid var(--line); background: #fcfbf8; } .editor-bar button { width: 34px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; } .editor-bar button:hover { background: var(--green-100); } .editor-bar span { width: 1px; height: 20px; margin: 0 5px; background: var(--line); } .editor-area { min-height: 150px; padding: 12px 16px; outline: 0; line-height: 1.9; } .editor-area ul, .editor-area ol { margin: 0; padding-inline-start: 22px; }
.requirements { display: grid; gap: 8px; } .requirement { display: grid; grid-template-columns: 30px 18px minmax(0, 1fr) 130px 96px 34px; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-control); background: #fff; } .requirement.dragging { opacity: .5; } .requirement [data-handle] { width: 30px; color: var(--none); cursor: grab; } .requirement-number { color: var(--gold-deep); } .requirement .input:not(.input-sm) { height: 36px; border-color: transparent; font-weight: 500; } .requirement .input:focus { border-color: var(--green-500); } .requirements:empty::after { content: 'لم تُضف متطلبات بعد'; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); text-align: center; }
.standard-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-bottom: 16px; padding: 18px 22px; } .standard-hero-main { display: grid; gap: 12px; align-content: start; } .standard-hero-side { display: flex; align-items: center; gap: 20px; padding-inline-start: 24px; border-inline-start: 1px solid var(--line); } .standard-hero-side > div:last-child { flex: 1; } .standard-hero-side .legend-table { margin-top: 8px; } .standard-hero-side .legend-table td { padding: 3px 0; }

/* لوحة المستشار */
.consultant-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; } .queue-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 13px 18px; border-top: 1px solid var(--line-soft); } .queue-row h3, .action-row h3, .conversation-row h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 3px; font-size: 13px; font-weight: 600; } .queue-row small, .action-row small { font-size: var(--text-caption); color: var(--muted); } small.ink-failed { color: var(--failed-ink) !important; }
.matrix-wrap { overflow-x: auto; } .matrix { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; } .matrix th:first-child { width: 54px; } .matrix th { color: var(--muted); font-size: 11px; font-weight: 500; } .matrix th a { color: inherit; direction: ltr; text-decoration: none; white-space: nowrap; } .matrix .cell { height: 25px; display: block; border-radius: 6px; } .matrix .cell:hover { outline: 2px solid var(--ink); } .matrix.large { min-width: 760px; } .matrix.large .cell { height: 34px; } .cell.ok { background: var(--ok); } .cell.review { background: var(--review); } .cell.progress { background: var(--progress); } .cell.needs { background: var(--needs); } .cell.failed { background: var(--failed); } .cell.none { background: var(--none); } .cell.blank { background: var(--track); } .matrix-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: #4b5d58; font-size: 11.5px; } .matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.date-row { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; } .date-row strong, .date-row small { display: block; } .date-row strong { font-weight: 600; } .date-row small { color: var(--muted); font-size: var(--text-caption); } .date-tile { width: 50px; display: grid; flex: none; padding: 5px 2px; border-radius: 10px; color: var(--needs-ink); background: var(--needs-soft); font-size: 10.5px; line-height: 1.4; text-align: center; } .date-tile b { font-size: 16px; } .date-tile.failed { color: var(--failed-ink); background: var(--failed-soft); }

/* مساحة المتابعة */
.follow-space { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; } .thread { position: sticky; top: 0; height: calc(100vh - 77px); display: flex; flex-direction: column; } .thread-scroll { min-height: 0; flex: 1; padding: 18px 26px; overflow-y: auto; } .thread-older summary { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.follow-side { display: grid; gap: 14px; padding: 18px 18px 40px; border-inline-start: 1px solid var(--line); background: #fcfbf8; min-height: calc(100vh - 77px); align-content: start; }
.event-line { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; } .event-line p { flex: 1; margin: 0; } .event-line p strong { font-weight: 600; } .event-line > small, .comment-card header small, .reply header small { color: var(--none); font-size: var(--text-caption); white-space: nowrap; } .event-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--none-ink); background: var(--none-soft); } .event-icon .icon { width: 15px; } .event-icon.review { color: var(--review-ink); background: var(--review-soft); } .event-icon.needs { color: var(--needs-ink); background: var(--needs-soft); } .event-icon.ok { color: var(--ok-ink); background: var(--ok-soft); } .event-icon.failed { color: var(--failed-ink); background: var(--failed-soft); } .event-icon.progress { color: var(--progress-ink); background: var(--progress-soft); }
.comment-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; scroll-margin-top: 20px; } .comment-row:target .comment-card { border-color: var(--green-500); box-shadow: var(--focus-ring); } .comment-card { min-width: 0; flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; } .comment-card.internal { border: 1px dashed #e0c27a; background: #fcf8ee; } .comment-card header, .reply header { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; } .comment-card header strong { font-weight: 600; } .comment-card header small { margin-inline-start: auto; } .comment-card p { margin: 6px 0 0; line-height: 1.9; overflow-wrap: anywhere; } .attachments { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; } .comment-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; } .comment-actions form.idle { order: 3; opacity: 0; transition: opacity .15s; } .comment-card:hover form.idle, .comment-card:focus-within form.idle { opacity: 1; } .reaction { min-height: 27px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: #f1ede5; font-size: 12px; } .reaction .icon { width: 13px; } .reaction.mine { border-color: var(--green-500); background: var(--green-100); } .reply { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); } .reply .avatar { width: 28px; height: 28px; font-size: 12px; } .reply p { margin: 2px 0 0; } .reply-form { display: flex; gap: 8px; margin-top: 11px; } .reply-form .input { height: 36px; } .reply-form .btn { height: 36px; }
.composer { position: relative; margin: 0 26px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; } .composer:focus-within { border-color: var(--green-500); box-shadow: var(--focus-ring); } .composer.internal { border: 1px dashed #d8b763; background: #fcf8ee; } .composer textarea { width: 100%; padding: 13px 16px; border: 0; outline: 0; background: none; resize: none; } .composer-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; } .internal-toggle { padding-inline-start: 10px; border-inline-start: 1px solid var(--line); color: var(--muted); font-size: 12px; } .mention-menu { position: absolute; inset-inline: 12px auto; bottom: calc(100% + 6px); z-index: 10; width: 270px; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; list-style: none; box-shadow: 0 14px 40px rgba(5, 36, 31, .18); } .mention-menu button { width: 100%; display: grid; padding: 7px 10px; border: 0; border-radius: 8px; background: none; text-align: start; } .mention-menu button:hover { background: var(--green-50); } .mention-menu small { color: var(--muted); font-size: 11px; }
.match-row { display: flex; align-items: center; gap: 9px; cursor: pointer; } .match-row > span:nth-of-type(1) { flex: 1; } .match-row .code-badge { max-width: 130px; overflow: hidden; text-decoration: none; text-overflow: ellipsis; }
.details { display: grid; gap: 10px; margin: 0; } .details > div { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 8px; } .details dt { color: var(--muted); font-size: 12px; } .details dd { margin: 0; font-size: 12.5px; } .details .person .avatar { width: 24px; height: 24px; font-size: 11px; } .details .person strong { font-weight: 500; } .more { margin-top: 12px; } .more summary { color: var(--green-500); font-size: 12px; font-weight: 600; cursor: pointer; } .more[open] summary { margin-bottom: 8px; }
.path { margin: 0; padding: 0; list-style: none; } .path li { position: relative; display: flex; align-items: center; gap: 11px; padding: 6px 0; font-size: 12.5px; } .path li::before { content: ''; width: 1px; position: absolute; inset-inline-start: 4px; top: -8px; height: 16px; background: var(--line-strong); } .path li:first-child::before { display: none; } .path small { margin-inline-start: auto; color: var(--none); font-size: 11px; } .path .current { font-weight: 600; } .path .current .status-dot { width: 12px; height: 12px; margin-inline-start: -2px; outline: 3px solid var(--track); }
.change-row { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); } .change-row small { display: block; color: var(--muted); direction: ltr; text-align: right; } .change-row p { margin: 4px 0 0; color: #4b5d58; }
.requirement-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; } .requirement-list li { display: flex; align-items: center; gap: 9px; } .requirement-list li > span:nth-of-type(1) { flex: 1; font-weight: 500; } .requirement-files { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; } .requirement-files .code-badge { text-decoration: none; } .tick { width: 18px; height: 18px; display: grid; place-items: center; flex: none; border: 1.5px solid var(--needs); border-radius: 5px; } .tick.done { border-color: var(--green-500); color: #fff; background: var(--green-500); } .tick .icon { width: 12px; stroke-width: 3; }
.dropzone { display: grid; justify-items: center; gap: 5px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 13px; background: #fcfbf8; text-align: center; cursor: pointer; } .dropzone:hover, .dropzone.over { border-color: var(--green-500); background: var(--green-50); } .dropzone em { color: var(--green-500); font-style: normal; } .dropzone small { color: var(--muted); font-size: 11px; } .upload-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; } .upload-row + .upload-row { margin-top: 6px; } .upload-row strong { overflow: hidden; direction: ltr; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; } .upload-row.failed { border-color: #f0c5bf; color: var(--failed-ink); } .upload-row.failed small { grid-column: 1 / -1; }

/* النادي */
.club-top { display: grid; grid-template-columns: .78fr 1fr; gap: 16px; margin-bottom: 16px; } .hero-card { display: flex; align-items: center; gap: 24px; padding: 24px; border-radius: var(--radius-card); color: #fff; background: var(--green-700); overflow: hidden; } .hero-card > div:last-child { flex: 1; } .hero-card small { color: #cfe2dc; } .hero-card h2 { margin: 2px 0 4px; font: 700 21px/1.5 var(--font-display); } .hero-change { margin: 0 0 12px; color: #ead9a6; } .hero-target { display: flex; justify-content: space-between; margin-bottom: 6px; color: #cfe2dc; font-size: 12px; }
.club-thirds { display: grid; grid-template-columns: .9fr 1.45fr .75fr; gap: 16px; align-items: start; } .action-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; } .action-row:hover { background: #fcfbf8; } .reply-line { display: flex; gap: 10px; color: inherit; text-decoration: none; } .reply-line em { display: block; color: #4b5d58; font-style: normal; } .reply-line small { color: var(--none); font-size: var(--text-caption); }
.checklist { overflow: hidden; } .check-group > summary, .check-item > summary { display: flex; align-items: center; gap: 12px; padding: 13px 18px; cursor: pointer; list-style: none; } .check-group > summary { border-top: 1px solid var(--line-soft); background: #faf8f4; } .check-group:first-child > summary { border-top: 0; } .check-group > summary .icon { width: 16px; transition: rotate .15s; } .check-group[open] > summary > .icon { rotate: -90deg; } .check-group > summary > small { color: var(--muted); } .check-group > summary .progress-track { width: 170px; } .check-item { border-top: 1px solid var(--line-soft); } .check-item > summary:hover { background: #fcfbf8; } .check-item > summary strong { font-weight: 600; } .check-item > summary .avatar { width: 28px; height: 28px; font-size: 12px; } .check-item > summary .icon { width: 15px; } .check-item[open] { box-shadow: inset -3px 0 0 var(--none); } .check-item.needs[open] { box-shadow: inset -3px 0 0 var(--needs); } .check-item.ok[open] { box-shadow: inset -3px 0 0 var(--ok); } .check-item.progress[open] { box-shadow: inset -3px 0 0 var(--progress); } .check-item.review[open] { box-shadow: inset -3px 0 0 var(--review); } .check-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 4px 18px 20px; }
.scanner { width: min(560px, 100%); display: grid; gap: 16px; margin-inline: auto; padding: 20px; } .scan-frame { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 260px; border: 2px solid var(--gold); border-radius: 16px; color: #fff; background: #10201c; text-align: center; cursor: pointer; } .scan-frame .icon { width: 44px; height: 44px; color: var(--gold); } .scan-frame small { color: #a9c4bb; } .scan-pages { display: flex; gap: 10px; overflow-x: auto; } .scan-pages:empty { display: none; } .scan-pages figure { position: relative; flex: none; margin: 0; } .scan-pages img { width: 92px; height: 124px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; } .scan-pages figcaption { color: var(--muted); font-size: 11px; text-align: center; } .scan-pages button { width: 24px; height: 24px; position: absolute; inset: 4px 4px auto auto; border: 0; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .6); }

/* المجلس */
.board-top { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; margin-bottom: 16px; } .board-score { display: flex; align-items: center; gap: 24px; padding: 18px 22px; } .board-score .ring strong { font: 700 26px/1.3 var(--font-display); } .board-score h2 { margin: 2px 0; color: var(--green-700); font: 700 20px/1.5 var(--font-display); } .board-score p { margin: 0 0 6px; } .board-score .sparkline { width: 190px; height: 40px; } .board-meetings { display: grid; align-content: space-between; gap: 10px; } .board-meetings p { margin: 0; color: var(--muted); } .board-meetings p strong { color: var(--ink); font: 700 26px/1.3 var(--font-display); } .dashes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; } .dashes i { height: 7px; border-radius: 99px; background: var(--track); } .dashes .on { background: var(--green-500); } .meeting-next { display: flex; align-items: center; gap: 11px; padding-top: 12px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; } .meeting-next strong, .meeting-next small { display: block; } .meeting-next small { color: var(--muted); font-size: var(--text-caption); } .board-disclosure { display: grid; align-content: space-between; justify-items: start; gap: 8px; } .board-disclosure.ok { border-color: #cfe5dc; background: var(--green-50); } .board-disclosure.pending { border-color: #ecdcb2; background: #fcf8ee; }
.board-mid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; } .decision-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-soft); } .decision-row > div { min-width: 0; flex: 1; } .decision-row strong, .decision-row small { display: block; } .decision-row strong { font-weight: 600; } .decision-row small { color: var(--muted); font-size: var(--text-caption); } .risk-card { display: grid; gap: 6px; padding: 13px 15px; border: 1px solid #ecdcb2; border-radius: 13px; color: inherit; text-decoration: none; } .risk-card.high { border-color: #f0c5bf; background: #fff8f7; } .risk-card > div { display: flex; align-items: center; gap: 8px; } .risk-card strong { font-weight: 600; } .risk-card small { color: var(--muted); font-size: var(--text-caption); } .axis-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; } .axis-rings > div { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; } .axis-rings strong, .axis-rings small, .axis-rings b { display: block; } .axis-rings > div > span > strong { font-weight: 600; } .axis-rings small { color: var(--muted); font-size: 11px; } .axis-rings b { font-size: 11px; } .axis-rings .ring strong { font-size: 14px; }
.decision-card { display: grid; gap: 14px; padding: 18px; scroll-margin-top: 20px; } .decision-card header { display: flex; align-items: center; gap: 12px; } .decision-card h2 { margin: 0; font-size: var(--text-card); font-weight: 600; } .votes { display: grid; gap: 8px; } .respond { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); } .respond .input { flex: 1; min-width: 200px; height: 40px; } .disclosure-page { display: grid; gap: 16px; max-width: 860px; }

/* المحادثات والتقويم */
.conversation-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; } .conversation-row:hover { background: #fcfbf8; } .conversation-row.unread { background: #fbfaf6; } .conversation-row p { margin: 0; color: #4b5d58; } .conversation-meta { display: grid; justify-items: end; gap: 5px; } .conversation-meta > small:first-child { color: var(--none); font-size: var(--text-caption); }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; } .calendar-head { padding: 11px; border-bottom: 1px solid var(--line); color: var(--muted); background: #faf8f4; font-size: 12px; font-weight: 500; text-align: center; } .calendar-day { min-height: 108px; display: grid; align-content: start; gap: 4px; padding: 8px; border-inline-start: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); } .calendar-day.outside { opacity: .45; } .calendar-day > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; } .calendar-day.today > span { color: #fff; background: var(--green-700); } .calendar-event { padding: 2px 8px; border-radius: 7px; overflow: hidden; font-size: 11.5px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; } .calendar-event.needs { color: var(--needs-ink); background: var(--needs-soft); } .calendar-event.failed { color: var(--failed-ink); background: var(--failed-soft); } .calendar-event.review { color: var(--review-ink); background: var(--review-soft); }

/* الإشعارات */
.notifications-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; } .notice-group { display: block; padding: 14px 18px 7px; color: var(--muted); font-weight: 600; } .notification-row { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: inherit; text-decoration: none; } .notification-row > div { min-width: 0; flex: 1; } .notification-row:hover { background: var(--green-50); } .notification-row.unread { background: #fbfaf6; } .notification-row div strong { display: block; font-weight: 600; } .notification-row p { margin: 1px 0 0; color: var(--muted); font-size: 12px; } .notification-row > small { color: var(--none); font-size: var(--text-caption); white-space: nowrap; } .notice-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 11px; } .unread-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green-500); } .pref-table { width: 100%; padding: 0 18px 12px; border-spacing: 0; } .pref-table th, .pref-table td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); text-align: center; } .pref-table thead th { color: var(--muted); font-size: var(--text-caption); font-weight: 500; } .pref-table th:first-child { font-size: 12.5px; font-weight: 600; text-align: start; } .pref-table tr:last-child > * { border-bottom: 0; } .my-activity { display: flex; align-items: center; gap: 9px; font-size: 12.5px; } .my-activity small { margin-inline-start: auto; color: var(--none); font-size: 11px; white-space: nowrap; }

/* التقارير */
.report-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; } .heat-wrap { padding: 0 18px; overflow-x: auto; } .heatmap { width: 100%; border-collapse: separate; border-spacing: 3px; } .heatmap thead th { padding: 8px 4px; color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.5; } .heatmap th:first-child { text-align: start; white-space: nowrap; } .heatmap tbody th { font-size: 12.5px; font-weight: 600; } .heatmap tbody th .club-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; } .heatmap td { text-align: center; } .heat { min-width: 58px; min-height: 31px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 600; outline-offset: 1px; } .heat:hover { outline: 2px solid var(--ink); } .h1 { color: var(--green-900); background: #8cc2ad; } .h2 { color: var(--green-900); background: #63ab92; } .h3 { color: #fff; background: #35836b; } .h4 { color: #fff; background: #1c6a55; } .h5 { color: #fff; background: #0b4f43; } .heat-legend { display: flex; align-items: center; gap: 6px; padding: 16px 18px; color: var(--muted); font-size: 11.5px; } .heat-legend i { width: 38px; height: 9px; border-radius: 4px; } .axis-rows { display: grid; gap: 13px; } .axis-rows > div { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; } .axis-rows b { text-align: end; } .struggle { display: grid; grid-template-columns: auto minmax(0, 1fr) 96px; align-items: center; gap: 12px; } .struggle strong, .struggle small { display: block; } .struggle strong { font-size: 12.5px; font-weight: 600; } .struggle small { color: var(--muted); font-size: 11px; } .auto-report { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-color: #cfe5dc; background: var(--green-50); } .auto-report > span:nth-of-type(2) { flex: 1; } .auto-report strong, .auto-report small { display: block; } .auto-report small, .schedule-row small { color: var(--muted); font-size: var(--text-caption); } .auto-report .icon-tile { background: #fff; } .schedule-row { display: flex; align-items: center; justify-content: space-between; } .schedule-row strong, .schedule-row small { display: block; }
.settings-page { display: grid; gap: 16px; max-width: 980px; justify-items: stretch; } .settings-page > .btn, .settings-page > form:last-child .btn { justify-self: start; width: max-content; } .axis-form { display: flex; align-items: center; gap: 8px; } .axis-form > form:first-child { flex: 1; display: grid; grid-template-columns: 46px minmax(0, 1fr) 90px 90px auto; align-items: center; gap: 10px; } .axis-form .input { height: 38px; } .axis-form.new { padding-top: 12px; border-top: 1px solid var(--line-soft); }

@media (max-width: 1320px) {
    .dashboard-thirds, .club-thirds { grid-template-columns: 1fr 1fr; } .dashboard-thirds > :nth-child(2), .club-thirds > :nth-child(2) { grid-column: 1 / -1; order: 3; }
    .search-box { width: 220px; }
}
@media (max-width: 1100px) {
    .dashboard-grid, .dashboard-grid.half, .team-grid, .consultant-grid, .report-grid, .notifications-grid, .standard-form, .board-mid, .club-top, .standard-hero, .follow-space { grid-template-columns: minmax(0, 1fr); }
    .board-top { grid-template-columns: 1fr 1fr; } .board-score { grid-column: 1 / -1; }
    .library { grid-template-columns: minmax(0, 1fr); } .library-side { grid-template-columns: 1fr 1fr; align-items: start; }
    .standard-row { grid-template-columns: minmax(0, 1fr) 160px; } .standard-main { grid-column: 1 / -1; } .standard-row > a:last-child { display: none; }
    .standard-hero-side { padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); }
    .thread { position: static; height: auto; } .follow-side { border: 0; border-top: 1px solid var(--line); }
    .club-hero { flex-wrap: wrap; }
    .table-panel.overflow-visible { min-height: 420px; overflow-x: auto; }
}
@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; } .login-art { min-height: 0; padding: 34px 28px; } .login-panel { padding: 30px 24px; } .login-top { margin-bottom: 34px; }
    .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 60; padding-bottom: 78px; translate: 110% 0; transition: translate .2s; } .flash-area:has(+ .follow-space) { inset-inline: 0; } .menu-open .sidebar { translate: 0; box-shadow: 0 0 60px rgba(0, 0, 0, .4); } .menu-open::after { content: ''; position: fixed; inset: 0; z-index: 50; background: rgba(5, 36, 31, .4); pointer-events: none; }
    .bottom-nav { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); background: #fff; padding-bottom: env(safe-area-inset-bottom); } .menu-open .bottom-nav { z-index: 70; } .bottom-nav > * { position: relative; min-width: 0; display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border: 0; color: var(--none-ink); background: none; font-size: 10.5px; text-decoration: none; } .bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bottom-nav .active { color: var(--green-700); font-weight: 600; } .bottom-nav b { position: absolute; top: 4px; inset-inline-start: calc(50% + 4px); min-width: 16px; border-radius: 99px; color: #fff; background: var(--failed); font-size: 9.5px; line-height: 16px; text-align: center; }
    .main-area { padding-bottom: 70px; } .bulk-bar { inset-inline: 12px; bottom: 80px; width: auto; flex-wrap: wrap; }
    .only-mobile { display: inline-flex; }
    .dashboard-thirds, .club-thirds { grid-template-columns: minmax(0, 1fr); } .check-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .topbar { min-height: 64px; flex-wrap: wrap; padding: 11px 16px; } .topbar-actions { flex-wrap: wrap; } .topbar .search-trigger, .topbar .avatar-stack { display: none; } .topbar form.search-box { width: 100%; }
    .page-content { padding: 16px; } .flash-area { padding: 0 16px; }
    .kpi-grid, .kpi-grid.five { grid-template-columns: 1fr 1fr; gap: 12px; } .kpi-card .sparkline { display: none; }
    .filter-bar { flex-wrap: nowrap; padding-bottom: 5px; overflow-x: auto; scrollbar-width: none; } .filter-bar > * { flex: none; } .filter-bar .push { margin: 0; }
    .table-panel .data-table { min-width: 720px; } .table-panel .data-table td { white-space: nowrap; } .table-panel .data-table td.details-cell { min-width: 220px; white-space: normal; }
    .card-table.as-grid .data-table { min-width: 0; }
    .panel-heading { flex-wrap: wrap; } .donut-row { flex-wrap: wrap; justify-content: center; }
    .status-tiles { grid-template-columns: 1fr 1fr; } .field-row, .field-row.three, .field-row.code-row, .board-top, .library-side { grid-template-columns: minmax(0, 1fr); }
    .club-hero { justify-content: center; text-align: center; } .club-hero h2, .club-hero p { justify-content: center; } .hero-stats > div { min-width: 0; padding: 0 12px; }
    .queue-row { grid-template-columns: 38px minmax(0, 1fr) auto; } .queue-row > small { display: none; } .action-row { grid-template-columns: 1fr auto; } .action-row > div { grid-column: 1 / -1; grid-row: 2; }
    .standard-row { grid-template-columns: minmax(0, 1fr); gap: 11px; } .standard-hero-side { flex-wrap: wrap; justify-content: center; }
    .check-group > summary .progress-track, .check-group > summary .push, .check-item > summary small, .check-item > summary .avatar { display: none; } .check-item > summary { flex-wrap: wrap; }
    .requirement { grid-template-columns: 30px 18px minmax(0, 1fr) 34px; } .requirement select { grid-column: span 2; }
    .decision-row { flex-wrap: wrap; } .decision-row > div { flex-basis: 70%; } .decision-card header { flex-wrap: wrap; }
    .thread-scroll { padding: 16px; } .composer { margin: 0 16px 16px; } .comment-actions form.idle { display: none; } .event-line { flex-wrap: wrap; }
    .calendar { overflow-x: auto; grid-template-columns: repeat(7, 94px); } .axis-form > form:first-child { grid-template-columns: 46px minmax(0, 1fr) 70px; } .axis-form .muted { display: none; }
    .evidence-grid { grid-template-columns: minmax(0, 1fr); } .notification-row { flex-wrap: wrap; } .notification-row .btn { display: none; } .axis-rows > div { grid-template-columns: 110px 1fr 40px; } .hero-card { flex-wrap: wrap; justify-content: center; } .pagination { flex-wrap: wrap; }
    .trust-row { grid-template-columns: repeat(3, 1fr); gap: 8px; } .trust-row div { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
