@font-face {
    font-family: 'Vazirmatn';
    src: url('../webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 300 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-900: #08203a;
    --brand-800: #0e2f4f;
    --brand-700: #17496f;
    --brand-500: #2f80ed;
    --brand-400: #58a0f7;
    --brand-100: #eaf2fd;
    --ink: #16283a;
    --muted: #6b7c8f;
    --surface: #ffffff;
    --bg: #f4f7fb;
    --line: #e2ebf5;
    --line-soft: #eef4fa;

    --success: #15915a;
    --success-soft: #e2f7ec;
    --danger: #d43a3a;
    --danger-soft: #fdeaea;
    --warning: #b87400;
    --warning-soft: #fff5e2;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;

    --shadow-xs: 0 1px 2px rgba(14, 40, 66, .05);
    --shadow-sm: 0 4px 14px rgba(14, 40, 66, .06);
    --shadow-md: 0 10px 30px rgba(14, 40, 66, .09);
    --shadow-lg: 0 24px 60px rgba(6, 22, 38, .22);

    --ease: cubic-bezier(.4, .14, .3, 1);
}

* {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

body {
    background:
        radial-gradient(1200px 460px at 100% 0%, #eaf2fd 0%, rgba(234, 242, 253, 0) 60%),
        var(--bg);
    color: var(--ink);
    font-size: .92rem;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--brand-700);
    transition: color .15s var(--ease);
}

a:hover {
    color: var(--brand-500);
}

h1, h2, h3, h4, h5 {
    letter-spacing: -.01em;
}

.money,
.tabular {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

::selection {
    background: rgba(47, 128, 237, .2);
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cdd9e6;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #aebfd0;
    background-clip: padding-box;
}

/* ---------- Shell ---------- */
.app-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 268px;
    background:
        radial-gradient(520px 260px at 90% -6%, rgba(47, 128, 237, .28), rgba(47, 128, 237, 0) 70%),
        linear-gradient(178deg, #0c2742 0%, #0a2137 55%, #071a2b 100%);
    color: #d3e2f0;
    overflow-y: auto;
    z-index: 1040;
    padding-bottom: 24px;
    border-left: 1px solid rgba(255, 255, 255, .06);
    box-shadow: -1px 0 0 rgba(255, 255, 255, .03) inset;
}

.app-sidebar::-webkit-scrollbar {
    width: 6px;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .16);
    border: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #0c2742 70%, rgba(12, 39, 66, .86));
    backdrop-filter: blur(8px);
    z-index: 2;
}

.sidebar-brand .logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(47, 128, 237, .32), rgba(47, 128, 237, .1));
    border: 1px solid rgba(143, 194, 255, .28);
    color: #a6cdff;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    flex: none;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(3, 16, 29, .35), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.sidebar-brand .logo.has-image {
    background: #fff;
    border-color: rgba(255, 255, 255, .8);
    padding: 4px;
}

.sidebar-brand .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 9px;
}

.sidebar-brand strong {
    display: block;
    font-size: .92rem;
    color: #fff;
    line-height: 1.7;
}

.sidebar-brand small {
    color: #93aec7;
    font-size: .7rem;
}

.sidebar-section {
    padding: 18px 22px 7px;
    font-size: .68rem;
    letter-spacing: .04em;
    color: #7b96b0;
    font-weight: 700;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0 12px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 11px;
    color: #c2d5e6;
    font-size: .855rem;
    margin-bottom: 2px;
    position: relative;
    transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.sidebar-nav a i {
    font-size: 1.02rem;
    width: 20px;
    text-align: center;
    color: #82aad0;
    transition: color .18s var(--ease);
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    transform: translateX(-2px);
}

.sidebar-nav a:hover i {
    color: #bfe0ff;
}

.sidebar-nav a.active {
    background: linear-gradient(100deg, var(--brand-500), #3d93f5);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(47, 128, 237, .35);
}

.sidebar-nav a.active i {
    color: #fff;
}

.sidebar-nav a .badge {
    margin-inline-start: auto;
    font-size: .66rem;
    padding: .3em .55em;
    border-radius: 999px;
}

.app-main {
    margin-right: 268px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 12px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-topbar h1 {
    font-size: 1.06rem;
    margin: 0;
    font-weight: 700;
    color: var(--brand-800);
}

.app-topbar .subtitle {
    font-size: .74rem;
    color: var(--muted);
}

.app-content {
    padding: 24px 26px 44px;
    flex: 1;
}

.app-footer {
    padding: 14px 26px;
    color: var(--muted);
    font-size: .74rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .7);
}

.sidebar-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(100%);
        transition: transform .24s var(--ease);
    }

    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: -16px 0 40px rgba(0, 0, 0, .24);
    }

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

    .sidebar-toggle {
        display: inline-flex;
    }

    .app-content {
        padding: 16px 14px 32px;
    }

    .app-topbar {
        padding: 10px 14px;
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 18, 30, .5);
    backdrop-filter: blur(2px);
    z-index: 1035;
}

.sidebar-backdrop.show {
    display: block;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    background: var(--surface);
    overflow: hidden;
    transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-bottom: 1px solid var(--line-soft);
    font-weight: 700;
    color: var(--brand-800);
    padding: 14px 18px;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

.card-header i {
    color: var(--brand-500);
}

.card-footer {
    border-top: 1px solid var(--line-soft);
    padding: 12px 18px;
}

.card-body {
    padding: 18px;
}

/* ---------- Stats ---------- */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 17px 18px;
    height: 100%;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand-500);
    opacity: .55;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex: none;
    background: var(--brand-100);
    color: var(--brand-700);
}

.stat-card .value {
    font-size: 1.14rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.6;
}

.stat-card .label {
    color: var(--muted);
    font-size: .77rem;
}

.stat-card.tone-success .icon { background: var(--success-soft); color: var(--success); }
.stat-card.tone-success::after { background: var(--success); }
.stat-card.tone-danger .icon { background: var(--danger-soft); color: var(--danger); }
.stat-card.tone-danger::after { background: var(--danger); }
.stat-card.tone-warning .icon { background: var(--warning-soft); color: var(--warning); }
.stat-card.tone-warning::after { background: #e8a000; }
.stat-card.tone-info .icon { background: #e6f4fb; color: #1a6c92; }
.stat-card.tone-info::after { background: #1a9bd0; }
.stat-card.tone-dark .icon { background: #e9edf3; color: #33475b; }
.stat-card.tone-dark::after { background: #33475b; }
.stat-card.tone-purple .icon { background: #efe9fb; color: #5b3aa8; }
.stat-card.tone-purple::after { background: #7c53d6; }

/* ---------- Tables ---------- */
.table {
    margin-bottom: 0;
    font-size: .84rem;
    vertical-align: middle;
    --bs-table-hover-bg: #f7fbff;
}

.table thead th {
    background: linear-gradient(180deg, #f4f8fd, #eef5fc);
    color: var(--brand-800);
    font-weight: 700;
    font-size: .76rem;
    letter-spacing: .01em;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    padding: .68rem .8rem;
}

.table > tbody > tr > td {
    border-color: var(--line-soft);
    padding: .6rem .8rem;
}

.table > tbody > tr:last-child > td {
    border-bottom: none;
}

.table-hover > tbody > tr {
    transition: background .15s var(--ease);
}

.table-hover > tbody > tr:hover > * {
    background: #f7fbff;
}

.table-responsive {
    border-radius: 0;
}

.badge {
    font-weight: 600;
    font-size: .71rem;
    padding: .42em .68em;
    border-radius: 8px;
    letter-spacing: 0;
}

.badge.bg-light {
    border: 1px solid var(--line);
    color: var(--muted) !important;
}

/* ---------- Forms ---------- */
.form-label {
    font-size: .78rem;
    font-weight: 600;
    color: #33475b;
    margin-bottom: .32rem;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: #d9e4ef;
    font-size: .855rem;
    padding: .5rem .72rem;
    background-color: #fdfefe;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}

.form-control::placeholder {
    color: #a9b8c7;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-500);
    background-color: #fff;
    box-shadow: 0 0 0 .2rem rgba(47, 128, 237, .14);
}

.form-check-input:checked {
    background-color: var(--brand-500);
    border-color: var(--brand-500);
}

.form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(47, 128, 237, .14);
    border-color: var(--brand-400);
}

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

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 600;
    padding: .44rem .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(100deg, var(--brand-500), #3690f0);
    border-color: var(--brand-500);
    box-shadow: 0 6px 16px rgba(47, 128, 237, .26);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(100deg, #2472dc, #2f86ea);
    border-color: #2472dc;
    box-shadow: 0 8px 20px rgba(47, 128, 237, .32);
}

.btn-light {
    background: #f4f8fd;
    border-color: var(--line);
    color: #33506b;
}

.btn-light:hover {
    background: #eaf2fb;
    border-color: #cfe0f1;
}

.btn-outline-secondary {
    border-color: #d5e1ed;
    color: #5b7288;
}

.btn-outline-secondary:hover {
    background: #eef4fa;
    border-color: #c8d8e8;
    color: #33506b;
}

.btn-sm {
    font-size: .76rem;
    padding: .28rem .62rem;
    border-radius: 9px;
}

.filters-bar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 15px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
}

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

.page-head h2 {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0;
    color: var(--brand-900);
}

.page-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.section-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--brand-800);
    margin: 0 0 12px;
}

.empty-state {
    text-align: center;
    padding: 36px 12px;
    color: var(--muted);
    font-size: .85rem;
}

.empty-state i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
    color: #b9c8d8;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #e8eef7;
    font-size: .83rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .k {
    color: var(--muted);
}

.info-list .v {
    font-weight: 600;
}

.profile-balance {
    background:
        radial-gradient(360px 160px at 100% 0%, rgba(88, 160, 247, .35), rgba(88, 160, 247, 0) 70%),
        linear-gradient(135deg, var(--brand-800), #1d5c8c);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 14px 30px rgba(12, 47, 79, .28);
}

.profile-balance .amount {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.6;
}

.profile-balance .meta {
    color: #cfe0f2;
    font-size: .78rem;
}

.nav-tabs {
    border-bottom: 1px solid var(--line);
    gap: 4px;
}

.nav-tabs .nav-link {
    font-size: .84rem;
    font-weight: 600;
    color: var(--muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: .55rem .8rem;
    border-radius: 10px 10px 0 0;
    transition: color .16s var(--ease), background .16s var(--ease);
}

.nav-tabs .nav-link:hover {
    color: var(--brand-700);
    background: #f5f9fe;
}

.nav-tabs .nav-link.active {
    color: var(--brand-700);
    border-bottom-color: var(--brand-500);
    background: transparent;
    font-weight: 700;
}

.alert-note {
    border-radius: var(--radius);
    font-size: .84rem;
    border: 1px solid transparent;
    padding: 12px 16px;
    box-shadow: var(--shadow-xs);
}

.alert-success {
    background: #f0fbf5;
    border-color: #cbebd9;
    color: #146c43;
}

.alert-danger {
    background: #fdf3f3;
    border-color: #f6d3d3;
    color: #a52a2a;
}

.alert-warning {
    background: #fffaf0;
    border-color: #f6e2bd;
    color: #8a5b00;
}

.alert-info {
    background: #f2f9fe;
    border-color: #cfe6f6;
    color: #16607f;
}

.chart-box {
    position: relative;
    height: 260px;
}

/* ---------- Company logo (settings) ---------- */
.logo-setting {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border: 1px dashed #d5e3f0;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fbfdff, #f6fafe);
}

.logo-preview {
    width: 74px;
    height: 74px;
    flex: none;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
    color: #b6c6d6;
    font-size: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* ---------- Meter gauge ---------- */
.period-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: .75rem;
    color: #33506b;
    box-shadow: var(--shadow-xs);
}

.period-chip > i {
    color: var(--brand-500);
}

.period-legend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: .72rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green { background: var(--success); box-shadow: 0 0 0 3px rgba(21, 145, 90, .14); }
.dot-red { background: var(--danger); box-shadow: 0 0 0 3px rgba(212, 58, 58, .14); }

.meter-gauge {
    --gauge-color: #8798a9;
    --gauge-soft: #eef3f8;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.meter-gauge.is-read {
    --gauge-color: var(--success);
    --gauge-soft: var(--success-soft);
}

.meter-gauge.is-unread {
    --gauge-color: var(--danger);
    --gauge-soft: var(--danger-soft);
}

.meter-gauge .gauge-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
}

.meter-gauge .gauge-svg {
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
    overflow: visible;
}

.meter-gauge .gauge-halo {
    fill: var(--gauge-soft);
    stroke: none;
}

.meter-gauge .gauge-arc {
    fill: none;
    stroke: var(--gauge-color);
    stroke-width: 2.6;
    stroke-linecap: round;
    opacity: .95;
}

.meter-gauge.is-unread .gauge-arc {
    stroke-dasharray: 2.4 2.6;
    stroke-width: 2.4;
}

.meter-gauge .gauge-icon {
    position: absolute;
    font-size: .95rem;
    color: var(--gauge-color);
    line-height: 1;
}

.meter-gauge .gauge-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.55;
    min-width: 0;
}

.meter-gauge .gauge-serial {
    font-size: .76rem;
    font-weight: 700;
    color: #2b425a;
    white-space: nowrap;
}

.meter-gauge .gauge-label {
    font-size: .7rem;
    color: var(--gauge-color);
    font-weight: 600;
    white-space: nowrap;
}

.meter-gauge.is-idle .gauge-label {
    color: var(--muted);
    font-weight: 500;
}

.meter-gauge .gauge-consumption {
    color: var(--muted);
    font-weight: 500;
}

.meter-gauge .gauge-note {
    font-size: .66rem;
    color: var(--warning);
}

/* ---------- Login ---------- */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(47, 128, 237, .3), rgba(47, 128, 237, 0) 60%),
        radial-gradient(700px 420px at 90% 90%, rgba(23, 73, 111, .55), rgba(23, 73, 111, 0) 65%),
        linear-gradient(150deg, #0d2b45, #08202f 65%, #061a26);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 940px;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border: 1px solid rgba(255, 255, 255, .4);
}

.login-visual {
    background:
        radial-gradient(420px 260px at 90% 0%, rgba(88, 160, 247, .32), rgba(88, 160, 247, 0) 70%),
        linear-gradient(160deg, #14406a, #0b2740 70%);
    color: #dbe9f7;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.7;
    min-width: 0;
}

.login-brand-text strong {
    font-size: .95rem;
    color: #fff;
    font-weight: 700;
}

.login-brand-text small {
    font-size: .7rem;
    color: #9fc0dd;
}

.login-logo {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 1.5rem;
    color: #a6cdff;
    background: linear-gradient(150deg, rgba(47, 128, 237, .34), rgba(47, 128, 237, .12));
    border: 1px solid rgba(143, 194, 255, .3);
    box-shadow: 0 10px 24px rgba(3, 16, 29, .3);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.login-visual h2 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 10px;
}

.login-visual .badge-soft {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .73rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
}

.login-form {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form .form-control {
    padding: .58rem .8rem;
    border-radius: 11px;
}

.login-form .btn-primary {
    padding: .6rem 1rem;
    border-radius: 11px;
    font-size: .88rem;
}

.login-mini-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.login-mini-brand .login-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--brand-700);
    background: var(--brand-100);
    border-color: #d7e6f6;
    box-shadow: none;
}

.login-mini-brand .login-brand-text strong {
    color: var(--brand-800);
}

.login-mini-brand .login-brand-text small {
    color: var(--muted);
}

@media (max-width: 991.98px) {
    .login-card {
        max-width: 520px;
    }

    .login-visual {
        display: none;
    }

    .login-mini-brand {
        display: flex;
    }
}

/* ---------- Datepicker ---------- */
.jalali-picker {
    position: absolute;
    z-index: 2000;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 10px;
    width: 268px;
    direction: rtl;
}

.jalali-picker .jp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: .8rem;
    font-weight: 700;
}

.jalali-picker .jp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.jalali-picker .jp-dow {
    font-size: .65rem;
    color: var(--muted);
    text-align: center;
    padding: 3px 0;
}

.jalali-picker button {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 5px 0;
    font-size: .76rem;
    color: var(--ink);
    cursor: pointer;
    transition: background .14s var(--ease);
}

.jalali-picker button:hover {
    background: var(--brand-100);
}

.jalali-picker button.jp-today {
    color: var(--brand-500);
    font-weight: 700;
}

.jalali-picker .jp-nav {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f1f6fc;
    color: var(--brand-700);
}

/* ---------- Print ---------- */
@media print {
    .no-print,
    .app-sidebar,
    .app-topbar,
    .app-footer,
    .sidebar-backdrop {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .app-main {
        margin: 0;
    }

    .app-content {
        padding: 0;
    }

    .card {
        border: none;
        box-shadow: none;
    }
}

/* ---------- AJAX navigation ---------- */
#appProgress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    overflow: hidden;
}

#appProgress.is-active {
    opacity: 1;
}

#appProgress::after {
    content: '';
    display: block;
    height: 100%;
    width: 32%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-500), #86bdff);
    animation: appProgressSlide 1s ease-in-out infinite;
}

@keyframes appProgressSlide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(420%); }
}

body.is-navigating #appContent {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}

body.is-navigating .sidebar-nav a {
    pointer-events: none;
}
