/* إدارة التشغيل — أنماط محصورة بهذا القسم فقط */
.nav-hub-row--operations {
    grid-template-columns: 1fr;
}
.nav-hub-row--operations.hidden {
    display: none;
}
.nav-tile--ops {
    background: linear-gradient(145deg, rgba(30, 64, 175, 0.28) 0%, rgba(30, 58, 138, 0.14) 100%);
    border-color: rgba(129, 140, 248, 0.4);
    color: #c7d2fe;
}
body.light-mode .nav-tile--ops { color: #1e40af; }

#viewOperationsPanel.app-workspace.tab-view.active {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr;
}

.ops-workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}
.ops-hero.card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 48%, #3b82f6 100%);
    border: none;
    color: #fff;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}
.ops-hero-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px 12px;
}
.ops-hero-text h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 700; }
.ops-hero-text p { margin: 0; opacity: 0.92; font-size: 0.82rem; max-width: 640px; line-height: 1.5; }
.ops-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
}
.ops-kpi {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
}
.ops-kpi span { display: block; font-size: 0.72rem; opacity: 0.85; }
.ops-kpi b { display: block; margin-top: 4px; font-size: 1.05rem; }
.ops-trial {
    margin: 0 16px 16px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.8rem;
    line-height: 1.45;
}
.ops-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ops-subtabs button {
    border-radius: 999px;
}
.ops-body { width: 100%; }
.ops-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}
.ops-card h3 { margin: 0 0 10px; font-size: 1rem; }
.ops-table-wrap { overflow-x: auto; }
.ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.ops-table th, .ops-table td {
    border: 1px solid var(--border, #e2e8f0);
    padding: 7px 8px;
    text-align: center;
}
.ops-table th { background: rgba(30, 64, 175, 0.08); }
.ops-table tr.is-current td { background: rgba(37, 99, 235, 0.12); font-weight: 700; }
.ops-alert {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border-right: 4px solid #ea580c;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 12px;
}
.ops-note {
    width: 100%;
    min-height: 72px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border, #cbd5e1);
}
.ops-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ops-control {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 12px;
}
.ops-control b { display: block; margin-bottom: 4px; }
.ops-status {
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e2e8f0;
}
body.dark-mode .ops-card,
body:not(.light-mode) .ops-card {
    background: rgba(15, 23, 42, 0.35);
}
body:not(.light-mode) .ops-table th { background: rgba(129, 140, 248, 0.12); }
body:not(.light-mode) .ops-alert { background: rgba(154, 52, 18, 0.25); color: #fed7aa; }
