@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@400;600;700;800&family=Noto+Kufi+Arabic:wght@500;700&display=swap');

:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #eef6f3;
    --text: #172033;
    --muted: #64748b;
    --line: #d9e1e8;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --blue: #2563eb;
    --amber: #b45309;
    --rose: #be123c;
    --shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.sidebar {
    background: #ffffff;
    border-left: 1px solid var(--line);
    bottom: 0;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 18px 16px;
    position: fixed;
    right: 0;
    top: 0;
    width: 282px;
    z-index: 50;
}

.sidebar-brand {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    padding: 4px 4px 18px;
}

.brand__mark {
    align-items: center;
    background: var(--primary);
    border-radius: var(--radius);
    color: #fff;
    display: inline-flex;
    font-size: 22px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    overflow: hidden;
    width: 44px;
}

.brand__mark img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.brand__mark--image {
    background: #fff;
    border: 1px solid var(--line);
}

.brand strong,
.brand small,
.sidebar-brand strong,
.sidebar-brand small {
    display: block;
}

.brand small,
.sidebar-brand small {
    color: var(--muted);
    font-size: 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav__title {
    color: #94a3b8;
    font-size: 12px;
    padding: 0 10px 4px;
}

.sidebar-nav a {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 15px;
    padding: 10px 12px;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    background: var(--surface-soft);
    border-color: #b7dcd5;
    color: var(--primary-dark);
}

.sidebar-nav a.is-active {
    box-shadow: inset -3px 0 0 var(--primary);
}

.sidebar-user {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 10px;
    padding: 12px;
}

.sidebar-user.is-active {
    background: var(--surface-soft);
    border-color: #b7dcd5;
}

.sidebar-user__profile {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 10px;
    min-width: 0;
}

.sidebar-user__logout {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    margin-right: auto;
    width: 32px;
}

.sidebar-user__logout:hover {
    background: #eef6f3;
    color: var(--primary-dark);
}

.sidebar-user__avatar {
    align-items: center;
    background: var(--primary);
    border-radius: var(--radius);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    width: 38px;
}

.sidebar-user__avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.sidebar-user__avatar--image {
    background: #fff;
}

.sidebar-user__meta {
    min-width: 0;
}

.sidebar-user strong,
.sidebar-user small,
.sidebar-user__meta {
    display: block;
}

.sidebar-user strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user small {
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell {
    margin-right: 282px;
    min-height: 100vh;
}

.page {
    margin: 0 auto;
    max-width: 1460px;
    padding: 26px 22px 52px;
}

.app-footer {
    color: #94a3b8;
    font-size: 11px;
    padding: 0 22px 18px;
    text-align: center;
}

.app-footer small {
    font-size: inherit;
}

.page-title {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.page-subtitle {
    color: var(--muted);
    margin: 6px 0 0;
}

h1,
h2,
h3 {
    line-height: 1.35;
    margin: 0;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 20px;
}

.panel,
.metric,
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel {
    margin-bottom: 18px;
    padding: 18px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 40px auto;
    max-width: 520px;
    padding: 22px;
}

.auth-page-body {
    background:
        radial-gradient(circle at 14% 18%, rgba(15, 118, 110, 0.08), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    min-height: 100vh;
}

.auth-page {
    align-items: center;
    direction: ltr;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 34px 18px;
}

.auth-page__brand {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    display: inline-flex;
    direction: rtl;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 14px;
}

.auth-page__brand strong,
.auth-page__brand small {
    display: block;
}

.auth-page__brand small {
    color: var(--muted);
    font-size: 12px;
}

.auth-page__footer {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 14px;
    text-align: center;
}

.auth-page .alert {
    max-width: 520px;
    width: 100%;
}

.auth-card--standalone {
    direction: rtl;
    margin: 0;
    width: min(100%, 520px);
}

.auth-card--standalone form {
    display: grid;
    gap: 14px;
}

.auth-card--standalone .form-grid {
    width: 100%;
}

.auth-card--standalone .actions {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2px;
    width: 100%;
}

.auth-card--standalone .btn,
.auth-card--standalone button {
    min-width: 0;
    white-space: normal;
    width: 100%;
}

.auth-card--standalone .note-text {
    margin: 0;
}

.auth-grid {
    grid-template-columns: 1fr;
}

.auth-grid .is-wide {
    grid-column: auto;
}

.review-decision-form {
    display: grid;
    gap: 14px;
}

.panel__head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel__head h2 {
    align-items: center;
    display: flex;
    gap: 10px;
}

.section-icon {
    align-items: center;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
    color: #0369a1;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

i[data-lucide],
.lucide {
    flex: 0 0 auto;
    height: 16px;
    stroke-width: 2.2;
    width: 16px;
}

.metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.metric {
    padding: 16px;
}

.metric span {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.metric strong {
    display: block;
    font-size: 26px;
    margin-top: 6px;
}

.metric .metric__value--duration {
    font-size: 21px;
    line-height: 1.45;
}

.metric--blue {
    border-top: 4px solid var(--blue);
}

.metric--green {
    border-top: 4px solid var(--primary);
}

.metric--amber {
    border-top: 4px solid var(--amber);
}

.metric--rose {
    border-top: 4px solid var(--rose);
}

.dashboard-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 243, 0.96)),
        linear-gradient(90deg, rgba(15, 118, 110, 0.12), rgba(180, 83, 9, 0.08));
    border: 1px solid var(--line);
    border-right: 4px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 18px;
    padding: 20px;
}

.dashboard-hero h2 {
    font-size: 27px;
    margin-bottom: 8px;
}

.dashboard-hero p {
    color: var(--muted);
    margin: 0;
    max-width: 820px;
}

.dashboard-kicker {
    align-items: center;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    margin-bottom: 8px;
}

.dashboard-hero__stats {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.dashboard-hero__stats span {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: var(--radius);
    color: #475569;
    display: inline-flex;
    gap: 8px;
    padding: 9px 12px;
}

.dashboard-metrics .metric {
    overflow: hidden;
    position: relative;
}

.metric__icon {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    color: var(--primary-dark);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-bottom: 8px;
    width: 38px;
}

.insight-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.insight-card {
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 13px;
    grid-template-columns: auto 1fr;
    padding: 16px;
}

.insight-card__icon {
    align-items: center;
    border-radius: var(--radius);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.insight-card small,
.insight-card strong,
.insight-card span {
    display: block;
}

.insight-card small {
    color: var(--muted);
    font-size: 12px;
}

.insight-card strong {
    color: var(--text);
    font-size: 19px;
    line-height: 1.45;
    margin: 3px 0;
}

.insight-card span {
    color: #64748b;
    font-size: 13px;
}

.insight-card--teal .insight-card__icon {
    background: #ccfbf1;
    color: #0f766e;
}

.insight-card--blue .insight-card__icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.insight-card--amber .insight-card__icon {
    background: #fef3c7;
    color: #a16207;
}

.insight-card--rose .insight-card__icon {
    background: #ffe4e6;
    color: #be123c;
}

.dashboard-grid {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.dashboard-widget {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
    padding: 16px;
}

.dashboard-widget--wide {
    grid-column: 1 / -1;
}

.dashboard-widget__head {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dashboard-widget__head h2 {
    font-size: 20px;
}

.rank-list,
.raddah-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 38px minmax(0, 1fr);
}

.rank-item__number {
    align-items: center;
    background: #eef6f3;
    border: 1px solid #b7dcd5;
    border-radius: var(--radius);
    color: var(--primary-dark);
    display: inline-flex;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.rank-item__body {
    min-width: 0;
}

.rank-item__meta,
.raddah-summary {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.rank-item__meta strong,
.raddah-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item__meta span,
.raddah-summary span,
.raddah-summary em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.progress-bar {
    background: #eef2f7;
    border-radius: 999px;
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar span {
    background: linear-gradient(90deg, var(--primary), #2dd4bf);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.operation-overview {
    display: grid;
    gap: 12px;
}

.operation-total {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.operation-total strong {
    color: var(--primary-dark);
    font-size: 30px;
}

.operation-total span {
    color: var(--muted);
}

.dashboard-operation-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operation-mini {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: var(--radius);
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 12px 8px;
    text-align: center;
}

.operation-mini i {
    color: var(--primary-dark);
}

.operation-mini strong {
    font-size: 22px;
}

.operation-mini span {
    color: var(--muted);
    font-size: 12px;
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip-cloud span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    gap: 8px;
    padding: 6px 10px;
}

.chip-cloud b {
    color: var(--primary-dark);
}

.raddah-summary {
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 11px;
}

.raddah-summary:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.raddah-summary .progress-bar {
    grid-column: 1 / -1;
    margin-top: 0;
}

.unit-widget-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.unit-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    min-width: 0;
    padding: 13px;
}

.unit-widget i {
    color: var(--primary-dark);
    height: 22px;
    margin-bottom: 8px;
    width: 22px;
}

.unit-widget span,
.unit-widget strong,
.unit-widget small {
    display: block;
}

.unit-widget span {
    color: var(--muted);
    font-size: 12px;
}

.unit-widget strong {
    font-size: 22px;
    margin: 2px 0 4px;
}

.unit-widget small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
}

.quick-actions-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-actions-grid a {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    display: flex;
    gap: 10px;
    padding: 13px;
}

.quick-actions-grid a:hover {
    background: #eef6f3;
    border-color: #b7dcd5;
    color: var(--primary-dark);
}

.quick-actions-grid i {
    color: var(--primary-dark);
    height: 20px;
    width: 20px;
}

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

.report-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr auto;
    padding: 16px;
}

.report-card:hover {
    border-color: #b7dcd5;
    background: #fbfefd;
}

.report-card__icon {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid #b7dcd5;
    border-radius: var(--radius);
    color: var(--primary-dark);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.report-card strong,
.report-card small {
    display: block;
}

.report-card strong {
    font-weight: 600;
}

.report-card small {
    color: var(--muted);
    margin-top: 4px;
}

.report-card__arrow {
    color: var(--muted);
}

.role-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr auto auto;
    padding: 16px;
}

.role-card__icon {
    align-items: center;
    background: #eef6f3;
    border: 1px solid #b7dcd5;
    border-radius: var(--radius);
    color: var(--primary-dark);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.role-card strong,
.role-card small {
    display: block;
}

.role-card strong {
    font-weight: 600;
}

.role-card small {
    color: var(--muted);
    margin-top: 4px;
}

.permission-matrix {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.permission-group {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

.permission-group h3 {
    color: var(--primary-dark);
    font-size: 15px;
    margin-bottom: 10px;
}

.permission-option {
    align-items: flex-start;
    border-top: 1px solid #edf2f7;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.permission-option:first-of-type {
    border-top: 0;
}

.permission-option input {
    margin-top: 5px;
    min-height: auto;
    width: auto;
}

.permission-option strong,
.permission-option small {
    display: block;
}

.permission-option strong {
    font-size: 14px;
    font-weight: 600;
}

.permission-option small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
    margin-top: 2px;
}

.permission-option.is-disabled {
    cursor: default;
    opacity: 0.7;
}

.report-detail {
    padding: 16px;
}

.report-toolbar {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.report-toolbar__meta,
.report-toolbar__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-toolbar__meta span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    gap: 7px;
    padding: 7px 10px;
}

.placeholder-panel {
    align-items: center;
    display: flex;
    gap: 14px;
}

.placeholder-panel__icon {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid #b7dcd5;
    border-radius: var(--radius);
    color: var(--primary-dark);
    display: inline-flex;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.placeholder-panel p {
    color: var(--muted);
    margin: 6px 0 0;
}

.operations-metrics {
    margin-bottom: 16px;
}

.toolbar--operations {
    grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) minmax(160px, 220px) auto;
}

.operations-table {
    min-width: 1050px;
}

.muted-line {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.status-badge {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    padding: 5px 10px;
    white-space: nowrap;
}

.status-badge--muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.status-badge--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.status-badge--success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.status-badge--danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.status-badge--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #a16207;
}

.status-badge--primary {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: var(--primary-dark);
}

.operation-summary-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.detail-list {
    display: grid;
    gap: 10px 14px;
    grid-template-columns: 140px 1fr;
    margin: 0;
}

.detail-list dt {
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
}

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

.operation-detail-table {
    min-width: 1080px;
}

.inline-create-form {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-top: 14px;
    padding: 14px;
}

.operation-mini-grid {
    grid-template-columns: 150px minmax(210px, 1fr) 150px minmax(180px, 1fr) 140px minmax(160px, 1fr);
}

.operation-item-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.operation-doc-grid {
    grid-template-columns: 220px minmax(260px, 1fr);
}

.documents-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-card {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr auto auto;
    padding: 10px;
}

.document-card strong,
.document-card span {
    display: block;
}

.document-card span {
    color: var(--muted);
    font-size: 13px;
}

.file-link {
    align-items: center;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    margin-top: 8px;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

.muted-text {
    color: var(--muted);
}

.timeline {
    display: grid;
    gap: 10px;
}

.timeline-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr auto;
    padding: 10px;
}

.timeline-item p {
    color: var(--muted);
    grid-column: 1 / -1;
    margin: 0;
}

.toolbar {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto auto;
}

.panel--toolbar {
    padding: 14px;
}

.toolbar--subscribers {
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 250px) auto auto;
}

.toolbar-status {
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i,
.input-with-icon .lucide {
    color: #64748b;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.input-with-icon input {
    padding-right: 38px;
}

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

.form-grid .is-wide {
    grid-column: span 2;
}

.field label {
    color: #334155;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.field-hint {
    color: var(--muted);
    font-size: 12px;
    margin: 6px 0 0;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
    outline: none;
}

.search-select {
    position: relative;
}

.search-select__native {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.search-select__trigger {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    color: var(--text);
    display: flex;
    font-weight: 400;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 10px;
    text-align: right;
    width: 100%;
}

.search-select.has-value .search-select__trigger {
    border-color: #9ccdc5;
}

.search-select__trigger span {
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-select__trigger i {
    color: var(--muted);
}

.search-select__panel {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    display: none;
    inset-inline: 0;
    margin-top: 6px;
    overflow: hidden;
    position: absolute;
    z-index: 130;
}

.search-select.is-open .search-select__panel {
    display: block;
}

.search-select__input {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.search-select__input:focus {
    box-shadow: none;
}

.search-select__list {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
}

.search-select__option {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #26364d;
    display: block;
    font-weight: 400;
    min-height: auto;
    padding: 8px 10px;
    text-align: right;
    white-space: normal;
    width: 100%;
}

.search-select__option:hover,
.search-select__option.is-selected {
    background: #eef6f3;
    color: var(--primary-dark);
}

.search-select__empty {
    color: var(--muted);
    padding: 12px;
    text-align: center;
}

.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.btn,
button {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    white-space: nowrap;
}

.btn {
    background: #fff;
    color: var(--text);
}

.btn--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--rose);
}

.btn--muted {
    background: #f8fafc;
    color: #475569;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap--report {
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow);
    padding: 10px;
}

.subscriber-table-wrap {
    margin-bottom: 16px;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    font-weight: 400;
    padding: 10px 12px;
    text-align: right;
    vertical-align: top;
}

th {
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    position: static;
    top: auto;
    white-space: nowrap;
    z-index: auto;
}

td {
    background: #fff;
    font-size: 14px;
    transition: background 160ms ease;
}

tbody tr:hover td {
    background: #f0fdfa;
}

tr:last-child td {
    border-bottom: 0;
}

.report-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1160px;
}

.subscriber-table {
    min-width: 1360px;
}

.subscriber-table th:last-child,
.subscriber-table td:last-child {
    background: #ffffff;
    box-shadow: 8px 0 14px rgba(15, 23, 42, 0.06);
    left: 0;
    position: sticky;
    z-index: 8;
}

.subscriber-table th:last-child {
    background: #f8fafc;
    z-index: 9;
}

.report-table--compact {
    min-width: 760px;
}

.report-table th {
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    color: #26364d;
    padding: 12px;
    position: static;
    top: auto;
    white-space: nowrap;
}

.report-table td {
    background: rgba(255, 255, 255, 0.94);
    font-weight: 400;
    padding: 12px;
    transition: background 160ms ease, transform 160ms ease;
}

.report-table tbody tr:hover td {
    background: #f0fdfa;
}

.dashboard-table {
    min-width: 980px;
}

.dashboard-table th:last-child,
.dashboard-table td:last-child {
    text-align: center;
    width: 96px;
}

.report-row td:first-child {
    border-right: 3px solid #dbe7ef;
}

.th-label,
.unit-chip,
.raddah-pill,
.stat-badge,
.unit-value {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.th-label {
    color: #26364d;
    font-weight: 500;
}

.th-label i {
    color: var(--primary);
}

.th-label--unit i {
    color: #64748b;
}

.unit-chip,
.raddah-pill {
    background: #f8fafc;
    border: 1px solid #dbe7ef;
    border-radius: var(--radius);
    color: #1e293b;
    font-weight: 400;
    padding: 7px 10px;
    white-space: nowrap;
}

.unit-chip i {
    color: var(--row-accent, var(--primary));
}

.raddah-pill {
    min-width: 150px;
}

.raddah-pill__icon {
    align-items: center;
    background: color-mix(in srgb, var(--row-accent, var(--primary)) 14%, white);
    border-radius: 999px;
    color: var(--row-accent, var(--primary));
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.stat-badge {
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 400;
    justify-content: center;
    min-width: 72px;
    padding: 5px 10px;
    white-space: nowrap;
}

.stat-badge--count {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.stat-badge--bags {
    background: #fffbeb;
    border-color: #fde68a;
    color: #a16207;
}

.stat-badge--time {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
    min-width: 96px;
}

.unit-value {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    justify-content: center;
    min-width: 46px;
    padding: 4px 8px;
}

.owner-report-card {
    background: #fff;
    border: 1px solid #bfc8ea;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    overflow: hidden;
}

.owner-report__head {
    align-items: center;
    background: #606993;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
}

.owner-report__head strong {
    font-size: 16px;
}

.owner-report__head span {
    font-weight: 800;
}

.owner-report__tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    padding: 18px 20px;
}

.quick-search {
    align-items: center;
    border: 1px solid #bfc8ea;
    border-radius: var(--radius);
    display: inline-flex;
    gap: 8px;
    min-width: 220px;
    padding: 0 10px;
}

.quick-search i,
.quick-search .lucide {
    color: #475569;
}

.quick-search input {
    border: 0;
    box-shadow: none;
    min-height: 38px;
    padding: 6px 0;
}

.quick-search input:focus {
    box-shadow: none;
}

.tool-pill {
    align-items: center;
    background: #eef1f7;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #4b556f;
    display: inline-flex;
    font-weight: 400;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px;
    position: relative;
}

.tool-pill:hover {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
}

.tool-pill--icon {
    justify-content: center;
    padding: 0;
    width: 38px;
}

.tool-pill[data-tooltip]::after {
    background: #172033;
    border-radius: 6px;
    bottom: calc(100% + 8px);
    color: #fff;
    content: attr(data-tooltip);
    font-size: 12px;
    opacity: 0;
    padding: 4px 8px;
    pointer-events: none;
    position: absolute;
    transform: translateY(4px);
    transition: opacity 120ms ease, transform 120ms ease;
    white-space: nowrap;
    z-index: 30;
}

.tool-pill[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.owner-report__table-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0 20px 20px;
}

.owner-hours-table {
    border-collapse: collapse;
    min-width: 720px;
}

.owner-hours-table th {
    background: #aeb6dd;
    color: #27305e;
    font-weight: 800;
    position: static;
    top: auto;
}

.owner-hours-table th,
.owner-hours-table td {
    border-bottom: 1px solid #aeb6dd;
    padding: 9px 14px;
}

.owner-hours-table tbody tr.is-even td {
    background: #e6e8f3;
}

.owner-hours-table tbody tr.is-odd td {
    background: #ffffff;
}

.owner-hours-table tbody tr:hover td {
    background: #f0fdfa;
}

.owner-hours-table td:last-child,
.owner-hours-table th:last-child {
    text-align: center;
    width: 220px;
}

.share-number {
    align-items: center;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    display: inline-flex;
    font-weight: 400;
    justify-content: center;
    min-width: 52px;
    padding: 4px 10px;
}

.owner-cell {
    align-items: center;
    color: #172033;
    display: inline-flex;
    gap: 8px;
    font-weight: 400;
}

.owner-cell i {
    color: var(--primary);
}

.note-cell {
    color: #64748b;
}

.raddah-pill--small {
    min-width: 120px;
    padding: 5px 8px;
}

.cell-owner {
    max-width: 360px;
    min-width: 280px;
}

.cell-notes {
    max-width: 300px;
    min-width: 220px;
}

.table-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.table-actions--icons {
    justify-content: center;
}

.icon-button {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    min-height: 34px;
    padding: 0;
    position: relative;
    width: 34px;
}

.icon-button:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: var(--primary-dark);
}

.icon-button--edit {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.icon-button--danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--rose);
}

.icon-button--print {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.icon-button[data-tooltip]::after {
    background: #172033;
    border-radius: 6px;
    bottom: calc(100% + 8px);
    color: #fff;
    content: attr(data-tooltip);
    font-size: 12px;
    opacity: 0;
    padding: 4px 8px;
    pointer-events: none;
    position: absolute;
    transform: translateY(4px);
    transition: opacity 120ms ease, transform 120ms ease;
    white-space: nowrap;
    z-index: 30;
}

.icon-button[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.inline-form {
    display: inline;
}

.hidden-form {
    display: none;
}

.profile-hero {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 18px;
    padding: 18px;
}

.profile-hero__avatar {
    align-items: center;
    background: var(--primary);
    border-radius: var(--radius);
    color: #fff;
    display: inline-flex;
    height: 92px;
    justify-content: center;
    overflow: hidden;
    width: 92px;
}

.profile-hero__avatar i,
.profile-hero__avatar .lucide {
    height: 34px;
    width: 34px;
}

.profile-hero__avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-hero__avatar--image {
    background: #fff;
    border: 1px solid var(--line);
}

.profile-kicker {
    color: var(--primary-dark);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-hero h2 {
    font-size: 26px;
}

.profile-hero p {
    color: var(--muted);
    margin: 4px 0 10px;
}

.profile-badges,
.profile-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-badges span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #475569;
    display: inline-flex;
    font-size: 13px;
    gap: 7px;
    padding: 6px 9px;
}

.profile-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.profile-info-card {
    padding: 18px;
}

.profile-info-card h2 {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.profile-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.profile-details div {
    align-items: center;
    border-bottom: 1px solid #eef2f7;
    display: grid;
    gap: 12px;
    grid-template-columns: 150px minmax(0, 1fr);
    padding-bottom: 10px;
}

.profile-details div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-details dt {
    color: var(--muted);
    font-size: 13px;
}

.profile-details dd {
    margin: 0;
}

.falaj-profile-card {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 18px;
    padding: 18px;
}

.falaj-profile-card__media {
    align-items: center;
    display: flex;
    gap: 12px;
}

.falaj-profile-card__logo {
    align-items: center;
    background: var(--primary);
    border-radius: var(--radius);
    color: #fff;
    display: inline-flex;
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 34px;
    font-weight: 700;
    height: 88px;
    justify-content: center;
    overflow: hidden;
    width: 88px;
}

.falaj-profile-card__logo img,
.falaj-profile-card__favicon img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.falaj-profile-card__favicon {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    display: grid;
    font-size: 11px;
    gap: 5px;
    justify-items: center;
    padding: 8px;
    width: 74px;
}

.falaj-profile-card__favicon img {
    height: 30px;
    width: 30px;
}

.falaj-profile-card__body p {
    color: var(--muted);
    margin: 5px 0 12px;
}

.falaj-profile-card__actions {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.settings-tabs {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding: 8px;
}

.settings-tabs a {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
}

.settings-tabs a:hover,
.settings-tabs a.is-active {
    background: var(--surface-soft);
    border-color: #b7dcd5;
    color: var(--primary-dark);
}

.settings-tabs a.is-active {
    box-shadow: inset 0 -3px 0 var(--primary);
    font-weight: 700;
}

.settings-tabs small {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 11px;
    justify-content: center;
    min-width: 24px;
    padding: 1px 7px;
}

.settings-tabs a.is-active small {
    background: #fff;
    color: var(--primary-dark);
}

.user-list-cell {
    align-items: center;
    display: inline-flex;
    gap: 9px;
}

.user-mini-avatar {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid #cde5df;
    border-radius: var(--radius);
    color: var(--primary-dark);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    width: 34px;
}

.user-mini-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.settings-add-form {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

.settings-form-grid {
    align-items: end;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) 110px minmax(220px, 1fr) auto auto;
}

.modal-settings-grid {
    align-items: end;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-table {
    min-width: 1080px;
}

.settings-table input[type="text"],
.settings-table input[type="number"] {
    min-width: 140px;
}

.contact-messages-table {
    min-width: 1160px;
}

.contact-meta,
.message-preview {
    display: grid;
    gap: 3px;
}

.contact-meta span,
.message-preview {
    color: var(--muted);
    font-size: 13px;
}

.message-preview {
    color: #334155;
    max-width: 340px;
    white-space: normal;
}

.signature-field {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 260px;
}

.signature-field img {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 54px;
    object-fit: contain;
    padding: 4px;
    width: 110px;
}

.signature-field span {
    color: var(--muted);
    min-width: 90px;
}

.check-row {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    white-space: nowrap;
}

.check-row input {
    min-height: auto;
    width: auto;
}

.print-toolbar {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.certificate-page {
    background:
        linear-gradient(rgba(255, 253, 247, 0.96), rgba(255, 253, 247, 0.98)),
        radial-gradient(circle at 50% 44%, rgba(15, 94, 89, 0.045), transparent 35%);
    border: 1px solid #b7a46d;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    color: #1f2933;
    font-family: "Amiri", "Noto Naskh Arabic", serif;
    margin: 0 auto;
    height: 297mm;
    overflow: hidden;
    padding: 15mm 15mm 10mm;
    position: relative;
    width: 210mm;
}

.certificate-page::before {
    background:
        linear-gradient(90deg, #b7a46d 0 14px, transparent 14px calc(100% - 14px), #b7a46d calc(100% - 14px) 100%),
        linear-gradient(#b7a46d 0 14px, transparent 14px calc(100% - 14px), #b7a46d calc(100% - 14px) 100%);
    content: "";
    inset: 8mm;
    opacity: 0.42;
    pointer-events: none;
    position: absolute;
}

.certificate-page::after {
    border: 2px solid #0f5e59;
    content: "";
    inset: 10mm;
    opacity: 0.82;
    pointer-events: none;
    position: absolute;
}

.certificate-page > * {
    position: relative;
    z-index: 1;
}

.certificate-ornament {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='%230f5e59' stroke-width='2'%3E%3Cpath d='M66 8l16 38 42-14-22 36 22 36-42-14-16 38-16-38-42 14 22-36L8 32l42 14z'/%3E%3Cpath d='M66 28l10 26 28-8-16 22 16 22-28-8-10 26-10-26-28 8 16-22-16-22 28 8z'/%3E%3Cpath d='M26 26c22 12 58 12 80 0M26 106c22-12 58-12 80 0M26 26c12 22 12 58 0 80M106 26c-12 22-12 58 0 80' stroke='%23b7a46d' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 132px;
    opacity: 0.13;
    position: absolute;
    width: 132px;
    z-index: 0;
}

.certificate-ornament--top {
    right: 15mm;
    top: 15mm;
}

.certificate-ornament--bottom {
    bottom: 14mm;
    left: 15mm;
    opacity: 0.10;
    transform: rotate(180deg);
}

.certificate-watermark {
    color: rgba(15, 94, 89, 0.045);
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 74px;
    font-weight: 700;
    inset-inline: 0;
    letter-spacing: 0;
    position: absolute;
    text-align: center;
    top: 122mm;
    transform: rotate(-12deg);
    z-index: 0;
}

.certificate-header {
    text-align: center;
}

.basmala {
    color: #0f5e59;
    font-size: 22px;
    margin-bottom: 8px;
}

.certificate-meta {
    align-items: center;
    border-bottom: 1px solid rgba(183, 164, 109, 0.75);
    border-top: 1px solid rgba(183, 164, 109, 0.75);
    color: #475569;
    display: flex;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    justify-content: space-between;
    margin: 0 auto 10px;
    max-width: 640px;
    padding: 5px 10px;
}

.certificate-authority {
    color: #546179;
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 14px;
    margin: 0 0 6px;
}

.certificate-header h1 {
    color: #0f5e59;
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 25px;
    margin-bottom: 14px;
}

.certificate-intro {
    color: #1f2933;
    font-size: 20px;
    line-height: 1.85;
    margin: 0 auto 12px;
    max-width: 680px;
    text-align: center;
}

.certificate-intro p {
    margin: 0;
}

.certificate-intro strong {
    background: rgba(255, 255, 255, 0.58);
    border-bottom: 2px solid rgba(183, 164, 109, 0.8);
    color: #0f5e59;
    display: block;
    font-size: 23px;
    line-height: 1.45;
    margin: 8px auto 0;
    max-width: 620px;
    padding: 4px 14px;
}

.certificate-table-wrap {
    margin: 0 auto 12px;
}

.certificate-table {
    border-collapse: separate;
    border-spacing: 0;
    font-family: "Cairo", sans-serif;
    min-width: 0;
    width: 100%;
}

.certificate-table th,
.certificate-table td {
    background: rgba(255, 255, 255, 0.64);
    border-bottom: 1px solid rgba(183, 164, 109, 0.52);
    color: #1f2933;
    font-size: 14px;
    padding: 6px 12px;
}

.certificate-table th {
    color: #0f5e59;
    font-weight: 700;
    text-align: right;
    width: 34%;
}

.certificate-table td {
    text-align: center;
    width: 66%;
}

.certificate-notes {
    background: rgba(15, 94, 89, 0.045);
    border: 1px solid rgba(183, 164, 109, 0.45);
    color: #334155;
    font-family: "Cairo", sans-serif;
    margin-top: 10px;
    padding: 8px 14px;
}

.certificate-notes h2 {
    color: #0f5e59;
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 15px;
    margin-bottom: 6px;
}

.certificate-notes ul {
    display: grid;
    gap: 3px 18px;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding-right: 22px;
}

.certificate-footer {
    align-items: stretch;
    display: grid;
    break-inside: avoid;
    gap: 12px;
    grid-template-columns: 1fr 150px 122px;
    margin-top: 12px;
    page-break-inside: avoid;
}

.committee-signatures h2,
.sheikh-approval h2,
.certificate-qr h2 {
    color: #0f5e59;
    font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
    font-size: 13px;
    margin-bottom: 6px;
}

.committee-signature {
    align-items: center;
    border-bottom: 1px dotted rgba(71, 85, 105, 0.38);
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 120px;
    min-height: 30px;
    padding: 3px 0;
}

.committee-signature img {
    height: 34px;
    object-fit: contain;
    width: 120px;
}

.certificate-empty {
    color: var(--muted);
    margin: 0;
}

.sheikh-approval {
    border: 1px solid rgba(183, 164, 109, 0.5);
    min-height: 78px;
    padding: 8px;
}

.certificate-qr {
    align-items: center;
    border: 1px solid rgba(183, 164, 109, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    break-inside: avoid;
    padding: 6px;
    page-break-inside: avoid;
    text-align: center;
}

.certificate-qr img {
    background: #fff;
    border: 1px solid rgba(15, 94, 89, 0.18);
    height: 82px;
    margin-bottom: 4px;
    object-fit: contain;
    padding: 4px;
    width: 82px;
}

.certificate-qr small,
.certificate-qr span {
    color: #475569;
    display: block;
    font-family: "Cairo", sans-serif;
    font-size: 9px;
    line-height: 1.35;
}

.certificate-qr span {
    direction: ltr;
    overflow-wrap: anywhere;
}

.certificate-warning {
    color: #9f1239;
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    margin: 6px 0 0;
    position: relative;
    text-align: center;
}

.verify-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    padding: 20px;
}

.verify-card__icon {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.verify-card__icon i {
    height: 30px;
    width: 30px;
}

.verify-card--valid .verify-card__icon {
    background: #ecfdf5;
    color: #047857;
}

.verify-card--invalid .verify-card__icon {
    background: #fff1f2;
    color: #be123c;
}

.verify-card h1 {
    font-size: 26px;
    margin-bottom: 4px;
}

.verify-card p {
    color: var(--muted);
    margin: 0;
}

.official-report {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.official-report__head {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(180, 83, 9, 0.05)),
        #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px;
}

.official-report__brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.official-report__brand strong,
.official-report__brand span {
    display: block;
}

.official-report__brand strong {
    font-size: 18px;
}

.official-report__brand span {
    color: var(--muted);
    font-size: 13px;
}

.official-report__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.official-report__meta span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    padding: 6px 10px;
}

.official-report__table-wrap {
    overflow: auto;
}

.subscriber-report-table {
    min-width: 1360px;
}

.subscriber-report-table col.col-share,
.subscriber-print-table col.col-share {
    width: 8%;
}

.subscriber-report-table col.col-owner,
.subscriber-print-table col.col-owner {
    width: 25%;
}

.subscriber-report-table col.col-raddah,
.subscriber-print-table col.col-raddah {
    width: 12%;
}

.subscriber-report-table col.col-unit,
.subscriber-print-table col.col-unit {
    width: 5.6%;
}

.subscriber-report-table col.col-notes,
.subscriber-print-table col.col-notes {
    width: 15.8%;
}

.subscriber-report-table th {
    color: #26364d;
    font-weight: 700;
    text-align: right;
}

.subscriber-report-table th,
.subscriber-report-table td {
    vertical-align: middle;
}

.subscriber-print-pages {
    display: none;
}

.owner-hours-print-pages {
    display: none;
}

@page {
    size: A4 portrait;
    margin: 0;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html,
    body {
        background: #fff;
        height: 297mm;
        margin: 0;
        width: 210mm;
    }

    .sidebar,
    .app-footer,
    .print-toolbar,
    .alert {
        display: none !important;
    }

    .app-shell {
        margin: 0;
    }

    .page {
        max-width: none;
        padding: 0;
        width: 210mm;
    }

    .certificate-page {
        background:
            linear-gradient(rgba(255, 253, 247, 0.96), rgba(255, 253, 247, 0.98)),
            radial-gradient(circle at 50% 44%, rgba(15, 94, 89, 0.045), transparent 35%);
        break-after: avoid;
        break-inside: avoid;
        box-shadow: none;
        height: 297mm;
        margin: 0;
        page-break-after: avoid;
        page-break-inside: avoid;
        width: 210mm;
    }
}

@media print {
    body.subscriber-report-body {
        height: auto !important;
        width: auto !important;
    }

    body.subscriber-report-body .page-title,
    body.subscriber-report-body .report-screen-controls,
    body.subscriber-report-body .sidebar,
    body.subscriber-report-body .app-footer {
        display: none !important;
    }

    body.subscriber-report-body .app-shell {
        margin: 0 !important;
    }

    body.subscriber-report-body .page {
        max-width: none !important;
        padding: 0 !important;
        width: auto !important;
    }

    body.subscriber-report-body .official-report {
        display: none !important;
    }

    body.subscriber-report-body .subscriber-print-pages {
        color: #111827;
        display: block !important;
        font-family: "Cairo", Tahoma, Arial, sans-serif;
        overflow: visible !important;
        width: 100% !important;
    }

    body.subscriber-report-body .subscriber-print-page {
        background: #fff;
        break-after: page;
        display: flex;
        flex-direction: column;
        min-height: 276mm;
        overflow: visible;
        width: 100%;
    }

    body.subscriber-report-body .subscriber-print-page:last-child {
        break-after: auto;
    }

    body.subscriber-report-body .subscriber-print-header {
        align-items: center;
        border: 1px solid #0f766e;
        border-radius: 4px;
        display: grid;
        gap: 3mm;
        grid-template-columns: 46mm 1fr 34mm;
        margin-bottom: 2mm;
        padding: 2.4mm 3mm;
    }

    body.subscriber-report-body .subscriber-print-header__brand,
    body.subscriber-report-body .subscriber-print-header__meta {
        align-items: center;
        display: flex;
        gap: 2mm;
    }

    body.subscriber-report-body .subscriber-print-header__brand .brand__mark {
        border-radius: 4px;
        font-size: 15px;
        height: 8.5mm;
        width: 8.5mm;
    }

    body.subscriber-report-body .subscriber-print-header__brand strong,
    body.subscriber-report-body .subscriber-print-header__brand span,
    body.subscriber-report-body .subscriber-print-header__meta span {
        display: block;
        line-height: 1.4;
    }

    body.subscriber-report-body .subscriber-print-header__brand strong {
        color: #0f5e59;
        font-size: 11px;
    }

    body.subscriber-report-body .subscriber-print-header__brand span {
        color: #475569;
        font-size: 8px;
    }

    body.subscriber-report-body .subscriber-print-header__title {
        border-right: 1px solid #d9e1e8;
        border-left: 1px solid #d9e1e8;
        padding: 0 4mm;
        text-align: center;
    }

    body.subscriber-report-body .subscriber-print-header__title h2 {
        color: #0f5e59;
        font-size: 16px;
        margin: 0 0 0.5mm;
    }

    body.subscriber-report-body .subscriber-print-header__title p {
        color: #475569;
        font-size: 8.2px;
        line-height: 1.45;
        margin: 0;
    }

    body.subscriber-report-body .subscriber-print-header__meta {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    body.subscriber-report-body .subscriber-print-header__meta span {
        color: #334155;
        font-size: 8.5px;
    }

    body.subscriber-report-body .subscriber-print-filters {
        align-items: center;
        border: 1px solid #d9e1e8;
        border-radius: 4px;
        display: flex;
        flex-wrap: wrap;
        gap: 2mm;
        margin-bottom: 2mm;
        padding: 1.5mm 2mm;
    }

    body.subscriber-report-body .subscriber-print-filters span {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        color: #334155;
        font-size: 8.2px;
        padding: 0.7mm 1.8mm;
    }

    body.subscriber-report-body .subscriber-print-table {
        border-collapse: collapse;
        min-width: 0 !important;
        table-layout: fixed;
        width: 100% !important;
    }

    body.subscriber-report-body .subscriber-print-table col.col-share {
        width: 8%;
    }

    body.subscriber-report-body .subscriber-print-table col.col-owner {
        width: 31%;
    }

    body.subscriber-report-body .subscriber-print-table col.col-raddah {
        width: 12%;
    }

    body.subscriber-report-body .subscriber-print-table col.col-unit {
        width: 5.4%;
    }

    body.subscriber-report-body .subscriber-print-table col.col-notes {
        width: 11.2%;
    }

    body.subscriber-report-body .subscriber-print-table thead {
        display: table-header-group;
    }

    body.subscriber-report-body .subscriber-print-table th,
    body.subscriber-report-body .subscriber-print-table td {
        background: #fff !important;
        border: 1px solid #b8c6d6;
        color: #111827;
        font-size: 9.6px;
        font-weight: 500;
        line-height: 1.45;
        padding: 1.25mm 1mm;
        white-space: normal;
        word-break: break-word;
    }

    body.subscriber-report-body .subscriber-print-table th {
        background: #eef6f3 !important;
        border-color: #93b8b2;
        color: #0f5e59;
        font-size: 9px;
        font-weight: 700;
        line-height: 1.4;
        padding-bottom: 1.15mm;
        padding-top: 1.15mm;
        text-align: center;
    }

    body.subscriber-report-body .subscriber-print-table th:nth-child(n+4):nth-child(-n+10),
    body.subscriber-report-body .subscriber-print-table td:nth-child(n+4):nth-child(-n+10),
    body.subscriber-report-body .subscriber-print-table td:first-child {
        text-align: center;
    }

    body.subscriber-report-body .owner-cell,
    body.subscriber-report-body .raddah-pill,
    body.subscriber-report-body .unit-value,
    body.subscriber-report-body .note-cell,
    body.subscriber-report-body .share-number {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: inherit !important;
        display: inline !important;
        min-width: 0 !important;
        padding: 0 !important;
        text-align: inherit !important;
        white-space: normal !important;
    }

    body.subscriber-report-body .owner-cell i,
    body.subscriber-report-body .raddah-pill__icon {
        display: none !important;
    }

    body.subscriber-report-body .subscriber-print-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.subscriber-report-body .subscriber-print-footer {
        align-items: center;
        border-top: 1px solid #d9e1e8;
        color: #64748b;
        display: flex;
        font-size: 9px;
        justify-content: space-between;
        margin-top: auto;
        padding-top: 1.7mm;
    }

    body.subscriber-report-body .subscriber-print-footer__page {
        color: #0f5e59;
        font-weight: 700;
    }
}

@media print {
    body.owner-hours-report-body {
        background: #fff !important;
        height: auto !important;
        width: auto !important;
    }

    body.owner-hours-report-body .page-title,
    body.owner-hours-report-body .owner-hours-screen,
    body.owner-hours-report-body .sidebar,
    body.owner-hours-report-body .app-footer,
    body.owner-hours-report-body .alert {
        display: none !important;
    }

    body.owner-hours-report-body .app-shell {
        margin: 0 !important;
    }

    body.owner-hours-report-body .page {
        max-width: none !important;
        padding: 0 !important;
        width: auto !important;
    }

    body.owner-hours-report-body .owner-hours-print-pages {
        color: #111827;
        direction: rtl;
        display: block !important;
        font-family: "Cairo", Tahoma, Arial, sans-serif;
    }

    body.owner-hours-report-body .owner-hours-print-page {
        background: #fff;
        break-after: page;
        display: flex;
        flex-direction: column;
        min-height: 278mm;
        overflow: hidden;
        width: 100%;
    }

    body.owner-hours-report-body .owner-hours-print-page:last-child {
        break-after: auto;
    }

    body.owner-hours-report-body .owner-hours-print-header {
        align-items: center;
        border: 1px solid #0f766e;
        border-radius: 4px;
        display: grid;
        gap: 3mm;
        grid-template-columns: 1.05fr 1.55fr 0.85fr;
        margin-bottom: 3mm;
        padding: 3mm;
    }

    body.owner-hours-report-body .owner-hours-print-header__brand,
    body.owner-hours-report-body .owner-hours-print-header__meta {
        align-items: center;
        display: flex;
        gap: 2mm;
    }

    body.owner-hours-report-body .owner-hours-print-header__brand .brand__mark {
        border-radius: 4px;
        font-size: 15px;
        height: 10mm;
        width: 10mm;
    }

    body.owner-hours-report-body .owner-hours-print-header__brand .brand__mark img {
        height: 100%;
        object-fit: contain;
        width: 100%;
    }

    body.owner-hours-report-body .owner-hours-print-header__brand strong,
    body.owner-hours-report-body .owner-hours-print-header__brand span,
    body.owner-hours-report-body .owner-hours-print-header__meta span {
        display: block;
        line-height: 1.4;
    }

    body.owner-hours-report-body .owner-hours-print-header__brand strong {
        color: #0f5e59;
        font-size: 11px;
    }

    body.owner-hours-report-body .owner-hours-print-header__brand span {
        color: #475569;
        font-size: 8.5px;
    }

    body.owner-hours-report-body .owner-hours-print-header__title {
        border-left: 1px solid #d9e1e8;
        border-right: 1px solid #d9e1e8;
        padding: 0 4mm;
        text-align: center;
    }

    body.owner-hours-report-body .owner-hours-print-header__title h2 {
        color: #0f5e59;
        font-size: 17px;
        margin: 0 0 0.7mm;
    }

    body.owner-hours-report-body .owner-hours-print-header__title p {
        color: #475569;
        font-size: 8.5px;
        line-height: 1.5;
        margin: 0;
    }

    body.owner-hours-report-body .owner-hours-print-header__meta {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    body.owner-hours-report-body .owner-hours-print-header__meta span {
        color: #334155;
        font-size: 8.8px;
    }

    body.owner-hours-report-body .owner-hours-print-table {
        border-collapse: collapse;
        min-width: 0 !important;
        table-layout: fixed;
        width: 100% !important;
    }

    body.owner-hours-report-body .owner-hours-print-table thead {
        display: table-header-group;
    }

    body.owner-hours-report-body .owner-hours-print-table th,
    body.owner-hours-report-body .owner-hours-print-table td {
        background: #fff !important;
        border: 1px solid #b8c6d6;
        color: #111827;
        font-size: 10.2px;
        line-height: 1.55;
        padding: 1.35mm 2mm;
        vertical-align: middle;
        white-space: normal;
        word-break: break-word;
    }

    body.owner-hours-report-body .owner-hours-print-table th {
        background: #eef6f3 !important;
        border-color: #93b8b2;
        color: #0f5e59;
        font-size: 9.6px;
        font-weight: 700;
        text-align: center;
    }

    body.owner-hours-report-body .owner-hours-print-table th:first-child,
    body.owner-hours-report-body .owner-hours-print-table td:first-child {
        text-align: center;
        width: 14mm;
    }

    body.owner-hours-report-body .owner-hours-print-table th:last-child,
    body.owner-hours-report-body .owner-hours-print-table td:last-child {
        text-align: center;
        width: 34mm;
    }

    body.owner-hours-report-body .owner-hours-print-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.owner-hours-report-body .owner-hours-print-footer {
        align-items: center;
        border-top: 1px solid #d9e1e8;
        color: #64748b;
        display: flex;
        font-size: 8.5px;
        justify-content: space-between;
        margin-top: auto;
        padding-top: 2mm;
    }

    body.owner-hours-report-body .owner-hours-print-footer__page {
        color: #0f5e59;
        font-weight: 700;
    }
}

.alert {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 12px 14px;
}

.alert--success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.alert--error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.alert--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.empty-state {
    color: var(--muted);
    padding: 30px 18px;
    text-align: center;
}

.pagination {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}

.pagination a,
.pagination span {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-width: 38px;
    padding: 7px 10px;
    text-align: center;
}

.pagination a {
    align-items: center;
    background: #fff;
    display: inline-flex;
    justify-content: center;
}

.pagination .is-current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination--compact .is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination__ellipsis {
    background: transparent;
    border-color: transparent !important;
    color: var(--muted);
}

.hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.note-text {
    color: #334155;
    margin: 0 0 14px;
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-row label {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: inline-flex;
    gap: 8px;
    padding: 8px 10px;
}

.radio-row input {
    min-height: 0;
    width: auto;
}

body.has-modal {
    overflow: hidden;
}

.modal {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 150ms ease;
    z-index: 100;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal__backdrop {
    background: rgba(15, 23, 42, 0.5);
    inset: 0;
    position: absolute;
}

.modal__dialog {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
    left: 50%;
    max-height: calc(100vh - 42px);
    max-width: 980px;
    overflow: auto;
    padding: 18px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    transition: transform 150ms ease;
    width: calc(100vw - 32px);
}

.modal.is-open .modal__dialog {
    transform: translate(-50%, -50%) scale(1);
}

.modal__dialog--wide {
    max-width: 1180px;
}

.modal__dialog--compact {
    max-width: 720px;
}

.modal__head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.modal__actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 16px;
}

@media (max-width: 920px) {
    .sidebar {
        border-bottom: 1px solid var(--line);
        border-left: 0;
        bottom: auto;
        position: static;
        width: auto;
    }

    .sidebar-brand {
        padding-bottom: 12px;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-nav__title {
        grid-column: 1 / -1;
    }

    .sidebar-user {
        margin-top: 0;
    }

    .app-shell {
        margin-right: 0;
    }

    .page-title {
        align-items: stretch;
        flex-direction: column;
    }

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

    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .falaj-profile-card,
    .profile-hero,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .falaj-profile-card__actions {
        align-items: stretch;
    }

    .profile-hero__actions {
        justify-content: flex-start;
    }

    .dashboard-widget--wide {
        grid-column: auto;
    }

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

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

    .report-grid {
        grid-template-columns: 1fr;
    }

    .role-grid,
    .permission-matrix {
        grid-template-columns: 1fr;
    }

    .role-card {
        grid-template-columns: auto 1fr;
    }

    .role-card .status-badge,
    .role-card .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .report-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .is-wide {
        grid-column: auto;
    }

    th {
        top: 0;
    }
}

@media (max-width: 560px) {
    .auth-page {
        align-items: stretch;
        overflow-x: hidden;
        padding: 32px 82px 32px 14px;
    }

    .auth-page__brand,
    .auth-card--standalone,
    .auth-page .alert {
        max-width: 100%;
        width: 100%;
    }

    .auth-page__brand {
        justify-content: center;
    }

    .auth-card--standalone {
        padding: 18px;
    }

    .auth-card--standalone .panel__head {
        justify-content: center;
        text-align: center;
    }

    .auth-card--standalone .actions {
        grid-template-columns: 1fr;
    }

    .auth-card--standalone .btn,
    .auth-card--standalone button {
        width: 100%;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .dashboard-widget,
    .insight-card {
        padding: 14px;
    }

    .dashboard-hero__stats,
    .insight-grid,
    .unit-widget-grid,
    .quick-actions-grid,
    .dashboard-operation-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-widget__head {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-hero {
        align-items: start;
    }

    .falaj-profile-card__media,
    .falaj-profile-card__actions {
        justify-content: center;
    }

    .settings-tabs {
        margin-inline: -4px;
    }

    .settings-tabs a {
        padding-inline: 10px;
    }

    .falaj-profile-card__actions .btn {
        justify-content: center;
        width: 100%;
    }

    .profile-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-hero__actions .btn {
        justify-content: center;
        width: 100%;
    }

    .profile-details div {
        grid-template-columns: 1fr;
    }

    .rank-item__meta,
    .raddah-summary {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 18px 12px 38px;
    }

    h1 {
        font-size: 23px;
    }

}
