﻿.app-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    align-items: start;
    direction: ltr;
    transition: grid-template-columns .18s ease;
}

.sidebar {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 100vh !important;
}

.workspace {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
    min-height: 0;
    padding-top: 0 !important;
}

.workspace > section,
.qarar-executive-summary-page,
.qarar-basic-workbench,
.qarar-center-locks-page,
.qarar-saved-reports-page,
.qarar-center-attachments-page,
.qarar-audit-log-page,
.qarar-vote-entry-page,
.qarar-report-entry-page,
.qarar-final-results-page {
    min-height: 0;
}

.sidebar,
.qarar-executive-panel,
.qarar-executive-chart,
.qarar-minister-table,
.qarar-basic-table-active,
.qarar-libya-map-filter,
.qarar-final-list,
.qarar-audit-table,
.qarar-basic-table,
.qarar-locks-table,
.qarar-saved-reports-page table,
.qarar-center-attachments-page table,
.qarar-vote-form,
.qarar-report-form {
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.qarar-attachment-toolbar,
.qarar-attachment-form {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr .85fr auto;
    gap: 10px;
    align-items: end;
    direction: rtl;
}

.qarar-attachment-toolbar {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #e6edf6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(7, 24, 47, .06);
}

.qarar-attachment-toolbar label,
.qarar-attachment-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: #667085;
    font-size: 14px;
    font-weight: 800;
}

.qarar-attachment-toolbar input,
.qarar-attachment-toolbar select,
.qarar-attachment-form input,
.qarar-attachment-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    color: #07182f;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
}

.qarar-attachment-form input[type="file"] {
    padding: 7px 8px;
}

.qarar-attachment-form input[type="file"]::file-selector-button {
    margin-inline-end: 8px;
    border: 0;
    border-radius: 7px;
    background: #eef4ff;
    color: #123f8c;
    font: inherit;
    font-weight: 800;
}

.qarar-attachment-toolbar button,
.qarar-attachment-form button,
.qarar-row-actions a,
.qarar-row-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f8fbff;
    color: #07182f;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.qarar-attachment-form button {
    border-color: #123f8c;
    background: #123f8c;
    color: #fff;
}

.qarar-attachment-upload {
    margin-bottom: 12px;
    padding: 16px !important;
}

.qarar-attachment-form {
    grid-template-columns: 1.15fr 1fr .75fr 1fr 1fr auto;
}

.qarar-center-attachments-page .qarar-vote-card-title {
    margin-bottom: 12px;
}

.qarar-center-attachments-page .qarar-vote-card-title h3 {
    font-size: 24px;
}

.qarar-center-attachments-page .qarar-vote-card-title p {
    margin: 4px 0 0;
    font-size: 16px;
}

.qarar-attachments-head {
    min-height: 0 !important;
    margin-bottom: 12px !important;
    padding: 20px 22px !important;
    border-radius: 12px !important;
}

.qarar-attachments-head h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
}

.qarar-attachments-head p {
    margin-top: 4px !important;
    font-size: 17px !important;
}

.qarar-attachments-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.qarar-attachments-summary span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: #edf4ff !important;
    font-size: 15px !important;
    font-weight: 800;
}

.qarar-attachments-summary b {
    color: #f0bd59;
}

.qarar-attachment-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #e6edf6;
    border-radius: 10px;
    background: #f8fbff;
    color: #667085;
    direction: rtl;
    font-size: 15px;
    font-weight: 800;
}

.qarar-attachment-context strong {
    color: #07182f;
    font-size: 20px;
}

.qarar-attachment-context small {
    color: #667085;
}

.qarar-attachment-context b {
    margin-inline-start: auto;
    color: #123f8c;
}

.qarar-center-attachments-page .qarar-basic-table {
    border-radius: 12px;
}

.qarar-center-attachments-page .qarar-basic-section-title {
    padding: 14px 18px;
}

.qarar-center-attachments-page .qarar-basic-table th,
.qarar-center-attachments-page .qarar-basic-table td {
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 15px;
    line-height: 1.7;
}

.qarar-center-attachments-page .qarar-basic-table small {
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

.qarar-center-attachments-page .qarar-basic-section-title h3,
.qarar-center-attachments-page .qarar-basic-section-title span {
    font-size: 16px;
}

.qarar-center-attachments-page .qarar-basic-table td strong {
    font-size: 16px;
}

.qarar-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qarar-row-actions button {
    color: #b42318;
}

@media (max-width: 1100px) {
    .qarar-attachment-toolbar,
    .qarar-attachment-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qarar-attachment-form button {
        grid-column: 1 / -1;
    }

    .qarar-general-summary,
    .qarar-general-fields.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .qarar-attachment-toolbar,
    .qarar-attachment-form {
        grid-template-columns: 1fr;
    }

    .qarar-settings-page {
        padding-inline: 14px;
    }

    .qarar-general-summary,
    .qarar-general-fields.two,
    .qarar-general-fields.three {
        grid-template-columns: 1fr;
    }

    .qarar-general-card header {
        align-items: flex-start;
        flex-direction: column;
    }

    .qarar-general-preview {
        width: 100%;
        justify-content: space-between;
    }

    .qarar-general-submit {
        justify-content: stretch;
    }

    .qarar-general-submit button {
        width: 100%;
        min-width: 0;
    }
}

.qarar-custom-route-loading .workspace > section {
    visibility: hidden !important;
}

.qarar-sidebar-collapsed .app-shell {
    grid-template-columns: minmax(0, 1fr) 0 !important;
}

.qarar-sidebar-collapsed .sidebar {
    width: 0 !important;
    min-width: 0 !important;
    padding-inline: 0 !important;
    border-left: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    pointer-events: none;
}

.qarar-user-topbar {
    position: sticky;
    top: 0;
    z-index: 2000;
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    margin: 0 0 16px !important;
    padding: 10px 18px;
    border-bottom: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: 0 8px 22px rgba(7, 24, 47, .08);
    direction: rtl;
}

.qarar-route-heading {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.qarar-route-heading span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.qarar-route-heading strong {
    overflow: hidden;
    color: #07182f;
    font-size: 18px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qarar-sidebar-toggle,
.qarar-profile-button,
.qarar-profile-menu button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
}

.qarar-sidebar-toggle {
    padding: 0 13px;
    border: 1px solid #dbe4ef;
    background: #f8fbff;
    color: #07182f;
}

.qarar-profile-wrap {
    position: relative;
}

.qarar-profile-button {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.qarar-profile-avatar {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #123f8c, #d6a43b);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.qarar-profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    width: 190px;
    padding: 8px;
    border: 1px solid #e4eaf3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7, 24, 47, .18);
}

.qarar-profile-menu.open {
    display: grid;
}

.qarar-profile-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #b42318;
}

.qarar-profile-menu button:hover {
    background: #fff4f4;
}

.qarar-hidden-by-custom {
    display: none !important;
}

.qarar-settings-section {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 0;
}

.qarar-settings-toggle {
    justify-content: space-between !important;
}

.qarar-settings-section.open > .qarar-settings-toggle,
.qarar-settings-section.qarar-dropdown-open-current > .qarar-settings-toggle {
    border-color: rgba(240, 189, 89, .46) !important;
    background: linear-gradient(90deg, rgba(240, 189, 89, .14), rgba(255, 255, 255, .055)) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 rgba(240, 189, 89, .9), 0 10px 22px rgba(3, 12, 28, .14);
}

.qarar-settings-toggle b {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    color: #d6a43b;
    font-size: 16px;
    line-height: 1;
}

.qarar-settings-menu {
    display: none;
    gap: 6px;
    padding: 0 12px 0 0;
    border-inline-start: 1px solid rgba(240, 189, 89, .24);
}

.qarar-settings-section.open .qarar-settings-menu {
    display: grid;
}

.qarar-settings-section .qarar-settings-child {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
    min-height: 42px;
    width: 100%;
    margin: 0;
    padding: 8px 12px !important;
    border-color: transparent !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .025) !important;
    color: rgba(255, 255, 255, .78) !important;
    box-shadow: none;
    direction: rtl;
}

.qarar-settings-section .qarar-settings-child + .qarar-settings-child {
    border-top: 0 !important;
}

.qarar-settings-section .qarar-settings-child:hover {
    background: rgba(255, 255, 255, .075) !important;
    color: #fff !important;
    transform: none;
}

.qarar-settings-section .qarar-settings-child.active {
    background: linear-gradient(90deg, rgba(240, 189, 89, .18), rgba(255, 255, 255, .07)) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--qarar-gold);
}

.qarar-settings-section .qarar-settings-child svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: #f0bd59;
    opacity: .94;
}

.qarar-settings-section .qarar-settings-child span {
    flex: 1 1 auto;
    color: inherit !important;
    text-align: right;
    font-size: 14px;
}

.qarar-settings-page {
    display: grid;
    gap: 16px;
    padding: 0 28px 34px;
    direction: rtl;
}

.qarar-settings-hero,
.qarar-settings-panel {
    border-radius: 8px;
    border: 1px solid #e4eaf3;
    background: #fff;
    box-shadow: 0 16px 38px rgba(7, 24, 47, .08);
}

.qarar-settings-hero {
    padding: 22px;
}

.qarar-settings-hero span,
.qarar-settings-panel span {
    color: #d6a43b;
    font-size: 12px;
    font-weight: 800;
}

.qarar-settings-hero h1 {
    margin: 8px 0;
    color: #07182f;
    font-size: 24px;
}

.qarar-settings-hero p,
.qarar-settings-panel small {
    color: #667085;
}

.qarar-settings-panel {
    display: grid;
    padding: 18px;
}

.qarar-settings-panel article {
    display: grid;
    gap: 6px;
}

.qarar-settings-panel strong {
    color: #07182f;
    font-size: 18px;
}

.qarar-settings-message {
    display: none;
    padding: 12px 14px;
    border: 1px solid #b7dfc5;
    border-radius: 8px;
    background: #f0fff4;
    color: #17663a;
    font-weight: 700;
}

.qarar-settings-message.show {
    display: block;
}

.qarar-settings-message.error {
    border-color: #ffd1d1;
    background: #fff5f5;
    color: #b42318;
}

.qarar-settings-content,
.qarar-settings-grid {
    display: grid;
    gap: 16px;
}

.qarar-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qarar-settings-form,
.qarar-settings-toolbar,
.qarar-settings-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.qarar-settings-form.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qarar-settings-form input,
.qarar-settings-form select,
.qarar-settings-form textarea,
.qarar-settings-toolbar input,
.qarar-settings-toolbar select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    color: #07182f;
    font: inherit;
}

.qarar-settings-form textarea {
    min-height: 96px;
    resize: vertical;
}

.qarar-settings-form button,
.qarar-settings-toolbar button,
.qarar-settings-actions button,
.qarar-settings-table button,
.qarar-settings-panel > button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #123f8c;
    color: #fff;
    font-weight: 800;
}

.qarar-settings-table button.danger {
    background: #b42318;
}

.qarar-settings-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qarar-settings-table {
    width: 100%;
    border-collapse: collapse;
}

.qarar-settings-table th,
.qarar-settings-table td {
    padding: 11px;
    border-bottom: 1px solid #edf2f7;
    text-align: right;
    vertical-align: top;
}

.qarar-settings-table small {
    display: block;
    color: #667085;
}

.qarar-general-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.qarar-general-summary article,
.qarar-general-card {
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7, 24, 47, .07);
}

.qarar-general-summary article {
    display: grid;
    gap: 5px;
    min-height: 104px;
    padding: 16px;
}

.qarar-general-summary span,
.qarar-general-card header span,
.qarar-general-fields label > span {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.qarar-general-summary strong {
    color: #07182f;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.35;
}

.qarar-general-summary small,
.qarar-general-fields small,
.qarar-general-switch small {
    color: #667085;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
}

.qarar-general-form {
    display: grid;
    gap: 14px;
}

.qarar-general-card {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.qarar-general-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f7;
}

.qarar-general-card h2 {
    margin: 4px 0 0;
    color: #07182f;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.45;
}

.qarar-general-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8fbff;
}

.qarar-general-preview > img {
    width: 92px;
    height: 46px;
    object-fit: contain;
}

.qarar-general-preview i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    background: #fff;
}

.qarar-general-preview i img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.qarar-general-fields {
    display: grid;
    gap: 12px;
}

.qarar-general-fields.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qarar-general-fields.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qarar-general-fields .wide {
    grid-column: 1 / -1;
}

.qarar-general-fields label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.qarar-general-fields input,
.qarar-general-fields textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    color: #07182f;
    font: inherit;
    font-weight: 800;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.qarar-general-fields textarea {
    min-height: 108px;
    resize: vertical;
    line-height: 1.8;
}

.qarar-general-fields input:focus,
.qarar-general-fields textarea:focus {
    border-color: #123f8c;
    box-shadow: 0 0 0 3px rgba(18, 63, 140, .12);
}

.qarar-general-fields input[type="file"] {
    padding: 8px;
    background: #f8fbff;
}

.qarar-general-fields input[type="file"]::file-selector-button {
    min-height: 30px;
    margin-inline-end: 10px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #123f8c;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
}

.qarar-general-switch {
    position: relative;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    padding: 14px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8fbff;
}

.qarar-general-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qarar-general-switch > span {
    grid-row: span 2;
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #cfd8e5;
    transition: background .16s ease;
}

.qarar-general-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(7, 24, 47, .2);
    transition: transform .16s ease;
}

.qarar-general-switch input:checked + span {
    background: #123f8c;
}

.qarar-general-switch input:checked + span::after {
    transform: translateX(-20px);
}

.qarar-general-switch strong {
    color: #07182f;
    font-size: 15px;
    font-weight: 950;
}

.qarar-general-submit {
    display: flex;
    justify-content: flex-start;
    padding: 4px 0 2px;
}

.qarar-general-submit button {
    min-width: 260px;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #123f8c;
    color: #fff;
    font: inherit;
    font-weight: 950;
    box-shadow: 0 14px 24px rgba(18, 63, 140, .22);
}

.qarar-general-submit button:disabled {
    opacity: .72;
    cursor: wait;
}

.qarar-location-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qarar-location-table td b {
    display: block;
    max-width: 280px;
    color: #07182f;
}

.qarar-location-editor {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 24, 47, .58);
    direction: rtl;
}

.qarar-location-editor[hidden] {
    display: none;
}

.qarar-location-editor-card {
    display: grid;
    gap: 16px;
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 18px;
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 24, 47, .25);
}

.qarar-location-editor-card header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.qarar-location-editor-card h2 {
    margin: 4px 0;
    color: #07182f;
    font-size: 22px;
}

.qarar-location-editor-card span,
.qarar-location-editor-card small {
    color: #667085;
    font-weight: 800;
}

.qarar-location-map {
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f4f7fb;
}

.qarar-location-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qarar-location-form label {
    display: grid;
    gap: 6px;
}

@media (max-width: 800px) {
    .qarar-location-kpis,
    .qarar-location-form {
        grid-template-columns: 1fr;
    }

    .qarar-location-map {
        min-height: 320px;
    }
}

.qarar-settings-status {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eaf7ef;
    color: #17663a;
    font-size: 12px;
    font-weight: 800;
}

.qarar-settings-status.inactive {
    background: #fff4e5;
    color: #9a5b00;
}

.qarar-settings-page:has(.qarar-users-overview) {
    gap: 18px;
    padding: 0 28px 38px;
}

.qarar-settings-page:has(.qarar-users-overview) .qarar-settings-hero {
    position: relative;
    overflow: hidden;
    padding: 26px 28px;
    border-color: #dfe8f3;
    background:
        linear-gradient(135deg, rgba(18, 63, 140, .08), rgba(214, 164, 59, .10)),
        #fff;
}

.qarar-settings-page:has(.qarar-users-overview) .qarar-settings-hero::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 6px;
    background: linear-gradient(180deg, #123f8c, #d6a43b);
}

.qarar-settings-page:has(.qarar-users-overview) .qarar-settings-hero span {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(214, 164, 59, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
}

.qarar-settings-page:has(.qarar-users-overview) .qarar-settings-hero h1 {
    margin: 10px 0 6px;
    font-size: 30px;
    line-height: 1.35;
}

.qarar-settings-page:has(.qarar-users-overview) .qarar-settings-hero p {
    max-width: 680px;
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
}

.qarar-users-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.qarar-users-overview article {
    display: grid;
    gap: 5px;
    min-height: 112px;
    padding: 16px;
    border: 1px solid #e2eaf5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7, 24, 47, .07);
}

.qarar-users-overview span,
.qarar-users-compose header span {
    color: #d6a43b;
    font-size: 12px;
    font-weight: 900;
}

.qarar-users-overview strong {
    color: #07182f;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 950;
}

.qarar-users-overview small,
.qarar-users-compose header small {
    color: #667085;
    font-weight: 800;
}

.qarar-users-compose,
.qarar-users-table-panel {
    gap: 16px;
    padding: 18px;
}

.qarar-users-compose header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f7;
}

.qarar-users-compose header strong {
    display: block;
    margin-top: 4px;
    font-size: 21px;
}

.qarar-users-compose .qarar-settings-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.qarar-users-compose .qarar-settings-form label,
.qarar-user-edit-row .qarar-settings-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.qarar-users-compose .qarar-settings-form label span,
.qarar-user-edit-row .qarar-settings-form label span {
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
}

.qarar-users-compose .qarar-settings-form button,
.qarar-user-edit-row .qarar-settings-form button {
    min-height: 44px;
    align-self: end;
    border-color: #123f8c;
    box-shadow: 0 10px 20px rgba(18, 63, 140, .16);
}

.qarar-users-table-panel {
    overflow: hidden;
}

.qarar-users-table-panel .qarar-settings-toolbar {
    grid-template-columns: minmax(220px, 1fr) 150px;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8fbff;
}

.qarar-users-table-panel .qarar-settings-toolbar input {
    min-height: 44px;
}

.qarar-users-table-panel .qarar-settings-toolbar button {
    min-height: 44px;
}

.qarar-users-table-panel .qarar-settings-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #edf1f7;
    border-radius: 8px;
}

.qarar-users-table-panel .qarar-settings-table th {
    padding: 13px 14px;
    background: #f3f7fc;
    color: #52627a;
    font-size: 13px;
    font-weight: 950;
}

.qarar-users-table-panel .qarar-settings-table td {
    padding: 14px;
    color: #344054;
    font-size: 14px;
}

.qarar-user-cell {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.qarar-user-cell > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #123f8c, #d6a43b);
    color: #fff;
    font-size: 17px;
    font-weight: 950;
}

.qarar-user-cell strong {
    display: block;
    color: #07182f;
    font-size: 16px;
    line-height: 1.45;
}

.qarar-user-cell small,
.qarar-date-text {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.qarar-user-email {
    color: #344054;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.qarar-role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #123f8c;
    font-size: 12px;
    font-weight: 900;
}

.qarar-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.qarar-user-actions button,
.qarar-users-table-panel .qarar-settings-table button {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.qarar-user-actions button:not(.danger) {
    background: #123f8c;
}

.qarar-user-edit-row td {
    background: #f8fbff;
}

.qarar-user-edit-row .qarar-settings-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
    border: 1px solid #e2eaf5;
    border-radius: 8px;
    background: #fff;
}

.qarar-settings-panel dl {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr;
    gap: 8px 14px;
    margin: 12px 0 0;
}

.qarar-settings-panel dt {
    color: #667085;
    font-weight: 700;
}

.qarar-settings-panel dd {
    margin: 0;
    color: #07182f;
    font-weight: 800;
}

.qarar-settings-system {
    gap: 18px;
    padding: 0 28px 36px;
}

.qarar-settings-system .qarar-settings-hero {
    position: relative;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid rgba(202, 213, 226, .74);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(247, 250, 252, .92)),
        radial-gradient(circle at 12% 18%, rgba(214, 164, 59, .16), transparent 34%);
    box-shadow: 0 22px 52px rgba(7, 24, 47, .1);
}

.qarar-settings-system .qarar-settings-hero::after {
    content: "";
    position: absolute;
    inset-inline-start: 22px;
    top: 22px;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(214, 164, 59, .26);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(214, 164, 59, .2), rgba(18, 63, 140, .06));
}

.qarar-settings-system .qarar-settings-hero h1 {
    margin: 8px 0 6px;
    font-size: 30px;
    line-height: 1.25;
}

.qarar-settings-system .qarar-settings-hero p {
    max-width: 720px;
    margin: 0;
    color: #52627a;
    font-size: 16px;
    font-weight: 700;
}

.qarar-system-command,
.qarar-system-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 16px;
}

.qarar-system-status-card,
.qarar-system-health-card,
.qarar-system-danger-panel,
.qarar-settings-system .qarar-settings-panel {
    border: 1px solid rgba(219, 228, 239, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 42px rgba(7, 24, 47, .08);
}

.qarar-system-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 190px;
    padding: 24px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7, 24, 47, .95), rgba(18, 63, 140, .92)),
        linear-gradient(90deg, rgba(214, 164, 59, .22), transparent);
}

.qarar-system-status-card.is-maintenance {
    background:
        linear-gradient(135deg, rgba(101, 42, 23, .96), rgba(180, 35, 24, .88)),
        linear-gradient(90deg, rgba(255, 255, 255, .14), transparent);
}

.qarar-system-status-card span,
.qarar-system-health-card span,
.qarar-system-danger-panel span,
.qarar-system-audit-card span,
.qarar-system-cache-card span,
.qarar-system-info-card span {
    color: #d6a43b;
    font-size: 13px;
    font-weight: 900;
}

.qarar-system-status-card strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 28px;
    line-height: 1.3;
}

.qarar-system-status-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
}

.qarar-system-status-card button {
    min-width: 220px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    background: #fff;
    color: #123f8c;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

.qarar-system-health-card {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.qarar-system-health-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.qarar-system-health-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6f9fd;
}

.qarar-system-health-card dt {
    color: #667085;
    font-weight: 800;
}

.qarar-system-health-card dd {
    margin: 0;
    color: #07182f;
    font-weight: 900;
    text-align: left;
}

.qarar-system-info-card,
.qarar-system-cache-card,
.qarar-system-audit-card {
    gap: 16px;
    padding: 22px;
}

.qarar-system-info-card header,
.qarar-system-cache-card header,
.qarar-system-audit-card header {
    display: grid;
    gap: 6px;
}

.qarar-system-info-card header strong,
.qarar-system-cache-card header strong,
.qarar-system-audit-card header strong,
.qarar-system-danger-panel strong {
    color: #07182f;
    font-size: 20px;
    line-height: 1.3;
}

.qarar-system-info-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.qarar-system-info-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    background: #fbfdff;
}

.qarar-system-info-item dt {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.qarar-system-info-item dd {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    color: #07182f;
    font-size: 16px;
    font-weight: 900;
}

.qarar-system-cache-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qarar-system-cache-actions button {
    display: grid;
    gap: 5px;
    min-height: 78px;
    padding: 13px 14px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f7fbff);
    color: #07182f;
    text-align: right;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.qarar-system-cache-actions button:hover {
    border-color: rgba(18, 63, 140, .34);
    box-shadow: 0 12px 24px rgba(18, 63, 140, .1);
    transform: translateY(-1px);
}

.qarar-system-cache-actions button strong {
    color: #123f8c;
    font-size: 16px;
}

.qarar-system-cache-actions button small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.qarar-system-danger-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-color: rgba(180, 35, 24, .2);
    background: linear-gradient(135deg, #fff, #fff8f7);
}

.qarar-system-danger-panel p {
    max-width: 920px;
    margin: 8px 0 0;
    color: #667085;
    font-weight: 700;
}

.qarar-system-danger-panel button {
    min-width: 220px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(180, 35, 24, .22);
    border-radius: 10px;
    background: #b42318;
    color: #fff;
    font-weight: 900;
}

.qarar-system-audit-card {
    overflow: hidden;
}

.qarar-system-audit-card .qarar-settings-table {
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}

.qarar-system-audit-card .qarar-settings-table th {
    background: #f6f9fd;
    color: #52627a;
    font-size: 13px;
    font-weight: 900;
}

.qarar-system-audit-card .qarar-settings-table td {
    color: #334155;
    font-weight: 700;
}

.qarar-system-result {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #123f8c;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .qarar-system-command,
    .qarar-system-layout {
        grid-template-columns: 1fr;
    }

    .qarar-system-status-card,
    .qarar-system-danger-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .qarar-system-status-card button,
    .qarar-system-danger-panel button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .qarar-settings-system {
        padding: 0 14px 24px;
    }

    .qarar-settings-system .qarar-settings-hero,
    .qarar-system-status-card,
    .qarar-system-health-card,
    .qarar-system-info-card,
    .qarar-system-cache-card,
    .qarar-system-danger-panel,
    .qarar-system-audit-card {
        border-radius: 12px;
        padding: 16px;
    }

    .qarar-settings-system .qarar-settings-hero h1,
    .qarar-system-status-card strong {
        font-size: 23px;
    }

    .qarar-system-info-card dl,
    .qarar-system-cache-actions {
        grid-template-columns: 1fr;
    }
}

.sidebar > div:last-child:not(.side-title) {
    display: none !important;
}

.qarar-wide-center-filter {
    grid-template-columns: 1fr !important;
}

.qarar-readonly-input {
    background: #f3f6fb !important;
    color: #52627a !important;
    cursor: default;
}

.qarar-page-hidden-for-custom {
    display: none !important;
}

.qarar-vote-entry-page,
.qarar-report-entry-page,
.qarar-saved-reports-page {
    display: grid;
    gap: 16px;
    padding: 0 28px 34px;
    direction: rtl;
}

.qarar-reports-refresh {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #1f5eff;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.qarar-vote-head,
.qarar-vote-controls,
.qarar-vote-card,
.qarar-report-form,
.qarar-vote-specials {
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 24, 47, .12);
}

.qarar-vote-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
}

.qarar-vote-head span {
    color: #d6a43b;
    font-size: 13px;
    font-weight: 800;
}

.qarar-vote-head h2 {
    margin: 5px 0 8px;
    color: #07182f;
    font-size: 26px;
    font-weight: 800;
}

.qarar-vote-head p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
}

.qarar-vote-head > strong {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f7ff;
    color: #1f5eff;
}

.qarar-vote-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, .55fr));
    gap: 12px;
    padding: 16px;
}

.qarar-vote-controls label,
.qarar-vote-controls article,
.qarar-vote-specials label {
    display: grid;
    gap: 8px;
    min-height: 78px;
    padding: 14px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #f9fbff;
}

.qarar-vote-controls span,
.qarar-vote-specials span {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.qarar-vote-controls strong {
    color: #07182f;
    font-size: 24px;
    font-weight: 800;
}

.qarar-vote-controls select,
.qarar-vote-row input,
.qarar-vote-specials input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
    color: #07182f;
    font: inherit;
    font-weight: 700;
}

.qarar-vote-controls select {
    padding: 0 12px;
}

.qarar-vote-row input,
.qarar-vote-specials input {
    padding: 0 12px;
    text-align: center;
}

.qarar-vote-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.qarar-vote-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.qarar-vote-card-title h3 {
    margin: 0 0 6px;
    color: #07182f;
    font-size: 22px;
}

.qarar-vote-card-title p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.qarar-vote-save {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #1f5eff;
    color: #fff;
    font-weight: 800;
}

.qarar-vote-list {
    display: grid;
    gap: 10px;
}

.qarar-vote-row {
    display: grid;
    grid-template-columns: 18px minmax(160px, 1fr) 70px minmax(120px, 180px);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    background: #fff;
}

.qarar-vote-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--list-color);
}

.qarar-vote-row strong {
    color: #07182f;
}

.qarar-vote-row small {
    color: #667085;
    font-weight: 800;
}

.qarar-vote-specials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.qarar-report-form,
.qarar-basic-edit-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 24, 47, .12);
}

.qarar-report-form label,
.qarar-basic-edit-panel label {
    display: grid;
    gap: 8px;
}

.qarar-report-form label:last-of-type {
    grid-column: 1 / -1;
}

.qarar-report-form span,
.qarar-basic-edit-panel span {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.qarar-report-form input,
.qarar-report-form textarea,
.qarar-basic-edit-panel input,
.qarar-basic-table input,
.qarar-basic-table select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
    color: #07182f;
    padding: 0 12px;
    font: inherit;
    font-weight: 700;
}

.qarar-report-form textarea {
    min-height: 104px;
    padding: 12px;
    resize: vertical;
}

.qarar-report-save,
.qarar-basic-save,
.qarar-basic-reset {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: #1f5eff;
    color: #fff;
    font-weight: 900;
}

.qarar-report-times {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(7, 24, 47, .08);
}

.qarar-report-times button {
    min-height: 42px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f7f9fc;
    color: #52627a;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.qarar-report-times button.active {
    border-color: #1f5eff;
    background: #1f5eff;
    color: #fff;
}

.qarar-report-layout {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
    gap: 16px;
    align-items: start;
}

.qarar-report-layout .qarar-report-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.qarar-report-form-title,
.qarar-report-notes-label,
.qarar-report-layout .qarar-report-save {
    grid-column: 1 / -1;
}

.qarar-report-form-title span,
.qarar-report-details-title > span {
    color: #d6a43b;
    font-size: 12px;
    font-weight: 900;
}

.qarar-report-form-title h3,
.qarar-report-details-title h3 {
    margin: 4px 0 0;
    color: #07182f;
    font-size: 20px;
}

.qarar-report-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
    color: #07182f;
    padding: 0 12px;
    font: inherit;
    font-weight: 700;
}

.qarar-report-readonly {
    display: grid;
    gap: 5px;
    align-content: center;
    min-height: 82px;
    padding: 12px 14px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f3f7ff;
}

.qarar-report-readonly strong {
    color: #1f5eff;
    font-size: 25px;
}

.qarar-report-readonly small {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.qarar-report-details {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 24, 47, .12);
}

.qarar-report-details-title {
    padding-bottom: 13px;
    border-bottom: 1px solid #edf1f7;
}

.qarar-report-details-title p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.qarar-report-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.qarar-report-stats article {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8faff;
}

.qarar-report-stats span {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.qarar-report-stats strong {
    color: #07182f;
    font-size: 20px;
}

.qarar-report-votes {
    display: grid;
    gap: 0;
}

.qarar-report-votes h4 {
    margin: 0 0 8px;
    color: #07182f;
    font-size: 15px;
}

.qarar-report-votes p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 4px;
    border-bottom: 1px solid #edf1f7;
    color: #344054;
    font-size: 13px;
}

.qarar-report-votes p.special {
    color: #8a5f05;
}

.qarar-basic-reset {
    border: 1px solid #dbe4ef;
    background: #f3f6fb;
    color: #07182f;
}

.qarar-basic-data-page {
    display: grid;
    gap: 16px;
    padding: 0 0 28px;
}

.qarar-basic-head,
.qarar-basic-kpis,
.qarar-basic-table,
.qarar-basic-insights article {
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 24, 47, .12);
}

.qarar-basic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
}

.qarar-basic-head span {
    color: #d6a43b;
    font-size: 13px;
    font-weight: 800;
}

.qarar-basic-head h2 {
    margin: 5px 0 8px;
    color: #07182f;
    font-size: 27px;
    font-weight: 800;
}

.qarar-basic-head p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.qarar-basic-head > strong {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f7ff;
    color: #1f5eff;
}

.qarar-basic-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.qarar-basic-kpis article {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 16px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #f9fbff;
}

.qarar-basic-kpis span,
.qarar-basic-kpis small {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.qarar-basic-kpis strong {
    color: #c4973f;
    font-size: 34px;
    font-weight: 900;
}

.qarar-basic-grid {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(520px, 1.15fr);
    gap: 14px;
    align-items: start;
}

.qarar-basic-table {
    overflow: hidden;
}

.qarar-basic-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f7;
    background: #07182f;
    color: #fff;
}

.qarar-basic-section-title h3 {
    margin: 0;
    font-size: 19px;
}

.qarar-basic-section-title span {
    color: #f3c766;
    font-weight: 800;
}

.qarar-basic-table table {
    width: 100%;
    border-collapse: collapse;
}

.qarar-basic-table th,
.qarar-basic-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf1f7;
    color: #10233f;
    font-size: 13px;
    text-align: right;
}

.qarar-basic-table th {
    background: #f3f6fb;
    color: #52627a;
    font-weight: 800;
}

.qarar-basic-table td:first-child {
    color: #c4973f;
    font-weight: 900;
}

.qarar-basic-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.qarar-basic-insights article {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.qarar-basic-insights h3 {
    margin: 0 0 4px;
    color: #07182f;
    font-size: 18px;
}

.qarar-basic-insights p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid #edf1f7;
    color: #52627a;
}

.qarar-basic-insights p:last-child {
    border-bottom: 0;
}

.qarar-basic-insights strong {
    color: #07182f;
}

.qarar-basic-insights span {
    color: #c4973f;
    font-weight: 900;
}

.qarar-executive-summary-page {
    display: grid;
    gap: 16px;
    padding: 0 0 28px;
}

.qarar-executive-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    min-height: 178px;
    padding: 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #07182f, #123f8c);
    box-shadow: 0 18px 44px rgba(7, 24, 47, .22);
    color: #fff;
}

.qarar-executive-hero div {
    display: grid;
    align-content: center;
    gap: 8px;
}

.qarar-executive-hero span {
    color: #f3c766;
    font-size: 14px;
    font-weight: 800;
}

.qarar-executive-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 42px;
    font-weight: 900;
}

.qarar-executive-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.9;
}

.qarar-executive-hero article {
    display: grid;
    place-items: center;
    min-width: 156px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
}

.qarar-executive-hero small {
    color: rgba(255, 255, 255, .72);
    font-weight: 700;
}

.qarar-executive-hero strong {
    color: #f3c766;
    font-size: 28px;
    font-weight: 900;
}

.qarar-executive-primary,
.qarar-live-strip,
.qarar-executive-grid {
    display: grid;
    gap: 14px;
}

.qarar-executive-primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qarar-live-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qarar-executive-primary article,
.qarar-live-strip article,
.qarar-executive-panel,
.qarar-minister-table {
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 24, 47, .12);
}

.qarar-executive-primary article,
.qarar-live-strip article {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
}

.qarar-executive-primary span,
.qarar-live-strip span {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.qarar-executive-primary strong,
.qarar-live-strip strong {
    color: #07182f;
    font-size: 34px;
    font-weight: 900;
}

.qarar-executive-primary small,
.qarar-live-strip small {
    color: #667085;
    font-size: 13px;
}

.qarar-live-strip div {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f7;
}

.qarar-live-strip i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f5eff, #d6a43b);
}

.qarar-executive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qarar-executive-panel {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.qarar-executive-panel h2 {
    margin: 0 0 6px;
    color: #07182f;
    font-size: 20px;
}

.qarar-executive-panel p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
    color: #52627a;
}

.qarar-executive-panel p:last-child {
    border-bottom: 0;
}

.qarar-executive-panel strong {
    color: #07182f;
}

.qarar-executive-panel span {
    color: #c4973f;
    font-weight: 900;
    text-align: left;
}

.qarar-executive-dashboard {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) repeat(2, minmax(230px, .8fr));
    gap: 14px;
}

.qarar-executive-map,
.qarar-executive-chart {
    padding: 18px;
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 24, 47, .12);
}

.qarar-map-canvas {
    position: relative;
    min-height: 330px;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(31, 94, 255, .08), transparent 36%),
        radial-gradient(circle at 70% 30%, rgba(214, 164, 59, .22), transparent 28%),
        #f9fbff;
}

.qrar-executive-live-map-shell {
    min-height: 330px;
    padding: 0;
    background: #eef5ff;
}

.qrar-executive-live-map-shell::before {
    display: none !important;
}

.qrar-executive-live-map-shell .qarar-map-point,
.qrar-executive-live-map-shell .qarar-libya-map-shape {
    display: none !important;
}

.qrar-executive-live-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.qrar-executive-hit-layer {
    z-index: 1100;
}

.qrar-executive-map-marker {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    font-size: 0;
}

.qrar-executive-map-marker span {
    display: none;
}

.qarar-map-canvas::before {
    content: "";
    position: absolute;
    inset: 34px 54px 30px 46px;
    border: 2px solid rgba(7, 24, 47, .15);
    border-radius: 48% 52% 50% 50% / 34% 38% 62% 66%;
    background: rgba(255, 255, 255, .62);
}

.qarar-map-point {
    position: absolute;
    left: calc(100% - var(--x));
    top: var(--y);
    width: var(--size);
    height: var(--size);
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d6a43b;
    box-shadow: 0 8px 18px rgba(7, 24, 47, .22);
}

.qarar-map-point.active,
.qarar-map-point:hover {
    background: #1f5eff;
}

.qarar-map-point span {
    position: absolute;
    top: calc(100% + 5px);
    right: 50%;
    transform: translateX(50%);
    white-space: nowrap;
    color: #07182f;
    font-size: 11px;
    font-weight: 900;
    pointer-events: none;
}

.qarar-map-detail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.qarar-map-detail strong,
.qarar-map-detail span {
    padding: 10px;
    border-radius: 12px;
    background: #f3f6fb;
    color: #52627a;
    font-size: 13px;
    font-weight: 800;
}

.qarar-map-detail strong {
    color: #07182f;
}

.qarar-executive-chart p {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin: 14px 0;
}

.qarar-executive-chart strong,
.qarar-executive-chart span {
    color: #07182f;
    font-size: 13px;
    font-weight: 900;
}

.qarar-executive-chart i {
    grid-column: 1 / -1;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f7;
}

.qarar-executive-chart i::before {
    content: "";
    display: block;
    width: var(--bar);
    height: 100%;
    border-radius: inherit;
    background: var(--bar-color);
}

.qarar-minister-table {
    overflow: hidden;
}

.qarar-minister-table table {
    width: 100%;
    border-collapse: collapse;
}

.qarar-minister-table th,
.qarar-minister-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf1f7;
    color: #10233f;
    font-size: 13px;
    text-align: right;
}

.qarar-minister-table th {
    background: #f3f6fb;
    color: #52627a;
    font-weight: 800;
}

.qarar-executive-summary-page {
    gap: 12px;
}

.qarar-executive-hero {
    min-height: 118px;
    padding: 18px 22px;
}

.qarar-executive-hero h1 {
    font-size: 30px;
}

.qarar-executive-hero p {
    max-width: 760px;
    font-size: 13px;
    line-height: 1.55;
}

.qarar-executive-primary article,
.qarar-live-strip article {
    min-height: 96px;
    padding: 14px;
}

.qarar-executive-primary strong,
.qarar-live-strip strong {
    font-size: 26px;
}

.qarar-executive-panel,
.qarar-executive-chart,
.qarar-minister-table {
    max-height: 260px;
    overflow: auto;
    scrollbar-width: thin;
}

.qarar-executive-panel {
    align-content: start;
}

.qarar-executive-map {
    min-height: 0;
}

.qarar-executive-chart {
    align-content: start;
}

.qarar-minister-table {
    max-height: 320px;
}

.qarar-minister-table table {
    min-width: 720px;
}

.qarar-minister-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.qarar-libya-map-canvas {
    min-height: 300px;
    background:
        linear-gradient(135deg, rgba(31, 94, 255, .08), transparent 38%),
        #eef5ff;
}

.qarar-libya-map-canvas::before {
    display: none;
}

.qarar-libya-map-shape {
    position: absolute;
    inset: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    filter: drop-shadow(0 18px 28px rgba(7, 24, 47, .16));
    pointer-events: none;
}

.qarar-libya-map-shape polygon {
    fill: #fff;
    stroke: rgba(7, 24, 47, .18);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.qarar-libya-map-shape .qarar-libya-coast {
    fill: none;
    stroke: rgba(31, 94, 255, .45);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.qarar-libya-map-canvas .qarar-map-point {
    z-index: 3;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.qarar-libya-map-canvas .qarar-map-point::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 999px;
}

.qarar-libya-map-canvas .qarar-map-point span {
    display: none;
}

.qarar-libya-map-canvas .qarar-map-point:hover span,
.qarar-libya-map-canvas .qarar-map-point.active span {
    display: block;
}

.qarar-map-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 96px;
    overflow: auto;
}

.qarar-live-display-page {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    padding: 0 24px 34px;
    direction: rtl;
}

.qarar-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-radius: 18px;
    background: #07182f;
    color: #fff;
    box-shadow: 0 18px 40px rgba(7, 24, 47, .2);
}

.qarar-live-header span {
    color: #f3c766;
    font-weight: 900;
}

.qarar-live-header span i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 7px;
    border-radius: 50%;
    background: #35c98a;
    box-shadow: 0 0 0 6px rgba(53, 201, 138, .15);
}

.qarar-live-header h1 {
    margin: 8px 0;
    font-size: 34px;
}

.qarar-live-header p,
.qarar-live-header small {
    margin: 0;
    color: rgba(255, 255, 255, .72);
}

.qarar-live-now {
    display: grid;
    min-width: 210px;
    gap: 5px;
    text-align: left;
}

.qarar-live-now strong {
    color: #f3c766;
    font-size: 34px;
    font-variant-numeric: tabular-nums;
}

.qarar-live-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.qarar-live-kpis article,
.qarar-live-progress,
.qarar-live-chart {
    border: 1px solid #e1e8f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 24, 47, .1);
}

.qarar-live-kpis article {
    display: grid;
    min-height: 132px;
    align-content: center;
    gap: 8px;
    padding: 20px;
}

.qarar-live-kpis article.primary {
    border-top: 4px solid #1f5eff;
}

.qarar-live-kpis article.countdown {
    border-top: 4px solid #d6a43b;
}

.qarar-live-kpis span,
.qarar-live-kpis small {
    color: #667085;
    font-weight: 800;
}

.qarar-live-kpis strong {
    color: #07182f;
    font-size: 30px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.qarar-live-progress {
    display: grid;
    gap: 12px;
    padding: 18px 22px;
}

.qarar-live-progress div {
    display: flex;
    justify-content: space-between;
    color: #07182f;
    font-weight: 900;
}

.qarar-live-progress i,
.qarar-municipality-bars i {
    display: block;
    overflow: hidden;
    height: 11px;
    border-radius: 999px;
    background: #edf1f7;
}

.qarar-live-progress b,
.qarar-municipality-bars b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1f5eff;
}

.qarar-live-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.qarar-live-chart {
    min-width: 0;
    padding: 22px;
}

.qarar-live-chart > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.qarar-live-chart header span {
    color: #c4973f;
    font-size: 13px;
    font-weight: 900;
}

.qarar-live-chart header h2 {
    margin: 5px 0 0;
    color: #07182f;
    font-size: 20px;
}

.qarar-live-chart header > strong {
    color: #1f5eff;
    white-space: nowrap;
}

.qarar-hour-bars {
    display: grid;
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    align-items: end;
    gap: 14px;
    height: 280px;
    margin-top: 20px;
}

.qarar-hour-bars div {
    display: grid;
    grid-template-rows: auto 210px auto;
    gap: 8px;
    text-align: center;
}

.qarar-hour-bars span,
.qarar-hour-bars small {
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
}

.qarar-hour-bars i {
    display: flex;
    align-items: end;
    overflow: hidden;
    border-radius: 8px 8px 3px 3px;
    background: #edf1f7;
}

.qarar-hour-bars b {
    display: block;
    width: 100%;
    min-height: 4px;
    border-radius: inherit;
    background: #d6a43b;
}

.qarar-municipality-bars {
    display: grid;
    gap: 12px;
    max-height: 300px;
    margin-top: 18px;
    padding-left: 5px;
    overflow: auto;
}

.qarar-municipality-bars p {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    margin: 0;
}

.qarar-municipality-bars strong,
.qarar-municipality-bars span {
    color: #10233f;
    font-size: 12px;
}

.qarar-municipality-bars span {
    color: #667085;
}

.qarar-municipality-bars i {
    grid-column: 1 / -1;
    height: 8px;
}

.qarar-municipality-bars b {
    background: #27a376;
}

@media (max-width: 980px) {
    .qarar-report-times {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qarar-report-layout,
    .qarar-report-layout .qarar-report-form,
    .qarar-report-stats {
        grid-template-columns: 1fr;
    }

    .qarar-vote-controls,
    .qarar-vote-specials,
    .qarar-report-form,
    .qarar-basic-edit-panel,
    .qarar-basic-kpis,
    .qarar-basic-grid,
    .qarar-basic-insights,
    .qarar-executive-primary,
    .qarar-live-strip,
    .qarar-executive-grid,
    .qarar-executive-dashboard,
    .qarar-map-detail {
        grid-template-columns: 1fr;
    }

    .qarar-executive-hero {
        flex-direction: column;
    }

    .qarar-live-header {
        align-items: start;
        flex-direction: column;
    }

    .qarar-live-now {
        text-align: right;
    }

    .qarar-executive-hero h1 {
        font-size: 32px;
    }

    .qarar-vote-row {
        grid-template-columns: 18px 1fr;
    }

    .qarar-vote-row input {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {
    .qarar-live-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .qarar-live-display-page {
        padding-inline: 14px;
    }

    .qarar-live-kpis,
    .qarar-live-charts {
        grid-template-columns: 1fr;
    }

    .qarar-live-header {
        padding: 22px 20px;
    }

    .qarar-live-header h1 {
        font-size: 28px;
    }
}

.operations-dashboard .executive-centers-table {
    display: grid !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 0 !important;
}

.operations-dashboard .executive-centers-table table {
    width: 100% !important;
}

.operations-dashboard .executive-centers-table tr {
    height: auto !important;
}

@media (max-width: 760px) {
    .app-shell {
        grid-template-columns: minmax(0, 1fr) 176px !important;
    }

    .sidebar {
        padding-inline: 8px !important;
    }

    .qarar-user-topbar {
        min-height: 62px;
        padding-inline: 12px;
    }
}

.qarar-executive-summary-page,
.qarar-participation-page {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    padding: 0 24px 34px !important;
    direction: rtl;
}

.qarar-executive-hero,
.qarar-participation-hero {
    align-items: center;
    min-height: 190px;
    padding: 30px 32px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(31, 94, 255, .26), transparent 34%),
        linear-gradient(135deg, #07182f, #123f8c);
    box-shadow: 0 18px 40px rgba(7, 24, 47, .2);
}

.qarar-executive-hero h1,
.qarar-participation-hero h1 {
    font-size: 38px;
}

.qarar-executive-primary article:first-child,
.qarar-live-strip article:first-child {
    border-top: 4px solid #1f5eff;
}

.qarar-executive-primary article,
.qarar-live-strip article,
.qarar-executive-panel,
.qarar-executive-map,
.qarar-executive-chart,
.qarar-minister-table {
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(7, 24, 47, .1);
}

.qarar-participation-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
}

.qarar-participation-hero div {
    display: grid;
    gap: 8px;
}

.qarar-participation-hero span {
    color: #f3c766;
    font-weight: 900;
}

.qarar-participation-hero p,
.qarar-participation-hero small {
    margin: 0;
    color: rgba(255, 255, 255, .72);
}

.qarar-participation-hero article {
    display: grid;
    min-width: 180px;
    gap: 5px;
    text-align: left;
}

.qarar-participation-hero strong {
    color: #f3c766;
    font-size: 32px;
    font-weight: 900;
}

.qarar-participation-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.qarar-participation-kpis article {
    display: grid;
    min-height: 132px;
    align-content: center;
    gap: 8px;
    padding: 20px;
    border: 1px solid #e1e8f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 24, 47, .1);
}

.qarar-participation-kpis article.primary {
    border-top: 4px solid #1f5eff;
}

.qarar-participation-kpis span,
.qarar-participation-kpis small {
    color: #667085;
    font-weight: 800;
}

.qarar-participation-kpis strong {
    color: #07182f;
    font-size: 30px;
    font-weight: 900;
}

.qarar-participation-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.participation-table {
    border-radius: 16px;
}

@media (max-width: 1180px) {
    .qarar-participation-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qarar-executive-primary,
    .qarar-live-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .qarar-participation-layout,
    .qarar-executive-dashboard,
    .qarar-executive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .qarar-executive-summary-page,
    .qarar-participation-page {
        padding-inline: 14px !important;
    }

    .qarar-executive-hero,
    .qarar-participation-hero {
        align-items: start;
        flex-direction: column;
        padding: 22px 20px;
    }

    .qarar-executive-hero h1,
    .qarar-participation-hero h1 {
        font-size: 28px;
    }

    .qarar-participation-hero article {
        text-align: right;
    }

    .qarar-participation-kpis,
    .qarar-executive-primary,
    .qarar-live-strip {
        grid-template-columns: 1fr;
    }
}

.qarar-basic-data-page {
    gap: 18px;
    width: 100%;
    min-width: 0;
    padding: 0 24px 34px !important;
    background:
        linear-gradient(180deg, rgba(31, 94, 255, .045), transparent 270px);
}

.qarar-basic-head {
    position: relative;
    overflow: hidden;
    align-items: center;
    min-height: 188px;
    padding: 30px 32px;
    border: 0;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(31, 94, 255, .28), transparent 35%),
        linear-gradient(135deg, #07182f, #123f8c);
    box-shadow: 0 18px 40px rgba(7, 24, 47, .2);
    color: #fff;
}

.qarar-basic-head::after {
    content: "";
    position: absolute;
    inset-block: 22px;
    left: 28px;
    width: 190px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    pointer-events: none;
}

.qarar-basic-head > div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
}

.qarar-basic-head span {
    color: #f3c766;
    font-size: 14px;
    font-weight: 900;
}

.qarar-basic-head h2 {
    margin: 0;
    color: #fff;
    font-size: 38px;
    font-weight: 900;
}

.qarar-basic-head p {
    max-width: 760px;
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
    line-height: 1.9;
}

.qarar-basic-head > strong {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 160px;
    min-height: 94px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    color: #f3c766;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.qarar-basic-kpis {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.qarar-basic-kpis article {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    align-content: center;
    gap: 8px;
    padding: 20px;
    border: 1px solid #e1e8f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 24, 47, .1);
}

.qarar-basic-kpis article::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: #d6a43b;
}

.qarar-basic-kpis article:first-child::before {
    background: #1f5eff;
}

.qarar-basic-kpis span,
.qarar-basic-kpis small {
    color: #667085;
    font-weight: 800;
}

.qarar-basic-kpis strong {
    color: #07182f;
    font-size: 30px;
    line-height: 1.05;
}

.qarar-basic-edit-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(7, 24, 47, .1);
}

.qarar-basic-edit-panel label {
    min-height: 90px;
    padding: 14px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #f8faff;
}

.qarar-basic-edit-panel input,
.qarar-basic-table input,
.qarar-basic-table select {
    border-color: #d7e0ec;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(7, 24, 47, .03);
}

.qarar-basic-edit-panel input:focus,
.qarar-basic-table input:focus,
.qarar-basic-table select:focus {
    border-color: #1f5eff;
    outline: 3px solid rgba(31, 94, 255, .12);
}

.qarar-basic-save,
.qarar-basic-reset {
    min-height: 48px;
    border-radius: 12px;
    cursor: pointer;
}

.qarar-basic-save {
    background: #1f5eff;
    box-shadow: 0 12px 24px rgba(31, 94, 255, .18);
}

.qarar-basic-reset {
    border: 1px solid #d7e0ec;
    background: #fff;
}

.qarar-basic-grid {
    grid-template-columns: minmax(340px, .8fr) minmax(560px, 1.2fr);
    gap: 16px;
}

.qarar-basic-table {
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(7, 24, 47, .1);
}

.qarar-basic-section-title {
    padding: 17px 20px;
    background:
        linear-gradient(135deg, rgba(31, 94, 255, .16), transparent 45%),
        #07182f;
}

.qarar-basic-section-title h3 {
    font-size: 18px;
    font-weight: 900;
}

.qarar-basic-section-title span {
    color: #f3c766;
    font-size: 12px;
    font-weight: 900;
}

.qarar-basic-table table {
    min-width: 100%;
}

.qarar-basic-table th,
.qarar-basic-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #edf1f7;
    font-size: 12px;
    vertical-align: middle;
}

.qarar-basic-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f6f8fc;
    color: #52627a;
}

.qarar-basic-table tbody tr:nth-child(even) {
    background: #fbfcff;
}

.qarar-basic-table tbody tr:hover {
    background: #f3f7ff;
}

.qarar-basic-table td:first-child {
    color: #1f5eff;
}

.qarar-basic-table input,
.qarar-basic-table select {
    min-height: 38px;
    border-radius: 9px;
    font-size: 12px;
}

.qarar-basic-insights {
    gap: 16px;
}

.qarar-basic-insights article {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(7, 24, 47, .1);
}

.qarar-basic-insights article::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: #1f5eff;
}

.qarar-basic-insights article:nth-child(2)::before {
    background: #27a376;
}

.qarar-basic-insights article:nth-child(3)::before {
    background: #d6a43b;
}

.qarar-basic-insights h3 {
    font-size: 18px;
    font-weight: 900;
}

.qarar-basic-insights p {
    align-items: center;
    min-height: 38px;
}

.qarar-basic-insights span {
    color: #1f5eff;
}

@media (max-width: 1180px) {
    .qarar-basic-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qarar-basic-edit-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qarar-basic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .qarar-basic-data-page {
        padding-inline: 14px !important;
    }

    .qarar-basic-head {
        align-items: start;
        flex-direction: column;
        padding: 22px 20px;
    }

    .qarar-basic-head::after {
        display: none;
    }

    .qarar-basic-head h2 {
        font-size: 28px;
    }

    .qarar-basic-head > strong {
        min-width: 100%;
        min-height: 76px;
    }

    .qarar-basic-kpis,
    .qarar-basic-edit-panel,
    .qarar-basic-insights {
        grid-template-columns: 1fr;
    }
}


.qarar-basic-kpis.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qarar-basic-kpis.compact article {
    min-height: 108px;
}

.qarar-basic-command {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr);
    gap: 14px;
    align-items: stretch;
}

.qarar-basic-tabs,
.qarar-basic-actions {
    border: 1px solid #e1e8f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 24, 47, .1);
}

.qarar-basic-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
}

.qarar-basic-tabs button {
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f8faff;
    color: #52627a;
    font: inherit;
    text-align: right;
    cursor: pointer;
}

.qarar-basic-tabs button.active {
    border-color: rgba(31, 94, 255, .26);
    background: #1f5eff;
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 94, 255, .18);
}

.qarar-basic-tabs strong {
    font-size: 15px;
    font-weight: 900;
}

.qarar-basic-tabs span {
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    opacity: .78;
}

.qarar-basic-actions {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
}

.qarar-basic-actions label {
    display: grid;
    gap: 7px;
}

.qarar-basic-actions span,
.qarar-basic-edit-panel.compact span {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.qarar-basic-actions input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d7e0ec;
    border-radius: 11px;
    padding: 0 12px;
    font: inherit;
    font-weight: 800;
}

.qarar-basic-add,
.qarar-basic-actions .qarar-basic-save,
.qarar-basic-actions .qarar-basic-reset {
    min-height: 44px;
    min-width: 92px;
    padding: 0 14px;
    border-radius: 11px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.qarar-basic-add {
    border: 1px solid rgba(214, 164, 59, .38);
    background: #fff8e6;
    color: #8a5f05;
}

.qarar-basic-actions .qarar-basic-save {
    border: 0;
    background: #1f5eff;
    color: #fff;
}

.qarar-basic-actions .qarar-basic-reset {
    border: 1px solid #d7e0ec;
    background: #fff;
    color: #07182f;
}

.qarar-basic-edit-panel.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qarar-basic-edit-panel.compact article {
    display: grid;
    gap: 8px;
    min-height: 90px;
    padding: 14px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #f8faff;
}

.qarar-basic-edit-panel.compact article strong {
    color: #07182f;
    font-size: 14px;
    line-height: 1.7;
}

.qarar-basic-workbench {
    display: grid;
    min-height: 0;
}

.qarar-basic-table-active {
    max-height: 560px;
    overflow: auto;
}

.qarar-basic-section-title div {
    display: grid;
    gap: 4px;
}

.qarar-basic-section-title p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 700;
}

.qarar-basic-table-active table {
    min-width: 720px;
}

.qarar-basic-table-active tbody tr[hidden] {
    display: none;
}

@media (max-width: 1180px) {
    .qarar-basic-command {
        grid-template-columns: 1fr;
    }

    .qarar-basic-kpis.compact,
    .qarar-basic-edit-panel.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .qarar-basic-tabs,
    .qarar-basic-actions,
    .qarar-basic-kpis.compact,
    .qarar-basic-edit-panel.compact {
        grid-template-columns: 1fr;
    }

    .qarar-basic-actions {
        align-items: stretch;
    }
}

.qarar-operations-data-page {
    display: grid;
    gap: 18px;
    padding: 24px;
    background: #f3f6fb;
    direction: rtl;
}

.qarar-operations-data-hero,
.qarar-operations-data-kpis,
.qarar-operations-data-panel {
    background: #fff;
    border: 1px solid #e1e8f2;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.qarar-operations-data-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 30px;
    border-radius: 26px;
    background: linear-gradient(135deg, #082a55, #0f4c81);
    color: #fff;
}

.qarar-operations-data-hero span,
.qarar-operations-data-hero small {
    color: #d6aa3b;
    font-weight: 800;
}

.qarar-operations-data-hero h1 {
    margin: 8px 0;
    font-size: 32px;
    font-weight: 900;
}

.qarar-operations-data-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
}

.qarar-operations-data-hero article {
    min-width: 150px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    text-align: center;
}

.qarar-operations-data-hero strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
}

.qarar-operations-data-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
}

.qarar-operations-data-kpis article {
    padding: 18px;
    border-radius: 18px;
    background: #f7faff;
    border: 1px solid #e4ebf5;
}

.qarar-operations-data-kpis span,
.qarar-operations-data-kpis small {
    display: block;
    color: #69778d;
    font-weight: 800;
}

.qarar-operations-data-kpis strong {
    display: block;
    margin: 8px 0;
    color: #061b38;
    font-size: 30px;
    font-weight: 900;
}

.qarar-operations-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.qarar-operations-data-panel {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
}

.qarar-operations-data-panel h2 {
    margin: 0 0 14px;
    color: #061b38;
    font-size: 20px;
    font-weight: 900;
}

.qarar-operations-data-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.qarar-operations-data-panel th,
.qarar-operations-data-panel td {
    padding: 12px 10px;
    border-bottom: 1px solid #e7edf6;
    text-align: right;
    color: #17233a;
    font-weight: 700;
}

.qarar-operations-data-panel th {
    color: #718096;
    background: #f8fbff;
}

.qarar-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.qarar-status.ok {
    background: #e8f8ef;
    color: #12813b;
}

.qarar-status.warn {
    background: #fff6df;
    color: #a66a00;
}

.qarar-operations-bars {
    display: grid;
    gap: 12px;
}

.qarar-operations-bars article {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    align-items: center;
}

.qarar-operations-bars span,
.qarar-operations-bars strong,
.qarar-operations-bars small {
    color: #17233a;
    font-weight: 800;
}

.qarar-operations-bars small {
    color: #718096;
}

.qarar-operations-bars div {
    grid-column: 1 / -1;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #edf2f8;
}

.qarar-operations-bars i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f66e8, #d6aa3b);
}

@media (max-width: 1100px) {
    .qarar-operations-data-kpis,
    .qarar-operations-data-grid {
        grid-template-columns: 1fr;
    }

    .qarar-operations-data-hero {
        align-items: stretch;
        flex-direction: column;
    }
}

.qarar-operations-map-page {
    display: grid;
    gap: 14px;
    padding: 22px 24px 34px;
    background: #f3f6fb;
    direction: rtl;
}

.qarar-operations-map-hero,
.qarar-operations-map-kpis,
.qarar-center-map-panel,
.qarar-center-map-detail {
    border: 1px solid #e1e8f2;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.qarar-operations-map-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 112px;
    padding: 20px 24px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #07182f, #0f4c81);
}

.qarar-operations-map-hero h1,
.qarar-operations-map-hero p {
    margin: 0;
}

.qarar-operations-map-hero span,
.qarar-operations-map-hero small {
    color: #d6aa3b;
    font-weight: 900;
}

.qarar-operations-map-hero h1 {
    margin-block: 5px;
    font-size: 28px;
    font-weight: 900;
}

.qarar-operations-map-hero p {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    font-weight: 800;
}

.qarar-operations-map-hero article {
    min-width: 138px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    text-align: center;
}

.qarar-operations-map-hero strong {
    display: block;
    margin-top: 4px;
    font-size: 26px;
}

.qarar-operations-map-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
}

.qarar-operations-map-kpis article {
    padding: 13px 15px;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    background: #f8fbff;
}

.qarar-operations-map-kpis span,
.qarar-operations-map-kpis small {
    display: block;
    color: #69778d;
    font-size: 12px;
    font-weight: 900;
}

.qarar-operations-map-kpis strong {
    display: block;
    margin: 5px 0;
    color: #061b38;
    font-size: 26px;
    font-weight: 900;
}

.qarar-center-map-layout {
    display: grid;
    grid-template-columns: minmax(520px, 2fr) minmax(320px, .9fr);
    gap: 18px;
    align-items: stretch;
}

.qarar-center-map-panel,
.qarar-center-map-detail {
    min-width: 0;
    border-radius: 20px;
}

.qarar-center-map-panel {
    padding: 16px;
}

.qarar-center-map-surface {
    position: relative;
    height: 420px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #dfe7ef;
}

.qarar-libya-outline-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.qarar-operations-map-page .qarar-libya-outline-map,
.qarar-operations-map-page .qarar-center-marker {
    display: none;
}

.qarar-live-libya-map {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    background: #dbeafe;
}

.qarar-map-live-loading {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #0f2748;
    font-weight: 900;
}

.qrar-map-live-error {
    padding: 18px;
    color: #b42318;
    text-align: center;
}

.qarar-leaflet-marker {
    display: grid;
    place-items: center;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border: 3px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #9aa6b2;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .28);
    transform: translate(-50%, -50%);
}

.qarar-leaflet-marker-button {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    color: inherit;
    background: transparent;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.qarar-leaflet-marker.entered {
    background: #25a55f;
}

.qarar-leaflet-marker.reported {
    background: #d6a43b;
}

.qarar-leaflet-marker.missing {
    background: #d94b45;
}

.qarar-leaflet-marker.active {
    outline: 4px solid rgba(31, 94, 255, .26);
    background: #1f5eff;
}

.qarar-leaflet-circle-marker {
    cursor: pointer;
    filter: drop-shadow(0 7px 12px rgba(15, 23, 42, .3));
}

.qarar-leaflet-center-label {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #10233e;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
    font-size: 10px;
    font-weight: 900;
}

.qarar-leaflet-center-label::before {
    display: none;
}

.qarar-live-libya-map .leaflet-control-attribution {
    direction: ltr;
    font-size: 10px;
}

.qarar-live-map-hit-layer {
    position: absolute;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
}

.qarar-live-map-marker {
    position: absolute;
    top: 0;
    right: auto;
    left: 0;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #d94b45;
    box-shadow: 0 8px 16px rgba(15, 23, 42, .3);
    cursor: pointer;
    pointer-events: auto;
    font: 700 10px/1 "IBM Plex Sans Arabic", sans-serif;
    transition: box-shadow .16s ease, background .16s ease;
}

.qarar-live-map-marker.entered {
    background: #25a55f;
}

.qarar-live-map-marker.reported {
    background: #d6a43b;
}

.qarar-live-map-marker.active,
.qarar-live-map-marker:hover {
    background: #1f5eff;
    box-shadow: 0 10px 20px rgba(31, 94, 255, .36);
}

.qarar-live-map-marker span {
    pointer-events: none;
}

.qarar-marker-hover-card {
    position: absolute;
    z-index: 1260;
    top: -24px;
    right: auto;
    left: 38px;
    display: none;
    width: 240px;
    max-width: min(240px, calc(100vw - 48px));
    padding: 11px 12px;
    border: 1px solid rgba(219, 228, 239, .95);
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
    color: #132238;
    pointer-events: none;
    text-align: right;
    cursor: default;
}

.qarar-live-map-marker:hover .qarar-marker-hover-card,
.qarar-live-map-marker:focus-visible .qarar-marker-hover-card {
    display: grid;
    gap: 6px;
}

.qarar-live-map-marker:nth-of-type(3n) .qarar-marker-hover-card {
    right: 38px;
    left: auto;
}

.qarar-marker-hover-card strong {
    color: #061b38;
    font-size: 14px;
    line-height: 1.35;
}

.qarar-marker-hover-card span {
    color: #667085;
    font-size: 11px;
    font-weight: 900;
}

.qarar-marker-hover-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 2px 0 0;
}

.qarar-marker-hover-card dt,
.qarar-marker-hover-card dd {
    margin: 0;
    padding: 5px 6px;
    border-radius: 7px;
    background: #f3f7fc;
    font-size: 11px;
    font-weight: 900;
}

.qarar-marker-hover-card dt {
    color: #69778d;
}

.qarar-marker-hover-card dd {
    color: #0f2748;
    text-align: left;
}

.qarar-map-center-info {
    position: absolute;
    z-index: 1200;
    top: 14px;
    right: 14px;
    width: min(280px, calc(100% - 28px));
    display: none;
    padding: 12px;
    border: 1px solid rgba(219, 228, 239, .95);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .2);
    pointer-events: none;
}

.qarar-map-center-info.open {
    display: none !important;
}

.qarar-report-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.qarar-report-actions button {
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    color: #0f2748;
    font: 900 12px/1 "IBM Plex Sans Arabic", system-ui, sans-serif;
    cursor: pointer;
}

.qarar-report-actions button:hover {
    border-color: #1f5eff;
    color: #1f5eff;
}

.qarar-report-actions button[data-report-action="delete"] {
    border-color: rgba(217, 75, 69, .32);
    color: #b42318;
}

.qarar-live-libya-map .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .22);
}

.qarar-live-libya-map .leaflet-popup-content {
    margin: 12px 14px;
    min-width: 210px;
}

.qarar-leaflet-popup {
    display: grid;
    gap: 6px;
    color: #132238;
    font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
    text-align: right;
}

.qarar-leaflet-popup span,
.qarar-leaflet-popup small {
    color: #69778d;
    font-size: 12px;
    font-weight: 900;
}

.qarar-leaflet-popup strong {
    color: #061b38;
    font-size: 17px;
    line-height: 1.35;
}

.qarar-leaflet-popup dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 4px 0 0;
}

.qarar-leaflet-popup dt,
.qarar-leaflet-popup dd {
    margin: 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f3f7fc;
    font-size: 12px;
    font-weight: 900;
}

.qarar-leaflet-popup dt {
    color: #69778d;
}

.qarar-leaflet-popup dd {
    color: #0f2748;
    text-align: left;
}

.qarar-live-libya-map .leaflet-tile {
    opacity: 1 !important;
    visibility: visible !important;
}

.qarar-live-libya-map img.leaflet-tile {
    mix-blend-mode: normal !important;
}

.qarar-libya-outline-map .qarar-map-coast {
    fill: #f8f2e6;
    opacity: .96;
}

.qarar-libya-outline-map .qarar-map-region {
    fill: url("#qararMapLandGradient");
    stroke: rgba(32, 70, 88, .42);
    stroke-width: 3;
}

.qarar-libya-outline-map .qarar-map-region-shadow {
    fill: none;
    stroke: rgba(65, 103, 78, .22);
    stroke-width: 22;
    stroke-linecap: round;
}

.qarar-libya-outline-map .qarar-map-route {
    fill: none;
    stroke: rgba(166, 111, 52, .48);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 12 10;
}

.qarar-center-marker {
    position: absolute;
    z-index: 3;
    left: var(--x);
    top: var(--y);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 3px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #9aa6b2;
    box-shadow: 0 7px 15px rgba(15, 23, 42, .24);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.qarar-center-marker.entered {
    background: #25a55f;
}

.qarar-center-marker.reported {
    background: #d6a43b;
}

.qarar-center-marker.missing {
    background: #d94b45;
}

.qarar-center-marker.active,
.qarar-center-marker:hover {
    outline: 4px solid rgba(31, 94, 255, .2);
    background: #1f5eff;
    transform: translate(-50%, -50%) scale(1.08);
}

.qarar-center-marker span {
    font-size: 9px;
    font-weight: 900;
}

.qarar-center-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.qarar-center-map-legend span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.qarar-center-map-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.qarar-center-map-legend .entered {
    background: #25a55f;
}

.qarar-center-map-legend .reported {
    background: #d6a43b;
}

.qarar-center-map-legend .missing {
    background: #d94b45;
}

.qarar-center-map-detail {
    display: grid;
    align-content: start;
    gap: 16px;
    max-height: none;
    overflow: visible;
    padding: 22px;
}

.qarar-center-map-detail span,
.qarar-center-map-detail small {
    color: #69778d;
    font-weight: 900;
}

.qarar-center-map-detail h2 {
    margin: 5px 0;
    color: #061b38;
    font-size: 24px;
    line-height: 1.35;
}

.qarar-center-map-detail dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.qarar-center-map-detail dt,
.qarar-center-map-detail dd {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f6f9fd;
    color: #17233a;
    font-weight: 900;
}

.qarar-center-map-detail dt {
    color: #69778d;
}

.qarar-center-map-detail dd {
    text-align: left;
}

.qarar-center-map-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #1f5eff;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .qarar-operations-map-kpis {
        grid-template-columns: 1fr;
    }

    .qarar-center-map-layout {
        grid-template-columns: 1fr;
    }

    .qarar-operations-map-hero {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .qarar-center-map-layout {
        grid-template-columns: 1fr;
    }
}

.qarar-operations-map-page .qarar-center-map-layout {
    display: grid !important;
    grid-template-columns: minmax(520px, 2fr) minmax(300px, .9fr) !important;
}

.qarar-operations-map-page .qarar-center-map-surface {
    width: 100%;
    height: clamp(340px, 42vw, 560px);
    min-height: 0;
}

@media (max-width: 1180px) {
    .qarar-operations-map-page .qarar-center-map-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 760px) {
    .qarar-operations-map-page {
        gap: 12px;
        padding: 12px;
    }

    .qarar-operations-map-hero {
        padding: 18px;
        border-radius: 16px;
    }

    .qarar-center-map-panel {
        padding: 10px;
        border-radius: 16px;
    }

    .qarar-operations-map-page .qarar-center-map-surface {
        height: clamp(330px, 78vw, 460px);
        border-radius: 14px;
    }

    .qarar-center-marker {
        width: 27px;
        height: 27px;
        border-width: 2px;
    }

    .qarar-center-marker span {
        font-size: 7px;
    }

    .qarar-center-map-detail {
        max-height: none;
        padding: 16px;
        border-radius: 16px;
    }

    .qarar-center-map-detail dl {
        grid-template-columns: 1fr;
    }
}



/* Final results page linked to actual stored data */
.qarar-final-results-page {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #f4f6f9;
    direction: rtl;
}

.qarar-final-hero,
.qarar-final-kpis,
.qarar-final-leader,
.qarar-final-panel,
.qarar-final-loading {
    background: #fff;
    border: 1px solid #dfe6ef;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.qarar-final-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 22px;
    border-radius: 12px;
    background: #0b1f3a;
    color: #fff;
}

.qarar-final-hero span,
.qarar-final-hero small {
    color: #d8b24c;
    font-weight: 800;
}

.qarar-final-hero h1 {
    margin: 6px 0;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 900;
}

.qarar-final-hero p {
    max-width: 880px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
    line-height: 1.8;
}

.qarar-final-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.qarar-final-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(216, 178, 76, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 12px;
}

.qarar-final-hero article {
    min-width: 138px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    text-align: center;
}

.qarar-final-hero strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.qarar-final-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
}

.qarar-final-kpis article {
    min-height: 104px;
    padding: 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e4eaf2;
}

.qarar-final-kpis span,
.qarar-final-kpis small {
    display: block;
    color: #617086;
    font-weight: 800;
}

.qarar-final-kpis strong {
    display: block;
    margin: 8px 0;
    color: #081b33;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.25;
    font-weight: 900;
}

.qarar-final-leader {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
}

.qarar-final-leader > article {
    padding: 16px;
    border-radius: 10px;
    background: #102f55;
    color: #fff;
}

.qarar-final-leader > article span,
.qarar-final-leader > article p {
    color: #d8b24c;
    font-weight: 800;
}

.qarar-final-leader h2,
.qarar-final-leader h3,
.qarar-final-panel h2 {
    margin: 0 0 12px;
    color: #081b33;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 900;
}

.qarar-final-leader > article h2 {
    color: #fff;
    font-size: 25px;
}

.qarar-final-leader > article strong {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 30px;
    font-weight: 900;
}

.qarar-final-winners {
    display: grid;
    gap: 8px;
}

.qarar-final-winners article {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 64px;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    padding: 9px 12px;
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5ebf3;
}

.qarar-final-winners article.leader {
    border-color: #d8b24c;
    background: #fffaf0;
}

.qarar-final-winners div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 8px;
    align-items: center;
    min-width: 0;
}

.qarar-final-winners div strong {
    grid-row: span 2;
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: #0b1f3a;
    color: #fff;
    font-size: 13px;
}

.qarar-final-winners span,
.qarar-final-winners b,
.qarar-final-winners em,
.qarar-final-winners small {
    position: relative;
    z-index: 1;
    min-width: 0;
    color: #13213a;
    font-weight: 900;
}

.qarar-final-winners span,
.qarar-final-winners small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qarar-final-winners small,
.qarar-final-winners em {
    color: #68758a;
    font-style: normal;
}

.qarar-final-winners b,
.qarar-final-winners em {
    text-align: left;
}

.qarar-final-winners i {
    position: absolute;
    inset: auto 0 0 auto;
    height: 3px;
    background: #2f80ed;
}

.qarar-final-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 14px;
}

.qarar-final-panel {
    min-width: 0;
    padding: 14px;
    overflow: hidden;
    border-radius: 12px;
}

.qarar-final-panel.wide {
    grid-row: span 2;
}

.qarar-final-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.qarar-final-panel th,
.qarar-final-panel td {
    padding: 10px 9px;
    border-bottom: 1px solid #e8edf5;
    color: #17233a;
    text-align: right;
    font-weight: 750;
    vertical-align: middle;
}

.qarar-final-panel th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #617086;
    background: #f8fafc;
    font-weight: 900;
}

.qarar-final-panel tbody tr:hover td {
    background: #fbfdff;
}

.qarar-final-timeline {
    display: grid;
    gap: 9px;
}

.qarar-final-timeline article {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 54px;
    gap: 8px;
    align-items: center;
}

.qarar-final-timeline div {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f8;
}

.qarar-final-timeline i {
    display: block;
    height: 100%;
    background: #2f80ed;
}

.qarar-final-timeline span,
.qarar-final-timeline strong,
.qarar-final-timeline small {
    color: #17233a;
    font-weight: 900;
}

.qarar-final-loading {
    padding: 26px;
    border-radius: 12px;
    color: #071a33;
}

.qarar-final-integrity {
    display: grid;
    gap: 10px;
}

.qarar-final-integrity > strong {
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #edf7f1;
    color: #087443;
    font-weight: 900;
}

.qarar-final-integrity p {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    background: #f8fafc;
    color: #17233a;
    font-weight: 800;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .qarar-final-hero,
    .qarar-final-leader,
    .qarar-final-grid,
    .qarar-final-kpis {
        grid-template-columns: 1fr;
    }

    .qarar-final-panel.wide {
        grid-row: auto;
    }

    .qarar-final-winners article {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .qarar-final-winners em {
        display: none;
    }
}


/* Center lock management */
.qarar-center-locks-page {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: #f4f6f9;
    direction: rtl;
}

.qarar-locks-hero,
.qarar-locks-kpis,
.qarar-locks-toolbar,
.qarar-locks-table,
.qarar-center-lock-banner {
    background: #fff;
    border: 1px solid #dfe6ef;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.qarar-locks-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border-radius: 12px;
    background: #0b1f3a;
    color: #fff;
}

.qarar-locks-hero span {
    color: #d8b24c;
    font-weight: 900;
}

.qarar-locks-hero h2 {
    margin: 6px 0;
    font-size: 26px;
    font-weight: 900;
}

.qarar-locks-hero p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-weight: 700;
}

.qarar-locks-hero > strong {
    min-width: 120px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    text-align: center;
    font-size: 24px;
}

.qarar-locks-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
}

.qarar-locks-kpis article {
    padding: 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e4eaf2;
}

.qarar-locks-kpis span,
.qarar-locks-kpis small {
    display: block;
    color: #617086;
    font-weight: 800;
}

.qarar-locks-kpis strong {
    display: block;
    margin: 8px 0;
    color: #081b33;
    font-size: 23px;
    font-weight: 900;
}

.qarar-locks-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
}

.qarar-locks-toolbar label {
    display: grid;
    gap: 6px;
}

.qarar-locks-toolbar span {
    color: #617086;
    font-weight: 900;
}

.qarar-locks-toolbar select {
    min-height: 44px;
    border: 1px solid #d7e0eb;
    border-radius: 10px;
    padding: 0 12px;
    color: #081b33;
    font-weight: 800;
}

.qarar-locks-table {
    overflow: auto;
    border-radius: 12px;
}

.qarar-locks-table table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 13px;
}

.qarar-locks-table th,
.qarar-locks-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e8edf5;
    color: #17233a;
    text-align: right;
    font-weight: 750;
}

.qarar-locks-table td:last-child {
    min-width: 142px;
}

.qarar-locks-table th {
    background: #f8fafc;
    color: #617086;
    font-weight: 900;
}

.qarar-lock-pill,
.qarar-center-lock-banner span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.qarar-lock-pill {
    min-width: 74px;
    padding: 6px 10px;
    font-size: 12px;
}

.qarar-lock-pill.open,
.qarar-center-lock-banner.open span {
    background: #e8f7ef;
    color: #10733a;
}

.qarar-lock-pill.locked,
.qarar-center-lock-banner.locked span {
    background: #fff0e8;
    color: #aa3c12;
}

.qarar-locks-table button {
    min-width: 126px;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.qarar-locks-table button.lock {
    background: #aa3c12;
}

.qarar-locks-table button.open {
    background: #10733a;
}

.qarar-center-lock-banner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border-radius: 12px;
}

.qarar-center-lock-banner span {
    padding: 6px 12px;
    font-size: 12px;
}

.qarar-center-lock-banner strong {
    display: block;
    margin-top: 5px;
    color: #17233a;
    font-weight: 900;
}

.qarar-center-lock-banner small {
    color: #617086;
    font-weight: 800;
}

.qarar-center-is-locked input,
.qarar-center-is-locked textarea {
    background: #f1f4f8 !important;
    color: #8a96a8 !important;
    cursor: not-allowed;
}

.qarar-center-is-locked .qarar-report-save,
.qarar-center-is-locked .qarar-vote-save {
    background: #8a96a8 !important;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .qarar-locks-hero,
    .qarar-center-lock-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .qarar-locks-kpis,
    .qarar-locks-toolbar {
        grid-template-columns: 1fr;
    }
}

.qarar-executive-summary-page .qarar-executive-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    min-height: 104px !important;
    padding: 16px 20px !important;
}

.qarar-executive-summary-page .qarar-executive-hero div {
    gap: 5px !important;
}

.qarar-executive-summary-page .qarar-executive-hero h1 {
    font-size: 28px !important;
}

.qarar-executive-summary-page .qarar-executive-hero p {
    display: -webkit-box;
    max-width: 820px;
    overflow: hidden;
    font-size: 13px !important;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.qarar-executive-summary-page .qarar-executive-hero article {
    min-width: 132px !important;
    padding: 12px !important;
}


.qarar-locks-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.qarar-locks-actions button {
    border: 0;
    border-radius: 12px;
    min-width: 132px;
    min-height: 52px;
    padding: 15px 22px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.qarar-locks-actions .lock-all {
    background: #991b1b;
    color: #fff;
}

.qarar-locks-actions .open-all {
    background: #047857;
    color: #fff;
}


.qarar-center-locks-page [data-lock-action],
.qarar-center-locks-page [data-lock-bulk] {
    position: relative;
    z-index: 20;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}


.qarar-operations-centers-page { direction: rtl; display: grid; gap: 18px; padding: 18px; color: #172033; }
.qarar-centers-hero,.qarar-centers-kpis article,.qarar-centers-toolbar,.qarar-centers-list,.qarar-center-detail { background: linear-gradient(180deg,#fff,#f8fbff); border: 1px solid rgba(90,108,134,.18); border-radius: 16px; box-shadow: 0 18px 45px rgba(25,37,58,.08); }
.qarar-centers-hero { display:flex; justify-content:space-between; gap:16px; padding:22px; align-items:center; }
.qarar-centers-hero span,.qarar-centers-hero small,.qarar-centers-kpis span,.qarar-centers-kpis small,.qarar-center-detail-head span,.qarar-center-detail-head small { color:#667085; font-weight:800; }
.qarar-centers-hero h1,.qarar-center-detail h2 { margin:6px 0; color:#101828; }
.qarar-centers-hero p { margin:0; max-width:720px; color:#475467; font-weight:700; }
.qarar-centers-hero article { min-width:220px; padding:14px; border-radius:14px; background:#0f172a; color:#fff; }
.qarar-centers-hero article small { color:#cbd5e1; }
.qarar-centers-hero article strong { display:block; margin-top:4px; font-size:18px; }
.qarar-centers-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.qarar-centers-kpis article { padding:16px; }
.qarar-centers-kpis strong { display:block; margin:5px 0; font-size:24px; color:#0f766e; }
.qarar-centers-toolbar { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:12px; padding:14px; }
.qarar-centers-toolbar label { display:grid; gap:7px; font-weight:900; color:#344054; }
.qarar-centers-toolbar input,.qarar-centers-toolbar select { width:100%; border:1px solid rgba(102,112,133,.24); border-radius:12px; padding:11px 12px; font:inherit; background:#fff; }
.qarar-centers-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr); gap:16px; align-items:start; }
.qarar-centers-list,.qarar-center-detail { padding:16px; overflow:hidden; }
.qarar-centers-list table,.qarar-center-reports table { width:100%; border-collapse:collapse; }
.qarar-centers-list th,.qarar-centers-list td,.qarar-center-reports th,.qarar-center-reports td { padding:12px 10px; border-bottom:1px solid rgba(102,112,133,.14); text-align:right; vertical-align:middle; }
.qarar-centers-list th,.qarar-center-reports th { color:#667085; font-size:12px; background:#f8fafc; }
.qarar-centers-list tbody tr { cursor:pointer; }
.qarar-centers-list tbody tr:hover,.qarar-centers-list tbody tr.active { background:#ecfeff; }
.qarar-centers-list td b,.qarar-centers-list td small { display:block; }
.qarar-centers-list td small { color:#667085; margin-top:3px; }
.qarar-center-state { display:inline-flex; min-width:72px; justify-content:center; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:900; }
.qarar-center-state.locked { background:#fee2e2; color:#991b1b; }
.qarar-center-state.open { background:#dcfce7; color:#166534; }
.qarar-center-state.active { background:#dbeafe; color:#1d4ed8; }
.qarar-center-detail { position:sticky; top:18px; }
.qarar-center-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }
.qarar-center-detail-grid article { background:#f8fafc; border-radius:12px; padding:12px; }
.qarar-center-detail-grid span,.qarar-center-detail-meta dt { color:#667085; font-weight:900; font-size:12px; }
.qarar-center-detail-grid strong { display:block; margin-top:4px; font-size:20px; color:#101828; }
.qarar-center-detail-meta { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; margin:0 0 16px; }
.qarar-center-detail-meta dd { margin:0; font-weight:900; color:#1f2937; }
.qarar-center-lists h3,.qarar-center-reports h3 { margin:16px 0 10px; color:#101828; }
.qarar-center-lists article { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; padding:9px 0; }
.qarar-center-lists i { grid-column:1/-1; height:6px; border-radius:999px; background:#0f766e; }
@media (max-width:980px) { .qarar-centers-kpis,.qarar-centers-toolbar,.qarar-centers-layout { grid-template-columns:1fr; } .qarar-center-detail { position:static; } }


.qarar-operations-alerts-page { direction: rtl; display: grid; gap: 18px; padding: 18px; color: #172033; }
.qarar-alerts-hero,.qarar-alerts-kpis article,.qarar-alerts-toolbar,.qarar-alerts-panel { background: linear-gradient(180deg,#fff,#f8fbff); border: 1px solid rgba(90,108,134,.18); border-radius: 16px; box-shadow: 0 18px 45px rgba(25,37,58,.08); }
.qarar-alerts-hero { display:flex; justify-content:space-between; gap:16px; padding:22px; align-items:center; }
.qarar-alerts-hero span,.qarar-alerts-hero small,.qarar-alerts-kpis span,.qarar-alerts-kpis small { color:#667085; font-weight:800; }
.qarar-alerts-hero h1 { margin:6px 0; color:#101828; }
.qarar-alerts-hero p { margin:0; max-width:760px; color:#475467; font-weight:700; }
.qarar-alerts-hero article { min-width:180px; padding:14px; border-radius:14px; background:#7f1d1d; color:#fff; }
.qarar-alerts-hero article small { color:#fecaca; }
.qarar-alerts-hero article strong { display:block; margin-top:4px; font-size:28px; }
.qarar-alerts-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.qarar-alerts-kpis article { padding:16px; }
.qarar-alerts-kpis strong { display:block; margin:5px 0; font-size:24px; color:#b42318; }
.qarar-alerts-toolbar { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:14px; }
.qarar-alerts-toolbar label { display:grid; gap:7px; font-weight:900; color:#344054; }
.qarar-alerts-toolbar select { width:100%; border:1px solid rgba(102,112,133,.24); border-radius:12px; padding:11px 12px; font:inherit; background:#fff; }
.qarar-alerts-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr); gap:16px; align-items:start; }
.qarar-alerts-panel { padding:16px; overflow:hidden; }
.qarar-alerts-panel.wide { min-width:0; }
.qarar-alerts-panel h2 { margin:0 0 12px; color:#101828; }
.qarar-alerts-panel table { width:100%; border-collapse:collapse; }
.qarar-alerts-panel th,.qarar-alerts-panel td { padding:12px 10px; border-bottom:1px solid rgba(102,112,133,.14); text-align:right; vertical-align:middle; }
.qarar-alerts-panel th { color:#667085; font-size:12px; background:#f8fafc; }
.qarar-alerts-panel tbody tr { cursor:pointer; }
.qarar-alerts-panel tbody tr:hover { background:#fff7ed; }
.qarar-alerts-panel td strong,.qarar-alerts-panel td small { display:block; }
.qarar-alerts-panel td small { color:#667085; margin-top:3px; }
.qarar-alert-priority { display:inline-flex; justify-content:center; min-width:70px; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:900; }
.qarar-alert-priority.p1 { background:#fee2e2; color:#991b1b; }
.qarar-alert-priority.p2 { background:#ffedd5; color:#9a3412; }
.qarar-alert-priority.p3 { background:#dbeafe; color:#1d4ed8; }
@media (max-width:980px) { .qarar-alerts-kpis,.qarar-alerts-toolbar,.qarar-alerts-grid { grid-template-columns:1fr; } }


.qarar-audit-log-page { direction: rtl; display: grid; gap: 18px; padding: 18px; color: #172033; }
.qarar-audit-hero,.qarar-audit-kpis article,.qarar-audit-toolbar,.qarar-audit-table { background: linear-gradient(180deg,#fff,#f8fbff); border: 1px solid rgba(90,108,134,.18); border-radius: 16px; box-shadow: 0 18px 45px rgba(25,37,58,.08); }
.qarar-audit-hero { display:flex; justify-content:space-between; gap:16px; padding:22px; align-items:center; }
.qarar-audit-hero span,.qarar-audit-hero small,.qarar-audit-kpis span,.qarar-audit-kpis small { color:#667085; font-weight:800; }
.qarar-audit-hero h1 { margin:6px 0; color:#101828; }
.qarar-audit-hero p { margin:0; max-width:760px; color:#475467; font-weight:700; }
.qarar-audit-hero article { min-width:220px; padding:14px; border-radius:14px; background:#111827; color:#fff; }
.qarar-audit-hero article small { color:#d1d5db; }
.qarar-audit-hero article strong { display:block; margin-top:4px; font-size:18px; }
.qarar-audit-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.qarar-audit-kpis article { padding:16px; }
.qarar-audit-kpis strong { display:block; margin:5px 0; font-size:24px; color:#0f766e; }
.qarar-audit-toolbar { display:grid; grid-template-columns:1fr 1.5fr auto; gap:12px; padding:14px; align-items:end; }
.qarar-audit-toolbar label { display:grid; gap:7px; font-weight:900; color:#344054; }
.qarar-audit-toolbar select { width:100%; border:1px solid rgba(102,112,133,.24); border-radius:12px; padding:11px 12px; font:inherit; background:#fff; }
.qarar-audit-clear-button { border:0; border-radius:12px; padding:12px 16px; background:#b42318; color:#fff; font:inherit; font-weight:900; cursor:pointer; white-space:nowrap; }
.qarar-audit-clear-button:hover { background:#912018; }
.qarar-audit-clear-button:disabled { opacity:.55; cursor:not-allowed; }
.qarar-audit-table { padding:16px; overflow:auto; }
.qarar-audit-table table { width:100%; min-width:960px; border-collapse:collapse; }
.qarar-audit-table th,.qarar-audit-table td { padding:12px 10px; border-bottom:1px solid rgba(102,112,133,.14); text-align:right; vertical-align:middle; }
.qarar-audit-table th { color:#667085; font-size:12px; background:#f8fafc; }
.qarar-audit-table tbody tr { cursor:pointer; }
.qarar-audit-table tbody tr:hover { background:#ecfeff; }
.qarar-audit-table td strong,.qarar-audit-table td small { display:block; }
.qarar-audit-table td small { color:#667085; margin-top:3px; }
.qarar-audit-type { display:inline-flex; justify-content:center; min-width:82px; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:900; }
.qarar-audit-type.locked { background:#fee2e2; color:#991b1b; }
.qarar-audit-type.open { background:#dcfce7; color:#166534; }
.qarar-audit-type.active { background:#dbeafe; color:#1d4ed8; }
@media (max-width:980px) { .qarar-audit-kpis,.qarar-audit-toolbar { grid-template-columns:1fr; } .qarar-audit-hero { flex-direction:column; align-items:stretch; } }

/* Inspired visual refresh: navy operations shell, gold accents, soft command-center cards. */
:root {
    --qarar-navy-950: #061735;
    --qarar-navy-900: #08224b;
    --qarar-navy-800: #0d3268;
    --qarar-gold: #f0bd59;
    --qarar-gold-soft: #fff4dc;
    --qarar-page-bg: #f3f6fb;
    --qarar-card-bg: #ffffff;
    --qarar-border-soft: rgba(119, 136, 166, .18);
    --qarar-shadow-soft: 0 14px 32px rgba(10, 26, 55, .08);
    --qarar-shadow-card: 0 22px 48px rgba(10, 26, 55, .11);
}

body {
    background: var(--qarar-page-bg) !important;
}

html.qarar-auth-guarding .app-shell {
    display: none !important;
}

html.qarar-auth-guarding body {
    background: #07182f;
}

.qarar-login-error {
    margin: 12px 0;
    padding: 11px 14px;
    border: 1px solid #f4b6b6;
    border-radius: 8px;
    background: #fff3f3;
    color: #a32121;
    direction: rtl;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

.app-shell {
    background:
        radial-gradient(circle at 18% 0, rgba(240, 189, 89, .10), transparent 26%),
        linear-gradient(180deg, #f7f9fd 0, var(--qarar-page-bg) 100%) !important;
}

.workspace {
    padding: 0 24px 30px !important;
}

.sidebar {
    background:
        radial-gradient(circle at 20% 4%, rgba(240, 189, 89, .18), transparent 24%),
        linear-gradient(180deg, #061a3a 0%, #071f45 45%, #06152f 100%) !important;
    color: #fff !important;
    border-left: 1px solid rgba(240, 189, 89, .22) !important;
    box-shadow: -18px 0 48px rgba(3, 12, 28, .18);
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(240, 189, 89, .16), transparent 18%),
        radial-gradient(circle at 90% 12%, rgba(255, 255, 255, .08), transparent 20%);
}

.sidebar * {
    position: relative;
}

.qarar-login-platform-brand {
    display: grid;
    justify-items: center;
    gap: 7px;
    margin: 0 0 14px;
    text-align: center;
    direction: rtl;
}

.qarar-login-platform-brand img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    padding: 8px;
    border: 1px solid rgba(219, 226, 234, .9);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(10, 26, 55, .12);
}

.qarar-login-platform-brand strong {
    color: #07182f;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.25;
}

.qarar-login-platform-brand span {
    color: #667085;
    font-size: 13px;
    font-weight: 850;
}

.qarar-old-login-logos {
    display: none !important;
}

.sidebar .side-title {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.qarar-sidebar-logo,
.qarar-topbar-logo {
    display: block;
    object-fit: contain;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(3, 12, 28, .18);
}

.qarar-sidebar-logo {
    width: 54px;
    height: 54px;
    padding: 5px;
    border: 1px solid rgba(240, 189, 89, .35);
}

.qarar-topbar-logo {
    width: 42px;
    height: 42px;
    padding: 4px;
    border: 1px solid rgba(219, 226, 234, .9);
}

.qarar-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    border-radius: inherit;
    background: #fff;
}

.sidebar h1,
.sidebar h2,
.sidebar h3,
.sidebar strong,
.sidebar .side-title {
    color: #fff !important;
}

.sidebar span,
.sidebar small,
.sidebar p,
.nav-group-label,
.sidebar nav > span {
    color: rgba(255, 255, 255, .68) !important;
}

.nav-list button,
.side-section button,
.sidebar nav button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, .86) !important;
    font-weight: 800 !important;
    text-align: right;
}

.nav-list button span,
.side-section button span,
.sidebar nav button span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.45;
    white-space: normal;
}

.nav-list button svg,
.side-section button svg,
.sidebar nav button svg {
    flex: 0 0 auto;
}

.sidebar .nav-list,
.sidebar .grouped-nav,
.sidebar .dashboard-accordion,
.sidebar .dashboard-subnav {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-items: stretch !important;
    align-items: stretch !important;
}

.sidebar .nav-list,
.sidebar .grouped-nav {
    grid-template-columns: minmax(0, 1fr) !important;
}

.sidebar .dashboard-subnav {
    padding-inline-start: 0 !important;
}

.sidebar .dashboard-accordion > button,
.sidebar .dashboard-subnav > button {
    width: 100% !important;
}

.nav-list button:hover,
.side-section button:hover,
.sidebar nav button:hover {
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}

.qarar-vote-entry-nav svg,
.qarar-center-locks-nav svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    opacity: .9;
}

.nav-list button.active,
.side-section button.active,
.sidebar nav button.active,
.qarar-vote-entry-nav.active,
.qarar-center-locks-nav.active {
    border-color: rgba(240, 189, 89, .52) !important;
    background: linear-gradient(90deg, rgba(240, 189, 89, .18), rgba(255, 255, 255, .07)) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--qarar-gold), 0 12px 26px rgba(3, 12, 28, .18);
}

.qarar-user-topbar {
    min-height: 64px;
    margin: 0 -24px 18px !important;
    padding: 8px 24px;
    border: 1px solid rgba(119, 136, 166, .14);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--qarar-shadow-soft);
    backdrop-filter: blur(12px);
}

.qarar-route-heading span {
    color: #738198;
}

.qarar-route-heading strong {
    color: var(--qarar-navy-950);
}

.qarar-sidebar-toggle {
    border-color: rgba(240, 189, 89, .42);
    background: #fff !important;
    color: var(--qarar-navy-900);
    box-shadow: 0 10px 24px rgba(10, 26, 55, .08);
}

.qarar-profile-avatar {
    background: radial-gradient(circle at 32% 24%, #ffe3a4, #c4923d 54%, #0b2a59 100%);
    color: #fff;
}

.workspace > section:not(.qarar-page-hidden-for-custom),
.qarar-executive-summary-page,
.qarar-participation-page,
.qarar-operations-map-page,
.qarar-operations-data-page,
.qarar-operations-centers-page,
.qarar-operations-alerts-page,
.qarar-center-locks-page,
.qarar-audit-log-page,
.qarar-vote-entry-page,
.qarar-report-entry-page,
.qarar-final-results-page,
.qarar-basic-workbench,
.qarar-saved-reports-page {
    gap: 16px !important;
    padding: 0 0 30px !important;
}

.qarar-executive-hero,
.qarar-participation-hero,
.qarar-operations-map-hero,
.qarar-operations-data-hero,
.qarar-final-hero,
.qarar-locks-hero,
.qarar-centers-hero,
.qarar-alerts-hero,
.qarar-audit-hero,
.qarar-vote-head,
.qarar-basic-head {
    border: 1px solid rgba(240, 189, 89, .18) !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 18% 0, rgba(240, 189, 89, .20), transparent 32%),
        linear-gradient(135deg, var(--qarar-navy-900), var(--qarar-navy-950)) !important;
    color: #fff !important;
    box-shadow: 0 22px 44px rgba(6, 23, 53, .18) !important;
}

.qarar-executive-hero h1,
.qarar-participation-hero h1,
.qarar-operations-map-hero h1,
.qarar-operations-data-hero h1,
.qarar-final-hero h1,
.qarar-locks-hero h2,
.qarar-centers-hero h1,
.qarar-alerts-hero h1,
.qarar-audit-hero h1,
.qarar-vote-head h2,
.qarar-basic-head h2 {
    color: #fff !important;
}

.qarar-executive-hero span,
.qarar-participation-hero span,
.qarar-operations-map-hero span,
.qarar-operations-data-hero span,
.qarar-final-hero span,
.qarar-locks-hero span,
.qarar-centers-hero span,
.qarar-alerts-hero span,
.qarar-audit-hero span,
.qarar-vote-head span,
.qarar-basic-head span {
    color: var(--qarar-gold) !important;
}

.qarar-executive-hero p,
.qarar-participation-hero p,
.qarar-operations-map-hero p,
.qarar-operations-data-hero p,
.qarar-final-hero p,
.qarar-locks-hero p,
.qarar-centers-hero p,
.qarar-alerts-hero p,
.qarar-audit-hero p,
.qarar-vote-head p,
.qarar-basic-head p,
.qarar-executive-hero small,
.qarar-participation-hero small,
.qarar-operations-map-hero small,
.qarar-final-hero small {
    color: rgba(255, 255, 255, .78) !important;
}

.qarar-executive-hero article,
.qarar-participation-hero article,
.qarar-operations-map-hero article,
.qarar-operations-data-hero article,
.qarar-final-hero article,
.qarar-centers-hero article,
.qarar-alerts-hero article,
.qarar-audit-hero article {
    border: 1px solid rgba(240, 189, 89, .36) !important;
    background: rgba(255, 255, 255, .08) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.qarar-executive-primary article,
.qarar-live-strip article,
.qarar-basic-kpis article,
.qarar-participation-kpis article,
.qarar-operations-map-kpis article,
.qarar-operations-data-kpis article,
.qarar-final-kpis article,
.qarar-locks-kpis article,
.qarar-centers-kpis article,
.qarar-alerts-kpis article,
.qarar-audit-kpis article,
.qarar-vote-controls article,
.qarar-report-stats article,
.qarar-center-detail-grid article {
    border: 1px solid var(--qarar-border-soft) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #fff, #fbfcff) !important;
    box-shadow: var(--qarar-shadow-soft) !important;
}

.qarar-executive-panel,
.qarar-executive-chart,
.qarar-minister-table,
.qarar-basic-table,
.qarar-basic-card,
.qarar-vote-card,
.qarar-vote-specials,
.qarar-report-form,
.qarar-report-details,
.qarar-saved-reports-page section,
.qarar-center-map-panel,
.qarar-center-map-detail,
.qarar-centers-toolbar,
.qarar-centers-list,
.qarar-center-detail,
.qarar-alerts-toolbar,
.qarar-alerts-panel,
.qarar-audit-toolbar,
.qarar-audit-table,
.qarar-locks-toolbar,
.qarar-locks-table {
    border: 1px solid var(--qarar-border-soft) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, var(--qarar-card-bg), #fbfcff) !important;
    box-shadow: var(--qarar-shadow-card) !important;
}

.qarar-basic-section-title h3,
.qarar-vote-card-title h3,
.qarar-executive-panel h2,
.qarar-executive-chart h3,
.qarar-center-detail h2,
.qarar-alerts-panel h2,
.qarar-center-lists h3,
.qarar-center-reports h3 {
    color: var(--qarar-navy-950) !important;
}

.qarar-executive-primary strong,
.qarar-live-strip strong,
.qarar-basic-kpis strong,
.qarar-participation-kpis strong,
.qarar-operations-map-kpis strong,
.qarar-operations-data-kpis strong,
.qarar-final-kpis strong,
.qarar-locks-kpis strong,
.qarar-centers-kpis strong,
.qarar-audit-kpis strong {
    color: var(--qarar-navy-950) !important;
}

.qarar-executive-primary span,
.qarar-executive-primary small,
.qarar-live-strip span,
.qarar-live-strip small,
.qarar-basic-kpis span,
.qarar-basic-kpis small,
.qarar-participation-kpis span,
.qarar-participation-kpis small,
.qarar-operations-map-kpis span,
.qarar-operations-map-kpis small,
.qarar-operations-data-kpis span,
.qarar-operations-data-kpis small,
.qarar-final-kpis span,
.qarar-final-kpis small {
    color: #6a7890 !important;
}

button.primary-button,
.qarar-report-save,
.qarar-vote-save,
.qarar-center-map-link,
.qarar-reports-refresh,
.qarar-basic-save,
.qarar-basic-reset {
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0b3a78, #0a2855) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(11, 58, 120, .20);
}

button.primary-button:hover,
.qarar-report-save:hover,
.qarar-vote-save:hover,
.qarar-center-map-link:hover,
.qarar-reports-refresh:hover,
.qarar-basic-save:hover {
    filter: brightness(1.06);
}

input,
select,
textarea {
    border-color: rgba(104, 119, 145, .22) !important;
    border-radius: 10px !important;
    background-color: #fff !important;
}

table thead th {
    background: #f3f6fb !important;
    color: #617086 !important;
}

table tbody tr:hover {
    background: #eef7ff !important;
}

.qarar-live-libya-map,
.qrar-executive-live-map,
.qarar-center-map-surface {
    border-radius: 12px !important;
}

.qarar-center-lock-banner.locked {
    border-color: rgba(240, 189, 89, .34) !important;
    background: linear-gradient(135deg, #fff8e8, #ffffff) !important;
}

.qarar-center-lock-banner.open {
    border-color: rgba(244, 63, 94, .26) !important;
    background: linear-gradient(135deg, #fff1f2, #ffffff) !important;
}

.status-pill,
.qarar-center-state,
.qarar-audit-type,
.qarar-lock-pill {
    border-radius: 999px !important;
}

@media (max-width: 760px) {
    .workspace {
        padding-inline: 12px !important;
    }

    .qarar-user-topbar {
        margin-inline: -12px !important;
        border-radius: 0 0 12px 12px;
    }
}

/* Global command-dashboard polish inspired by election-result and civic data dashboards. */
* {
    scrollbar-color: rgba(8, 34, 75, .28) transparent;
}

.workspace > section:not(.qarar-page-hidden-for-custom) {
    animation: qararPageIn .18s ease-out;
}

@keyframes qararPageIn {
    from {
        opacity: .84;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qarar-executive-hero,
.qarar-participation-hero,
.qarar-operations-map-hero,
.qarar-operations-data-hero,
.qarar-final-hero,
.qarar-locks-hero,
.qarar-centers-hero,
.qarar-alerts-hero,
.qarar-audit-hero,
.qarar-vote-head,
.qarar-basic-head {
    position: relative;
    overflow: hidden;
}

.qarar-executive-hero::after,
.qarar-participation-hero::after,
.qarar-operations-map-hero::after,
.qarar-operations-data-hero::after,
.qarar-final-hero::after,
.qarar-locks-hero::after,
.qarar-centers-hero::after,
.qarar-alerts-hero::after,
.qarar-audit-hero::after,
.qarar-vote-head::after,
.qarar-basic-head::after {
    content: "";
    position: absolute;
    inset: -35% auto auto -8%;
    width: 420px;
    aspect-ratio: 1;
    border: 1px solid rgba(240, 189, 89, .18);
    border-radius: 50%;
    box-shadow:
        0 0 0 26px rgba(240, 189, 89, .045),
        0 0 0 52px rgba(240, 189, 89, .035),
        0 0 0 78px rgba(240, 189, 89, .025);
    pointer-events: none;
}

.qarar-executive-hero > *,
.qarar-participation-hero > *,
.qarar-operations-map-hero > *,
.qarar-operations-data-hero > *,
.qarar-final-hero > *,
.qarar-locks-hero > *,
.qarar-centers-hero > *,
.qarar-alerts-hero > *,
.qarar-audit-hero > *,
.qarar-vote-head > *,
.qarar-basic-head > * {
    position: relative;
    z-index: 1;
}

.qarar-executive-primary article,
.qarar-live-strip article,
.qarar-basic-kpis article,
.qarar-participation-kpis article,
.qarar-operations-map-kpis article,
.qarar-operations-data-kpis article,
.qarar-final-kpis article,
.qarar-locks-kpis article,
.qarar-centers-kpis article,
.qarar-alerts-kpis article,
.qarar-audit-kpis article {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 18px 18px 16px !important;
}

.qarar-executive-primary article::before,
.qarar-live-strip article::before,
.qarar-basic-kpis article::before,
.qarar-participation-kpis article::before,
.qarar-operations-map-kpis article::before,
.qarar-operations-data-kpis article::before,
.qarar-final-kpis article::before,
.qarar-locks-kpis article::before,
.qarar-centers-kpis article::before,
.qarar-alerts-kpis article::before,
.qarar-audit-kpis article::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .85), transparent 32%),
        linear-gradient(135deg, rgba(240, 189, 89, .32), rgba(8, 34, 75, .13));
    box-shadow: inset 0 0 0 1px rgba(240, 189, 89, .22);
}

.qarar-executive-primary article::after,
.qarar-live-strip article::after,
.qarar-basic-kpis article::after,
.qarar-participation-kpis article::after,
.qarar-operations-map-kpis article::after,
.qarar-operations-data-kpis article::after,
.qarar-final-kpis article::after,
.qarar-locks-kpis article::after,
.qarar-centers-kpis article::after,
.qarar-alerts-kpis article::after,
.qarar-audit-kpis article::after {
    content: "";
    position: absolute;
    inset-inline: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--qarar-gold), rgba(8, 34, 75, .10));
}

.qarar-executive-primary strong,
.qarar-live-strip strong,
.qarar-basic-kpis strong,
.qarar-participation-kpis strong,
.qarar-operations-map-kpis strong,
.qarar-operations-data-kpis strong,
.qarar-final-kpis strong,
.qarar-locks-kpis strong,
.qarar-centers-kpis strong,
.qarar-alerts-kpis strong,
.qarar-audit-kpis strong {
    font-size: clamp(22px, 2.1vw, 31px) !important;
    line-height: 1.1;
}

.qarar-basic-section-title,
.qarar-vote-card-title,
.qarar-center-detail-head,
.qarar-report-details-title,
.qarar-center-map-detail > div:first-child {
    border-bottom: 1px solid rgba(119, 136, 166, .14);
    padding-bottom: 10px;
}

.qarar-basic-section-title h3,
.qarar-vote-card-title h3 {
    position: relative;
    padding-inline-start: 12px;
}

.qarar-basic-section-title h3::before,
.qarar-vote-card-title h3::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .25em;
    bottom: .25em;
    width: 4px;
    border-radius: 999px;
    background: var(--qarar-gold);
}

.qarar-executive-dashboard,
.qarar-center-map-layout,
.qarar-centers-layout,
.qarar-alerts-grid {
    align-items: stretch !important;
}

.qarar-executive-map,
.qarar-executive-chart,
.qarar-center-map-panel,
.qarar-center-map-detail,
.qarar-centers-list,
.qarar-center-detail,
.qarar-alerts-panel {
    min-height: 100%;
}

.qarar-live-libya-map .leaflet-control-zoom a,
.qrar-executive-live-map .leaflet-control-zoom a {
    border: 1px solid rgba(8, 34, 75, .12) !important;
    background: rgba(255, 255, 255, .94) !important;
    color: var(--qarar-navy-900) !important;
    box-shadow: 0 8px 18px rgba(10, 26, 55, .10);
}

.qarar-live-map-marker,
.qarar-leaflet-circle-marker {
    filter: drop-shadow(0 10px 14px rgba(10, 26, 55, .25));
}

.qarar-live-map-marker.active {
    outline: 4px solid rgba(31, 94, 255, .18);
}

.qarar-basic-table table,
.qarar-minister-table table,
.qarar-audit-table table,
.qarar-centers-list table,
.qarar-locks-table table,
.qarar-saved-reports-page table {
    border-spacing: 0;
}

.qarar-basic-table tbody tr:nth-child(even),
.qarar-minister-table tbody tr:nth-child(even),
.qarar-audit-table tbody tr:nth-child(even),
.qarar-centers-list tbody tr:nth-child(even),
.qarar-locks-table tbody tr:nth-child(even),
.qarar-saved-reports-page tbody tr:nth-child(even) {
    background: rgba(243, 246, 251, .55);
}

.qarar-basic-table td,
.qarar-minister-table td,
.qarar-audit-table td,
.qarar-centers-list td,
.qarar-locks-table td,
.qarar-saved-reports-page td {
    color: #20314f;
}

.qarar-basic-table th,
.qarar-minister-table th,
.qarar-audit-table th,
.qarar-centers-list th,
.qarar-locks-table th,
.qarar-saved-reports-page th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-weight: 900;
}

.qarar-audit-clear-button,
.qarar-locks-actions button,
[data-lock-action],
[data-lock-bulk] {
    box-shadow: 0 12px 24px rgba(10, 26, 55, .14) !important;
}

.qarar-profile-menu,
.qarar-profile-button,
.qarar-sidebar-toggle,
input,
select,
textarea,
button {
    transition:
        background-color .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease,
        filter .16s ease;
}

button:not(:disabled):active {
    transform: translateY(1px);
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(240, 189, 89, .24) !important;
    border-color: rgba(240, 189, 89, .68) !important;
}

.qarar-center-state.locked,
.qarar-lock-pill.locked,
.qarar-audit-type.locked {
    background: #fff1f2 !important;
    color: #b42318 !important;
}

.qarar-center-state.open,
.qarar-lock-pill.open,
.qarar-audit-type.open {
    background: #ecfdf3 !important;
    color: #047857 !important;
}

.qarar-center-state.active,
.qarar-audit-type.active {
    background: #eff6ff !important;
    color: #0b4ea2 !important;
}

/* Executive command-center refinement for the active summary dashboard. */
.app-shell .workspace {
    background:
        radial-gradient(circle at 88% 4%, rgba(240, 189, 89, .12), transparent 28%),
        linear-gradient(180deg, #f6f8fb 0%, #eef3f9 100%) !important;
}

.command-summary.full-span,
.qarar-executive-summary-page .qarar-executive-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(240, 189, 89, .24) !important;
    background:
        radial-gradient(circle at 16% 20%, rgba(240, 189, 89, .20), transparent 28%),
        linear-gradient(135deg, #041b37 0%, #082e62 58%, #0b4a82 100%) !important;
    box-shadow: 0 24px 48px rgba(4, 27, 55, .20) !important;
    color: #fff !important;
}

.command-summary.full-span::after,
.qarar-executive-summary-page .qarar-executive-hero::after {
    content: "";
    position: absolute;
    inset: -62px auto auto -28px;
    width: 310px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(240, 189, 89, .20);
    box-shadow:
        0 0 0 26px rgba(240, 189, 89, .055),
        0 0 0 52px rgba(240, 189, 89, .04),
        0 0 0 78px rgba(240, 189, 89, .025);
    pointer-events: none;
}

.command-summary-copy,
.command-summary-meta,
.qarar-executive-summary-page .qarar-executive-hero > * {
    position: relative;
    z-index: 1;
}

.command-summary h1,
.command-summary h2,
.qarar-executive-summary-page .qarar-executive-hero h1 {
    color: #fff !important;
    letter-spacing: 0 !important;
}

.command-summary p,
.command-summary span,
.command-summary small,
.command-summary-meta,
.qarar-executive-summary-page .qarar-executive-hero p {
    color: rgba(255, 255, 255, .78) !important;
}

.command-summary-meta article,
.command-summary-meta > div,
.qarar-executive-summary-page .qarar-executive-hero article {
    border: 1px solid rgba(255, 255, 255, .16) !important;
    background: rgba(255, 255, 255, .09) !important;
    backdrop-filter: blur(10px);
}

.executive-kpi-bar.full-span {
    gap: 12px !important;
}

.executive-kpi-bar article,
.performance-strip article,
.executive-insight-card,
.quick-actions-bar.full-span,
.qarar-executive-summary-page .qarar-executive-card,
.qarar-executive-summary-page .qarar-executive-map,
.qarar-executive-summary-page .qarar-executive-chart {
    border: 1px solid rgba(92, 111, 139, .14) !important;
    border-radius: 16px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .94)) !important;
    box-shadow: 0 18px 42px rgba(10, 26, 55, .085) !important;
}

.executive-kpi-bar article {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 18px 18px 16px !important;
}

.executive-kpi-bar article::after {
    content: "";
    position: absolute;
    inset-inline: 18px;
    bottom: 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--qarar-gold), rgba(8, 46, 98, .12));
}

.executive-kpi-bar article.tone-blue::after {
    background: linear-gradient(90deg, #2f6df6, rgba(47, 109, 246, .18));
}

.executive-kpi-bar article.tone-green::after {
    background: linear-gradient(90deg, #21a872, rgba(33, 168, 114, .18));
}

.executive-kpi-bar article.tone-red::after {
    background: linear-gradient(90deg, #ef4444, rgba(239, 68, 68, .16));
}

.executive-kpi-bar article.tone-gold::after {
    background: linear-gradient(90deg, var(--qarar-gold), rgba(240, 189, 89, .18));
}

.executive-kpi-bar svg,
.quick-actions-bar svg {
    filter: drop-shadow(0 8px 12px rgba(10, 26, 55, .12));
}

.executive-kpi-bar strong {
    color: #071f43 !important;
    font-size: clamp(24px, 2.1vw, 34px) !important;
    line-height: 1.05 !important;
}

.executive-kpi-bar span,
.executive-kpi-bar small,
.performance-strip small,
.executive-insight-card p {
    color: #66758f !important;
}

.quick-actions-bar.full-span {
    align-items: center;
    padding: 12px !important;
}

.quick-actions-bar button,
.quick-actions-bar a {
    border-radius: 12px !important;
    font-weight: 900 !important;
}

.quick-actions-bar button:first-child {
    background: linear-gradient(135deg, #082e62, #0b4a82) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(8, 46, 98, .18) !important;
}

.executive-insight-card {
    position: relative;
    overflow: hidden;
}

.executive-insight-card::before {
    content: "";
    position: absolute;
    inset-block: 18px;
    inset-inline-start: 0;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--qarar-gold), #2f6df6);
}

.insight-highlights article,
.performance-strip article {
    background: rgba(243, 247, 252, .78) !important;
    border: 1px solid rgba(92, 111, 139, .12) !important;
    border-radius: 14px !important;
}

.qarar-executive-summary-page h2,
.qarar-executive-summary-page h3,
.executive-insight-card h2,
.executive-insight-card h3 {
    color: #071f43 !important;
}

.qrar-executive-live-map-shell {
    border-radius: 14px !important;
    border: 1px solid rgba(92, 111, 139, .18) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.qrar-executive-map-marker {
    box-shadow: 0 10px 20px rgba(10, 26, 55, .25) !important;
}

.qrar-executive-map-marker.high {
    background: #21a872 !important;
}

.qrar-executive-map-marker.medium {
    background: var(--qarar-gold) !important;
}

.qrar-executive-map-marker.low {
    background: #ef4444 !important;
}

.qrar-executive-map-marker.empty {
    background: #9aa6b7 !important;
}

.qarar-executive-summary-page {
    gap: 16px !important;
}

.qarar-executive-primary,
.qarar-live-strip {
    gap: 12px !important;
}

.qarar-executive-primary article,
.qarar-live-strip article,
.qarar-executive-panel {
    border: 1px solid rgba(92, 111, 139, .14) !important;
    border-radius: 16px !important;
    background:
        radial-gradient(circle at 12% 14%, rgba(240, 189, 89, .10), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(248, 251, 255, .96)) !important;
    box-shadow: 0 18px 42px rgba(10, 26, 55, .085) !important;
}

.qarar-executive-primary article span,
.qarar-live-strip article span,
.qarar-executive-panel p,
.qarar-executive-panel span {
    color: #65748d !important;
}

.qarar-executive-primary article strong,
.qarar-live-strip article strong,
.qarar-executive-panel strong {
    color: #071f43 !important;
}

.qarar-executive-panel h2,
.qarar-executive-map h3,
.qarar-executive-chart h3 {
    position: relative;
    padding-inline-start: 12px;
}

.qarar-executive-panel h2::before,
.qarar-executive-map h3::before,
.qarar-executive-chart h3::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .24em;
    bottom: .24em;
    width: 4px;
    border-radius: 999px;
    background: var(--qarar-gold);
}

.qarar-executive-panel p {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(244, 247, 251, .74);
}

.qarar-executive-summary-page table,
.operations-dashboard table {
    overflow: hidden;
    border-radius: 12px;
}

.qarar-executive-summary-page th,
.operations-dashboard th {
    color: #59677d !important;
    background: #f4f7fb !important;
}

.qarar-executive-summary-page tbody tr:hover,
.operations-dashboard tbody tr:hover {
    background: #eef6ff !important;
}

@media (max-width: 900px) {
    .command-summary.full-span,
    .qarar-executive-summary-page .qarar-executive-hero {
        border-radius: 14px !important;
    }

    .executive-kpi-bar.full-span {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .executive-kpi-bar.full-span {
        grid-template-columns: 1fr !important;
    }
}

/* Calmer executive summary pass: less glare, less visual noise. */
.app-shell .workspace {
    background: linear-gradient(180deg, #f7f9fc 0%, #f1f5f9 100%) !important;
}

.qarar-executive-summary-page {
    gap: 14px !important;
}

.command-summary.full-span,
.qarar-executive-summary-page .qarar-executive-hero {
    border-color: rgba(149, 164, 186, .20) !important;
    background: linear-gradient(135deg, #08264c 0%, #0a3a68 100%) !important;
    box-shadow: 0 16px 34px rgba(8, 38, 76, .14) !important;
}

.command-summary.full-span::after,
.qarar-executive-summary-page .qarar-executive-hero::after {
    opacity: .22;
    width: 220px;
    inset: -82px auto auto -58px;
    border-color: rgba(255, 255, 255, .12);
    box-shadow:
        0 0 0 28px rgba(255, 255, 255, .025),
        0 0 0 56px rgba(255, 255, 255, .018) !important;
}

.qarar-executive-summary-page .qarar-executive-hero {
    min-height: 142px !important;
    padding: 18px !important;
}

.qarar-executive-summary-page .qarar-executive-hero h1 {
    font-size: clamp(24px, 2vw, 30px) !important;
    line-height: 1.25 !important;
}

.qarar-executive-summary-page .qarar-executive-hero p {
    color: rgba(255, 255, 255, .70) !important;
    font-size: 12.5px !important;
}

.command-summary-meta article,
.command-summary-meta > div,
.qarar-executive-summary-page .qarar-executive-hero article {
    border-color: rgba(255, 255, 255, .12) !important;
    background: rgba(255, 255, 255, .06) !important;
    box-shadow: none !important;
}

.executive-kpi-bar article,
.performance-strip article,
.executive-insight-card,
.quick-actions-bar.full-span,
.qarar-executive-summary-page .qarar-executive-card,
.qarar-executive-summary-page .qarar-executive-map,
.qarar-executive-summary-page .qarar-executive-chart,
.qarar-executive-primary article,
.qarar-live-strip article,
.qarar-executive-panel {
    border-color: rgba(125, 143, 166, .14) !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(15, 35, 65, .055) !important;
}

.qarar-executive-primary article,
.qarar-live-strip article {
    min-height: 106px;
    padding: 16px !important;
}

.qarar-executive-primary article::before,
.qarar-live-strip article::before {
    opacity: .42;
    background: #f3f7fb !important;
    box-shadow: inset 0 0 0 1px rgba(125, 143, 166, .12) !important;
}

.qarar-executive-primary article::after,
.qarar-live-strip article::after,
.executive-kpi-bar article::after {
    height: 2px !important;
    opacity: .42;
    background: #d8e1ec !important;
}

.qarar-executive-primary article strong,
.qarar-live-strip article strong,
.executive-kpi-bar strong {
    font-size: clamp(22px, 1.8vw, 28px) !important;
}

.qarar-executive-primary article span,
.qarar-live-strip article span,
.qarar-executive-panel p,
.qarar-executive-panel span,
.executive-kpi-bar span,
.executive-kpi-bar small,
.performance-strip small,
.executive-insight-card p {
    color: #6f7f94 !important;
}

.qarar-executive-panel p {
    padding: 8px 10px;
    background: #f7f9fc !important;
}

.qarar-executive-panel h2::before,
.qarar-executive-map h3::before,
.qarar-executive-chart h3::before,
.executive-insight-card::before {
    background: #b9c5d3 !important;
}

.quick-actions-bar.full-span {
    padding: 10px !important;
}

.quick-actions-bar button:first-child {
    background: #0a3a68 !important;
    box-shadow: 0 10px 22px rgba(10, 58, 104, .12) !important;
}

.executive-kpi-bar svg,
.quick-actions-bar svg {
    filter: none !important;
}

.qrar-executive-live-map-shell {
    border-color: rgba(125, 143, 166, .16) !important;
    box-shadow: none !important;
}

.qrar-executive-map-marker,
.qarar-live-map-marker,
.qarar-leaflet-circle-marker {
    filter: none !important;
    box-shadow: none !important;
}

/* Soft accent colors: gentle differentiation without restoring glare. */
.qarar-executive-primary article,
.qarar-live-strip article,
.qarar-executive-panel,
.qarar-executive-summary-page .qarar-executive-map,
.qarar-executive-summary-page .qarar-executive-chart {
    position: relative;
    overflow: hidden;
}

.qarar-executive-primary article::after,
.qarar-live-strip article::after,
.qarar-executive-panel::after,
.qarar-executive-summary-page .qarar-executive-map::after,
.qarar-executive-summary-page .qarar-executive-chart::after {
    content: "";
    position: absolute;
    inset-inline: 16px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    opacity: .72;
}

.qarar-executive-primary article:nth-child(1) {
    background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
}

.qarar-executive-primary article:nth-child(1)::after {
    background: #60a5fa !important;
}

.qarar-executive-primary article:nth-child(2) {
    background: linear-gradient(180deg, #ffffff, #f8fcf9) !important;
}

.qarar-executive-primary article:nth-child(2)::after {
    background: #6ee7b7 !important;
}

.qarar-executive-primary article:nth-child(3) {
    background: linear-gradient(180deg, #ffffff, #fbf9ff) !important;
}

.qarar-executive-primary article:nth-child(3)::after {
    background: #a78bfa !important;
}

.qarar-executive-primary article:nth-child(4) {
    background: linear-gradient(180deg, #ffffff, #fffaf3) !important;
}

.qarar-executive-primary article:nth-child(4)::after {
    background: #f6c76f !important;
}

.qarar-live-strip article:nth-child(1),
.qarar-live-strip article:nth-child(2) {
    background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
}

.qarar-live-strip article:nth-child(1)::after,
.qarar-live-strip article:nth-child(2)::after {
    background: #7dd3fc !important;
}

.qarar-live-strip article:nth-child(3) {
    background: linear-gradient(180deg, #ffffff, #f8fcf9) !important;
}

.qarar-live-strip article:nth-child(3)::after {
    background: #86efac !important;
}

.qarar-live-strip article:nth-child(4) {
    background: linear-gradient(180deg, #ffffff, #fff7f7) !important;
}

.qarar-live-strip article:nth-child(4)::after {
    background: #fca5a5 !important;
}

.qarar-executive-panel:nth-child(1)::after,
.qarar-executive-summary-page .qarar-executive-map::after {
    background: #93c5fd !important;
}

.qarar-executive-panel:nth-child(2)::after,
.qarar-executive-summary-page .qarar-executive-chart::after {
    background: #c4b5fd !important;
}

.qarar-executive-panel:nth-child(3)::after {
    background: #f9d08a !important;
}

.qarar-executive-panel p:nth-of-type(1) {
    background: #f5f9ff !important;
}

.qarar-executive-panel p:nth-of-type(2) {
    background: #f8f7ff !important;
}

.qarar-executive-panel p:nth-of-type(3) {
    background: #fffaf0 !important;
}

/* Balanced accent details for a friendlier, still calm dashboard. */
.qarar-executive-summary-page .qarar-executive-hero span {
    color: #bfdbfe !important;
}

.qarar-executive-summary-page .qarar-executive-hero article strong {
    color: #f8d98b !important;
}

.qarar-executive-primary article:nth-child(1)::before,
.qarar-live-strip article:nth-child(1)::before {
    background: #eaf4ff !important;
}

.qarar-executive-primary article:nth-child(2)::before,
.qarar-live-strip article:nth-child(3)::before {
    background: #eafbf2 !important;
}

.qarar-executive-primary article:nth-child(3)::before {
    background: #f2edff !important;
}

.qarar-executive-primary article:nth-child(4)::before {
    background: #fff5dc !important;
}

.qarar-live-strip article:nth-child(2)::before {
    background: #ecfeff !important;
}

.qarar-live-strip article:nth-child(4)::before {
    background: #fff1f2 !important;
}

.qarar-executive-panel h2::before,
.qarar-executive-map h3::before,
.qarar-executive-chart h3::before {
    background: linear-gradient(180deg, #93c5fd, #c4b5fd) !important;
}

.qarar-executive-map .qarar-basic-section-title span,
.qarar-executive-chart .qarar-basic-section-title span {
    color: #5f6f86 !important;
}

.quick-actions-bar button:not(:first-child),
.quick-actions-bar a {
    background: #f8fafc !important;
    border: 1px solid rgba(125, 143, 166, .16) !important;
    color: #19345c !important;
}

.quick-actions-bar button:not(:first-child):hover,
.quick-actions-bar a:hover {
    background: #eff6ff !important;
    border-color: rgba(96, 165, 250, .34) !important;
}

/* Saved reports page repair: balance the three KPI cards and remove stray icon dots. */
.qarar-saved-reports-page .qarar-basic-kpis {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.qarar-saved-reports-page .qarar-basic-kpis article {
    min-height: 118px !important;
    padding: 18px !important;
    overflow: hidden;
}

.qarar-saved-reports-page .qarar-basic-kpis article::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: 4px !important;
    border-radius: 0 !important;
    background: #d6a43b !important;
    box-shadow: none !important;
}

.qarar-saved-reports-page .qarar-basic-kpis article:nth-child(1)::before {
    background: #1f5eff !important;
}

.qarar-saved-reports-page .qarar-basic-table {
    border-radius: 16px !important;
    overflow: hidden;
}

.qarar-saved-reports-page .qarar-basic-section-title {
    min-height: 68px;
}

.qarar-saved-reports-page .qarar-basic-section-title h3:empty {
    display: none;
}

@media (max-width: 980px) {
    .qarar-saved-reports-page .qarar-basic-kpis {
        grid-template-columns: 1fr !important;
    }
}

/* Executive participation dashboard */
.qarar-participation-page {
    display: grid;
    gap: 14px !important;
}

.qarar-participation-loading {
    padding: 28px;
    border: 1px solid var(--qarar-border-soft);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--qarar-shadow-card);
}

.qarar-participation-status {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.qarar-participation-status article {
    display: grid;
    gap: 5px;
    min-height: 82px;
    padding: 14px 16px;
    border: 1px solid rgba(125, 143, 166, .16);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 10px 24px rgba(7, 24, 47, .06);
}

.qarar-participation-status span,
.qarar-participation-completion span,
.qarar-participation-chart header span,
.qarar-participation-insights span,
.qarar-participation-rank-grid h4 {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.qarar-participation-status strong {
    color: var(--qarar-navy-950);
    font-size: 18px;
    font-weight: 950;
}

.qarar-participation-status article.complete {
    border-color: rgba(22, 163, 74, .22);
    background: linear-gradient(180deg, #fff, #f0fdf4);
}

.qarar-participation-status article.pending {
    border-color: rgba(245, 158, 11, .25);
    background: linear-gradient(180deg, #fff, #fff7ed);
}

.qarar-participation-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.qarar-participation-kpis article {
    position: relative;
    min-height: 126px !important;
    padding: 18px 16px !important;
    gap: 7px !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.qarar-participation-kpis article:hover,
.qarar-participation-status article:hover,
.qarar-participation-chart:hover,
.qarar-participation-insights article:hover,
.qarar-participation-rank-grid article:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 94, 255, .20) !important;
    box-shadow: 0 14px 30px rgba(7, 24, 47, .10) !important;
}

.qarar-participation-kpis .kpi-icon {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eff6ff;
    color: #0b4ea2;
    font-size: 19px;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .22);
}

.qarar-participation-kpis article:nth-child(2) .kpi-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.qarar-participation-kpis article:nth-child(3) .kpi-icon {
    background: #fffbeb;
    color: #d97706;
}

.qarar-participation-kpis article:nth-child(4) .kpi-icon {
    background: #fef2f2;
    color: #dc2626;
}

.qarar-participation-kpis strong {
    font-size: clamp(25px, 2vw, 34px) !important;
}

.tone-high {
    color: #16a34a !important;
}

.tone-medium {
    color: #d97706 !important;
}

.tone-low {
    color: #dc2626 !important;
}

.qarar-participation-completion {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(125, 143, 166, .16);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fbfcff);
    box-shadow: 0 10px 24px rgba(7, 24, 47, .06);
}

.qarar-participation-completion div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qarar-participation-completion strong {
    color: var(--qarar-navy-950);
    font-weight: 950;
}

.qarar-participation-completion > i,
.qarar-participation-rank-grid p i {
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf5;
}

.qarar-participation-completion > i b,
.qarar-participation-rank-grid p i em {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
}

.qarar-participation-completion .high,
.qarar-participation-rank-grid .high {
    background: #16a34a;
}

.qarar-participation-completion .medium,
.qarar-participation-rank-grid .medium {
    background: #f59e0b;
}

.qarar-participation-completion .low,
.qarar-participation-rank-grid .low {
    background: #dc2626;
}

.qarar-participation-layout {
    grid-template-columns: 1.28fr .92fr !important;
    align-items: stretch;
    gap: 12px !important;
}

.qarar-participation-chart {
    display: grid;
    gap: 12px;
    min-height: 350px;
    padding: 16px;
    border: 1px solid rgba(125, 143, 166, .16);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fbfcff);
    box-shadow: var(--qarar-shadow-card);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.qarar-participation-chart.wide {
    grid-column: span 2;
    min-height: 360px;
}

.qarar-participation-chart header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.qarar-participation-chart h2 {
    margin: 3px 0 0;
    color: var(--qarar-navy-950);
    font-size: 18px;
    font-weight: 950;
}

.qarar-participation-chart header strong {
    color: #0b4ea2;
    font-size: 21px;
    font-weight: 950;
}

.qarar-chart-canvas {
    position: relative;
    width: 100%;
    height: 280px;
    min-height: 0;
}

.qarar-chart-canvas.tall {
    height: 286px;
}

.qarar-chart-canvas.compact {
    height: 230px;
}

.qarar-chart-canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

.qarar-chart-error {
    min-height: 0;
    margin: 0;
    color: #dc2626;
    font-weight: 800;
}

.qarar-participation-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.qarar-participation-split p {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 850;
}

.qarar-participation-split i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.qarar-participation-split .high {
    background: #16a34a;
}

.qarar-participation-split .low {
    background: #dc2626;
}

.qarar-participation-split strong {
    color: var(--qarar-navy-950);
}

.qarar-participation-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.qarar-participation-insights article,
.qarar-participation-rank-grid article {
    display: grid;
    gap: 8px;
    padding: 15px;
    border: 1px solid rgba(125, 143, 166, .16);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(7, 24, 47, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.qarar-participation-insights strong {
    color: var(--qarar-navy-950);
    font-size: 17px;
    font-weight: 950;
}

.qarar-participation-insights small {
    color: #0b4ea2;
    font-weight: 900;
}

.qarar-participation-top {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(125, 143, 166, .16);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fbfcff);
    box-shadow: var(--qarar-shadow-card);
}

.qarar-participation-rank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qarar-participation-rank-grid h4 {
    margin: 0;
    color: var(--qarar-navy-950);
    font-size: 16px;
}

.qarar-participation-rank-grid p {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    margin: 0;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.qarar-participation-rank-grid p strong {
    color: var(--qarar-navy-950);
    font-size: 14px;
    font-weight: 950;
}

.qarar-participation-rank-grid p span {
    color: #475569;
    font-weight: 950;
}

.qarar-participation-rank-grid p i {
    grid-column: 1 / -1;
    height: 8px;
}

@media (max-width: 1180px) {
    .qarar-participation-status,
    .qarar-participation-kpis,
    .qarar-participation-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .qarar-participation-layout {
        grid-template-columns: 1fr !important;
    }

    .qarar-participation-chart.wide {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .qarar-participation-status,
    .qarar-participation-kpis,
    .qarar-participation-insights,
    .qarar-participation-rank-grid,
    .qarar-participation-split {
        grid-template-columns: 1fr !important;
    }

    .qarar-participation-completion div,
    .qarar-participation-chart header {
        align-items: start;
        flex-direction: column;
    }

    .qarar-chart-canvas,
    .qarar-chart-canvas.tall {
        height: 250px;
    }
}

/* Cleaner executive card headers */
.qarar-executive-summary-page .qarar-executive-map,
.qarar-executive-summary-page .qarar-executive-chart,
.qarar-executive-summary-page .qarar-executive-panel {
    overflow: hidden;
}

.qarar-executive-summary-page .qarar-executive-map > .qarar-basic-section-title,
.qarar-executive-summary-page .qarar-executive-chart > .qarar-basic-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -16px -16px 14px;
    padding: 18px 22px 18px 20px !important;
    border: 0 !important;
    border-top: 3px solid rgba(240, 189, 89, .85);
    border-radius: 14px 14px 0 0;
    background:
        linear-gradient(90deg, rgba(240, 189, 89, .10), transparent 45%),
        linear-gradient(135deg, #061b39, #0b326a);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
}

.qarar-executive-summary-page .qarar-executive-map > .qarar-basic-section-title::before,
.qarar-executive-summary-page .qarar-executive-chart > .qarar-basic-section-title::before,
.qarar-executive-summary-page .qarar-executive-panel > h2::before {
    content: "";
    flex: 0 0 auto;
    order: 3;
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: #b7c7ff !important;
    box-shadow: 0 0 0 4px rgba(183, 199, 255, .10);
}

.qarar-executive-summary-page .qarar-executive-map > .qarar-basic-section-title h3,
.qarar-executive-summary-page .qarar-executive-chart > .qarar-basic-section-title h3 {
    margin: 0;
    padding: 0 !important;
    color: #fff !important;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.45;
}

.qarar-executive-summary-page .qarar-executive-map > .qarar-basic-section-title h3::before,
.qarar-executive-summary-page .qarar-executive-chart > .qarar-basic-section-title h3::before {
    display: none !important;
}

.qarar-executive-summary-page .qarar-executive-map > .qarar-basic-section-title span,
.qarar-executive-summary-page .qarar-executive-chart > .qarar-basic-section-title span {
    max-width: 46%;
    color: rgba(255, 255, 255, .74) !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
    text-align: left;
}

.qarar-executive-summary-page .qarar-executive-panel > h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -16px -16px 14px !important;
    padding: 17px 22px 17px 20px !important;
    border-radius: 14px 14px 0 0;
    background:
        linear-gradient(90deg, rgba(240, 189, 89, .09), transparent 48%),
        linear-gradient(135deg, #061b39, #0b326a);
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 950;
    line-height: 1.45;
}

.qarar-executive-summary-page .qarar-executive-panel > h2::before {
    position: static !important;
    inset: auto !important;
    display: block;
    transform: none !important;
}

.qarar-executive-summary-page .qarar-executive-map:nth-of-type(1) > .qarar-basic-section-title,
.qarar-executive-summary-page .qarar-executive-panel:nth-child(1) > h2 {
    border-top-color: #93c5fd;
}

.qarar-executive-summary-page .qarar-executive-chart:nth-of-type(2) > .qarar-basic-section-title,
.qarar-executive-summary-page .qarar-executive-panel:nth-child(2) > h2 {
    border-top-color: #c4b5fd;
}

.qarar-executive-summary-page .qarar-executive-chart:nth-of-type(3) > .qarar-basic-section-title,
.qarar-executive-summary-page .qarar-executive-panel:nth-child(3) > h2 {
    border-top-color: #f0bd59;
}
.qarar-live-display-page {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: 12px;
    height: calc(100vh - 28px);
    min-height: 680px;
    overflow: hidden;
    padding: 12px 18px 14px;
    background: linear-gradient(135deg, #f6f9fc 0%, #edf3f9 100%);
}

.qarar-live-display-page .qarar-live-header {
    min-height: 112px;
    padding: 18px 24px;
    border-radius: 14px;
    background: #07182f;
    box-shadow: 0 16px 36px rgba(7, 24, 47, .18);
}

.qarar-live-display-page .qarar-live-header h1 {
    margin: 5px 0 4px;
    font-size: clamp(26px, 2.2vw, 38px);
}

.qarar-live-display-page .qarar-live-header p {
    max-width: 820px;
    font-size: clamp(14px, 1.05vw, 18px);
    line-height: 1.7;
}

.qarar-live-state {
    display: grid;
    min-width: 190px;
    gap: 6px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

.qarar-live-state strong {
    color: #fff;
    font-size: 19px;
}

.qarar-live-state-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.qarar-live-state-steps i {
    overflow: hidden;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qarar-live-state-steps i.active {
    background: #1f5eff;
    color: #fff;
}

.qarar-live-state.good strong { color: #7df0aa; }
.qarar-live-state.warning strong { color: #ffd36a; }
.qarar-live-state.danger strong { color: #ff8f8f; }
.qarar-live-state.info strong { color: #93c5fd; }

.qarar-live-display-page .qarar-live-now {
    min-width: 170px;
    text-align: left;
}

.qarar-live-display-page .qarar-live-now strong {
    font-size: clamp(24px, 2vw, 34px);
}

.qarar-live-now em {
    color: rgba(255, 255, 255, .7);
    font-style: normal;
    font-weight: 800;
}

.qarar-live-display-page .qarar-live-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.qarar-live-display-page .qarar-live-kpis article {
    min-height: 104px;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(7, 24, 47, .08);
}

.qarar-live-display-page .qarar-live-kpis strong {
    font-size: clamp(24px, 2.1vw, 36px);
}

.qarar-live-kpis article[data-live-number] strong {
    animation: qrarLivePulse .9s ease;
}

.qarar-live-kpis article.countdown.good small {
    display: block;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #edf1f7;
}

.qarar-live-kpis article.countdown.good small i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
}

.qarar-live-scenes {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    background: #07182f;
    box-shadow: 0 16px 38px rgba(7, 24, 47, .14);
}

.qarar-live-scene {
    position: absolute;
    inset: 0;
    display: grid;
    min-height: 0;
    padding: 22px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .45s ease, transform .45s ease;
}

.qarar-live-scene.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.qarar-live-scene > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #fff;
}

.qarar-live-scene > header span {
    color: #f3c766;
    font-weight: 900;
}

.qarar-live-scene > header strong {
    color: #d8e6fb;
    font-size: clamp(20px, 1.8vw, 32px);
}

.qarar-live-mega {
    align-self: center;
    justify-self: center;
    display: grid;
    max-width: 900px;
    gap: 12px;
    color: #fff;
    text-align: center;
}

.qarar-live-mega strong {
    color: #f3c766;
    font-size: clamp(78px, 10vw, 160px);
    line-height: .9;
    font-variant-numeric: tabular-nums;
}

.qarar-live-mega span {
    font-size: clamp(24px, 2.4vw, 42px);
    font-weight: 900;
}

.qarar-live-mega p {
    margin: 0;
    color: #d8e6fb;
    font-size: clamp(18px, 1.5vw, 28px);
    line-height: 1.8;
}

.qarar-live-rings {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 220px));
    justify-content: center;
    gap: 18px;
}

.qarar-live-rings div {
    display: grid;
    place-items: center;
    gap: 8px;
    color: #d8e6fb;
}

.qarar-live-rings b {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #07182f 58%, transparent 59%),
        conic-gradient(#16a34a var(--value), rgba(255, 255, 255, .12) 0);
    color: #fff;
    font-size: 28px;
}

.qarar-live-canvas,
.qarar-live-map-full {
    min-height: 0;
    height: 100%;
}

.qarar-live-canvas {
    padding: 12px;
}

.qarar-live-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(290px, .8fr);
    min-height: 0;
    gap: 18px;
}

.qarar-live-toplist {
    display: grid;
    align-content: center;
    gap: 10px;
}

.qarar-live-toplist p,
.qarar-live-updates p {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(216, 230, 251, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #d8e6fb;
}

.qarar-live-toplist strong,
.qarar-live-updates strong {
    display: block;
    color: #fff;
    font-size: 17px;
}

.qarar-live-toplist span,
.qarar-live-updates span {
    display: block;
    color: #91a8c6;
    font-weight: 800;
}

.qarar-live-toplist i {
    display: block;
    overflow: hidden;
    height: 7px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.qarar-live-toplist b {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.qarar-live-toplist p.good b { background: #16a34a; }
.qarar-live-toplist p.medium b { background: #f59e0b; }
.qarar-live-toplist p.danger b { background: #dc2626; }
.qarar-live-toplist p.info b { background: #1f5eff; }

.qarar-live-map-full {
    overflow: hidden;
    border-radius: 13px;
    background: #eef5fb;
}

.qarar-live-map-tip {
    display: grid;
    gap: 3px;
    min-width: 150px;
    color: #07182f;
    font-weight: 800;
}

.qarar-live-map-tip strong {
    font-size: 15px;
}

.qarar-live-updates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 12px;
}

.qarar-live-updates time {
    display: inline-block;
    margin-bottom: 6px;
    color: #f3c766;
    font-weight: 900;
}

.qarar-live-scene-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 28px;
}

.qarar-live-scene-dots span,
.qarar-live-scene-dots button[data-live-dot] {
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: #dfe8f3;
    color: #5f6f86;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.qarar-live-scene-dots span.active,
.qarar-live-scene-dots button[data-live-dot].active {
    background: #1f5eff;
    color: #fff;
}

.qarar-live-ticker {
    overflow: hidden;
    min-height: 38px;
    border-radius: 11px;
    background: #07182f;
    color: #fff;
}

.qarar-live-ticker div {
    display: inline-flex;
    min-width: max-content;
    gap: 42px;
    padding: 9px 18px;
    white-space: nowrap;
    animation: qrarLiveTicker 38s linear infinite;
    will-change: transform;
}

.qarar-live-ticker span {
    color: #d8e6fb;
    font-weight: 900;
}

@keyframes qrarLiveTicker {
    from { transform: translateX(-100%); }
    to { transform: translateX(100vw); }
}

@keyframes qrarLivePulse {
    0% { transform: scale(.96); color: #1f5eff; }
    100% { transform: scale(1); color: #07182f; }
}

@media (max-width: 1200px) {
    .qarar-live-display-page {
        min-height: 760px;
    }

    .qarar-live-split,
    .qarar-live-updates {
        grid-template-columns: 1fr;
    }
}

/* Fit the live display inside the visible operations workspace. */
.workspace > .qarar-live-display-page {
    height: auto;
    min-height: calc(100vh - 218px);
    max-height: none;
    padding: 10px 14px 12px;
    gap: 10px;
    overflow: visible;
}

.qarar-live-display-page .qarar-live-header {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, .52fr) minmax(190px, .34fr);
    align-items: center;
    min-height: 0;
    padding: 16px 22px;
}

.qarar-live-display-page .qarar-live-header h1 {
    font-size: clamp(28px, 2.4vw, 40px);
}

.qarar-live-display-page .qarar-live-header p {
    max-width: 780px;
    margin: 0;
    font-size: clamp(13px, 1vw, 17px);
    line-height: 1.6;
}

.qarar-live-state {
    min-width: 0;
    padding: 12px 14px;
}

.qarar-live-state-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qarar-live-display-page .qarar-live-kpis {
    gap: 10px;
}

.qarar-live-display-page .qarar-live-kpis article {
    min-height: 92px !important;
    padding: 14px 16px !important;
}

.qarar-live-display-page .qarar-live-kpis strong {
    font-size: clamp(24px, 2vw, 34px) !important;
}

.qarar-live-scenes {
    min-height: clamp(420px, calc(100vh - 530px), 560px);
}

.qarar-live-scene {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 20px 22px;
}

.qarar-live-scene > header {
    min-height: 38px;
}

.qarar-live-scene > header strong {
    font-size: clamp(22px, 2vw, 34px);
}

.qarar-live-split {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
    align-items: stretch;
    height: 100%;
    min-height: 0;
    gap: 14px;
}

.qarar-live-split .qarar-live-canvas {
    min-width: 0;
    padding: 8px 10px 6px;
}

.qarar-live-toplist {
    align-content: start;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-inline-end: 4px;
}

.qarar-live-toplist p {
    padding: 10px 12px;
}

.qarar-live-toplist strong {
    font-size: 15px;
}

.qarar-live-toplist span {
    font-size: 12px;
}

.qarar-live-map-full {
    min-height: 0;
}

.qarar-live-updates {
    align-content: start;
    max-height: 100%;
    overflow-y: auto;
}

.qarar-live-scene-dots {
    position: sticky;
    bottom: 0;
    z-index: 4;
    min-height: 34px;
    padding-block: 2px;
    background: linear-gradient(180deg, rgba(237, 243, 249, .76), #edf3f9);
}

.qarar-live-ticker {
    min-height: 32px;
}

.qarar-live-ticker div {
    padding-block: 7px;
}

@media (max-height: 820px) {
    .workspace > .qarar-live-display-page {
        min-height: calc(100vh - 206px);
        gap: 8px;
    }

    .qarar-live-display-page .qarar-live-header {
        padding: 14px 20px;
    }

    .qarar-live-display-page .qarar-live-kpis article {
        min-height: 84px !important;
        padding-block: 12px !important;
    }

    .qarar-live-scenes {
        min-height: 390px;
    }

    .qarar-live-scene {
        padding: 16px 20px;
    }
}

@media (max-width: 1180px) {
    .qarar-live-display-page .qarar-live-header {
        grid-template-columns: 1fr;
    }

    .qarar-live-display-page .qarar-live-now {
        text-align: right;
    }

    .qarar-live-scenes {
        min-height: 560px;
    }

    .qarar-live-split {
        grid-template-columns: 1fr;
    }
}

/* Focus mode for the live display: more room, fewer scenes, better balance. */
body.qarar-live-display-mode .qarar-user-topbar {
    display: none !important;
}

body.qarar-live-display-mode .workspace {
    padding-top: 10px !important;
}

body.qarar-live-display-mode .workspace > .qarar-live-display-page {
    min-height: calc(100vh - 128px);
    padding: 8px 12px 10px;
}

body.qarar-live-display-mode .qarar-live-header {
    min-height: 0;
    padding: 12px 18px !important;
}

body.qarar-live-display-mode .qarar-live-header h1 {
    margin: 0 0 1px !important;
    font-size: clamp(24px, 2vw, 34px) !important;
}

body.qarar-live-display-mode .qarar-live-header p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    transform: translateY(-3px);
}

body.qarar-live-display-mode .qarar-live-state {
    padding: 10px 12px;
}

body.qarar-live-display-mode .qarar-live-state-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.qarar-live-display-mode .qarar-live-now strong {
    font-size: clamp(22px, 1.7vw, 30px) !important;
}

body.qarar-live-display-mode .qarar-live-kpis article {
    min-height: 78px !important;
    padding: 11px 14px !important;
}

body.qarar-live-display-mode .qarar-live-kpis strong {
    font-size: clamp(23px, 1.8vw, 31px) !important;
}

body.qarar-live-display-mode .qarar-live-scenes {
    min-height: clamp(500px, calc(100vh - 374px), 680px);
}

body.qarar-live-display-mode .qarar-live-scene {
    padding: 16px 18px;
}

.qarar-live-overview-grid {
    display: grid;
    grid-template-columns: minmax(270px, .8fr) minmax(250px, .55fr) minmax(0, 1.3fr);
    align-items: stretch;
    min-height: 0;
    gap: 16px;
}

.qarar-live-overview-grid .qarar-live-mega,
.qarar-live-overview-grid .qarar-live-rings,
.qarar-live-overview-grid .qarar-live-canvas {
    align-self: stretch;
    min-height: 0;
    padding: 16px;
    border: 1px solid rgba(216, 230, 251, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
}

.qarar-live-overview-grid .qarar-live-mega {
    align-content: center;
    justify-items: center;
}

.qarar-live-overview-grid .qarar-live-mega strong {
    font-size: clamp(58px, 6vw, 112px);
}

.qarar-live-overview-grid .qarar-live-mega span {
    font-size: clamp(20px, 2vw, 32px);
}

.qarar-live-overview-grid .qarar-live-mega p {
    font-size: clamp(13px, 1.05vw, 18px);
    line-height: 1.7;
}

.qarar-live-overview-grid .qarar-live-rings {
    align-content: center;
    grid-template-columns: 1fr;
}

.qarar-live-overview-grid .qarar-live-rings b {
    width: 118px;
    height: 118px;
    font-size: 23px;
}

.qarar-live-map-updates-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    min-height: 0;
    gap: 14px;
}

.qarar-live-map-updates-grid .qarar-live-map-full,
.qarar-live-map-updates-grid .qarar-live-updates {
    min-height: 0;
    height: 100%;
}

.qarar-live-map-updates-grid .qarar-live-updates {
    grid-template-columns: 1fr;
    align-content: start;
    overflow-y: auto;
}

body.qarar-live-display-mode .qarar-live-scene-dots span,
body.qarar-live-display-mode .qarar-live-scene-dots button[data-live-dot] {
    min-width: 138px;
    text-align: center;
}

@media (max-width: 1300px) {
    .qarar-live-overview-grid,
    .qarar-live-map-updates-grid {
        grid-template-columns: 1fr;
    }

    .qarar-live-map-updates-grid {
        grid-template-rows: minmax(260px, 1fr) minmax(120px, .45fr);
    }

    body.qarar-live-display-mode .qarar-live-scenes {
        min-height: 720px;
    }
}

/* Single-screen live layout: no page scroll and bottom strip always visible. */
body.qarar-live-display-mode {
    overflow: hidden !important;
}

body.qarar-live-display-mode .app-shell {
    align-items: stretch !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

body.qarar-live-display-mode .workspace {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    padding: 8px 12px !important;
}

body.qarar-live-display-mode .workspace > .qarar-live-display-page {
    grid-template-rows: auto auto minmax(0, 1fr) 30px 34px !important;
    height: calc(100vh - 16px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 16px) !important;
    gap: 8px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

body.qarar-live-display-mode .qarar-live-header {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, .5fr) minmax(160px, .28fr);
    max-height: 104px;
    overflow: hidden;
    padding: 10px 16px !important;
    border-radius: 12px;
    position: relative;
}

body.qarar-live-display-mode .qarar-live-header h1 {
    font-size: clamp(22px, 1.8vw, 31px) !important;
    line-height: 1.2;
}

body.qarar-live-display-mode .qarar-live-header > div:first-child {
    align-self: center;
    transform: translateY(-3px);
}

body.qarar-live-display-mode .qarar-live-header span,
body.qarar-live-display-mode .qarar-live-header small,
body.qarar-live-display-mode .qarar-live-header p {
    font-size: 12px !important;
}

body.qarar-live-display-mode .qarar-live-state {
    gap: 4px;
    padding: 8px 10px !important;
}

body.qarar-live-display-mode .qarar-live-state strong {
    font-size: 16px;
}

body.qarar-live-display-mode .qarar-live-state-steps i {
    padding: 3px 5px;
    font-size: 9px;
}

body.qarar-live-display-mode .qarar-live-now {
    min-width: 0;
}

body.qarar-live-display-mode .qarar-live-kpis {
    gap: 8px !important;
}

body.qarar-live-display-mode .qarar-live-kpis article {
    min-height: 68px !important;
    padding: 9px 12px !important;
    gap: 3px !important;
}

body.qarar-live-display-mode .qarar-live-kpis span,
body.qarar-live-display-mode .qarar-live-kpis small {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

body.qarar-live-display-mode .qarar-live-kpis strong {
    font-size: clamp(21px, 1.55vw, 28px) !important;
}

body.qarar-live-display-mode .qarar-live-scenes {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

body.qarar-live-display-mode .qarar-live-scene {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 12px 14px !important;
}

body.qarar-live-display-mode .qarar-live-scene > header {
    min-height: 28px;
}

body.qarar-live-display-mode .qarar-live-scene > header strong {
    font-size: clamp(18px, 1.45vw, 27px) !important;
}

body.qarar-live-display-mode .qarar-live-overview-grid,
body.qarar-live-display-mode .qarar-live-split,
body.qarar-live-display-mode .qarar-live-map-updates-grid {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: 10px;
}

body.qarar-live-display-mode .qarar-live-overview-grid .qarar-live-mega,
body.qarar-live-display-mode .qarar-live-overview-grid .qarar-live-rings,
body.qarar-live-display-mode .qarar-live-overview-grid .qarar-live-canvas {
    padding: 12px;
    overflow: hidden;
}

body.qarar-live-display-mode .qarar-live-overview-grid .qarar-live-mega strong {
    font-size: clamp(48px, 4.8vw, 86px);
}

body.qarar-live-display-mode .qarar-live-overview-grid .qarar-live-mega span {
    font-size: clamp(17px, 1.55vw, 26px);
}

body.qarar-live-display-mode .qarar-live-overview-grid .qarar-live-rings {
    gap: 10px;
}

body.qarar-live-display-mode .qarar-live-overview-grid .qarar-live-rings b {
    width: 98px;
    height: 98px;
    font-size: 20px;
}

body.qarar-live-display-mode .qarar-live-canvas,
body.qarar-live-display-mode .qarar-live-map-full {
    height: 100% !important;
    min-height: 0 !important;
}

body.qarar-live-display-mode .qarar-live-toplist,
body.qarar-live-display-mode .qarar-live-updates {
    max-height: 100%;
    overflow: hidden !important;
}

body.qarar-live-display-mode .qarar-live-toplist p,
body.qarar-live-display-mode .qarar-live-updates p {
    padding: 8px 10px;
}

body.qarar-live-display-mode .qarar-live-updates {
    gap: 8px;
}

body.qarar-live-display-mode .qarar-live-scene-dots {
    position: static !important;
    min-height: 30px !important;
    padding: 0 !important;
    background: transparent !important;
}

body.qarar-live-display-mode .qarar-live-scene-dots span,
body.qarar-live-display-mode .qarar-live-scene-dots button[data-live-dot] {
    min-width: 126px;
    padding: 5px 10px;
    font-size: 11px;
}

body.qarar-live-display-mode .qarar-live-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid rgba(220, 38, 38, .22);
    border-radius: 999px;
    background: #fff1f2;
    color: #b91c1c;
    font-family: inherit;
    font-size: 11px;
    font-weight: 950;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

body.qarar-live-display-mode .qarar-live-exit:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-1px);
}

body.qarar-live-display-mode .qarar-live-ticker {
    display: flex;
    align-items: center;
    min-height: 34px !important;
    border-radius: 10px;
}

body.qarar-live-display-mode .qarar-live-ticker div {
    padding: 0 16px !important;
}

body.qarar-live-display-mode .qarar-live-header > div:first-child {
    display: grid;
    grid-template-rows: auto auto minmax(34px, 1fr);
    height: 100%;
    transform: none !important;
}

body.qarar-live-display-mode .qarar-live-header .qarar-live-summary-line {
    position: static;
    align-self: center;
    justify-self: center;
    width: min(100%, 680px);
    max-width: none !important;
    margin: 4px auto 0 !important;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #d8e6fb;
    font-size: clamp(10px, .82vw, 13px) !important;
    font-weight: 900;
    line-height: 1.45 !important;
    text-align: center;
    white-space: normal;
    transform: none !important;
}

body.qarar-live-display-mode .qarar-live-overview-grid .qarar-live-mega .qarar-live-summary-line {
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: clamp(13px, 1.05vw, 18px) !important;
}

/* Match the executive summary KPI circles with centers and interactive map cards. */
.qarar-executive-summary-page .qarar-executive-primary article {
    position: relative !important;
    overflow: hidden !important;
}

.qarar-executive-summary-page .qarar-executive-primary article::before {
    content: "" !important;
    position: absolute !important;
    top: 18px !important;
    left: 18px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .85), transparent 32%),
        linear-gradient(135deg, rgba(240, 189, 89, .32), rgba(8, 34, 75, .13)) !important;
    box-shadow: inset 0 0 0 1px rgba(240, 189, 89, .22) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.qarar-executive-summary-page .qarar-executive-primary article::after {
    content: "" !important;
    position: absolute !important;
    inset-inline: 16px !important;
    top: auto !important;
    bottom: 0 !important;
    height: 3px !important;
    border-radius: 999px 999px 0 0 !important;
    background: linear-gradient(90deg, var(--qarar-gold), rgba(8, 34, 75, .10)) !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.qarar-executive-summary-page .qarar-executive-primary article > * {
    position: relative;
    z-index: 1;
}

.qarar-executive-reports-page {
    display: grid;
    gap: 16px;
    padding: 0 28px 34px;
    direction: rtl;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.qarar-executive-report-hero,
.qarar-executive-report-panel,
.qarar-executive-builder-form,
.qarar-executive-preview {
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7, 24, 47, .08);
}

.qarar-executive-report-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #07182f, #123f8c);
    color: #fff;
}

.qarar-executive-report-hero span,
.qarar-executive-report-panel header span,
.qarar-executive-preview header span {
    color: #d6a43b;
    font-size: 13px;
    font-weight: 900;
}

.qarar-executive-report-hero h1 {
    margin: 5px 0 8px;
    color: #fff;
    font-size: 28px;
}

.qarar-executive-report-hero p {
    margin: 0;
    color: #d8e6fb;
    line-height: 1.8;
}

.qarar-executive-report-hero button,
.qarar-executive-builder-actions button,
.qarar-executive-table button {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #123f8c;
    color: #fff;
    font: inherit;
    font-weight: 900;
}

.qarar-executive-report-hero button {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .12);
}

.qarar-executive-report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    background: #fff;
}

.qarar-executive-report-tabs button {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f8fbff;
    color: #344054;
    font: inherit;
    font-weight: 900;
}

.qarar-executive-report-tabs button.active {
    border-color: #123f8c;
    background: #123f8c;
    color: #fff;
}

.qarar-executive-message {
    padding: 12px 14px;
    border: 1px solid #b7dfc5;
    border-radius: 8px;
    background: #f0fff4;
    color: #17663a;
    font-weight: 800;
}

.qarar-executive-message.error {
    border-color: #ffd1d1;
    background: #fff5f5;
    color: #b42318;
}

.qarar-executive-report-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.qarar-executive-report-kpis article {
    display: grid;
    gap: 6px;
    min-height: 118px;
    padding: 16px;
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(7, 24, 47, .07);
}

.qarar-executive-report-kpis span,
.qarar-executive-preview-kpis span,
.qarar-executive-builder-form span {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.qarar-executive-report-kpis strong,
.qarar-executive-report-panel header strong,
.qarar-executive-preview header strong {
    color: #07182f;
    font-size: 22px;
    font-weight: 950;
}

.qarar-executive-report-kpis small,
.qarar-executive-list small {
    color: #667085;
    font-weight: 800;
}

.qarar-executive-report-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.qarar-executive-report-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.qarar-executive-report-panel header,
.qarar-executive-preview header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f7;
}

.qarar-executive-list {
    display: grid;
    gap: 8px;
}

.qarar-executive-list p {
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8fbff;
    color: #344054;
    font-weight: 800;
}

.qarar-executive-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qarar-executive-list.warning p {
    border-color: #ffe4bf;
    background: #fff8ed;
    color: #8a5f05;
}

.qarar-executive-builder {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
    gap: 16px;
    align-items: start;
}

.qarar-report-wizard {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.qarar-executive-builder-form,
.qarar-executive-preview {
    display: grid;
    gap: 12px;
    padding: 16px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.qarar-executive-builder-form {
    grid-template-columns: 1fr;
}

.qarar-wizard-head {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f8fbff;
}

.qarar-wizard-head span {
    color: #d6a43b;
    font-size: 13px;
    font-weight: 950;
}

.qarar-wizard-head strong {
    color: #07182f;
    font-size: 19px;
    line-height: 1.6;
}

.qarar-wizard-title {
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fff;
}

.qarar-report-type-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.qarar-report-type-cards label {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 118px;
    padding: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f8fbff;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.qarar-report-type-cards input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qarar-report-type-cards label:has(input:checked) {
    border-color: #123f8c;
    background: #eef5ff;
    box-shadow: inset 0 0 0 2px rgba(18, 63, 140, .12);
}

.qarar-report-type-cards label:has(input:checked)::before {
    content: "تم الاختيار";
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #123f8c;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.qarar-report-type-cards strong {
    color: #07182f;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.6;
}

.qarar-report-type-cards small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}

.qarar-wizard-quick-settings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.qarar-wizard-quick-settings label {
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fff;
}

.qarar-wizard-advanced {
    grid-column: 1 / -1;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fbfcff;
}

.qarar-wizard-advanced summary {
    min-height: 44px;
    padding: 12px 14px;
    color: #123f8c;
    font-weight: 950;
    cursor: pointer;
}

.qarar-wizard-advanced > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 12px 12px;
}

.qarar-wizard-advanced fieldset {
    margin: 0 12px 12px;
}

.qarar-executive-builder-form label,
.qarar-executive-builder-form fieldset {
    display: grid;
    gap: 7px;
}

.qarar-executive-builder-form input,
.qarar-executive-builder-form select {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    color: #07182f;
    font: inherit;
    font-weight: 800;
}

.qarar-executive-builder-form select[multiple] {
    min-height: 118px;
}

.qarar-executive-builder-form fieldset {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
}

.qarar-executive-builder-form legend {
    padding: 0 6px;
    color: #07182f;
    font-weight: 900;
}

.qarar-executive-builder-form fieldset label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.qarar-executive-builder-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 8px;
}

.qarar-executive-builder-actions button:first-child {
    background: #123f8c;
}

.qarar-executive-builder-actions button:nth-child(2) {
    background: #0f766e;
}

.qarar-executive-builder-actions button:nth-child(3) {
    background: #17663a;
}

.qarar-executive-builder-actions button:nth-child(4) {
    background: #8a5f05;
}

.qarar-executive-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 1px dashed #cfd8e5;
    border-radius: 8px;
    background: #f8fbff;
    color: #667085;
    text-align: center;
    font-weight: 900;
}

.qarar-executive-preview-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    min-width: 0;
}

.qarar-executive-preview-kpis article {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8fbff;
}

.qarar-executive-preview-kpis strong {
    color: #07182f;
    font-size: 20px;
}

.qarar-executive-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.qarar-executive-chart-bars {
    display: grid;
    gap: 8px;
}

.qarar-executive-chart-bars p {
    display: grid;
    grid-template-columns: minmax(90px, .8fr) minmax(0, 1fr) 54px;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #344054;
    font-weight: 900;
    min-width: 0;
}

.qarar-executive-chart-bars span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qarar-executive-chart-bars i {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #edf1f7;
}

.qarar-executive-chart-bars b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #123f8c, #d6a43b);
}

.qarar-executive-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fff;
}

.qarar-executive-table th,
.qarar-executive-table td {
    padding: 11px;
    border-bottom: 1px solid #edf1f7;
    color: #344054;
    text-align: right;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.qarar-executive-table th {
    background: #f8fbff;
    color: #07182f;
    font-weight: 950;
}

.qarar-executive-table strong,
.qarar-executive-table b {
    color: #07182f;
}

.qarar-executive-table button {
    min-height: 34px;
    margin: 2px;
    padding: 6px 10px;
    font-size: 12px;
}

.qarar-executive-table button.danger {
    background: #b42318;
}

.qarar-executive-pill {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef5ff;
    color: #123f8c;
    font-size: 12px;
    font-weight: 900;
}

.qarar-actual-reports {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7, 24, 47, .08);
}

.qarar-actual-reports > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f7;
}

.qarar-actual-reports > header span,
.qarar-actual-detail-card header span,
.qarar-actual-editable span {
    color: #d6a43b;
    font-size: 12px;
    font-weight: 900;
}

.qarar-actual-reports h2,
.qarar-actual-detail-card h3 {
    margin: 4px 0;
    color: #07182f;
}

.qarar-actual-reports p {
    margin: 0;
    color: #667085;
    line-height: 1.7;
}

.qarar-actual-reports > header > strong {
    display: grid;
    place-items: center;
    min-width: 54px;
    min-height: 42px;
    border-radius: 8px;
    background: #f8fbff;
    color: #123f8c;
}

.qarar-actual-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, .35fr) minmax(160px, .35fr);
    gap: 10px;
}

.qarar-actual-controls input,
.qarar-actual-controls select {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    color: #07182f;
    font: inherit;
    font-weight: 800;
}

.qarar-actual-layout {
    display: grid;
    grid-template-columns: minmax(260px, .38fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.qarar-actual-list {
    display: grid;
    gap: 8px;
    max-height: 760px;
    overflow: auto;
}

.qarar-actual-list button {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8fbff;
    color: #344054;
    font: inherit;
    text-align: right;
}

.qarar-actual-list button.active {
    border-color: #123f8c;
    background: #eef5ff;
}

.qarar-actual-list span {
    color: #d6a43b;
    font-size: 11px;
    font-weight: 900;
}

.qarar-actual-list strong {
    color: #07182f;
    font-size: 15px;
}

.qarar-actual-list small {
    color: #667085;
    font-weight: 800;
}

.qarar-actual-list b {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    color: #123f8c;
    font-size: 11px;
}

.qarar-actual-detail-card {
    display: grid;
    gap: 14px;
}

.qarar-actual-detail-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8fbff;
}

.qarar-actual-detail-card > header small {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff;
    color: #123f8c;
    font-weight: 900;
}

.qarar-actual-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.qarar-actual-summary article {
    display: grid;
    gap: 5px;
    min-height: 82px;
    padding: 11px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fff;
}

.qarar-actual-summary span {
    color: #667085;
    font-size: 11px;
    font-weight: 900;
}

.qarar-actual-summary strong {
    color: #07182f;
    font-size: 16px;
}

.qarar-actual-editable {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fff;
}

.qarar-actual-editable textarea {
    width: 100%;
    min-height: 98px;
    padding: 10px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    color: #07182f;
    font: inherit;
    resize: vertical;
}

.qarar-actual-editable article {
    display: grid;
    gap: 6px;
}

.qarar-actual-editable p {
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fbff;
    color: #344054;
    font-weight: 800;
}

.qarar-actual-map {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(18, 63, 140, .08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(18, 63, 140, .08) 1px, transparent 1px),
        #f8fbff;
    background-size: 42px 42px;
}

.qarar-actual-map span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #667085;
    font-weight: 900;
}

.qarar-actual-map i {
    position: absolute;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #123f8c;
    box-shadow: 0 4px 14px rgba(7, 24, 47, .22);
}

.qarar-actual-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.qarar-actual-sections article,
.qarar-actual-unavailable {
    display: grid;
    gap: 6px;
    padding: 11px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8fbff;
}

.qarar-actual-sections strong,
.qarar-actual-unavailable strong {
    color: #07182f;
}

.qarar-actual-sections small,
.qarar-actual-unavailable span {
    color: #667085;
    font-weight: 800;
}

.qarar-actual-unavailable {
    grid-template-columns: 1fr;
}

.qarar-executive-actions {
    min-width: 260px;
}

.qarar-export-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #17663a;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.qarar-executive-schedule-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #f8fbff;
}

.qarar-executive-schedule-form input,
.qarar-executive-schedule-form select,
.qarar-executive-schedule-form textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    color: #07182f;
    font: inherit;
    font-weight: 800;
}

.qarar-executive-schedule-form textarea {
    grid-column: span 2;
    min-height: 76px;
    resize: vertical;
}

.qarar-executive-schedule-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 900;
}

.qarar-executive-schedule-form button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: #123f8c;
    color: #fff;
    font: inherit;
    font-weight: 900;
}

.qarar-toast-stack {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 2147483000;
    display: grid;
    gap: 10px;
    width: min(390px, calc(100vw - 36px));
    direction: rtl;
    pointer-events: none;
}

.qarar-toast {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    align-items: start;
    gap: 10px;
    min-height: 66px;
    padding: 13px 13px 12px 11px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: 8px;
    background: rgba(20, 83, 45, .96);
    color: #fff;
    box-shadow: 0 18px 44px rgba(7, 24, 47, .22), 0 2px 8px rgba(7, 24, 47, .12);
    opacity: 0;
    transform: translate(-18px, 12px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: auto;
}

.qarar-toast.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.qarar-toast.is-leaving {
    opacity: 0;
    transform: translate(-12px, 8px) scale(.98);
}

.qarar-toast::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: rgba(255, 255, 255, .72);
}

.qarar-toast-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.qarar-toast-icon::before {
    content: "✓";
}

.qarar-toast-loading .qarar-toast-icon::before {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 999px;
    animation: qarar-toast-spin .78s linear infinite;
}

.qarar-toast-error {
    background: rgba(159, 44, 44, .96);
}

.qarar-toast-error .qarar-toast-icon::before {
    content: "!";
}

.qarar-toast-warning {
    background: rgba(155, 95, 10, .96);
}

.qarar-toast-warning .qarar-toast-icon::before {
    content: "!";
}

.qarar-toast-info {
    background: rgba(18, 63, 140, .96);
}

.qarar-toast-info .qarar-toast-icon::before {
    content: "i";
}

.qarar-toast-content {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-top: 1px;
}

.qarar-toast-content strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 900;
}

.qarar-toast-content span {
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.7;
    font-weight: 750;
}

.qarar-toast-close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .84);
    font: inherit;
    font-size: 18px;
    line-height: 1;
    transition: background .16s ease, color .16s ease;
}

.qarar-toast-close:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

@keyframes qarar-toast-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .qarar-executive-report-kpis,
    .qarar-executive-report-grid.two,
    .qarar-executive-builder,
    .qarar-report-wizard {
        grid-template-columns: 1fr;
    }

    .qarar-report-type-cards,
    .qarar-wizard-quick-settings,
    .qarar-wizard-advanced > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qarar-executive-builder-actions,
    .qarar-executive-preview-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .qarar-toast-stack {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .qarar-executive-reports-page {
        padding-inline: 14px;
    }

    .qarar-executive-report-hero,
    .qarar-executive-list.compact,
    .qarar-executive-builder-form,
    .qarar-executive-builder-form fieldset,
    .qarar-executive-builder-actions,
    .qarar-executive-preview-kpis,
    .qarar-report-type-cards,
    .qarar-wizard-quick-settings,
    .qarar-wizard-advanced > div {
        grid-template-columns: 1fr;
    }

    .qarar-executive-report-hero {
        display: grid;
    }
}

@media (min-width: 1281px) {
    .app-shell {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }

    .sidebar {
        padding-inline: 20px !important;
    }

    .nav-list button,
    .side-section button,
    .sidebar nav button {
        width: 100% !important;
        justify-content: flex-start !important;
        padding-inline: 12px !important;
        font-size: 13px !important;
    }
}
