:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --dark: #0f172a;
    --muted: #64748b;
    --light: #f8fafc;
    --admin-dark: #10204a;
    --admin-darker: #0b1534;
    --admin-accent: #7c3aed;
    --admin-surface: #eef5fb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, Helvetica, Arial, sans-serif;
    color: var(--dark);
    font-size: 15px;
}

.admin-popup-stack {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.admin-popup {
    width: min(372px, calc(100vw - 32px));
    min-height: 82px;
    border-radius: 18px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .14);
    transition: opacity .22s ease, transform .22s ease;
}

.admin-popup.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.admin-popup-copy strong {
    display: block;
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: 3px;
}

.admin-popup-copy p {
    margin: 0;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.3;
}

.admin-popup-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    line-height: 1;
    font-size: 1.3rem;
    font-weight: 500;
}

.admin-popup.popup-success {
    background: #ecfdf3;
    border-color: #b7e7c7;
}

.admin-popup.popup-success .admin-popup-copy strong,
.admin-popup.popup-success .admin-popup-copy p,
.admin-popup.popup-success .admin-popup-close {
    color: #15803d;
}

.admin-popup.popup-danger {
    background: #fff1f2;
    border-color: #fecdd3;
}

.admin-popup.popup-danger .admin-popup-copy strong,
.admin-popup.popup-danger .admin-popup-copy p,
.admin-popup.popup-danger .admin-popup-close {
    color: #be123c;
}

.admin-popup.popup-warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.admin-popup.popup-warning .admin-popup-copy strong,
.admin-popup.popup-warning .admin-popup-copy p,
.admin-popup.popup-warning .admin-popup-close {
    color: #c2410c;
}

.admin-popup.popup-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.admin-popup.popup-info .admin-popup-copy strong,
.admin-popup.popup-info .admin-popup-copy p,
.admin-popup.popup-info .admin-popup-close {
    color: #1d4ed8;
}

@media (max-width: 767.98px) {
    .admin-popup-stack {
        top: 82px;
        right: 14px;
    }

    .admin-popup {
        width: min(330px, calc(100vw - 20px));
        min-height: auto;
        padding: 13px 14px;
        border-radius: 16px;
        gap: 10px;
    }

    .admin-popup-copy strong {
        font-size: .84rem;
    }

    .admin-popup-copy p {
        font-size: .88rem;
    }

    .admin-popup-close {
        width: 32px;
        height: 32px;
    }
}

.hotspot-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 30%),
        linear-gradient(135deg, var(--primary), var(--secondary));
}

.hotspot-card,
.card-soft {
    border-radius: 24px;
    border: 0;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .18);
}

.logo-circle {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(37, 99, 235, .3);
}

.login-card {
    border-radius: 28px;
    overflow: hidden;
}

.login-brand-block {
    margin-bottom: 28px;
}

.login-logo-img {
    width: min(280px, 100%);
    height: auto;
    margin: 0 auto 12px;
    display: block;
}

.login-adaptive-field .form-control {
    border-radius: 16px;
    background: #fff;
}

.login-adaptive-field label {
    font-size: 1rem;
}

.login-submit {
    min-height: 44px;
    border-radius: 16px;
    font-weight: 700;
}

.hotspot-form-card .card-body {
    font-family: Inter, Helvetica, Arial, sans-serif;
}

.hotspot-adaptive-field .form-control,
.hotspot-adaptive-field .form-select {
    border-radius: 16px;
    background: #fff;
}

.hotspot-adaptive-field label {
    font-size: 1rem;
}

.form-control,
.form-select {
    height: 42px;
    min-height: 42px;
    border-radius: 12px;
    border-color: #e2e8f0;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 17px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}

.btn {
    border-radius: 12px;
    min-height: 38px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 0;
}

.admin-navbar {
    background: rgba(15, 23, 42, .96);
}

.stat-card {
    border-radius: 22px;
    border: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .065);
}

.stat-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 22px;
}

.table thead th {
    color: #64748b;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.small-muted {
    color: var(--muted);
    font-size: .82rem;
}

@media (max-width: 576px) {
    .hotspot-card {
        border-radius: 20px;
    }

    .container-fluid-mobile {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Admin layout */
.admin-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .07), transparent 260px),
        var(--admin-surface);
}

.admin-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 92px;
    background:
        radial-gradient(circle at 8% 0%, rgba(124, 58, 237, .14), transparent 30%),
        linear-gradient(135deg, #202326, #181b1f);
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px 0 36px;
    z-index: 1040;
}

.admin-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.admin-header-logo-img {
    width: 190px;
    max-width: 100%;
    max-height: 74px;
    object-fit: contain;
}

.admin-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(74, 144, 255, .78);
    border-radius: 20px;
    padding: 8px 12px;
    min-width: 280px;
    text-align: left;
}

.admin-header-user strong,
.admin-header-user span {
    display: block;
}

.admin-header-user strong {
    font-size: .84rem;
    line-height: 1.1;
}

.admin-header-user span {
    color: rgba(255,255,255,.76);
    font-size: .74rem;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #f1e9ff);
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border: 2px solid rgba(255,255,255,.18);
}

.admin-avatar-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 2px solid rgba(255,255,255,.18);
}

.admin-user-caret {
    color: rgba(255,255,255,.72);
    font-size: 1rem;
    margin-left: auto;
}

.admin-user-dropdown {
    width: 280px;
    margin-top: 10px !important;
    padding: 10px;
    border-radius: 18px;
    background: #202326;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 22px 45px rgba(15, 23, 42, .28);
}

.admin-user-dropdown .dropdown-item {
    color: rgba(255,255,255,.9);
    border-radius: 13px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    font-weight: 750;
}

.admin-user-dropdown .dropdown-item:hover,
.admin-user-dropdown .dropdown-item:focus {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.admin-user-dropdown .dropdown-divider {
    border-color: rgba(255,255,255,.14);
    margin: 10px 8px;
}

.admin-user-dropdown form {
    margin: 0;
}

.admin-logout-item {
    width: 100%;
}

.dropdown-icon {
    width: 24px;
    display: inline-flex;
    justify-content: center;
}

.admin-sidebar {
    position: fixed;
    inset: 92px auto 0 0;
    width: 250px;
    min-height: calc(100vh - 92px);
    background:
        linear-gradient(180deg, #202326 0%, #16191d 100%);
    color: #e5e7eb;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    z-index: 1030;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.sidebar-link,
.sidebar-sublink {
    color: #cbd5e1;
    text-decoration: none;
    border: 0;
    width: 100%;
    text-align: left;
    border-radius: 16px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    transition: .2s ease;
    font-weight: 800;
    font-size: .96rem;
}

.sidebar-link:hover,
.sidebar-sublink:hover,
.sidebar-link.active,
.sidebar-sublink.active {
    color: #fff;
    background: rgba(255,255,255,.09);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.sidebar-icon {
    width: 22px;
    text-align: center;
    opacity: .88;
    font-size: 1.04rem;
}

.sidebar-toggle {
    cursor: pointer;
}

.sidebar-caret {
    margin-left: auto;
}

.sidebar-submenu {
    padding-left: 22px;
    margin-top: -4px;
}

.sidebar-sublink {
    padding: 9px 14px;
    font-size: .88rem;
    font-weight: 800;
}

.sidebar-footer {
    padding-top: 12px;
    display: grid;
    gap: 14px;
}

.sidebar-version {
    display: block;
    border-radius: 15px;
    padding: 12px 14px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
    transition: .2s ease;
}

.sidebar-version:hover {
    background: rgba(255,255,255,.13);
    transform: translateY(-1px);
}

.sidebar-version span {
    display: block;
    color: rgba(255,255,255,.66);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-version div {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
}

.sidebar-version strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}

.sidebar-version small {
    color: rgba(255,255,255,.7);
    font-size: .72rem;
    font-weight: 800;
}

.admin-main {
    margin-left: 250px;
    padding-top: 92px;
    min-height: 100vh;
}

.admin-content {
    padding: 24px 28px 46px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
    border: 1px solid #dbe5ee;
    border-radius: 24px;
    padding: 30px 28px;
    box-shadow: 0 14px 34px rgba(31, 41, 55, .055);
}

.metric-item {
    padding: 0 24px;
    border-right: 1px solid #e5eaf0;
}

.metric-item:first-child {
    padding-left: 0;
}

.metric-item:last-child {
    border-right: 0;
    padding-right: 0;
}

.metric-item span,
.metric-item small {
    display: block;
    color: #8b95ad;
    font-weight: 700;
}

.metric-item span {
    color: #3f4963;
    font-size: .96rem;
    margin-bottom: 10px;
}

.metric-item div {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.metric-item strong {
    color: var(--admin-dark);
    font-size: 2rem;
    line-height: 1;
}

.metric-item em {
    border-radius: 999px;
    background: #edf1f7;
    color: #43506a;
    padding: 8px 15px;
    font-style: normal;
    font-weight: 900;
}

.metric-item em.success {
    background: #e7f8ee;
    color: #23845a;
}

.metric-item em.blue {
    background: #e8f0ff;
    color: var(--primary);
}

.metric-item em.rose {
    background: #f1e9ff;
    color: var(--secondary);
}

.dashboard-panel {
    min-height: 280px;
}

.module-list {
    display: grid;
    gap: 12px;
}

.module-list a {
    display: block;
    color: #1f2937;
    background: #f3f6fb;
    border-radius: 16px;
    padding: 13px 16px;
    text-decoration: none;
    font-weight: 750;
}

.module-list a:hover {
    color: var(--primary);
    background: linear-gradient(135deg, #edf4ff, #f3edff);
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    position: relative;
    padding-left: 28px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .12);
}

.timeline-trigger {
    width: 100%;
    border: 0;
    background: #f3f6fb;
    border-radius: 16px;
    padding: 14px 16px;
    text-align: left;
    display: grid;
    gap: 3px;
}

.timeline-trigger span {
    color: var(--primary);
    font-size: .8rem;
    font-weight: 900;
}

.timeline-trigger strong {
    color: var(--dark);
}

.timeline-trigger small {
    color: var(--muted);
}

.timeline-body {
    padding: 14px 16px 4px;
    color: var(--muted);
}

.timeline-body ul {
    margin: 0;
    padding-left: 18px;
}

.timeline-body li + li {
    margin-top: 6px;
}

.admin-modal {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .24);
}

.admin-modal .modal-header,
.admin-modal .modal-footer {
    border-color: #edf2f7;
    padding: 18px 22px;
}

.admin-modal .modal-body {
    padding: 20px 22px;
}

.admin-modal .modal-title {
    font-weight: 800;
}

.adaptive-field {
    position: relative;
}

.adaptive-field .form-control,
.adaptive-field .form-select {
    width: 100%;
    height: 42px;
    min-height: 42px;
    border: 1px solid #d7e2ee;
    border-radius: 16px;
    padding: 9px 14px;
    background: #fff;
    outline: none;
    box-shadow: none;
}

.adaptive-field textarea.form-control {
    min-height: 132px;
    height: auto;
    padding-top: 16px;
    resize: vertical;
}

.adaptive-field label {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 5px;
    color: #123b78;
    background: #fff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    transition: .2s ease;
}

.adaptive-field .form-control:focus,
.adaptive-field .form-select:focus {
    border-color: #00bafa;
    box-shadow: 0 0 0 .18rem rgba(0, 186, 250, .12);
}

.adaptive-field .form-control:focus + label,
.adaptive-field .form-control:not(:placeholder-shown) + label,
.adaptive-field .form-select:focus + label,
.adaptive-field.has-value label,
.adaptive-field.adaptive-file label,
.adaptive-field.adaptive-textarea label {
    top: 0;
    transform: translateY(-50%) scale(.9);
    color: #00a6dd;
}

.adaptive-file .form-control {
    padding-top: 6px;
}

.adaptive-preview label {
    z-index: 2;
}

.user-edit-modal {
    border-radius: 26px;
}

.user-account-dialog {
    max-width: 860px;
}

.user-account-modal .modal-header {
    padding: 24px 28px 16px;
}

.user-account-modal .modal-title {
    font-size: 1.75rem;
}

.user-account-modal .modal-body {
    padding: 14px 28px 18px;
}

.user-account-modal .modal-footer {
    padding: 14px 28px 24px;
}

.user-account-modal .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.user-edit-modal .modal-header {
    align-items: flex-start;
    padding: 28px 34px 18px;
}

.user-edit-modal .modal-title {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 900;
}

.user-edit-modal .modal-body {
    padding: 18px 34px 22px;
}

.user-edit-modal .modal-footer {
    padding: 18px 34px 30px;
}

.user-edit-modal .form-label {
    color: #123b78;
    font-weight: 900;
    margin-left: 10px;
    margin-bottom: 6px;
}

.user-edit-modal .form-control,
.user-edit-modal .form-select {
    border-radius: 18px;
    height: 42px;
    min-height: 42px;
    border-color: #d7e2ee;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 17px;
}

.user-edit-modal textarea.form-control {
    min-height: 132px;
    height: auto;
}

.admin-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.admin-check .form-check-input {
    margin-top: 0;
    width: 18px;
    height: 18px;
    border-color: #bfd1e2;
}

.admin-check .form-check-input:checked {
    background-color: #1f3f85;
    border-color: #1f3f85;
}

.admin-check .form-check-label {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
}

.cgnat-multi-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cgnat-select-label {
    color: #123b78;
    font-size: .95rem;
    font-weight: 700;
    margin-left: 10px;
}

.cgnat-select-multiple {
    min-height: 166px;
    height: 166px;
    padding: 10px 12px;
    border: 1px solid #d7e2ee;
    border-radius: 18px;
    background: #fff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.cgnat-select-multiple:focus {
    border-color: #00bafa;
    box-shadow: 0 0 0 .18rem rgba(0, 186, 250, .12);
}

.modal-close-soft {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f2f5f9;
    opacity: 1;
}

.photo-preview-box {
    border: 1px solid #d7e2ee;
    background: #f7fbff;
    border-radius: 20px;
    padding: 14px 16px;
    margin-top: 10px;
    min-height: 96px;
}

.photo-preview-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.photo-preview-avatar.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    font-size: 2rem;
    font-weight: 900;
}

.photo-preview-box strong {
    display: block;
    color: #1f2937;
    font-size: .96rem;
    line-height: 1.2;
}

.photo-preview-box p {
    color: #64748b;
    font-size: .86rem;
    line-height: 1.4;
    margin: 4px 0 0;
}

.module-placeholder {
    min-height: 88px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    color: var(--muted);
    background: #f8fafc;
}

.admin-status-select {
    min-height: 34px;
    min-width: 128px;
    border-radius: 10px;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.page-heading h1 {
    color: #1f2937;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.page-heading p {
    color: #718097;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.admin-add-button {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 750;
    font-size: 1rem;
    background: #1f3f85;
    box-shadow: 0 12px 24px rgba(31, 63, 133, .18);
}

.admin-add-button i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.16);
}

.users-card {
    padding: 32px;
}

.users-table {
    border: 1px solid #dbe5f0;
    border-radius: 22px;
    padding: 14px;
    background: #f8fbff;
}

.users-table-head,
.users-row {
    display: grid;
    grid-template-columns: 1.7fr 1.05fr .75fr .75fr 1.15fr .7fr;
    align-items: center;
    gap: 18px;
}

.users-table-head {
    color: #6d7789;
    font-size: .98rem;
    font-weight: 750;
    padding: 10px 22px 18px;
}

.users-row {
    background: #fff;
    border-radius: 22px;
    padding: 16px 22px;
    box-shadow: 0 1px 0 #dde6f1;
}

.users-row + .users-row {
    margin-top: 8px;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    font-weight: 700;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.18);
}

.user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.user-cell strong,
.contact-cell strong {
    display: block;
    color: #1f2937;
    font-size: .98rem;
    font-weight: 750;
    line-height: 1.15;
}

.user-cell span,
.contact-cell span {
    display: block;
    color: #718097;
    font-weight: 500;
    margin-top: 3px;
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 16px;
    font-size: .9rem;
    font-weight: 750;
}

.soft-badge.blue {
    background: #dfe9ff;
    color: #1d3f83;
}

.soft-badge.green {
    background: #ddf5e4;
    color: #2d8c4f;
}

.soft-badge.gray {
    background: #edf1f7;
    color: #64748b;
}

.login-cell {
    color: #1f2937;
    font-size: .96rem;
    font-weight: 600;
}

.user-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.icon-action {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid #dbe5f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7fbff;
    color: #1f3f85;
    text-decoration: none;
}

.icon-action.whatsapp {
    color: #2cae5b;
    background: #f0fff4;
    border-color: #bbf0ca;
}

.icon-action.edit {
    color: #1f3f85;
}

.icon-action.config {
    color: #0f766e;
    background: #ecfeff;
    border-color: #b8ecf1;
}

.icon-action.delete {
    color: #b42318;
    background: #fff6f5;
    border-color: #f2c5c0;
}

.nas-table-head,
.nas-row {
    grid-template-columns: 1.5fr 1.05fr .75fr .95fr .7fr;
}

.nas-avatar {
    background: linear-gradient(135deg, #1f3f85, #315dd8);
}

.nas-secret {
    color: #1f2937;
    font-size: .95rem;
    font-weight: 600;
}

.cgnat-table-head,
.cgnat-row {
    grid-template-columns: 1.4fr 1fr .9fr .95fr .6fr;
}

.cgnat-avatar {
    background: linear-gradient(135deg, #243b53, #315dd8);
}

.cgnat-inline-value {
    display: block;
    color: #1f2937;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
}

.cgnat-inline-sub {
    display: block;
    color: #7b8794;
    font-size: .9rem;
    line-height: 1.35;
}

.cgnat-guidance-note {
    border: 1px solid #d7e2ee;
    background: #f8fbff;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.cgnat-guidance-note strong {
    color: #1f2937;
    font-size: .98rem;
    font-weight: 800;
}

.cgnat-guidance-note span {
    color: #475467;
    font-size: .94rem;
    font-weight: 600;
}

.cgnat-guidance-note em {
    font-size: .92rem;
    font-style: normal;
    font-weight: 700;
    margin-left: auto;
}

.cgnat-guidance-note p {
    margin: 0;
    width: 100%;
    font-size: .9rem;
    line-height: 1.4;
}

.cgnat-guidance-note.is-excellent {
    border-color: #b7e7c7;
    background: #ecfdf3;
}

.cgnat-guidance-note.is-excellent strong,
.cgnat-guidance-note.is-excellent span,
.cgnat-guidance-note.is-excellent em,
.cgnat-guidance-note.is-excellent p {
    color: #15803d;
}

.cgnat-guidance-note.is-good {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.cgnat-guidance-note.is-good strong,
.cgnat-guidance-note.is-good span,
.cgnat-guidance-note.is-good em,
.cgnat-guidance-note.is-good p {
    color: #1d4ed8;
}

.cgnat-guidance-note.is-fair {
    border-color: #fde68a;
    background: #fffbeb;
}

.cgnat-guidance-note.is-fair strong,
.cgnat-guidance-note.is-fair span,
.cgnat-guidance-note.is-fair em,
.cgnat-guidance-note.is-fair p {
    color: #b45309;
}

.cgnat-guidance-note.is-risky {
    border-color: #fdba74;
    background: #fff7ed;
}

.cgnat-guidance-note.is-risky strong,
.cgnat-guidance-note.is-risky span,
.cgnat-guidance-note.is-risky em,
.cgnat-guidance-note.is-risky p {
    color: #c2410c;
}

.cgnat-guidance-note.is-critical {
    border-color: #fecdd3;
    background: #fff1f2;
}

.cgnat-guidance-note.is-critical strong,
.cgnat-guidance-note.is-critical span,
.cgnat-guidance-note.is-critical em,
.cgnat-guidance-note.is-critical p {
    color: #be123c;
}

.cgnat-guidance-note em {
    font-size: .92rem;
    font-style: normal;
    font-weight: 700;
}

.users-empty {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .admin-header {
        height: 72px;
        padding: 0 18px;
    }

    .admin-header-logo-img {
        width: 142px;
        max-height: 40px;
    }

    .admin-header-user {
        display: flex;
        min-width: 0;
        padding: 8px 10px;
        border-radius: 20px;
    }

    .admin-header-user > div:not(.admin-avatar) {
        display: none;
    }

    .admin-avatar {
        width: 40px;
        height: 40px;
    }

    .admin-user-dropdown {
        width: min(320px, calc(100vw - 28px));
        margin-top: 12px !important;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
        padding-top: 72px;
    }

    .admin-content {
        padding: 18px;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .page-heading h1 {
        font-size: 2rem;
    }

    .users-card {
        padding: 18px;
    }

    .users-table {
        overflow-x: auto;
    }

    .users-table-head,
    .users-row {
        min-width: 980px;
    }

    .metric-item {
        border-right: 0;
        border-bottom: 1px solid #e5eaf0;
        padding: 0 0 20px;
        margin-bottom: 20px;
    }

    .metric-item:last-child {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}
