/* Expense details page: one toolbar, four equal stat cards, chart and donut side by side,
   transactions in two columns. Tone gradients and motion follow the dashboard cards. */

.edx {
    --edx-a: #e58a73;
    --edx-b: #c0483a;
    --edx-h1: #cf604d;
    --edx-h2: #8a3226;
    --edx-t: #d9604a;
}

.edx {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 12px;
}

/* A wide toolbar or chart may never stretch the page past the screen on a phone. */
.edx > * {
    min-width: 0;
    animation: edxRise .55s cubic-bezier(.2,.85,.28,1.05) both;
}

.edx > :nth-child(4) { animation-delay: .06s; }
.edx > :nth-child(5) { animation-delay: .12s; }
.edx > :nth-child(6) { animation-delay: .18s; }

/* ---------- toolbar ---------- */
.edx-bar {
    position: relative;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--theme-stroke, rgba(255,255,255,.8));
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--edx-t) 12%, transparent), transparent 45%),
        var(--theme-glass, rgba(255,255,255,.72));
    box-shadow: 0 12px 28px rgba(80,40,40,.09), inset 0 1px 0 var(--theme-highlight, rgba(255,255,255,.9));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.edx-cat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 12px 0 14px;
    border: 1px solid color-mix(in srgb, var(--c, var(--edx-t)) 30%, var(--theme-stroke, #fff));
    border-radius: 15px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text1);
    background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--edx-t)) 14%, transparent), transparent 80%);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.edx-cat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--c, var(--edx-t)) 20%, transparent);
}

.edx-cat-chip {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--edx-t)) 58%, #fff), var(--c, var(--edx-t)));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--c, var(--edx-t)) 34%, transparent);
}

.edx-cat > i {
    font-size: 16px;
    color: var(--text2);
    transition: transform .3s ease;
}

.edx-cat[aria-expanded="true"] > i {
    transform: rotate(180deg);
}

/* On a narrow phone the strip scrolls inside the toolbar instead of widening the page. */
.edx-seg {
    display: inline-flex;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--theme-stroke, rgba(255,255,255,.8));
    border-radius: 17px;
    background: color-mix(in srgb, var(--panel, #fff) 60%, transparent);
}

.edx-seg > * {
    flex-shrink: 0;
}

.edx-seg button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text2);
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .25s ease, box-shadow .25s ease;
}

.edx-seg button:hover {
    color: var(--text1);
}

.edx-seg button.is-on {
    color: #fff;
    background: linear-gradient(145deg, var(--edx-a), var(--edx-b));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--edx-b) 34%, transparent);
}

.edx-seg button i {
    font-size: 16px;
}

.edx-nav {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 46px;
    padding: 0 5px;
    border: 1px solid var(--theme-stroke, rgba(255,255,255,.8));
    border-radius: 15px;
    background: color-mix(in srgb, var(--panel, #fff) 80%, transparent);
}

.edx-nav button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    font-size: 17px;
    color: var(--text2);
    background: transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.edx-nav button:hover {
    color: #fff;
    background: linear-gradient(145deg, var(--edx-a), var(--edx-b));
    transform: scale(1.06);
}

.edx-nav span {
    min-width: 108px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text1);
}

/* ---------- popovers ---------- */
.edx-pop {
    display: none;
    padding: 12px;
    border: 1px solid var(--theme-stroke, rgba(255,255,255,.8));
    border-radius: 20px;
    background: var(--theme-glass, rgba(255,255,255,.86));
    box-shadow: 0 16px 34px rgba(80,40,40,.12);
}

.edx-pop.is-open {
    display: block;
    animation: edxPop .3s cubic-bezier(.2,.85,.28,1.1);
}

.edx-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.edx-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px 7px 12px;
    border: 1px solid color-mix(in srgb, var(--c) 24%, var(--border));
    border-radius: 15px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text1);
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 85%);
    cursor: pointer;
    transition: transform .25s cubic-bezier(.2,.9,.3,1.1), box-shadow .25s ease, border-color .25s ease;
}

.edx-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--c) 20%, transparent);
}

.edx-chip.is-on {
    border-color: var(--c);
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 20%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
}

.edx-chip b {
    flex: 1;
}

.edx-chip em {
    font-style: normal;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text2);
}

.edx-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text2);
}

.edx-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    min-width: 150px;
    padding: 0 14px;
    border: 1px solid var(--theme-stroke, rgba(255,255,255,.8));
    border-radius: 13px;
    color: var(--text1);
    background: color-mix(in srgb, var(--panel, #fff) 85%, transparent);
}

.edx-field i {
    color: var(--edx-b);
}

/* ---------- four equal stat cards ---------- */
.edx-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.edx-stat {
    --c: #6b5ce2;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 96px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--c) 28%, var(--theme-stroke, #fff));
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 55%),
        linear-gradient(145deg, color-mix(in srgb, var(--c) 12%, var(--panel, #fff)), color-mix(in srgb, var(--c) 3%, var(--panel, #fff)));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 16%, transparent), inset 0 1px 0 var(--theme-highlight, rgba(255,255,255,.9));
    transition: transform .3s cubic-bezier(.2,.9,.3,1.1), box-shadow .3s ease;
}

.edx-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px color-mix(in srgb, var(--c) 26%, transparent), inset 0 1px 0 var(--theme-highlight, rgba(255,255,255,.9));
}

.edx-stat-ico {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    font-size: 25px;
    color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c));
    box-shadow: 0 10px 20px color-mix(in srgb, var(--c) 38%, transparent);
}

.edx-stat-ico::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--c);
    animation: edxRing 2.8s ease-out infinite;
    pointer-events: none;
}

.edx-stat-ico i {
    animation: edxFloat 3s ease-in-out infinite;
}

.edx-stat small {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--text2);
}

.edx-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--text1);
    white-space: nowrap;
}

.edx-stat strong em {
    margin-inline-start: 5px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    color: var(--text2);
}

.edx-stat.is-hero {
    --c: var(--edx-b);
    color: #fff;
    border-color: transparent;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,.28), transparent 50%),
        linear-gradient(135deg, var(--edx-h1), var(--edx-h2));
    box-shadow: 0 18px 36px color-mix(in srgb, var(--edx-b) 34%, transparent);
}

.edx-stat.is-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.26) 50%, transparent 65%);
    transform: translateX(120%);
    animation: edxShine 5s ease-in-out 1.2s infinite;
    pointer-events: none;
}

.edx-stat.is-hero small,
.edx-stat.is-hero strong,
.edx-stat.is-hero strong em {
    color: #fff;
}

.edx-stat.is-hero .edx-stat-ico {
    background: rgba(255,255,255,.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.edx-stat.is-hero .edx-stat-ico::after {
    border-color: rgba(255,255,255,.7);
}

/* ---------- chart + donut, same height ---------- */
.edx-mid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.edx-card {
    padding: 16px;
    border: 1px solid var(--theme-stroke, rgba(255,255,255,.8));
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--edx-t) 10%, transparent), transparent 45%),
        var(--theme-glass, rgba(255,255,255,.72));
    box-shadow: 0 14px 30px rgba(80,40,40,.09), inset 0 1px 0 var(--theme-highlight, rgba(255,255,255,.9));
}

.edx-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.edx-head b {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 900;
    color: var(--text1);
}

.edx-head b span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(145deg, var(--edx-a), var(--edx-b));
    box-shadow: 0 7px 16px color-mix(in srgb, var(--edx-b) 30%, transparent);
}

.edx-donut {
    display: grid;
    align-content: center;
    gap: 18px;
    justify-items: center;
    min-height: 360px;
}

.edx-ring {
    position: relative;
    width: 200px;
    height: 200px;
}

.edx-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.edx-ring circle {
    fill: none;
    stroke-width: 15;
    stroke-linecap: butt;
}

.edx-ring .seg {
    animation: edxDraw 1s cubic-bezier(.2,.8,.2,1) both;
}

.edx-ring-mid {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.edx-ring-mid small {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text2);
}

.edx-ring-mid strong {
    font-size: 24px;
    font-weight: 900;
    color: var(--text1);
}

.edx-legend {
    width: 100%;
    display: grid;
    gap: 6px;
}

.edx-lg {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 5px 6px;
    border-radius: 12px;
    animation: edxRise .5s both;
    transition: background .2s ease;
}

.edx-lg:hover {
    background: color-mix(in srgb, var(--c) 9%, transparent);
}

.edx-lg i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 58%, #fff), var(--c));
}

.edx-lg b {
    font-size: 13px;
    font-weight: 850;
    color: var(--text1);
}

.edx-lg span {
    font-size: 12px;
    font-weight: 800;
    color: var(--text2);
}

/* ---------- transactions in two columns ---------- */
.edx-act {
    display: inline-flex;
    gap: 6px;
}

.edx-act button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--theme-stroke, rgba(255,255,255,.8));
    border-radius: 13px;
    font-size: 17px;
    color: var(--text2);
    background: color-mix(in srgb, var(--panel, #fff) 80%, transparent);
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, box-shadow .2s ease;
}

.edx-act button:hover {
    transform: translateY(-2px);
    color: var(--text1);
    box-shadow: 0 8px 16px rgba(80,40,40,.12);
}

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

.edx-row {
    --c: #7c5cfc;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--c) 20%, var(--theme-stroke, #fff));
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 75%);
    cursor: pointer;
    transition: transform .25s cubic-bezier(.2,.9,.3,1.1), box-shadow .25s ease;
}

.edx-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--c) 20%, transparent);
}

.edx-ico {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 58%, #fff), var(--c));
    box-shadow: 0 7px 16px color-mix(in srgb, var(--c) 32%, transparent);
    transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
}

.edx-row:hover .edx-ico {
    transform: rotate(-8deg) scale(1.08);
}

.edx-row b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 850;
    color: var(--text1);
}

.edx-row small {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text2);
}

.edx-row .amt {
    font-size: 14.5px;
    font-weight: 900;
    color: var(--text1);
    white-space: nowrap;
}

.edx-row .amt em {
    margin-inline-start: 3px;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 800;
    color: var(--text2);
}

.edx-more {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border: 1px dashed var(--border-strong, rgba(120,130,150,.4));
    border-radius: 15px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text2);
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.edx-more:hover {
    color: var(--edx-b);
    border-color: var(--edx-b);
    background: color-mix(in srgb, var(--edx-b) 6%, transparent);
}

@media (max-width: 900px) {
    .edx-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .edx-stat {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 12px;
    }
    .edx-stat-ico {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }
    .edx-stat strong {
        font-size: 18px;
    }
    .edx-mid,
    .edx-list {
        grid-template-columns: minmax(0, 1fr);
    }
    .edx-nav {
        margin-inline-start: 0;
    }
}

@keyframes edxRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes edxPop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes edxRing { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes edxFloat { 50% { transform: translateY(-3px); } }
@keyframes edxShine { 0%, 55% { transform: translateX(120%); } 80%, 100% { transform: translateX(-120%); } }
@keyframes edxDraw { from { stroke-dasharray: 0 400; } }

@media (prefers-reduced-motion: reduce) {
    .edx > *,
    .edx-lg,
    .edx-ring .seg,
    .edx-stat-ico::after,
    .edx-stat-ico i,
    .edx-stat.is-hero::before {
        animation: none !important;
    }
}

.edx-head b em {
    font-style: normal;
}

.edx-ring .track {
    stroke: color-mix(in srgb, var(--text2) 14%, transparent);
}

.edx-row-text {
    min-width: 0;
}

.edx-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 6px;
    padding: 0 8px;
    border-radius: 99px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
}

.edx-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--theme-stroke, rgba(255,255,255,.8));
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text1);
    background: color-mix(in srgb, var(--panel, #fff) 80%, transparent);
    cursor: pointer;
}

.edx-lg {
    border: 0;
    background: transparent;
    text-align: start;
    cursor: default;
    font-family: inherit;
}

button.edx-lg {
    cursor: pointer;
}

.edx-lg span {
    white-space: nowrap;
}

.edx-pop .edx-range .ed-range-field {
    min-width: 170px;
}

/* the older page rules target these ids, so the new look is restated here at the same weight */
:is(#view-expenses-details, #view-sales-details) :is(#edChartCard, #edBreakdownCard, #edTransactionsCard, #sdChartCard, #sdBreakdownCard, #sdCustomersCard, #sdTransactionsCard) {
    overflow: visible;
    border: 1px solid var(--theme-stroke, rgba(255,255,255,.8));
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--edx-t) 10%, transparent), transparent 45%),
        var(--theme-glass, rgba(255,255,255,.72));
}

:is(#view-expenses-details #edSummaryRow, #view-sales-details #sdSummaryRow) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 900px) {
    :is(#view-expenses-details #edSummaryRow, #view-sales-details #sdSummaryRow) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- the system font, larger and bolder text ---------- */
.edx,
.edx button,
.edx input,
.edx select {
    font-family: inherit;
}

.edx-cat {
    font-size: 15px;
    font-weight: 900;
}

.edx-seg button {
    font-size: 14.5px;
    font-weight: 900;
}

.edx-nav span {
    font-size: 15px;
    font-weight: 900;
}

.edx-chip {
    font-size: 14.5px;
    font-weight: 900;
}

.edx-chip em {
    font-size: 13px;
    font-weight: 900;
}

.edx-range {
    font-size: 14.5px;
    font-weight: 900;
}

.edx-pop .ed-range-field small {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text2);
}

.edx-stat small {
    font-size: 13.5px;
    font-weight: 900;
}

.edx-stat strong {
    font-size: 24px;
    font-weight: 900;
}

.edx-stat strong em {
    font-size: 13px;
    font-weight: 900;
}

.edx-stat.is-hero strong {
    font-size: 27px;
}

.edx-head b {
    font-size: 17px;
    font-weight: 900;
}

.edx-lg b {
    font-size: 14.5px;
    font-weight: 900;
}

.edx-lg span {
    font-size: 13.5px;
    font-weight: 800;
}

.edx-ring-mid small {
    font-size: 13px;
    font-weight: 800;
}

.edx-ring-mid strong {
    font-size: 26px;
    font-weight: 900;
}

.edx-row b {
    font-size: 15px;
    font-weight: 900;
}

.edx-row small {
    font-size: 12.5px;
    font-weight: 800;
}

.edx-row .amt {
    font-size: 15.5px;
    font-weight: 900;
}

.edx-row .amt em {
    font-size: 11.5px;
    font-weight: 800;
}

.edx-state {
    font-size: 11.5px;
    font-weight: 900;
}

.edx-more,
.edx-back {
    font-size: 14.5px;
    font-weight: 900;
}

:is(#view-expenses-details #edChart, #view-sales-details #sdChart) :is(.sdbar-day, .sdbar-day-pill, .sdbar-value) {
    font-size: 13px;
    font-weight: 900;
}

:is(#view-expenses-details #edChart, #view-sales-details #sdChart) .trend-chart-legend,
:is(#view-expenses-details #edChart, #view-sales-details #sdChart) .trend-chart-legend * {
    font-size: 13px;
    font-weight: 800;
}

/* the date picker opens above every card below it and is not see-through */
.edx-pop.is-open {
    position: relative;
    z-index: 30;
}

.date-picker-popover.expense-range-date-popover {
    z-index: 80;
    background: var(--theme-surface, var(--panel, #fff));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.date-picker-popover.expense-range-date-popover * {
    font-family: inherit;
}

/* Pashto: the face looks smaller, so everything grows another step */
html[lang="ps"] .edx-cat,
html[lang="ps"] .edx-seg button,
html[lang="ps"] .edx-chip,
html[lang="ps"] .edx-range,
html[lang="ps"] .edx-more,
html[lang="ps"] .edx-back {
    font-size: 16.5px;
}

html[lang="ps"] .edx-nav span {
    font-size: 16.5px;
}

html[lang="ps"] .edx-pop .ed-range-field small {
    font-size: 14px;
}

html[lang="ps"] .edx-stat small {
    font-size: 15px;
}

html[lang="ps"] .edx-stat strong {
    font-size: 26px;
}

html[lang="ps"] .edx-stat.is-hero strong {
    font-size: 29px;
}

html[lang="ps"] .edx-head b {
    font-size: 19px;
}

html[lang="ps"] .edx-lg b {
    font-size: 16.5px;
}

html[lang="ps"] .edx-lg span {
    font-size: 15px;
}

html[lang="ps"] .edx-ring-mid small {
    font-size: 14.5px;
}

html[lang="ps"] .edx-row b {
    font-size: 17px;
}

html[lang="ps"] .edx-row small {
    font-size: 14px;
}

html[lang="ps"] .edx-row .amt {
    font-size: 17px;
}

html[lang="ps"] .edx-state {
    font-size: 13px;
}

html[lang="ps"] :is(#view-expenses-details #edChart, #view-sales-details #sdChart) :is(.sdbar-day, .sdbar-day-pill, .sdbar-value),
html[lang="ps"] #view-expenses-details #edChart .trend-chart-legend,
html[lang="ps"] #view-expenses-details #edChart .trend-chart-legend * {
    font-size: 14.5px;
}

.date-picker-popover.expense-range-date-popover .date-picker-month-label {
    font-size: 17px;
    font-weight: 900;
}

.date-picker-popover.expense-range-date-popover .date-picker-weekdays {
    font-size: 14px;
    font-weight: 900;
}

.date-picker-popover.expense-range-date-popover .date-picker-day {
    font-size: 16px;
    font-weight: 900;
}

.date-picker-popover.expense-range-date-popover .date-picker-today-btn {
    font-size: 15.5px;
    font-weight: 900;
}

.date-picker-popover.expense-range-date-popover .date-picker-nav {
    font-size: 16px;
}

html[lang="ps"] .date-picker-popover.expense-range-date-popover .date-picker-month-label {
    font-size: 18.5px;
}

html[lang="ps"] .date-picker-popover.expense-range-date-popover .date-picker-weekdays {
    font-size: 15.5px;
}

html[lang="ps"] .date-picker-popover.expense-range-date-popover .date-picker-day {
    font-size: 17.5px;
}

html[lang="ps"] .date-picker-popover.expense-range-date-popover .date-picker-today-btn {
    font-size: 17px;
}

.edx-range > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-end: 6px;
    font-size: 15.5px;
    color: var(--text1);
}

.edx-range > span:first-child i {
    font-size: 19px;
    color: var(--edx-b);
}

.edx-range .ed-range-field {
    gap: 4px;
}

:is(#view-expenses-details, #view-sales-details) .edx-pop .ed-range-field small {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
}

:is(#view-expenses-details, #view-sales-details) .edx-pop .ed-range-field .date-picker-field {
    min-height: 46px;
    min-width: 150px;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 900;
}

html[lang="ps"] :is(#view-expenses-details, #view-sales-details) .edx-pop .ed-range-field small {
    font-size: 14.5px;
}

html[lang="ps"] :is(#view-expenses-details, #view-sales-details) .edx-pop .ed-range-field .date-picker-field {
    font-size: 16.5px;
}
