﻿/* Alzad UI styles extracted from Blade views */
:root {
    --brand-primary: #0b0d3e;
    --brand-purple: #634d9f;
    --brand-accent: #8b5cf6;
    --surface: #ffffff;
    --surface-muted: #f8f9fc;
    --surface-soft: #f1f4f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.06);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    background: #fcfcfd;
    color: var(--text-main);
    min-height: 100vh;
}
body,
button,
input,
select,
textarea {
    font-family: inherit;
}
a {
    color: inherit;
    text-decoration: none;
}
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}
.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    font-family: 'Public Sans', sans-serif;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
.top-nav__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
}
.top-nav__left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
}
.alzad-logo {
    width: 140px;
    height: auto;
    object-fit: contain;
}
.top-nav__links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.top-nav__link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.top-nav__link:hover {
    color: var(--brand-purple);
}
.top-nav__link.is-active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}
.top-nav__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    margin-left: auto;
}
.top-nav__status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex: 0 0 auto;
}
.top-nav__status form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.marketing-nav__toggle,
.marketing-nav__mobile-panel {
    display: none;
}
.marketing-nav__toggle {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}
.marketing-nav__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.marketing-nav__mobile-panel {
    padding: 0 16px 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
.marketing-nav__mobile-links,
.marketing-nav__mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.marketing-nav__mobile-links {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.marketing-nav__mobile-meta {
    padding-top: 14px;
}
.marketing-nav__mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    color: var(--text-main);
    font-weight: 600;
    box-shadow: var(--shadow-card);
}
.marketing-nav__mobile-link.is-active {
    background: #f5f7ff;
    color: var(--brand-primary);
}
.marketing-nav__mobile-link--secondary {
    background: var(--surface-muted);
}
.marketing-nav__mobile-button {
    width: 100%;
    border: 0;
    text-align: left;
}
.status-pill,
.lang-select {
    white-space: nowrap;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f7ff;
    color: var(--brand-primary);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.status-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}
.status-pill__dot--off {
    background: #f87171;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}
.status-dot--on {
    background: #22c55e;
}
.status-dot--off {
    background: #f87171;
}
.lang-select {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--text-main);
    background: #fff;
    font-weight: 600;
}
.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 18px;
    border-left: 1px solid var(--border);
}
.user-meta {
    text-align: right;
}
.user-name {
    font-weight: 700;
    font-size: 0.85rem;
}
.user-name-link {
    display: inline-block;
    transition: color 0.2s ease;
}
.user-name-link:hover {
    color: var(--brand-purple);
}
.user-plan {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2ff;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--brand-primary);
}
.logout-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.logout-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}
.app-main {
    flex: 1;
}
.page-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px 64px;
}
.alert {
    border-radius: 14px;
}
.app-footer {
    border-top: 1px solid var(--border);
    background: #ffffff;
    padding: 24px 0;
}
.app-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a:hover {
    color: var(--brand-purple);
}
.btn-accent {
    background: var(--brand-primary);
    border: none;
    color: #fff;
}
.btn-accent:hover {
    background: #11164d;
    color: #fff;
}
.btn-pill {
    border-radius: 14px;
    padding: 10px 18px;
    font-weight: 700;
}
.page-header h1,
.page-header h2 {
    font-weight: 800;
    margin-bottom: 6px;
}
.page-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}
.page-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}
.page-subtitle {
    color: var(--text-muted);
    margin: 6px 0 0;
}
.page-header--records {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.dashboard-header .page-header {
    margin-bottom: 0;
}
.primary-cta {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 10px 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}
.primary-cta:hover {
    background: #141a55;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin: 24px 0 28px;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    min-height: 120px;
}
.stat-card__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
}
.stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 4px;
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: var(--brand-purple);
}
.stat-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--brand-purple);
    margin-left: 10px;
}
.account-card {
    background: linear-gradient(135deg, #1a1f5d 0%, #634d9f 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
}
.account-card small {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
}
.account-card a {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
}
.overview-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-card);
    padding: 24px;
}
.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.overview-title {
    font-weight: 700;
}
.overview-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.overview-select {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    background: #fff;
}
.chart-bars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: end;
    height: 160px;
    margin-top: 18px;
}
.chart-bars--3 {
    grid-template-columns: repeat(3, 1fr);
}
.chart-bars--6 {
    grid-template-columns: repeat(6, 1fr);
}
.chart-bars--12 {
    grid-template-columns: repeat(12, 1fr);
}
.chart-bar {
    background: #e5e7eb;
    border-radius: 14px;
    position: relative;
    min-height: 20px;
    height: 40px;
    transition: height 0.5s ease;
}
.chart-bar.is-active {
    background: #634d9f;
}
.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}
.chart-bar:hover::after {
    opacity: 1;
}
.chart-bar span {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.table-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-align: left;
    padding: 16px 20px;
    background: #f8fafc;
}
.data-table td {
    padding: 18px 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: var(--text-main);
}
.data-table tr:hover {
    background: #f8fafc;
}
.table-actions-right {
    text-align: right;
}
.pill-btn {
    border: none;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}
.pill-btn:hover {
    background: rgba(99, 77, 159, 0.12);
    color: var(--brand-purple);
}
.side-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-card);
    padding: 24px;
}
.integration-card {
    background: #f6f3ff;
    color: var(--brand-primary);
    border-radius: var(--radius-xl);
    padding: 22px;
    border: 1px solid #e9e2ff;
}
.integration-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.integration-title {
    font-weight: 700;
    font-size: 1.05rem;
}
.integration-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.integration-status-text {
    font-size: 0.85rem;
    font-weight: 600;
}
.integration-desc {
    font-size: 0.82rem;
    color: #5b6b8a;
}
.integration-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #ede9fe;
    color: var(--brand-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.integration-btn {
    width: 100%;
    border: none;
    background: #fff;
    color: var(--brand-primary);
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 4px 12px;
    gap: 12px;
    flex-wrap: wrap;
}
.section-header h3 {
    margin: 0;
    font-weight: 700;
}
.section-header-title {
    margin-bottom: 12px;
    font-weight: 700;
}
.view-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-purple);
}
.records-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow-card);
    margin-bottom: 18px;
}
.records-toolbar__filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 220px;
    border: none;
    background: var(--surface-soft);
    border-radius: 14px;
    padding: 12px 16px 12px 44px;
    font-size: 0.9rem;
}
.search-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
}
.search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.filter-chip {
    border: none;
    background: var(--surface-soft);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.filter-select {
    appearance: none;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    padding-right: 18px;
    color: inherit;
    cursor: pointer;
}
.filter-icon {
    color: var(--brand-purple);
}
.filter-caret {
    font-size: 0.7rem;
}
.records-table th:last-child,
.records-table td:last-child {
    text-align: right;
}
.records-id {
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
}
.records-title {
    font-weight: 700;
}
.records-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}
.icon-btn {
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 10px;
    color: #94a3b8;
    transition: all 0.2s ease;
}
.icon-btn.primary:hover {
    color: var(--brand-purple);
    background: rgba(99, 77, 159, 0.12);
}
.icon-btn.secondary:hover {
    color: var(--brand-primary);
    background: rgba(11, 13, 62, 0.12);
}
.icon-btn.red:hover {
    color: #ef4444;
    background: #fee2e2;
}
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 12px;
}
.page-actions .btn {
    border-radius: 12px;
}
.admin-nav .admin-brand-text {
    font-weight: 700;
    color: var(--text-main);
}
.admin-search {
    position: relative;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 6px 12px 6px 34px;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
}
.admin-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    width: 100%;
    color: var(--text-main);
}
.admin-search i {
    position: absolute;
    left: 12px;
    color: #94a3b8;
}
.admin-icon-btn {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.admin-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-outline {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline--full {
    width: 100%;
    justify-content: center;
}
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.admin-stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #eef2f6;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 12px;
}
.admin-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #ede9fe;
    color: #4c1d95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
}
.admin-stat-badge {
    background: #e8f7ee;
    color: #1f9d55;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.admin-pill {
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.admin-progress {
    height: 6px;
    background: #eef2f6;
    border-radius: 999px;
    overflow: hidden;
}
.admin-progress span {
    display: block;
    height: 100%;
    background: #4c1d95;
    border-radius: 999px;
}
.admin-progress--accent span {
    background: #1e40af;
}
.admin-progress--success span {
    background: #16a34a;
}
.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}
.admin-stack {
    display: grid;
    gap: 22px;
}
.admin-grid--bottom {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.admin-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #eef2f6;
    box-shadow: var(--shadow-card);
    padding: 20px;
}
.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.admin-card-head--tight {
    margin-top: 18px;
    margin-bottom: 10px;
}
.admin-divider {
    height: 1px;
    background: #eef2f6;
    margin: 16px 0;
}
.admin-card-head h3 {
    margin: 0;
    font-weight: 700;
}
.admin-card-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.admin-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    align-items: end;
    height: 140px;
    margin-top: 20px;
}
.admin-chart-bar {
    background: #e5e7eb;
    border-radius: 12px;
    position: relative;
    min-height: 14px;
}
.admin-chart-bar--alt {
    background: #dbeafe;
}
.admin-chart-bar span {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.admin-chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.admin-chart-bar:hover::after {
    opacity: 1;
}
.admin-donut-wrap {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: center;
}
.admin-donut {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.admin-donut::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 50%;
}
.admin-donut > div {
    position: relative;
    text-align: center;
}
.admin-donut span {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
}
.admin-donut small {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.admin-legend {
    display: grid;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-main);
}
.admin-legend span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 8px;
}
.admin-legend small {
    color: var(--text-muted);
    display: block;
    font-size: 0.75rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-align: left;
    padding: 12px 0;
}
.admin-table td {
    padding: 12px 0;
    border-top: 1px solid #eef2f6;
    font-size: 0.9rem;
}
.admin-tag {
    background: #eef2f6;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}
.admin-tag--primary {
    background: #ede9fe;
    color: #4c1d95;
}
.admin-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #16a34a;
    font-weight: 600;
}
.admin-status span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #16a34a;
}
.admin-activity {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}
.admin-activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.admin-activity-item strong {
    display: block;
    font-size: 0.9rem;
}
.admin-activity-item p {
    margin: 4px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.admin-activity-item small {
    color: #94a3b8;
    font-size: 0.75rem;
}
.admin-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef2f6;
    color: #4c1d95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-activity-icon--success {
    background: #dcfce7;
    color: #16a34a;
}
.admin-activity-icon--warning {
    background: #fef3c7;
    color: #d97706;
}
.status-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5f5;
}
.status-dot--pending {
    background: #fbbf24;
}
.status-dot--processing {
    background: #6366f1;
}
.status-dot--completed {
    background: #22c55e;
}
.status-dot--failed {
    background: #ef4444;
}
.status-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.meta-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 4px;
}
.status-error {
    padding: 12px 14px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 12px;
    font-size: 14px;
}
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .user-meta {
        text-align: left;
    }
    .admin-grid,
    .admin-grid--bottom {
        grid-template-columns: 1fr;
    }
    .admin-donut-wrap {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1200px) {
    .top-nav__left {
        flex-wrap: wrap;
    }
    .top-nav__right {
        flex-wrap: wrap;
    }
}
@media (max-width: 768px) {
    .top-nav__inner {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .top-nav__right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .user-area {
        border-left: none;
        padding-left: 0;
    }
}
@media (max-width: 992px) {
    .marketing-top-nav .top-nav__inner {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .marketing-top-nav .top-nav__left {
        min-width: 0;
        flex: 1 1 auto;
    }
    .marketing-top-nav .top-nav__links,
    .marketing-top-nav .top-nav__status,
    .marketing-top-nav .user-area,
    .marketing-top-nav .top-nav__right > .top-nav__link {
        display: none;
    }
    .marketing-top-nav .top-nav__right {
        width: auto;
        margin-left: 0;
        justify-content: flex-end;
    }
    .marketing-top-nav .marketing-nav__toggle {
        display: inline-flex;
    }
    .marketing-top-nav.is-mobile-open .marketing-nav__toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .marketing-top-nav.is-mobile-open .marketing-nav__toggle span:nth-child(2) {
        opacity: 0;
    }
    .marketing-top-nav.is-mobile-open .marketing-nav__toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .marketing-top-nav.is-mobile-open .marketing-nav__mobile-panel {
        display: block;
    }
    .marketing-top-nav .marketing-nav__mobile-panel .lang-select {
        width: 100%;
    }
}
html[dir="rtl"]  div , html[dir="rtl"] span , html[dir="rtl"]  p , html[dir="rtl"] h1,html[dir="rtl"] h2 ,html[dir="rtl"] h3,html[dir="rtl"]  h4
{ text-align: right;}
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[lang="ar"] .top-nav,
html[lang="ar"] .font-body-lg,
html[lang="ar"] .font-body-md,
html[lang="ar"] .font-display-lg,
html[lang="ar"] .font-headline-sm,
html[lang="ar"] .font-headline-md,
html[lang="ar"] .font-label-md,
html[lang="ar"] .font-label-caps {
    font-family: 'Noto Naskh Arabic', serif !important;
}
html[dir="rtl"] .top-nav__link {
    border-bottom-color: transparent;
}
html[dir="rtl"] .top-nav__link.is-active {
    border-bottom-color: var(--brand-primary);
}
html[dir="rtl"] .user-area {
    border-left: none;
    border-right: 1px solid var(--border);
    padding-left: 0;
    padding-right: 18px;
}
html[dir="rtl"] .marketing-nav__mobile-button {
    text-align: right;
}
html[dir="rtl"] .user-meta {
    text-align: right;
}
html[dir="rtl"] .data-table th,
html[dir="rtl"] .data-table td {
    text-align: right;
}
html[dir="rtl"] .search-wrap i {
    left: auto;
    right: 16px;
}
html[dir="rtl"] .search-input {
    padding-left: 16px;
    padding-right: 44px;
}
html[dir="rtl"] .records-table th:last-child,
html[dir="rtl"] .records-table td:last-child {
    text-align: left;
}
html[dir="rtl"] .section-header-title,
html[dir="rtl"] .page-header,
html[dir="rtl"] .side-card {
    text-align: right;
}
html[dir="rtl"] .admin-table th,
html[dir="rtl"] .admin-table td {
    text-align: right;
}
html[dir="rtl"] .admin-legend span {
    margin-right: 0;
    margin-left: 8px;
}
.status-warning {
    padding: 12px 14px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 12px;
    font-size: 14px;
}
.status-hint-code {
    margin-top: 8px;
    font-size: 13px;
}
.status-hint-code code {
    background: #fff7ed;
    padding: 2px 6px;
    border-radius: 8px;
}
.queue-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.queue-badge--pending {
    background: #fef3c7;
    color: #92400e;
}
.queue-badge--processing {
    background: #e0e7ff;
    color: #3730a3;
}
#marc-fields .table th,
#marc-fields .table td {
    padding: 10px 12px;
    vertical-align: top;
}
#marc-fields .sub-value {
    min-height: 48px;
}
.marc-raw {
    margin: 0;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    color: #0f172a;
    white-space: pre;
    overflow-x: auto;
}
