.rutina-editor {
    --re-primary: #3299e5;
    --re-primary-2: #5062f5;
    --re-primary-deep: #1f6fb0;
    --re-hero-1: #2ca5ff;
    --re-hero-2: #6e52d3;
    --re-hero-3: #4123ac;
    --re-primary-soft: rgba(50, 153, 229, 0.14);
    --re-violet-soft: rgba(80, 98, 245, 0.14);
    --re-border: rgba(11, 10, 59, 0.14);
    --re-border-strong: rgba(11, 10, 59, 0.22);
    --re-surface: #ffffff;
    --re-soft: #f6f8ff;
    --re-soft-2: #eef5ff;
    --re-text: #0b0a3b;
    --re-muted: rgba(11, 10, 59, 0.58);
    --re-success: #1f9d63;
    --re-shadow: 0 18px 38px rgba(11, 10, 59, 0.08);
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    color: var(--re-text);
    position: relative;
}

.rutina-editor.container-fluid {
    max-width: min(1820px, calc(100% - 20px));
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.rutina-editor.caja-rutina-style.container-fluid {
    max-width: min(1820px, calc(100% - 16px));
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.rutina-editor::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 200px;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(135deg, var(--re-hero-1) 0%, var(--re-hero-2) 44%, var(--re-hero-3) 100%);
    opacity: 0.95;
    pointer-events: none;
}

.rutina-editor > .d-flex:first-child {
    position: relative;
    z-index: 1;
    padding: 16px 18px;
    margin-bottom: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 20px 42px rgba(30, 23, 84, 0.22);
    backdrop-filter: blur(10px);
}

.rutina-editor h3 {
    color: #ffffff;
    font-family: "AtleticoBold", "DM Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2vw, 2rem);
    letter-spacing: 0.01em;
}

.rutina-editor small.text-muted,
.rutina-editor .text-muted {
    color: var(--re-muted) !important;
}

.rutina-editor > .d-flex:first-child small.text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

.rutina-editor .card {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--re-shadow);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
}

.rutina-editor .card-footer {
    background: linear-gradient(180deg, rgba(246, 248, 255, 0.45) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-top: 1px solid var(--re-border);
    padding: 1rem 1.25rem 1.1rem;
}

.rutina-editor > .card {
    margin-left: 0;
    margin-right: 0;
}

.rutina-editor .form-label {
    color: var(--re-text);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.rutina-editor .re-input {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--re-border);
    background: var(--re-soft);
    color: var(--re-text);
    padding: 10px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rutina-editor .re-input:focus {
    border-color: var(--re-primary);
    box-shadow: 0 0 0 0.14rem rgba(50, 153, 229, 0.22);
    background: #ffffff;
    outline: none;
}

.rutina-editor .re-input:disabled {
    opacity: 1;
    color: var(--re-text);
    background: linear-gradient(180deg, #f6f8ff 0%, #edf3ff 100%);
    border-color: rgba(11, 10, 59, 0.1);
}

.rutina-editor .re-input-sm {
    min-height: 40px;
    font-size: 0.9rem;
}

.rutina-editor .re-textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.45;
}

.rutina-editor .re-center {
    text-align: center;
}

.rutina-editor .btn {
    border-radius: 999px;
    font-weight: 700;
}

.rutina-editor .btn-primary,
.rutina-editor .btn-success,
.rutina-editor .btn-outline-secondary {
    min-height: 44px;
}

.rutina-editor .btn-primary {
    background: linear-gradient(44deg, var(--re-primary) 10%, var(--re-primary-2) 86%);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(50, 153, 229, 0.22);
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.rutina-editor .btn-primary:hover {
    background: linear-gradient(135deg, var(--re-primary-deep) 0%, #4455db 100%);
}

.rutina-editor .btn-success {
    background: linear-gradient(135deg, var(--re-success) 0%, #38b27b 100%);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(31, 157, 99, 0.18);
}

.rutina-editor .btn-outline-secondary {
    background: #ffffff;
    border-color: rgba(50, 153, 229, 0.42);
    color: var(--re-primary);
}

.rutina-editor .btn-outline-primary {
    background: var(--re-primary-soft);
    border-color: var(--re-primary);
    color: var(--re-primary);
}

.rutina-editor .btn-outline-primary:hover {
    background: rgba(50, 153, 229, 0.2);
}

.rutina-editor .btn-link {
    font-weight: 600;
}

.rutina-editor .btn-link.text-primary,
.rutina-editor .btn-link.fw-bold {
    color: var(--re-primary) !important;
}

.rutina-editor > .card:first-of-type .btn-link {
    min-height: 42px;
    padding: 0.4rem 0.85rem !important;
    border-radius: 999px;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.rutina-editor > .card:first-of-type .btn-link:hover {
    background: var(--re-soft);
    color: var(--re-text) !important;
}

.rutina-editor > .card:first-of-type .btn-link.fw-bold {
    background: linear-gradient(44deg, rgba(50, 153, 229, 0.16) 10%, rgba(80, 98, 245, 0.16) 86%);
    box-shadow: inset 0 0 0 1px rgba(50, 153, 229, 0.16), 0 8px 18px rgba(50, 153, 229, 0.1);
}

.rutina-editor .re-block-card {
    overflow: hidden;
    border-left: 6px solid transparent;
    border-radius: 18px !important;
    box-shadow: none;
    position: static;
}

.rutina-editor .re-block-card-a {
    background: linear-gradient(180deg, #f4fbff 0%, #ffffff 72%);
    border-left-color: var(--re-primary);
}

.rutina-editor .re-block-card-b {
    background: linear-gradient(180deg, #f7f5ff 0%, #ffffff 72%);
    border-left-color: var(--re-primary-2);
}

.rutina-editor .re-block-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--re-border);
    padding: 1rem 1rem 0.95rem;
}

.rutina-editor .re-block-card .card-body {
    padding: 1rem;
}

.rutina-editor .re-block-title-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.rutina-editor .re-block-actions,
.rutina-editor .re-ex-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.rutina-editor .re-block-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    border: 1px solid var(--re-border);
    color: var(--re-text);
    white-space: nowrap;
}

.rutina-editor .re-ex-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--re-border) !important;
    border-radius: 18px;
    padding: 12px !important;
    overflow: hidden;
}

.rutina-editor .re-ex-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.rutina-editor .re-ex-grid {
    align-items: end;
}

.rutina-editor .re-ex-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

.rutina-editor .re-ex-card:hover {
    border-color: rgba(50, 153, 229, 0.24) !important;
    box-shadow: 0 10px 20px rgba(11, 10, 59, 0.06);
}

.rutina-editor .re-block-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.rutina-editor .re-step-guide {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(11, 10, 59, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.rutina-editor .re-step-guide-title {
    color: var(--re-text);
    font-size: 0.98rem;
    font-weight: 700;
}

.rutina-editor .re-step-guide-text {
    margin-top: 0.2rem;
    color: #6b7a93;
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 48rem;
}

.rutina-editor .re-step-guide-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.rutina-editor .re-step-guide-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.rutina-editor .re-step-guide-status.is-ready {
    background: rgba(31, 157, 99, 0.12);
    color: #188353;
}

.rutina-editor .re-step-guide-status.is-pending {
    background: rgba(201, 133, 18, 0.12);
    color: #9a6508;
}

.rutina-editor .re-validation-panel {
    display: grid;
    gap: 0.55rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(201, 133, 18, 0.22);
    border-radius: 18px;
    background: rgba(255, 246, 218, 0.6);
}

.rutina-editor .re-validation-item {
    color: #7d5605;
    font-size: 0.9rem;
    font-weight: 600;
}

.rutina-editor .re-validation-item::before {
    content: "•";
    margin-right: 0.45rem;
}

.rutina-editor .re-empty-state {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.05rem;
    border: 1px dashed rgba(11, 10, 59, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.rutina-editor .re-empty-state-inline {
    margin-top: 0.2rem;
}

.rutina-editor .re-empty-state-title {
    color: var(--re-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.rutina-editor .re-empty-state-text {
    color: #6b7a93;
    font-size: 0.88rem;
    line-height: 1.42;
}

.rutina-editor .re-empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.rutina-editor .re-block-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.rutina-editor .re-block-summary-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    background: #eef4ff;
    color: #2f82c7;
    font-size: 0.78rem;
    font-weight: 700;
}

.rutina-editor .re-block-summary-text {
    color: #6b7a93;
    font-size: 0.84rem;
    font-weight: 600;
}

.rutina-editor .re-ex-index {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--re-primary-soft);
    color: var(--re-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.rutina-editor .re-ex-selector-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #ffffff;
    border: 1px solid var(--re-border);
    border-radius: 12px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(11, 10, 59, 0.12);
}

.rutina-editor .re-ex-selector-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef1f7;
    background: #ffffff;
    text-align: left;
    padding: 8px 10px;
}

.rutina-editor .re-ex-selector-item:hover {
    background: #f6f8ff;
}

.rutina-editor .re-ex-selector-name {
    display: block;
    color: var(--re-text);
    font-size: 0.84rem;
    font-weight: 600;
}

.rutina-editor .re-ex-selector-meta {
    display: block;
    color: var(--re-muted);
    font-size: 0.74rem;
}

.rutina-editor .re-ex-selector-empty {
    padding: 10px;
    color: var(--re-muted);
    font-size: 0.8rem;
}

.rutina-editor .re-library-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rutina-editor .re-library-modal {
    width: min(1120px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(80, 98, 245, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.rutina-editor .re-library-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(11, 10, 59, 0.08);
}

.rutina-editor .re-library-close {
    flex: 0 0 auto;
    margin: 0;
    opacity: 0.72;
}

.rutina-editor .re-library-close:hover {
    opacity: 1;
}

.rutina-editor .re-library-modal-heading {
    max-width: 42rem;
}

.rutina-editor .re-library-modal-kicker {
    margin-bottom: 0.2rem;
    color: var(--re-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rutina-editor .re-library-context-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1rem 1.25rem 0;
}

.rutina-editor .re-library-context-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(11, 10, 59, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
}

.rutina-editor .re-library-context-label {
    color: var(--re-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rutina-editor .re-library-context-help {
    color: #6b7a93;
    font-size: 0.82rem;
    line-height: 1.35;
}

.rutina-editor .re-library-modal-toolbar {
    display: block;
    padding: 1rem 1.25rem 0;
}

.rutina-editor .re-library-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto;
    gap: 0.75rem;
    align-items: center;
}

.rutina-editor .re-library-filter,
.rutina-editor .re-library-reset {
    min-height: 44px;
}

.rutina-editor .re-library-modal-results {
    padding: 1rem 1.25rem 1.25rem;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

.rutina-editor .re-library-empty {
    border: 1px dashed rgba(11, 10, 59, 0.16);
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
    color: var(--re-muted);
    background: rgba(255, 255, 255, 0.72);
}

.rutina-editor .re-library-card-button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
}

.rutina-editor .re-library-card {
    height: 100%;
    min-height: 100%;
    border: 1px solid rgba(11, 10, 59, 0.1);
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.94);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    display: flex;
    flex-direction: column;
}

.rutina-editor .re-library-card-button:hover .re-library-card {
    transform: translateY(-1px);
    border-color: rgba(50, 153, 229, 0.32);
    box-shadow: 0 16px 26px rgba(11, 10, 59, 0.08);
}

.rutina-editor .re-library-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.rutina-editor .re-library-card-title {
    color: var(--re-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.rutina-editor .re-library-card-subtitle {
    margin-top: 0.2rem;
    color: #6b7a93;
    font-size: 0.82rem;
    font-weight: 600;
}

.rutina-editor .re-library-origin {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.62rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.rutina-editor .re-library-origin.is-system {
    background: #efeaff;
    color: #6a57bc;
}

.rutina-editor .re-library-origin.is-gym {
    background: #e8f3ff;
    color: #2f82c7;
}

.rutina-editor .re-library-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.rutina-editor .re-library-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.26rem 0.58rem;
    background: #eceaff;
    color: #5b4ba0;
    font-size: 0.74rem;
    font-weight: 600;
}

.rutina-editor .re-library-pill-alt {
    background: #eef2f7;
    color: #62708a;
}

.rutina-editor .re-library-card-description {
    margin: 0;
    color: #73819a;
    font-size: 0.9rem;
    line-height: 1.45;
    flex: 1 1 auto;
}

.rutina-editor .re-library-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(11, 10, 59, 0.08);
}

.rutina-editor .re-library-card-hint {
    color: #6b7a93;
    font-size: 0.8rem;
    font-weight: 600;
}

.rutina-editor .re-library-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(44deg, rgba(50, 153, 229, 0.14) 10%, rgba(80, 98, 245, 0.16) 86%);
    color: var(--re-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.rutina-editor .re-num-col .re-input {
    text-align: center;
    font-weight: 600;
}

.rutina-editor .re-ex-metrics .re-num-col .form-label {
    white-space: nowrap;
}

@media (max-width: 1399px) {
    .rutina-editor .re-ex-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rutina-editor .alert-danger {
    border-radius: 14px;
    border: 1px solid rgba(220, 53, 69, 0.18);
    background: rgba(220, 53, 69, 0.08);
    color: #8f1d2c;
}

.rutina-editor .placeholder {
    border-radius: 18px;
}

.rutina-editor .border.rounded.p-3.h-100 {
    border-color: var(--re-border) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at top right, rgba(50, 153, 229, 0.06), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rutina-editor .small.text-muted {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.rutina-editor .table-responsive {
    border-radius: 22px;
    border: 1px solid rgba(50, 153, 229, 0.12);
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rutina-editor .table {
    margin-bottom: 0;
}

.rutina-editor .table thead th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: var(--re-text);
    border-bottom: 1px solid var(--re-border);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rutina-editor .table tbody td {
    border-color: rgba(11, 10, 59, 0.08);
    vertical-align: middle;
}

.rutina-editor .table tbody tr:hover {
    background: rgba(50, 153, 229, 0.04);
}

.rutina-editor .badge {
    border-radius: 999px;
    padding: 0.45rem 0.68rem;
    font-weight: 700;
}

.rutina-editor .bg-success-subtle,
.rutina-editor .bg-danger-subtle,
.rutina-editor .bg-secondary-subtle,
.rutina-editor .bg-warning-subtle,
.rutina-editor .bg-info-subtle,
.rutina-editor .bg-light {
    background: #ffffff !important;
}

.rutina-editor .text-success,
.rutina-editor .text-danger,
.rutina-editor .text-secondary,
.rutina-editor .text-warning-emphasis,
.rutina-editor .text-info-emphasis,
.rutina-editor .text-dark {
    color: var(--re-text) !important;
}

.rutina-editor .badge.border {
    border-width: 1px !important;
}

.rutina-editor .bg-success-subtle.text-success.border {
    border-color: rgba(31, 157, 99, 0.35) !important;
    box-shadow: inset 0 0 0 1px rgba(31, 157, 99, 0.06);
}

.rutina-editor .bg-danger-subtle.text-danger.border {
    border-color: rgba(220, 53, 69, 0.28) !important;
}

.rutina-editor .bg-secondary-subtle.text-secondary.border {
    border-color: rgba(100, 116, 139, 0.28) !important;
}

.rutina-editor .bg-warning-subtle.text-warning-emphasis.border {
    border-color: rgba(201, 133, 18, 0.28) !important;
}

.rutina-editor .bg-info-subtle.text-info-emphasis.border,
.rutina-editor .bg-light.text-dark.border {
    border-color: rgba(50, 153, 229, 0.28) !important;
}

.rutina-editor .btn-group > .btn {
    border-radius: 10px !important;
}

.rutina-editor .btn-outline-dark {
    background: rgba(11, 10, 59, 0.05);
    border-color: rgba(11, 10, 59, 0.18);
    color: var(--re-text);
}

.rutina-editor .btn-outline-success {
    background: rgba(31, 157, 99, 0.08);
    border-color: rgba(31, 157, 99, 0.34);
    color: var(--re-success);
}

.rutina-editor .btn-outline-warning {
    background: rgba(201, 133, 18, 0.1);
    border-color: rgba(201, 133, 18, 0.34);
    color: var(--re-warning);
}

.rutina-editor .border-top {
    border-top-color: var(--re-border) !important;
}

.rutina-editor .assign-modal-shell,
.assign-modal-shell {
    background: rgba(2, 6, 23, 0.3);
    backdrop-filter: blur(6px);
}

.rutina-editor .assign-modal-dialog,
.assign-modal-dialog {
    max-width: min(1080px, calc(100vw - 2rem));
}

.rutina-editor .assign-modal,
.assign-modal {
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.34);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(80, 98, 245, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.rutina-editor .assign-modal-header,
.assign-modal-header {
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 0;
    background:
        linear-gradient(135deg, rgba(44, 165, 255, 0.16) 0%, rgba(110, 82, 211, 0.18) 100%);
}

.rutina-editor .assign-modal-kicker,
.assign-modal-kicker {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--re-primary);
}

.rutina-editor .assign-modal .modal-title,
.assign-modal .modal-title {
    font-family: "AtleticoBold", "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: #0f172a;
}

.rutina-editor .assign-modal-subtitle,
.assign-modal-subtitle {
    margin-top: 0.4rem;
    max-width: 38rem;
    color: rgba(11, 10, 59, 0.72);
    font-size: 0.95rem;
}

.rutina-editor .assign-modal .modal-body,
.assign-modal .modal-body {
    background: transparent;
    padding: 1.2rem 1.25rem 1rem;
}

.rutina-editor .assign-modal .modal-footer,
.assign-modal .modal-footer {
    border-top: 1px solid rgba(11, 10, 59, 0.08);
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.25rem 1.2rem;
}

.rutina-editor .assign-routine-title,
.assign-routine-title {
    margin-bottom: 1rem !important;
}

.rutina-editor .assign-routine-badge,
.assign-routine-badge {
    border: 1px solid #dbe3ef;
    border-radius: 26px;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(80, 98, 245, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 16px 30px rgba(80, 98, 245, 0.1);
    min-height: 100%;
}

.rutina-editor .assign-routine-kicker,
.assign-routine-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.rutina-editor .assign-routine-meta,
.assign-routine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.rutina-editor .assign-search-panel,
.assign-search-panel {
    border: 1px solid #dbe3ef;
    border-radius: 26px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    min-height: 100%;
}

.rutina-editor .assign-search-panel .form-control,
.rutina-editor .assign-search-panel .btn,
.rutina-editor .assign-modal .form-control,
.assign-search-panel .form-control,
.assign-search-panel .btn,
.assign-modal .form-control {
    min-height: 46px;
    border-radius: 16px;
}

.rutina-editor .assign-search-input,
.rutina-editor .assign-date-input,
.rutina-editor .assign-note-input,
.assign-search-input,
.assign-date-input,
.assign-note-input {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid rgba(11, 10, 59, 0.12);
    color: var(--re-text);
}

.rutina-editor .assign-search-input:focus,
.rutina-editor .assign-date-input:focus,
.rutina-editor .assign-note-input:focus,
.assign-search-input:focus,
.assign-date-input:focus,
.assign-note-input:focus {
    border-color: var(--re-primary);
    box-shadow: 0 0 0 0.14rem rgba(50, 153, 229, 0.18);
}

.rutina-editor .assign-search-btn,
.assign-search-btn {
    min-width: 128px;
    box-shadow: 0 12px 24px rgba(50, 153, 229, 0.18);
}

.rutina-editor .assign-results,
.assign-results {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid rgba(11, 10, 59, 0.08);
    background: #ffffff;
}

.rutina-editor .assign-results .list-group-item,
.assign-results .list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 0.85rem 0.95rem;
}

.rutina-editor .assign-result-item,
.assign-result-item {
    gap: 0.75rem;
    transition: background-color 0.16s ease, transform 0.16s ease;
    min-height: 62px;
}

.rutina-editor .assign-result-item:hover,
.assign-result-item:hover {
    background: rgba(50, 153, 229, 0.06);
    transform: translateY(-1px);
}

.rutina-editor .assign-result-main,
.assign-result-main {
    font-weight: 700;
    color: var(--re-text);
}

.rutina-editor .assign-result-meta,
.assign-result-meta {
    color: var(--re-muted);
}

.rutina-editor .assign-results .list-group-item:first-child,
.assign-results .list-group-item:first-child {
    border-top: 0;
}

.rutina-editor .assign-results .list-group-item.active,
.assign-results .list-group-item.active {
    background: linear-gradient(135deg, rgba(50, 153, 229, 0.12) 0%, rgba(80, 98, 245, 0.12) 100%);
    border-color: #2f80ed;
    color: #0f172a;
}

.rutina-editor .assign-results .list-group-item.active span,
.assign-results .list-group-item.active span {
    color: #0f172a !important;
}

.rutina-editor .assign-modal .input-group > .form-control,
.assign-modal .input-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.rutina-editor .assign-modal .input-group > .btn,
.assign-modal .input-group > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    min-width: 120px;
}

.rutina-editor .assign-modal .alert-info,
.assign-modal .alert-info {
    border-radius: 18px;
    border: 1px solid rgba(50, 153, 229, 0.18);
    background: linear-gradient(180deg, rgba(50, 153, 229, 0.08) 0%, rgba(80, 98, 245, 0.08) 100%);
    color: var(--re-text);
}

.rutina-editor .assign-dates-row,
.assign-dates-row {
    margin-top: 0.35rem;
}

.rutina-editor .assign-field-card,
.assign-field-card {
    border: 1px solid #dbe3ef;
    border-radius: 24px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.rutina-editor .assign-note-panel,
.assign-note-panel {
    border: 1px solid #dbe3ef;
    border-radius: 24px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.rutina-editor .assign-note-input,
.assign-note-input {
    min-height: 110px;
    resize: vertical;
}

.rutina-editor .assign-modal-footer,
.assign-modal-footer {
    gap: 0.65rem;
    justify-content: flex-end;
}

.rutina-editor .assign-modal .btn-close,
.assign-modal .btn-close {
    background-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.rutina-editor.re-page-list .card:last-of-type {
    overflow: hidden;
}

.rutina-editor.re-page-list .d-md-none .card {
    border-radius: 22px;
}

.rutina-editor.re-page-list .d-md-none .card .card-body {
    padding: 1rem;
}

.rutina-editor.re-page-list .d-md-none .btn-link.fw-semibold,
.rutina-editor.re-page-list .table .btn-link {
    color: var(--re-text) !important;
    font-weight: 700;
}

.rutina-editor.re-page-list .table .btn-link:hover,
.rutina-editor.re-page-list .d-md-none .btn-link.fw-semibold:hover {
    color: var(--re-primary) !important;
}

.rutina-editor.re-page-edit > .card:first-of-type,
.rutina-editor.re-page-detail > .card:first-of-type {
    border-radius: 999px;
    overflow: hidden;
}

.rutina-editor.re-page-edit > .card:first-of-type .card-body,
.rutina-editor.re-page-detail > .card:first-of-type .card-body {
    padding: 0.85rem 1rem;
}

.rutina-editor.re-page-edit .border.rounded.p-3.h-100,
.rutina-editor.re-page-detail .border.rounded.p-3.h-100 {
    border-radius: 22px !important;
}

.rutina-editor.clientes-rutina-style .admin-search-row {
    margin-bottom: 1rem;
}

.rutina-editor.clientes-rutina-style .admin-search-card {
    overflow: hidden;
}

.rutina-editor.clientes-rutina-style .admin-search-card .card-body {
    padding: 1.15rem 1.25rem 1.2rem;
}

.rutina-editor.clientes-rutina-style .admin-form-actions {
    gap: 0.65rem;
}

.rutina-editor.clientes-rutina-style .admin-empty-state .card-body {
    min-height: 220px;
}

.rutina-editor.clientes-rutina-style .admin-empty-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(44, 165, 255, 0.12) 0%, rgba(110, 82, 211, 0.14) 100%);
    color: var(--re-primary);
    font-size: 1.7rem;
}

.rutina-editor.clientes-rutina-style .btn-secondary,
.rutina-editor.membresias-rutina-style .btn-secondary {
    border-radius: 999px;
}

.rutina-editor.membresias-rutina-style .membresia-card {
    border-radius: 20px;
}

.rutina-editor.membresias-rutina-style .membresia-card .card-title {
    color: var(--re-text);
}

.rutina-editor.membresias-rutina-style .form-check-input:checked {
    background-color: var(--re-primary);
    border-color: var(--re-primary);
}

.rutina-editor.membresias-rutina-style .form-check-label {
    color: var(--re-text);
    font-weight: 600;
}

.rutina-editor.membresias-rutina-style .spt-home-formulary-inputText,
.rutina-editor.membresias-rutina-style .spt-inputSelect,
.rutina-editor.clases-rutina-style .spt-home-formulary-inputText,
.rutina-editor.clases-rutina-style .spt-inputSelect,
.rutina-editor.pagos-rutina-style .spt-home-formulary-inputText,
.rutina-editor.pagos-rutina-style .spt-inputSelect,
.rutina-editor.caja-rutina-style .spt-home-formulary-inputText,
.rutina-editor.caja-rutina-style .spt-inputSelect {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--re-border);
    background: var(--re-soft);
    color: var(--re-text);
    padding: 10px 12px;
    box-shadow: none;
}

.rutina-editor.membresias-rutina-style .spt-home-formulary-inputText:focus,
.rutina-editor.membresias-rutina-style .spt-inputSelect:focus,
.rutina-editor.clases-rutina-style .spt-home-formulary-inputText:focus,
.rutina-editor.clases-rutina-style .spt-inputSelect:focus,
.rutina-editor.pagos-rutina-style .spt-home-formulary-inputText:focus,
.rutina-editor.pagos-rutina-style .spt-inputSelect:focus,
.rutina-editor.caja-rutina-style .spt-home-formulary-inputText:focus,
.rutina-editor.caja-rutina-style .spt-inputSelect:focus {
    border-color: var(--re-primary);
    box-shadow: 0 0 0 0.14rem rgba(50, 153, 229, 0.22);
    background: #ffffff;
    outline: none;
}

.rutina-editor.membresias-rutina-style .card,
.rutina-editor.clases-rutina-style .card,
.rutina-editor.pagos-rutina-style .card,
.rutina-editor.caja-rutina-style .card {
    border-radius: 18px;
}

.rutina-editor.membresias-rutina-style .card-header,
.rutina-editor.clases-rutina-style .card-header,
.rutina-editor.pagos-rutina-style .card-header,
.rutina-editor.caja-rutina-style .card-header {
    background: transparent;
    border-bottom: 1px solid var(--re-border);
}

.rutina-editor.clases-rutina-style .table-responsive,
.rutina-editor.pagos-rutina-style .table-responsive,
.rutina-editor.caja-rutina-style .table-responsive {
    border-radius: 16px;
    border: 1px solid var(--re-border);
    background: #ffffff;
}

.rutina-editor.clases-rutina-style .table,
.rutina-editor.pagos-rutina-style .table,
.rutina-editor.caja-rutina-style .table {
    margin-bottom: 0;
}

.rutina-editor.clases-rutina-style .table thead th,
.rutina-editor.pagos-rutina-style .table thead th,
.rutina-editor.caja-rutina-style .table thead th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: var(--re-text);
    border-bottom: 1px solid var(--re-border);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.rutina-editor.pagos-rutina-style .btn-spt-third,
.rutina-editor.caja-rutina-style .btn-secondary {
    min-height: 44px;
    border-radius: 999px;
}

.rutina-editor.pagos-rutina-style .btn-spt-third {
    background: #ffffff;
    border: 1px solid rgba(50, 153, 229, 0.42);
    color: var(--re-primary);
}

.rutina-editor.pagos-rutina-style .card .table td,
.rutina-editor.pagos-rutina-style .card .table th,
.rutina-editor.caja-rutina-style .card .table td,
.rutina-editor.caja-rutina-style .card .table th {
    vertical-align: middle;
}

.rutina-editor.gym-profile-style .imgGym-container,
.rutina-editor.cliente-profile-style .imgGym-container {
    min-height: 132px;
}

.rutina-editor.gym-profile-style .gym-logo-image {
    width: min(180px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 32px rgba(11, 10, 59, 0.14);
    background: #ffffff;
}

.rutina-editor.gym-profile-style .card-title,
.rutina-editor.cliente-profile-style .card-title {
    color: var(--re-text);
    font-weight: 700;
}

.rutina-editor.gym-profile-style .badge,
.rutina-editor.cliente-profile-style .badge {
    border-radius: 999px;
}

.rutina-editor.gym-profile-style .accordion-item,
.rutina-editor.cliente-profile-style .accordion-item {
    overflow: hidden;
    border: 1px solid var(--re-border);
    border-radius: 16px;
    background: #ffffff;
}

.rutina-editor.gym-profile-style .accordion-button,
.rutina-editor.cliente-profile-style .accordion-button {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: var(--re-text);
    font-weight: 700;
    box-shadow: none;
}

.rutina-editor.gym-profile-style .accordion-button:not(.collapsed),
.rutina-editor.cliente-profile-style .accordion-button:not(.collapsed) {
    color: var(--re-primary);
    background: linear-gradient(180deg, rgba(50, 153, 229, 0.12) 0%, rgba(80, 98, 245, 0.1) 100%);
}

.rutina-editor.gym-profile-style .list-group-item,
.rutina-editor.cliente-profile-style .list-group-item {
    border-color: var(--re-border);
    background: rgba(255, 255, 255, 0.78);
}

.rutina-editor.cliente-profile-style .cliente-rutina-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-summary-card {
    border: 1px solid rgba(11, 10, 59, 0.08);
    border-radius: 20px;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
}

.rutina-editor.cliente-profile-style .cliente-rutina-label {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--re-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rutina-editor.cliente-profile-style .cliente-rutina-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-intro {
    margin-bottom: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(50, 153, 229, 0.08) 0%, rgba(80, 98, 245, 0.08) 100%);
    color: var(--re-text);
}

.rutina-editor.cliente-profile-style .cliente-rutina-blocks {
    display: grid;
    gap: 1rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-block {
    border: 1px solid rgba(11, 10, 59, 0.08);
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(11, 10, 59, 0.06);
}

.rutina-editor.cliente-profile-style .cliente-rutina-block-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(11, 10, 59, 0.08);
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.rutina-editor.cliente-profile-style .cliente-rutina-block-kicker {
    display: inline-block;
    margin-bottom: 0.25rem;
    color: var(--re-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rutina-editor.cliente-profile-style .cliente-rutina-block-notes {
    color: #6b7a93;
    font-size: 0.92rem;
    max-width: 54rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-block-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #2f82c7;
    font-size: 0.8rem;
    font-weight: 700;
}

.rutina-editor.cliente-profile-style .cliente-rutina-exercises {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.1rem 1.1rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-exercise {
    border: 1px solid rgba(11, 10, 59, 0.08);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.rutina-editor.cliente-profile-style .cliente-rutina-exercise-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-step {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 30px;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #efeaff;
    color: #6a57bc;
    font-size: 0.76rem;
    font-weight: 700;
}

.rutina-editor.cliente-profile-style .cliente-rutina-prescription {
    color: #25324b;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.5;
}

.rutina-editor.cliente-profile-style .cliente-rutina-observation {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(11, 10, 59, 0.08);
    color: #6b7a93;
    font-size: 0.9rem;
    line-height: 1.45;
}

.rutina-editor.cliente-profile-style .cliente-rutina-empty {
    padding: 1rem 1.1rem 1.1rem;
    color: var(--re-muted);
}

.rutina-editor.cliente-profile-style .cliente-rutina-history {
    display: grid;
    gap: 0.85rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-history-item {
    border: 1px solid rgba(11, 10, 59, 0.08);
    border-radius: 18px;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
}

.rutina-editor.cliente-profile-style .cliente-rutina-history-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.65rem;
    color: #25324b;
    font-size: 0.92rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-history-actions {
    margin-top: 0.75rem;
}

.rutina-editor.cliente-profile-style .cliente-rutina-history-notes {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(11, 10, 59, 0.08);
    color: #6b7a93;
    font-size: 0.9rem;
    line-height: 1.45;
}

.rutina-editor.setup-rutina-style .form-check-input:checked {
    background-color: var(--re-primary);
    border-color: var(--re-primary);
}

.rutina-editor.setup-rutina-style .re-switch-card {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--re-border);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    min-height: 100%;
}

.rutina-editor.setup-rutina-style .table td,
.rutina-editor.setup-rutina-style .table th {
    vertical-align: middle;
}

.rutina-editor.setup-rutina-style .table-responsive {
    border-radius: 16px;
    border: 1px solid var(--re-border);
    background: #ffffff;
}

.rutina-editor.setup-rutina-style .table thead th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: var(--re-text);
    border-bottom: 1px solid var(--re-border);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.rutina-editor.setup-rutina-style .re-color-input {
    padding: 0.35rem;
    min-height: 44px;
}

.rutina-editor.pagos-rutina-style .form-control,
.rutina-editor.pagos-rutina-style .form-select,
.rutina-editor.caja-rutina-style .form-control,
.rutina-editor.caja-rutina-style .form-select {
    min-height: 44px;
    border-radius: 14px;
    border-color: var(--re-border);
    background: var(--re-soft);
}

.rutina-editor.caja-rutina-style .modal-content {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 44px rgba(11, 10, 59, 0.18);
}

.rutina-editor.caja-rutina-style .card-body.caja-table-scroll-600,
.rutina-editor.caja-rutina-style .caja-table-scroll-600,
.rutina-editor.caja-rutina-style .caja-table-scroll-500 {
    overflow-x: auto;
}

.rutina-editor.caja-rutina-style .table {
    min-width: 760px;
}

.rutina-editor.caja-rutina-style .modal-header,
.rutina-editor.caja-rutina-style .modal-footer {
    border-color: var(--re-border);
}

.rutina-editor.caja-rutina-style .alert {
    position: relative;
    z-index: 1;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .rutina-editor {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .rutina-editor::before {
        height: 156px;
        border-radius: 0 0 18px 18px;
    }

    .rutina-editor > .d-flex:first-child {
        align-items: flex-start !important;
        padding: 14px;
        border-radius: 18px;
    }

    .rutina-editor .card {
        background: var(--re-surface) !important;
        border: 1px solid rgba(255, 255, 255, 0.65) !important;
        box-shadow: var(--re-shadow) !important;
        margin: 0 0 0.75rem !important;
        padding: 0 !important;
    }

    .rutina-editor .card-header {
        display: block !important;
        padding: 0.9rem !important;
    }

    .rutina-editor .card-body,
    .rutina-editor .card-footer {
        padding: 0.95rem !important;
        margin: 0 !important;
    }

    .rutina-editor .re-block-title-row {
        grid-template-columns: 1fr;
    }

    .rutina-editor .re-block-index {
        width: fit-content;
    }

    .rutina-editor > .card:first-of-type .card-body > .d-flex {
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 0.15rem;
    }

    .rutina-editor > .card:first-of-type .btn-link {
        white-space: nowrap;
    }

    .rutina-editor .card-footer.d-flex {
        gap: 0.75rem;
        flex-direction: column;
    }

    .rutina-editor .card-footer.d-flex .btn {
        width: 100%;
    }

    .rutina-editor .re-ex-card {
        padding: 10px !important;
        border-radius: 12px;
    }

    .rutina-editor .re-ex-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .rutina-editor .re-ex-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rutina-editor .re-block-tools .btn {
        width: 100%;
    }

    .rutina-editor .re-step-guide,
    .rutina-editor .re-step-guide-actions,
    .rutina-editor .re-empty-state-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .rutina-editor .re-step-guide-status {
        white-space: normal;
    }

    .rutina-editor .re-block-actions,
    .rutina-editor .re-ex-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .rutina-editor .re-library-context-strip {
        grid-template-columns: 1fr;
    }

    .rutina-editor .re-library-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .rutina-editor .re-library-modal {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
        border-radius: 22px;
    }

    .rutina-editor .re-library-modal-header,
    .rutina-editor .re-library-modal-results,
    .rutina-editor .re-library-modal-toolbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rutina-editor .re-library-context-strip {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rutina-editor .re-library-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .rutina-editor .re-library-card-cta {
        width: 100%;
    }

    .rutina-editor.clientes-rutina-style .admin-form-actions .btn {
        width: 100%;
    }

    .rutina-editor.cliente-profile-style .cliente-rutina-summary {
        grid-template-columns: 1fr;
    }

    .rutina-editor.cliente-profile-style .cliente-rutina-block-header,
    .rutina-editor.cliente-profile-style .cliente-rutina-exercise-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .rutina-editor.membresias-rutina-style > .d-flex:first-child {
        align-items: flex-start !important;
    }

    .rutina-editor.clases-rutina-style > .d-flex:first-child {
        align-items: flex-start !important;
    }

    .rutina-editor .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .rutina-editor .btn-group > .btn {
        flex: 1 1 calc(50% - 0.45rem);
    }

    .rutina-editor .assign-modal-shell .modal-dialog,
    .assign-modal-shell .modal-dialog {
        margin: 0.5rem;
    }

    .rutina-editor .assign-modal .input-group,
    .assign-modal .input-group {
        flex-direction: column;
    }

    .rutina-editor .assign-modal .input-group > .form-control,
    .rutina-editor .assign-modal .input-group > .btn,
    .assign-modal .input-group > .form-control,
    .assign-modal .input-group > .btn {
        border-radius: 14px !important;
        width: 100%;
    }

    .rutina-editor .assign-modal-dialog,
    .assign-modal-dialog {
        max-width: calc(100vw - 1rem);
    }

    .rutina-editor .assign-modal,
    .assign-modal {
        border-radius: 24px;
    }

    .rutina-editor .assign-modal-header,
    .rutina-editor .assign-modal .modal-body,
    .rutina-editor .assign-modal .modal-footer,
    .assign-modal-header,
    .assign-modal .modal-body,
    .assign-modal .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rutina-editor .assign-search-panel,
    .rutina-editor .assign-routine-badge,
    .rutina-editor .assign-field-card,
    .rutina-editor .assign-note-panel,
    .assign-search-panel,
    .assign-routine-badge,
    .assign-field-card,
    .assign-note-panel {
        border-radius: 20px;
        padding: 14px;
    }

    .rutina-editor .assign-modal-footer,
    .assign-modal-footer {
        flex-direction: column-reverse;
    }

    .rutina-editor .assign-modal-footer .btn,
    .assign-modal-footer .btn {
        width: 100%;
    }

    .rutina-editor h3 {
        font-size: 1.45rem;
    }
}

@media (min-width: 769px) {
    .rutina-editor > .card:first-of-type {
        position: sticky;
        top: 1rem;
        z-index: 3;
    }
}

.rutina-editor.setup-rutina-style .re-switch-card {
    padding: 0.85rem 1rem 0.85rem 3rem;
    border-radius: 16px;
    border: 1px solid var(--re-border);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    min-height: 100%;
    position: relative;
}

.rutina-editor.setup-rutina-style .re-switch-card .form-check-input {
    float: none;
    position: absolute;
    left: 1rem;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
}

.rutina-editor.setup-rutina-style .re-switch-card .form-check-label {
    display: block;
    margin: 0;
}

.rutina-editor.user-profile-style .imgUser {
    width: min(180px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 32px rgba(11, 10, 59, 0.14);
    background: #ffffff;
}

.rutina-editor.user-profile-style .spt-home-formulary-inputText,
.rutina-editor.user-profile-style .spt-inputSelect,
.rutina-editor.instructor-clientes-style .spt-home-formulary-inputText,
.rutina-editor.desktop-gimnasios-style .form-select,
.rutina-editor.admin-empleados-style .spt-home-formulary-inputText {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--re-border);
    background: var(--re-soft);
    color: var(--re-text);
    padding: 10px 12px;
    box-shadow: none;
}

.rutina-editor.user-profile-style .spt-home-formulary-inputText:focus,
.rutina-editor.user-profile-style .spt-inputSelect:focus,
.rutina-editor.instructor-clientes-style .spt-home-formulary-inputText:focus,
.rutina-editor.desktop-gimnasios-style .form-select:focus,
.rutina-editor.admin-empleados-style .spt-home-formulary-inputText:focus {
    border-color: var(--re-primary);
    box-shadow: 0 0 0 0.14rem rgba(50, 153, 229, 0.22);
    background: #ffffff;
    outline: none;
}

.rutina-editor.user-profile-style .card,
.rutina-editor.instructor-clientes-style .card,
.rutina-editor.admin-empleados-style .card {
    border-radius: 18px;
}

.rutina-editor.desktop-gimnasios-style::before,
.rutina-editor.desktop-calendario-style::before,
.rutina-editor.user-profile-style::before,
.rutina-editor.instructor-clientes-style::before,
.rutina-editor.admin-empleados-style::before {
    height: 190px;
}

.rutina-editor.desktop-calendario-style.container-fluid {
    max-width: min(1720px, calc(100% - 16px));
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.rutina-editor.desktop-calendario-style .res-calendario-layout {
    position: relative;
    z-index: 1;
    gap: 16px;
}

.rutina-editor.desktop-calendario-style .res-sidebar,
.rutina-editor.desktop-calendario-style .res-main {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--re-shadow);
    overflow: hidden;
}

.rutina-editor.desktop-calendario-style .res-main-header {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-bottom: 1px solid var(--re-border);
}

.rutina-editor.exercise-library-style {
    max-width: min(1480px, calc(100% - 24px));
}

.rutina-editor.exercise-library-style::before {
    height: 160px;
}

.rutina-editor.exercise-library-style .exercise-library-header {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.rutina-editor.exercise-library-style .exercise-library-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #5b4ba0 0%, #6a58b8 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 28px rgba(91, 75, 160, 0.24);
    font-size: 1.3rem;
}

.rutina-editor.exercise-library-style .exercise-library-filters {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    margin-bottom: 20px;
}

.rutina-editor.exercise-library-style .exercise-library-search {
    position: relative;
}

.rutina-editor.exercise-library-style .exercise-library-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8d96aa;
    font-size: 0.95rem;
}

.rutina-editor.exercise-library-style .exercise-library-search .form-control {
    min-height: 46px;
    border-radius: 14px;
    padding-left: 42px;
}

.rutina-editor.exercise-library-style .exercise-library-filters .form-select {
    min-height: 46px;
    border-radius: 14px;
}

.rutina-editor.exercise-library-style .exercise-library-groups {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
}

.rutina-editor.exercise-library-style .exercise-library-group-title {
    margin-bottom: 14px;
    color: #8691aa;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rutina-editor.exercise-library-style .exercise-card {
    border: 1px solid #dbe1ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    min-height: 100%;
}

.rutina-editor.exercise-library-style .exercise-card:hover {
    transform: translateY(-1px);
    border-color: #c6d0e2;
    box-shadow: 0 14px 24px rgba(16, 24, 40, 0.08);
}

.rutina-editor.exercise-library-style .exercise-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 14px;
}

.rutina-editor.exercise-library-style .exercise-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.rutina-editor.exercise-library-style .exercise-card-title {
    color: #14213d;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}

.rutina-editor.exercise-library-style .exercise-card-edit {
    border: 0;
    background: transparent;
    color: #8d96aa;
    padding: 2px 4px;
    border-radius: 8px;
}

.rutina-editor.exercise-library-style .exercise-card-edit:hover:not(:disabled) {
    background: #f3f5fb;
    color: #5b4ba0;
}

.rutina-editor.exercise-library-style .exercise-card-edit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.rutina-editor.exercise-library-style .exercise-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rutina-editor.exercise-library-style .exercise-card-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.77rem;
    font-weight: 600;
    line-height: 1;
}

.rutina-editor.exercise-library-style .exercise-card-pill-blue { background: #e7edff; color: #4d63d7; }
.rutina-editor.exercise-library-style .exercise-card-pill-violet { background: #efe8ff; color: #7755d8; }
.rutina-editor.exercise-library-style .exercise-card-pill-sky { background: #e3f3ff; color: #2f82c7; }
.rutina-editor.exercise-library-style .exercise-card-pill-indigo { background: #eceaff; color: #5b4ba0; }
.rutina-editor.exercise-library-style .exercise-card-pill-green { background: #e5f7ee; color: #2f8c5a; }
.rutina-editor.exercise-library-style .exercise-card-pill-pink { background: #ffe8f1; color: #c45185; }
.rutina-editor.exercise-library-style .exercise-card-pill-yellow { background: #fff6da; color: #b47b00; }
.rutina-editor.exercise-library-style .exercise-card-pill-red { background: #ffe8e5; color: #cc5c4d; }
.rutina-editor.exercise-library-style .exercise-card-pill-orange { background: #fff0df; color: #ca7a22; }
.rutina-editor.exercise-library-style .exercise-card-pill-muted { background: #eef2f7; color: #6e778d; }
.rutina-editor.exercise-library-style .exercise-card-pill-system { background: #f0ecff; color: #6b5ab3; }

.rutina-editor.exercise-library-style .exercise-card-description {
    margin: 0;
    color: #8590a7;
    font-size: 0.94rem;
    line-height: 1.45;
    min-height: 54px;
}

.rutina-editor.exercise-library-style .exercise-card-description-empty {
    opacity: 0.72;
}

.rutina-editor.exercise-library-style .exercise-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.rutina-editor.exercise-library-style .exercise-card-status {
    font-size: 0.78rem;
    font-weight: 700;
}

.rutina-editor.exercise-library-style .exercise-card-status.is-active {
    color: #2f8c5a;
}

.rutina-editor.exercise-library-style .exercise-card-status.is-inactive {
    color: #c45151;
}

.rutina-editor.exercise-library-style .exercise-card-toggle {
    padding: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5b4ba0;
    text-decoration: none;
}

.rutina-editor.exercise-library-style .exercise-card-toggle:hover {
    color: #4d3f8f;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .rutina-editor.exercise-library-style .exercise-library-header {
        margin-bottom: 16px;
    }

    .rutina-editor.exercise-library-style .exercise-library-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .rutina-editor.exercise-library-style .exercise-card-description {
        min-height: unset;
    }
}

/* Clases admin list */
.rutina-editor.clases-rutina-style .admin-clases-header {
    margin-bottom: 1rem;
}

.rutina-editor.clases-rutina-style .admin-clases-header-actions .btn {
    min-width: 132px;
}

.rutina-editor.clases-rutina-style .admin-clases-filters .card-body {
    padding: 1.1rem 1.1rem 1rem;
}

.rutina-editor.clases-rutina-style .admin-clases-kpi-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.rutina-editor.clases-rutina-style .admin-clases-kpi-card {
    border: 1px solid rgba(76, 87, 203, 0.15);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(20, 31, 57, 0.08);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rutina-editor.clases-rutina-style .admin-clases-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.rutina-editor.clases-rutina-style .admin-clases-kpi-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #122140;
    line-height: 1;
}

.rutina-editor.clases-rutina-style .admin-clases-kpi-label {
    font-size: 0.9rem;
    color: #5e657d;
    font-weight: 600;
}

.rutina-editor.clases-rutina-style .admin-clases-table-card {
    overflow: hidden;
}

.rutina-editor.clases-rutina-style .admin-classes-table thead th {
    white-space: nowrap;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #3f4a67;
}

.rutina-editor.clases-rutina-style .admin-classes-table td {
    vertical-align: middle;
}

.rutina-editor.clases-rutina-style .admin-clases-mobile-card {
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(20, 31, 57, 0.09);
}

.rutina-editor.clases-rutina-style .admin-clases-mobile-meta {
    display: grid;
    gap: 0.28rem;
    color: #626b84;
    font-size: 0.83rem;
}

.rutina-editor.clases-rutina-style .admin-clases-mobile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rutina-editor.clases-rutina-style .admin-clases-mobile-detail-grid {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.rutina-editor.clases-rutina-style .admin-clases-mobile-detail-grid p {
    margin-bottom: 0;
    color: #3d4661;
}

@media (min-width: 768px) {
    .rutina-editor.clases-rutina-style .admin-clases-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .rutina-editor.clases-rutina-style .admin-clases-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Admin web-mobile pass */
@media (max-width: 991.98px) {
    .rutina-editor.re-page-list > .d-flex.justify-content-between.align-items-center.mb-3,
    .rutina-editor.re-page-list > .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .rutina-editor.re-page-list > .d-flex.justify-content-between.align-items-center.mb-3 > div:last-child,
    .rutina-editor.re-page-list > .d-flex.justify-content-between.align-items-center.mb-4 > div:last-child {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .rutina-editor.re-page-list > .d-flex.justify-content-between.align-items-center.mb-3 > div:last-child .btn,
    .rutina-editor.re-page-list > .d-flex.justify-content-between.align-items-center.mb-4 > div:last-child .btn {
        width: 100%;
    }

    .rutina-editor.re-page-list .card .card-body {
        padding: 0.95rem;
    }

    .rutina-editor.re-page-list .table {
        font-size: 0.86rem;
    }

    .rutina-editor.re-page-list .table thead th {
        white-space: nowrap;
        font-size: 0.76rem;
        letter-spacing: 0.01em;
    }
}

@media (max-width: 575.98px) {
    .rutina-editor.re-page-list > .d-flex.justify-content-between.align-items-center.mb-3 > div:last-child,
    .rutina-editor.re-page-list > .d-flex.justify-content-between.align-items-center.mb-4 > div:last-child {
        grid-template-columns: 1fr;
    }

    .rutina-editor.re-page-list .form-label {
        font-size: 0.82rem;
    }

    .rutina-editor.re-page-list .re-input,
    .rutina-editor.re-page-list .spt-inputSelect,
    .rutina-editor.re-page-list .spt-timepicker,
    .rutina-editor.re-page-list .form-control,
    .rutina-editor.re-page-list .form-select {
        min-height: 42px;
        font-size: 0.9rem;
    }

    .rutina-editor.re-page-list .table {
        font-size: 0.82rem;
    }
}

/* Clientes mobile */
@media (max-width: 991.98px) {
    .rutina-editor.clientes-rutina-style .admin-clientes-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.7rem;
    }

    .rutina-editor.clientes-rutina-style .admin-clientes-header .btn {
        width: 100%;
    }

    .rutina-editor.clientes-rutina-style .admin-search-card .card-body {
        padding: 0.95rem;
    }

    .rutina-editor.clientes-rutina-style .admin-form-actions {
        width: 100%;
        justify-content: stretch !important;
    }

    .rutina-editor.clientes-rutina-style .admin-form-actions .btn {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* Membresias mobile */
@media (max-width: 991.98px) {
    .rutina-editor.membresias-rutina-style .admin-membresias-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.7rem;
    }

    .rutina-editor.membresias-rutina-style .admin-membresias-header .btn {
        width: 100%;
    }

    .rutina-editor.membresias-rutina-style .admin-membresias-filter-card .card-body {
        padding: 0.9rem;
    }

    .rutina-editor.membresias-rutina-style .admin-membresias-item-card .card-body {
        padding: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .rutina-editor.membresias-rutina-style .membresia-card .card-footer .btn {
        width: 100%;
    }
}

/* Pagos mobile */
@media (max-width: 991.98px) {
    .rutina-editor.pagos-rutina-style .admin-pagos-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.7rem;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-header .btn {
        width: 100%;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-search-card .card-body,
    .rutina-editor.pagos-rutina-style .admin-pagos-clientes-card .card-body,
    .rutina-editor.pagos-rutina-style .admin-pagos-result-card .card-body {
        padding: 0.95rem;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-actions .btn {
        width: 100%;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-actions-cell {
        min-width: 180px;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-list {
        display: grid;
        gap: 0.7rem;
        margin-top: 0.7rem;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-card {
        border: 1px solid rgba(37, 99, 235, 0.14);
        border-radius: 16px;
        padding: 0.85rem;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        display: grid;
        gap: 0.65rem;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.55rem;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-card-head h6 {
        color: #0f172a;
        font-weight: 700;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-pill {
        font-size: 0.74rem;
        color: #1e3a8a;
        background: #e0e7ff;
        border: 1px solid #c7d2fe;
        border-radius: 999px;
        padding: 0.2rem 0.5rem;
        white-space: nowrap;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-amount {
        font-size: 0.94rem;
        font-weight: 700;
        color: #1d4ed8;
        background: #dbeafe;
        border: 1px solid #bfdbfe;
        border-radius: 999px;
        padding: 0.22rem 0.55rem;
        white-space: nowrap;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-meta > div {
        display: grid;
        gap: 0.05rem;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-meta span {
        font-size: 0.72rem;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-weight: 700;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-meta strong {
        font-size: 0.9rem;
        color: #0f172a;
        font-weight: 600;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-actions .btn {
        width: 100%;
        min-height: 38px;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.82rem;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-list {
        display: grid;
        gap: 0.7rem;
    }

    .rutina-editor.caja-rutina-style {
        padding-bottom: 90px !important;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-accordion {
        border: 1px solid #dbe5ff;
        border-radius: 14px;
        background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    }

    .rutina-editor.caja-rutina-style .caja-mobile-accordion-summary {
        list-style: none;
        cursor: pointer;
        padding: 0.8rem 0.85rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.55rem;
        color: #0f172a;
        font-weight: 700;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-accordion-summary small {
        color: #64748b;
        font-size: 0.74rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-accordion-summary::-webkit-details-marker {
        display: none;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-accordion-body {
        border-top: 1px solid #e2e8f0;
        padding: 0.75rem 0.85rem 0.85rem;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-card {
        border: 1px solid rgba(37, 99, 235, 0.14);
        border-radius: 16px;
        padding: 0.85rem;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        display: grid;
        gap: 0.65rem;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.55rem;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-card-head h6 {
        color: #0f172a;
        font-weight: 700;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-pill {
        font-size: 0.74rem;
        color: #1e3a8a;
        background: #e0e7ff;
        border: 1px solid #c7d2fe;
        border-radius: 999px;
        padding: 0.2rem 0.5rem;
        white-space: nowrap;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-meta,
    .rutina-editor.caja-rutina-style .caja-mobile-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rutina-editor.caja-rutina-style .caja-mobile-meta > div,
    .rutina-editor.caja-rutina-style .caja-mobile-stats > div {
        display: grid;
        gap: 0.05rem;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-meta span,
    .rutina-editor.caja-rutina-style .caja-mobile-stats span {
        font-size: 0.72rem;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-weight: 700;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-meta strong,
    .rutina-editor.caja-rutina-style .caja-mobile-stats strong {
        font-size: 0.9rem;
        color: #0f172a;
        font-weight: 600;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-note {
        font-size: 0.84rem;
        color: #334155;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 0.45rem 0.55rem;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-card-highlight {
        border-color: rgba(59, 130, 246, 0.26);
        background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
    }

    .rutina-editor.caja-rutina-style .caja-mobile-sticky-actions {
        position: sticky;
        bottom: 0.45rem;
        z-index: 12;
        margin-top: 1rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
        gap: 0.55rem;
        padding: 0.55rem;
        border: 1px solid #dbe5ff;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(6px);
    }

    .rutina-editor.caja-rutina-style .caja-mobile-sticky-actions .btn {
        min-height: 42px;
    }
}

@media (max-width: 575.98px) {
    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-actions {
        grid-template-columns: 1fr;
    }

    .rutina-editor.pagos-rutina-style .admin-pagos-mobile-meta {
        grid-template-columns: 1fr;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-meta,
    .rutina-editor.caja-rutina-style .caja-mobile-stats {
        grid-template-columns: 1fr;
    }

    .rutina-editor.caja-rutina-style .caja-mobile-sticky-actions {
        grid-template-columns: 1fr;
    }
}

/* Clases mobile */
@media (max-width: 991.98px) {
    .rutina-editor.clases-rutina-style .admin-clases-header {
        flex-direction: column;
        align-items: stretch !important;
    }

    .rutina-editor.clases-rutina-style .admin-clases-header-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rutina-editor.clases-rutina-style .admin-clases-header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .rutina-editor.clases-rutina-style .admin-clases-header-actions {
        grid-template-columns: 1fr;
    }
}

/* Asignar clase a cliente */
.rutina-editor.assign-clase-cliente-style .assign-clase-page-head {
    position: relative;
    z-index: 1;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 20px 42px rgba(30, 23, 84, 0.22);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.rutina-editor.assign-clase-cliente-style .assign-clase-page-head h3 {
    margin: 0;
    color: #ffffff;
}

.rutina-editor.assign-clase-cliente-style .assign-clase-page-head small.text-muted {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.82) !important;
}

.rutina-editor.assign-clase-cliente-style .assign-clase-body {
    display: grid;
    gap: 0.9rem;
}

.rutina-editor.assign-clase-cliente-style .assign-card {
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(20, 31, 57, 0.08);
}

.rutina-editor.assign-clase-cliente-style .assign-card-header {
    border-bottom: 1px solid #edf0f7;
    background: linear-gradient(180deg, #fafbff 0%, #f3f6ff 100%);
}

.rutina-editor.assign-clase-cliente-style .assign-card-membership .card-body {
    background: linear-gradient(145deg, rgba(241, 245, 255, 0.7), rgba(255, 255, 255, 1));
    border-radius: 0 0 18px 18px;
}

.rutina-editor.assign-clase-cliente-style .assign-card-filters .card-body {
    padding: 1rem 1rem 0.8rem;
}

.rutina-editor.assign-clase-cliente-style .assign-cliente-tag {
    background: #eef2ff;
    border: 1px solid #d9e1ff;
    color: #27335f;
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
}

.rutina-editor.assign-clase-cliente-style .assign-subcard {
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(20, 31, 57, 0.06);
}

.rutina-editor.assign-clase-cliente-style .assign-day-switch {
    padding: 0.45rem 0.55rem;
    border: 1px solid #e8ecf5;
    border-radius: 12px;
    background: #fff;
}

.rutina-editor.assign-clase-cliente-style .assign-day-switch .form-check-input {
    cursor: pointer;
}

.rutina-editor.assign-clase-cliente-style .assign-day-switch .form-check-label {
    font-weight: 600;
    color: #37415f;
}

.rutina-editor.assign-clase-cliente-style .assign-table thead th {
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #465070;
    background: #f8f9fd;
    border-bottom-width: 1px;
}

.rutina-editor.assign-clase-cliente-style .assign-table tbody td {
    vertical-align: middle;
}

.rutina-editor.assign-clase-cliente-style .assign-empty-card {
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(20, 31, 57, 0.08);
}

/* Membership Admin (based on base44sporteate MembershipAdmin) */
.rutina-editor.membership-admin-wizard::before {
    display: none;
}

.rutina-editor.membership-admin-wizard {
    background: var(--re-soft);
    padding-bottom: 2rem;
}

.rutina-editor.membership-admin-wizard .membership-admin-content {
    max-width: 1120px;
    margin: 0 auto;
}

.rutina-editor.membership-admin-wizard .membership-admin-header {
    background: linear-gradient(135deg, var(--re-hero-1) 0%, var(--re-hero-2) 52%, var(--re-hero-3) 100%);
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 16px 32px rgba(91, 75, 160, 0.28);
}

.rutina-editor.membership-admin-wizard .membership-admin-header h3 {
    color: #ffffff;
    font-size: clamp(1.25rem, 1.6vw, 1.5rem);
    margin: 0;
}

.rutina-editor.membership-admin-wizard .membership-admin-header small {
    color: rgba(255, 255, 255, 0.78);
}

.rutina-editor.membership-admin-wizard .membership-admin-back-btn {
    min-height: 36px;
    padding: 0.38rem 0.9rem;
    border-radius: 10px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.16);
    font-weight: 600;
}

.rutina-editor.membership-admin-wizard .membership-admin-back-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.24);
}

.rutina-editor.membership-admin-wizard .membership-admin-sections {
    display: grid;
    gap: 1.25rem;
}

.rutina-editor.membership-admin-wizard .membership-admin-section-card {
    background: var(--re-surface);
    border-radius: 18px;
    border: 1px solid var(--re-border);
    box-shadow: var(--re-shadow);
}

.rutina-editor.membership-admin-wizard .membership-admin-section-header {
    background: linear-gradient(180deg, rgba(246, 248, 255, 0.55) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-bottom: 1px solid var(--re-border);
    padding: 1.05rem 1.25rem;
}

.rutina-editor.membership-admin-wizard .membership-admin-section-header h4,
.rutina-editor.membership-admin-wizard .membership-admin-section-header h5 {
    color: var(--re-text);
    font-weight: 700;
}

.rutina-editor.membership-admin-wizard .membership-admin-section-card .card-body {
    padding: 1.25rem 1.35rem;
}

.rutina-editor.membership-admin-wizard .membership-admin-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: #747084;
    margin-bottom: 0.36rem;
}

.rutina-editor.membership-admin-wizard .membership-admin-input {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid #dddceb;
    background: #ffffff;
    color: #2f2b42;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rutina-editor.membership-admin-wizard .membership-admin-input:focus {
    border-color: var(--re-primary);
    box-shadow: 0 0 0 0.2rem rgba(50, 153, 229, 0.14);
    outline: none;
}

.rutina-editor.membership-admin-wizard .membership-admin-textarea {
    min-height: 84px;
    resize: vertical;
}

.rutina-editor.membership-admin-wizard .membership-admin-hint {
    font-size: 0.79rem;
    color: #908b9f;
}

.rutina-editor.membership-admin-wizard .membership-admin-outline-btn {
    border-radius: 999px;
    border: 1px solid rgba(50, 153, 229, 0.62);
    color: var(--re-primary);
    background: rgba(50, 153, 229, 0.1);
    font-weight: 700;
    min-height: 34px;
    padding: 0.25rem 0.9rem;
}

.rutina-editor.membership-admin-wizard .membership-admin-outline-btn:hover {
    border-color: var(--re-primary);
    color: var(--re-primary-deep);
    background: rgba(50, 153, 229, 0.16);
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 38px;
    margin: 0;
    padding: 0.45rem 0.78rem;
    border: 1px solid #c8d3e2;
    border-radius: 999px;
    background: #f2f7ff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-item.is-selected {
    border-color: var(--re-primary);
    background: rgba(50, 153, 229, 0.14);
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-name {
    color: #374563;
    font-size: 0.9rem;
    font-weight: 500;
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-item.is-selected .membership-admin-discipline-name {
    color: var(--re-primary-deep);
    font-weight: 700;
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-check {
    display: none;
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    border: 1px solid #98a8bf;
    color: #687a95;
    font-size: 0.86rem;
    line-height: 1;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-item .form-check-input,
.rutina-editor.membership-admin-wizard .membership-admin-switch-wrap .form-check-input {
    border-color: #c9ced8;
    background-color: #dedfe3;
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-item .form-check-input:checked,
.rutina-editor.membership-admin-wizard .membership-admin-switch-wrap .form-check-input:checked {
    background-color: var(--re-primary);
    border-color: var(--re-primary);
}

.rutina-editor.membership-admin-wizard .membership-admin-discipline-item.is-selected .membership-admin-discipline-pill-icon {
    border-color: var(--re-primary);
    color: #ffffff;
    background: var(--re-primary);
    opacity: 1;
    transform: scale(1);
}

.rutina-editor.membership-admin-wizard .form-check-input:focus {
    border-color: var(--re-primary);
    box-shadow: 0 0 0 0.18rem rgba(50, 153, 229, 0.24);
}

.rutina-editor.membership-admin-wizard .membership-admin-switch-label {
    color: #4a465b;
    font-weight: 600;
}

.rutina-editor.membership-admin-wizard .membership-admin-save-btn {
    min-height: 44px;
    padding-inline: 1.35rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(44deg, var(--re-primary) 10%, var(--re-primary-2) 86%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(91, 75, 160, 0.24);
}

.rutina-editor.membership-admin-wizard .membership-admin-save-btn:hover {
    background: linear-gradient(135deg, var(--re-primary-deep) 0%, #4455db 100%);
    border-color: transparent;
    color: #ffffff;
}

.rutina-editor.membership-admin-wizard .membership-admin-mobile-actions {
    gap: 0.75rem;
}

.rutina-editor.membership-admin-wizard .membership-admin-mobile-actions .btn {
    min-width: 130px;
}

.rutina-editor.membership-admin-wizard .membership-rule-shell {
    border: 1px solid var(--re-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    padding: 1.2rem 1.25rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-shell + .membership-rule-shell {
    margin-top: 1.2rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-index {
    color: #0f2240;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.rutina-editor.membership-admin-wizard .membership-rule-section-card {
    border: 1px solid var(--re-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
    padding: 1.05rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-section-card + .membership-rule-section-card {
    margin-top: 1rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-subtitle {
    color: #7c879a;
}

.rutina-editor.membership-admin-wizard .membership-rule-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-config-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.05rem;
    align-items: end;
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-card {
    border: 1px solid var(--re-border);
    border-radius: 999px;
    background: var(--re-soft);
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 38px;
    padding: 0.45rem 0.78rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-check {
    display: none;
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-input {
    display: none;
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-name {
    color: #32405d;
    font-weight: 500;
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-state {
    margin-left: auto;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    background: rgba(50, 153, 229, 0.16);
    color: var(--re-primary-deep);
    font-size: 0.72rem;
    font-weight: 700;
}

.rutina-editor.membership-admin-wizard .membership-rule-empty-state {
    border: 1px dashed var(--re-border);
    background: rgba(248, 251, 255, 0.75);
    color: var(--re-muted);
}

.rutina-editor.membership-admin-wizard .membership-rule-empty-state-danger {
    border: 1px dashed var(--re-border);
    background: rgba(248, 251, 255, 0.75);
    color: var(--re-muted);
}

.rutina-editor.membership-admin-wizard .membership-rule-toggle-card {
    border: 0;
    background: transparent;
    padding: 0;
    min-height: 0;
}

.rutina-editor.membership-admin-wizard .membership-rule-field-kicker {
    color: #61708a;
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-card {
    border: 1px solid rgba(50, 153, 229, 0.16);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.75);
    padding: 1.15rem 1.2rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-context {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-field.membership-rule-field-disciplinas {
    grid-column: 1 / -1;
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-select-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    border: 1px solid #cad3e1;
    background: #ffffff;
    color: #3a465f;
    font-size: 0.8rem;
    font-weight: 600;
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-pill-select {
    width: 100%;
    justify-content: center;
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-pill.is-active {
    border-color: var(--re-primary);
    background: rgba(50, 153, 229, 0.12);
    color: var(--re-primary-deep);
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-pill.is-muted {
    border-style: dashed;
    color: #708099;
    font-weight: 500;
}

.rutina-editor.membership-admin-wizard .membership-rule-restriction-pill-flag {
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    background: var(--re-primary);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
}

.rutina-editor.membership-admin-wizard .membership-rule-section-card:last-child {
    padding: 1.2rem 1.25rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-remove-btn {
    border-radius: 999px;
    min-height: 40px;
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-card.is-selected {
    border-color: rgba(50, 153, 229, 0.48);
    background: rgba(50, 153, 229, 0.12);
    box-shadow: none;
}

.rutina-editor.membership-admin-wizard .membership-rule-section-header .membership-admin-outline-btn {
    min-height: 38px;
    padding-inline: 1rem;
}

.rutina-editor.membership-admin-wizard .membership-rule-config-grid .spt-inputSelect,
.rutina-editor.membership-admin-wizard .membership-rule-config-grid .spt-home-formulary-inputText,
.rutina-editor.membership-admin-wizard .membership-rule-restriction-grid .spt-inputSelect,
.rutina-editor.membership-admin-wizard .membership-rule-restriction-grid .spt-home-formulary-inputText {
    border-radius: 12px;
    border: 1px solid #cfd4de;
    background: #f7f8fa;
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-card.is-selected {
    border-color: rgba(50, 153, 229, 0.48);
    background: rgba(50, 153, 229, 0.12);
    box-shadow: none;
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-card.is-selected .membership-rule-discipline-name {
    color: var(--re-primary-deep);
}

.rutina-editor.membership-admin-wizard .membership-rule-discipline-card.is-selected .membership-rule-discipline-check {
    background: var(--re-primary);
    border-color: var(--re-primary);
}

@media (max-width: 991.98px) {
    .rutina-editor.membership-admin-wizard .membership-admin-discipline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rutina-editor.membership-admin-wizard .membership-rule-config-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rutina-editor.membership-admin-wizard .membership-rule-restriction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rutina-editor.membership-admin-wizard .membership-rule-restriction-select-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rutina-editor.membership-admin-wizard .membership-admin-header {
        border-radius: 14px;
        padding: 0.9rem;
    }

    .rutina-editor.membership-admin-wizard .membership-admin-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .rutina-editor.membership-admin-wizard .membership-admin-discipline-grid {
        grid-template-columns: 1fr;
    }

    .rutina-editor.membership-admin-wizard .membership-admin-mobile-actions .btn {
        flex: 1;
    }

    .rutina-editor.membership-admin-wizard .membership-rule-header,
    .rutina-editor.membership-admin-wizard .membership-rule-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .rutina-editor.membership-admin-wizard .membership-rule-config-grid,
    .rutina-editor.membership-admin-wizard .membership-rule-restriction-grid {
        grid-template-columns: 1fr;
    }

    .rutina-editor.membership-admin-wizard .membership-rule-restriction-select-pills {
        grid-template-columns: 1fr;
    }
}
