.sm2-profile-page {
    background: #f3f6f8;
}

.sm2-profile-surface {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7e0e8;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(24, 50, 74, 0.08);
}

.sm2-profile-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #e2e8ed;
}

.sm2-profile-header h2 {
    margin: 0 0 0.25rem;
    color: #111820;
    font-size: clamp(1.65rem, 2vw, 2rem);
    font-weight: 800;
}

.sm2-profile-header p {
    margin: 0;
    color: #52677b;
}

.sm2-profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.75rem;
    background: #f8fafb;
    border-bottom: 1px solid #e2e8ed;
}

.sm2-profile-actions-label {
    color: #52677b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm2-profile-actions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.sm2-profile-page .sm2-profile-action-btn {
    padding: 0.5rem 0.85rem;
    color: #123d2b;
    font-size: 0.88rem;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #6fa98a;
    border-radius: 0.5rem;
}

.sm2-profile-page .sm2-profile-action-btn:hover,
.sm2-profile-page .sm2-profile-action-btn:focus {
    color: #ffffff;
    background: #198754;
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.14);
}

.sm2-profile-mail {
    padding: 1.75rem;
}

.sm2-profile-mail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8ed;
}

.sm2-profile-mail-header h3 {
    margin: 0 0 0.25rem;
    color: #111820;
    font-size: 1.25rem;
    font-weight: 800;
}

.sm2-profile-mail-header p {
    margin: 0;
    color: #52677b;
}

.sm2-profile-mail-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f3f6f8;
    border-radius: 0.65rem;
}

.sm2-profile-mail-context div {
    display: grid;
    gap: 0.2rem;
}

.sm2-profile-mail-context span {
    color: #617487;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.sm2-profile-mail-context span + span,
.sm2-profile-mail-context div > span:last-child {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.sm2-profile-mail-context div > [id] {
    color: #17222d;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
}

.sm2-profile-mail-notice {
    margin-bottom: 1.25rem;
}

.sm2-profile-mail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8ed;
}

.sm2-profile-layout {
    min-height: 32rem;
}

.sm2-profile-page .sm2-profile-sidebar {
    height: 100%;
    padding: 1.5rem 1rem;
    background: #f8fafb;
    border: 0;
    border-right: 1px solid #e2e8ed;
    border-radius: 0;
    box-shadow: none;
}

.sm2-profile-sidebar-title {
    margin: 0 0 1rem;
    padding: 0 0.5rem;
    color: #23384b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.sm2-profile-page .sm2-profile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sm2-profile-page .sm2-profile-menu .nav-item {
    width: 100%;
}

.sm2-profile-page .sm2-profile-menu .nav-link {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    color: #25384a;
    text-align: left;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0.45rem;
    box-shadow: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sm2-profile-page .sm2-profile-menu .nav-link:hover {
    color: #162b3d;
    background: #edf2f5;
    border-color: #93a4b3;
    transform: none;
}

.sm2-profile-page .sm2-profile-menu.nav-pills .nav-link.active,
.sm2-profile-page .sm2-profile-menu.nav-pills .show > .nav-link.active {
    color: #123d2b !important;
    background: #e9f5ee;
    border-left-color: transparent !important;
    box-shadow: none;
}

.sm2-profile-page .sm2-profile-menu .nav-link:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.2);
    outline-offset: 2px;
}

.sm2-profile-content {
    padding: 1.75rem;
}

.sm2-profile-page .sm2-profile-panel {
    color: #17222d;
}

.sm2-profile-section-title {
    margin: 0 0 1.25rem;
    color: #111820;
    font-size: 1.15rem;
    font-weight: 800;
}

.sm2-profile-summary-group + .sm2-profile-summary-group {
    margin-top: 1.75rem;
}

.sm2-profile-summary-group h6 {
    margin: 0;
    padding-bottom: 0.7rem;
    color: #23384b;
    font-size: 0.9rem;
    font-weight: 800;
    border-bottom: 2px solid #dce4ea;
}

.sm2-profile-page .sm2-profile-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.sm2-profile-page .sm2-profile-summary-item {
    min-width: 0;
    padding: 0.85rem 0.25rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    border-radius: 0;
    box-shadow: none;
}

.sm2-profile-page .sm2-profile-summary-item:nth-child(odd) {
    padding-right: 1.25rem;
}

.sm2-profile-page .sm2-profile-summary-item:nth-child(even) {
    padding-left: 1.25rem;
    border-left: 1px solid #edf0f2;
}

.sm2-profile-summary-item dt {
    margin-bottom: 0.2rem;
    color: #617487;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.sm2-profile-summary-item dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #17222d;
    font-size: 0.96rem;
    font-weight: 600;
}

.sm2-profile-form-section {
    padding: 1.25rem;
    background: #f8fafb;
    border: 1px solid #e0e7ec;
    border-radius: 0.75rem;
}

.sm2-profile-form-section + .sm2-profile-form-section {
    margin-top: 1rem;
}

.sm2-profile-page .sm2-profile-form-title {
    margin-bottom: 1rem;
    color: #23384b;
    font-weight: 800;
}

.sm2-profile-page .form-control,
.sm2-profile-page .form-select {
    min-height: 2.75rem;
    border-color: #cfd9e1;
    border-radius: 0.55rem;
}

.sm2-profile-page .form-control:focus,
.sm2-profile-page .form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.14);
}

.sm2-profile-page .sm2-profile-locked-field,
.sm2-profile-page .sm2-profile-locked-field:disabled,
.sm2-profile-page .sm2-profile-locked-field[readonly] {
    color: #445467;
    background-color: #f3f6f8;
    border-color: #d5dee7;
    cursor: not-allowed;
    opacity: 1;
}

.sm2-profile-page .sm2-profile-form-actions {
    margin-top: 1.25rem;
}

.sm2-profile-page .sm2-btn-primary {
    color: #ffffff;
    background: #198754;
    border-color: #198754;
    box-shadow: none;
}

.sm2-profile-page .sm2-btn-primary:hover,
.sm2-profile-page .sm2-btn-primary:focus {
    color: #ffffff;
    background: #146c43;
    border-color: #146c43;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.16);
}

.sm2-profile-page .sm2-btn-secondary {
    color: #17222d;
    background: #ffffff;
    border-color: #8fa0af;
}

.sm2-profile-page .sm2-btn-secondary:hover,
.sm2-profile-page .sm2-btn-secondary:focus {
    color: #17222d;
    background: #edf2f5;
    border-color: #617487;
}

.sm2-profile-page .sm2-admin-grid-wrap {
    border: 1px solid #dce4ea;
    border-radius: 0.65rem;
    box-shadow: none;
}

.sm2-profile-page .sm2-profile-table {
    margin-bottom: 0;
}

.sm2-profile-page .modal-content {
    border: 0;
    border-radius: 0.85rem;
    box-shadow: 0 18px 46px rgba(24, 50, 74, 0.22);
}

@media (max-width: 991.98px) {
    .sm2-profile-layout {
        min-height: auto;
    }

    .sm2-profile-page .sm2-profile-sidebar {
        padding: 1rem;
        border-right: 0;
        border-bottom: 1px solid #e2e8ed;
    }

    .sm2-profile-sidebar-title {
        margin-bottom: 0.75rem;
    }

    .sm2-profile-page .sm2-profile-menu {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .sm2-profile-page .sm2-profile-menu .nav-item {
        flex: 0 0 auto;
        width: auto;
    }

    .sm2-profile-page .sm2-profile-menu .nav-link {
        width: auto;
        white-space: nowrap;
        border-left: 0;
        border-bottom: 3px solid transparent;
    }

    .sm2-profile-content {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .sm2-profile-page > .container {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .sm2-profile-surface {
        border-radius: 0.75rem;
    }

    .sm2-profile-header,
    .sm2-profile-content {
        padding: 1.1rem;
    }

    .sm2-profile-actions,
    .sm2-profile-mail-header,
    .sm2-profile-mail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sm2-profile-actions,
    .sm2-profile-mail {
        padding: 1.1rem;
    }

    .sm2-profile-actions-list,
    .sm2-profile-mail-actions {
        justify-content: stretch;
    }

    .sm2-profile-actions-list .btn,
    .sm2-profile-mail-header .btn,
    .sm2-profile-mail-actions .btn {
        width: 100%;
    }

    .sm2-profile-mail-context {
        grid-template-columns: 1fr;
    }

    .sm2-profile-page .sm2-profile-sidebar {
        padding: 0.9rem 0.75rem;
    }

    .sm2-profile-page .sm2-profile-summary-list {
        grid-template-columns: 1fr;
    }

    .sm2-profile-page .sm2-profile-summary-item:nth-child(odd),
    .sm2-profile-page .sm2-profile-summary-item:nth-child(even) {
        padding-right: 0.15rem;
        padding-left: 0.15rem;
        border-left: 0;
    }

    .sm2-profile-form-section {
        padding: 1rem;
    }

    .sm2-profile-page .sm2-profile-form-actions .btn,
    .sm2-profile-page .sm2-profile-panel > .d-flex .btn {
        width: 100%;
    }
}
