html,
body {
    min-height: 100%;
}

.admin-login-body {
    min-height: 100vh;
    margin: 0;
    color: #202124;
    background: radial-gradient( circle at top left, rgba(123, 79, 181, 0.45), transparent 38% ), linear-gradient( 135deg, #263d91 0%, #3f63d8 50%, #7b4fb5 100% );
}

.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-login-card {
    width: 100%;
    max-width: 460px;
    padding: 38px;
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(10, 20, 60, 0.35);
}

.admin-brand {
    text-align: center;
    margin-bottom: 22px;
}

.admin-brand-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient( 135deg, #3f63d8, #7b4fb5 );
    border-radius: 22px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 12px 28px rgba(63, 99, 216, 0.32);
}

.admin-brand h1 {
    margin-bottom: 4px;
    color: #202124;
    font-size: 30px;
    font-weight: 750;
}

.admin-brand p {
    margin: 0;
    color: #65676b;
    font-size: 15px;
}

.admin-security-message {
    margin-bottom: 24px;
    padding: 10px 14px;
    color: #4a3a79;
    background-color: #f0ebfa;
    border: 1px solid #ded2f3;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.admin-form-control {
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #d7d9e0;
    border-radius: 12px;
}

    .admin-form-control:focus {
        border-color: #3f63d8;
        box-shadow: 0 0 0 0.2rem rgba(63, 99, 216, 0.15);
    }

.admin-login-button {
    min-height: 50px;
    color: #ffffff;
    background: linear-gradient( 135deg, #3f63d8, #6b54c6 );
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 650;
    box-shadow: 0 10px 24px rgba(63, 99, 216, 0.28);
}

    .admin-login-button:hover,
    .admin-login-button:focus {
        color: #ffffff;
        background: linear-gradient( 135deg, #3455c5, #5d45b5 );
    }

.admin-login-footer {
    margin-top: 26px;
    color: #777a82;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.alert {
    border-radius: 12px;
}

@media (max-width: 576px) {
    .admin-login-container {
        padding: 14px;
    }

    .admin-login-card {
        padding: 28px 22px;
        border-radius: 18px;
    }
}

.admin-body {
    min-height: 100vh;
    margin: 0;
    color: #202437;
    background-color: #f4f6fb;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 270px;
    display: flex;
    flex-direction: column;
    background: linear-gradient( 180deg, #283d94 0%, #354fbd 52%, #684fc2 100% );
    box-shadow: 8px 0 30px rgba(24, 39, 102, 0.13);
}

.admin-sidebar-header {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.admin-sidebar-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
}

.admin-sidebar-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 750;
}

.admin-sidebar-subtitle {
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.admin-navigation {
    flex: 1;
    padding: 22px 14px;
    overflow-y: auto;
}

.admin-navigation-heading {
    padding: 0 12px 10px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.admin-nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 550;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .admin-nav-link:hover {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.11);
        transform: translateX(2px);
    }

    .admin-nav-link.active {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.19);
        box-shadow: inset 3px 0 0 #ffffff;
    }

.admin-nav-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 750;
}

.admin-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.admin-signed-in-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f50a8;
    background-color: #ffffff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.admin-user-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-user-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 650;
}

.admin-user-email {
    max-width: 175px;
    color: rgba(255, 255, 255, 0.65);
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-signout-button {
    width: 100%;
    min-height: 42px;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    font-size: 13px;
    font-weight: 650;
}

    .admin-signout-button:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.admin-content-wrapper {
    width: calc(100% - 270px);
    min-height: 100vh;
    margin-left: 270px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 30px;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e7e9f0;
    backdrop-filter: blur(12px);
}

.admin-topbar-title {
    flex: 1;
    color: #25293a;
    font-size: 16px;
    font-weight: 700;
}

.admin-topbar-account {
    max-width: 280px;
    padding: 9px 14px;
    color: #596078;
    background-color: #f3f4f9;
    border-radius: 10px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    color: #3f52b3;
    background-color: #eef0fa;
    border: 0;
    border-radius: 11px;
    font-size: 20px;
}

.admin-main-content {
    padding: 30px;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

    .admin-page-header h1 {
        margin: 0 0 5px;
        color: #202437;
        font-size: 28px;
        font-weight: 760;
    }

    .admin-page-header p {
        margin: 0;
        color: #747a8e;
        font-size: 14px;
    }

.admin-current-date {
    padding: 10px 14px;
    color: #666d82;
    background-color: #ffffff;
    border: 1px solid #e5e7ef;
    border-radius: 11px;
    box-shadow: 0 5px 16px rgba(32, 36, 55, 0.04);
    font-size: 12px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card {
    min-height: 150px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    color: inherit;
    background-color: #ffffff;
    border: 1px solid #e7e9f1;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(30, 42, 90, 0.055);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .admin-stat-card:hover {
        color: inherit;
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(30, 42, 90, 0.1);
    }

.admin-stat-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
}

    .admin-stat-icon.users {
        color: #3e5bd0;
        background-color: #e9edff;
    }

    .admin-stat-icon.households {
        color: #8a55bd;
        background-color: #f2e9fb;
    }

    .admin-stat-icon.lists {
        color: #178873;
        background-color: #e3f6f1;
    }

    .admin-stat-icon.locked {
        color: #c34653;
        background-color: #fbe7e9;
    }

.admin-stat-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-stat-label {
    margin-bottom: 4px;
    color: #70768b;
    font-size: 13px;
}

.admin-stat-value {
    margin-bottom: 3px;
    color: #202437;
    font-size: 28px;
    line-height: 1.05;
}

.admin-stat-description {
    color: #9a9eb0;
    font-size: 11px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 22px;
}

.admin-panel {
    background-color: #ffffff;
    border: 1px solid #e7e9f1;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(30, 42, 90, 0.05);
    overflow: hidden;
}

.admin-panel-header {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #eceef4;
}

    .admin-panel-header h2 {
        margin: 0 0 3px;
        color: #272b3d;
        font-size: 17px;
        font-weight: 730;
    }

    .admin-panel-header p {
        margin: 0;
        color: #8a8fa1;
        font-size: 12px;
    }

.admin-panel-link {
    color: #4b5dcc;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.admin-activity-list {
    padding: 4px 22px;
}

.admin-activity-item {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #eff0f5;
}

    .admin-activity-item:last-child {
        border-bottom: 0;
    }

.admin-activity-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5cc8;
    background-color: #edf0ff;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
}

.admin-activity-content {
    min-width: 0;
    flex: 1;
}

.admin-activity-title {
    margin-bottom: 2px;
    color: #303447;
    font-size: 13px;
    font-weight: 650;
}

.admin-activity-description {
    color: #858a9d;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-activity-time {
    color: #a0a4b4;
    font-size: 11px;
    white-space: nowrap;
}

.admin-quick-actions {
    padding: 14px;
}

.admin-quick-action {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 8px;
    padding: 13px;
    color: inherit;
    border: 1px solid transparent;
    border-radius: 13px;
    text-decoration: none;
}

    .admin-quick-action:last-child {
        margin-bottom: 0;
    }

    .admin-quick-action:hover {
        color: inherit;
        background-color: #f7f8fc;
        border-color: #e8eaf3;
    }

.admin-quick-action-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5364c8;
    background-color: #edf0ff;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
}

.admin-quick-action span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-quick-action strong {
    color: #34384b;
    font-size: 13px;
    font-weight: 650;
}

.admin-quick-action small {
    margin-top: 2px;
    color: #9195a7;
    font-size: 11px;
}

.admin-empty-state {
    padding: 44px 22px;
    color: #8a8fa1;
    text-align: center;
    font-size: 13px;
}

.admin-sidebar-overlay {
    display: none;
}

@media (max-width: 1150px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

        .admin-sidebar.open {
            transform: translateX(0);
        }

    .admin-content-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .admin-menu-button {
        display: block;
    }

    .admin-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 950;
        display: block;
        visibility: hidden;
        background-color: rgba(18, 23, 45, 0.48);
        opacity: 0;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

        .admin-sidebar-overlay.visible {
            visibility: visible;
            opacity: 1;
        }

    .admin-topbar {
        padding: 0 18px;
    }

    .admin-main-content {
        padding: 22px 18px;
    }
}

@media (max-width: 600px) {
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-header {
        flex-direction: column;
    }

    .admin-current-date {
        width: 100%;
    }

    .admin-topbar-account {
        display: none;
    }

    .admin-activity-time {
        display: none;
    }
}

.admin-household-total {
    padding: 10px 14px;
    color: #626980;
    background-color: #ffffff;
    border: 1px solid #e5e7ef;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 650;
}

.admin-household-search {
    margin-bottom: 22px;
}

.admin-household-search-fields {
    display: flex;
    gap: 10px;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #e7e9f1;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(30, 42, 90, 0.045);
}

    .admin-household-search-fields .form-control {
        min-height: 46px;
        border-color: #dfe2eb;
        border-radius: 11px;
    }

        .admin-household-search-fields .form-control:focus {
            border-color: #5367d4;
            box-shadow: 0 0 0 0.2rem rgba(83, 103, 212, 0.14);
        }

.admin-household-search-button {
    min-width: 110px;
    color: #ffffff;
    background: linear-gradient( 135deg, #3f63d8, #6b54c6 );
    border: 0;
    border-radius: 11px;
    font-weight: 650;
}

    .admin-household-search-button:hover {
        color: #ffffff;
    }

.admin-household-clear-button {
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #61687d;
    background-color: #f3f4f8;
    border: 1px solid #e2e4eb;
    border-radius: 11px;
}

.admin-household-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-household-card {
    background-color: #ffffff;
    border: 1px solid #e7e9f1;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(30, 42, 90, 0.05);
    overflow: hidden;
}

.admin-household-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 23px;
    border-bottom: 1px solid #eceef4;
}

.admin-household-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .admin-household-title-row h2 {
        margin: 0;
        color: #282c3e;
        font-size: 19px;
        font-weight: 740;
    }

.admin-household-id {
    padding: 4px 8px;
    color: #72788d;
    background-color: #f1f2f7;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
}

.admin-household-summary {
    display: flex;
    gap: 16px;
    margin-top: 7px;
    color: #858a9d;
    font-size: 12px;
}

.admin-household-owner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 22px;
    padding: 16px;
    background: linear-gradient( 135deg, #eef1ff, #f4effc );
    border: 1px solid #dfe3f8;
    border-radius: 14px;
}

.admin-household-owner-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient( 135deg, #4962d1, #7554be );
    border-radius: 13px;
    font-size: 15px;
    font-weight: 800;
}

.admin-household-owner-content {
    min-width: 0;
    flex: 1;
}

.admin-household-owner-label {
    margin-bottom: 2px;
    color: #6d7390;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-household-owner-email {
    color: #292e43;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-household-owner-details {
    margin-top: 3px;
    color: #7f859a;
    font-size: 11px;
}

.admin-household-owner-badge,
.admin-inline-owner-badge {
    color: #4e52a9;
    background-color: #ffffff;
    border: 1px solid #d7daf0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

.admin-household-owner-badge {
    padding: 7px 11px;
}

.admin-inline-owner-badge {
    margin-left: 6px;
    padding: 3px 7px;
}

.admin-household-table-wrapper {
    overflow-x: auto;
    border-top: 1px solid #eceef4;
}

.admin-household-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

    .admin-household-table th {
        padding: 12px 17px;
        color: #787e92;
        background-color: #f8f9fc;
        border-bottom: 1px solid #e9ebf2;
        font-size: 10px;
        font-weight: 750;
        letter-spacing: 0.05em;
        text-align: left;
        text-transform: uppercase;
    }

    .admin-household-table td {
        padding: 14px 17px;
        color: #555b70;
        border-bottom: 1px solid #eff0f5;
        font-size: 12px;
        vertical-align: middle;
    }

    .admin-household-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .admin-household-table tr.owner-row {
        background-color: #fcfbff;
    }

.admin-household-account {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-household-account-avatar {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5362bd;
    background-color: #edf0ff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
}

.admin-household-account-email {
    color: #34394d;
    font-size: 12px;
    font-weight: 650;
}

.admin-household-account-username {
    margin-top: 2px;
    color: #9599aa;
    font-size: 10px;
}

.admin-household-role {
    padding: 5px 8px;
    color: #565e77;
    background-color: #f1f3f8;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 650;
}

.admin-household-connection {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

    .admin-household-connection.linked {
        color: #17775f;
        background-color: #e3f5ef;
    }

    .admin-household-connection.pending {
        color: #9a6b1c;
        background-color: #fff1d8;
    }

@media (max-width: 700px) {
    .admin-household-search-fields {
        flex-direction: column;
    }

    .admin-household-search-button,
    .admin-household-clear-button {
        width: 100%;
        min-height: 44px;
    }

    .admin-household-header {
        padding: 18px;
    }

    .admin-household-owner {
        margin: 15px;
    }

    .admin-household-owner-badge {
        display: none;
    }

    .admin-household-summary {
        flex-direction: column;
        gap: 3px;
    }
}

.admin-user-total {
    padding: 10px 14px;
    color: #626980;
    background-color: #ffffff;
    border: 1px solid #e5e7ef;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 650;
}

.admin-user-search {
    margin-bottom: 22px;
}

.admin-user-search-fields {
    display: flex;
    gap: 10px;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #e7e9f1;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(30, 42, 90, 0.045);
}

    .admin-user-search-fields .form-control {
        min-height: 46px;
        border-color: #dfe2eb;
        border-radius: 11px;
    }

        .admin-user-search-fields .form-control:focus {
            border-color: #5367d4;
            box-shadow: 0 0 0 0.2rem rgba(83, 103, 212, 0.14);
        }

.admin-user-search-button {
    min-width: 110px;
    color: #ffffff;
    background: linear-gradient( 135deg, #3f63d8, #6b54c6 );
    border: 0;
    border-radius: 11px;
    font-weight: 650;
}

    .admin-user-search-button:hover {
        color: #ffffff;
    }

.admin-user-clear-button {
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #61687d;
    background-color: #f3f4f8;
    border: 1px solid #e2e4eb;
    border-radius: 11px;
}

.admin-user-panel {
    background-color: #ffffff;
    border: 1px solid #e7e9f1;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(30, 42, 90, 0.05);
    overflow: visible;
}

.admin-user-table-wrapper {
    overflow-x: auto;
}

.admin-user-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

    .admin-user-table th {
        padding: 13px 16px;
        color: #787e92;
        background-color: #f8f9fc;
        border-bottom: 1px solid #e9ebf2;
        font-size: 10px;
        font-weight: 750;
        letter-spacing: 0.05em;
        text-align: left;
        text-transform: uppercase;
    }

    .admin-user-table td {
        padding: 15px 16px;
        color: #555b70;
        border-bottom: 1px solid #eff0f5;
        font-size: 12px;
        vertical-align: middle;
    }

    .admin-user-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .admin-user-table tbody tr:hover {
        background-color: #fafbfe;
    }

.admin-user-account {
    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-user-account-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5262bf;
    background-color: #edf0ff;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
}

.admin-user-email {
    max-width: 260px;
    color: #34394d;
    overflow: hidden;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-username {
    max-width: 260px;
    margin-top: 2px;
    color: #9599aa;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-small-badge {
    display: inline-flex;
    margin-top: 4px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
}

    .admin-user-small-badge.confirmed {
        color: #17775f;
        background-color: #e3f5ef;
    }

    .admin-user-small-badge.unconfirmed {
        color: #a1681a;
        background-color: #fff0d3;
    }

    .admin-user-small-badge.neutral {
        color: #676d80;
        background-color: #eef0f4;
    }

.admin-user-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

    .admin-user-status.active {
        color: #17775f;
        background-color: #e3f5ef;
    }

    .admin-user-status.locked {
        color: #ad3947;
        background-color: #fbe4e7;
    }

.admin-user-lockout-date {
    margin-top: 5px;
    color: #989cad;
    font-size: 9px;
    white-space: nowrap;
}

.admin-user-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-user-role {
    display: inline-flex;
    padding: 5px 8px;
    color: #555eac;
    background-color: #edf0ff;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
}

.admin-user-muted {
    color: #a1a5b5;
}

@media (max-width: 700px) {
    .admin-user-search-fields {
        flex-direction: column;
    }

    .admin-user-search-button,
    .admin-user-clear-button {
        width: 100%;
        min-height: 44px;
    }
}

/* =========================================================
   SUGGESTION BOX
   ========================================================= */

.suggestion-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

    .suggestion-page-header h1 {
        margin: 0 0 6px;
        color: #202437;
        font-size: 30px;
        font-weight: 760;
        letter-spacing: -0.5px;
    }

    .suggestion-page-header p {
        margin: 0;
        color: #777d91;
        font-size: 14px;
    }

.suggestion-count-card {
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #e4e7f0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(29, 43, 94, 0.05);
}

.suggestion-count-value {
    color: #4c5fca;
    font-size: 23px;
    font-weight: 800;
}

.suggestion-count-label {
    color: #73798d;
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.suggestion-toolbar {
    margin-bottom: 22px;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #e5e8f1;
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(30, 42, 90, 0.045);
}

.suggestion-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-search-input-wrapper {
    position: relative;
    min-width: 0;
    flex: 1;
}

.suggestion-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: #9297aa;
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.suggestion-search-input {
    width: 100%;
    height: 48px;
    padding: 11px 15px 11px 43px;
    color: #35394d;
    background-color: #fbfcfe;
    border: 1px solid #dfe2eb;
    border-radius: 12px;
    outline: none;
    font-size: 13px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .suggestion-search-input::placeholder {
        color: #999eaf;
    }

    .suggestion-search-input:focus {
        background-color: #ffffff;
        border-color: #596dd8;
        box-shadow: 0 0 0 0.2rem rgba(83, 103, 212, 0.13);
    }

.suggestion-search-button,
.suggestion-clear-button {
    min-width: 105px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.suggestion-search-button {
    color: #ffffff;
    background: linear-gradient( 135deg, #3f63d8, #7153c7 );
    border: 0;
    box-shadow: 0 8px 18px rgba(63, 99, 216, 0.22);
}

    .suggestion-search-button:hover {
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 11px 22px rgba(63, 99, 216, 0.28);
    }

.suggestion-clear-button {
    color: #62697e;
    background-color: #f3f4f8;
    border: 1px solid #e1e4eb;
}

    .suggestion-clear-button:hover {
        color: #3d4356;
        background-color: #eaecef;
    }

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 20px;
}

.suggestion-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e4e7f0;
    border-radius: 19px;
    box-shadow: 0 9px 28px rgba(30, 42, 90, 0.06);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .suggestion-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(30, 42, 90, 0.1);
    }

.suggestion-card-header {
    padding: 20px 21px 17px;
    background: linear-gradient( 180deg, #ffffff, #fbfbfe );
    border-bottom: 1px solid #eceef4;
}

.suggestion-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.suggestion-card-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient( 135deg, #4964d6, #7654bf );
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(79, 91, 194, 0.2);
    font-size: 15px;
    font-weight: 800;
}

.suggestion-card-title-area {
    min-width: 0;
    flex: 1;
}

.suggestion-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .suggestion-card-title-row h2 {
        margin: 0;
        color: #272b3e;
        font-size: 18px;
        font-weight: 750;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

.suggestion-id {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #6f7589;
    background-color: #f0f2f7;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 750;
}

.suggestion-card-metadata {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.suggestion-date {
    color: #969aab;
    font-size: 10px;
}

.suggestion-status,
.suggestion-category {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
}

    .suggestion-status.submitted {
        color: #3c58b9;
        background-color: #e8ecff;
    }

    .suggestion-status.review {
        color: #99691c;
        background-color: #fff0d3;
    }

    .suggestion-status.planned {
        color: #6947a5;
        background-color: #eee6f9;
    }

    .suggestion-status.completed {
        color: #17755e;
        background-color: #e1f4ed;
    }

    .suggestion-status.declined {
        color: #ad3947;
        background-color: #fbe4e7;
    }

    .suggestion-status.neutral {
        color: #666d80;
        background-color: #eceef3;
    }

.suggestion-category {
    color: #666d81;
    background-color: #eff1f5;
}

.suggestion-card-body {
    min-height: 145px;
    flex: 1;
    padding: 21px;
}

.suggestion-description-label {
    margin-bottom: 9px;
    color: #9095a7;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.suggestion-description {
    margin: 0;
    color: #4d5368;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

    .suggestion-description.empty {
        color: #999dad;
        font-style: italic;
    }

.suggestion-card-footer {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background-color: #fafbfe;
    border-top: 1px solid #eceef4;
}

.suggestion-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.suggestion-user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f60be;
    background-color: #e9edff;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
}

.suggestion-user-information {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.suggestion-submitted-label {
    margin-bottom: 1px;
    color: #9b9faf;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.suggestion-user-email {
    max-width: 270px;
    color: #3b4055;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-user-name {
    max-width: 270px;
    margin-top: 1px;
    color: #999dac;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-user-id {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #9a9eae;
    font-size: 9px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .suggestion-user-id strong {
        margin-top: 2px;
        color: #555b72;
        font-size: 12px;
    }

.suggestion-empty-card {
    padding: 60px 25px;
    background-color: #ffffff;
    border: 1px solid #e5e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(30, 42, 90, 0.05);
    text-align: center;
}

.suggestion-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5667c7;
    background-color: #ebeeff;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
}

.suggestion-empty-card h2 {
    margin: 0 0 6px;
    color: #34384b;
    font-size: 17px;
    font-weight: 730;
}

.suggestion-empty-card p {
    margin: 0;
    color: #8d92a4;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .suggestion-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .suggestion-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .suggestion-count-card {
        width: 100%;
    }

    .suggestion-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .suggestion-search-button,
    .suggestion-clear-button {
        width: 100%;
    }

    .suggestion-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .suggestion-user-id {
        padding-left: 49px;
        align-items: flex-start;
    }

    .suggestion-card-body {
        min-height: auto;
    }
}

/* =========================================================
   ADMIN USERS
   ========================================================= */

.admin-access-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

    .admin-access-page-header h1 {
        margin: 0 0 6px;
        color: #202437;
        font-size: 30px;
        font-weight: 760;
    }

    .admin-access-page-header p {
        margin: 0;
        color: #777d91;
        font-size: 14px;
    }

.admin-access-count {
    min-width: 145px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #e4e7f0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(29, 43, 94, 0.05);
}

    .admin-access-count strong {
        color: #4c5fca;
        font-size: 23px;
        font-weight: 800;
    }

    .admin-access-count span {
        color: #73798d;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

.admin-access-information {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
    padding: 15px 17px;
    color: #4b5270;
    background-color: #eef1ff;
    border: 1px solid #dce2fb;
    border-radius: 14px;
}

.admin-access-information-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: #5769cd;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.admin-access-information strong {
    color: #3f4660;
    font-size: 12px;
}

.admin-access-information p {
    margin: 3px 0 0;
    color: #727991;
    font-size: 11px;
    line-height: 1.5;
}

.admin-access-toolbar {
    margin-bottom: 22px;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #e5e8f1;
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(30, 42, 90, 0.045);
}

.admin-access-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-access-search-wrapper {
    position: relative;
    min-width: 0;
    flex: 1;
}

.admin-access-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.admin-access-search-input {
    width: 100%;
    height: 48px;
    padding: 11px 15px 11px 43px;
    color: #35394d;
    background-color: #fbfcfe;
    border: 1px solid #dfe2eb;
    border-radius: 12px;
    outline: none;
    font-size: 13px;
}

    .admin-access-search-input:focus {
        background-color: #ffffff;
        border-color: #596dd8;
        box-shadow: 0 0 0 0.2rem rgba(83, 103, 212, 0.13);
    }

.admin-access-search-button,
.admin-access-clear-button {
    min-width: 115px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.admin-access-search-button {
    color: #ffffff;
    background: linear-gradient( 135deg, #3f63d8, #7153c7 );
    border: 0;
}

.admin-access-clear-button {
    color: #62697e;
    background-color: #f3f4f8;
    border: 1px solid #e1e4eb;
}

.admin-access-panel {
    background-color: #ffffff;
    border: 1px solid #e4e7f0;
    border-radius: 18px;
    box-shadow: 0 9px 28px rgba(30, 42, 90, 0.06);
    overflow: hidden;
}

.admin-access-table-wrapper {
    overflow-x: auto;
}

.admin-access-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

    .admin-access-table th {
        padding: 13px 16px;
        color: #787e92;
        background-color: #f8f9fc;
        border-bottom: 1px solid #e9ebf2;
        font-size: 10px;
        font-weight: 750;
        letter-spacing: 0.05em;
        text-align: left;
        text-transform: uppercase;
    }

    .admin-access-table td {
        padding: 15px 16px;
        color: #555b70;
        border-bottom: 1px solid #eff0f5;
        font-size: 12px;
        vertical-align: middle;
    }

    .admin-access-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .admin-access-table tbody tr:hover {
        background-color: #fafbfe;
    }

    .admin-access-table tr.administrator-row {
        background-color: #fcfbff;
    }

.admin-access-account {
    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-access-avatar {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5162bf;
    background-color: #e9edff;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
}

.admin-access-account-details {
    min-width: 0;
}

.admin-access-email {
    max-width: 270px;
    color: #34394d;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-access-username {
    max-width: 270px;
    margin-top: 2px;
    color: #9599aa;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-access-you-badge {
    margin-left: 6px;
    padding: 3px 7px;
    color: #574ea6;
    background-color: #eeeafd;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
}

.admin-access-confirmed,
.admin-access-unconfirmed,
.admin-access-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
}

.admin-access-confirmed {
    color: #17775f;
    background-color: #e3f5ef;
}

.admin-access-unconfirmed {
    color: #9a6819;
    background-color: #fff0d3;
}

.admin-access-status.enabled {
    color: #514ba6;
    background-color: #ece9fc;
}

.admin-access-status.disabled {
    color: #6c7182;
    background-color: #eff0f4;
}

.admin-access-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-access-role {
    padding: 5px 8px;
    color: #555eac;
    background-color: #edf0ff;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
}

.admin-access-grant-button,
.admin-access-revoke-button {
    min-width: 112px;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 750;
}

.admin-access-grant-button {
    color: #ffffff;
    background-color: #5267d2;
    border: 1px solid #5267d2;
}

.admin-access-revoke-button {
    color: #a93644;
    background-color: #fff4f5;
    border: 1px solid #f2cbd0;
}

.admin-access-grant-button:hover {
    background-color: #4358c3;
}

.admin-access-revoke-button:hover {
    background-color: #fbe6e9;
}

.admin-access-protected {
    color: #8d92a4;
    font-size: 10px;
    font-weight: 650;
}

.admin-access-muted {
    color: #9da1b1;
}

.admin-access-empty {
    padding: 60px 25px;
    background-color: #ffffff;
    border: 1px solid #e5e8f0;
    border-radius: 18px;
    text-align: center;
}

.admin-access-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5667c7;
    background-color: #ebeeff;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
}

.admin-access-empty h2 {
    margin: 0 0 6px;
    color: #34384b;
    font-size: 17px;
}

.admin-access-empty p {
    margin: 0;
    color: #8d92a4;
    font-size: 12px;
}

@media (max-width: 700px) {
    .admin-access-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-access-count {
        width: 100%;
    }

    .admin-access-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-access-search-button,
    .admin-access-clear-button {
        width: 100%;
    }
}

/* =========================================================
   USER RESET PASSWORD BUTTON
   ========================================================= */

.admin-user-reset-password-button {
    min-width: 108px;
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    color: #5361b8;
    background-color: #edf0ff;
    border: 1px solid #dce1fa;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

    .admin-user-reset-password-button:hover,
    .admin-user-reset-password-button:focus {
        color: #3f4da3;
        background-color: #e3e7fb;
        border-color: #ccd3f5;
        text-decoration: none;
        transform: translateY(-1px);
    }

/* =========================================================
   RESET USER PASSWORD
   ========================================================= */

.reset-password-back-button {
    min-width: 110px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    color: #5361b8;
    background-color: #edf0ff;
    border: 1px solid #dce1fa;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

    .reset-password-back-button:hover {
        color: #3f4da3;
        background-color: #e3e7fb;
        text-decoration: none;
    }

.reset-password-layout {
    max-width: 950px;
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(380px, 1fr);
    gap: 22px;
}

.reset-password-user-card,
.reset-password-form-card {
    background-color: #ffffff;
    border: 1px solid #e5e8f1;
    border-radius: 18px;
    box-shadow: 0 9px 28px rgba(30, 42, 90, 0.055);
}

.reset-password-user-card {
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
}

.reset-password-user-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient( 135deg, #4862d3, #7754bd );
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
}

.reset-password-user-information {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reset-password-user-label {
    margin-bottom: 4px;
    color: #999dad;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reset-password-user-information strong {
    max-width: 270px;
    margin-bottom: 5px;
    color: #34394d;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reset-password-user-information span:not( .reset-password-user-label) {
    margin-top: 3px;
    color: #858a9d;
    font-size: 10px;
}

.reset-password-form-card {
    padding: 25px;
}

.reset-password-warning {
    margin-bottom: 22px;
    padding: 15px 17px;
    color: #76561e;
    background-color: #fff4df;
    border: 1px solid #f1ddb5;
    border-radius: 13px;
}

    .reset-password-warning strong {
        font-size: 12px;
    }

    .reset-password-warning p {
        margin: 5px 0 0;
        font-size: 10px;
        line-height: 1.55;
    }

.reset-password-validation-summary {
    margin-bottom: 15px;
    font-size: 11px;
}

.reset-password-field {
    margin-bottom: 18px;
}

    .reset-password-field label {
        display: block;
        margin-bottom: 7px;
        color: #555b70;
        font-size: 11px;
        font-weight: 700;
    }

    .reset-password-field .form-control {
        min-height: 48px;
        border-color: #dfe2eb;
        border-radius: 11px;
        font-size: 12px;
    }

        .reset-password-field .form-control:focus {
            border-color: #5367d4;
            box-shadow: 0 0 0 0.2rem rgba(83, 103, 212, 0.13);
        }

    .reset-password-field .text-danger {
        display: block;
        margin-top: 5px;
        font-size: 10px;
    }

.reset-password-policy {
    margin-bottom: 18px;
    color: #8e93a4;
    font-size: 10px;
    line-height: 1.5;
}

.reset-password-submit-button {
    width: 100%;
    min-height: 48px;
    color: #ffffff;
    background: linear-gradient( 135deg, #3f63d8, #7153c7 );
    border: 0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 750;
}

    .reset-password-submit-button:hover {
        background: linear-gradient( 135deg, #3556c6, #6246b5 );
    }

@media (max-width: 780px) {
    .reset-password-layout {
        grid-template-columns: 1fr;
    }
}

.admin-user-action-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 145px;
}

.admin-user-vip-form {
    margin: 0;
}

.admin-user-make-vip-button,
.admin-user-vip-active-button {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.admin-user-make-vip-button {
    border: 0;
    background-color: #1f8f5f;
    color: #ffffff;
    cursor: pointer;
}

    .admin-user-make-vip-button:hover {
        background-color: #18764e;
    }

.admin-user-vip-active-button {
    border: 1px solid #9bd8ba;
    background-color: #e7f7ef;
    color: #15603e;
    cursor: default;
}

.admin-user-vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid #e7bf55;
    border-radius: 999px;
    background-color: #fff6d8;
    color: #765500;
    font-size: 12px;
    font-weight: 800;
}

.admin-user-subscription-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background-color: #eef2ff;
    color: #3646a5;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   USER ACCOUNTS TABLE WIDTH FIX
   ========================================================= */

.admin-content-wrapper {
    min-width: 0;
    max-width: calc(100% - 270px);
}

.admin-main-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-user-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

.admin-user-table-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.admin-user-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    table-layout: auto;
}

    .admin-user-table th,
    .admin-user-table td {
        padding: 15px 14px;
        vertical-align: middle;
        white-space: nowrap;
    }

        /* Account column */
        .admin-user-table th:first-child,
        .admin-user-table td:first-child {
            min-width: 290px;
            width: 290px;
        }

        /* User ID */
        .admin-user-table th:nth-child(2),
        .admin-user-table td:nth-child(2) {
            min-width: 70px;
            width: 70px;
        }

        /* Phone */
        .admin-user-table th:nth-child(3),
        .admin-user-table td:nth-child(3) {
            min-width: 120px;
        }

        /* Email confirmation */
        .admin-user-table th:nth-child(4),
        .admin-user-table td:nth-child(4) {
            min-width: 100px;
        }

        /* 2FA */
        .admin-user-table th:nth-child(5),
        .admin-user-table td:nth-child(5) {
            min-width: 80px;
        }

        /* Status */
        .admin-user-table th:nth-child(6),
        .admin-user-table td:nth-child(6) {
            min-width: 100px;
        }

        /* Failed logins */
        .admin-user-table th:nth-child(7),
        .admin-user-table td:nth-child(7) {
            min-width: 90px;
        }

        /* Roles */
        .admin-user-table th:nth-child(8),
        .admin-user-table td:nth-child(8) {
            min-width: 150px;
        }

        /* Subscription */
        .admin-user-table th:nth-child(9),
        .admin-user-table td:nth-child(9) {
            min-width: 150px;
        }

        /* VIP */
        .admin-user-table th:nth-child(10),
        .admin-user-table td:nth-child(10) {
            min-width: 80px;
            text-align: center;
        }

        /* Action */
        .admin-user-table th:last-child,
        .admin-user-table td:last-child {
            min-width: 175px;
            width: 175px;
            padding-right: 20px;
        }

.admin-user-action-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 145px;
    min-width: 145px;
}

.admin-user-vip-form {
    width: 100%;
    margin: 0;
}

.admin-user-reset-password-button,
.admin-user-make-vip-button,
.admin-user-vip-active-button {
    width: 100%;
    min-width: 145px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    box-sizing: border-box;
    overflow: visible;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .admin-content-wrapper {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .admin-main-content {
        padding: 22px 18px;
    }
}

/* =========================================================
   USER DETAILS POPUP
   ========================================================= */

.admin-user-clickable-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .admin-user-clickable-row:focus {
        outline: 2px solid #5367d4;
        outline-offset: -2px;
    }


.admin-user-details-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

    .admin-user-details-modal.show {
        display: flex;
    }


.admin-user-details-modal-open {
    overflow: hidden;
}


.admin-user-details-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 23, 45, 0.65);
    backdrop-filter: blur(3px);
}


.admin-user-details-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e1e4ed;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(20, 29, 72, 0.34);
    overflow: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.admin-user-details-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 26px;
    background: linear-gradient( 135deg, #f8f9ff, #ffffff);
    border-bottom: 1px solid #e8eaf1;
}


.admin-user-details-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}


.admin-user-details-avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient( 135deg, #4962d1, #7554be);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(73, 98, 209, 0.24);
    font-size: 17px;
    font-weight: 800;
}


.admin-user-details-header h2 {
    margin: 0;
    color: #262b3e;
    font-size: 21px;
    font-weight: 750;
}


.admin-user-details-subtitle {
    max-width: 520px;
    margin-top: 3px;
    color: #858a9d;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.admin-user-details-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #7e8396;
    background-color: #f0f2f7;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    transition: color 0.15s ease, background-color 0.15s ease;
}

    .admin-user-details-close:hover {
        color: #34394d;
        background-color: #e5e8ef;
    }


/* =========================================================
   CONTENT
   ========================================================= */

.admin-user-details-content {
    flex: 1;
    padding: 26px;
    overflow-y: auto;
}


.admin-user-details-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eceef4;
}

    .admin-user-details-section:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }


    .admin-user-details-section h3 {
        margin: 0 0 17px;
        color: #303548;
        font-size: 15px;
        font-weight: 750;
    }


.admin-user-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 28px;
}


.admin-user-details-field {
    min-width: 0;
}


    .admin-user-details-field label,
    .admin-user-details-list-label {
        display: block;
        margin-bottom: 5px;
        color: #969bac;
        font-size: 9px;
        font-weight: 750;
        letter-spacing: 0.065em;
        text-transform: uppercase;
    }


    .admin-user-details-field > div {
        min-height: 22px;
        color: #454b60;
        font-size: 13px;
        font-weight: 550;
        overflow-wrap: anywhere;
    }


.admin-user-details-subsection {
    margin-top: 20px;
}


/* =========================================================
   STATUS
   ========================================================= */

.admin-user-details-status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}


    .admin-user-details-status.success {
        color: #17775f;
        background-color: #e3f5ef;
    }


    .admin-user-details-status.neutral {
        color: #676d80;
        background-color: #eef0f4;
    }


    .admin-user-details-status.danger {
        color: #ad3947;
        background-color: #fbe4e7;
    }


/* =========================================================
   ROLES
   ========================================================= */

.admin-user-details-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}


.admin-user-details-chip {
    display: inline-flex;
    padding: 6px 10px;
    color: #555eac;
    background-color: #edf0ff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}


.admin-user-details-empty {
    color: #999eaf;
    font-size: 12px;
    font-style: italic;
}


/* =========================================================
   RETAILERS
   ========================================================= */

.admin-user-details-retailer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}


.admin-user-details-retailer {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 13px 15px;
    background: linear-gradient( 135deg, #fafbff, #f6f7fc);
    border: 1px solid #e5e7f0;
    border-radius: 12px;
}


    .admin-user-details-retailer strong {
        color: #3c4256;
        font-size: 12px;
        font-weight: 700;
    }


    .admin-user-details-retailer span {
        margin-top: 3px;
        color: #9297a8;
        font-size: 10px;
    }


/* =========================================================
   LOADING
   ========================================================= */

.admin-user-details-loading {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #797f94;
    font-size: 13px;
}


.admin-user-details-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e3e6ef;
    border-top-color: #5367d4;
    border-radius: 50%;
    animation: admin-user-details-spin 0.75s linear infinite;
}


@keyframes admin-user-details-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   ERROR
   ========================================================= */

.admin-user-details-error {
    margin: 26px;
    padding: 16px 18px;
    color: #a23342;
    background-color: #fce8ea;
    border: 1px solid #f4cbd0;
    border-radius: 12px;
    font-size: 12px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.admin-user-details-footer {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 26px;
    background-color: #fafbfe;
    border-top: 1px solid #e8eaf1;
}


.admin-user-details-done {
    min-width: 95px;
    min-height: 40px;
    padding: 8px 16px;
    color: #ffffff;
    background: linear-gradient( 135deg, #3f63d8, #6b54c6);
    border: 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}


    .admin-user-details-done:hover {
        color: #ffffff;
        background: linear-gradient( 135deg, #3455c5, #5d45b5);
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .admin-user-details-modal {
        padding: 12px;
    }


    .admin-user-details-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 15px;
    }


    .admin-user-details-header {
        padding: 17px;
    }


    .admin-user-details-content {
        padding: 19px;
    }


    .admin-user-details-footer {
        padding: 13px 18px;
    }


    .admin-user-details-grid {
        grid-template-columns: 1fr;
    }


    .admin-user-details-retailer-list {
        grid-template-columns: 1fr;
    }


    .admin-user-details-subtitle {
        max-width: 220px;
    }
}

.admin-user-reset-email-form {
    margin: 0;
}


.admin-user-send-reset-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    color: #4e52a9;
    background-color: #eef0ff;
    border: 1px solid #d9ddf5;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}


    .admin-user-send-reset-button:hover {
        color: #41469b;
        background-color: #e3e7ff;
        border-color: #cdd3f2;
    }


    .admin-user-send-reset-button:disabled {
        color: #999eaf;
        background-color: #f2f3f6;
        border-color: #e3e5eb;
        cursor: not-allowed;
        opacity: 0.7;
    }