:root {
    --color-primario: #2563eb;
    --color-secundario: #475569;
    --color-success: #16a34a;
    --color-danger: #dc2626;
    --color-warning: #d97706;
    --color-info: #0891b2;
    --color-menu: #0f172a;
    --color-bg: #f6f8fb;
    --color-panel: #ffffff;
    --color-text: #172033;
    --color-muted: #697586;
    --font-admin: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sidebar-width: 250px;
    --topbar-height: 66px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-admin);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.bg-primary,
.btn-primary {
    background-color: var(--color-primario) !important;
    border-color: var(--color-primario) !important;
}

.btn-primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.btn-secondary {
    background-color: var(--color-secundario) !important;
    border-color: var(--color-secundario) !important;
}

.btn-outline-primary {
    color: var(--color-primario);
    border-color: var(--color-primario);
}

.btn-outline-primary:hover {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

.text-primary {
    color: var(--color-primario) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.text-info {
    color: var(--color-info) !important;
}

.bg-primary-subtle {
    background-color: #dbeafe !important;
}

.bg-success-subtle {
    background-color: #dcfce7 !important;
}

.bg-warning-subtle {
    background-color: #fef3c7 !important;
}

.bg-info-subtle {
    background-color: #cffafe !important;
}

.btn-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.admin-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 900;
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(12px);
}

.vertical-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: var(--sidebar-width);
    background: var(--color-menu);
    color: #dbe4f0;
    transition: transform 0.25s ease;
}

.vertical-menu-fondo {
    position: fixed;
    inset: 0;
    z-index: 990;
    display: none;
    background: rgba(15, 23, 42, 0.5);
}

.header-menu {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand,
.admin-brand-mini,
.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.admin-brand span:last-child,
.login-brand div {
    display: grid;
    line-height: 1.05;
}

.admin-brand small,
.login-brand small {
    color: #94a3b8;
    font-size: 12px;
}

.admin-brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 24px;
    background: var(--color-primario);
    color: #fff;
    font-weight: 800;
}

.admin-brand-mini .admin-brand-mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.side-menu {
    padding: 14px;
    margin: 0;
}

.side-menu a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.side-menu a:hover,
.side-menu > li > a.active {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
}

.side-menu i {
    font-size: 18px;
}

.sub-menu {
    display: none;
    padding: 4px 0 8px 34px;
    margin: 0;
    list-style: none;
}

.sub-menu a {
    min-height: 36px;
    color: #94a3b8;
    font-size: 13px;
}

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
}

.page-content {
    padding: 24px;
}

.breadcrumb-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 13px;
}

.breadcrumb-line a {
    color: var(--color-primario);
}

.page-title {
    margin: 5px 0 0;
    font-size: 26px;
    font-weight: 750;
}

.metric-card,
.content-panel {
    background: var(--color-panel);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.metric-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.metric-card small {
    color: var(--color-muted);
    font-size: 13px;
}

.metric-card strong {
    font-size: 28px;
}

.metric-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    font-size: 20px;
}

.content-panel {
    padding: 18px;
}

.panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.panel-header h2 {
    margin: 0;
    font-size: 17px;
}

.panel-title-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.panel-title-icon span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    font-size: 14px;
}

.panel-title-media {
    display: flex;
    align-items: center;
    gap: 16px;
}

.panel-title-media-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
    font-size: 22px;
}

.panel-title-media h2 {
    margin: 0;
    color: #20263a;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.16;
}

.panel-title-media p {
    margin: 4px 0 0;
    color: #7c8599;
    font-size: 14px;
}

.panel-header p {
    margin: 2px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.quick-actions {
    display: grid;
    gap: 10px;
}

.quick-actions .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-actions .btn {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
}

.admin-table-code {
    display: inline-flex;
    max-width: 180px;
    padding: 5px 9px;
    color: #20263a;
    background: rgba(232, 245, 255, 0.9);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-admin-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #20263a;
    font-weight: 650;
}

.menu-admin-title i {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.09);
    border-radius: 10px;
    font-size: 13px;
}

.role-menu-permissions {
    display: grid;
    gap: 12px;
    max-height: 360px;
    padding: 4px 6px 4px 0;
    overflow: auto;
    overscroll-behavior: contain;
    scroll-padding: 12px;
}

.role-menu-select-all {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 12px 14px;
    background: rgba(232, 245, 255, 0.86);
    border-radius: 16px;
    cursor: pointer;
}

.role-menu-select-all input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-menu-select-all input:checked + .role-menu-check {
    color: #fff;
    background: var(--color-primario);
}

.role-menu-group {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: rgba(248, 250, 252, 0.82);
    border-radius: 16px;
}

.role-menu-children {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-left: 18px;
}

.role-menu-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    background: #fff;
    border-radius: 14px;
    cursor: pointer;
}

.role-menu-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-menu-check {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    color: transparent;
    background: rgba(148, 163, 184, 0.16);
    border-radius: 50%;
    font-size: 11px;
    transition: background 0.18s ease, color 0.18s ease;
}

.role-menu-option input:checked + .role-menu-check {
    color: #fff;
    background: var(--color-primario);
}

.role-menu-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.role-menu-copy strong {
    color: #20263a;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.1;
}

.role-menu-copy small {
    color: #7a8596;
    font-size: 12px;
    line-height: 1.1;
}

.role-menu-option.is-parent .role-menu-copy strong {
    font-size: 14px;
}

.modal-role-form .modal-dialog {
    align-items: center;
    height: calc(100vh - 44px);
    margin-top: 22px;
    margin-bottom: 22px;
}

.modal-role-form .modal-content {
    max-height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

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

.modal-role-form #formRol {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.modal-role-form #formRol > .row {
    min-height: 0;
}

.modal-role-form .role-menu-permissions {
    max-height: clamp(190px, 30vh, 310px);
}

.modal-role-form .admin-modal-actions {
    flex: 0 0 auto;
}

.user-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.user-role-option {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 12px;
    background: rgba(232, 245, 255, 0.72);
    border-radius: 16px;
    cursor: pointer;
}

.user-role-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.user-role-check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: var(--color-primario);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-size: 15px;
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.user-role-option input:checked + .user-role-check {
    opacity: 1;
    transform: scale(1);
}

.user-role-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--color-primario);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: color 0.18s ease, background 0.18s ease;
}

.user-role-option input:checked ~ .user-role-icon {
    color: #fff;
    background: var(--color-primario);
}

.user-role-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.user-role-copy strong {
    color: #20263a;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.1;
}

.user-role-copy small {
    color: #6d7688;
    font-size: 12px;
    line-height: 1.2;
}

.theme-form {
    max-width: none;
}

.theme-colors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.theme-color-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 12px;
    min-height: 72px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.theme-color-field span {
    grid-column: 1 / -1;
    color: var(--color-text);
    font-weight: 650;
}

.theme-color-field input[type="color"] {
    width: 42px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 0;
}

.theme-color-hex {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    color: var(--color-muted);
    background: #fff;
    border: 1px solid #d7ddea;
    border-radius: 10px;
    font-family: var(--font-admin);
    font-size: 13px;
    font-weight: 650;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-color-hex:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.theme-color-hex.is-invalid {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.theme-color-field code {
    color: var(--color-muted);
    font-size: 13px;
    justify-self: end;
}

.datos-empresa-form {
    display: grid;
    gap: 18px;
}

.datos-empresa-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.datos-empresa-stack {
    display: grid;
    gap: 18px;
    align-content: start;
}

.datos-empresa-card {
    display: flex;
    flex-direction: column;
}

.datos-empresa-fields {
    display: grid;
    gap: 14px;
}

.empresa-logo-grid {
    display: grid;
    gap: 14px;
}

.empresa-logo-upload {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 18px;
}

.empresa-logo-upload strong {
    display: block;
    color: #20263a;
    font-size: 15px;
    font-weight: 650;
}

.empresa-logo-upload small {
    display: block;
    margin-top: 3px;
    color: #6d7688;
    font-size: 12px;
    line-height: 1.35;
}

.empresa-logo-upload .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    line-height: 1;
    white-space: nowrap;
}

.empresa-logo-preview {
    display: grid;
    width: 112px;
    aspect-ratio: 4 / 1;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
}

.empresa-logo-preview.is-square {
    width: 72px;
    aspect-ratio: 1 / 1;
}

.empresa-logo-preview.is-social {
    width: 112px;
    aspect-ratio: 1.91 / 1;
}

.empresa-logo-preview > i {
    color: var(--color-primario);
    font-size: 24px;
}

.empresa-logo-preview.is-dark {
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.18) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.18) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.18) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.18) 75%),
        #fff;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.empresa-logo-preview.is-light {
    background: #1f2937;
}

.empresa-logo-preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.datos-empresa-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 8px;
}

.mail-config-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mail-template-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.mail-template-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-height: 310px;
    padding-top: 34px;
    text-align: center;
    overflow: visible;
    transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
}

.mail-template-card.is-removing {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px) scale(0.98);
}

.mail-template-head {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: 100%;
}

.mail-template-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
    font-size: 24px;
}

.mail-template-head h2 {
    margin: 0;
    color: #20263a;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;
}

.mail-template-lock {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    color: #fff;
    background: var(--color-danger);
    border-radius: 0 18px 0 18px;
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.20);
    font-size: 11px;
    font-weight: 700;
}

.mail-template-body {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
}

.mail-template-code {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: #111827;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    overflow-wrap: anywhere;
    text-align: center;
}

.mail-template-description {
    max-width: 100%;
    color: #6d7688;
    font-size: 12px;
    line-height: 1.45;
}

.mail-template-description strong {
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
}

.mail-template-body strong {
    display: block;
    color: #2f374a;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mail-template-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}

.mail-template-actions.mail-actions-card-icons {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
}

.mail-template-actions .mail-actions-card-left {
    display: inline-flex;
    gap: 10px;
}

.mail-template-actions .mail-actions-card-right {
    justify-content: flex-end;
}

.mail-template-form {
    display: grid;
    gap: 18px;
}

.mail-template-edit-meta {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 16px;
}

.mail-template-edit-meta span {
    width: fit-content;
    padding: 5px 9px;
    color: #111827;
    background: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.mail-template-edit-meta strong {
    color: #20263a;
    font-size: 16px;
    font-weight: 650;
}

.mail-template-editor {
    display: grid;
    gap: 8px;
}

.mail-template-editor label {
    color: #2d3446;
    font-size: 13px;
    font-weight: 650;
}

.mail-template-editor textarea {
    min-height: 390px;
    padding: 18px 20px;
    color: #dbeafe;
    background: #0f172a;
    border: 0;
    border-radius: 0;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.65;
    tab-size: 4;
    box-shadow: none;
}

.mail-code-editor {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 430px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    overflow: hidden;
}

.mail-code-lines {
    min-height: 430px;
    max-height: 430px;
    margin: 0;
    padding: 18px 12px;
    color: #64748b;
    background: #0b1120;
    border-right: 1px solid #1e293b;
    overflow: hidden;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.65;
    text-align: right;
    user-select: none;
}

.mail-template-editor textarea:focus {
    color: #f8fafc;
    background: #0b1120;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.42);
}

.mail-template-editor small {
    color: #6d7688;
    font-size: 12px;
}

.mail-version-list {
    display: grid;
    gap: 10px;
}

.mail-version-offcanvas {
    display: grid;
    gap: 18px;
}

.mail-version-template-info {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 18px;
}

.mail-version-template-info span {
    width: fit-content;
    padding: 5px 9px;
    color: #111827;
    background: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.mail-version-template-info h5 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 650;
}

.mail-version-template-info p {
    margin: 0;
    color: #5f6b7a;
    font-size: 13px;
    line-height: 1.45;
}

.mail-version-section {
    display: grid;
    gap: 10px;
}

.mail-version-section h6 {
    margin: 0;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.mail-version-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.mail-version-item.is-current {
    border-color: color-mix(in srgb, var(--color-primario) 35%, transparent);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--color-primario) 10%, transparent);
}

.mail-version-item.is-removing {
    opacity: 0;
    filter: blur(3px);
    transform: translateX(14px);
}

.mail-version-main {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    text-align: left;
}

.mail-version-item strong,
.mail-version-item span,
.mail-version-item small {
    display: block;
}

.mail-version-item strong {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.mail-version-item span {
    margin-top: 3px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.35;
}

.mail-version-item small {
    margin-top: 4px;
    color: #8a94a6;
    font-size: 11px;
}

.mail-version-item .btn {
    border-radius: 999px;
}

.mail-version-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mail-version-current {
    display: inline-flex !important;
    width: fit-content;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 5px 9px;
    color: #fff !important;
    background: var(--color-primario);
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 800;
}

.offcanvas-mail-versions.offcanvas-end {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(520px, 100vw);
    height: 100vh;
    border-radius: 0;
    box-shadow: -28px 0 60px rgba(15, 23, 42, 0.18);
}

.offcanvas-mail-versions .offcanvas-header {
    border-radius: 0;
}

.offcanvas-backdrop.show {
    opacity: 0.28;
    backdrop-filter: blur(2px);
}

.modal-mail-editor .modal-dialog {
    max-width: min(1040px, calc(100vw - 28px));
}

.mail-code-window {
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8e0ec;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.mail-code-tabs + .mail-code-window {
    margin-top: -18px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.mail-code-window-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 0 18px;
    color: #111827;
    background: #f8fafc;
    border-bottom: 1px solid #e3e9f2;
}

.mail-code-window-head > div {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mail-code-window-head strong {
    color: #111827;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    font-weight: 700;
}

.mail-code-dot {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
}

.mail-code-tabs {
    gap: 8px;
    padding: 12px 14px 0;
    background: #ffffff;
    border-bottom: 0;
}

.mail-code-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    color: #4b5563;
    border: 0;
    border-radius: 14px 14px 0 0;
    font-size: 13px;
    font-weight: 650;
}

.mail-code-tabs .nav-link.active {
    color: #111827;
    background: #f8fafc;
    box-shadow: inset 0 2px 0 var(--color-primario);
}

.mail-code-tab-content {
    background: #0f172a;
}

.mail-code-tab-content .mail-template-editor {
    gap: 0;
}

.mail-code-tab-content .mail-template-editor label {
    padding: 12px 18px 0;
    color: #2d3446;
}

.mail-code-tab-content .mail-template-editor small {
    display: block;
    padding: 12px 18px 16px;
    color: #6d7688;
    background: #fff;
    border-top: 1px solid #e6ecf5;
}

.mail-code-tab-content .mail-template-editor small code {
    color: #111827;
    background: #f3f4f6;
    border-radius: 6px;
    font-weight: 700;
}

.mail-editor-preview-frame-wrap {
    height: min(620px, calc(100vh - 360px));
    min-height: 430px;
    padding: 14px;
    background: #eef2f8;
}

.modal-mail-preview .modal-dialog {
    max-width: min(980px, calc(100vw - 28px));
}

.mail-preview-shell {
    display: grid;
    gap: 16px;
}

.mail-preview-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 18px;
}

.mail-preview-code {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: #111827;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    font-size: 11px;
    font-weight: 800;
}

.mail-preview-meta small {
    display: block;
    margin-bottom: 2px;
    color: #7b8497;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.mail-preview-meta strong {
    display: block;
    color: #20263a;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.mail-preview-frame-wrap {
    height: min(620px, calc(100vh - 285px));
    min-height: 420px;
    padding: 12px;
    background: #eef2f8;
    border: 1px solid #dde5f0;
    border-radius: 22px;
    overflow: hidden;
}

.mail-preview-frame {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.mail-preview-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

.mail-preview-actions .btn {
    min-width: 116px;
    border-radius: 999px;
}

.mail-empty-state {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6d7688;
    font-size: 14px;
    font-weight: 600;
}

.mail-empty-state i {
    color: var(--color-primario);
}

.mail-config-card {
    position: relative;
    display: grid;
    gap: 18px;
    overflow: visible;
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.mail-config-card.is-removing {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px) scale(0.98);
}

.mail-config-card.is-primary {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.12);
}

.mail-config-card-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.mail-config-card-head h2 {
    margin: 0;
    color: #20263a;
    font-size: 20px;
    font-weight: 650;
}

.mail-config-card-head .badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 16px;
    background: var(--color-primario) !important;
    border-radius: 0 18px 0 18px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.20);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.mail-config-card-head p {
    margin: 3px 0 0;
    color: #6d7688;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.mail-config-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.mail-config-summary {
    display: grid;
    gap: 9px;
}

.mail-config-summary span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #5f6b7a;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.mail-config-summary i {
    width: 18px;
    color: var(--color-primario);
    text-align: center;
}

.mail-config-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 2px;
}

.mail-config-actions .btn {
    min-height: 38px;
    padding-right: 14px;
    padding-left: 14px;
}

.mail-actions-card-icons {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
}

.mail-actions-card-right {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.mail-actions-card-icons .btn {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    place-items: center;
    padding: 0;
    color: #4b5563;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.30);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

.mail-actions-card-icons .btn::after {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 8;
    padding: 6px 10px;
    color: #fff;
    background: #20263a;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    content: attr(data-action-label);
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
}

.mail-actions-card-icons .btn::before {
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    z-index: 8;
    width: 8px;
    height: 8px;
    background: #20263a;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px) rotate(45deg);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.mail-actions-card-icons .btn:hover,
.mail-actions-card-icons .btn:focus {
    color: #fff;
    background: var(--color-primario);
    border-color: var(--color-primario);
    outline: none;
}

.mail-actions-card-icons .btn:hover::before,
.mail-actions-card-icons .btn:hover::after,
.mail-actions-card-icons .btn:focus::before,
.mail-actions-card-icons .btn:focus::after {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
}

.mail-actions-card-icons .btn:hover::after,
.mail-actions-card-icons .btn:focus::after {
    transform: translate(-50%, 0);
}

.mail-actions-card-icons .btn.is-danger:hover,
.mail-actions-card-icons .btn.is-danger:focus {
    background: var(--color-danger);
    border-color: var(--color-danger);
}

.mail-main-switch {
    min-height: 58px;
}

.mail-detail-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.mail-detail-status.is-primary {
    color: #fff;
    background: var(--color-primario);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.mail-detail-status.is-secondary {
    color: #64748b;
    background: #eef2f7;
}

.mail-primary-readonly {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(248, 250, 252, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
}

.mail-primary-readonly > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    color: #94a3b8;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.mail-primary-readonly.is-primary > span {
    color: #fff;
    background: var(--color-primario);
}

.mail-primary-readonly strong {
    display: block;
    color: #20263a;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.1;
}

.mail-primary-readonly small {
    display: block;
    margin-top: 3px;
    color: #6d7688;
    font-size: 12px;
    line-height: 1.2;
}

.mail-detail {
    display: grid;
    gap: 20px;
}

.mail-detail-list {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.20);
}

.mail-detail-list div {
    display: grid;
    grid-template-columns: 34px minmax(120px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.mail-detail-list i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    font-size: 13px;
}

.mail-detail-list span {
    color: #7b8496;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mail-detail-list strong {
    color: #273044;
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mail-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mail-detail-grid div {
    padding: 13px 14px;
    background: rgba(248, 250, 252, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 14px;
}

.mail-detail-grid small {
    display: block;
    margin-bottom: 4px;
    color: #8a94a6;
    font-size: 11px;
    text-transform: uppercase;
}

.mail-detail-grid strong {
    display: block;
    color: #273044;
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1399px) {
    .mail-config-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mail-template-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .datos-empresa-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mail-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.datos-empresa-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(240px, 1.25fr) auto;
    align-items: center;
    gap: 12px;
}

.datos-empresa-row .btn-icon {
    width: 42px;
    height: 42px;
}

.footer {
    padding: 16px 24px;
    color: var(--color-muted);
    font-size: 13px;
}

.modal-content,
.offcanvas {
    border-radius: 8px;
}

.ajax-box {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-left: 4px solid;
    background: #f8fafc;
    border-radius: 8px;
}

.ajax-box small,
.profile-summary p {
    color: var(--color-muted);
}

.profile-summary {
    text-align: center;
}

.profile-avatar {
    display: inline-grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--color-primario);
    font-size: 34px;
}

.login-page {
    min-height: 100vh;
    background: var(--login-page-background, radial-gradient(circle at center, #ffffff 0%, #ffffff 9%, #f3fbff 22%, #d9f6ff 56%, #bfefff 100%), #f8fbff);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(320px, 480px) 1fr;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 48px;
    background: #fff;
}

.login-centered-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 26px;
    padding: 28px;
}

.login-centered-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 430px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e1e9f5;
    border-radius: 34px;
    box-shadow:
        0 30px 80px rgba(37, 99, 235, 0.18),
        0 12px 30px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transform-origin: center center;
    backface-visibility: hidden;
}

.login-page.is-login-exiting .login-centered-card {
    animation: loginCardFadeOut 0.5s ease-in forwards;
}

.login-page.is-login-exiting .login-credit {
    animation: loginCreditFadeOut 0.35s ease-in forwards;
}

.login-card-header {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 170px;
    place-items: center;
    padding: 24px 34px 74px;
    background: var(--color-primario);
    overflow: visible;
}

.login-card-header::after {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: -56px;
    width: 124%;
    height: 82px;
    background: var(--color-primario);
    border-radius: 0 0 50% 50%;
    content: "";
    transform: translateX(-50%);
}

.login-card-header img {
    position: relative;
    z-index: 3;
    width: min(220px, 70%);
    height: auto;
    filter: brightness(0) invert(1);
    transform: translateY(24px);
}

.login-wave {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -58px;
    left: 0;
    height: 92px;
    background-image: url("data:image/svg+xml,%3Csvg width='420' height='92' viewBox='0 0 420 92' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24C42 16 63 16 105 24C147 32 168 32 210 24C252 16 273 16 315 24C357 32 378 32 420 24V92H0V24Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 420px 92px;
    pointer-events: none;
}

.login-wave-one {
    background-position-x: 0;
    animation: loginWavePass 5.6s linear infinite paused;
}

.login-wave-two {
    bottom: -52px;
    opacity: 0.42;
    background-size: 360px 84px;
    background-position-x: 0;
    animation: loginWavePassReverseSmall 7.2s linear infinite paused;
}

.login-card-header.is-waving .login-wave-one {
    animation-play-state: running;
}

.login-card-header.is-waving .login-wave-two {
    animation-play-state: running;
}

@keyframes loginWavePass {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -302px;
    }
}

@keyframes loginWavePassReverseSmall {
    from {
        background-position-x: -151px;
    }

    to {
        background-position-x: 151px;
    }
}

.login-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 344px;
    flex-direction: column;
    gap: 18px;
    padding: 30px 40px 38px;
    background: #fff;
}

.login-page-greeting {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    place-items: center;
    align-content: center;
    gap: 0;
    padding: 28px;
    text-align: center;
    pointer-events: none;
}

.login-page.is-login-welcome .login-page-greeting {
    display: grid;
    animation: loginGreetingIn 0.52s ease-out both;
}

.login-page.is-login-page-fading {
    animation: loginPageFadeOut 0.48s ease-in forwards;
}

.login-success-check {
    position: relative;
    display: grid;
    width: 116px;
    height: 116px;
    place-items: center;
    margin: 0 auto;
    color: #fff;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow:
        0 24px 54px rgba(22, 163, 74, 0.24),
        0 0 0 12px rgba(22, 163, 74, 0.10);
    font-size: 44px;
    animation: loginCheckIn 0.7s cubic-bezier(0.2, 0.9, 0.2, 1.16) both;
}

.login-success-check::before {
    position: absolute;
    inset: -18px;
    border: 2px solid rgba(22, 163, 74, 0.18);
    border-radius: 50%;
    content: "";
    animation: loginCheckRing 0.9s ease-out 0.12s both;
}

.login-success-check i {
    position: relative;
    z-index: 1;
    animation: loginCheckIconIn 0.42s ease-out 0.28s both;
}

.login-success-progress {
    width: min(210px, 54vw);
    height: 6px;
    margin-top: 34px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    overflow: hidden;
    opacity: 0;
    animation: loginProgressIn 0.28s ease-out 0.48s forwards;
}

.login-success-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color-primario);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left center;
}

.login-page.is-login-welcome .login-success-progress span {
    animation: loginProgressLoad 1.25s cubic-bezier(0.22, 0.74, 0.22, 1) 0.58s forwards;
}

.login-panel h1,
.login-centered-card h1 {
    margin: 24px 0 0;
    font-size: 30px;
}

.login-copy {
    margin: 0;
    color: var(--color-muted);
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-message {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(calc(100% - 32px), 430px);
    pointer-events: none;
    transform: translateX(-50%);
}

.login-toast {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    color: #fff;
    background: var(--color-danger);
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(220, 38, 38, 0.26);
    font-size: 14px;
    font-weight: 650;
    pointer-events: auto;
    animation: loginNoticeIn 0.24s ease-out both;
}

.login-toast.is-hiding {
    animation: loginNoticeOut 0.18s ease-in both;
}

.login-toast.is-danger {
    background: var(--color-danger);
}

.login-toast.is-success {
    background: var(--color-success);
    box-shadow: 0 18px 44px rgba(22, 163, 74, 0.24);
}

.login-toast a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recovery-card .login-card-body {
    padding-top: 34px;
}

.recovery-card-header {
    min-height: 170px;
}

.recovery-password-field input {
    padding-right: 52px;
}

.recovery-rules-box {
    margin-top: -4px;
    text-align: left;
}

@keyframes loginCardFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
}

@keyframes loginCreditFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes loginGreetingIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginCheckIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.68);
    }

    62% {
        opacity: 1;
        transform: translateY(0) scale(1.08);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginCheckRing {
    from {
        opacity: 0;
        transform: scale(0.78);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loginCheckIconIn {
    from {
        opacity: 0;
        transform: scale(0.45) rotate(-16deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes loginProgressIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loginProgressLoad {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes loginPageFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes loginNoticeIn {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.98);
    }

    70% {
        opacity: 1;
        transform: translateY(-3px) scale(1);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginNoticeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }
}

.login-forgot {
    text-align: center;
    font-size: 14px;
}

.login-forgot a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--color-primario);
    font-weight: 400;
    text-decoration: none;
}

.login-forgot a::after {
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 2px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.login-forgot a:hover {
    text-decoration: none;
}

.login-forgot a:hover::after {
    transform: scaleX(1);
}

.login-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-top: 0;
    color: var(--color-muted);
    text-align: center;
    font-size: 13px;
}

.login-credit img {
    display: block;
    width: auto;
    height: 18px;
}

.login-credit a {
    display: inline-flex;
    align-items: center;
}

.login-force-modal {
    border: 1px solid rgba(37, 99, 235, 0.28) !important;
    border-radius: 26px;
}

.login-force-form {
    display: grid;
    gap: 16px;
}

.login-force-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.login-force-actions .btn {
    min-height: 44px;
    min-width: 118px;
    border-radius: 999px;
}

.floating-field {
    position: relative;
}

.floating-field i {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    color: var(--color-muted);
    font-size: 18px;
    transform: translateY(-50%);
    transition: color 0.18s ease;
}

.floating-field input {
    width: 100%;
    height: 58px;
    padding: 22px 48px 10px 48px;
    color: var(--color-text);
    background: #f8fafc;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.floating-field label {
    position: absolute;
    top: 17px;
    left: 48px;
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.18s ease, color 0.18s ease;
}

.floating-field input:focus {
    background: #fff;
    border-color: var(--color-primario);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label {
    color: var(--color-primario);
    transform: translateY(-10px) scale(0.78);
}

.floating-field input:focus ~ i,
.floating-field:focus-within i {
    color: var(--color-primario);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 3;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    color: var(--color-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: color 0.18s ease, background 0.18s ease;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.08);
    outline: none;
}

.password-toggle i {
    position: static;
    transform: none;
    font-size: 15px;
}

.login-aside {
    display: flex;
    align-items: end;
    padding: 52px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(8, 145, 178, 0.72)),
        url("../images/background/12.jpg") center/cover;
}

.login-aside h2 {
    max-width: 680px;
    margin-top: 18px;
    font-size: 42px;
    line-height: 1.1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Estilo claro tipo dashboard moderno */
body {
    background:
        radial-gradient(circle at 58% 8%, rgba(255, 255, 255, 0.92) 0 15%, rgba(243, 240, 255, 0.78) 34%, transparent 58%),
        linear-gradient(135deg, #fbfbff 0%, #f1effc 48%, #ecebfa 100%);
}

.admin-topbar {
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    min-height: 64px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 0;
    box-shadow: 0 12px 34px rgba(104, 88, 180, 0.10);
}

.admin-topbar::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 243, 255, 0.9));
    content: "";
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-search {
    position: relative;
    width: min(360px, 34vw);
    align-items: center;
}

.admin-search i {
    position: absolute;
    left: 18px;
    color: #9a92bd;
    font-size: 14px;
}

.admin-search input {
    width: 100%;
    height: 42px;
    padding: 0 18px 0 44px;
    color: #342d4d;
    background: #f4f1ff;
    border: 1px solid rgba(136, 117, 221, 0.1);
    border-radius: 14px;
    outline: 0;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.admin-search input:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(137, 97, 230, 0.12);
}

.vertical-menu {
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    overflow: hidden;
    color: var(--menu-text);
    background: var(--menu-bg);
    border-right: 1px solid rgba(135, 116, 207, 0.10);
    border-radius: 0;
    box-shadow: 18px 0 46px rgba(44, 34, 93, 0.16);
}

.header-menu {
    min-height: 84px;
    justify-content: center;
    padding: 28px 22px 18px;
    border-bottom: 0;
}

.admin-brand {
    color: #292a3d;
    font-size: 20px;
    font-weight: 700;
}

.admin-brand-logo {
    display: block;
    width: 142px;
    max-width: 100%;
    height: auto;
}

.header-menu .btn-icon {
    position: absolute;
    top: 16px;
    right: 16px;
}

.menu-user-card {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin: 2px 18px 22px;
    padding: 10px 10px 6px;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.menu-user-card:hover {
    transform: translateY(-1px);
}

.menu-user-avatar {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    margin-bottom: 7px;
    color: #fff;
    background: var(--color-primario);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    overflow: hidden;
    font-size: 21px;
    font-weight: 750;
}

.menu-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-user-card strong {
    max-width: 100%;
    color: var(--menu-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.menu-user-card small {
    max-width: 100%;
    color: color-mix(in srgb, var(--menu-text) 62%, transparent);
    font-size: 12px;
    line-height: 1.25;
}

.admin-brand small,
.login-brand small {
    color: #9aa0b5;
    font-weight: 500;
}

.admin-brand-mini {
    color: #292a3d;
    font-weight: 700;
}

.admin-brand-mark {
    background: var(--color-primario);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

#sidebar-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-color: var(--scroll-color, var(--color-primario)) transparent;
    scrollbar-width: thin;
}

#sidebar-menu::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--scroll-color, var(--color-primario));
    border-radius: 999px;
}

#sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--scroll-color, var(--color-primario)) 82%, #000);
}

.side-menu {
    padding: 6px 12px 18px;
}

.side-menu > li {
    margin-bottom: 3px;
}

.side-menu a {
    min-height: 42px;
    padding: 10px 12px;
    color: var(--menu-text);
    border-radius: 10px;
    font-weight: 500;
}

.side-menu a:hover {
    color: var(--menu-hover-text);
    background: color-mix(in srgb, var(--menu-hover-bg) var(--menu-hover-opacity), transparent);
}

.side-menu > li > a.active {
    color: var(--menu-active-text);
    background: var(--menu-active-bg);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.side-menu > li > a.active i {
    color: var(--menu-active-text);
}

.side-menu i {
    width: 22px;
    color: currentColor;
    text-align: center;
    font-size: 16px;
}

.sub-menu {
    padding: 6px 0 8px 22px;
}

.sub-menu.is-open {
    display: block;
}

.sub-menu a {
    position: relative;
    min-height: 34px;
    color: var(--menu-text);
    border-radius: 9px;
    font-size: 13px;
}

.sub-menu a.active {
    color: var(--menu-submenu-active-text);
    background: transparent;
    box-shadow: none;
    font-weight: 650;
    text-decoration: none;
}

.sub-menu a.active span {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 3px solid var(--menu-submenu-active-text);
    line-height: 1.15;
}

.sub-menu a.active:hover {
    color: var(--menu-submenu-active-text);
    background: transparent;
}

.sub-menu a.active::after {
    display: none;
}

.menu-developer-credit {
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    gap: 7px;
    margin: auto 18px 18px;
    padding: 16px 10px 4px;
    color: #8d92a6;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    border-top: 1px solid rgba(135, 116, 207, 0.12);
}

.menu-developer-credit a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.menu-developer-credit a:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

.menu-developer-credit img {
    display: block;
    width: auto;
    max-width: 104px;
    height: 18px;
    object-fit: contain;
}

.main-content {
    margin-left: var(--sidebar-width);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding-top: 0;
}

.page-content {
    flex: 1 0 auto;
    padding: 30px 30px 24px 30px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 60px;
    margin-bottom: 14px;
}

.page-head-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.page-head-menu-btn {
    margin-top: -3px;
}

.page-head h1 {
    margin: 0;
    color: #2d3446;
    font-size: 24px;
    font-weight: 650;
    line-height: 1.18;
}

.page-head-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #8d92a6;
    font-size: 12px;
}

.page-head-breadcrumb a {
    color: var(--color-primario);
}

.page-head-breadcrumb strong {
    color: #5f6678;
    font-weight: 600;
}

.page-head p {
    margin: 0;
    color: #0b4779;
    font-size: 14px;
}

.page-head-user {
    position: fixed;
    top: 14px;
    right: 0;
    z-index: 890;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    margin-right: 0;
    padding: 10px 30px 10px 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(8, 45, 105, 0.06);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    box-shadow:
        -18px 16px 42px rgba(44, 34, 93, 0.14),
        -4px 0 18px rgba(8, 45, 105, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.page-head-actions {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.page-head-user-data {
    display: grid;
    justify-items: end;
    line-height: 1.2;
    cursor: pointer;
}

.page-head-user-data strong {
    color: #2d3446;
    font-size: 14px;
    font-weight: 700;
}

.page-head-user-data small {
    color: #0b4779;
    font-size: 12px;
}

.page-head-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
}

.page-head-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-head-logout {
    display: inline-flex;
    min-width: 78px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: var(--color-danger);
    background: transparent;
    border: 1px solid var(--color-danger);
    border-radius: 999px;
    box-shadow: none;
}

.page-head-logout:hover {
    color: #fff;
    background: var(--color-danger);
    border-color: var(--color-danger);
}

.breadcrumb-line {
    color: #9aa0b5;
}

.page-title {
    color: #2c2d3f;
    font-size: 27px;
    font-weight: 700;
}

.metric-card,
.content-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(72, 59, 132, 0.09);
}

.metric-card {
    min-height: 138px;
    padding: 22px;
}

.metric-card small {
    color: #979dad;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0;
}

.metric-card strong {
    color: #26283a;
    font-weight: 650;
}

.metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.content-panel {
    padding: 22px;
}

.security-panel-half,
.admin-panel-half {
    width: min(100%, 680px);
}

.security-panel .panel-header {
    margin-bottom: 32px;
}

.theme-form {
    display: grid;
    gap: 18px;
}

.theme-panels-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
}

.theme-panel-lg-4 {
    width: 100%;
}

.theme-panel {
    margin-bottom: 18px;
}

.theme-panel-column {
    display: grid;
    gap: 18px;
    align-self: stretch;
}

.theme-panel-column .theme-panel {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .theme-panel-lg-4 {
        flex: 0 0 calc(33.333333% - 12px);
        max-width: calc(33.333333% - 12px);
    }
}

.theme-font-grid {
    display: grid;
    gap: 10px;
}

.theme-font-option {
    position: relative;
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 14px;
    padding: 14px 52px 14px 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.theme-font-option:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.theme-font-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-font-option span {
    display: grid;
    gap: 2px;
}

.theme-font-option strong {
    color: #20263a;
    font-size: 16px;
    font-weight: 650;
}

.theme-font-option small {
    color: #6d7688;
    font-size: 13px;
}

.theme-font-option > i {
    position: absolute;
    top: 50%;
    right: 16px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #fff;
    background: #cbd5e1;
    border-radius: 50%;
    font-size: 12px;
    transform: translateY(-50%);
    transition: background 0.18s ease, transform 0.18s ease;
}

.theme-font-option:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
}

.theme-font-option:has(input:checked) > i {
    background: var(--color-primario);
}

.theme-logo-fields {
    display: grid;
    gap: 14px;
}

.theme-logo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
}

.theme-logo-preview-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 16px;
}

.theme-logo-fields .form-control {
    color: #2d3446;
    background-color: rgba(255, 255, 255, 0.88);
    border: 1px solid #d7ddea;
    border-radius: 14px;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-logo-fields .form-control:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.theme-login-background {
    display: grid;
    gap: 14px;
}

.theme-menu-logo-options {
    display: grid;
    gap: 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.theme-menu-custom-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(248, 250, 252, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 18px;
}

.theme-menu-custom-toggle h3 {
    margin: 0 0 3px;
    color: #20263a;
    font-size: 16px;
    font-weight: 600;
}

.theme-menu-custom-toggle p {
    margin: 0;
    color: #6d7688;
    font-size: 12px;
    line-height: 1.35;
}

.admin-modern-switch {
    position: relative;
    flex: 0 0 auto;
    width: 58px;
    height: 32px;
    margin: 0;
    cursor: pointer;
}

.admin-modern-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-modern-switch span {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.12);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.admin-modern-switch span::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #9ca3af;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    transition: transform 0.18s ease, background 0.18s ease;
}

.admin-modern-switch input:checked + span {
    background: color-mix(in srgb, var(--color-primario) 24%, #ffffff);
}

.admin-modern-switch input:checked + span::before {
    background: var(--color-primario);
    transform: translateX(26px);
}

.theme-menu-custom-fields {
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.theme-menu-custom-fields.is-disabled {
    opacity: 0.48;
    filter: grayscale(0.15);
}

.theme-menu-custom-fields.is-disabled input {
    pointer-events: none;
}

.theme-menu-opacity {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.theme-menu-opacity label {
    margin: 0;
    color: #20263a;
    font-size: 13px;
    font-weight: 600;
}

.theme-menu-opacity > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 12px;
    align-items: center;
}

.theme-menu-opacity input[type="range"] {
    accent-color: var(--color-primario);
}

.theme-menu-opacity span {
    display: grid;
    min-height: 34px;
    place-items: center;
    color: #20263a;
    background: rgba(239, 246, 255, 0.95);
    border-radius: 999px;
    font-size: 12px;
}

.theme-login-subsection {
    display: grid;
    gap: 14px;
    padding-bottom: 2px;
}

.theme-login-subsection h3 {
    margin: 0 0 3px;
    color: #20263a;
    font-size: 17px;
    font-weight: 600;
}

.theme-login-subsection p {
    margin: 0;
    color: #6d7688;
    font-size: 13px;
    line-height: 1.35;
}

.theme-login-switch {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    justify-self: start;
    padding: 4px;
    background: #eef2f7;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 999px;
}

.theme-login-switch label {
    margin: 0;
}

.theme-login-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-login-switch span {
    display: grid;
    min-width: 92px;
    min-height: 36px;
    place-items: center;
    padding: 0 16px;
    color: #64748b;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.theme-login-switch input:checked + span {
    color: #fff;
    background: var(--color-primario);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.theme-login-css-field,
.theme-login-image-field {
    display: grid;
    gap: 10px;
}

.theme-login-css-field label {
    margin: 0;
    color: #20263a;
    font-size: 13px;
    font-weight: 600;
}

.theme-login-css-field textarea {
    min-height: 122px;
    color: #273044;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #d7ddea;
    border-radius: 16px;
    resize: vertical;
}

.theme-login-css-field textarea:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.theme-login-css-field small,
.theme-login-image-field small {
    color: #6d7688;
    font-size: 12px;
}

.theme-login-image-preview {
    display: grid;
    min-height: 130px;
    place-items: center;
    overflow: hidden;
    color: #8d92a6;
    background: #f8fafc;
    border: 1px dashed rgba(148, 163, 184, 0.58);
    border-radius: 18px;
}

.theme-login-image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.theme-login-upload-btn {
    justify-self: start;
    min-height: 42px;
    border-radius: 999px;
}

.theme-logo-preview {
    display: grid;
    gap: 16px;
    justify-items: center;
    padding: 10px 0 4px;
}

.theme-logo-preview-modal .modal-header {
    display: none;
}

.theme-logo-preview-modal .modal-body {
    padding-top: 28px;
}

.theme-logo-preview-frame {
    display: grid;
    width: 100%;
    min-height: 180px;
    place-items: center;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.theme-logo-preview-frame img {
    display: block;
    max-width: min(100%, 360px);
    max-height: 180px;
    object-fit: contain;
}

.theme-logo-preview-url {
    width: 100%;
    margin: 0;
    color: #6d7688;
    font-size: 13px;
    overflow-wrap: anywhere;
    text-align: center;
}

.theme-logo-preview-close {
    min-width: 132px;
    min-height: 44px;
    border-radius: 999px;
}

.theme-section-actions,
.theme-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.theme-section-actions .btn,
.theme-actions .btn {
    min-height: 44px;
    border-radius: 999px;
}

.dev-variable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.dev-variable-state {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 38px 18px;
    color: #6d7688;
    text-align: center;
}

.dev-variable-state-icon {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.10);
    border-radius: 32px;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.12);
    font-size: 34px;
}

.dev-variable-state-icon.is-loading {
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.08);
}

.dev-variable-state-icon.is-danger {
    color: var(--color-danger);
    background: rgba(220, 38, 38, 0.10);
    box-shadow: 0 18px 38px rgba(220, 38, 38, 0.10);
}

.dev-variable-state-icon.is-muted {
    color: #64748b;
    background: rgba(100, 116, 139, 0.10);
    box-shadow: 0 18px 38px rgba(100, 116, 139, 0.10);
}

.dev-variable-state-icon .spinner-border {
    width: 38px;
    height: 38px;
    border-width: 4px;
}

.dev-variable-state strong {
    color: #20263a;
    font-size: 24px;
    font-weight: 650;
    line-height: 1.18;
}

.dev-variable-state small {
    max-width: 420px;
    color: #7a8596;
    font-size: 15px;
    line-height: 1.45;
}

.dev-variable-card {
    position: relative;
    display: grid;
    gap: 18px;
    overflow: visible;
    margin-bottom: 0;
    padding: 18px;
    border-color: #e5e7eb;
    border-radius: 18px;
    background: var(--color-panel);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.dev-variable-card.is-removing {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(10px);
}

.dev-variable-card-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.dev-variable-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
    font-size: 20px;
}

.dev-variable-icon.is-api {
    background: var(--color-primario);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.dev-variable-card-head h2 {
    margin: 0;
    color: #20263a;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.dev-variable-card-head p {
    margin: 3px 0 0;
    color: #6d7688;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.dev-variable-summary {
    display: grid;
    gap: 10px;
    padding: 2px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.dev-variable-summary-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(232, 245, 255, 0.72);
    border: 0;
    border-radius: 14px;
    box-shadow: none;
}

.dev-variable-value-line {
    grid-template-columns: 34px minmax(0, 1fr);
}

.dev-variable-row-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.09);
    border-radius: 12px;
    font-size: 15px;
}

.dev-variable-card.is-api .dev-variable-row-icon {
    color: var(--color-info);
    background: rgba(6, 182, 212, 0.1);
}

.dev-variable-row-content {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.dev-variable-row-content small {
    color: #8b95a7;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
}

.dev-variable-summary code {
    color: #20263a;
    font-size: 13.5px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.dev-variable-code-line code {
    display: block;
}

.dev-variable-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dev-variable-meta span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    color: #5f6b7a;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dev-variable-meta i {
    flex: 0 0 auto;
    width: 16px;
    color: var(--color-primario);
    text-align: center;
}

.dev-variable-card.is-api .dev-variable-meta i {
    color: var(--color-info);
}

.dev-copy-code-btn {
    display: inline-grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    margin-left: auto;
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.08);
    border: 0;
    border-radius: 50%;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.dev-copy-code-btn:hover,
.dev-copy-code-btn:focus,
.dev-copy-code-btn.is-copied {
    color: #fff;
    background: var(--color-primario);
    outline: none;
}

.dev-copy-code-btn.is-copied {
    transform: scale(1.04);
}

.admin-floating-field .dev-code-preview:disabled {
    color: #20263a;
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.32);
    opacity: 1;
    cursor: default;
}

.dev-code-edit-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dev-code-edit-row .admin-floating-field {
    flex: 1 1 auto;
    min-width: 0;
}

.dev-code-edit-btn {
    flex: 0 0 auto;
    min-height: 48px;
    border-radius: 999px;
    white-space: nowrap;
}

.dev-code-warning {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding: 13px 14px;
    color: #7c2d12;
    background: rgba(217, 119, 6, 0.10);
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.35;
}

.dev-code-warning i {
    margin-top: 2px;
    color: var(--color-warning);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-card-icon {
    display: grid;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.20);
    font-size: 22px;
}

.settings-card-header h2 {
    margin: 0;
    color: #20263a;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
}

.settings-card-header p {
    margin: 4px 0 0;
    color: #7c8599;
    font-size: 13px;
    line-height: 1.3;
}

.dev-variable-summary .is-hidden-value code {
    letter-spacing: .04em;
}

.dev-variable-actions {
    align-self: end;
    padding-top: 2px;
}

.dev-visible-switch {
    margin-top: 2px;
}

.dev-hidden-value-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 8px;
    padding: 11px 13px;
    color: #64748b;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.35;
}

.dev-hidden-value-note i {
    margin-top: 2px;
    color: var(--color-primario);
}

.security-master-switch {
    min-height: 66px;
    margin-bottom: -6px;
    padding-bottom: 0;
}

.security-rule-field {
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.security-rule-field.is-disabled {
    opacity: 0.45;
    filter: grayscale(0.4);
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.list-search {
    position: relative;
    width: min(100%, 390px);
}

.list-search i {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    color: #8d92a6;
    transform: translateY(-50%);
}

.list-search .form-control {
    height: 46px;
    padding-left: 44px;
    color: #2d3446;
    background: #fff;
    border: 1px solid rgba(137, 97, 230, 0.12);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(44, 34, 93, 0.06);
}

.list-search .form-control:focus {
    border-color: rgba(137, 97, 230, 0.38);
    box-shadow: 0 0 0 4px rgba(137, 97, 230, 0.12);
}

.list-toolbar > .btn {
    height: 46px;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(44, 34, 93, 0.08);
}

.btn-toolbar-action {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    color: #2f3145;
    border-bottom-color: #edf0f7;
    font-size: 13px;
    font-weight: 700;
}

.table tbody td {
    color: #555b6d;
    border-color: #f1f2f8;
    vertical-align: middle;
}

.table-row-removing {
    background: rgba(220, 38, 38, 0.08) !important;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.table-row-removing td {
    opacity: 0.45;
}

.dataTables_wrapper .table thead th {
    color: #fff;
    background: var(--color-primario);
    border-color: var(--color-primario);
}

.dataTables_wrapper .table thead th:first-child {
    border-top-left-radius: 12px;
}

.dataTables_wrapper .table thead th:last-child {
    border-top-right-radius: 12px;
}

.dataTables_wrapper .page-link {
    color: var(--color-primario);
    border-color: rgba(137, 97, 230, 0.18);
    border-radius: 10px;
}

.dataTables_wrapper .page-link:hover {
    color: #fff;
    background: var(--color-primario);
    border-color: var(--color-primario);
}

.dataTables_wrapper .page-item.active .page-link {
    color: #fff;
    background: var(--color-primario);
    border-color: var(--color-primario);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.dataTables_wrapper .page-item.disabled .page-link {
    color: #a0a6b7;
    background: #f7f8fc;
    border-color: #edf0f7;
}

.dataTables_wrapper .pagination {
    gap: 4px;
}

.table-actions .btn,
.btn-icon {
    border-color: rgba(137, 97, 230, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(72, 59, 132, 0.06);
}

.table-actions {
    overflow: visible;
}

.table-actions .btn {
    position: relative;
    overflow: visible;
}

.table-actions .btn[data-action-label]:hover,
.table-actions .btn[data-action-label]:focus {
    z-index: 80;
}

.dataTables_wrapper tbody tr:has(.table-actions .btn[data-action-label]:hover),
.dataTables_wrapper tbody tr:has(.table-actions .btn[data-action-label]:focus) {
    position: relative;
    z-index: 70;
}

.dataTables_wrapper tbody td:has(.table-actions .btn[data-action-label]:hover),
.dataTables_wrapper tbody td:has(.table-actions .btn[data-action-label]:focus) {
    position: relative;
    z-index: 75;
    overflow: visible;
}

.table-actions .btn[data-action-label]::after {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 90;
    padding: 6px 10px;
    color: #fff;
    background: #20263a;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    content: attr(data-action-label);
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
}

.table-actions .btn[data-action-label]::before {
    position: absolute;
    top: calc(100% + 3px);
    right: 12px;
    z-index: 90;
    width: 8px;
    height: 8px;
    background: #20263a;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) rotate(45deg);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.table-actions .btn[data-action-label]:hover::after,
.table-actions .btn[data-action-label]:focus::after {
    opacity: 1;
    transform: translateY(0);
}

.table-actions .btn[data-action-label]:hover::before,
.table-actions .btn[data-action-label]:focus::before {
    opacity: 1;
    transform: translateY(0) rotate(45deg);
}

.table-user-avatar {
    border: 0;
    display: inline-grid;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
    overflow: hidden;
    clip-path: circle(50% at 50% 50%);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.table-user-avatar-action {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.table-user-avatar-action:hover {
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.26);
    transform: translateY(-1px);
}

.table-user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    object-fit: cover;
}

.table-user-avatar.has-photo {
    background: #fff;
}

.table-user-link {
    padding: 0;
    color: #2d3446;
    background: transparent;
    border: 0;
    font-weight: 650;
    text-align: left;
}

.table-user-link:hover {
    color: var(--color-primario);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.table-switch {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.table-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.table-switch span {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: #d1d5db;
    box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.12);
    transition: background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.table-switch span::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #9ca3af;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.table-switch input:checked + span {
    background: rgba(37, 99, 235, 0.18);
}

.table-switch input:checked + span::before {
    transform: translateX(22px);
    background: var(--color-primario);
}

.table-switch input:disabled + span {
    opacity: 0.58;
    cursor: wait;
}

.table-user-identity {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.table-user-name-line {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 7px;
}

.table-password-warning {
    position: relative;
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--color-warning);
    border-radius: 50%;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--color-warning) 26%, transparent);
    cursor: help;
    font-size: 10px;
    line-height: 1;
}

.table-password-warning::after {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 20;
    padding: 6px 10px;
    color: #fff;
    background: #20263a;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    content: attr(data-action-label);
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
}

.seguimiento-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
}

.seguimiento-toolbar .list-search {
    flex: 1 1 280px;
}

.seguimiento-filters {
    display: flex;
    flex: 2 1 540px;
    flex-wrap: wrap;
    gap: 12px;
}

.seguimiento-filters .form-select {
    width: auto;
    min-width: 150px;
    height: 46px;
    color: #555b6d;
    border-color: rgba(137, 97, 230, 0.12);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(44, 34, 93, 0.06);
    font-size: 13px;
}

.seguimiento-table-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #4b5565;
    font-size: 14px;
}

.seguimiento-table-meta .form-select {
    width: 74px;
    color: var(--color-primario);
    border: 0;
    font-weight: 750;
}

.seguimiento-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0 !important;
}

.seguimiento-table-container {
    width: 100%;
    overflow-x: hidden;
}

.seguimiento-table thead th {
    color: #fff;
    background: var(--color-primario);
    border-color: var(--color-primario);
    white-space: nowrap;
}

.seguimiento-table thead th:first-child {
    border-top-left-radius: 12px;
}

.seguimiento-table thead th:last-child {
    border-top-right-radius: 12px;
}

.seguimiento-table thead i {
    float: right;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.seguimiento-table th,
.seguimiento-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.seguimiento-table th:nth-child(1),
.seguimiento-table td:nth-child(1) {
    width: 13%;
}

.seguimiento-table th:nth-child(2),
.seguimiento-table td:nth-child(2) {
    width: 11%;
}

.seguimiento-table th:nth-child(3),
.seguimiento-table td:nth-child(3) {
    width: 17%;
}

.seguimiento-table th:nth-child(4),
.seguimiento-table td:nth-child(4) {
    width: 15%;
}

.seguimiento-table th:nth-child(5),
.seguimiento-table td:nth-child(5) {
    width: 13%;
}

.seguimiento-table th:nth-child(6),
.seguimiento-table td:nth-child(6),
.seguimiento-table th:nth-child(7),
.seguimiento-table td:nth-child(7) {
    width: 10%;
}

.seguimiento-table th:nth-child(8),
.seguimiento-table td:nth-child(8) {
    width: 11%;
}

.seguimiento-client,
.seguimiento-user {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.seguimiento-client {
    width: 100%;
}

.seguimiento-user {
    width: 100%;
}

.seguimiento-client strong,
.seguimiento-user strong {
    display: block;
    color: #303649;
    font-weight: 750;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.seguimiento-user small {
    display: block;
    max-width: 100%;
    margin-top: 3px;
    color: #7a8498;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seguimiento-avatar,
.seguimiento-user-avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    min-width: 34px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.seguimiento-avatar {
    background: var(--avatar-bg, var(--color-primario));
}

.seguimiento-user-avatar {
    background: var(--color-primario);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.seguimiento-status {
    display: inline-flex;
    width: 100%;
    max-width: 128px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.seguimiento-status.is-review {
    color: #0c63ce;
    background: #dff1ff;
}

.seguimiento-status.is-progress {
    color: #d59a00;
    background: #fff3c8;
}

.seguimiento-status.is-validation {
    color: #6638c7;
    background: #eadcff;
}

.seguimiento-status.is-solved {
    color: #12957f;
    background: #d8f6ee;
}

.seguimiento-status.is-registered {
    color: #d22967;
    background: #ffe0eb;
}

.seguimiento-status.is-na {
    color: #5e6475;
    background: #e9ebf3;
}

.seguimiento-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.seguimiento-pagination p {
    margin: 0;
    color: #4f5668;
    font-size: 13px;
}

.seguimiento-pagination nav {
    display: inline-flex;
    gap: 8px;
    overflow-x: hidden;
}

.seguimiento-pagination .btn {
    min-width: 40px;
    height: 38px;
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .seguimiento-filters {
        flex-basis: 100%;
    }

    .seguimiento-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .seguimiento-filters .form-select {
        width: 100%;
    }

    .seguimiento-pagination nav {
        width: 100%;
        overflow-x: hidden;
        padding-bottom: 4px;
    }
}

.table-password-warning::before {
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    z-index: 20;
    width: 8px;
    height: 8px;
    background: #20263a;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px) rotate(45deg);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.table-password-warning:hover::after,
.table-password-warning:hover::before,
.table-password-warning:focus::after,
.table-password-warning:focus::before {
    opacity: 1;
    transform: translate(-50%, 0) rotate(0);
}

.table-password-warning:hover::before,
.table-password-warning:focus::before {
    transform: translate(-50%, 0) rotate(45deg);
}

.table-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.user-role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.1;
}

.user-card-view {
    position: relative;
    display: grid;
    gap: 22px;
}

.modal-user-card .modal-dialog {
    max-width: 430px;
}

.modal-user-card .modal-content {
    border-radius: 32px;
}

.modal-user-card .admin-modal-header {
    display: none;
}

.modal-user-card .modal-body {
    padding: 28px;
}

.user-card-close {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 3;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 50%;
}

.user-card-close::before,
.user-card-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    background: #64748b;
    border-radius: 999px;
    content: "";
}

.user-card-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.user-card-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.user-card-close:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.24);
}

.user-card-close:hover::before,
.user-card-close:hover::after {
    background: var(--color-danger);
}

.user-card-hero {
    display: grid;
    justify-items: center;
    gap: 14px;
    align-items: center;
    padding: 8px 20px 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-align: center;
}

.user-card-avatar {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border: 7px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.2);
    overflow: hidden;
    font-size: 42px;
    font-weight: 800;
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    background: #fff;
    object-fit: cover;
}

.user-card-avatar.has-photo {
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    clip-path: circle(50% at 50% 50%);
}

.user-card-identity h3 {
    margin: 0;
    color: #111827;
    font-size: 25px;
    font-weight: 650;
    line-height: 1.12;
}

.user-card-identity p {
    margin: 6px 0 14px;
    color: #6d7688;
    font-size: 15px;
}

.user-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.user-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.user-card-data {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
}

.user-card-data i {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    flex: 0 0 auto;
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.user-card-data span {
    display: block;
    margin-bottom: 3px;
    color: #8d92a6;
    font-size: 12px;
    font-weight: 650;
}

.user-card-data strong {
    color: #2d3446;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.btn-light {
    color: #5a5871;
    background: #f6f3ff;
    border-color: transparent;
}

.btn-light:hover {
    color: var(--color-primario);
    background: #eee8ff;
}

.dropdown-menu {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(72, 59, 132, 0.16);
}

.modal-content,
.offcanvas {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 22px 50px rgba(44, 34, 93, 0.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    overflow: hidden;
}

.modal-backdrop {
    background-color: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-header {
    min-height: 68px;
    align-items: center;
    padding: 42px 50px 10px;
    border-bottom: 0;
}

.admin-modal-header {
    background: transparent;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #20263a;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.admin-modal-title-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    font-size: 22px;
}

.admin-modal-title-text {
    display: grid;
    gap: 3px;
}

.admin-modal-title-text strong {
    color: #20263a;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
}

.admin-modal-title-text small {
    color: #7c8599;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
}

.admin-modal-header .btn-close {
    position: relative;
    width: 32px;
    height: 32px;
    margin: 0;
    opacity: 0.58;
    background-image: none;
    border-radius: 50%;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.admin-modal-header .btn-close::before,
.admin-modal-header .btn-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    background: #64748b;
    border-radius: 999px;
    content: "";
    transition: background 0.18s ease;
}

.admin-modal-header .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.admin-modal-header .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.admin-modal-header .btn-close:hover {
    background-color: rgba(220, 38, 38, 0.18);
    opacity: 1;
    filter: none;
}

.admin-modal-header .btn-close:hover::before,
.admin-modal-header .btn-close:hover::after {
    background: var(--color-danger);
}

.modal-body {
    padding: 24px 50px 36px;
}

.admin-form .form-label {
    margin-bottom: 7px;
    color: #2d3446;
    font-size: 13px;
    font-weight: 700;
}

.admin-form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 2px;
    color: #2d3446;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-form-section-title::after {
    display: block;
    flex: 1;
    height: 1px;
    background: #e5e9f2;
    content: "";
}

.client-stepper {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.client-stepper-item {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #667085;
    background: #f7f8fc;
    border: 1px solid #edf0f7;
    border-radius: 8px;
    text-align: left;
}

.client-stepper-item span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #7a8498;
    background: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.client-stepper-item strong {
    font-size: 13px;
}

.client-stepper-item.is-active {
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

.client-stepper-item.is-active span {
    color: #fff;
    background: var(--color-primario);
}

.client-form-step {
    display: none;
}

.client-form-step.is-active {
    display: block;
}

.client-contact-list {
    display: grid;
    gap: 14px;
}

.client-contact-card {
    padding: 14px;
    background: #fbfcff;
    border: 1px solid #edf0f7;
    border-radius: 8px;
}

.client-contact-card-head,
.client-contact-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.client-contact-card-head {
    margin-bottom: 14px;
}

.client-contact-card-head strong {
    color: #303649;
    font-size: 14px;
}

.client-contact-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #596174;
    font-size: 12px;
    font-weight: 700;
}

.client-form-actions {
    flex-wrap: wrap;
}

.client-contact-view-list {
    display: grid;
    gap: 10px;
}

.client-contact-view-item {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.4fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f7f8fc;
    border: 1px solid #edf0f7;
    border-radius: 8px;
}

.client-contact-view-item strong,
.client-contact-view-item small,
.client-contact-view-item span:not(.badge) {
    display: block;
}

.client-contact-view-item small,
.client-contact-view-item span:not(.badge) {
    color: #7a8498;
    font-size: 12px;
}

.contact-client-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
}

.contact-client-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 10px;
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.contact-client-chip button {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    padding: 0;
    color: #667085;
    background: #fff;
    border: 0;
    border-radius: 50%;
    font-size: 10px;
}

@media (max-width: 575.98px) {
    .client-stepper,
    .client-contact-card-head,
    .client-contact-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .client-contact-view-item {
        grid-template-columns: 1fr;
    }
}


.admin-form .form-control,
.admin-form .form-select {
    min-height: 44px;
    color: #2d3446;
    background-color: #fff;
    border: 1px solid #d7ddea;
    border-radius: 12px;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.admin-form #contenidoPlantillaCorreo.form-control {
    min-height: 390px;
    height: 430px;
    color: #dbeafe !important;
    background: #0f172a !important;
    background-color: #0f172a !important;
    border: 0 !important;
    border-radius: 0;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.65;
    caret-color: #ffffff;
    resize: vertical;
    scrollbar-color: #334155 #0f172a;
}

.admin-form #contenidoPlantillaCorreo.form-control:focus {
    color: #f8fafc !important;
    background: #0b1120 !important;
    background-color: #0b1120 !important;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.42);
}

.admin-form #contenidoPlantillaCorreo.form-control::selection {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.45);
}

.admin-form #contenidoPlantillaCorreo.form-control::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.admin-form #contenidoPlantillaCorreo.form-control::-webkit-scrollbar-track {
    background: #0f172a;
}

.admin-form #contenidoPlantillaCorreo.form-control::-webkit-scrollbar-thumb {
    background: #334155;
    border: 3px solid #0f172a;
    border-radius: 999px;
}

.admin-floating-field {
    position: relative;
}

.admin-floating-field > i {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    color: #8d96a8;
    font-size: 18px;
    transform: translateY(-50%);
    transition: color 0.18s ease;
}

.admin-floating-field .form-control,
.admin-floating-field .form-select {
    height: 58px;
    padding: 22px 48px 10px 48px;
}

.admin-floating-field .admin-password-toggle + label,
.admin-floating-field input[type="password"],
.admin-floating-field input[type="text"][name="contrasena"],
.admin-floating-field input[type="text"][name="confirmar_contrasena"] {
    padding-right: 52px;
}

.admin-floating-field .form-select {
    padding-top: 22px;
    padding-bottom: 10px;
}

.admin-floating-field label {
    position: absolute;
    top: 17px;
    left: 48px;
    z-index: 3;
    margin: 0;
    color: #7c8599;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.18s ease, color 0.18s ease;
}

.admin-floating-field .form-control:focus + label,
.admin-floating-field .form-control:not(:placeholder-shown) + label,
.admin-floating-field .form-select + label,
.admin-floating-select label {
    color: var(--color-primario);
    transform: translateY(-10px) scale(0.78);
}

.admin-floating-field:focus-within > i {
    color: var(--color-primario);
}

.admin-floating-field .form-control:disabled,
.admin-floating-field .form-control[readonly],
.admin-floating-field .form-select:disabled {
    color: #7c8599;
    background: #eef2f7;
    border-color: #d5dbe6;
    cursor: not-allowed;
    opacity: 1;
}

.admin-floating-field .form-control:disabled + label,
.admin-floating-field .form-control[readonly] + label,
.admin-floating-field .form-select:disabled + label {
    color: #8d96a8;
}

.admin-floating-field:has(.form-control:disabled) > i,
.admin-floating-field:has(.form-control[readonly]) > i,
.admin-floating-field:has(.form-select:disabled) > i {
    color: #9aa4b5;
}

.admin-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 4;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    color: #7c8599;
    background: transparent;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: color 0.18s ease, background 0.18s ease;
}

.admin-password-toggle:hover,
.admin-password-toggle:focus {
    color: var(--color-primario);
    background: rgba(37, 99, 235, 0.08);
    outline: none;
}

.admin-password-toggle i {
    position: static;
    font-size: 15px;
    transform: none;
}

.password-rules-box {
    display: grid;
    gap: 9px;
    padding: 13px 15px;
    color: #4b5563;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    font-size: 13px;
}

.password-rules-box strong {
    color: #2d3446;
    font-weight: 600;
}

.password-rules-box ul {
    display: grid;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.password-rules-box li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.35;
}

.password-rules-box li i {
    margin-top: 2px;
    font-size: 12px;
}

.password-rules-box li.is-valid {
    color: #2d3446;
}

.password-rules-box li.is-valid i {
    color: var(--color-success);
}

.password-rules-box li.is-pending {
    color: var(--color-danger);
}

.password-rules-box li.is-pending i {
    color: var(--color-danger);
}

.admin-form .form-check {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d7ddea;
    border-radius: 12px;
}

.admin-form .form-check-input {
    width: 19px;
    height: 19px;
    margin: 0;
    border: 1px solid #9aa4b5;
    box-shadow: none;
}

.admin-form .form-check-input:checked {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

.admin-form .form-check-label {
    color: #2d3446;
    font-size: 13px;
    font-weight: 650;
}

.admin-switch-line {
    display: flex;
    min-height: 78px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 2px 2px 10px;
}

.admin-switch-line > span {
    display: grid;
    flex: 1;
    gap: 5px;
    min-width: 0;
    cursor: pointer;
}

.admin-switch-line > span strong {
    color: #2d3446;
    font-size: 16px;
    font-weight: 650;
    line-height: 1;
}

.admin-switch-line > span small {
    max-width: 360px;
    color: #6d7688;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
}

.admin-switch-line .form-check {
    min-height: 0;
    padding: 0;
    margin: 3px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.admin-switch-line .form-check-input {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 18px;
    margin: 3px 0 0;
    background-color: #e5e7eb;
    background-image: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.12);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.admin-switch-line .form-check-input::before {
    display: block;
    width: 14px;
    height: 14px;
    margin: 2px;
    background: #9ca3af;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.16);
    content: "";
    transition: transform 0.18s ease, background 0.18s ease;
}

.admin-switch-line .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.admin-switch-line .form-check-input:checked {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
    background-image: none;
}

.admin-switch-line .form-check-input:checked::before {
    background: #fff;
    transform: translateX(12px);
}

.admin-switch-copy {
    display: grid;
    gap: 5px;
    flex: 1;
    margin: 0;
    cursor: pointer;
}

.admin-switch-copy strong {
    color: #2d3446;
    font-size: 16px;
    font-weight: 650;
    line-height: 1;
}

.admin-switch-copy span {
    max-width: 360px;
    color: #6d7688;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.15;
}

.admin-form .btn {
    min-height: 42px;
    padding-right: 18px;
    padding-left: 18px;
    border-radius: 999px;
}

.modal-form-actions,
.admin-modal-actions,
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 36px;
}

.modal-form-actions .btn,
.admin-modal-actions .btn,
.modal-footer .btn,
.admin-alert-actions .btn,
.admin-swal-btn {
    display: inline-flex;
    min-width: 120px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1;
}

.modal-form-actions .btn-light,
.admin-modal-actions .btn-light,
.modal-footer .btn-light,
.admin-alert-actions .btn-light,
.admin-swal-btn.btn-light {
    color: #5f5a74;
    background: #f5f0ff;
    border-color: transparent;
    box-shadow: none;
}

.modal-form-actions .btn-light:hover,
.admin-modal-actions .btn-light:hover,
.modal-footer .btn-light:hover,
.admin-alert-actions .btn-light:hover,
.admin-swal-btn.btn-light:hover {
    color: #403b57;
    background: #ebe4fb;
}

.admin-form .col-12.d-flex.justify-content-end {
    margin-top: 38px;
}

.admin-toast-container {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 2200;
    display: flex;
    width: min(390px, calc(100% - 32px));
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    transform: translateX(-50%);
}

.admin-toast {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 17px;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    font-size: 14px;
    font-weight: 650;
    animation: adminToastIn 0.26s ease-out both;
}

.admin-toast i {
    font-size: 16px;
}

.admin-toast-success {
    background: var(--color-success);
}

.admin-toast-danger {
    background: var(--color-danger);
}

.admin-toast-warning {
    background: var(--color-warning);
}

.admin-toast-info {
    background: var(--color-info);
}

.admin-toast.is-hiding {
    animation: adminToastOut 0.22s ease-in both;
}

@keyframes adminToastIn {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.98);
    }

    70% {
        opacity: 1;
        transform: translateY(-3px) scale(1);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes adminToastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }
}

.swal2-container.swal2-backdrop-show {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.admin-swal-popup {
    position: relative;
    width: min(430px, calc(100% - 28px));
    padding: 34px 36px 30px;
    color: #20263a;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--color-primario);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(44, 34, 93, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

.admin-swal-popup::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border: 10px solid rgba(255, 255, 255, 0.44);
    border-radius: inherit;
    box-shadow:
        inset 0 0 22px rgba(255, 255, 255, 0.92),
        inset 0 0 34px rgba(37, 99, 235, 0.10);
    content: "";
}

.admin-swal-popup > * {
    position: relative;
    z-index: 1;
}

.admin-swal-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 16px;
    color: #fff;
    background: var(--color-danger);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18);
    font-size: 22px;
}

.admin-swal-title {
    padding: 0;
    color: #20263a;
    font-size: 22px;
    font-weight: 600;
}

.admin-swal-html {
    margin: 8px 0 0;
}

.admin-swal-copy {
    margin: 0;
    color: #6d7688;
    font-size: 14px;
    line-height: 1.45;
}

.admin-swal-actions {
    gap: 10px;
    margin-top: 26px;
}

.admin-swal-btn {
    border-radius: 999px;
}

.admin-swal-show {
    animation: adminToastIn 0.24s ease-out both;
}

.admin-swal-hide {
    animation: adminToastOut 0.18s ease-in both;
}

.admin-alert-modal {
    padding: 0;
}

#alertaAdminModal .modal-sm {
    max-width: 460px;
}

.admin-alert-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
}

.admin-alert-body {
    display: grid;
    justify-items: center;
    padding: 42px 34px 32px;
    text-align: center;
}

.admin-alert-icon {
    position: relative;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 18px;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
    font-size: 24px;
}

.admin-alert-icon.is-success {
    background: var(--color-success);
}

.admin-alert-icon.is-danger {
    background: var(--color-danger);
    animation: none;
}

.admin-alert-icon.is-danger::before,
.admin-alert-icon.is-danger::after {
    position: absolute;
    inset: -9px;
    border: 2px solid transparent;
    border-top-color: var(--color-danger);
    border-right-color: rgba(220, 38, 38, 0.28);
    border-radius: 50%;
    content: "";
    animation: adminAlertDangerRing 1.05s linear infinite;
}

.admin-alert-icon.is-danger::after {
    inset: -15px;
    border-top-color: rgba(220, 38, 38, 0.28);
    border-right-color: transparent;
    border-bottom-color: var(--color-danger);
    animation-duration: 1.7s;
    animation-direction: reverse;
}

.admin-alert-icon.is-danger i {
    position: relative;
    z-index: 1;
}

.admin-alert-icon.is-warning {
    background: var(--color-warning);
}

.admin-alert-icon.is-info {
    background: var(--color-info);
}

.admin-alert-body h5 {
    margin: 0;
    color: #20263a;
    font-size: 22px;
    font-weight: 600;
}

.admin-alert-body p {
    max-width: 330px;
    margin: 10px 0 0;
    color: #6d7688;
    font-size: 14px;
    line-height: 1.45;
}

.admin-alert-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.admin-alert-actions .btn {
    border-radius: 999px;
}

#standarOffcanvas {
    width: min(420px, calc(100vw - 22px));
    top: 160px;
    right: 0;
    bottom: auto;
    height: auto;
    max-height: calc(100vh - 190px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 30px 0 0 30px;
    box-shadow: 0 28px 70px rgba(44, 34, 93, 0.32);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    transform: translateX(calc(100% + 48px));
    transition: transform 0.28s cubic-bezier(0.22, 0.74, 0.22, 1), visibility 0.28s ease;
}

#standarOffcanvas.show,
#standarOffcanvas.showing {
    transform: none;
}

#standarOffcanvas.hiding {
    transform: translateX(calc(100% + 48px));
}

#standarOffcanvas .offcanvas-header {
    padding: 34px 36px 10px;
    color: #20263a;
    background: transparent !important;
}

#standarOffcanvas .offcanvas-header h5 {
    color: #000;
    font-size: 20px;
    font-weight: 600;
}

#standarOffcanvas .btn-close {
    position: relative;
    width: 34px;
    height: 34px;
    background-image: none;
    border-radius: 50%;
    opacity: 0.65;
}

#standarOffcanvas .btn-close::before,
#standarOffcanvas .btn-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    background: #64748b;
    border-radius: 999px;
    content: "";
}

#standarOffcanvas .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#standarOffcanvas .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#standarOffcanvas .btn-close:hover {
    background: rgba(220, 38, 38, 0.12);
    opacity: 1;
}

#standarOffcanvas .btn-close:hover::before,
#standarOffcanvas .btn-close:hover::after {
    background: var(--color-danger);
}

#standarOffcanvas .offcanvas-body {
    max-height: calc(100vh - 270px);
    padding: 14px 36px 36px;
    overflow-y: auto;
}

.offcanvas-backdrop,
.offcanvas-backdrop.fade,
.offcanvas-backdrop.show {
    background: transparent;
    opacity: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
}

#standarOffcanvas.offcanvas-mail-versions {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(520px, 100vw) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: rgba(255, 255, 255, 0.92);
    border-width: 0 0 0 1px;
    border-color: rgba(226, 232, 240, 0.9);
    border-radius: 0 !important;
    box-shadow: -28px 0 60px rgba(15, 23, 42, 0.20);
    transform: translateX(100%);
}

#standarOffcanvas.offcanvas-mail-versions.show,
#standarOffcanvas.offcanvas-mail-versions.showing {
    transform: none;
}

#standarOffcanvas.offcanvas-mail-versions.hiding {
    transform: translateX(100%);
}

#standarOffcanvas.offcanvas-mail-versions .offcanvas-header {
    padding: 28px 32px 14px;
    border-bottom: 0;
}

#standarOffcanvas.offcanvas-mail-versions .offcanvas-header h5 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.offcanvas-title-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border-radius: 50%;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
    font-size: 16px;
}

.offcanvas-title-text {
    display: grid;
    gap: 2px;
}

.offcanvas-title-text strong {
    color: #111827;
    font-size: 18px;
    font-weight: 650;
}

.offcanvas-title-text small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

#standarOffcanvas.offcanvas-mail-versions .offcanvas-body {
    max-height: calc(100vh - 96px) !important;
    padding: 22px 32px 32px;
}

body:has(#standarOffcanvas.offcanvas-mail-versions.show) .offcanvas-backdrop.show,
body:has(#standarOffcanvas.offcanvas-mail-versions.showing) .offcanvas-backdrop.show {
    background: rgba(15, 23, 42, 0.72) !important;
    opacity: 0.32 !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

body.mail-versions-offcanvas-open .offcanvas-backdrop,
body.mail-versions-offcanvas-open .offcanvas-backdrop.fade,
body.mail-versions-offcanvas-open .offcanvas-backdrop.show {
    background: rgba(15, 23, 42, 0.72) !important;
    opacity: 0.32 !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

.profile-panel {
    display: grid;
    gap: 22px;
}

.profile-panel-hero {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.profile-panel-avatar {
    position: relative;
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border: 6px solid rgba(255, 255, 255, 0.84);
    border-radius: 50%;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18);
    overflow: visible;
    font-size: 34px;
    font-weight: 800;
}

.profile-photo-action {
    position: absolute;
    right: -2px;
    bottom: 6px;
    z-index: 3;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--color-primario);
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
    transition: transform 0.18s ease, background 0.18s ease;
}

.profile-photo-action:hover,
.profile-photo-action:focus {
    background: #1d4ed8;
    outline: none;
    transform: translateY(-1px);
}

.profile-photo-action i {
    font-size: 13px;
}

.profile-panel-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-panel-hero h4 {
    margin: 6px 0 0;
    color: #000;
    font-size: 22px;
    font-weight: 650;
}

.profile-panel-hero p {
    margin: 0;
    color: #6d7688;
    font-size: 14px;
}

.profile-panel-data {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.profile-panel-data div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-size: 14px;
}

.profile-panel-data i {
    width: 18px;
    color: var(--color-primario);
}

.profile-panel-menu {
    display: grid;
    gap: 8px;
}

.profile-panel-menu button,
.profile-panel-menu a {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 4px;
    color: #2d3446;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
    font-size: 14px;
    font-weight: 550;
    transition: background 0.18s ease, color 0.18s ease;
}

.profile-panel-menu button:hover,
.profile-panel-menu a:hover {
    color: var(--color-primario);
    background: color-mix(in srgb, var(--color-primario) 8%, #fff);
    border-radius: 12px;
}

.profile-panel-menu .profile-menu-danger {
    color: var(--color-danger);
}

.profile-panel-menu .profile-menu-danger:hover {
    color: var(--color-danger);
    background: color-mix(in srgb, var(--color-danger) 8%, #fff);
}

.profile-panel-menu span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-panel-menu span i {
    width: 18px;
    color: currentColor;
}

.profile-crop-form {
    display: grid;
    gap: 28px;
}

.profile-crop-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 28px;
    align-items: center;
}

.profile-crop-stage {
    display: grid;
    justify-items: center;
}

.profile-crop-frame {
    position: relative;
    width: min(320px, 100%);
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.18) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.18) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.18) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.18) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 24px;
    box-shadow: inset 0 0 0 999px rgba(15, 23, 42, 0.06), 0 18px 46px rgba(44, 34, 93, 0.12);
    cursor: grab;
    overflow: hidden;
    touch-action: none;
}

.profile-crop-frame.is-dragging {
    cursor: grabbing;
}

.profile-crop-frame::before {
    position: absolute;
    z-index: 0;
    inset: 18px;
    background: #fff;
    border-radius: 50%;
    content: "";
}

.profile-crop-frame img {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    max-width: none;
    user-select: none;
    will-change: transform;
}

.profile-crop-mask {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
}

.profile-crop-mask::before {
    position: absolute;
    inset: 18px;
    border: 3px solid rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow:
        0 0 0 999px rgba(15, 23, 42, 0.34),
        0 16px 38px rgba(15, 23, 42, 0.18);
    content: "";
}

.profile-crop-controls {
    display: grid;
    gap: 20px;
}

.profile-crop-controls h6 {
    margin: 0;
    color: #20263a;
    font-size: 19px;
    font-weight: 600;
}

.profile-crop-controls p {
    max-width: 330px;
    margin: 6px 0 0;
    color: #6d7688;
    font-size: 14px;
    line-height: 1.4;
}

.profile-crop-range {
    display: grid;
    gap: 10px;
}

.profile-crop-range span,
.profile-crop-preview-wrap > span {
    color: #2d3446;
    font-size: 13px;
    font-weight: 650;
}

.profile-crop-range input {
    accent-color: var(--color-primario);
}

.profile-crop-preview-wrap {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.profile-crop-preview-wrap canvas {
    width: 112px;
    height: 112px;
    background: #fff;
    border: 5px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.18);
}

.profile-crop-actions {
    margin-top: 4px;
}

@keyframes adminAlertDangerRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.footer {
    flex-shrink: 0;
    padding: 10px 30px 24px 30px;
}

.admin-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-footer-credit a {
    display: inline-flex;
    align-items: center;
}

.admin-footer-credit img {
    display: block;
    width: auto;
    height: 18px;
}

@media (max-width: 991.98px) {
    .admin-topbar {
        left: 0;
        top: 14px;
        right: 14px;
        left: 14px;
    }

    .vertical-menu {
        inset: 0 auto 0 0;
        transform: translateX(-100%);
    }

    body.sidebar-enable .vertical-menu {
        transform: translateX(0);
    }

    body.sidebar-enable .vertical-menu-fondo {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding-top: 0;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-head-user {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .page-head-user-data {
        justify-items: start;
    }

    .page-content,
    .footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-aside {
        display: none;
    }
}

@media (max-width: 575.98px) {
    #standarOffcanvas {
        top: 92px;
        right: 0;
        left: auto;
        width: calc(100vw - 22px);
        max-height: calc(100vh - 112px);
        border-radius: 24px 0 0 24px;
    }

    #standarOffcanvas .offcanvas-header {
        padding: 24px 22px 8px;
    }

    #standarOffcanvas .offcanvas-body {
        max-height: calc(100vh - 178px);
        padding: 12px 22px 24px;
    }

    .admin-footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-crop-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .profile-crop-controls {
        gap: 14px;
    }

    .profile-crop-preview-wrap {
        justify-items: center;
    }

    .theme-colors-grid {
        grid-template-columns: 1fr;
    }

    .datos-empresa-grid,
    .empresa-logo-upload,
    .mail-config-grid,
    .mail-template-grid,
    .mail-detail-grid {
        grid-template-columns: 1fr;
    }

    .mail-detail-list div {
        grid-template-columns: 30px 1fr;
        align-items: start;
    }

    .mail-detail-list strong {
        grid-column: 2;
    }

    .mail-config-card-head {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .empresa-logo-preview {
        width: 100%;
        max-width: 280px;
    }

    .empresa-logo-upload .btn {
        justify-self: start;
    }

    .user-card-hero,
    .user-card-grid {
        grid-template-columns: 1fr;
    }

    .user-card-hero {
        justify-items: center;
        text-align: center;
    }

    .user-card-avatar {
        width: 128px;
        height: 128px;
        font-size: 36px;
    }

    .datos-empresa-row {
        grid-template-columns: 1fr;
    }

    .datos-empresa-row .btn-icon {
        justify-self: end;
    }

    .modal-header {
        padding: 22px 20px 14px;
    }

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

    .admin-modal-title-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .admin-modal-title-text strong {
        font-size: 18px;
    }

    .page-content,
    .footer,
    .login-panel,
    .login-centered-card {
        padding: 20px;
    }

    .login-centered-card {
        padding: 0;
    }

    .login-card-header {
        min-height: 128px;
        padding: 24px 24px 38px;
    }

    .login-card-body {
        padding: 22px;
    }

    .page-title {
        font-size: 22px;
    }
}

/* Escala compacta del administrador */
:root {
    --sidebar-width: 210px;
    --topbar-height: 50px;
}

html,
body {
    font-size: 11px;
}

.header-menu {
    min-height: 56px;
    padding: 16px 12px 9px;
}

.admin-brand-logo {
    width: auto;
    max-width: 116px;
    max-height: 28px;
    object-fit: contain;
}

.menu-user-card {
    padding: 7px 11px 9px;
}

.menu-user-avatar {
    width: 80px;
    height: 80px;
    font-size: 12px;
}

#sidebar-menu {
    padding-top: 2px;
}

.side-menu {
    padding: 3px 9px 12px;
}

.side-menu > li {
    margin-bottom: 5px;
}

.side-menu a {
    min-height: 35px;
    gap: 8px;
    padding: 8px 8px;
    border-radius: 8px;
    font-size: 12px;
}

.side-menu i {
    font-size: 13px;
}

.sub-menu {
    padding: 3px 0 8px 27px;
}

.sub-menu a {
    min-height: 29px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 11.5px;
}

.menu-developer-credit {
    padding: 10px 14px 14px;
}

.menu-developer-credit span {
    font-size: 11px;
}

.menu-developer-credit img {
    max-height: 18px;
}

.page-content {
    padding: 16px 20px 16px 20px;
}

.page-head {
    margin-bottom: 14px;
}

.page-head h1,
.page-title {
    font-size: 19px;
}

.page-head-breadcrumb {
    margin-bottom: 5px;
    font-size: 11.5px;
}

.page-head-user {
    min-height: 48px;
    padding: 6px 20px 6px 16px;
}

.page-head-user-data strong {
    font-size: 13px;
}

.page-head-user-data small {
    font-size: 11.5px;
}

.page-head-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.page-head-logout {
    min-height: 29px;
    padding: 0 11px;
    font-size: 11.5px;
}

.content-panel,
.metric-card {
    padding: 14px;
    border-radius: 12px;
}

.list-toolbar {
    margin-bottom: 14px;
}

.list-search .form-control {
    min-height: 34px;
    font-size: 12px;
}

.table {
    font-size: 12px;
}

.table > :not(caption) > * > * {
    padding: 0.46rem 0.58rem;
}

.modal-dialog {
    font-size: 12.5px;
}

.modal-header {
    padding: 24px 34px 6px;
}

.modal-body {
    padding: 16px 34px 24px;
}

.admin-modal-title-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
}

.admin-modal-title-text strong {
    font-size: 17px;
}

.admin-modal-title-text small {
    font-size: 12px;
}

.admin-floating-field .form-control,
.admin-floating-field .form-select {
    min-height: 50px;
    font-size: 12.5px;
}

.modal-form-actions .btn,
.admin-modal-actions .btn,
.modal-footer .btn,
.admin-alert-actions .btn,
.admin-swal-btn {
    min-height: 35px;
    padding: 0 16px;
    font-size: 12.5px;
}

@media (max-width: 991.98px) {
    .page-content {
        padding: 18px;
    }
}

@media (max-width: 575.98px) {
    .modal-header {
        padding: 22px 20px 12px;
    }

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

    .admin-modal-title-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .admin-modal-title-text strong {
        font-size: 18px;
    }

    .page-title,
    .page-head h1 {
        font-size: 21px;
    }
}

/* Scrollbars finos y temáticos */
html,
body,
* {
    scrollbar-color: var(--scroll-color, var(--color-primario)) rgba(148, 163, 184, 0.12);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.10) !important;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-color, var(--color-primario)) !important;
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--scroll-color, var(--color-primario)) 82%, #000) !important;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent !important;
}

.scroll-primary {
    --scroll-color: var(--color-primario);
}

.scroll-secondary,
.scroll-secondart {
    --scroll-color: var(--color-secundario);
}

.scroll-success {
    --scroll-color: var(--color-success);
}

.scroll-danger {
    --scroll-color: var(--color-danger);
}

.scroll-warning {
    --scroll-color: var(--color-warning);
}

.scroll-info {
    --scroll-color: var(--color-info);
}

.scroll-menu {
    --scroll-color: var(--color-menu);
}

.list-toolbar .btn-toolbar-action {
    font-size: 13px;
    font-weight: 700;
}

/* Perfil flotante compacto */
#standarOffcanvas:not(.offcanvas-mail-versions) {
    top: 118px;
    width: min(390px, calc(100vw - 22px));
    max-height: calc(100vh - 140px);
}

#standarOffcanvas:not(.offcanvas-mail-versions) .offcanvas-header {
    padding: 22px 28px 6px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .offcanvas-header h5 {
    font-size: 17px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .btn-close {
    width: 30px;
    height: 30px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .offcanvas-body {
    max-height: calc(100vh - 196px);
    padding: 10px 28px 28px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel {
    gap: 16px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-hero {
    gap: 7px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-avatar {
    width: 92px;
    height: 92px;
    border-width: 5px;
    font-size: 26px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-photo-action {
    right: -1px;
    bottom: 4px;
    width: 28px;
    height: 28px;
    border-width: 2px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-photo-action i {
    font-size: 11px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-hero h4 {
    margin-top: 4px;
    font-size: 18px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-hero p,
#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-data div,
#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-menu button,
#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-menu a {
    font-size: 12.5px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-data {
    gap: 6px;
    padding: 10px 0;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-data div {
    gap: 8px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-menu {
    gap: 5px;
}

#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-menu button,
#standarOffcanvas:not(.offcanvas-mail-versions) .profile-panel-menu a {
    min-height: 40px;
    gap: 10px;
}

@media (max-width: 575.98px) {
    #standarOffcanvas:not(.offcanvas-mail-versions) {
        top: 82px;
        max-height: calc(100vh - 98px);
    }

    #standarOffcanvas:not(.offcanvas-mail-versions) .offcanvas-body {
        max-height: calc(100vh - 150px);
        padding: 10px 22px 24px;
    }
}

/* Login y pantallas de acceso compactas */
.login-centered-shell {
    gap: 18px;
    padding: 20px;
}

.login-centered-card {
    width: min(100%, 326px);
    border-radius: 24px;
    box-shadow:
        0 22px 54px rgba(37, 99, 235, 0.15),
        0 10px 24px rgba(15, 23, 42, 0.08);
}

.login-card-header,
.recovery-card-header {
    min-height: 136px;
    padding: 22px 24px 54px;
}

.login-card-header::after {
    bottom: -24px;
    height: 48px;
}

.login-card-header img {
    width: min(146px, 66%);
    transform: translateY(13px);
}

.login-wave {
    bottom: -28px;
    height: 58px;
    background-image: url("data:image/svg+xml,%3Csvg width='302' height='58' viewBox='0 0 302 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 17C30.2 9 45.3 9 75.5 17C105.7 25 120.8 25 151 17C181.2 9 196.3 9 226.5 17C256.7 25 271.8 25 302 17V58H0V17Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 302px 58px;
}

.login-wave-two {
    bottom: -24px;
    height: 54px;
    background-image: url("data:image/svg+xml,%3Csvg width='302' height='54' viewBox='0 0 302 54' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 18C30.2 12 45.3 12 75.5 18C105.7 24 120.8 24 151 18C181.2 12 196.3 12 226.5 18C256.7 24 271.8 24 302 18V54H0V18Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 302px 54px;
    background-position-x: -151px;
}

.login-card-body,
.recovery-card .login-card-body {
    z-index: 4;
    min-height: 0;
    gap: 10px;
    margin-top: -6px;
    padding: 24px 30px 24px;
}

.login-centered-card h1 {
    position: relative;
    z-index: 5;
    margin-top: -2px;
    font-size: 21px;
    line-height: 1.12;
}

.login-form .btn[type="submit"] {
    border-radius: 999px;
    font-size: 14px;
}

.login-copy {
    font-size: 12.5px;
    line-height: 1.18;
}

.login-form {
    gap: 12px;
}

.floating-field input {
    height: 44px;
    padding: 17px 40px 7px 40px;
    font-size: 12.5px;
}

.floating-field i {
    left: 13px;
    font-size: 14px;
}

.floating-field label {
    top: 12px;
    left: 40px;
    font-size: 12.5px;
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label {
    transform: translateY(-8px) scale(0.78);
}

.password-toggle {
    right: 8px;
    width: 28px;
    height: 28px;
}

.password-toggle i {
    font-size: 13px;
}

.login-forgot {
    margin-top: 2px;
}

.login-forgot a {
    font-size: 11.5px;
}

.login-credit {
    gap: 6px;
    font-size: 11.5px;
}

.login-credit img {
    height: 15px;
}

.login-toast {
    padding: 11px 15px;
    font-size: 12.5px;
}

@media (max-width: 575.98px) {
    .login-centered-shell {
        padding: 16px;
    }

    .login-centered-card {
        width: min(100%, 316px);
        border-radius: 23px;
    }

    .login-card-header,
    .recovery-card-header {
        min-height: 126px;
        padding: 20px 22px 50px;
    }

    .login-card-body,
    .recovery-card .login-card-body {
        margin-top: -5px;
        padding: 23px 26px 24px;
    }
}
