@font-face {
    font-family: 'Vazir';
    src: url('../fonts/VazirFD.eot');
    src: url('../fonts/VazirFD.eot?#iefix') format('embedded-opentype'),
         url('../fonts/VazirFD.woff2') format('woff2'),
         url('../fonts/VazirFD.woff') format('woff'),
         url('../fonts/VazirFD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}

:root {
    --bg-main: #f4f7fb;
    --bg-soft: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-dark: #0f172a;
    --bg-dark-2: #1e293b;

    --text-main: #111827;
    --text-soft: #6b7280;
    --text-muted: #94a3b8;

    --border: #e2e8f0;
    --border-soft: #edf2f7;

    --primary: #0ea5e9;
    --primary-2: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 36px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 55px rgba(15, 23, 42, 0.12);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --transition: all 0.25s ease;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 30%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.08), transparent 35%),
        var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

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

button,
input,
select,
textarea {
    font-family: 'Vazir', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

.main-content,
.content-grid,
.content-block,
.filters-panel,
.report-container,
.aggregate-container,
.summary-cards,
.filter-grid {
    min-width: 0;
}

.app-shell {
    min-height: calc(100vh - 78px);
}

/* =========================
   Buttons
========================= */
.app-btn,
.malavan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.app-btn:hover,
.malavan-btn:hover {
    transform: translateY(-1px);
}

.app-btn.primary,
.malavan-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}

.app-btn.success,
.malavan-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.app-btn.danger,
.malavan-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.malavan-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.malavan-btn-light {
    background: #e5e7eb;
    color: #111827;
}

.malavan-btn-block {
    width: 100%;
}

.malavan-btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 10px;
}

/* =========================
   Inputs
========================= */
.app-input,
.malavan-form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    background: rgba(248, 250, 252, 0.95);
    outline: none;
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.app-input:focus,
.malavan-form-control:focus {
    border-color: #38bdf8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.10);
}

.filter-item label,
.malavan-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.malavan-form-group {
    margin-bottom: 16px;
}

.malavan-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.malavan-form-group-full {
    grid-column: 1 / -1;
}

.malavan-multiselect {
    min-height: 140px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* =========================
   Alerts
========================= */
.malavan-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid transparent;
}

.malavan-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.malavan-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

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

.malavan-alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* =========================
   Shared Cards
========================= */
.malavan-card,
.filters-panel,
.content-block,
.summary-card,
.aggregate-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.55);
}

.malavan-card {
    padding: 20px;
}

.filters-panel {
    padding: 20px;
    margin-bottom: 20px;
}

.content-block {
    padding: 18px;
}

.summary-card {
    padding: 18px;
}

.aggregate-card {
    padding: 16px;
    border: 1px solid var(--border-soft);
}

/* =========================
   Tables
========================= */
.report-table-wrap,
.malavan-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.report-table,
.malavan-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.report-table thead th,
.malavan-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    z-index: 1;
}

.report-table th,
.report-table td,
.malavan-table th,
.malavan-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border-soft);
    text-align: right;
    vertical-align: middle;
    font-size: 14px;
}

.report-table tbody tr:hover,
.malavan-table tbody tr:hover {
    background: rgba(14, 165, 233, 0.04);
}

.malavan-table .actions {
    white-space: nowrap;
}

.malavan-table .actions .malavan-btn {
    margin-left: 6px;
    margin-bottom: 4px;
}

/* =========================
   Badges / Tags
========================= */
.malavan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.malavan-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.malavan-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.malavan-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.malavan-badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================
   Modal
========================= */
.malavan-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.malavan-modal-content {
    width: 100%;
    max-width: 760px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    padding: 22px;
    max-height: 90vh;
    overflow-y: auto;
}

.malavan-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.malavan-modal-header h4 {
    margin: 0;
    font-size: 20px;
}

.malavan-modal-close {
    font-size: 28px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}

/* =========================
   Auth
========================= */
.malavan-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(14,165,233,0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(37,99,235,0.10), transparent 35%),
        #f4f7fb;
}

.malavan-auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    padding: 30px 24px;
}

.malavan-auth-brand {
    text-align: center;
    margin-bottom: 22px;
}

.malavan-auth-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(37,99,235,0.22);
}

.malavan-auth-brand h1 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #111827;
}

.malavan-auth-brand p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.malavan-auth-form {
    margin-top: 12px;
}

.malavan-auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* =========================
   Dashboard Layout
========================= */
.responsive-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 78px);
}

.desktop-sidebar {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    color: #fff;
    min-height: calc(100vh - 78px);
    padding: 24px 18px;
    position: sticky;
    top: 0;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.20);
}

.sidebar-brand h2 {
    margin: 0 0 6px;
    font-size: 24px;
    letter-spacing: -0.2px;
}

.sidebar-brand span {
    color: #cbd5e1;
    font-size: 14px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    padding: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #082f49;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.28);
    flex: 0 0 54px;
}

.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-user-name {
    display: block;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: #ffffff;
    word-break: break-word;
}

.sidebar-user-role {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: #cbd5e1;
    word-break: break-word;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu a {
    color: #e2e8f0;
    padding: 13px 14px;
    border-radius: 14px;
    transition: var(--transition);
    font-weight: 600;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.mobile-app-header {
    display: none;
}

.main-content {
    padding: 24px;
}

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

.page-header h2 {
    margin: 0 0 6px;
    font-size: 30px;
    letter-spacing: -0.3px;
}

.page-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.page-current-date {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.14);
    color: #0f4c81;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.mobile-app-date {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
}

.filter-grid {
    display: grid;
    gap: 14px;
    align-items: end;
}

.filter-grid-extended {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.filter-actions-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: nowrap;
}

.filter-actions-group .app-btn {
    flex: 1 1 0;
    min-width: 0;
}

.filter-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.8;
}

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

.summary-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.summary-card span {
    color: var(--text-soft);
    font-size: 14px;
}

.summary-card strong {
    font-size: 30px;
    color: var(--text-main);
    line-height: 1.2;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: 18px;
}

.block-header {
    margin-bottom: 14px;
}

.block-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
}

.aggregate-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aggregate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.aggregate-card-header h4 {
    margin: 0;
    font-size: 16px;
}

.aggregate-meta {
    margin-bottom: 12px;
}

.aggregate-meta label {
    display: block;
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 4px;
}

.aggregate-meta strong {
    font-size: 20px;
}

.aggregate-paths {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aggregate-path-item {
    padding: 10px 12px;
    background: var(--bg-soft);
    border-radius: 14px;
    border: 1px solid #eef2f7;
}

.path-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #0f172a;
}

.path-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #475569;
    font-size: 13px;
    flex-wrap: wrap;
}

.empty-state,
.loading-state {
    padding: 30px;
    text-align: center;
    color: var(--text-soft);
    background: var(--bg-soft);
    border-radius: 16px;
    border: 1px dashed #dbe2ea;
}

.empty-state.error {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

/* =========================
   Report Mobile Cards
========================= */
.report-mobile-cards {
    display: none;
}

.report-mobile-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.report-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.report-mobile-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.report-mobile-card-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.report-mobile-card-status {
    white-space: nowrap;
}

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

.report-mobile-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px;
    min-width: 0;
    border: 1px solid #edf2f7;
}

.report-mobile-item label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 5px;
}

.report-mobile-item strong {
    display: block;
    font-size: 13px;
    color: #111827;
    word-break: break-word;
}

.aggregate-mobile-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.aggregate-mobile-card + .aggregate-mobile-card {
    margin-top: 12px;
}

.aggregate-mobile-paths {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aggregate-mobile-path-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px;
}

.aggregate-mobile-path-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.aggregate-mobile-path-values {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #475569;
    flex-wrap: wrap;
}

/* =========================
   Footer
========================= */
.site-footer {
    width: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 1;
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
    text-align: center;
}

.site-footer-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.9;
    color: #f8fafc;
    word-break: break-word;
}

.site-footer-subtext {
    margin-top: 4px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.8;
    word-break: break-word;
}

/* =========================
   Tablet
========================= */
@media (max-width: 1200px) {
    .filter-grid-extended {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 1100px) {
    .responsive-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .desktop-sidebar {
        display: none;
    }

    .mobile-app-header {
        display: block;
        background: linear-gradient(135deg, #0ea5e9, #2563eb);
        color: #fff;
        padding: 22px 16px 18px;
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .mobile-app-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-app-top h1 {
        margin: 0 0 4px;
        font-size: 21px;
    }

    .mobile-app-top span {
        display: block;
        font-size: 13px;
        opacity: 0.95;
        line-height: 1.6;
    }

    .mobile-logout-btn {
        min-height: 42px;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 12px;
        flex: 0 0 auto;
    }

    .main-content {
        padding: 16px;
    }

    .page-header {
        margin-top: 2px;
    }

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

/* =========================
   Mobile
========================= */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        background: #eef2f7;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        touch-action: manipulation;
    }

    .app-shell {
        min-height: auto;
    }

    .main-content {
        padding: 12px;
        width: 100%;
        overflow-x: hidden;
    }

    .page-header {
        display: none;
    }

    .filters-panel,
    .content-block,
    .summary-card {
        width: 100%;
        min-width: 0;
        border-radius: 20px;
    }

    .filters-panel {
        padding: 14px;
    }

    .filter-grid-extended {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-actions-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: center;
    }

    .filter-actions-group .app-btn {
        width: 100%;
        min-width: 0;
        padding: 11px 10px;
        font-size: 13px;
        min-height: 44px;
        border-radius: 12px;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    }

    .app-input,
    .malavan-form-control,
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .summary-card {
        padding: 16px;
    }

    .summary-card strong {
        font-size: 22px;
        word-break: break-word;
    }

    .summary-card span {
        word-break: break-word;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .content-block {
        padding: 14px;
    }

    .report-table-wrap {
        overflow: visible;
    }

    .report-table {
        display: none;
    }

    .report-mobile-cards {
        display: block;
    }

    .path-stats,
    .aggregate-mobile-path-values {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .mobile-app-header {
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
        padding-top: calc(14px + env(safe-area-inset-top));
    }

    .site-footer-inner {
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    }

    .site-footer-text {
        font-size: 13px;
        line-height: 1.9;
    }

    .site-footer-subtext {
        font-size: 12px;
        line-height: 1.8;
    }
}

/* =========================
   Very Small Mobile
========================= */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }

    .mobile-app-top {
        gap: 8px;
    }

    .mobile-app-top h1 {
        font-size: 18px;
    }

    .mobile-app-top span {
        font-size: 12px;
    }

    .mobile-app-date {
        font-size: 11px;
    }

    .mobile-logout-btn {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .filter-actions-group {
        grid-template-columns: 1fr;
    }

    .filter-actions-group .app-btn {
        min-height: 42px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }

    .summary-card strong {
        font-size: 20px;
    }

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

    .site-footer-inner {
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    }

    .site-footer-text {
        font-size: 12px;
    }

    .site-footer-subtext {
        font-size: 11px;
    }
}
/* =========================
   Mobile Bottom Navigation
========================= */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1100px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 999;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
        border-radius: 22px;
        padding: 8px;
        align-items: stretch;
        justify-content: space-between;
        gap: 8px;
    }

    .mobile-bottom-nav-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        color: #cbd5e1;
        border-radius: 16px;
        padding: 10px 6px;
        transition: all 0.22s ease;
    }

    .mobile-bottom-nav-item:hover,
    .mobile-bottom-nav-item.active {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.18));
        color: #ffffff;
    }

    .mobile-bottom-nav-icon {
        width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 22px;
    }

    .mobile-bottom-nav-icon svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .mobile-bottom-nav-label {
        font-size: 11px;
        font-weight: 700;
        line-height: 1.4;
        white-space: nowrap;
    }

    .main-content {
        padding-bottom: 110px !important;
    }

    .site-footer {
        margin-bottom: 96px;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 20px;
        padding: 7px;
        gap: 6px;
    }

    .mobile-bottom-nav-item {
        border-radius: 14px;
        padding: 9px 4px;
    }

    .mobile-bottom-nav-icon,
    .mobile-bottom-nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-nav-label {
        font-size: 10.5px;
    }

    .main-content {
        padding-bottom: 104px !important;
    }

    .site-footer {
        margin-bottom: 92px;
    }
}

@media (max-width: 480px) {
    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: 18px;
        padding: 6px;
        gap: 4px;
    }

    .mobile-bottom-nav-item {
        padding: 8px 2px;
        gap: 5px;
    }

    .mobile-bottom-nav-label {
        font-size: 10px;
    }

    .main-content {
        padding-bottom: 98px !important;
    }

    .site-footer {
        margin-bottom: 88px;
    }
}
/* =========================
   Unified Header/Page Tools
========================= */
.page-tools-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.page-tools-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.block-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.8;
}

.users-search-input {
    max-width: 380px;
}

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

.malavan-muted {
    color: #6b7280;
    font-size: 13px;
}

/* =========================
   Mobile Bottom Navigation
========================= */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1100px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 999;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
        border-radius: 22px;
        padding: 8px;
        align-items: stretch;
        justify-content: space-between;
        gap: 8px;
    }

    .mobile-bottom-nav-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        color: #cbd5e1;
        border-radius: 16px;
        padding: 10px 6px;
        transition: all 0.22s ease;
    }

    .mobile-bottom-nav-item:hover,
    .mobile-bottom-nav-item.active {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.18));
        color: #ffffff;
    }

    .mobile-bottom-nav-icon {
        width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 22px;
    }

    .mobile-bottom-nav-icon svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .mobile-bottom-nav-label {
        font-size: 11px;
        font-weight: 700;
        line-height: 1.4;
        white-space: nowrap;
    }

    .main-content {
        padding-bottom: 110px !important;
    }

    .site-footer {
        margin-bottom: 96px;
    }
}

@media (max-width: 768px) {
    .page-tools-row {
        flex-direction: column;
        align-items: stretch;
    }

    .page-tools-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-tools-actions .app-btn,
    .page-tools-actions a.app-btn {
        width: 100%;
    }

    .users-search-input {
        max-width: 100%;
    }

    .table-actions-wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .users-mobile-cards {
        display: block;
    }

    #users-table {
        display: none;
    }

    .user-mobile-card {
        margin-bottom: 12px;
    }

    .user-mobile-ships {
        margin-top: 12px;
    }

    .user-mobile-section-label {
        display: block;
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .user-mobile-actions {
        margin-top: 12px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .user-mobile-actions .app-btn {
        width: 100%;
    }

    .mobile-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 20px;
        padding: 7px;
        gap: 6px;
    }

    .mobile-bottom-nav-item {
        border-radius: 14px;
        padding: 9px 4px;
    }

    .mobile-bottom-nav-icon,
    .mobile-bottom-nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-nav-label {
        font-size: 10.5px;
    }

    .main-content {
        padding-bottom: 104px !important;
    }

    .site-footer {
        margin-bottom: 92px;
    }
}

@media (max-width: 480px) {
    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: 18px;
        padding: 6px;
        gap: 4px;
    }

    .mobile-bottom-nav-item {
        padding: 8px 2px;
        gap: 5px;
    }

    .mobile-bottom-nav-label {
        font-size: 10px;
    }

    .main-content {
        padding-bottom: 98px !important;
    }

    .site-footer {
        margin-bottom: 88px;
    }
}

/* =========================================
   Global Layout Fixes
========================================= */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-shell,
.responsive-shell {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 0 !important;
    position: sticky;
    bottom: 0;
    width: 100%;
}

/* وقتی محتوا زیاد است، فوتر همچنان در انتهای viewport قابل مشاهده بماند */
@supports (position: sticky) {
    .site-footer {
        z-index: 5;
    }
}

/* =========================================
   Consistent Vertical Spacing
========================================= */

.main-content > section + section,
.main-content > div + section,
.main-content > section + div {
    margin-top: 18px;
}

.content-block + .content-block,
.filters-panel + .summary-cards,
.summary-cards + .content-grid,
.summary-cards + .content-block,
.content-block + .summary-cards {
    margin-top: 0;
}

.ship-page-tools-block,
.ships-page-block,
.aliases-page-block,
.users-page-block,
.users-summary-cards,
.ship-summary-cards {
    margin-bottom: 18px;
}

/* =========================================
   Horizontal Gap Fix for Cards / Blocks
========================================= */

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px !important;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: 18px !important;
}

.report-mobile-cards {
    display: block;
}

.report-mobile-card + .report-mobile-card {
    margin-top: 12px;
}

.page-tools-row {
    gap: 16px;
}

.page-tools-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================
   Ship Manager Specific Spacing Fix
========================================= */

.ship-page-tools-block .block-header,
.ships-page-block .block-header,
.aliases-page-block .block-header,
.users-page-block .block-header {
    margin-bottom: 16px;
}

.ships-table-wrap,
.aliases-table-wrap,
.users-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ships-report-container,
.aliases-report-container,
.users-report-container {
    width: 100%;
    min-width: 0;
}

.ship-summary-cards .summary-card,
.users-summary-cards .summary-card {
    min-width: 0;
}

.ships-page-block,
.aliases-page-block,
.users-page-block {
    width: 100%;
    min-width: 0;
}

.ship-mobile-actions,
.alias-mobile-actions,
.user-mobile-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ships-search-input,
.aliases-search-input,
.users-search-input {
    min-width: 260px;
    max-width: 380px;
}

/* =========================================
   Footer + Mobile Bottom Nav Fix
========================================= */

@media (max-width: 1100px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 999;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
        border-radius: 22px;
        padding: 8px;
        align-items: stretch;
        justify-content: space-between;
        gap: 8px;
    }

    .main-content {
        padding-bottom: 108px !important;
    }

    .site-footer {
        margin-bottom: 0 !important;
        padding-bottom: 92px;
    }
}

@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 14px !important;
    }

    .page-tools-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .page-tools-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-tools-actions .app-btn,
    .page-tools-actions a.app-btn {
        width: 100%;
    }

    .ships-search-input,
    .aliases-search-input,
    .users-search-input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .ship-mobile-actions,
    .alias-mobile-actions,
    .user-mobile-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ship-mobile-actions .app-btn,
    .alias-mobile-actions .app-btn,
    .user-mobile-actions .app-btn {
        width: 100%;
    }

    .mobile-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 20px;
        padding: 7px;
        gap: 6px;
    }

    .main-content {
        padding-bottom: 104px !important;
    }

    .site-footer {
        padding-bottom: 88px;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
    }

    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: 18px;
        padding: 6px;
        gap: 4px;
    }

    .main-content {
        padding-bottom: 98px !important;
    }

    .site-footer {
        padding-bottom: 84px;
    }
}
/* =========================================================
   Final Fix: Desktop Table / Mobile Cards Separation
   این بخش باید آخرین بخش فایل CSS باشد
========================================================= */

/* حالت دسکتاپ و تبلت بزرگ */
@media (min-width: 769px) {
    /* کارت‌های موبایلی در دسکتاپ همیشه مخفی باشند */
    .report-mobile-cards,
    .ships-mobile-cards,
    .aliases-mobile-cards,
    .users-mobile-cards {
        display: none !important;
        visibility: hidden !important;
    }

    /* جدول‌های دسکتاپ همیشه نمایش داده شوند */
    .report-table,
    .ships-table,
    .aliases-table,
    .users-table,
    #ships-table,
    #aliases-table,
    #users-table {
        display: table !important;
        visibility: visible !important;
    }

    .ships-table-wrap,
    .aliases-table-wrap,
    .users-table-wrap {
        display: block !important;
        width: 100%;
        overflow-x: auto;
    }
}

/* حالت موبایل */
@media (max-width: 768px) {
    /* جدول‌ها در موبایل کامل مخفی شوند */
    .ships-table,
    .aliases-table,
    .users-table,
    #ships-table,
    #aliases-table,
    #users-table {
        display: none !important;
        visibility: hidden !important;
    }

    /* کارت‌های موبایلی فقط در موبایل نمایش داده شوند */
    .ships-mobile-cards,
    .aliases-mobile-cards,
    .users-mobile-cards {
        display: block !important;
        visibility: visible !important;
        width: 100%;
    }

    .report-mobile-cards {
        display: block !important;
        visibility: visible !important;
        width: 100%;
    }

    /* جلوگیری از قاطی شدن ساختار جدول با کارت‌ها */
    .ships-table-wrap,
    .aliases-table-wrap,
    .users-table-wrap {
        overflow: visible !important;
    }

    .ship-mobile-card,
    .alias-mobile-card,
    .user-mobile-card {
        display: block !important;
        width: 100%;
        margin-bottom: 12px;
    }
}

/*

/* =========================================================
   Explicit View Control
========================================================= */

.desktop-table-view {
    display: block;
}

.mobile-card-view {
    display: none;
}

@media (min-width: 769px) {
    .desktop-table-view {
        display: block !important;
    }

    .mobile-card-view {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-table-view {
        display: none !important;
    }

    .mobile-card-view {
        display: block !important;
    }
}


/* =========================================================
   Final Safe Fix: Mobile Bottom Nav SVG Rendering
   این بخش باید آخرین بخش فایل باشد
========================================================= */

.mobile-bottom-nav {
    display: none;
}

.mobile-bottom-nav,
.mobile-bottom-nav * {
    box-sizing: border-box;
}

.mobile-bottom-nav-item {
    text-decoration: none !important;
}

.mobile-bottom-nav-icon {
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
}

.mobile-bottom-nav-icon svg {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: none;
    overflow: visible;
}

.mobile-bottom-nav-icon svg path,
.mobile-bottom-nav-icon svg circle,
.mobile-bottom-nav-icon svg rect,
.mobile-bottom-nav-icon svg polygon,
.mobile-bottom-nav-icon svg line,
.mobile-bottom-nav-icon svg polyline {
    fill: currentColor !important;
}

@media (min-width: 1101px) {
    .mobile-bottom-nav {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 1100px) {
    body {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 99999 !important;

        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)) !important;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.28) !important;
        border-radius: 22px !important;

        padding: 8px !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        gap: 7px !important;
    }

    .mobile-bottom-nav-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        min-height: 64px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;

        text-align: center !important;
        color: rgba(255, 255, 255, 0.88) !important;
        border-radius: 16px !important;
        padding: 8px 4px !important;

        transition: all 0.22s ease !important;
    }

    .mobile-bottom-nav-item:hover,
    .mobile-bottom-nav-item.active {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.22)) !important;
        color: #ffffff !important;
    }

    .mobile-bottom-nav-item:active {
        transform: scale(0.97);
    }

    .mobile-bottom-nav-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: #ffffff !important;
    }

    .mobile-bottom-nav-icon svg {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }

    .mobile-bottom-nav-label {
        display: block !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        color: rgba(255, 255, 255, 0.94) !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .main-content {
        padding-bottom: 112px !important;
    }

    .site-footer {
        padding-bottom: 96px !important;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        left: 10px !important;
        right: 10px !important;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 20px !important;
        padding: 7px !important;
        gap: 6px !important;
    }

    .mobile-bottom-nav-item {
        min-height: 62px !important;
        border-radius: 15px !important;
        padding: 8px 3px !important;
        gap: 6px !important;
    }

    .mobile-bottom-nav-icon,
    .mobile-bottom-nav-icon svg {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }

    .mobile-bottom-nav-label {
        font-size: 10.5px !important;
    }

    .main-content {
        padding-bottom: 108px !important;
    }

    .site-footer {
        padding-bottom: 92px !important;
    }
}

@media (max-width: 480px) {
    .mobile-bottom-nav {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 18px !important;
        padding: 6px !important;
        gap: 4px !important;
    }

    .mobile-bottom-nav-item {
        min-height: 58px !important;
        border-radius: 14px !important;
        padding: 7px 2px !important;
        gap: 5px !important;
    }

    .mobile-bottom-nav-icon,
    .mobile-bottom-nav-icon svg {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        max-width: 26px !important;
        max-height: 26px !important;
    }

    .mobile-bottom-nav-label {
        font-size: 10px !important;
    }

    .main-content {
        padding-bottom: 102px !important;
    }

    .site-footer {
        padding-bottom: 86px !important;
    }
}

/* =========================================================
   Final Footer + Mobile Bottom Navigation Fix
   اضافه‌شده برای اصلاح جای فوتر در موبایل
========================================================= */

html,
body {
    min-height: 100%;
}

body.malavan-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #f4f7fb;
}

.app-shell {
    flex: 1 0 auto;
}

.main-content {
    min-width: 0;
}

/* Footer - Desktop & Base */
.site-footer {
    flex-shrink: 0;
    width: 100%;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 12px 16px 14px !important;
    margin: 0 !important;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

.site-footer-line {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.site-footer-muted {
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

/* Base hidden mobile nav */
.mobile-bottom-nav {
    display: none;
}

/* Mobile Layout */
@media (max-width: 1100px) {
    body.malavan-body {
        padding-bottom: 0 !important;
    }

    .app-shell {
        flex: 1 0 auto;
    }

    .main-content {
        padding-bottom: 28px !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1000;

        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        gap: 0;

        min-height: 74px;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom)) !important;

        background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.25);
    }

    .mobile-bottom-nav-item {
        min-width: 0;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.78);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 5px;
        padding: 7px 3px;
        border-radius: 14px;

        transition: all 0.18s ease;
    }

    .mobile-bottom-nav-item:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
    }

    .mobile-bottom-nav-item.active {
        color: #ffffff;
        background: rgba(59, 130, 246, 0.22);
        box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
    }

    .mobile-bottom-nav-icon {
        width: 27px;
        height: 27px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .mobile-bottom-nav-icon svg {
        width: 23px;
        height: 23px;
        display: block;
        fill: currentColor;
    }

    .mobile-bottom-nav-label {
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    /*
      نکته اصلی:
      اینجا دیگر به footer padding-bottom بزرگ نمی‌دهیم.
      چون padding-bottom متن فوتر را خیلی بالا می‌برد.
      به‌جایش margin-bottom می‌دهیم تا کل فوتر بالای منوی fixed قرار بگیرد.
    */
    .site-footer {
        padding: 10px 12px 11px !important;
        margin-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
        border-radius: 16px 16px 0 0;
    }

    .site-footer-inner {
        line-height: 1.65;
    }

    .site-footer-line {
        font-size: 10.5px;
    }

    .site-footer-muted {
        font-size: 9.8px;
        margin-top: 1px;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding-bottom: 22px !important;
    }

    .mobile-bottom-nav {
        min-height: 70px;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-nav-item {
        gap: 4px;
        padding: 6px 2px;
        border-radius: 12px;
    }

    .mobile-bottom-nav-icon {
        width: 25px;
        height: 25px;
    }

    .mobile-bottom-nav-icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav-label {
        font-size: 10px;
    }

    .site-footer {
        padding: 9px 10px 10px !important;
        margin-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
    }

    .site-footer-line {
        font-size: 10px;
    }

    .site-footer-muted {
        font-size: 9.3px;
    }
}

/* =========================================================
   Mobile Bottom Nav - Full Safe Area / PWA Fix
   رفع فضای خالی زیر منوی موبایل در موبایل و وب اپ
========================================================= */

:root {
    --mobile-bottom-nav-height: 72px;
    --mobile-bottom-nav-safe: env(safe-area-inset-bottom, 0px);
    --mobile-bottom-nav-total: calc(var(--mobile-bottom-nav-height) + var(--mobile-bottom-nav-safe));
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #f4f7fb;
}

body.malavan-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #f4f7fb;
}

.app-shell {
    flex: 1 0 auto;
}

.main-content {
    min-width: 0;
}

/* Footer - base */
.site-footer {
    flex-shrink: 0;
    width: 100%;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 12px 16px 14px !important;
    margin: 0 !important;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

.site-footer-line {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.site-footer-muted {
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1100px) {
    :root {
        --mobile-bottom-nav-height: 74px;
    }

    html,
    body {
        overflow-x: hidden;
    }

    body.malavan-body {
        padding-bottom: 0 !important;
    }

    .main-content {
        padding-bottom: 22px !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 9999;

        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        gap: 0;

        height: calc(var(--mobile-bottom-nav-height) + var(--mobile-bottom-nav-safe));
        padding:
            8px
            6px
            calc(8px + var(--mobile-bottom-nav-safe))
            6px !important;

        background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.25);

        box-sizing: border-box;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /*
      این pseudo-element باعث می‌شود حتی ناحیه safe-area پایین
      در PWA / iPhone / fullscreen هم کامل رنگ بگیرد
    */
    .mobile-bottom-nav::after {
        content: "";
        position: absolute;
        right: 0;
        left: 0;
        bottom: calc(-1 * var(--mobile-bottom-nav-safe));
        height: var(--mobile-bottom-nav-safe);
        background: #111827;
        pointer-events: none;
    }

    .mobile-bottom-nav-item {
        min-width: 0;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.78);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 5px;
        padding: 7px 3px;
        border-radius: 14px;
        transition: all 0.18s ease;
    }

    .mobile-bottom-nav-item:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
    }

    .mobile-bottom-nav-item.active {
        color: #ffffff;
        background: rgba(59, 130, 246, 0.22);
        box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
    }

    .mobile-bottom-nav-icon {
        width: 27px;
        height: 27px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .mobile-bottom-nav-icon svg {
        width: 23px;
        height: 23px;
        display: block;
        fill: currentColor;
    }

    .mobile-bottom-nav-label {
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    /*
      فوتر باید دقیقاً بالای منوی fixed قرار بگیرد
      پس margin-bottom برابر ارتفاع واقعی نوار پایین می‌گیرد
    */
    .site-footer {
        padding: 10px 12px 11px !important;
        margin-bottom: var(--mobile-bottom-nav-total) !important;
        border-radius: 16px 16px 0 0;
    }

    .site-footer-inner {
        line-height: 1.65;
    }

    .site-footer-line {
        font-size: 10.5px;
    }

    .site-footer-muted {
        font-size: 9.8px;
        margin-top: 1px;
    }
}

@media (max-width: 640px) {
    :root {
        --mobile-bottom-nav-height: 70px;
    }

    .main-content {
        padding-bottom: 20px !important;
    }

    .mobile-bottom-nav {
        padding:
            6px
            4px
            calc(6px + var(--mobile-bottom-nav-safe))
            4px !important;
    }

    .mobile-bottom-nav-item {
        gap: 4px;
        padding: 6px 2px;
        border-radius: 12px;
    }

    .mobile-bottom-nav-icon {
        width: 25px;
        height: 25px;
    }

    .mobile-bottom-nav-icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav-label {
        font-size: 10px;
    }

    .site-footer {
        padding: 9px 10px 10px !important;
    }

    .site-footer-line {
        font-size: 10px;
    }

    .site-footer-muted {
        font-size: 9.3px;
    }
}

/* حالت نصب‌شده / وب‌اپ / standalone */
@media all and (display-mode: standalone) {
    :root {
        --mobile-bottom-nav-safe: env(safe-area-inset-bottom, 0px);
    }

    body.malavan-body {
        min-height: 100dvh;
    }

    .mobile-bottom-nav {
        bottom: 0;
    }
}

/* برای iOS قدیمی */
@supports (padding: constant(safe-area-inset-bottom)) {
    :root {
        --mobile-bottom-nav-safe: constant(safe-area-inset-bottom);
    }
}

/* =========================================================
   Final Fix: Mobile Date Picker Above Bottom Navigation
   رفع مشکل افتادن انتخابگر تاریخ زیر منوی پایین موبایل
   این بخش باید در انتهای فایل CSS قرار بگیرد
========================================================= */

@media (max-width: 1100px) {
    /* ورودی‌های تاریخ */
    input[data-jdp],
    .app-input[data-jdp],
    #date_from,
    #date_to {
        position: relative;
        z-index: 10;
    }

    /*
      خود پنل datepicker جلالی
      کتابخانه‌های مختلف معمولاً یکی از این کلاس‌ها را استفاده می‌کنند
    */
    .jdp-container,
    .jdp-calendar,
    .datepicker-plot-area,
    .jd-picker,
    .jalali-datepicker,
    .pwt-datepicker,
    [class*="datepicker"],
    [class*="jdp"] {
        z-index: 2147483647 !important;
    }

    /*
      اگر تقویم داخل والدهایی با overflow یا stacking context قرار بگیرد
      این بخش کمک می‌کند روی کارت‌ها و پنل‌ها درست نمایش داده شود
    */
    .filters-panel,
    .filter-grid,
    .filter-item {
        overflow: visible !important;
    }

    /*
      چون bottom nav خیلی بالاست، در صورت باز شدن تقویم، لایه تقویم باید از آن بالاتر باشد
    */
    .mobile-bottom-nav {
        z-index: 9999 !important;
    }

    .jdp-container,
    .jdp-calendar,
    .datepicker-plot-area,
    .jd-picker,
    .jalali-datepicker,
    .pwt-datepicker {
        position: absolute !important;
    }
}

@media (max-width: 768px) {
    /*
      در موبایل‌های کوچک، بعضی datepickerها نزدیک پایین viewport باز می‌شوند
      این offset باعث می‌شود پنل کمی بالاتر دیده شود و زیر bottom nav نرود
    */
    .datepicker-plot-area,
    .jdp-container,
    .jdp-calendar,
    .jd-picker,
    .jalali-datepicker,
    .pwt-datepicker {
        margin-bottom: 88px !important;
    }
}

@media (max-width: 480px) {
    .datepicker-plot-area,
    .jdp-container,
    .jdp-calendar,
    .jd-picker,
    .jalali-datepicker,
    .pwt-datepicker {
        margin-bottom: 96px !important;
    }
}


/* =========================================================
   FINAL OVERRIDE: Report Mobile Cards Compact Fix
   مسیر: /assets/css/style.css
   هدف:
   - فقط اصلاح کارت‌های گزارش سفر در موبایل
   - بدون آسیب به سایر بخش‌ها
   - override کامل استایل‌های قبلی
   این بخش باید آخرین بخش فایل باشد
========================================================= */

@media (max-width: 768px) {
    /* نمایش صحیح نسخه موبایل گزارش */
    .report-table-wrap {
        width: 100% !important;
        overflow: visible !important;
    }

    .report-table {
        display: none !important;
        visibility: hidden !important;
    }

    .report-mobile-cards {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 8px !important;
        visibility: visible !important;
    }

    .report-mobile-card {
        display: block !important;
        width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        padding: 10px 10px 8px !important;
        margin: 0 !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
        overflow: hidden !important;
    }

    .report-mobile-card + .report-mobile-card {
        margin-top: 0 !important;
    }

    .report-mobile-card-header {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .report-mobile-card-header > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .report-mobile-card-title {
        display: block !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        color: #111827 !important;
        margin: 0 0 2px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .report-mobile-card-subtitle {
        display: block !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: #6b7280 !important;
        margin: 0 !important;
        word-break: break-word !important;
    }

    .report-mobile-card-status {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
    }

    .report-mobile-card .status-chip {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 11px !important;
        line-height: 1 !important;
        padding: 5px 8px !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
    }

    /* مهم‌ترین بخش: چیدمان آیتم‌ها */
    .report-mobile-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 2px !important;
        grid-template-columns: none !important;
    }

    .report-mobile-item {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        background: #f9fafb !important;
        border: 1px solid #eef0f3 !important;
        border-radius: 8px !important;
        padding: 7px 8px !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    /* مسیر تمام عرض */
    .report-mobile-item.report-mobile-item-full {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* تعداد مسافر و زمان نیم‌عرض */
    .report-mobile-item.report-mobile-item-half {
        width: calc(50% - 4px) !important;
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }

    .report-mobile-item label {
        display: block !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        margin: 0 0 3px 0 !important;
        line-height: 1.25 !important;
        word-break: normal !important;
    }

    .report-mobile-item strong {
        display: block !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        word-break: break-word !important;
    }

    /* فقط برای مسیر: تک‌خط و ellipsis */
    .report-mobile-item.report-mobile-item-full strong {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: normal !important;
    }

    /* اگر HTML قدیمی باقی ماند، باز هم خراب نشود */
    .report-mobile-item label:empty,
    .report-mobile-item strong:empty {
        display: none !important;
    }
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 480px) {
    .report-mobile-cards {
        gap: 6px !important;
        margin-top: 6px !important;
    }

    .report-mobile-card {
        border-radius: 8px !important;
        padding: 8px 8px 7px !important;
    }

    .report-mobile-card-header {
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .report-mobile-card-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .report-mobile-card-subtitle {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .report-mobile-card .status-chip {
        font-size: 10px !important;
        padding: 4px 7px !important;
    }

    .report-mobile-grid {
        gap: 6px !important;
    }

    .report-mobile-item {
        border-radius: 7px !important;
        padding: 6px 7px !important;
    }

    .report-mobile-item.report-mobile-item-half {
        width: calc(50% - 3px) !important;
        flex: 0 0 calc(50% - 3px) !important;
        max-width: calc(50% - 3px) !important;
    }

    .report-mobile-item label {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    .report-mobile-item strong {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
}

/* =========================================================
   FIX: report mobile half items in one row
========================================================= */
@media (max-width: 768px) {
    .report-mobile-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .report-mobile-grid > .report-mobile-item {
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .report-mobile-grid > .report-mobile-item-full {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .report-mobile-grid > .report-mobile-item-half {
        flex: 0 0 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }
}

@media (max-width: 480px) {
    .report-mobile-grid {
        gap: 6px !important;
    }

    .report-mobile-grid > .report-mobile-item-half {
        flex: 0 0 calc(50% - 3px) !important;
        width: calc(50% - 3px) !important;
        max-width: calc(50% - 3px) !important;
    }
}

/* =========================================================
   HARD FIX: force passenger/time same row on mobile
========================================================= */
@media (max-width: 768px) {
    .report-mobile-card .report-mobile-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .report-mobile-card .report-mobile-grid .report-mobile-item {
        box-sizing: border-box !important;
        display: block !important;
        margin: 0 !important;
        min-width: 0 !important;
    }

    .report-mobile-card .report-mobile-grid .report-mobile-item-full {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .report-mobile-card .report-mobile-grid .report-mobile-item-half {
        flex: 0 0 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }
}


/* =========================================================
   FINAL OVERRIDE - Report Mobile Compact + Aggregate Compact
   تاریخ: 2026-05-15
========================================================= */

/* -----------------------------
   Report mobile cards
----------------------------- */
.report-mobile-cards {
    display: none;
}

@media (max-width: 768px) {
    .report-table-wrap .report-table {
        display: none !important;
    }

    .report-mobile-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .report-mobile-card {
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        padding: 10px !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    }

    .report-mobile-card-header {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .report-mobile-card-header-main {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .report-mobile-card-title {
        margin: 0 0 2px 0 !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.4 !important;
        color: #111827 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .report-mobile-card-subtitle {
        font-size: 11px !important;
        color: #6b7280 !important;
        line-height: 1.4 !important;
    }

    .report-mobile-card-status {
        flex: 0 0 auto !important;
    }

    .report-mobile-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .report-mobile-item {
        min-width: 0 !important;
        background: #f8fafc !important;
        border: 1px solid #edf2f7 !important;
        border-radius: 8px !important;
        padding: 7px 8px !important;
    }

    .report-mobile-item-full {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .report-mobile-item-half {
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }

    .report-mobile-item label {
        display: block !important;
        margin: 0 0 2px 0 !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        color: #6b7280 !important;
        line-height: 1.4 !important;
    }

    .report-mobile-item strong {
        display: block !important;
        margin: 0 !important;
        font-size: 12.5px !important;
        font-weight: 800 !important;
        color: #111827 !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    .report-mobile-item-full strong {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .report-mobile-card .status-chip {
        font-size: 10px !important;
        padding: 4px 8px !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    .report-mobile-card {
        border-radius: 8px !important;
        padding: 8px !important;
    }

    .report-mobile-card-title {
        font-size: 13px !important;
    }

    .report-mobile-card-subtitle {
        font-size: 10px !important;
    }

    .report-mobile-item {
        padding: 6px 7px !important;
    }

    .report-mobile-item label {
        font-size: 10px !important;
    }

    .report-mobile-item strong {
        font-size: 11.5px !important;
    }

    .report-mobile-card .status-chip {
        font-size: 9.5px !important;
        padding: 3px 7px !important;
    }
}

/* -----------------------------
   Aggregate summary compact
----------------------------- */
.aggregate-report-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.aggregate-report-card,
.aggregate-card.aggregate-report-card,
.aggregate-mobile-card.aggregate-report-card {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.aggregate-report-header {
    margin-bottom: 10px !important;
}

.aggregate-report-ship-name {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    color: #111827 !important;
    word-break: break-word !important;
}

.aggregate-report-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

.aggregate-report-stat {
    flex: 0 0 calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    min-width: 0 !important;
    background: #f8fafc !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
}

.aggregate-report-stat label {
    display: block !important;
    margin: 0 0 4px 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
}

.aggregate-report-stat strong {
    display: block !important;
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.3 !important;
}

.aggregate-report-paths {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.aggregate-report-path-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    min-width: 0 !important;
}

.aggregate-report-path-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.aggregate-report-path-stats {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 12px !important;
    color: #475569 !important;
    white-space: nowrap !important;
}

.aggregate-report-path-stats span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* compatibility for old classes if any remain */
.aggregate-card-header {
    display: block !important;
    margin-bottom: 10px !important;
}

.aggregate-card-header h4 {
    margin: 0 !important;
}

.aggregate-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.aggregate-path-item,
.aggregate-mobile-path-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

/* Desktop */
@media (min-width: 769px) {
    .aggregate-report-list {
        gap: 12px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .aggregate-report-list {
        gap: 8px !important;
    }

    .aggregate-report-card,
    .aggregate-card.aggregate-report-card,
    .aggregate-mobile-card.aggregate-report-card {
        border-radius: 10px !important;
        padding: 10px !important;
    }

    .aggregate-report-header {
        margin-bottom: 8px !important;
    }

    .aggregate-report-ship-name {
        font-size: 14px !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .aggregate-report-stats {
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .aggregate-report-stat {
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        border-radius: 8px !important;
        padding: 7px 8px !important;
    }

    .aggregate-report-stat label {
        font-size: 10.5px !important;
        margin-bottom: 2px !important;
    }

    .aggregate-report-stat strong {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .aggregate-report-paths {
        gap: 6px !important;
    }

    .aggregate-report-path-row {
        gap: 8px !important;
        border-radius: 8px !important;
        padding: 8px !important;
    }

    .aggregate-report-path-name {
        font-size: 12px !important;
    }

    .aggregate-report-path-stats {
        gap: 8px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .aggregate-report-card,
    .aggregate-card.aggregate-report-card,
    .aggregate-mobile-card.aggregate-report-card {
        border-radius: 8px !important;
        padding: 8px !important;
    }

    .aggregate-report-ship-name {
        font-size: 13px !important;
    }

    .aggregate-report-stat {
        padding: 6px 7px !important;
    }

    .aggregate-report-stat label {
        font-size: 10px !important;
    }

    .aggregate-report-stat strong {
        font-size: 13px !important;
    }

    .aggregate-report-path-row {
        padding: 7px !important;
    }

    .aggregate-report-path-name {
        font-size: 11.5px !important;
    }

    .aggregate-report-path-stats {
        font-size: 10px !important;
        gap: 6px !important;
    }
}
