﻿@font-face {
    font-family: 'Yekan';
    src: url('Fonts/Yekan/Yekan.eot'); /* IE9 Compat Modes */
    src: url('Fonts/Yekan/Yekan.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('Fonts/Yekan/Yekan.woff2') format('woff2'), /* Modern Browsers */
    url('Fonts/Yekan/Yekan.woff') format('woff'), /* Modern Browsers */
    url('Fonts/Yekan/Yekan.otf') format('opentype'), /* Open Type Font */
    url('Fonts/Yekan/Yekan.ttf') format('truetype'); /* Safari, Android, iOS */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("fonts/FontsFree-Net-ir_sans.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("fonts/FontsFree-Net-ir_sans.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: CenturyGothic;
    src: url('fonts/CenturyGothic/GOTHIC.TTF');
    font-weight: normal;
    font-style: normal;
}

.font-gothic {
    font-family: CenturyGothic !important;
}

:root {
    --mud-typography-default-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-h1-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-h2-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-h3-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-h4-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-h5-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-h6-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-body1-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-body2-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-subtitle1-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-subtitle2-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-button-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-caption-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-typography-overline-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --mud-palette-overlay-dark: #0e244d33;
    --mud-typography-input-family: "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif !important;
    --jf-font-fa: "IRANSansX", "IRANSans", "Vazir", "Yekan", "Segoe UI", Tahoma, sans-serif;
    --jf-font-en: "CenturyGothic", "Segoe UI", sans-serif;
    --jf-primary: #1d4ed8;
    --jf-primary-soft: #eff6ff;
    --jf-secondary: #0f9d8a;
    --jf-tertiary: #7c3aed;
    --jf-surface-glass: #ffffff;
    --jf-surface-glass-soft: #f8fbff;
    --jf-surface-muted: #f1f5f9;
    --jf-border: rgba(148, 163, 184, .18);
    --jf-border-strong: rgba(148, 163, 184, .28);
    --jf-text: #0f172a;
    --jf-text-soft: #64748b;
    --jf-shadow-card: 0 18px 40px rgba(15, 23, 42, .07);
    --jf-shadow-rest: 0 10px 24px rgba(15, 23, 42, .05);
    --jf-radius-xl: 28px;
    --jf-radius-lg: 22px;
    --jf-radius-md: 16px;
}


h1,
h2,
h3,
h4,
h5,
h6,
a,
strong,
label,
input,
button,
select,
textarea {
    font-family: var(--jf-font-fa, "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif) !important;
}


@font-face {
    font-family: vazir;
    src: url('fonts/vazir.woff');
    font-weight: normal;
    font-style: normal;
}

body {
}

.standard-topbar {
    min-height: 64px;
    height: 64px;
    padding-inline: 12px 18px;
    background: rgba(255, 255, 255, .96) !important;
    color: #172033 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
    backdrop-filter: blur(14px);
    direction: rtl;
}

.standard-topbar__menu {
    margin-inline-end: 4px;
    color: #294768 !important;
}

.standard-topbar__icon {
    width: 38px;
    height: 38px;
    border: 1px solid #d9e5f1;
    background: #ffffff !important;
    color: #294768 !important;
    margin-inline: 4px;
}

.standard-topbar__brand {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.standard-topbar__brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eef5fb;
    border: 1px solid #d9e5f1;
    overflow: hidden;
}

.standard-topbar__brand-mark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.standard-topbar__brand strong,
.standard-topbar__brand small {
    display: block;
    line-height: 1.45;
}

.standard-topbar__brand strong {
    font-size: .95rem;
    font-weight: 900;
}

.standard-topbar__brand small {
    color: #66758a;
    font-size: .72rem;
}

.standard-topbar__user {
    min-height: 44px;
    padding: 4px 6px 4px 8px;
    border: 1px solid #d9e5f1;
    border-radius: 999px;
    background: #fff;
    color: #172033;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.standard-topbar__user-copy {
    display: grid;
    text-align: right;
    line-height: 1.45;
}

.standard-topbar__user-copy strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 900;
}

.standard-topbar__user-copy small {
    color: #66758a;
    font-size: .68rem;
}

.standard-topbar__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #1d4ed8;
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
}

.standard-nav {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    background: #ffffff;
    color: #1f2937;
    border-left: 1px solid #dbe4ef;
    direction: rtl;
    font-family: var(--jf-font-fa, "IRANSansX", "IRANSans", "Vazir", "Yekan", Tahoma, sans-serif);
}

.standard-nav__header {
    padding: 14px;
    border-bottom: 1px solid #edf2f7;
}

.standard-nav__brand {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.standard-nav__brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    overflow: hidden;
}

.standard-nav__brand-mark img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.standard-nav__brand strong,
.standard-nav__brand small {
    display: block;
    line-height: 1.55;
}

.standard-nav__brand strong {
    font-size: 1rem;
    font-weight: 900;
}

.standard-nav__brand small {
    color: #64748b;
    font-size: .74rem;
}

.standard-nav__search {
    padding: 10px 14px;
    border-bottom: 1px solid #edf2f7;
}

.standard-nav__scroll {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 18px;
    scrollbar-width: thin;
    scrollbar-color: #c8d3e0 transparent;
}

.standard-nav .mud-nav-menu {
    padding: 0;
}

.standard-nav .mud-nav-group-title,
.standard-nav .mud-nav-link {
    min-height: 40px;
    margin: 2px 0;
    border-radius: 8px;
    color: #334155 !important;
    font-size: .8rem;
    font-weight: 800;
}

.standard-nav .mud-nav-group-title:hover,
.standard-nav .mud-nav-link:hover,
.standard-nav .mud-nav-link.mud-selected {
    background: #edf6ff !important;
    color: #174ea6 !important;
}

.standard-nav .mud-nav-link.mud-selected {
    box-shadow: inset 3px 0 0 #1d4ed8;
}

.standard-nav .mud-icon-root {
    color: #52637a !important;
}

.standard-nav .mud-nav-link.mud-selected .mud-icon-root,
.standard-nav .mud-nav-group-title:hover .mud-icon-root,
.standard-nav .mud-nav-link:hover .mud-icon-root {
    color: #1d4ed8 !important;
}

@media (min-width: 1280px) {
    html[dir="rtl"] .app-shell .mud-main-content.app-shell__main.app-shell__main--standard.app-shell__main--drawer-expanded {
        margin-right: clamp(232px, 20vw, 288px) !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 1440px) and (min-width: 1280px) {
    .standard-nav__header {
        padding: 10px 12px;
    }

    .standard-nav__brand {
        min-height: 46px;
    }

    .standard-nav__brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .standard-nav__brand small {
        display: none;
    }

    .standard-nav__search {
        padding: 8px 10px;
    }

    .standard-nav__scroll {
        padding-inline: 6px;
    }

    .standard-nav .mud-nav-group-title,
    .standard-nav .mud-nav-link {
        min-height: 36px;
        font-size: .76rem;
    }
}

@media (max-width: 960px) {
    .standard-topbar {
        min-height: auto;
        height: auto;
        padding: 8px 10px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .standard-topbar__brand small,
    .standard-topbar__user-copy small {
        display: none;
    }

    .standard-topbar__user-copy strong {
        max-width: 118px;
    }
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: var(--jf-font-fa, "IRANSansX", "IRANSans", vazir, Yekan, Tahoma, sans-serif) !important;
}

html,
body,
#app {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(14,165,233,.08), transparent 22%),
        radial-gradient(circle at top left, rgba(15,157,138,.06), transparent 18%),
        linear-gradient(180deg, #f4f8fc 0%, #eef4fb 52%, #f8fbff 100%);
    color: var(--jf-text);
}

.ltr {
    direction: ltr;
}

.rtl {
    direction: rtl;
}

.dimmer {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
    transition: background-color .2s;
    background-color: transparent;
    z-index: 2;
}

    .dimmer.dim {
        pointer-events: all;
        background-color: rgba(0,0,0, .6);
    }


.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: inherit !important;
    line-height: inherit !important;
}

.mud-input-outlined .mud-input-label-inputcontrol,
.mud-input-outlined .mud-input-label {
    background: var(--jf-surface-glass) !important;
    color: var(--jf-text-soft) !important;
    padding-inline: 6px !important;
    border-radius: 999px;
}

.mud-input-outlined.mud-input-focused .mud-input-label-inputcontrol,
.mud-input-outlined.mud-input-focused .mud-input-label,
.mud-input-outlined.mud-shrink ~ label,
.mud-input-control.mud-input-required .mud-input-label-inputcontrol {
    color: var(--jf-primary) !important;
}

/* ستاره فیلدهای اجباری دیالوگ اطلاعات دارو به رنگ قرمز */
.jf-drug-info-dialog .mud-input-control.mud-input-required > .mud-input-control-input-container > .mud-input-label::after {
    color: var(--mud-palette-error, #f44336) !important;
}

/* چیپ‌های انتخاب‌شده (تخصص/بیماری/تشخیص): متن طولانی wrap شود تا دکمه بستن (X) همیشه دیده شود */
.jf-drug-info-dialog .mud-chipset .mud-chip {
    height: auto;
    min-height: 32px;
    white-space: normal;
}

.jf-drug-info-dialog .mud-chipset .mud-chip .mud-chip-content {
    white-space: normal;
    word-break: break-word;
}

.jf-drug-info-dialog .mud-chipset .mud-chip .mud-chip-close-button {
    flex: 0 0 auto;
}

.mud-alert-position {
    justify-content: start !important;
}

fieldset:not(.mud-input-outlined-border) {
    border: solid 1px darkgray;
}

fieldset:not(.mud-input-outlined-border) > legend {
    margin-right: 10px;
    padding-right: 5px;
    padding-left: 5px;
}

.fieldset-footer {
    display: flex;
    border-top: solid 1px gray;
    margin-top: 20px;
    padding-top: 15px;
}

.mud-ex-file-display-toolbar {
    display: none !important;
}

.DialogTransparent {
}

    .DialogTransparent > .mud-overlay-dark {
        background-color: rgb(0 0 0 / 10%) !important;
    }

.mud-table-cell {
    text-align: center;
}

.mud-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--jf-radius-xl) !important;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.95));
    border: 1px solid var(--jf-border);
    box-shadow: var(--jf-shadow-card) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mud-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, .09) !important;
    border-color: rgba(59, 130, 246, .22);
}

.mud-card-header {
    position: relative;
    padding: 20px 24px 14px !important;
    background:
        linear-gradient(135deg, rgba(37,99,235,.09), rgba(15,157,138,.05)),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.92));
    border-bottom: 1px solid rgba(148,163,184,.12);
}

.mud-card-header .mud-typography,
.mud-card-header,
.mud-card > .mud-card-header:first-child {
    color: var(--jf-text);
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: -.01em;
}

.mud-card-content {
    padding: 22px 24px !important;
}

.mud-card-content .mud-grid {
    row-gap: 6px;
}

.mud-card-content .mud-input-control,
.mud-card-content .mud-select,
.mud-card-content .mud-autocomplete,
.mud-card-content .mud-date-picker,
.mud-card-content .mud-numeric-field {
    margin-bottom: 2px;
}

.mud-card-content .mud-input-outlined .mud-input-outlined-border,
.mud-card-content .mud-input-control .mud-input-outlined-border {
    border-color: rgba(148,163,184,.24);
}

.mud-card-content .mud-input-slot {
    border-radius: 14px !important;
}

.mud-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 24px 22px !important;
    background: linear-gradient(180deg, rgba(248,251,255,.76), rgba(241,245,249,.92));
    border-top: 1px solid rgba(148,163,184,.10);
}

.mud-card-actions .mud-button,
.mud-card-actions .mud-icon-button,
.mud-card-actions .mud-button-root {
    border-radius: 14px !important;
    text-transform: none !important;
    box-shadow: 0 10px 22px rgba(15,23,42,.05);
}

.mud-card-actions .mud-button {
    font-weight: 800;
    padding-inline: 14px !important;
}

.mud-data-grid,
.mud-table {
    overflow: hidden;
    border-radius: var(--jf-radius-xl) !important;
    border: 1px solid var(--jf-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--jf-shadow-card);
}

.mud-data-grid .mud-table-container,
.mud-table .mud-table-container {
    border-radius: inherit;
}

.mud-data-grid .mud-table-root,
.mud-table .mud-table-root {
    background: transparent;
}

.mud-data-grid .mud-table-head,
.mud-table .mud-table-head {
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.06), transparent 35%),
        linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
}

.mud-data-grid .mud-table-head .mud-table-cell,
.mud-table .mud-table-head .mud-table-cell {
    color: #0f172a;
    font-size: .85rem;
    font-weight: 900;
    border-bottom: 1px solid rgba(148,163,184,.18) !important;
    border-left: none !important;
    border-right: none !important;
    white-space: nowrap;
}

.mud-data-grid .mud-table-body .mud-table-cell,
.mud-table .mud-table-body .mud-table-cell,
.mud-data-grid .mud-table-foot .mud-table-cell,
.mud-table .mud-table-foot .mud-table-cell {
    color: #334155;
    font-size: .92rem;
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226,232,240,.9) !important;
    border-left: none !important;
    border-right: none !important;
}

.mud-data-grid .mud-table-body tr:nth-child(even),
.mud-table .mud-table-body tr:nth-child(even) {
    background-color: rgba(248,250,252,.78);
}

.mud-data-grid .mud-table-body tr:hover,
.mud-table .mud-table-body tr:hover {
    background-color: rgba(239,246,255,.92) !important;
}

.mud-data-grid .mud-table-body tr:hover .mud-table-cell,
.mud-table .mud-table-body tr:hover .mud-table-cell {
    color: #0f172a;
}

.mud-data-grid .mud-table-cell .mud-button,
.mud-data-grid .mud-table-cell .mud-icon-button,
.mud-data-grid .mud-table-cell .mud-chip,
.mud-data-grid .mud-table-cell .mud-button-group,
.mud-table .mud-table-cell .mud-button,
.mud-table .mud-table-cell .mud-icon-button,
.mud-table .mud-table-cell .mud-chip,
.mud-table .mud-table-cell .mud-button-group {
    border-radius: 14px !important;
}

.mud-data-grid .mud-table-cell .mud-button,
.mud-table .mud-table-cell .mud-button {
    text-transform: none;
    font-weight: 800;
}

.mud-data-grid .mud-table-cell .mud-icon-button,
.mud-table .mud-table-cell .mud-icon-button {
    background: rgba(248,250,252,.92);
    border: 1px solid rgba(148,163,184,.14);
}

.mud-data-grid .mud-chip,
.mud-table .mud-chip {
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.mud-data-grid .mud-table-pagination,
.mud-table .mud-table-pagination {
    padding: 12px 18px !important;
    background: linear-gradient(180deg, rgba(248,251,255,.9), rgba(241,245,249,.94));
    border-top: 1px solid rgba(148,163,184,.12);
}

.mud-data-grid .mud-table-pagination .mud-button-root,
.mud-table .mud-table-pagination .mud-button-root {
    border-radius: 12px !important;
}

.mud-data-grid .mud-table-pagination-caption,
.mud-table .mud-table-pagination-caption,
.mud-data-grid .mud-select-input,
.mud-table .mud-select-input {
    color: var(--jf-text-soft);
    font-weight: 700;
}

.mud-data-grid .mud-table-head .mud-input-slot,
.mud-data-grid .mud-table-filter .mud-input-slot {
    border-radius: 12px !important;
    background: rgba(255,255,255,.82);
}

.mud-data-grid .mud-table-head .mud-input-control,
.mud-data-grid .mud-table-filter .mud-input-control {
    margin-block: 6px;
}

.mud-data-grid .mud-table-filter-panel,
.mud-popover .mud-paper {
    border-radius: 18px !important;
}

.mud-data-grid .mud-checkbox .mud-button-root,
.mud-table .mud-checkbox .mud-button-root {
    border-radius: 10px !important;
}

.mud-data-grid .mud-sort-label,
.mud-table .mud-sort-label {
    gap: 6px;
}

.mud-data-grid .mud-table-loading,
.mud-table .mud-table-loading {
    backdrop-filter: blur(2px);
}

/* Admin internal report/list surfaces.
   The admin home and section menu keep the mosaic shell; every inner admin page
   receives this scoped treatment from MainLayout so existing pages do not need
   individual markup changes. */
.app-shell__content--admin-list {
    --admin-list-primary: #1e40af;
    --admin-list-primary-2: #3b82f6;
    --admin-list-surface: rgba(255, 255, 255, .96);
    --admin-list-soft: #f8fbff;
    --admin-list-border: rgba(148, 163, 184, .20);
    --admin-list-text: #0f172a;
    --admin-list-muted: #64748b;
    --admin-list-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    --admin-list-shadow-soft: 0 10px 24px rgba(37, 99, 235, .06);
    padding: 26px !important;
    overflow: visible !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .12), transparent 24%),
        radial-gradient(circle at top left, rgba(16, 185, 129, .08), transparent 20%),
        linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%) !important;
}

.app-shell__content--admin-list > * {
    direction: rtl;
}

.app-shell__content--admin-list > .mud-card,
.app-shell__content--admin-list > .mud-paper,
.app-shell__content--admin-list .expense-panel,
.app-shell__content--admin-list .pkg-panel,
.app-shell__content--admin-list .pkg-grid-shell,
.app-shell__content--admin-list .expense-result-card {
    border-radius: 28px !important;
    border: 1px solid var(--admin-list-border) !important;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .96) 100%) !important;
    box-shadow: var(--admin-list-shadow) !important;
}

.app-shell__content--admin-list > .mud-card:first-of-type,
.app-shell__content--admin-list .expense-panel:first-of-type,
.app-shell__content--admin-list .pkg-panel:first-of-type {
    position: relative;
    overflow: hidden;
}

.app-shell__content--admin-list > .mud-card:first-of-type::before,
.app-shell__content--admin-list .expense-panel:first-of-type::before,
.app-shell__content--admin-list .pkg-panel:first-of-type::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #06b6d4, #10b981);
    z-index: 1;
}

.app-shell__content--admin-list .mud-card-header,
.app-shell__content--admin-list .pkg-panel-header,
.app-shell__content--admin-list .expense-panel-header,
.app-shell__content--admin-list .pkg-grid-topbar {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .13), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .92)) !important;
    border-bottom: 1px solid rgba(148, 163, 184, .16) !important;
}

.app-shell__content--admin-list .mud-card-header,
.app-shell__content--admin-list .mud-card-header .mud-typography,
.app-shell__content--admin-list .pkg-title,
.app-shell__content--admin-list .expense-panel-title,
.app-shell__content--admin-list .pkg-grid-title {
    color: var(--admin-list-text) !important;
    font-weight: 900 !important;
}

.app-shell__content--admin-list .mud-card-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .64), rgba(248, 251, 255, .76));
}

.app-shell__content--admin-list .mud-card-content > .mud-grid,
.app-shell__content--admin-list .pkg-filter-shell,
.app-shell__content--admin-list .expense-filter-shell {
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border: 1px solid rgba(219, 234, 254, .92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .90);
}

.app-shell__content--admin-list .mud-card-content .mud-grid > .mud-grid-item,
.app-shell__content--admin-list .expense-filter-item {
    border-radius: 16px;
}

.app-shell__content--admin-list .mud-input-outlined .mud-input-outlined-border,
.app-shell__content--admin-list .mud-input-control .mud-input-outlined-border {
    border-color: rgba(148, 163, 184, .30) !important;
}

.app-shell__content--admin-list .mud-input-slot {
    background: rgba(255, 255, 255, .88) !important;
}

.app-shell__content--admin-list .mud-input-control:hover .mud-input-outlined-border,
.app-shell__content--admin-list .mud-input-focused .mud-input-outlined-border {
    border-color: rgba(59, 130, 246, .72) !important;
}

.app-shell__content--admin-list .mud-card-actions,
.app-shell__content--admin-list .pkg-actions,
.app-shell__content--admin-list .expense-filter-actions,
.app-shell__content--admin-list .expense-actions {
    background: linear-gradient(180deg, rgba(248, 251, 255, .78), rgba(241, 245, 249, .96)) !important;
    border-top: 1px solid rgba(148, 163, 184, .14) !important;
}

.app-shell__content--admin-list .mud-button,
.app-shell__content--admin-list .mud-icon-button,
.app-shell__content--admin-list .mud-button-group,
.app-shell__content--admin-list .mud-menu .mud-button-root {
    border-radius: 14px !important;
    text-transform: none !important;
    font-weight: 800 !important;
}

.app-shell__content--admin-list .mud-button-filled-primary,
.app-shell__content--admin-list .mud-button-filled-success,
.app-shell__content--admin-list .mud-button-filled-info {
    box-shadow: 0 12px 24px rgba(37, 99, 235, .16) !important;
}

.app-shell__content--admin-list > .mud-data-grid,
.app-shell__content--admin-list > .mud-table,
.app-shell__content--admin-list .mud-data-grid,
.app-shell__content--admin-list .mud-table {
    border-radius: 28px !important;
    border: 1px solid var(--admin-list-border) !important;
    background: var(--admin-list-surface) !important;
    box-shadow: var(--admin-list-shadow) !important;
}

.app-shell__content--admin-list .mud-data-grid {
    margin-top: 18px;
}

.app-shell__content--admin-list .mud-data-grid .mud-table-head,
.app-shell__content--admin-list .mud-table .mud-table-head {
    background:
        linear-gradient(135deg, rgba(30, 64, 175, .10), rgba(6, 182, 212, .08)),
        linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%) !important;
}

.app-shell__content--admin-list .mud-data-grid .mud-table-head .mud-table-cell,
.app-shell__content--admin-list .mud-table .mud-table-head .mud-table-cell {
    color: #1e293b !important;
    font-weight: 900 !important;
    font-size: .86rem;
    padding-block: 15px !important;
}

.app-shell__content--admin-list .mud-data-grid .mud-table-body .mud-table-cell,
.app-shell__content--admin-list .mud-table .mud-table-body .mud-table-cell {
    color: #334155 !important;
    border-bottom-color: rgba(226, 232, 240, .92) !important;
}

.app-shell__content--admin-list .mud-data-grid .mud-table-body tr:nth-child(even),
.app-shell__content--admin-list .mud-table .mud-table-body tr:nth-child(even) {
    background: rgba(248, 250, 252, .86) !important;
}

.app-shell__content--admin-list .mud-data-grid .mud-table-body tr:hover,
.app-shell__content--admin-list .mud-table .mud-table-body tr:hover {
    background: rgba(239, 246, 255, .98) !important;
}

.app-shell__content--admin-list .mud-table-pagination {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.app-shell__content--admin-list .mud-chip {
    border-radius: 999px !important;
    font-weight: 900 !important;
}

.app-shell__content--admin-list .HeaderCell,
.app-shell__content--admin-list .drug-grid-header {
    background: transparent !important;
}

.app-shell__content--admin-list .IsVoidRow td {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

html[data-theme="dark"] .app-shell__content--admin-list {
    --admin-list-surface: rgba(16, 29, 47, .96);
    --admin-list-soft: #132337;
    --admin-list-border: rgba(126, 155, 186, .26);
    --admin-list-text: #e7eef8;
    --admin-list-muted: #9fb1c8;
    background:
        radial-gradient(circle at top right, rgba(111, 182, 255, .10), transparent 24%),
        radial-gradient(circle at top left, rgba(59, 203, 176, .08), transparent 20%),
        linear-gradient(135deg, #07111f 0%, #0b1727 100%) !important;
}

html[data-theme="dark"] .app-shell__content--admin-list > .mud-card,
html[data-theme="dark"] .app-shell__content--admin-list > .mud-paper,
html[data-theme="dark"] .app-shell__content--admin-list .mud-data-grid,
html[data-theme="dark"] .app-shell__content--admin-list .mud-table {
    background:
        radial-gradient(circle at top left, rgba(111, 182, 255, .08), transparent 28%),
        linear-gradient(180deg, rgba(16, 29, 47, .98) 0%, rgba(13, 24, 40, .96) 100%) !important;
}

html[data-theme="dark"] .app-shell__content--admin-list .mud-card-content > .mud-grid,
html[data-theme="dark"] .app-shell__content--admin-list .pkg-filter-shell,
html[data-theme="dark"] .app-shell__content--admin-list .expense-filter-shell {
    background: linear-gradient(180deg, rgba(19, 35, 55, .96), rgba(16, 29, 47, .98)) !important;
    border-color: rgba(126, 155, 186, .24) !important;
}

html[data-theme="dark"] .app-shell__content--admin-list .mud-data-grid .mud-table-head,
html[data-theme="dark"] .app-shell__content--admin-list .mud-table .mud-table-head,
html[data-theme="dark"] .app-shell__content--admin-list .mud-card-header {
    background: linear-gradient(180deg, rgba(19, 35, 55, .98), rgba(16, 29, 47, .98)) !important;
}

html[data-theme="dark"] .app-shell__content--admin-list .mud-data-grid .mud-table-head .mud-table-cell,
html[data-theme="dark"] .app-shell__content--admin-list .mud-table .mud-table-head .mud-table-cell,
html[data-theme="dark"] .app-shell__content--admin-list .mud-card-header,
html[data-theme="dark"] .app-shell__content--admin-list .mud-card-header .mud-typography {
    color: #e7eef8 !important;
}

@media (max-width: 768px) {
    .app-shell__content--admin-list {
        padding: 14px !important;
    }

    .app-shell__content--admin-list > .mud-card,
    .app-shell__content--admin-list > .mud-paper,
    .app-shell__content--admin-list .mud-data-grid,
    .app-shell__content--admin-list .mud-table {
        border-radius: 22px !important;
    }
}

/* Modern dialog shell for all MudBlazor dialogs */
.mud-dialog-container {
    padding: 20px;
}

.mud-overlay-dark {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mud-dialog {
    overflow: hidden;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .05), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .96) 100%);
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 28px 72px rgba(15, 23, 42, .18) !important;
    animation: app-dialog-pop .16s ease-out;
}

.mud-dialog-title {
    padding: 18px 24px 14px !important;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(15, 157, 138, .08)),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0f172a;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.mud-dialog-title *,
.mud-dialog-title .mud-typography {
    color: inherit;
    font: inherit;
}

.mud-dialog-content {
    padding: 22px 24px 12px !important;
    background: transparent;
}

.mud-dialog-actions {
    padding: 16px 24px 22px !important;
    gap: 10px;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(248, 251, 255, .70), rgba(241, 245, 249, .96));
    border-top: 1px solid rgba(148, 163, 184, .10);
}

.mud-dialog-actions .mud-button {
    border-radius: 14px;
    text-transform: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.mud-dialog .mud-input-root,
.mud-dialog .mud-select,
.mud-dialog .mud-autocomplete,
.mud-dialog .mud-text-field,
.mud-dialog .mud-numeric-field,
.mud-dialog .mud-date-picker {
    --mud-input-outlined-border-radius: 14px;
}

.mud-dialog .mud-paper {
    border-radius: 18px;
}

.mud-dialog .mud-table-container {
    border-radius: 18px;
    overflow: hidden;
}

.mud-dialog .mud-divider {
    opacity: .8;
}

@keyframes app-dialog-pop {
    from {
        transform: translateY(10px) scale(.985);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 960px) {
    .mud-card-header {
        padding: 16px 18px 12px !important;
    }

    .mud-card-content {
        padding: 16px 18px !important;
    }

    .mud-card-actions {
        padding: 14px 18px 18px !important;
    }

    .mud-data-grid,
    .mud-table {
        border-radius: 22px !important;
    }

    .mud-data-grid .mud-table-head .mud-table-cell,
    .mud-table .mud-table-head .mud-table-cell,
    .mud-data-grid .mud-table-body .mud-table-cell,
    .mud-table .mud-table-body .mud-table-cell {
        font-size: .84rem;
    }

    .mud-dialog-container {
        padding: 10px;
    }

    .mud-dialog {
        border-radius: 22px !important;
    }

    .mud-dialog-title {
        padding: 16px 18px 12px !important;
        font-size: .98rem;
    }

    .mud-dialog-content {
        padding: 16px 18px 10px !important;
    }

    .mud-dialog-actions {
        padding: 14px 18px 18px !important;
        flex-wrap: wrap;
    }
}

.column-header {
    flex-direction: column;
    text-wrap-mode: nowrap;
}

.sortable-column-header {
    text-wrap-mode: nowrap;
}

.column-options {
    flex-direction: row !important;
}

th.mud-table-cell {
    border-collapse: collapse;
    border: solid 1px rgba(224,224,224,1);
}

.IsVoidRow td {
    background-color:#ff0000;
}

.app-bootstrap-loader,
.anonymous-loading-screen,
.app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.app-bootstrap-loader.jafam-logo-loader-stage,
.anonymous-loading-screen.jafam-logo-loader-stage,
.app-loading-overlay.jafam-logo-loader-stage {
    --jafam-loader-blue: #1687d9;
    --jafam-loader-blue-2: #0a5fa8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, .90), rgba(235, 247, 255, .92)),
        radial-gradient(circle at 50% 45%, rgba(22, 135, 217, .18), transparent 32%),
        linear-gradient(135deg, #ffffff, #e9f6ff);
    transition: opacity .55s ease, visibility .55s ease, transform .55s ease;
}

.app-bootstrap-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
}

.jafam-logo-loader {
    position: relative;
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    z-index: 1;
    animation: jafam-loader-float 2.7s ease-in-out infinite;
}

.jafam-logo-loader::before {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(22, 135, 217, .18);
    border-top-color: rgba(22, 135, 217, .85);
    border-right-color: rgba(22, 135, 217, .42);
    filter: drop-shadow(0 0 10px rgba(22, 135, 217, .25));
    animation: jafam-loader-orbit 1.25s linear infinite;
}

.jafam-logo-loader::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 135, 217, .18), transparent 66%);
    z-index: -1;
    animation: jafam-loader-pulse-halo 1.8s ease-in-out infinite;
}

.jafam-logo-loader__logo {
    width: 128px;
    height: 128px;
    object-fit: contain;
    filter:
        drop-shadow(0 18px 24px rgba(14, 88, 154, .20))
        drop-shadow(0 0 14px rgba(22, 135, 217, .28));
    animation: jafam-loader-logo-breath 1.8s ease-in-out infinite;
}

.jafam-logo-loader__scan-line {
    position: absolute;
    width: 150px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
    transform: rotate(-17deg);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: jafam-loader-shine 2.2s ease-in-out infinite;
}

.jafam-logo-loader__text {
    position: relative;
    z-index: 1;
    margin-top: 36px;
    color: #145987;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.8;
    text-align: center;
}

.jafam-logo-loader__dots::after {
    content: "";
    animation: jafam-loader-dots 1.2s steps(4, end) infinite;
}

.app-loading-overlay.jafam-logo-loader-stage {
    z-index: 10000;
}

.app-loading-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .56);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.anonymous-loading-screen.jafam-logo-loader-stage {
    z-index: 9998;
}

.anonymous-loading-screen--soft {
    pointer-events: none;
}

html[data-theme="dark"] .app-bootstrap-loader.jafam-logo-loader-stage,
html[data-theme="dark"] .anonymous-loading-screen.jafam-logo-loader-stage,
html[data-theme="dark"] .app-loading-overlay.jafam-logo-loader-stage {
    background:
        radial-gradient(circle at center, rgba(16, 29, 47, .88), rgba(8, 17, 31, .94)),
        radial-gradient(circle at 50% 45%, rgba(22, 135, 217, .20), transparent 34%),
        linear-gradient(135deg, #08111f, #0d2236);
}

html[data-theme="dark"] .jafam-logo-loader__text {
    color: #d8efff;
}

html[data-theme="dark"] .app-loading-overlay__backdrop {
    background: rgba(8, 17, 31, .48);
}

@media (max-width: 600px) {
    .jafam-logo-loader {
        width: 138px;
        height: 138px;
    }

    .jafam-logo-loader::before {
        inset: -16px;
    }

    .jafam-logo-loader::after {
        width: 176px;
        height: 176px;
    }

    .jafam-logo-loader__logo {
        width: 104px;
        height: 104px;
    }

    .jafam-logo-loader__scan-line {
        width: 124px;
        height: 12px;
    }

    .jafam-logo-loader__text {
        margin-top: 30px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jafam-logo-loader,
    .jafam-logo-loader::before,
    .jafam-logo-loader::after,
    .jafam-logo-loader__logo,
    .jafam-logo-loader__scan-line,
    .jafam-logo-loader__dots::after {
        animation: none !important;
    }
}

@keyframes jafam-loader-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes jafam-loader-pulse-halo {
    0%,
    100% {
        opacity: .55;
        transform: scale(.82);
    }

    50% {
        opacity: .95;
        transform: scale(1.08);
    }
}

@keyframes jafam-loader-logo-breath {
    0%,
    100% {
        transform: scale(.96) rotate(0deg);
    }

    50% {
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes jafam-loader-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes jafam-loader-shine {
    0% {
        opacity: 0;
        transform: translateX(-95px) rotate(-17deg);
    }

    30%,
    70% {
        opacity: .9;
    }

    100% {
        opacity: 0;
        transform: translateX(95px) rotate(-17deg);
    }
}

@keyframes jafam-loader-dots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75%,
    100% {
        content: "...";
    }
}

@keyframes jafam-spin {
    to {
        transform: rotate(360deg);
    }
}
