:root {
    --app-bg: #f5f7fb;
    --app-surface: #ffffff;
    --app-primary: #0d6efd;
    --app-primary-soft: #e9f2ff;
    --app-text: #1f2937;
    --app-muted: #6b7280;
    --app-border: #dbe3ef;
    --app-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
    font-family: "Poppins", sans-serif;
}

body {
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.14), transparent 26%),
        radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.09), transparent 22%),
        var(--app-bg);
    color: var(--app-text);
}

body.app-shell-enabled {
    --app-sidebar-width: 280px;
    --app-sidebar-collapsed-width: 92px;
    --app-topbar-height: 84px;
}

table{
  font-size: 12px;
}

.app-shell-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 1035;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--app-sidebar-width);
    padding: 1rem 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--app-border);
    box-shadow: 12px 0 35px rgba(15, 23, 42, 0.06);
    z-index: 1041;
    overflow: hidden;
    transition: width 0.24s ease, transform 0.24s ease, padding 0.24s ease;
}

.app-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0 0.4rem;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: var(--app-text);
    text-decoration: none;
}

.app-sidebar__brand-logo {
    height: 34px;
    width: auto;
    flex: 0 0 auto;
}

.app-sidebar__brand-text {
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.app-sidebar__close {
    flex: 0 0 auto;
    color: var(--app-muted);
    text-decoration: none;
}

.app-sidebar__close:hover,
.app-sidebar__close:focus {
    color: var(--app-text);
}

.app-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    height: calc(100% - 4rem);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.app-sidebar__section-label {
    padding: 0.85rem 0.95rem 0.35rem;
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.15rem;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    color: var(--app-muted);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.app-sidebar-group--nested {
    margin-left: calc(var(--app-sidebar-depth, 0) * 0.85rem);
}

.app-sidebar-group__row {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.app-sidebar-link--group {
    flex: 1 1 auto;
}

.app-sidebar-group__toggle {
    flex: 0 0 2.95rem;
    min-height: 3.15rem;
    border-radius: 18px;
    color: var(--app-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.app-sidebar-group__toggle:hover,
.app-sidebar-group__toggle:focus {
    background: rgba(13, 110, 253, 0.08);
    color: var(--app-primary);
}

.app-sidebar-group__toggle .bi {
    transition: transform 0.2s ease;
}

.app-sidebar-group.is-open .app-sidebar-group__toggle .bi {
    transform: rotate(180deg);
}

.app-sidebar-submenu {
    display: none;
    padding-left: 1rem;
    margin-left: 0.85rem;
    border-left: 1px dashed rgba(13, 110, 253, 0.22);
}

.app-sidebar-submenu.is-open {
    display: block;
}

.app-sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    color: var(--app-muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
}

.app-sidebar-sublink--group {
    flex: 1 1 auto;
}

.app-sidebar-sublink:hover,
.app-sidebar-sublink:focus {
    background: rgba(13, 110, 253, 0.06);
    color: var(--app-primary);
}

.app-sidebar-sublink.active {
    background: rgba(13, 110, 253, 0.12);
    color: var(--app-primary);
    font-weight: 600;
}

.app-sidebar-sublink--child {
    padding-left: 0.65rem;
}

.app-sidebar-sublink__icon {
    width: 1rem;
    text-align: center;
    flex: 0 0 1rem;
}

.app-sidebar-group__toggle--nested {
    flex: 0 0 2.65rem;
    min-height: 2.65rem;
    border-radius: 14px;
}

.app-sidebar-link:hover,
.app-sidebar-link:focus {
    background: rgba(13, 110, 253, 0.08);
    color: var(--app-primary);
    transform: translateX(2px);
}

.app-sidebar-link.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.16), rgba(77, 163, 255, 0.1));
    color: var(--app-primary);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.app-sidebar-link__icon {
    font-size: 1.1rem;
    width: 1.35rem;
    text-align: center;
    flex: 0 0 1.35rem;
}

.app-sidebar-link__label,
.app-sidebar__brand-text {
    transition: opacity 0.18s ease, visibility 0.18s ease, width 0.18s ease;
}

.app-topbar {
    position: fixed;
    top: 0;
    left: var(--app-sidebar-width);
    right: 0;
    height: var(--app-topbar-height);
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    z-index: 1038;
    transition: left 0.24s ease;
}

.app-topbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-topbar__title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--app-muted);
    font-weight: 600;
}

.app-topbar__title {
    font-size: 1rem;
    color: var(--app-text);
    white-space: nowrap;
}

.app-sidebar-toggle {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.app-shell-enabled main.container,
body.app-shell-enabled main.container-fluid {
    width: auto;
    max-width: none;
    margin-left: calc(var(--app-sidebar-width) + 1rem);
    margin-right: 1rem;
    padding-top: calc(var(--app-topbar-height) + 1.5rem) !important;
    transition: margin-left 0.24s ease, margin-right 0.24s ease;
}

body.app-shell-enabled.app-sidebar-collapsed .app-sidebar {
    width: var(--app-sidebar-collapsed-width);
    padding-inline: 0.65rem;
}

body.app-shell-enabled.app-sidebar-collapsed .app-topbar {
    left: var(--app-sidebar-collapsed-width);
}

body.app-shell-enabled.app-sidebar-collapsed main.container,
body.app-shell-enabled.app-sidebar-collapsed main.container-fluid {
    margin-left: calc(var(--app-sidebar-collapsed-width) + 1rem);
}

body.app-shell-enabled.app-sidebar-collapsed .app-sidebar__brand {
    justify-content: center;
}

body.app-shell-enabled.app-sidebar-collapsed .app-sidebar__brand-text,
body.app-shell-enabled.app-sidebar-collapsed .app-sidebar-link__label,
body.app-shell-enabled.app-sidebar-collapsed .app-sidebar__section-label {
    width: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

body.app-shell-enabled.app-sidebar-collapsed .app-sidebar__close {
    display: none !important;
}

body.app-shell-enabled.app-sidebar-collapsed .app-sidebar-link {
    justify-content: center;
    padding-inline: 0.65rem;
}

body.app-shell-enabled.app-sidebar-collapsed .app-sidebar-link:hover,
body.app-shell-enabled.app-sidebar-collapsed .app-sidebar-link:focus {
    transform: none;
}

body.app-shell-enabled.app-sidebar-collapsed .app-sidebar-group__toggle,
body.app-shell-enabled.app-sidebar-collapsed .app-sidebar-submenu {
    display: none !important;
}

.app-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.app-navbar-role {
    color: var(--app-muted);
    font-weight: 500;
}

.app-user-dropdown {
    margin-left: auto;
}

.app-topbar .app-user-dropdown {
    width: auto;
    margin-left: 0;
}

.app-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem 0.35rem 0.9rem;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--app-text);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.app-user-toggle:hover,
.app-user-toggle:focus,
.app-user-toggle:active,
.app-user-toggle.show {
    border-color: rgba(13, 110, 253, 0.25);
    background: #fff;
    color: var(--app-text);
}

.app-user-toggle::after {
    margin-left: 0.15rem;
}

.app-user-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.app-topbar .app-user-toggle {
    width: auto;
    max-width: min(100%, 320px);
}

.app-user-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(13, 110, 253, 0.15);
}

.app-user-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--app-primary), #4da3ff);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.app-user-menu {
    min-width: 280px;
    padding: 0.5rem;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    box-shadow: var(--app-shadow);
}

.app-user-menu-header {
    padding: 0.65rem 0.75rem;
}

.app-user-menu-id {
    margin-bottom: 0.15rem;
    color: var(--app-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.app-user-menu-email {
    color: var(--app-muted);
    font-size: 0.88rem;
    word-break: break-word;
}

.app-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.75rem;
    border-radius: 14px;
    font-weight: 500;
}

.app-user-menu .dropdown-item.active,
.app-user-menu .dropdown-item:active {
    background: var(--app-primary-soft);
    color: var(--app-primary);
}

.app-user-menu .dropdown-divider {
    margin: 0.35rem 0;
}

.app-user-logout {
    color: #b42318;
}

.app-user-logout:hover,
.app-user-logout:focus {
    background: rgba(180, 35, 24, 0.08);
    color: #b42318;
}

.btn.is-loading {
    cursor: wait;
}

.btn-loading-label {
    display: inline-flex;
    align-items: center;
}

.hero-panel,
.content-card,
.info-card,
.metric-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 24px;
    box-shadow: var(--app-shadow);
}

.hero-panel {
    padding: 2rem;
}

.content-card {
    padding: 1.5rem;
}

.content-card-danger {
    border-color: rgba(185, 28, 28, 0.18);
    box-shadow: 0 18px 40px rgba(127, 29, 29, 0.08);
}

.profile-danger-box {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.9), rgba(255, 255, 255, 0.95));
    border-color: rgba(239, 68, 68, 0.22) !important;
}

.info-card,
.metric-card {
    padding: 1.25rem;
    height: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.metric-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--app-muted);
    font-size: 0.85rem;
}

.metric-value {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.metric-help {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.home-hero-panel {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
}
.home-slot-card {
    position: relative;
    width: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1.2rem 1.35rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-slot-card:hover,
.home-slot-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    border-color: rgba(13, 110, 253, 0.22);
}

button.home-slot-card {
    border: 1px solid var(--app-border);
}

.home-slot-card--empty {
    border-style: dashed;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 25%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
}

.home-slot-card--assigned {
    padding: 0;
    overflow: hidden;
}

.home-slot-card__link {
    width: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
    padding: 1.2rem 1.35rem;
    text-decoration: none;
    color: inherit;
}

.home-slot-card__link:hover,
.home-slot-card__link:focus {
    color: inherit;
}

.home-slot-card__plus,
.home-slot-card__icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    font-size: 1.2rem;
    flex: 0 0 2.85rem;
}

.home-slot-card__plus {
    background: rgba(13, 110, 253, 0.08);
    color: var(--app-primary);
}

.home-slot-card__gear {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    border-radius: 999px;
}

.home-slot-card__name {
    margin: 0;
    font-size: 1.05rem;
}

.table > :not(caption) > * > * {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.code-editor {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    min-height: 10rem;
}

.mailer-modal-dialog {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mailer-modal-dialog .modal-content {
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.mailer-modal-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.mailer-modal-form .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 1rem;
}

.mailer-modal-form .modal-footer {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: var(--app-surface);
    border-top: 1px solid var(--app-border);
}

.role-permission-modal-dialog {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.role-permission-modal-dialog .modal-content {
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.role-permission-modal-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.role-permission-modal-form .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 1rem;
}

.role-permission-modal-form .modal-footer {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: var(--app-surface);
    border-top: 1px solid var(--app-border);
}

.role-permission-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.role-permission-toolbar__filter {
    flex: 1 1 16rem;
    min-width: 14rem;
}

.role-permission-toolbar__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.625rem;
    margin-bottom: 0.125rem;
}

.role-permission-toolbar__toggle .form-check-input {
    float: none;
    margin: 0;
}

.role-permission-toolbar__toggle .form-check-label {
    color: var(--app-text);
}

.mailer-test-template-summary {
    padding: 0.95rem 1rem;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: rgba(13, 110, 253, 0.06);
    color: #425466;
    line-height: 1.6;
}

.mailer-test-empty-state {
    padding: 1rem;
    border: 1px dashed var(--app-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--app-muted);
    text-align: center;
}

.mailer-test-variable-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.mailer-test-variable-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

#tbl_variables input[type="checkbox"] {
    transform: scale(1.1);
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: url("../../public/img/loader_2.gif") center center no-repeat rgba(245, 247, 251, 0.88);
}

.access-page {
    background:
        radial-gradient(circle at top, rgba(220, 53, 69, 0.12), transparent 26%),
        var(--app-bg);
}

.auth-page {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(244, 247, 251, 0.96), rgba(230, 238, 249, 0.95)),
        var(--app-bg);
}

.auth-page-recovery {
    background:
        linear-gradient(135deg, rgba(246, 249, 255, 0.97), rgba(232, 243, 240, 0.96)),
        var(--app-bg);
}

.auth-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.auth-orb {
    position: fixed;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.55;
    pointer-events: none;
}

.auth-orb-left {
    top: -6rem;
    left: -8rem;
    background: radial-gradient(circle, rgba(16, 37, 66, 0.26), rgba(16, 37, 66, 0));
}

.auth-orb-right {
    right: -10rem;
    bottom: -8rem;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.18), rgba(40, 167, 69, 0));
}

.auth-story {
    padding: 2rem 0.5rem 2rem 0;
}

.auth-title {
    margin: 1rem 0 1.25rem;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #102542;
}

.auth-copy {
    max-width: 34rem;
    margin-bottom: 1.75rem;
    color: #526277;
    font-size: 1.05rem;
    line-height: 1.8;
}

.auth-feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.auth-feature-card {
    display: grid;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(16, 37, 66, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.auth-feature-card i {
    font-size: 1.3rem;
    color: #102542;
}

.auth-feature-card span {
    color: #5f6e82;
    font-size: 0.92rem;
    line-height: 1.65;
}

.auth-panel {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(16, 37, 66, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    padding: 0.45rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(16, 37, 66, 0.12), rgba(13, 110, 253, 0.05));
}

.auth-kicker {
    color: var(--app-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-heading {
    color: #102542;
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 1.2rem;
}

.auth-form .form-label {
    color: #1f2937;
    font-weight: 600;
}

.auth-form .form-control {
    border-color: rgba(16, 37, 66, 0.12);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    box-shadow: none;
}

.auth-form .form-control:focus {
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.auth-form .input-group .btn {
    border-radius: 0 18px 18px 0;
    border-color: rgba(16, 37, 66, 0.12);
}

.auth-check {
    padding-left: 2rem;
}

.auth-submit {
    border-radius: 18px;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    background: linear-gradient(135deg, #102542, #0d6efd);
    border: 0;
    box-shadow: 0 18px 30px rgba(13, 110, 253, 0.24);
}

.auth-link,
.auth-back-link {
    color: #0f5cc0;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover,
.auth-back-link:hover {
    color: #102542;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border-width: 1px;
}

.auth-page-2fa {
    background:
        linear-gradient(135deg, rgba(244, 248, 255, 0.97), rgba(237, 244, 255, 0.95)),
        var(--app-bg);
}

.auth-2fa-summary,
.auth-2fa-resend-card {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(16, 37, 66, 0.08);
    border-radius: 20px;
    background: rgba(245, 248, 255, 0.92);
}

.auth-2fa-summary {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.auth-2fa-summary-stacked {
    grid-template-columns: 1fr;
}

.auth-2fa-label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--app-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-2fa-form {
    margin-bottom: 1rem;
}

.otp-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
}

.otp-input {
    flex: 0 0 3.5rem;
    width: 3.5rem;
    min-width: 3.5rem;
    max-width: 3.5rem;
    height: 4rem;
    padding: 0.35rem;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border-radius: 20px;
}

.auth-2fa-help {
    margin-top: 0.65rem;
}

.auth-2fa-resend-card p {
    color: #5f6e82;
    line-height: 1.65;
}

@media (max-width: 991.98px) {
    .auth-story {
        padding-right: 0;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    body.app-shell-enabled {
        --app-topbar-height: 74px;
    }

    .app-sidebar {
        width: min(88vw, 320px);
        transform: translateX(-100%);
    }

    .app-topbar {
        left: 0;
        padding-inline: 1rem;
    }

    body.app-shell-enabled main.container,
    body.app-shell-enabled main.container-fluid,
    body.app-shell-enabled.app-sidebar-collapsed main.container,
    body.app-shell-enabled.app-sidebar-collapsed main.container-fluid {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.app-shell-enabled.app-sidebar-mobile-open .app-shell-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.app-shell-enabled.app-sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
    }
}

@media (max-width: 767.98px) {

    .hero-panel,
    .content-card {
        padding: 1.25rem;
    }

    .app-user-dropdown {
        width: 100%;
        margin-left: 0;
    }

    .app-user-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .app-user-name {
        max-width: 110px;
    }

    .app-user-menu {
        min-width: 100%;
    }

    .auth-shell {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .auth-panel {
        padding: 1.35rem;
        border-radius: 24px;
    }

    .auth-title {
        font-size: 2.2rem;
    }

    .mailer-modal-dialog {
        margin: 0.5rem;
    }

    .mailer-modal-dialog .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .role-permission-modal-dialog {
        margin: 0.5rem;
    }

    .role-permission-modal-dialog .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .role-permission-toolbar__filter {
        min-width: 100%;
    }

    .role-permission-toolbar__toggle {
        width: 100%;
    }

    .auth-2fa-summary {
        grid-template-columns: 1fr;
    }

    .otp-group {
        gap: 0.5rem;
        justify-content: space-between;
    }

    .otp-input {
        flex-basis: 3.05rem;
        width: 3.05rem;
        min-width: 3.05rem;
        max-width: 3.05rem;
        height: 3.45rem;
        font-size: 1.35rem;
    }
}

@media (max-width: 479.98px) {
    .otp-group {
        gap: 0.35rem;
    }

    .otp-input {
        flex-basis: 2.6rem;
        width: 2.6rem;
        min-width: 2.6rem;
        max-width: 2.6rem;
        height: 3rem;
        padding: 0.2rem;
        font-size: 1.15rem;
    }
}
