/* ===== م1: اللوحة ===== */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; }
.layout-side { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } }
.side { position: sticky; top: 16px; }
.domains li { justify-content: space-between; }
.domains a { color: var(--c-text); display: flex; align-items: center; gap: 8px; flex: 1; }
.domains a.active { color: var(--c-primary); font-weight: 600; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input, .filters select { padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--r-field); font: inherit; background: var(--c-surface); color: var(--c-text); min-height: 40px; }
.filters input { flex: 1; min-width: 200px; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--r-field); font: inherit; background: var(--c-surface); color: var(--c-text); line-height: 1.6; }
textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.type-card { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--r-field); background: var(--c-surface); color: var(--c-text); text-align: center; font-weight: 500; }
.type-card.active { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary); }
.type-card.locked { opacity: .55; cursor: not-allowed; }
.type-card svg { width: 16px; height: 16px; }
.check-row { display: flex; gap: 14px; flex-wrap: wrap; }
.check-row .check { align-items: center; }
details.more { margin: 8px 0 16px; }
details.more summary { cursor: pointer; color: var(--c-primary); font-weight: 500; margin-bottom: 8px; }
.level-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.level-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--r-field); cursor: pointer; }
.level-card:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.level-card.locked { opacity: .55; cursor: not-allowed; }
.level-card svg { width: 16px; height: 16px; margin-inline-start: auto; }
.rules-table select, .rules-table input { width: 100%; padding: 6px 8px; border: 1px solid var(--c-border); border-radius: var(--r-field); font: inherit; background: var(--c-surface); color: var(--c-text); }
.row-error td { background: #FEECEC; }
.errors { margin: 0; padding-inline-start: 18px; }
.ok { color: var(--c-ok); }
.badge.ok { background: #ECFDF3; color: #14532D; } .badge.bad { background: #FEECEC; color: #7F1D1D; } .badge.warn { background: #FFF7E6; color: #7A3E00; }
.badge.status-published { background: #ECFDF3; color: #14532D; } .badge.status-archived { background: #EEE; color: #555; }
.badge.status-pending_manual { background: #FFF7E6; color: #7A3E00; } .badge.status-in_progress { background: #E0F2FE; color: #075985; }
.copy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qa-card .qa-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.qa-text { font-size: 1.05rem; font-weight: 500; }
.plain { margin: 0; padding-inline-start: 18px; } .plain.ordered { list-style: decimal; }
.essay-text { white-space: pre-wrap; background: var(--c-primary-soft); padding: 10px; border-radius: var(--r-field); }
.code-input { font-family: ui-monospace, monospace; letter-spacing: .3em; font-size: 1.2rem; text-align: center; text-transform: uppercase; }
.pagination-wrap { margin-top: 12px; }
.pagination-wrap nav { display: flex; justify-content: center; }
.narrow-inline { max-width: 560px; }
h4 { margin: 0 0 6px; font-size: .95rem; color: var(--c-text-2); }

/* طباعة الفاتورة — كان <style> سطريا في invoice.blade.php قبل CSP (حازم ع-1) */
@media print { .site-header, .footer, .actions { display: none !important; } .card { box-shadow: none; border: 0; } }
