.admin-mobile-menu,
.admin-mobile-avatar,
.admin-mobile-account,
.admin-mobile-customer-title,
.admin-customer-mobile-list,
.latest-notes-card__mobile-list,
.latest-notes-card__row-icon,
.admin-customer-table__mobile-icon {
    display: none;
}

.admin-stat-grid article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
}

.admin-stat-grid__icon {
    display: grid !important;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 13px;
    color: #1e5aa8 !important;
    background: #eef5fc;
    letter-spacing: 0 !important;
}

.admin-stat-grid__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.admin-stat-grid__copy {
    min-width: 0;
    color: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.admin-stat-grid__copy > span {
    color: #728093;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    body.admin-portal {
        min-width: 0;
        overflow-x: hidden;
        background: #f5f7fb;
    }

    .admin-portal__shell {
        width: 100%;
        min-width: 0;
        background: #f5f7fb;
    }

    .admin-portal__header {
        display: grid;
        height: 78px;
        padding: 0 18px;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        border-bottom: 1px solid #e3e9f1;
        background: #fff;
    }

    .admin-mobile-menu {
        display: grid;
        width: 42px;
        height: 42px;
        padding: 9px;
        border: 0;
        color: #17365f;
        background: transparent;
        place-content: center;
        gap: 5px;
    }

    .admin-mobile-menu > span:not(.visually-hidden) {
        display: block;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .admin-portal__shell.is-mobile-nav-open .admin-mobile-menu > span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .admin-portal__shell.is-mobile-nav-open .admin-mobile-menu > span:nth-child(2) {
        opacity: 0;
    }

    .admin-portal__shell.is-mobile-nav-open .admin-mobile-menu > span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .admin-portal__brand {
        justify-self: center;
    }

    .admin-portal__brand img {
        width: min(190px, 52vw);
    }

    .admin-mobile-avatar {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        justify-self: end;
        border-radius: 50%;
        color: #fff;
        background: #214b9a;
        font-size: .78rem;
        font-weight: 850;
    }

    .admin-mobile-account {
        display: flex;
        min-height: 82px;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 15px 22px;
        border-bottom: 1px solid #e3e9f1;
        background: #fff;
    }

    .admin-mobile-account strong,
    .admin-mobile-account small {
        display: block;
    }

    .admin-mobile-account strong {
        color: #17365f;
        font-size: .94rem;
    }

    .admin-mobile-account small {
        margin-top: 3px;
        color: #6c7b90;
        font-size: .76rem;
    }

    .admin-mobile-account a {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        gap: 9px;
        padding: 8px 10px;
        color: #dd293d;
        font-size: .84rem;
        font-weight: 800;
        text-decoration: none;
    }

    .admin-mobile-account svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .admin-portal__body {
        display: block;
        min-height: 0;
    }

    .admin-portal__sidebar {
        display: none;
        height: auto;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid #e3e9f1;
        background: #fff;
    }

    .admin-portal__shell.is-mobile-nav-open .admin-portal__sidebar {
        display: block;
    }

    .admin-portal__nav {
        display: grid;
        overflow: visible;
        padding: 0;
        gap: 6px;
    }

    .admin-portal__nav a {
        width: 100%;
        min-height: 46px;
        white-space: normal;
    }

    .admin-portal__sidebar-footer {
        display: none;
    }

    .admin-portal__main {
        width: 100%;
        padding: 22px 16px 34px;
        overflow: visible;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 20px;
    }

    .admin-stat-grid article {
        display: flex;
        min-width: 0;
        min-height: 112px;
        align-items: center;
        gap: 13px;
        padding: 16px;
        border-top-color: #1e5aa8;
        border-radius: 12px;
    }

    .admin-stat-grid__icon {
        display: grid !important;
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        place-items: center;
        border-radius: 13px;
        color: #1e5aa8 !important;
        background: #eef5fc;
        letter-spacing: 0 !important;
    }

    .admin-stat-grid__icon svg {
        width: 27px;
        height: 27px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .admin-stat-grid__copy {
        display: block;
        min-width: 0;
        color: inherit !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    .admin-stat-grid__copy > span {
        color: #697991;
        font-size: .68rem;
        font-weight: 850;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    .admin-stat-grid__copy strong {
        margin-top: 5px;
        color: #153e76;
        font-size: 1.55rem;
    }

    .latest-notes-card__desktop-table {
        display: none;
    }

    .latest-notes-card__mobile-list {
        display: block;
    }

    .latest-notes-mobile-row {
        display: grid;
        min-height: 78px;
        align-items: center;
        padding: 13px 16px;
        border-bottom: 1px solid #edf1f5;
        grid-template-columns: 34px minmax(0, 1fr) auto 38px;
        gap: 10px;
    }

    .latest-notes-mobile-row:last-child {
        border-bottom: 0;
    }

    .latest-notes-mobile-row__icon {
        display: grid;
        width: 32px;
        height: 32px;
        place-items: center;
        color: #1e5aa8;
    }

    .latest-notes-mobile-row__icon svg,
    .latest-notes-mobile-row__download svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .latest-notes-mobile-row__copy {
        min-width: 0;
    }

    .latest-notes-mobile-row__copy strong,
    .latest-notes-mobile-row__copy > span {
        display: block;
    }

    .latest-notes-mobile-row__copy strong {
        color: #17365f;
        font-size: .82rem;
    }

    .latest-notes-mobile-row__copy strong small {
        color: #7d899a;
        font-size: .68rem;
    }

    .latest-notes-mobile-row__copy > span {
        margin-top: 3px;
        overflow: hidden;
        color: #526174;
        font-size: .72rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .latest-notes-mobile-row time {
        color: #596b82;
        font-size: .7rem;
        white-space: nowrap;
    }

    .latest-notes-mobile-row__download {
        display: grid;
        width: 36px;
        height: 36px;
        place-items: center;
        border: 1px solid #d3deeb;
        border-radius: 50%;
        color: #1e5aa8;
        background: #fff;
    }

    .admin-list-panel {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .admin-list-panel__heading {
        display: block;
        padding: 16px;
        border: 1px solid #e3e9f1;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(28, 39, 53, .05);
    }

    .admin-search {
        position: relative;
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .admin-list-panel__heading:not(.admin-list-panel__heading--search-only) .admin-search {
        margin-top: 16px;
    }

    .admin-search svg {
        position: absolute;
        z-index: 1;
        top: 17px;
        left: 15px;
        margin: 0;
    }

    .admin-search input {
        width: 100%;
        height: 52px;
        padding-left: 44px;
        border-radius: 7px;
    }

    .admin-search button {
        height: 52px;
        padding: 0 20px;
        border-radius: 7px;
        background: #14529a;
    }

    .admin-search a {
        height: 38px;
        margin: 0;
        grid-column: 1 / -1;
        justify-self: end;
    }

    .admin-mobile-customer-title {
        display: block;
        margin: 22px 4px 10px;
        color: #17365f;
        font-size: 1rem;
        font-weight: 850;
    }

    .admin-customer-table-wrap {
        display: none;
    }

    .admin-customer-mobile-list {
        display: block;
        overflow: hidden;
        border: 1px solid #e3e9f1;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(28, 39, 53, .05);
    }

    .admin-customer-mobile-card {
        display: grid;
        min-height: 94px;
        align-items: center;
        padding: 14px 13px;
        border-bottom: 1px solid #e9edf3;
        color: inherit;
        grid-template-columns: 46px minmax(0, 1fr) 48px 42px 18px;
        gap: 9px;
        text-decoration: none;
    }

    .admin-customer-mobile-card:last-child {
        border-bottom: 0;
    }

    .admin-customer-mobile-card__icon {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border-radius: 11px;
        color: #1e5aa8;
        background: #eef5fc;
    }

    .admin-customer-mobile-card__icon svg,
    .admin-customer-mobile-card__arrow {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .admin-customer-mobile-card__copy {
        min-width: 0;
    }

    .admin-customer-mobile-card__copy strong,
    .admin-customer-mobile-card__copy small {
        display: block;
    }

    .admin-customer-mobile-card__copy strong {
        overflow: hidden;
        color: #17365f;
        font-size: .78rem;
        font-weight: 850;
        line-height: 1.35;
        text-overflow: ellipsis;
    }

    .admin-customer-mobile-card__copy small {
        margin-top: 5px;
        color: #69798f;
        font-size: .67rem;
    }

    .admin-customer-mobile-card__copy small span {
        display: inline-block;
        margin-left: 4px;
        padding: 2px 5px;
        border-radius: 4px;
        color: #29486f;
        background: #f0f4f8;
    }

    .admin-customer-mobile-card__metric {
        text-align: center;
    }

    .admin-customer-mobile-card__metric small,
    .admin-customer-mobile-card__metric strong {
        display: block;
    }

    .admin-customer-mobile-card__metric small {
        color: #69798f;
        font-size: .62rem;
    }

    .admin-customer-mobile-card__metric strong {
        margin-top: 4px;
        color: #17365f;
        font-size: .8rem;
    }

    .admin-customer-mobile-card__arrow {
        width: 17px;
        color: #17365f;
    }

    .admin-pagination {
        margin-top: 14px;
        border: 1px solid #e3e9f1;
        border-radius: 10px;
        background: #fff;
    }

    .admin-pdf-download {
        display: grid;
        width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        place-items: center;
        border-radius: 50%;
    }

    .admin-pdf-download__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }
}

@media (max-width: 430px) {
    .admin-portal__main {
        padding-inline: 12px;
    }

    .admin-stat-grid article {
        min-height: 104px;
        gap: 9px;
        padding: 13px 11px;
    }

    .admin-stat-grid__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .admin-stat-grid__copy > span {
        font-size: .6rem;
    }

    .admin-stat-grid__copy strong {
        font-size: 1.35rem;
    }

    .latest-notes-mobile-row {
        grid-template-columns: 30px minmax(0, 1fr) 34px;
    }

    .latest-notes-mobile-row time {
        display: none;
    }

    .admin-customer-mobile-card {
        grid-template-columns: 42px minmax(0, 1fr) 41px 38px 15px;
        gap: 6px;
        padding-inline: 10px;
    }
}
