.wallet-dashboard {
    --navy: #181a2d;
    --muted: #73798a;
    --border: #e9ebef;
    --background: #f7f8fa;
    --rose: #b0183b;
    --blue: #397df5;
    --green: #11b782;
    --orange: #ff6b0a;

    padding: 4px 0 30px;
    color: var(--navy);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.wallet-dashboard * {
    box-sizing: border-box;
}

.quick-actions,
.summary-grid,
.analytics-grid,
.lower-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}

/* Quick actions */

.quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 80px;
    padding: 17px 18px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 17px;
    box-shadow: 0 7px 22px rgba(31, 38, 51, 0.055);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.action-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 38, 51, 0.09);
}

.action-card > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.action-card strong,
.action-card small {
    display: block;
}

.action-card strong {
    font-size: 14px;
}

.action-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.arrow {
    color: #7d8490;
    font-size: 26px;
    line-height: 1;
}

.icon-box,
.mini-icon,
.title-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.icon-box svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Reusable colors */

.rose {
    --tone: var(--rose);
    --soft: #f7e9ed;
}

.blue {
    --tone: var(--blue);
    --soft: #eaf1ff;
}

.green {
    --tone: var(--green);
    --soft: #e5f7f1;
}

.orange {
    --tone: var(--orange);
    --soft: #fff0e6;
}

.icon-box,
.mini-icon,
.title-icon {
    color: var(--tone);
    background: var(--soft);
}

/* Summary cards */

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
    position: relative;
    min-height: 100px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 17px;
    box-shadow: 0 7px 22px rgba(31, 38, 51, 0.055);
}

.summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.mini-icon {
    width: 38px;
    height: 38px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 10px;
}

.accent-line {
    width: 4px;
    height: 36px;
    background: var(--tone);
    border-radius: 9px;
}

.summary-label,
.summary-card small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.summary-value {
    display: block;
    margin: 4px 0 3px;
    font-size: 25px;
    line-height: 1.1;
}

/* Dashboard panels */

.analytics-grid {
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(310px, 0.95fr);
}

.lower-grid {
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(290px, 0.75fr);
}

.panel {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 18px;
    box-shadow: 0 7px 22px rgba(31, 38, 51, 0.055);
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.panel-title > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.panel-title h2 {
    margin: 0;
    font-size: 15px;
}

.panel-title a {
    color: var(--rose);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.panel-title a:hover {
    text-decoration: underline;
}

.title-icon {
    width: 24px;
    height: 24px;
    font-size: 13px;
    background: transparent;
    border-radius: 7px;
}

.panel-title select {
    padding: 8px 28px 8px 11px;
    color: var(--muted);
    font-size: 11px;
    background: #fafbfc;
    border: 1px solid #e5e8ed;
    border-radius: 11px;
    outline: none;
}

/* Performance section */

.performance-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: center;
    gap: 25px;
    min-height: 218px;
}

.donut {
    position: relative;
    display: grid;
    place-items: center;
    width: 154px;
    height: 154px;
    margin: auto;
    background:
        conic-gradient(
            var(--blue) calc(var(--value) * 1%),
            #eef1f5 0
        );
    border-radius: 50%;
}

.donut::before {
    position: absolute;
    width: 108px;
    height: 108px;
    content: "";
    background: #ffffff;
    border-radius: 50%;
}

.donut div {
    position: relative;
    text-align: center;
}

.donut strong,
.donut span {
    display: block;
}

.donut strong {
    font-size: 24px;
}

.donut span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.progress-list {
    display: grid;
    gap: 22px;
}

.progress-item > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 11px;
}

.progress-item strong {
    font-size: 11px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: var(--tone);
    border-radius: 3px;
}

.track {
    height: 7px;
    overflow: hidden;
    background: #eef1f5;
    border-radius: 20px;
}

.fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--tone);
    border-radius: inherit;
    transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Status section */

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.status-box {
    position: relative;
    min-height: 66px;
    padding: 12px 12px 10px 52px;
    border: 1px solid;
    border-radius: 12px;
}

.status-box > span {
    position: absolute;
    top: 13px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    font-weight: 800;
    border-radius: 8px;
}

.status-box strong,
.status-box small {
    display: block;
}

.status-box strong {
    font-size: 16px;
}

.status-box small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
}

.status-box.success {
    color: var(--green);
    background: #f2fbf8;
    border-color: #bfeadd;
}

.status-box.success > span {
    background: #d9f4eb;
}

.status-box.warning {
    color: #e99910;
    background: #fffaf1;
    border-color: #f4ddb5;
}

.status-box.warning > span {
    background: #ffedca;
}

.status-box.danger {
    color: #ef4e56;
    background: #fff7f7;
    border-color: #f3cdcf;
}

.status-box.danger > span {
    background: #ffe4e5;
}

.status-box.neutral {
    color: #77808d;
    background: #f7f8fa;
    border-color: #dfe3e8;
}

.status-box.neutral > span {
    background: #e9edf1;
}

/* Student table */

.table-wrap {
    overflow-x: auto;
}

.wallet-dashboard table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.wallet-dashboard th,
.wallet-dashboard td {
    padding: 12px 10px;
    font-size: 11px;
    text-align: left;
    border-bottom: 1px solid #eff1f4;
}

.wallet-dashboard th {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wallet-dashboard tbody tr:last-child td {
    border-bottom: 0;
}

.student-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-cell > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--blue);
    font-weight: 800;
    background: #eaf1ff;
    border-radius: 9px;
}

.student-cell strong,
.student-cell small {
    display: block;
}

.student-cell small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

/* Badges */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 30px;
}

.badge::before {
    width: 5px;
    height: 5px;
    margin-right: 5px;
    content: "";
    background: currentColor;
    border-radius: 50%;
}

.is-success {
    color: #0a9568;
    background: #e6f8f1;
}

.is-warning {
    color: #c87b09;
    background: #fff4dd;
}

.is-danger {
    color: #d4434b;
    background: #ffebec;
}

.is-neutral {
    color: #687281;
    background: #eef1f5;
}

/* Center information */

.center-name {
    position: relative;
    margin-bottom: 9px;
    padding: 14px;
    background: #f4f7fd;
    border-radius: 13px;
}

.center-name small,
.center-name strong {
    display: block;
}

.center-name small {
    color: var(--muted);
    font-size: 10px;
}

.center-name strong {
    max-width: 75%;
    margin-top: 3px;
    font-size: 13px;
}

.center-name .badge {
    position: absolute;
    top: 11px;
    right: 11px;
}

.center-panel dl {
    margin: 0;
}

.center-panel dl > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 2px;
    font-size: 10px;
    border-bottom: 1px solid #eff1f4;
}

.center-panel dl > div:last-child {
    border-bottom: 0;
}

.center-panel dt {
    color: var(--muted);
}

.center-panel dd {
    max-width: 62%;
    margin: 0;
    font-weight: 700;
    text-align: right;
}

/* Tablet */

@media (max-width: 1100px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-grid,
    .lower-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 720px) {
    .quick-actions,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .performance-layout {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 16px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        min-height: 74px;
    }

    .wallet-dashboard {
        padding-bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action-card,
    .fill {
        transition: none;
    }
}