.bg_primary {
    background-color: #b9852f;
}

:root {
    --bs-font-sans-serif: "Vazirmatn", sans-serif;
    --bs-body-font-family: "Vazirmatn", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
.form-control,
.form-select,
.btn,
.table,
.dropdown-menu,
.tooltip,
.popover {
    font-family: "Vazirmatn", sans-serif !important;
}

* {
    box-sizing: border-box;
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors {
    display: block;
}

.validation-summary-errors ul {
    margin: 0;
    padding-right: 1.1rem;
}

.validation-summary-errors li + li {
    margin-top: .35rem;
}

.app-body {
    margin: 0;
    min-width: 320px;
    color: #202938;
    background: #f5f7fb;
}

.text_primary {
    color: #9a6b1f;
}
.bg_disabled {
    background-color: #D2D2D2;
}

.fs_16 {
    font-size: 16px;
}
.w_15{
    width:15% !important;
}
.fs_14 {
    font-size: 14px;
}

.fs_12 {
    font-size: 12px;
}

.layout-root {
    min-height: 100vh;
    align-items: stretch;
}

.sidebar {
    width: 258px;
    min-width: 258px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    overflow-y: auto;
    background: linear-gradient(165deg, #176ec7 0%, #0754a7 48%, #154690 100%);
    box-shadow: -10px 0 30px rgba(17, 66, 126, .12) inset;
}

.sidebar-header {
    background-color: transparent;
    font-size: 18px;
    letter-spacing: -.3px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    min-height: 48px;
    padding: 12px 20px;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-link:hover {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.16);
}

.sidebar-link.active {
    background: linear-gradient(90deg, #ff1d28, #e60012);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-link-arrow {
    font-size: 18px;
    line-height: 1;
}

.topbar .fs-16 {
    font-size: 16px;
}

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

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 12px rgba(30, 65, 105, .04);
}

.topbar > .container-fluid {
    padding-inline: clamp(16px, 3vw, 40px);
}

.app-content {
    width: 100%;
    max-width: 1600px;
    padding: 24px clamp(14px, 2.4vw, 34px) 40px;
}

.dashboard-card {
    border-radius: 12px;
}

.offcanvas.offcanvas-end {
    background: linear-gradient(165deg, #176ec7 0%, #0754a7 55%, #154690 100%);
    color: #ffffff;
}

.offcanvas.offcanvas-end {
    width: 75vw;
}

.offcanvas .offcanvas-title {
    color: #ffffff;
    font-size: 14px;
}

.offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.offcanvas .sidebar-link {
    font-size: 13px;
}

.topbar .btn.btn-outline-secondary {
    font-size: 12px;
    padding: 4px 10px;
}


.mx_9 {
    margin-left: 9rem;
    margin-right: 9rem;
}

.my_6 {
    margin-top: 4rem;
    margin-bottom :4rem;
}

.bg_header {
    background-color: #faf7f0;
}
.w_50 {
    width: 50% ;
}

.status-icon {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.admin-table-card {
    border-radius: 12px;
    min-height: calc(100vh - 220px);
}

.admin-table th,
.admin-table td {
    font-size: 14px;
}

.btn-icon {
    padding: 4px 6px;
    line-height: 1;
}

/* Dashboard */
.dashboard-shell {
    width: 100%;
}

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

.dashboard-heading h1 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 800;
    color: #1b2638;
}

.dashboard-heading p {
    margin: 0;
    color: #8993a2;
    font-size: 13px;
}

.dashboard-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding-inline: 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #2384dc, #0e62bb);
    box-shadow: 0 8px 20px rgba(15, 100, 188, .18);
}

.dashboard-primary-button:hover,
.dashboard-primary-button:focus {
    color: #fff;
    background: linear-gradient(135deg, #1b76ca, #0b54a0);
}

.dashboard-panel,
.stat-card {
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(40, 67, 102, .035);
}

.stat-card {
    position: relative;
    min-height: 144px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 19px 17px 38px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-card:hover {
    color: inherit;
    transform: translateY(-2px);
    border-color: #cdd9e8;
    box-shadow: 0 10px 26px rgba(40, 67, 102, .09);
}

.stat-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.stat-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-icon--purple { background: linear-gradient(135deg, #9583e6, #6550c1); }
.stat-icon--red { background: linear-gradient(135deg, #ff7b7e, #f0444d); }
.stat-icon--green { background: linear-gradient(135deg, #6bc77d, #36a958); }
.stat-icon--blue { background: linear-gradient(135deg, #4fa2e4, #1977c9); }

.stat-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stat-label {
    margin: 2px 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #3f4652;
}

.stat-content strong {
    max-width: 100%;
    font-size: clamp(15px, 1.25vw, 25px);
    line-height: 1.2;
    color: #1f2530;
    direction: ltr;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.stat-content small {
    margin-top: 4px;
    font-size: 11px;
    color: #929aa7;
}

.stat-link {
    position: absolute;
    bottom: 12px;
    right: 90px;
    color: #2580d1;
    font-size: 11px;
    font-weight: 600;
}

.dashboard-insights > div {
    min-height: 312px;
}

.chart-panel,
.recent-panel,
.distribution-panel {
    padding: 18px;
}

.panel-title-row {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-title-row h2,
.quick-form-heading h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #303746;
}

.panel-title-row a {
    padding: 6px 10px;
    border: 1px solid #dce7f2;
    border-radius: 6px;
    color: #287cca;
    font-size: 11px;
    text-decoration: none;
}

.period-chip {
    padding: 6px 10px;
    border: 1px solid #dbe2eb;
    border-radius: 6px;
    color: #5f6875;
    font-size: 11px;
}

.chart-legend {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin: 9px 0 0;
    color: #798392;
    font-size: 10px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    margin-left: 5px;
    border-radius: 3px;
}

.legend-dot--success { background: #50b86a; }
.legend-dot--failed { background: #f45c65; }
.legend-dot--pending { background: #438ed2; }

.line-chart {
    position: relative;
}

.line-chart svg {
    width: 100%;
    height: 190px;
    overflow: visible;
}

.chart-grid path {
    fill: none;
    stroke: #edf0f4;
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart-line--success { stroke: #45ac61; }
.chart-line--failed { stroke: #f05b64; }
.chart-point {
    stroke: #fff;
    stroke-width: 1.5;
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform .15s ease, filter .15s ease;
}
.chart-point--success { fill: #45ac61; }
.chart-point--failed { fill: #f05b64; }
.chart-point:hover,
.chart-point:focus {
    outline: none;
    transform: scale(1.75);
    filter: drop-shadow(0 2px 3px rgba(24, 49, 77, .3));
}

.chart-focus-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 135px;
    padding: 9px 11px;
    border: 1px solid #ffc8cc;
    border-radius: 9px;
    color: #fff;
    background: #df515b;
    box-shadow: 0 7px 18px rgba(28, 55, 87, .2);
    font-size: 10px;
    line-height: 1.8;
    pointer-events: none;
    transform: translate(-50%, -100%);
    white-space: nowrap;
}

.chart-focus-tooltip.is-success {
    border-color: #bce8c8;
    background: #399f55;
}

.chart-focus-tooltip::after {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    top: 100%;
    border: 5px solid transparent;
    border-top-color: #df515b;
    transform: translateX(50%);
}

.chart-focus-tooltip.is-success::after { border-top-color: #399f55; }
.chart-focus-tooltip span { display: block; opacity: .82; }
.chart-focus-tooltip strong { display: block; font-size: 11px; }
.chart-focus-tooltip strong span { display: inline; opacity: 1; }

.chart-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-top: -20px;
    color: #8f97a2;
    font-size: 9px;
    text-align: center;
}

.recent-list {
    margin-top: 8px;
}

.recent-item {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 1px;
    border-bottom: 1px solid #eef1f5;
    color: inherit;
    text-decoration: none;
}

.recent-item:last-child { border-bottom: 0; }
.recent-item:hover { color: #176fbe; }

.recent-status {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #f05b64;
}

.recent-status.is-success { background: #4cb566; }
.recent-status.is-pending { background: #f1ac3e; }

.recent-main {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.recent-main strong {
    overflow: hidden;
    color: #535b67;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-main small,
.recent-amount small {
    color: #9aa2ad;
    font-size: 9px;
}

.recent-amount {
    direction: ltr;
    color: #333b49;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-empty {
    min-height: 210px;
    display: grid;
    place-items: center;
    color: #9ba4b0;
    font-size: 12px;
}

.distribution-content {
    min-height: 238px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.donut-chart {
    width: 132px;
    height: 132px;
    min-width: 132px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#50b86a 0 var(--success-share), #438ed2 var(--success-share) calc(var(--success-share) + var(--pending-share)), #f05c65 0 100%);
    box-shadow: 0 7px 20px rgba(40, 91, 145, .12);
}

.donut-chart::before {
    content: "";
    width: 76px;
    height: 76px;
    grid-area: 1 / 1;
    border-radius: 50%;
    background: #fff;
}

.donut-chart > div {
    z-index: 1;
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donut-chart strong { font-size: 17px; }
.donut-chart span { color: #9aa3ae; font-size: 10px; }

.distribution-legend {
    display: flex;
    flex-direction: column;
    gap: 13px;
    color: #606976;
    font-size: 10px;
}

.distribution-legend-item {
    width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: right;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease, transform .15s ease;
}

.distribution-legend-item:hover,
.distribution-legend-item:focus,
.distribution-legend-item.active {
    outline: none;
    color: #176fbe;
    background: #edf6ff;
    transform: translateX(-2px);
}

.distribution-legend b {
    margin-right: 6px;
    color: #333a45;
    font-weight: 700;
}

.quick-payment-panel {
    overflow: hidden;
}

.quick-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e2e7ee;
}

.quick-tab {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    border: 0;
    color: #7d8490;
    background: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.quick-tab + .quick-tab { border-right: 1px solid #e2e7ee; }
.quick-tab:hover { color: #2479c9; }

.quick-tab.active {
    color: #1975c7;
}

.quick-tab.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: #1975c7;
}

.quick-tab svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-form-wrap {
    padding: 22px 20px 25px;
}

.quick-form-heading {
    margin-bottom: 17px;
}

.quick-form-heading h2 { color: #1975c7; }

.quick-form-heading p {
    margin: 6px 0 0;
    color: #8d96a3;
    font-size: 11px;
}

.quick-payment-panel .form-label {
    margin-bottom: 7px;
    color: #47505e;
    font-size: 11px;
    font-weight: 700;
}

.quick-payment-panel .form-control,
.quick-payment-panel .form-select {
    min-height: 43px;
    border-color: #dce3eb;
    border-radius: 7px;
    color: #3d4552;
    font-size: 12px;
}

.quick-payment-panel .form-control:focus,
.quick-payment-panel .form-select:focus {
    border-color: #6ca7db;
    box-shadow: 0 0 0 3px rgba(33, 126, 207, .1);
}

.quick-submit {
    min-width: 48px;
    padding-inline: 0;
    font-size: 22px;
}

.account-state-panel {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 40px 20px;
    text-align: center;
}

.account-state-panel h2 {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 800;
}

.account-state-panel p {
    max-width: 650px;
    margin: 0;
    color: #7d8794;
    font-size: 13px;
    line-height: 2;
}

.account-state-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 38px;
    font-weight: 800;
}

.account-state-icon--error { background: linear-gradient(135deg, #fb7575, #dc3545); }
.account-state-icon--payment { background: linear-gradient(135deg, #638edb, #2264b8); }
.account-state-icon--pending { background: linear-gradient(135deg, #ffc060, #f08a24); }
.account-state-icon--active { background: linear-gradient(135deg, #68c77b, #299f4b); }

/* Dashboard bill and recharge tabs */
.service-payment-panel {
    overflow: hidden;
}

.service-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #dfe5ed;
}

.service-tab {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    position: relative;
    border: 0;
    color: #8b72d4;
    background: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
}

.service-tab + .service-tab {
    border-right: 1px solid #dfe5ed;
}

.service-tab svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-tab.active {
    color: #176fc0;
}

.service-tab.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: #176fc0;
}

.service-tab-panel {
    padding: 22px 20px 24px;
}

.service-tab-panel[hidden] {
    display: none;
}

.service-panel-heading {
    margin-bottom: 20px;
}

.service-panel-heading h2 {
    margin: 0;
    color: #176fc0;
    font-size: 16px;
    font-weight: 800;
}

.service-panel-heading p {
    margin: 7px 0 0;
    color: #8c95a1;
    font-size: 11px;
}

.service-payment-panel .form-label {
    margin-bottom: 7px;
    color: #414a57;
    font-size: 11px;
    font-weight: 700;
}

.service-payment-panel .form-control,
.service-payment-panel .form-select {
    min-height: 43px;
    border-color: #dce3eb;
    border-radius: 7px;
    color: #414957;
    font-size: 12px;
}

.service-payment-panel .form-control:focus,
.service-payment-panel .form-select:focus {
    border-color: #68a4d9;
    box-shadow: 0 0 0 3px rgba(28, 118, 198, .1);
}

.bill-entry-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr .8fr auto;
    align-items: end;
    gap: 12px;
}

.bill-add-button {
    min-width: 130px;
    white-space: nowrap;
    font-size: 12px;
}

.service-inline-error {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    color: #b52c38;
    background: #fff0f1;
    font-size: 11px;
}

.bill-table-wrap {
    min-height: 170px;
    position: relative;
    margin-top: 22px;
    overflow-x: auto;
    border: 1px solid #e0e5ec;
    border-radius: 9px;
}

.bill-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: #59616d;
    font-size: 11px;
    text-align: center;
}

.bill-table th {
    height: 40px;
    padding: 8px;
    border-bottom: 1px solid #e0e5ec;
    color: #4e5663;
    background: #f7f9fb;
    font-weight: 700;
}

.bill-table td {
    height: 46px;
    padding: 8px;
    border-bottom: 1px solid #edf0f4;
}

.bill-empty-state {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #9aa2ad;
    font-size: 11px;
}

.bill-empty-state[hidden] {
    display: none;
}

.bill-empty-state svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #b7bdc5;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bill-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    color: #277c43;
    background: #e8f7ed;
    font-size: 9px;
}

.bill-remove {
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 6px;
    color: #d84752;
    background: #fff0f1;
    font-size: 18px;
    line-height: 1;
}

.bill-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
    font-size: 12px;
}

.bill-footer strong {
    margin-right: 5px;
    color: #176fc0;
}

.bill-continue-button {
    min-height: 43px;
    padding-inline: 20px;
    border: 1px solid #d8e3ef;
    color: #7ba5ca;
    background: #eaf2fa;
    font-size: 12px;
}

.bill-continue-button span,
.recharge-submit span {
    margin-right: 10px;
    font-size: 18px;
}

.recharge-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 28px;
}

.recharge-step + .recharge-step {
    margin-top: 22px;
}

.recharge-step h3 {
    margin: 0 0 13px;
    color: #3f4753;
    font-size: 13px;
    font-weight: 800;
}

.recharge-step h3 span {
    color: #176fc0;
}

.operator-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(85px, 1fr));
    gap: 10px;
}

.operator-card {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding: 11px 7px;
    border: 1px solid #e0e5ec;
    border-radius: 9px;
    color: #666e79;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.operator-card:hover,
.operator-card.selected {
    border-color: #3f8fd2;
    box-shadow: 0 5px 15px rgba(36, 119, 190, .08);
}

.operator-card input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #277fc9;
    order: 3;
}

.operator-card strong {
    font-size: 10px;
    font-weight: 600;
}

.operator-logo {
    width: 64px;
    height: 48px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.recharge-notice,
.recharge-summary-notice {
    padding: 12px 14px;
    border-radius: 7px;
    color: #2874b7;
    background: #edf5ff;
    font-size: 10px;
    line-height: 1.8;
}

.recharge-notice {
    margin-top: 22px;
}

.recharge-summary {
    overflow: hidden;
    border: 1px solid #dee5ed;
    border-radius: 10px;
    background: #fff;
}

.recharge-summary-title {
    padding: 15px 18px;
    color: #fff;
    background: linear-gradient(135deg, #2581d1, #0d61b8);
    font-size: 14px;
    font-weight: 800;
}

.recharge-summary dl {
    margin: 0;
    padding: 17px 18px 6px;
}

.recharge-summary dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 35px;
    color: #626b77;
    font-size: 11px;
}

.recharge-summary dt {
    font-weight: 700;
}

.recharge-summary dd {
    margin: 0;
    direction: ltr;
}

.recharge-final-amount {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 18px 15px;
    padding-top: 14px;
    border-top: 1px solid #e7ebf0;
    color: #176fc0;
}

.recharge-final-amount span {
    font-size: 11px;
    font-weight: 700;
}

.recharge-final-amount strong {
    font-size: 19px;
}

.recharge-summary-notice {
    margin: 0 15px 13px;
}

.recharge-submit {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
}


@media (max-width: 991px) {
    .topbar {
        min-height: 66px;
    }

    .topbar .container-fluid > .d-flex {
        min-height: 66px;
        padding-block: 8px !important;
    }

    .app-content {
        padding-top: 18px;
    }

    .dashboard-insights > div {
        min-height: auto;
    }

    .distribution-content {
        min-height: 220px;
    }

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

    .bill-entry-grid .d-grid {
        grid-column: 1 / -1;
    }

    .bill-add-button {
        justify-self: end;
    }

    .recharge-layout {
        grid-template-columns: 1fr;
    }

    .operator-grid {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }

    .border_start_none {
        border-left: 0px !important;
    }
    .w_50 {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .dashboard-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-heading .dashboard-primary-button {
        align-self: flex-start;
    }

    .topbar .text-muted {
        gap: 9px !important;
    }

    .topbar .fs-14 {
        max-width: 150px;
        font-size: 11px;
        line-height: 1.7;
    }

    .topbar a span {
        display: none;
    }

    .stat-card {
        min-height: 128px;
    }

    .quick-tabs {
        grid-template-columns: 1fr;
    }

    .service-tab {
        min-height: 56px;
        font-size: 13px;
    }

    .service-tab svg {
        width: 23px;
        height: 23px;
    }

    .service-tab-panel {
        padding: 18px 14px 20px;
    }

    .bill-entry-grid {
        grid-template-columns: 1fr;
    }

    .bill-entry-grid .d-grid {
        grid-column: auto;
    }

    .bill-add-button {
        width: 100%;
        justify-self: stretch;
    }

    .bill-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .bill-continue-button {
        width: 100%;
    }

    .operator-grid {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }

    .recharge-summary {
        position: static;
    }

    .quick-tab + .quick-tab {
        border-top: 1px solid #e2e7ee;
        border-right: 0;
    }

    .quick-tab:not(.active) {
        display: none;
    }

    .quick-form-wrap {
        padding: 18px 14px 20px;
    }

    .chart-panel,
    .recent-panel,
    .distribution-panel {
        padding: 15px;
    }

    .line-chart {
        overflow-x: auto;
    }

    .line-chart svg,
    .chart-labels {
        min-width: 410px;
    }
}

@media (max-width: 420px) {
    .app-content {
        padding-inline: 10px;
    }

    .dashboard-heading h1 {
        font-size: 18px;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .stat-link {
        right: 82px;
    }

    .distribution-content {
        flex-direction: column;
        padding-block: 20px;
    }

    .distribution-legend {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        text-align: center;
    }

    .distribution-legend b {
        display: block;
        margin: 4px 0 0;
    }
}
