/* /Components/Navigation/ThemeToggle.razor.rz.scp.css */
.theme-toggle[b-egao1icz5p] {
    display: grid;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

    .theme-toggle:hover[b-egao1icz5p] {
        background: var(--jj-background-soft);
        color: var(--jj-accent-dark);
    }

    .theme-toggle:active[b-egao1icz5p] {
        transform: scale(0.96);
    }

    .theme-toggle:focus-visible[b-egao1icz5p] {
        outline: 2px solid rgba(179, 149, 99, 0.45);
        outline-offset: 2px;
    }

.theme-icon[b-egao1icz5p] {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon-sun[b-egao1icz5p] {
    display: none;
}

html[data-theme="dark"] .theme-icon-moon[b-egao1icz5p] {
    display: none;
}

html[data-theme="dark"] .theme-icon-sun[b-egao1icz5p] {
    display: block;
}

.theme-toggle.login-theme-toggle[b-egao1icz5p] {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 200;
    border-color: rgba(179, 149, 99, 0.32);
    background: rgba(255, 255, 255, 0.94);
    color: #4d5157;
    box-shadow: 0 10px 30px rgba(20, 22, 24, 0.12);
}

html[data-theme="dark"]
.theme-toggle.login-theme-toggle[b-egao1icz5p] {
    border-color: rgba(216, 190, 145, 0.25);
    background: rgba(29, 32, 35, 0.94);
    color: var(--jj-accent-light);
}

@media (max-width: 560px) {
    .theme-toggle.login-theme-toggle[b-egao1icz5p] {
        top: 16px;
        right: 16px;
    }
}
/* /Components/Navigation/TopBar.razor.rz.scp.css */
.topbar[b-mw7tuqyij0] {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 580px) minmax(290px, 1fr);
    align-items: center;
    min-height: 88px;
    padding: 0 32px;
    gap: 26px;
    border-bottom: 1px solid var(--jj-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.topbar-left[b-mw7tuqyij0],
.topbar-right[b-mw7tuqyij0] {
    display: flex;
    align-items: center;
}

.topbar-left[b-mw7tuqyij0] {
    gap: 14px;
}

.topbar-right[b-mw7tuqyij0] {
    justify-content: flex-end;
    gap: 17px;
}

.menu-button[b-mw7tuqyij0] {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--jj-border);
    background: #ffffff;
    color: var(--jj-text);
}

    .menu-button svg[b-mw7tuqyij0],
    .notification-button svg[b-mw7tuqyij0],
    .topbar-search svg[b-mw7tuqyij0],
    .user-chevron[b-mw7tuqyij0],
    .logout-button svg[b-mw7tuqyij0] {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .menu-button svg[b-mw7tuqyij0] {
        width: 22px;
        height: 22px;
    }

.page-context[b-mw7tuqyij0] {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

    .page-context span[b-mw7tuqyij0] {
        margin-bottom: 4px;
        color: var(--jj-accent-dark);
        font-size: 13px;
        font-weight: 760;
        line-height: 1.2;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .page-context strong[b-mw7tuqyij0] {
        overflow: hidden;
        color: var(--jj-text);
        font-size: 17px;
        font-weight: 680;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.topbar-search[b-mw7tuqyij0] {
    position: relative;
    display: flex;
    align-items: center;
}

    .topbar-search svg[b-mw7tuqyij0] {
        position: absolute;
        left: 17px;
        width: 21px;
        height: 21px;
        color: var(--jj-text-muted);
        pointer-events: none;
    }

    .topbar-search input[b-mw7tuqyij0] {
        width: 100%;
        min-height: 50px;
        padding: 0 18px 0 49px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        outline: none;
        background: var(--jj-background-soft);
        color: var(--jj-text);
        font-size: 16px;
        line-height: 1.4;
    }

        .topbar-search input:disabled[b-mw7tuqyij0] {
            cursor: default;
            opacity: 1;
        }

        .topbar-search input[b-mw7tuqyij0]::placeholder {
            color: #878c94;
            opacity: 1;
        }

.notification-button[b-mw7tuqyij0] {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--jj-border);
    background: #ffffff;
    color: var(--jj-text-secondary);
}

    .notification-button svg[b-mw7tuqyij0] {
        width: 22px;
        height: 22px;
    }

.notification-indicator[b-mw7tuqyij0] {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: var(--jj-accent);
}

.user-menu-container[b-mw7tuqyij0] {
    position: relative;
}

.user-summary-button[b-mw7tuqyij0] {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 4px 9px;
    gap: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    text-align: left;
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .user-summary-button:hover[b-mw7tuqyij0],
    .user-summary-button:focus-visible[b-mw7tuqyij0] {
        border-color: var(--jj-border);
        background: var(--jj-background-soft);
        outline: none;
    }

.user-avatar[b-mw7tuqyij0],
.dropdown-avatar[b-mw7tuqyij0] {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    background: var(--jj-sidebar);
    color: var(--jj-accent-light);
    font-weight: 760;
    letter-spacing: 0.06em;
}

.user-avatar[b-mw7tuqyij0] {
    width: 46px;
    height: 46px;
    font-size: 14px;
}

.user-copy[b-mw7tuqyij0] {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

    .user-copy strong[b-mw7tuqyij0] {
        max-width: 170px;
        overflow: hidden;
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 680;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-copy span[b-mw7tuqyij0] {
        max-width: 170px;
        margin-top: 3px;
        overflow: hidden;
        color: var(--jj-text-muted);
        font-size: 13px;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.user-chevron[b-mw7tuqyij0] {
    width: 18px;
    height: 18px;
    color: var(--jj-text-muted);
}

.user-dropdown[b-mw7tuqyij0] {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 100;
    width: 310px;
    border: 1px solid var(--jj-border);
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(25, 27, 29, 0.16);
}

.user-dropdown-header[b-mw7tuqyij0] {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 13px;
    border-bottom: 1px solid var(--jj-border-soft);
}

.dropdown-avatar[b-mw7tuqyij0] {
    width: 48px;
    height: 48px;
    font-size: 14px;
}

.user-dropdown-header > div:last-child[b-mw7tuqyij0] {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.user-dropdown-header strong[b-mw7tuqyij0] {
    overflow: hidden;
    color: var(--jj-text);
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-header span[b-mw7tuqyij0] {
    margin-top: 4px;
    overflow: hidden;
    color: var(--jj-text-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role-row[b-mw7tuqyij0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 20px;
    border-bottom: 1px solid var(--jj-border-soft);
}

.role-label[b-mw7tuqyij0] {
    color: var(--jj-text-muted);
    font-size: 14px;
}

.user-role-row strong[b-mw7tuqyij0] {
    color: var(--jj-accent-dark);
    font-size: 14px;
    font-weight: 700;
}

.logout-button[b-mw7tuqyij0] {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    gap: 12px;
    border: 0;
    background: transparent;
    color: var(--jj-danger);
    font-size: 15px;
    font-weight: 680;
    text-align: left;
    transition: background-color 150ms ease;
}

    .logout-button:hover:not(:disabled)[b-mw7tuqyij0] {
        background: #fff5f5;
    }

    .logout-button:disabled[b-mw7tuqyij0] {
        cursor: wait;
        opacity: 0.65;
    }

    .logout-button svg[b-mw7tuqyij0] {
        width: 20px;
        height: 20px;
    }

@media (max-width: 1150px) {
    .topbar[b-mw7tuqyij0] {
        grid-template-columns: minmax(220px, 1fr) minmax(260px, 430px) auto;
        padding: 0 26px;
        gap: 20px;
    }

    .user-copy[b-mw7tuqyij0],
    .user-chevron[b-mw7tuqyij0] {
        display: none;
    }
}

@media (max-width: 900px) {
    .topbar[b-mw7tuqyij0] {
        grid-template-columns: minmax(220px, 1fr) minmax(240px, 440px) auto;
        padding: 0 24px;
    }

    .menu-button[b-mw7tuqyij0] {
        display: grid;
    }
}

@media (max-width: 700px) {
    .topbar[b-mw7tuqyij0] {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 76px;
        padding: 0 18px;
    }

    .topbar-search[b-mw7tuqyij0],
    .notification-button[b-mw7tuqyij0] {
        display: none;
    }

    .page-context strong[b-mw7tuqyij0] {
        max-width: 230px;
    }

    .user-dropdown[b-mw7tuqyij0] {
        position: fixed;
        top: 70px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}


/* =========================================================
   JJColor TopBar — Dark Theme
   ========================================================= */

html[data-theme="dark"] .topbar[b-mw7tuqyij0] {
    background: rgba(24, 27, 30, 0.96);
}

html[data-theme="dark"] .menu-button[b-mw7tuqyij0],
html[data-theme="dark"] .notification-button[b-mw7tuqyij0],
html[data-theme="dark"] .user-dropdown[b-mw7tuqyij0] {
    border-color: var(--jj-border);
    background: var(--jj-surface);
}

html[data-theme="dark"] .topbar-search input[b-mw7tuqyij0] {
    border-color: var(--jj-border);
    background: var(--jj-background-soft);
    color: var(--jj-text);
}

html[data-theme="dark"]
.user-summary-button:hover[b-mw7tuqyij0],
html[data-theme="dark"]
.user-summary-button:focus-visible[b-mw7tuqyij0] {
    border-color: var(--jj-border);
    background: var(--jj-background-soft);
}

html[data-theme="dark"] .notification-indicator[b-mw7tuqyij0] {
    border-color: var(--jj-surface);
}

html[data-theme="dark"]
.logout-button:hover:not(:disabled)[b-mw7tuqyij0] {
    background: rgba(166, 79, 79, 0.14);
}
/* /Features/Authentication/Login.razor.rz.scp.css */
.login-page[b-py944d4zbm] {
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
    width: 100%;
    min-height: 100vh;
}

.login-brand-panel[b-py944d4zbm] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 64px;
    overflow: hidden;
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.025), transparent ), #151719;
    color: #ffffff;
}

    .login-brand-panel[b-py944d4zbm]::after {
        position: absolute;
        right: -180px;
        bottom: -180px;
        width: 460px;
        height: 460px;
        border: 1px solid rgba(216, 190, 145, 0.12);
        content: "";
        transform: rotate(45deg);
    }

.login-brand-content[b-py944d4zbm] {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.login-brand-mark[b-py944d4zbm] {
    display: grid;
    width: 78px;
    height: 78px;
    margin-bottom: 38px;
    place-items: center;
    border: 1px solid rgba(216, 190, 145, 0.48);
    background: rgba(179, 149, 99, 0.12);
    color: #d8be91;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.login-brand-eyebrow[b-py944d4zbm],
.login-eyebrow[b-py944d4zbm] {
    display: block;
    color: #b39563;
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-brand-content h1[b-py944d4zbm] {
    margin: 13px 0 0;
    color: #ffffff;
    font-size: clamp(54px, 6vw, 76px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
}

.login-brand-content > p[b-py944d4zbm] {
    max-width: 490px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 19px;
    line-height: 1.75;
}

.login-brand-footer[b-py944d4zbm] {
    display: flex;
    align-items: center;
    margin-top: 54px;
    gap: 14px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 14px;
    letter-spacing: 0.04em;
}

    .login-brand-footer > span[b-py944d4zbm] {
        width: 40px;
        height: 1px;
        background: #b39563;
    }

    .login-brand-footer strong[b-py944d4zbm] {
        font-weight: 570;
    }

.login-form-panel[b-py944d4zbm] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 64px 48px;
    background: #f3f3f1;
}

.login-card[b-py944d4zbm] {
    width: 100%;
    max-width: 520px;
    padding: 48px;
    border: 1px solid var(--jj-border);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(27, 29, 31, 0.08);
}

.login-header[b-py944d4zbm] {
    margin-bottom: 34px;
}

    .login-header h2[b-py944d4zbm] {
        margin: 11px 0 0;
        color: var(--jj-text);
        font-size: 38px;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -0.035em;
    }

    .login-header p[b-py944d4zbm] {
        margin: 13px 0 0;
        color: var(--jj-text-secondary);
        font-size: 16px;
        line-height: 1.65;
    }

.session-expired-message[b-py944d4zbm] {
    display: flex;
    align-items: flex-start;
    margin: -5px 0 26px;
    padding: 16px;
    gap: 13px;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-text);
}

    .session-expired-message svg[b-py944d4zbm] {
        width: 23px;
        height: 23px;
        flex: 0 0 auto;
        fill: none;
        stroke: var(--jj-accent-dark);
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .session-expired-message > div[b-py944d4zbm] {
        display: flex;
        flex-direction: column;
    }

    .session-expired-message strong[b-py944d4zbm] {
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 720;
        line-height: 1.35;
    }

    .session-expired-message span[b-py944d4zbm] {
        margin-top: 4px;
        color: var(--jj-text-secondary);
        font-size: 14px;
        line-height: 1.5;
    }


.form-field[b-py944d4zbm] {
    margin-bottom: 24px;
}

    .form-field label[b-py944d4zbm] {
        display: block;
        margin-bottom: 9px;
        color: var(--jj-text);
        font-size: 16px;
        font-weight: 670;
    }

    .form-field .form-control[b-py944d4zbm] {
        width: 100%;
        min-height: 54px;
        padding: 0 16px;
        border: 1px solid #d5d6d2;
        border-radius: 2px;
        outline: none;
        background: #ffffff;
        color: var(--jj-text);
        font-size: 16px;
        transition: border-color 150ms ease, box-shadow 150ms ease;
    }

        .form-field .form-control:focus[b-py944d4zbm] {
            border-color: #9a7b4f;
            box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
        }

        .form-field .form-control[b-py944d4zbm]::placeholder {
            color: #999da4;
        }

        .form-field .form-control:disabled[b-py944d4zbm] {
            background: #f5f5f3;
            cursor: wait;
        }


.password-input-wrapper[b-py944d4zbm] {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-input-wrapper .password-input[b-py944d4zbm] {
        padding-right: 56px;
    }

.password-toggle[b-py944d4zbm] {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--jj-text-muted);
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
}

    .password-toggle:hover:not(:disabled)[b-py944d4zbm] {
        background: var(--jj-background-soft);
        color: var(--jj-text);
    }

    .password-toggle:focus-visible[b-py944d4zbm] {
        outline: 2px solid rgba(179, 149, 99, 0.45);
        outline-offset: 1px;
    }

    .password-toggle:disabled[b-py944d4zbm] {
        cursor: wait;
        opacity: 0.55;
    }

    .password-toggle svg[b-py944d4zbm] {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }





.login-error[b-py944d4zbm] {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid #e2bbbb;
    background: #fff5f5;
    color: #7a3232;
}

    .login-error strong[b-py944d4zbm] {
        font-size: 15px;
        font-weight: 700;
    }

    .login-error span[b-py944d4zbm] {
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.55;
    }

.login-button[b-py944d4zbm] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0 22px;
    gap: 12px;
    border: 1px solid #151719;
    background: #151719;
    color: #ffffff;
    font-size: 16px;
    font-weight: 680;
    transition: background-color 150ms ease, opacity 150ms ease;
}

    .login-button:hover:not(:disabled)[b-py944d4zbm] {
        background: #2a2d30;
    }

    .login-button:disabled[b-py944d4zbm] {
        cursor: wait;
        opacity: 0.78;
    }

    .login-button svg[b-py944d4zbm] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.login-spinner[b-py944d4zbm] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spin-b-py944d4zbm 650ms linear infinite;
}

.login-footer[b-py944d4zbm] {
    display: flex;
    align-items: center;
    margin-top: 28px;
    gap: 10px;
    color: var(--jj-text-muted);
    font-size: 13px;
}

.security-indicator[b-py944d4zbm] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f9a68;
    box-shadow: 0 0 0 4px rgba(79, 154, 104, 0.12);
}

@keyframes login-spin-b-py944d4zbm {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .login-page[b-py944d4zbm] {
        grid-template-columns: 1fr;
    }

    .login-brand-panel[b-py944d4zbm] {
        display: none;
    }

    .login-form-panel[b-py944d4zbm] {
        padding: 38px 22px;
    }
}

@media (max-width: 560px) {
    .login-card[b-py944d4zbm] {
        padding: 32px 24px;
    }

    .login-header h2[b-py944d4zbm] {
        font-size: 32px;
    }
}

/* =========================================================
   JJColor Login — Dark Theme
   ========================================================= */

html[data-theme="dark"] .login-form-panel[b-py944d4zbm] {
    background: var(--jj-background);
}

html[data-theme="dark"] .login-card[b-py944d4zbm] {
    border-color: var(--jj-border);
    background: var(--jj-surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"]
.form-field .form-control[b-py944d4zbm] {
    border-color: var(--jj-border);
    background: var(--jj-background-soft);
    color: var(--jj-text);
}

    html[data-theme="dark"]
    .form-field .form-control:disabled[b-py944d4zbm] {
        background: #202428;
    }

    html[data-theme="dark"]
    .form-field .form-control[b-py944d4zbm]::placeholder {
        color: var(--jj-text-muted);
    }

html[data-theme="dark"] .password-toggle:hover:not(:disabled)[b-py944d4zbm] {
    background: #24282c;
}

html[data-theme="dark"] .login-error[b-py944d4zbm] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}
/* /Features/ClientCards/ClientCardsPanel.razor.rz.scp.css */
.client-cards-section[b-dtvoenbhr1] {
    margin-top: 38px;
}

.client-cards-header[b-dtvoenbhr1] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 24px;
}

.client-cards-eyebrow[b-dtvoenbhr1] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-accent-dark);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.client-cards-header h2[b-dtvoenbhr1] {
    margin: 0;
    color: var(--jj-text);
    font-size: 28px;
    font-weight: 720;
}

.client-cards-header p[b-dtvoenbhr1] {
    max-width: 730px;
    margin: 9px 0 0;
    color: var(--jj-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.upload-card-button[b-dtvoenbhr1] {
    display: inline-flex;
    min-height: 48px;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--jj-sidebar);
    border-radius: 2px;
    background: var(--jj-sidebar);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

    .upload-card-button:hover[b-dtvoenbhr1] {
        opacity: 0.88;
    }

    .upload-card-button svg[b-dtvoenbhr1] {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* =========================================================
   Mensaje de confirmación
   ========================================================= */

.card-success-message[b-dtvoenbhr1] {
    display: flex;
    margin-bottom: 18px;
    padding: 14px 16px;
    align-items: center;
    gap: 11px;
    border: 1px solid #8cbea0;
    background: #e4f3e8;
    color: #245f3a;
    font-size: 14px;
    font-weight: 650;
}

    .card-success-message > svg[b-dtvoenbhr1] {
        width: 21px;
        height: 21px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .card-success-message > span[b-dtvoenbhr1] {
        flex: 1;
    }

    .card-success-message button[b-dtvoenbhr1] {
        display: grid;
        width: 31px;
        height: 31px;
        flex: 0 0 auto;
        place-items: center;
        border: 0;
        background: transparent;
        color: currentColor;
    }

        .card-success-message button svg[b-dtvoenbhr1] {
            width: 17px;
            height: 17px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8px;
            stroke-linecap: round;
        }

/* =========================================================
   Estados: cargando, error y vacío
   ========================================================= */

.cards-status[b-dtvoenbhr1],
.cards-empty[b-dtvoenbhr1] {
    display: flex;
    min-height: 270px;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

    .cards-status strong[b-dtvoenbhr1],
    .cards-empty h3[b-dtvoenbhr1] {
        margin: 16px 0 0;
        color: var(--jj-text);
        font-size: 19px;
        font-weight: 720;
    }

    .cards-status span[b-dtvoenbhr1],
    .cards-empty p[b-dtvoenbhr1] {
        max-width: 590px;
        margin: 8px 0 0;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.65;
    }

    .cards-status button[b-dtvoenbhr1],
    .cards-empty button[b-dtvoenbhr1] {
        min-height: 44px;
        margin-top: 20px;
        padding: 0 18px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text-secondary);
        font-size: 14px;
        font-weight: 680;
    }

        .cards-status button:hover[b-dtvoenbhr1],
        .cards-empty button:hover[b-dtvoenbhr1] {
            border-color: var(--jj-accent);
            background: var(--jj-accent-soft);
            color: var(--jj-accent-dark);
        }

.cards-spinner[b-dtvoenbhr1] {
    width: 38px;
    height: 38px;
    border: 3px solid var(--jj-border);
    border-top-color: var(--jj-accent);
    border-radius: 50%;
    animation: client-cards-spin-b-dtvoenbhr1 700ms linear infinite;
}

.cards-error > svg[b-dtvoenbhr1] {
    width: 38px;
    height: 38px;
    color: var(--jj-danger);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cards-empty-icon[b-dtvoenbhr1] {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

    .cards-empty-icon svg[b-dtvoenbhr1] {
        width: 27px;
        height: 27px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* =========================================================
   Resumen y grilla
   ========================================================= */

.cards-summary[b-dtvoenbhr1] {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--jj-text-muted);
    font-size: 13px;
}

    .cards-summary strong[b-dtvoenbhr1] {
        display: grid;
        min-width: 29px;
        height: 29px;
        padding: 0 8px;
        place-items: center;
        border: 1px solid var(--jj-accent-border);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
        font-size: 13px;
    }

.cards-grid[b-dtvoenbhr1] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* =========================================================
   Tarjeta histórica
   ========================================================= */

.historical-card[b-dtvoenbhr1] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.historical-card-header[b-dtvoenbhr1] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 18px 20px;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

.historical-card-type-icon[b-dtvoenbhr1] {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

    .historical-card-type-icon svg[b-dtvoenbhr1] {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.historical-card-title[b-dtvoenbhr1] {
    min-width: 0;
}

    .historical-card-title > span[b-dtvoenbhr1],
    .historical-card-id span[b-dtvoenbhr1],
    .historical-card-details span[b-dtvoenbhr1],
    .historical-card-notes > span[b-dtvoenbhr1] {
        color: var(--jj-text-muted);
        font-size: 11px;
        font-weight: 740;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .historical-card-title h3[b-dtvoenbhr1] {
        margin: 5px 0 0;
        overflow: hidden;
        color: var(--jj-text);
        font-size: 16px;
        font-weight: 720;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.historical-card-id[b-dtvoenbhr1] {
    display: flex;
    flex-direction: column;
    text-align: right;
}

    .historical-card-id strong[b-dtvoenbhr1] {
        margin-top: 5px;
        color: var(--jj-accent-dark);
        font-size: 15px;
        font-weight: 720;
    }

.historical-card-content[b-dtvoenbhr1] {
    display: flex;
    flex: 1;
    padding: 20px;
    flex-direction: column;
    gap: 20px;
}

.historical-card-details[b-dtvoenbhr1] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .historical-card-details > div[b-dtvoenbhr1] {
        min-width: 0;
        padding: 13px;
        border: 1px solid var(--jj-border);
        background: var(--jj-background-soft);
    }

    .historical-card-details span[b-dtvoenbhr1] {
        display: block;
        margin-bottom: 7px;
    }

    .historical-card-details strong[b-dtvoenbhr1] {
        display: block;
        color: var(--jj-text);
        font-size: 13px;
        font-weight: 680;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

.historical-card-notes[b-dtvoenbhr1] {
    min-height: 105px;
}

    .historical-card-notes > span[b-dtvoenbhr1] {
        display: block;
    }

    .historical-card-notes p[b-dtvoenbhr1] {
        margin: 9px 0 0;
        color: var(--jj-text-secondary);
        font-size: 14px;
        line-height: 1.65;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .historical-card-notes .historical-card-notes-empty[b-dtvoenbhr1] {
        color: var(--jj-text-muted);
        font-style: italic;
    }

/* =========================================================
   Acciones
   ========================================================= */

.historical-card-footer[b-dtvoenbhr1] {
    display: flex;
    padding: 15px 20px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--jj-border);
}

    .historical-card-footer button[b-dtvoenbhr1] {
        display: inline-flex;
        min-height: 37px;
        padding: 0 13px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text-secondary);
        font-size: 13px;
        font-weight: 680;
        white-space: nowrap;
        cursor: pointer;
        transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
    }

.card-view-button:hover:not(:disabled)[b-dtvoenbhr1],
.card-view-button:focus-visible:not(:disabled)[b-dtvoenbhr1] {
    border-color: var(--jj-accent);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

.card-download-button:hover:not(:disabled)[b-dtvoenbhr1],
.card-download-button:focus-visible:not(:disabled)[b-dtvoenbhr1] {
    border-color: var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

.card-archive-button:hover:not(:disabled)[b-dtvoenbhr1],
.card-archive-button:focus-visible:not(:disabled)[b-dtvoenbhr1] {
    border-color: #873d3d;
    background: #873d3d;
    color: #ffffff;
}

.historical-card-footer button:hover:not(:disabled)[b-dtvoenbhr1] {
    transform: translateY(-1px);
}

.historical-card-footer button:active:not(:disabled)[b-dtvoenbhr1] {
    transform: translateY(0);
}

.historical-card-footer button:focus-visible[b-dtvoenbhr1] {
    outline: 2px solid var(--jj-accent);
    outline-offset: 2px;
}

.historical-card-footer button:disabled[b-dtvoenbhr1] {
    cursor: not-allowed;
    opacity: 0.48;
}

.card-action-spinner[b-dtvoenbhr1] {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: client-cards-spin-b-dtvoenbhr1 650ms linear infinite;
}

/* =========================================================
   Fondo de ventanas
   ========================================================= */

.card-modal-backdrop[b-dtvoenbhr1] {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.68);
    backdrop-filter: blur(3px);
}

/* =========================================================
   Vista previa
   ========================================================= */

.card-preview-modal[b-dtvoenbhr1] {
    display: flex;
    width: min(1080px, 100%);
    max-height: calc(100vh - 48px);
    flex-direction: column;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.card-preview-header[b-dtvoenbhr1] {
    display: flex;
    padding: 20px 23px;
    align-items: flex-start;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 20px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .card-preview-header > div[b-dtvoenbhr1] {
        min-width: 0;
    }

    .card-preview-header span[b-dtvoenbhr1] {
        color: var(--jj-accent-dark);
        font-size: 11px;
        font-weight: 760;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .card-preview-header h2[b-dtvoenbhr1] {
        margin: 6px 0 0;
        color: var(--jj-text);
        font-size: 23px;
        font-weight: 720;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .card-preview-header p[b-dtvoenbhr1] {
        margin: 5px 0 0;
        color: var(--jj-text-muted);
        font-size: 13px;
    }

.card-modal-close[b-dtvoenbhr1] {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

    .card-modal-close:hover[b-dtvoenbhr1] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .card-modal-close svg[b-dtvoenbhr1] {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
    }

.card-preview-content[b-dtvoenbhr1] {
    display: grid;
    min-height: 360px;
    flex: 1 1 auto;
    place-items: center;
    overflow: auto;
    background: #222222;
}

.card-preview-status[b-dtvoenbhr1] {
    display: flex;
    min-height: 360px;
    width: 100%;
    padding: 35px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--jj-surface);
    text-align: center;
}

    .card-preview-status strong[b-dtvoenbhr1] {
        margin-top: 16px;
        color: var(--jj-text);
        font-size: 18px;
        font-weight: 720;
    }

    .card-preview-status span[b-dtvoenbhr1] {
        max-width: 560px;
        margin-top: 8px;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.6;
    }

    .card-preview-status > svg[b-dtvoenbhr1] {
        width: 38px;
        height: 38px;
        color: var(--jj-danger);
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.card-image-preview[b-dtvoenbhr1] {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 290px);
    margin: auto;
    object-fit: contain;
}

.card-pdf-preview[b-dtvoenbhr1] {
    display: block;
    width: 100%;
    min-height: 580px;
    height: calc(100vh - 285px);
    border: 0;
    background: #ffffff;
}

.card-preview-footer[b-dtvoenbhr1] {
    display: flex;
    padding: 17px 23px;
    align-items: flex-end;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 20px;
    border-top: 1px solid var(--jj-border);
}

.card-preview-information[b-dtvoenbhr1] {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 24px;
}

    .card-preview-information > div[b-dtvoenbhr1] {
        min-width: 0;
    }

    .card-preview-information span[b-dtvoenbhr1] {
        display: block;
        color: var(--jj-text-muted);
        font-size: 11px;
        font-weight: 740;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .card-preview-information strong[b-dtvoenbhr1] {
        display: block;
        max-width: 600px;
        margin-top: 5px;
        color: var(--jj-text-secondary);
        font-size: 13px;
        font-weight: 680;
        line-height: 1.5;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

.card-preview-actions[b-dtvoenbhr1] {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
}

    .card-preview-actions button[b-dtvoenbhr1] {
        min-height: 44px;
        padding: 0 19px;
        border-radius: 2px;
        font-size: 14px;
        font-weight: 700;
    }

.card-preview-close-button[b-dtvoenbhr1] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

.card-preview-download-button[b-dtvoenbhr1] {
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

.card-preview-actions button:disabled[b-dtvoenbhr1] {
    cursor: wait;
    opacity: 0.55;
}

/* =========================================================
   Confirmación de archivado
   ========================================================= */

.card-confirm-modal[b-dtvoenbhr1] {
    display: flex;
    width: min(540px, 100%);
    padding: 34px;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.card-archive-warning-icon[b-dtvoenbhr1] {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid #d3a1a1;
    border-radius: 50%;
    background: #fff1f1;
    color: #8b3c3c;
}

    .card-archive-warning-icon svg[b-dtvoenbhr1] {
        width: 30px;
        height: 30px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.card-archive-eyebrow[b-dtvoenbhr1] {
    color: #8b3c3c;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.card-confirm-modal h2[b-dtvoenbhr1] {
    margin: 9px 0 0;
    color: var(--jj-text);
    font-size: 28px;
    font-weight: 720;
}

.card-confirm-modal > p[b-dtvoenbhr1] {
    max-width: 460px;
    margin: 14px 0 0;
    color: var(--jj-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

    .card-confirm-modal > p strong[b-dtvoenbhr1] {
        color: var(--jj-text);
        overflow-wrap: anywhere;
    }

.card-archive-error[b-dtvoenbhr1] {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid #d3a1a1;
    background: #fff1f1;
    color: #843939;
    font-size: 13px;
    line-height: 1.55;
}

.card-archive-actions[b-dtvoenbhr1] {
    display: flex;
    width: 100%;
    margin-top: 25px;
    justify-content: center;
    gap: 10px;
}

    .card-archive-actions button[b-dtvoenbhr1] {
        display: inline-flex;
        min-height: 47px;
        padding: 0 20px;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border-radius: 2px;
        font-size: 14px;
        font-weight: 700;
    }

.card-archive-cancel-button[b-dtvoenbhr1] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

.card-archive-confirm-button[b-dtvoenbhr1] {
    min-width: 160px;
    border: 1px solid #873d3d;
    background: #873d3d;
    color: #ffffff;
}

.card-archive-actions button:disabled[b-dtvoenbhr1] {
    cursor: wait;
    opacity: 0.6;
}

/* =========================================================
   Tema oscuro
   ========================================================= */

html[data-theme="dark"] .card-success-message[b-dtvoenbhr1] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

html[data-theme="dark"] .card-archive-warning-icon[b-dtvoenbhr1],
html[data-theme="dark"] .card-archive-error[b-dtvoenbhr1] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

html[data-theme="dark"] .card-preview-content[b-dtvoenbhr1] {
    background: #111111;
}

/* =========================================================
   Animación
   ========================================================= */

@keyframes client-cards-spin-b-dtvoenbhr1 {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {
    .cards-grid[b-dtvoenbhr1] {
        grid-template-columns: 1fr;
    }

    .historical-card-details[b-dtvoenbhr1] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-preview-footer[b-dtvoenbhr1] {
        align-items: stretch;
        flex-direction: column;
    }

    .card-preview-information[b-dtvoenbhr1] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-preview-actions[b-dtvoenbhr1] {
        justify-content: flex-end;
    }
}

/* =========================================================
   Teléfono y tablet pequeña
   ========================================================= */

@media (max-width: 680px) {
    .client-cards-header[b-dtvoenbhr1] {
        align-items: stretch;
        flex-direction: column;
    }

    .upload-card-button[b-dtvoenbhr1] {
        width: 100%;
    }

    .historical-card-header[b-dtvoenbhr1] {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .historical-card-id[b-dtvoenbhr1] {
        grid-column: 1 / -1;
        padding-top: 10px;
        border-top: 1px solid var(--jj-border);
        text-align: left;
    }

    .historical-card-details[b-dtvoenbhr1] {
        grid-template-columns: 1fr;
    }

    .historical-card-footer[b-dtvoenbhr1] {
        align-items: stretch;
        flex-direction: column;
    }

        .historical-card-footer button[b-dtvoenbhr1] {
            width: 100%;
        }

    .card-modal-backdrop[b-dtvoenbhr1] {
        padding: 12px;
    }

    .card-preview-modal[b-dtvoenbhr1] {
        max-height: calc(100vh - 24px);
    }

    .card-preview-header[b-dtvoenbhr1] {
        padding-right: 17px;
        padding-left: 17px;
    }

        .card-preview-header h2[b-dtvoenbhr1] {
            font-size: 19px;
        }

    .card-preview-content[b-dtvoenbhr1] {
        min-height: 300px;
    }

    .card-image-preview[b-dtvoenbhr1] {
        max-height: calc(100vh - 340px);
    }

    .card-pdf-preview[b-dtvoenbhr1] {
        min-height: 430px;
        height: calc(100vh - 340px);
    }

    .card-preview-footer[b-dtvoenbhr1] {
        padding-right: 17px;
        padding-left: 17px;
    }

    .card-preview-information[b-dtvoenbhr1] {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card-preview-actions[b-dtvoenbhr1] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .card-preview-actions button[b-dtvoenbhr1] {
            width: 100%;
        }

    .card-confirm-modal[b-dtvoenbhr1] {
        padding: 27px 20px;
    }

    .card-archive-actions[b-dtvoenbhr1] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .card-archive-actions button[b-dtvoenbhr1] {
            width: 100%;
        }
}

/* =========================================================
   Client Cards — Readable Typography Overrides
   ========================================================= */

/* Encabezado principal */

.client-cards-eyebrow[b-dtvoenbhr1] {
    font-size: 13px;
    letter-spacing: 0.12em;
}

.client-cards-header h2[b-dtvoenbhr1] {
    font-size: 30px;
}

.client-cards-header p[b-dtvoenbhr1] {
    font-size: 16px;
}

/* Resumen */

.cards-summary[b-dtvoenbhr1] {
    font-size: 14px;
}

    .cards-summary strong[b-dtvoenbhr1] {
        min-width: 31px;
        height: 31px;
        font-size: 14px;
    }

/* Encabezado de cada tarjeta histórica */

.historical-card-title > span[b-dtvoenbhr1],
.historical-card-id span[b-dtvoenbhr1],
.historical-card-details span[b-dtvoenbhr1],
.historical-card-notes > span[b-dtvoenbhr1] {
    font-size: 13px;
    letter-spacing: 0.06em;
}

.historical-card-title h3[b-dtvoenbhr1] {
    margin-top: 6px;
    font-size: 18px;
}

.historical-card-id strong[b-dtvoenbhr1] {
    font-size: 17px;
}

/* Información de la tarjeta */

.historical-card-details > div[b-dtvoenbhr1] {
    padding: 15px;
}

.historical-card-details span[b-dtvoenbhr1] {
    margin-bottom: 8px;
}

.historical-card-details strong[b-dtvoenbhr1] {
    font-size: 15px;
    line-height: 1.5;
}

.historical-card-notes p[b-dtvoenbhr1] {
    font-size: 16px;
    line-height: 1.7;
}

/* Botones */

.historical-card-footer[b-dtvoenbhr1] {
    padding: 16px 20px;
}

    .historical-card-footer button[b-dtvoenbhr1] {
        min-height: 41px;
        padding-right: 16px;
        padding-left: 16px;
        font-size: 14px;
    }

/* Vista previa */

.card-preview-header span[b-dtvoenbhr1] {
    font-size: 13px;
    letter-spacing: 0.09em;
}

.card-preview-header h2[b-dtvoenbhr1] {
    font-size: 25px;
}

.card-preview-header p[b-dtvoenbhr1] {
    font-size: 14px;
    line-height: 1.55;
}

.card-preview-information span[b-dtvoenbhr1] {
    font-size: 13px;
    letter-spacing: 0.06em;
}

.card-preview-information strong[b-dtvoenbhr1] {
    margin-top: 7px;
    font-size: 15px;
    line-height: 1.55;
}

.card-preview-actions button[b-dtvoenbhr1] {
    min-height: 46px;
    font-size: 14px;
}

/* Ventana de archivado */

.card-archive-eyebrow[b-dtvoenbhr1] {
    font-size: 13px;
    letter-spacing: 0.09em;
}

.card-archive-error[b-dtvoenbhr1] {
    font-size: 14px;
}

@media (max-width: 680px) {
    .client-cards-header h2[b-dtvoenbhr1] {
        font-size: 27px;
    }

    .historical-card-title h3[b-dtvoenbhr1] {
        font-size: 17px;
    }

    .historical-card-content[b-dtvoenbhr1] {
        padding: 17px;
    }

    .card-preview-header h2[b-dtvoenbhr1] {
        font-size: 21px;
    }
}

/* /Features/ClientCards/NewClientCard.razor.rz.scp.css */
.new-card-page[b-x7699u4zn2] {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.new-card-header[b-x7699u4zn2] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 28px;
}

.new-card-eyebrow[b-x7699u4zn2] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-accent-dark);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.new-card-header h1[b-x7699u4zn2] {
    margin: 0;
    color: var(--jj-text);
    font-size: clamp(38px, 4vw, 50px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.new-card-header p[b-x7699u4zn2] {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.back-client-button[b-x7699u4zn2] {
    display: inline-flex;
    min-height: 48px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 680;
}

    .back-client-button:hover:not(:disabled)[b-x7699u4zn2] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .back-client-button svg[b-x7699u4zn2] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.card-page-status[b-x7699u4zn2] {
    display: flex;
    min-height: 420px;
    padding: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

    .card-page-status strong[b-x7699u4zn2] {
        margin-top: 18px;
        color: var(--jj-text);
        font-size: 19px;
    }

    .card-page-status > span[b-x7699u4zn2] {
        max-width: 620px;
        margin-top: 8px;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.6;
    }

.card-page-spinner[b-x7699u4zn2] {
    width: 42px;
    height: 42px;
    border: 3px solid var(--jj-border);
    border-top-color: var(--jj-accent);
    border-radius: 50%;
    animation: card-page-spin-b-x7699u4zn2 700ms linear infinite;
}

.card-page-error > svg[b-x7699u4zn2] {
    width: 42px;
    height: 42px;
    color: var(--jj-danger);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.load-error-actions[b-x7699u4zn2] {
    display: flex;
    margin-top: 24px;
    gap: 10px;
}

    .load-error-actions button[b-x7699u4zn2] {
        min-height: 46px;
        padding: 0 18px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text-secondary);
        font-size: 14px;
        font-weight: 680;
    }

.client-summary[b-x7699u4zn2] {
    display: flex;
    margin-bottom: 22px;
    padding: 22px 24px;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.client-avatar[b-x7699u4zn2] {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
    font-size: 19px;
    font-weight: 780;
}

.client-summary-information[b-x7699u4zn2] {
    min-width: 0;
}

    .client-summary-information > span[b-x7699u4zn2] {
        color: var(--jj-text-muted);
        font-size: 11px;
        font-weight: 740;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .client-summary-information h2[b-x7699u4zn2] {
        margin: 4px 0 0;
        color: var(--jj-text);
        font-size: 23px;
        font-weight: 720;
        overflow-wrap: anywhere;
    }

    .client-summary-information p[b-x7699u4zn2] {
        margin: 5px 0 0;
        color: var(--jj-text-muted);
        font-size: 13px;
    }

.card-form-panel[b-x7699u4zn2] {
    margin-bottom: 22px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.form-section-header[b-x7699u4zn2] {
    display: flex;
    padding: 22px 26px;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .form-section-header > span[b-x7699u4zn2] {
        display: grid;
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid var(--jj-accent-border);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
        font-size: 12px;
        font-weight: 780;
    }

    .form-section-header h2[b-x7699u4zn2] {
        margin: 0;
        color: var(--jj-text);
        font-size: 20px;
        font-weight: 720;
    }

    .form-section-header p[b-x7699u4zn2] {
        margin: 6px 0 0;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.55;
    }

.card-form-content[b-x7699u4zn2] {
    padding: 26px;
}

.file-upload-area[b-x7699u4zn2] {
    display: flex;
    min-height: 290px;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--jj-border);
    background: var(--jj-background-soft);
    text-align: center;
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .file-upload-area.has-file[b-x7699u4zn2] {
        border-style: solid;
        border-color: var(--jj-accent-border);
        background: var(--jj-accent-soft);
    }

.file-upload-icon[b-x7699u4zn2] {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-surface);
    color: var(--jj-accent-dark);
}

    .file-upload-icon svg[b-x7699u4zn2] {
        width: 31px;
        height: 31px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.file-upload-area h3[b-x7699u4zn2] {
    margin: 0;
    color: var(--jj-text);
    font-size: 20px;
    font-weight: 720;
    overflow-wrap: anywhere;
}

.file-upload-area p[b-x7699u4zn2] {
    margin: 8px 0 0;
    color: var(--jj-text-muted);
    font-size: 14px;
}

.select-file-button[b-x7699u4zn2] {
    display: inline-flex;
    min-height: 47px;
    margin-top: 21px;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-sidebar);
    border-radius: 2px;
    background: var(--jj-sidebar);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

    .select-file-button:hover[b-x7699u4zn2] {
        opacity: 0.88;
    }

[b-x7699u4zn2] .file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-error-message[b-x7699u4zn2],
.submit-error-message[b-x7699u4zn2] {
    display: flex;
    margin-top: 16px;
    padding: 15px 16px;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #d6a5a5;
    background: #fff3f3;
    color: #7a3232;
}

    .file-error-message svg[b-x7699u4zn2],
    .submit-error-message svg[b-x7699u4zn2] {
        width: 22px;
        height: 22px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .file-error-message span[b-x7699u4zn2],
    .submit-error-message span[b-x7699u4zn2] {
        font-size: 14px;
        line-height: 1.55;
    }

.submit-error-message[b-x7699u4zn2] {
    margin-top: 0;
    margin-bottom: 22px;
}

    .submit-error-message > div[b-x7699u4zn2] {
        display: flex;
        flex-direction: column;
    }

    .submit-error-message strong[b-x7699u4zn2] {
        font-size: 15px;
        font-weight: 720;
    }

    .submit-error-message span[b-x7699u4zn2] {
        margin-top: 4px;
    }

.card-fields-grid[b-x7699u4zn2] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 26px;
    gap: 24px;
}

.form-field[b-x7699u4zn2] {
    min-width: 0;
}

.form-field-full[b-x7699u4zn2] {
    grid-column: 1 / -1;
}

.form-field label[b-x7699u4zn2] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-text);
    font-size: 15px;
    font-weight: 680;
}

.form-control[b-x7699u4zn2] {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    outline: none;
    background: var(--jj-surface);
    color: var(--jj-text);
    font-size: 15px;
}

    .form-control:focus[b-x7699u4zn2] {
        border-color: var(--jj-accent);
        box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
    }

.field-help[b-x7699u4zn2] {
    display: block;
    margin-top: 8px;
    color: var(--jj-text-muted);
    font-size: 12px;
}

.notes-control[b-x7699u4zn2] {
    min-height: 190px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    line-height: 1.65;
}

.notes-help[b-x7699u4zn2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 12px;
    color: var(--jj-text-muted);
    font-size: 12px;
}

.card-form-actions[b-x7699u4zn2] {
    display: flex;
    padding: 22px 0 6px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-button[b-x7699u4zn2],
.save-card-button[b-x7699u4zn2] {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.cancel-button[b-x7699u4zn2] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

.save-card-button[b-x7699u4zn2] {
    display: inline-flex;
    min-width: 190px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

    .save-card-button svg[b-x7699u4zn2] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .cancel-button:disabled[b-x7699u4zn2],
    .save-card-button:disabled[b-x7699u4zn2] {
        cursor: not-allowed;
        opacity: 0.55;
    }

.save-spinner[b-x7699u4zn2] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: card-page-spin-b-x7699u4zn2 650ms linear infinite;
}

.card-created-panel[b-x7699u4zn2] {
    display: flex;
    min-height: 500px;
    padding: 54px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

.created-icon[b-x7699u4zn2] {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid #8cbea0;
    border-radius: 50%;
    background: #dff1e5;
    color: #245f3a;
}

    .created-icon svg[b-x7699u4zn2] {
        width: 38px;
        height: 38px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.created-eyebrow[b-x7699u4zn2] {
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-created-panel h2[b-x7699u4zn2] {
    margin: 13px 0 0;
    color: var(--jj-text);
    font-size: 34px;
    font-weight: 720;
}

.card-created-panel > p[b-x7699u4zn2] {
    max-width: 620px;
    margin: 17px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.card-created-panel p strong[b-x7699u4zn2] {
    color: var(--jj-text);
}

.created-details[b-x7699u4zn2] {
    display: grid;
    width: min(620px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 27px;
    gap: 12px;
}

    .created-details > div[b-x7699u4zn2] {
        padding: 16px;
        border: 1px solid var(--jj-border);
        background: var(--jj-background-soft);
    }

    .created-details span[b-x7699u4zn2] {
        display: block;
        color: var(--jj-text-muted);
        font-size: 11px;
        font-weight: 720;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .created-details strong[b-x7699u4zn2] {
        display: block;
        margin-top: 7px;
        color: var(--jj-text);
        font-size: 14px;
    }

.created-actions[b-x7699u4zn2] {
    display: flex;
    margin-top: 30px;
    justify-content: center;
    gap: 12px;
}

.primary-created-button[b-x7699u4zn2],
.secondary-created-button[b-x7699u4zn2] {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.primary-created-button[b-x7699u4zn2] {
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

.secondary-created-button[b-x7699u4zn2] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

html[data-theme="dark"] .file-error-message[b-x7699u4zn2],
html[data-theme="dark"] .submit-error-message[b-x7699u4zn2] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

html[data-theme="dark"] .created-icon[b-x7699u4zn2] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

@keyframes card-page-spin-b-x7699u4zn2 {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 760px) {
    .new-card-header[b-x7699u4zn2] {
        align-items: stretch;
        flex-direction: column;
    }

    .back-client-button[b-x7699u4zn2] {
        width: 100%;
    }

    .card-fields-grid[b-x7699u4zn2] {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .form-field-full[b-x7699u4zn2] {
        grid-column: auto;
    }

    .created-details[b-x7699u4zn2] {
        grid-template-columns: 1fr;
    }

    .created-actions[b-x7699u4zn2],
    .load-error-actions[b-x7699u4zn2] {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

        .primary-created-button[b-x7699u4zn2],
        .secondary-created-button[b-x7699u4zn2],
        .load-error-actions button[b-x7699u4zn2] {
            width: 100%;
        }

    .card-form-actions[b-x7699u4zn2] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cancel-button[b-x7699u4zn2],
    .save-card-button[b-x7699u4zn2] {
        width: 100%;
    }

    .notes-help[b-x7699u4zn2] {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   Vista previa y rotación de la imagen
   ========================================================= */

.selected-image-editor[b-x7699u4zn2] {
    margin-top: 24px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
}

.selected-image-editor-header[b-x7699u4zn2] {
    padding: 19px 21px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .selected-image-editor-header > div[b-x7699u4zn2] {
        min-width: 0;
    }

    .selected-image-editor-header span[b-x7699u4zn2] {
        color: var(--jj-accent-dark);
        font-size: 11px;
        font-weight: 760;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .selected-image-editor-header h3[b-x7699u4zn2] {
        margin: 6px 0 0;
        color: var(--jj-text);
        font-size: 19px;
        font-weight: 720;
        line-height: 1.4;
    }

    .selected-image-editor-header p[b-x7699u4zn2] {
        margin: 6px 0 0;
        color: var(--jj-text-muted);
        font-size: 13px;
        line-height: 1.55;
    }

.selected-image-preview[b-x7699u4zn2] {
    display: grid;
    min-height: 360px;
    max-height: 650px;
    padding: 20px;
    place-items: center;
    overflow: auto;
    background: #222222;
}

    .selected-image-preview img[b-x7699u4zn2] {
        display: block;
        max-width: 100%;
        max-height: 610px;
        object-fit: contain;
    }

.image-rotation-actions[b-x7699u4zn2] {
    display: flex;
    padding: 17px 21px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--jj-border);
}

.rotate-image-button[b-x7699u4zn2] {
    display: inline-flex;
    min-height: 46px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 690;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

    .rotate-image-button svg[b-x7699u4zn2] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .rotate-image-button:hover:not(:disabled)[b-x7699u4zn2],
    .rotate-image-button:focus-visible:not(:disabled)[b-x7699u4zn2] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
        transform: translateY(-1px);
    }

    .rotate-image-button:active:not(:disabled)[b-x7699u4zn2] {
        transform: translateY(0);
    }

    .rotate-image-button:focus-visible[b-x7699u4zn2] {
        outline: 2px solid var(--jj-accent);
        outline-offset: 2px;
    }

    .rotate-image-button:disabled[b-x7699u4zn2] {
        cursor: wait;
        opacity: 0.55;
    }

html[data-theme="dark"] .selected-image-preview[b-x7699u4zn2] {
    background: #111111;
}

@media (max-width: 680px) {
    .selected-image-preview[b-x7699u4zn2] {
        min-height: 280px;
        max-height: 520px;
        padding: 12px;
    }

        .selected-image-preview img[b-x7699u4zn2] {
            max-height: 490px;
        }

    .image-rotation-actions[b-x7699u4zn2] {
        align-items: stretch;
        flex-direction: column;
        padding-right: 17px;
        padding-left: 17px;
    }

    .rotate-image-button[b-x7699u4zn2] {
        width: 100%;
    }
}
/* /Features/ClientPhotos/ClientPhotosPanel.razor.rz.scp.css */
.client-photos-section[b-ijqwu3vnwy] {
    margin-top: 38px;
}

/* =========================================================
   Encabezado principal
   ========================================================= */

.client-photos-header[b-ijqwu3vnwy] {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

    .client-photos-header > div[b-ijqwu3vnwy] {
        min-width: 0;
    }

.photos-eyebrow[b-ijqwu3vnwy] {
    display: block;
    margin-bottom: 8px;
    color: var(--jj-accent-dark, #6c6258);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.client-photos-header h2[b-ijqwu3vnwy] {
    margin: 0;
    color: var(--jj-text, #202020);
    font-size: 28px;
    font-weight: 730;
    line-height: 1.25;
}

.client-photos-header p[b-ijqwu3vnwy] {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--jj-text-secondary, #656565);
    font-size: 15px;
    line-height: 1.6;
}

.add-photo-button[b-ijqwu3vnwy] {
    display: inline-flex;
    min-height: 48px;
    flex: 0 0 auto;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--jj-sidebar, #181818);
    border-radius: 2px;
    background: var(--jj-sidebar, #181818);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 150ms ease, transform 150ms ease;
}

    .add-photo-button svg[b-ijqwu3vnwy] {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .add-photo-button:hover[b-ijqwu3vnwy],
    .add-photo-button:focus-visible[b-ijqwu3vnwy] {
        opacity: 0.88;
        transform: translateY(-1px);
    }

    .add-photo-button:focus-visible[b-ijqwu3vnwy] {
        outline: 2px solid var(--jj-accent, #92877a);
        outline-offset: 2px;
    }

/* =========================================================
   Mensajes
   ========================================================= */

.photo-success-message[b-ijqwu3vnwy],
.photo-action-error[b-ijqwu3vnwy] {
    display: flex;
    margin-bottom: 18px;
    padding: 14px 16px;
    align-items: center;
    gap: 11px;
    font-size: 14px;
    font-weight: 650;
}

.photo-success-message[b-ijqwu3vnwy] {
    border: 1px solid #8cbea0;
    background: #e4f3e8;
    color: #245f3a;
}

.photo-action-error[b-ijqwu3vnwy] {
    border: 1px solid #d3a1a1;
    background: #fff1f1;
    color: #843939;
}

    .photo-success-message > svg[b-ijqwu3vnwy],
    .photo-action-error > svg[b-ijqwu3vnwy] {
        width: 21px;
        height: 21px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .photo-success-message > span[b-ijqwu3vnwy],
    .photo-action-error > span[b-ijqwu3vnwy] {
        flex: 1;
        line-height: 1.5;
    }

    .photo-success-message > button[b-ijqwu3vnwy],
    .photo-action-error > button[b-ijqwu3vnwy] {
        display: grid;
        width: 31px;
        height: 31px;
        flex: 0 0 31px;
        padding: 0;
        place-items: center;
        border: 0;
        background: transparent;
        color: currentColor;
        cursor: pointer;
    }

        .photo-success-message > button svg[b-ijqwu3vnwy],
        .photo-action-error > button svg[b-ijqwu3vnwy] {
            width: 17px;
            height: 17px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8px;
            stroke-linecap: round;
        }

/* =========================================================
   Estados generales
   ========================================================= */

.photos-status[b-ijqwu3vnwy],
.photos-empty[b-ijqwu3vnwy],
.photos-filter-empty[b-ijqwu3vnwy] {
    display: flex;
    min-height: 270px;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border, #dddddd);
    background: var(--jj-surface, #ffffff);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

    .photos-status strong[b-ijqwu3vnwy],
    .photos-empty h3[b-ijqwu3vnwy],
    .photos-filter-empty strong[b-ijqwu3vnwy] {
        margin: 16px 0 0;
        color: var(--jj-text, #202020);
        font-size: 19px;
        font-weight: 720;
    }

    .photos-status span[b-ijqwu3vnwy],
    .photos-empty p[b-ijqwu3vnwy],
    .photos-filter-empty span[b-ijqwu3vnwy] {
        max-width: 590px;
        margin: 8px 0 0;
        color: var(--jj-text-muted, #747474);
        font-size: 14px;
        line-height: 1.65;
    }

    .photos-status button[b-ijqwu3vnwy],
    .photos-empty button[b-ijqwu3vnwy] {
        min-height: 44px;
        margin-top: 20px;
        padding: 0 18px;
        border: 1px solid var(--jj-border, #d5d5d5);
        border-radius: 2px;
        background: var(--jj-surface, #ffffff);
        color: var(--jj-text-secondary, #3d3d3d);
        font-size: 14px;
        font-weight: 680;
        cursor: pointer;
    }

.photos-spinner[b-ijqwu3vnwy] {
    width: 38px;
    height: 38px;
    border: 3px solid var(--jj-border, #d8d8d8);
    border-top-color: var(--jj-accent, #92877a);
    border-radius: 50%;
    animation: client-photos-spin-b-ijqwu3vnwy 700ms linear infinite;
}

.photos-error > svg[b-ijqwu3vnwy],
.photo-preview-error > svg[b-ijqwu3vnwy] {
    width: 39px;
    height: 39px;
    color: var(--jj-danger, #9c4242);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photos-empty-icon[b-ijqwu3vnwy] {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--jj-accent-border, #d7cec3);
    background: var(--jj-accent-soft, #f4f1ed);
    color: var(--jj-accent-dark, #665d53);
}

    .photos-empty-icon svg[b-ijqwu3vnwy] {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.photos-filter-empty[b-ijqwu3vnwy] {
    min-height: 190px;
}

    .photos-filter-empty strong[b-ijqwu3vnwy] {
        margin-top: 0;
    }

/* =========================================================
   Resumen numérico
   ========================================================= */

.photos-summary[b-ijqwu3vnwy] {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--jj-border, #dddddd);
    border-left: 1px solid var(--jj-border, #dddddd);
    background: var(--jj-surface, #ffffff);
}

    .photos-summary > div[b-ijqwu3vnwy] {
        min-width: 0;
        padding: 16px 18px;
        border-right: 1px solid var(--jj-border, #dddddd);
        border-bottom: 1px solid var(--jj-border, #dddddd);
    }

    .photos-summary span[b-ijqwu3vnwy],
    .photos-summary strong[b-ijqwu3vnwy] {
        display: block;
    }

    .photos-summary span[b-ijqwu3vnwy] {
        color: var(--jj-text-muted, #747474);
        font-size: 11px;
        font-weight: 680;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .photos-summary strong[b-ijqwu3vnwy] {
        margin-top: 7px;
        color: var(--jj-text, #202020);
        font-size: 21px;
        font-weight: 740;
    }

/* =========================================================
   Panel de búsqueda y filtros
   ========================================================= */

.photos-search-panel[b-ijqwu3vnwy] {
    display: grid;
    margin-bottom: 24px;
    padding: 18px;
    align-items: end;
    grid-template-columns: minmax(260px, 1.25fr) minmax(300px, 1.45fr) minmax(145px, 0.55fr);
    gap: 20px;
    border: 1px solid var(--jj-border, #dddddd);
    background: var(--jj-surface, #ffffff);
}

.photos-date-filter[b-ijqwu3vnwy],
.photos-classification-filter[b-ijqwu3vnwy] {
    min-width: 0;
}

    .photos-date-filter > label[b-ijqwu3vnwy],
    .photos-classification-filter > span[b-ijqwu3vnwy],
    .photos-filter-result > span[b-ijqwu3vnwy] {
        display: block;
        margin-bottom: 8px;
        color: var(--jj-text-muted, #747474);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

.photos-date-select-wrapper[b-ijqwu3vnwy] {
    position: relative;
}

    .photos-date-select-wrapper > svg[b-ijqwu3vnwy] {
        position: absolute;
        z-index: 1;
        top: 50%;
        left: 14px;
        width: 19px;
        height: 19px;
        pointer-events: none;
        transform: translateY(-50%);
        fill: none;
        stroke: var(--jj-accent-dark, #6a6157);
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .photos-date-select-wrapper select[b-ijqwu3vnwy] {
        width: 100%;
        min-height: 46px;
        padding: 0 42px 0 44px;
        border: 1px solid var(--jj-border, #d5d5d5);
        border-radius: 2px;
        outline: none;
        background: var(--jj-surface, #ffffff);
        color: var(--jj-text, #252525);
        font-size: 14px;
        font-weight: 620;
        cursor: pointer;
        transition: border-color 150ms ease, box-shadow 150ms ease;
    }

        .photos-date-select-wrapper select:hover[b-ijqwu3vnwy] {
            border-color: var(--jj-accent, #92877a);
        }

        .photos-date-select-wrapper select:focus[b-ijqwu3vnwy] {
            border-color: var(--jj-accent-dark, #6a6157);
            box-shadow: 0 0 0 3px rgba(146, 135, 122, 0.14);
        }

.photo-filter-buttons[b-ijqwu3vnwy] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.photo-filter-button[b-ijqwu3vnwy] {
    display: inline-flex;
    min-height: 46px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--jj-border, #d5d5d5);
    border-radius: 2px;
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #404040);
    font-size: 13px;
    font-weight: 690;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

    .photo-filter-button > span[b-ijqwu3vnwy] {
        display: grid;
        min-width: 23px;
        height: 23px;
        padding: 0 5px;
        place-items: center;
        border: 1px solid var(--jj-border, #d5d5d5);
        background: var(--jj-background-soft, #f4f4f4);
        color: var(--jj-text-muted, #707070);
        font-size: 11px;
    }

    .photo-filter-button:hover[b-ijqwu3vnwy],
    .photo-filter-button:focus-visible[b-ijqwu3vnwy] {
        border-color: var(--jj-accent, #92877a);
        background: var(--jj-accent-soft, #f4f1ed);
    }

    .photo-filter-button.is-active[b-ijqwu3vnwy] {
        border-color: var(--jj-accent-dark, #6b6258);
        background: var(--jj-accent-dark, #6b6258);
        color: #ffffff;
    }

        .photo-filter-button.is-active > span[b-ijqwu3vnwy] {
            border-color: rgba(255, 255, 255, 0.35);
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff;
        }

    .photo-filter-button:focus-visible[b-ijqwu3vnwy] {
        outline: 2px solid var(--jj-accent, #92877a);
        outline-offset: 2px;
    }

.photos-filter-result[b-ijqwu3vnwy] {
    min-height: 72px;
    padding: 11px 14px;
    border-left: 3px solid var(--jj-accent, #92877a);
    background: var(--jj-background-soft, #f5f5f5);
}

    .photos-filter-result > span[b-ijqwu3vnwy] {
        margin-bottom: 2px;
    }

    .photos-filter-result strong[b-ijqwu3vnwy] {
        display: inline-block;
        color: var(--jj-text, #202020);
        font-size: 25px;
        font-weight: 760;
        line-height: 1.2;
    }

    .photos-filter-result small[b-ijqwu3vnwy] {
        display: block;
        margin-top: 2px;
        color: var(--jj-text-muted, #747474);
        font-size: 12px;
    }

/* =========================================================
   Grupos por fecha
   ========================================================= */

.photo-date-groups[b-ijqwu3vnwy] {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.photo-date-group[b-ijqwu3vnwy] {
    border: 1px solid var(--jj-border, #dddddd);
    background: var(--jj-background-soft, #f6f6f6);
    box-shadow: var(--jj-shadow);
}

.photo-date-group-header[b-ijqwu3vnwy] {
    display: grid;
    min-height: 105px;
    padding: 18px 20px;
    align-items: center;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 22px;
    border-bottom: 1px solid var(--jj-border, #dddddd);
    background: var(--jj-surface, #ffffff);
}

.photo-date-group-identity[b-ijqwu3vnwy] {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
}

.photo-date-group-icon[b-ijqwu3vnwy] {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid var(--jj-accent-border, #d8cec2);
    background: var(--jj-accent-soft, #f4f1ed);
    color: var(--jj-accent-dark, #685f55);
}

    .photo-date-group-icon svg[b-ijqwu3vnwy] {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.photo-date-group-identity > div:last-child[b-ijqwu3vnwy] {
    min-width: 0;
}

.photo-date-group-eyebrow[b-ijqwu3vnwy] {
    display: block;
    margin-bottom: 4px;
    color: var(--jj-accent-dark, #6b6258);
    font-size: 11px;
    font-weight: 770;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.photo-date-group-identity h3[b-ijqwu3vnwy] {
    margin: 0;
    color: var(--jj-text, #202020);
    font-size: 25px;
    font-weight: 760;
    line-height: 1.25;
}

.photo-date-group-identity p[b-ijqwu3vnwy] {
    margin: 6px 0 0;
    color: var(--jj-text-muted, #747474);
    font-size: 13px;
    line-height: 1.55;
}

.photo-date-group-summary[b-ijqwu3vnwy] {
    display: flex;
    border-top: 1px solid var(--jj-border, #dddddd);
    border-left: 1px solid var(--jj-border, #dddddd);
}

    .photo-date-group-summary > div[b-ijqwu3vnwy] {
        min-width: 72px;
        padding: 10px 13px;
        border-right: 1px solid var(--jj-border, #dddddd);
        border-bottom: 1px solid var(--jj-border, #dddddd);
        text-align: center;
    }

    .photo-date-group-summary span[b-ijqwu3vnwy],
    .photo-date-group-summary strong[b-ijqwu3vnwy] {
        display: block;
    }

    .photo-date-group-summary span[b-ijqwu3vnwy] {
        color: var(--jj-text-muted, #747474);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .photo-date-group-summary strong[b-ijqwu3vnwy] {
        margin-top: 4px;
        color: var(--jj-text, #202020);
        font-size: 18px;
        font-weight: 750;
    }

.add-group-photo-button[b-ijqwu3vnwy] {
    display: inline-flex;
    min-height: 43px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-sidebar, #181818);
    border-radius: 2px;
    background: var(--jj-sidebar, #181818);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 150ms ease, transform 150ms ease;
}

    .add-group-photo-button:hover[b-ijqwu3vnwy],
    .add-group-photo-button:focus-visible[b-ijqwu3vnwy] {
        opacity: 0.87;
        transform: translateY(-1px);
    }

    .add-group-photo-button:focus-visible[b-ijqwu3vnwy] {
        outline: 2px solid var(--jj-accent, #92877a);
        outline-offset: 2px;
    }

/* =========================================================
   Galería
   ========================================================= */

.photos-gallery[b-ijqwu3vnwy] {
    display: grid;
    padding: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.photo-card[b-ijqwu3vnwy] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--jj-border, #dddddd);
    background: var(--jj-surface, #ffffff);
}

.photo-preview-button[b-ijqwu3vnwy] {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.photo-image-frame[b-ijqwu3vnwy] {
    position: relative;
    display: grid;
    height: 330px;
    overflow: hidden;
    place-items: center;
    background: #222222;
}

    .photo-image-frame img[b-ijqwu3vnwy] {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 200ms ease;
    }

.photo-preview-button:hover .photo-image-frame img[b-ijqwu3vnwy],
.photo-preview-button:focus-visible .photo-image-frame img[b-ijqwu3vnwy] {
    transform: scale(1.02);
}

.photo-preview-button:focus-visible[b-ijqwu3vnwy] {
    outline: 2px solid var(--jj-accent, #92877a);
    outline-offset: -2px;
}

.photo-thumbnail-loading[b-ijqwu3vnwy],
.photo-thumbnail-error[b-ijqwu3vnwy] {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #d7d7d7;
    text-align: center;
}

    .photo-thumbnail-loading span[b-ijqwu3vnwy],
    .photo-thumbnail-error span[b-ijqwu3vnwy] {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.5;
    }

.photo-thumbnail-spinner[b-ijqwu3vnwy] {
    width: 31px;
    height: 31px;
    border: 3px solid #555555;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: client-photos-spin-b-ijqwu3vnwy 700ms linear infinite;
}

.photo-thumbnail-error svg[b-ijqwu3vnwy] {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photo-type-badge[b-ijqwu3vnwy] {
    position: absolute;
    top: 13px;
    left: 13px;
    display: inline-flex;
    min-height: 29px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .photo-type-badge.is-before[b-ijqwu3vnwy] {
        border-color: #c7b99d;
        background: #f5efe3;
        color: #6d5c3f;
    }

    .photo-type-badge.is-after[b-ijqwu3vnwy] {
        border-color: #9dbca4;
        background: #eaf4ec;
        color: #3f6c49;
    }

.photo-view-indicator[b-ijqwu3vnwy] {
    position: absolute;
    right: 13px;
    bottom: 13px;
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(18, 18, 18, 0.82);
    color: #ffffff;
    font-size: 12px;
    font-weight: 680;
    backdrop-filter: blur(5px);
}

    .photo-view-indicator svg[b-ijqwu3vnwy] {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* =========================================================
   Información de cada fotografía
   ========================================================= */

.photo-card-content[b-ijqwu3vnwy] {
    flex: 1;
    padding: 19px;
}

.photo-card-identity[b-ijqwu3vnwy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .photo-card-identity span[b-ijqwu3vnwy] {
        color: var(--jj-text-muted, #757575);
        font-size: 11px;
        font-weight: 690;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .photo-card-identity strong[b-ijqwu3vnwy] {
        color: var(--jj-text, #202020);
        font-size: 14px;
        font-weight: 740;
    }

.photo-association[b-ijqwu3vnwy] {
    display: flex;
    margin-top: 13px;
    align-items: flex-start;
    gap: 9px;
    color: var(--jj-text-secondary, #555555);
}

    .photo-association svg[b-ijqwu3vnwy] {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        fill: none;
        stroke: var(--jj-accent-dark, #6a6157);
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .photo-association span[b-ijqwu3vnwy] {
        font-size: 13px;
        font-weight: 650;
        line-height: 1.5;
    }

.photo-caption[b-ijqwu3vnwy] {
    min-height: 47px;
    margin: 15px 0 0;
    color: var(--jj-text-secondary, #555555);
    font-size: 14px;
    line-height: 1.6;
}

    .photo-caption.is-empty[b-ijqwu3vnwy] {
        color: var(--jj-text-muted, #808080);
        font-style: italic;
    }

.photo-card-metadata[b-ijqwu3vnwy] {
    display: grid;
    margin-top: 17px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--jj-border, #dddddd);
    border-left: 1px solid var(--jj-border, #dddddd);
}

    .photo-card-metadata > div[b-ijqwu3vnwy] {
        min-width: 0;
        padding: 12px;
        border-right: 1px solid var(--jj-border, #dddddd);
        border-bottom: 1px solid var(--jj-border, #dddddd);
    }

    .photo-card-metadata span[b-ijqwu3vnwy],
    .photo-card-metadata strong[b-ijqwu3vnwy] {
        display: block;
    }

    .photo-card-metadata span[b-ijqwu3vnwy] {
        color: var(--jj-text-muted, #767676);
        font-size: 10px;
        font-weight: 680;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .photo-card-metadata strong[b-ijqwu3vnwy] {
        margin-top: 6px;
        overflow: hidden;
        color: var(--jj-text, #222222);
        font-size: 12px;
        font-weight: 680;
        line-height: 1.45;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* =========================================================
   Acciones de cada fotografía
   ========================================================= */

.photo-card-actions[b-ijqwu3vnwy] {
    display: flex;
    padding: 13px 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--jj-border, #dddddd);
}

    .photo-card-actions button[b-ijqwu3vnwy] {
        display: inline-flex;
        min-height: 40px;
        padding: 0 14px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 2px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
    }

.view-photo-button[b-ijqwu3vnwy],
.download-photo-button[b-ijqwu3vnwy] {
    border: 1px solid var(--jj-border, #d4d4d4);
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #3f3f3f);
}

.archive-photo-button[b-ijqwu3vnwy] {
    border: 1px solid #d2aaaa;
    background: #fff8f8;
    color: #843d3d;
}

.view-photo-button:hover:not(:disabled)[b-ijqwu3vnwy],
.download-photo-button:hover:not(:disabled)[b-ijqwu3vnwy] {
    border-color: var(--jj-accent, #92877a);
    background: var(--jj-accent-soft, #f4f1ed);
}

.archive-photo-button:hover:not(:disabled)[b-ijqwu3vnwy] {
    border-color: #994747;
    background: #994747;
    color: #ffffff;
}

.photo-card-actions button:disabled[b-ijqwu3vnwy] {
    cursor: wait;
    opacity: 0.58;
}

.small-action-spinner[b-ijqwu3vnwy] {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: client-photos-spin-b-ijqwu3vnwy 700ms linear infinite;
}

/* =========================================================
   Modal de visualización
   ========================================================= */

.photo-modal-backdrop[b-ijqwu3vnwy] {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    padding: 30px;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: rgba(13, 13, 13, 0.76);
    backdrop-filter: blur(3px);
}

.photo-preview-modal[b-ijqwu3vnwy] {
    display: flex;
    width: min(1080px, 100%);
    max-height: calc(100vh - 60px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--jj-border, #d6d6d6);
    background: var(--jj-surface, #ffffff);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.photo-modal-header[b-ijqwu3vnwy] {
    display: flex;
    padding: 20px 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--jj-border, #dddddd);
}

    .photo-modal-header > div[b-ijqwu3vnwy] {
        min-width: 0;
    }

    .photo-modal-header span[b-ijqwu3vnwy] {
        color: var(--jj-accent-dark, #6b6258);
        font-size: 11px;
        font-weight: 780;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .photo-modal-header h2[b-ijqwu3vnwy] {
        margin: 6px 0 0;
        overflow-wrap: anywhere;
        color: var(--jj-text, #202020);
        font-size: 22px;
        font-weight: 730;
        line-height: 1.35;
    }

    .photo-modal-header p[b-ijqwu3vnwy] {
        margin: 5px 0 0;
        color: var(--jj-text-muted, #747474);
        font-size: 12px;
        line-height: 1.5;
    }

.close-photo-modal[b-ijqwu3vnwy] {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--jj-border, #d8d8d8);
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #404040);
    cursor: pointer;
}

    .close-photo-modal svg[b-ijqwu3vnwy] {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
    }

.photo-modal-image[b-ijqwu3vnwy] {
    display: grid;
    min-height: 420px;
    flex: 1;
    padding: 18px;
    place-items: center;
    overflow: auto;
    background: #202020;
}

    .photo-modal-image > img[b-ijqwu3vnwy] {
        display: block;
        max-width: 100%;
        max-height: calc(100vh - 290px);
        object-fit: contain;
    }

.photo-preview-status[b-ijqwu3vnwy] {
    display: flex;
    min-height: 320px;
    padding: 30px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #ffffff;
    text-align: center;
}

    .photo-preview-status strong[b-ijqwu3vnwy] {
        margin-top: 17px;
        font-size: 17px;
    }

    .photo-preview-status span[b-ijqwu3vnwy] {
        max-width: 560px;
        margin-top: 8px;
        color: #d0d0d0;
        font-size: 13px;
        line-height: 1.6;
    }

.photo-preview-error svg[b-ijqwu3vnwy] {
    color: #efaaaa;
}

.photo-modal-footer[b-ijqwu3vnwy] {
    display: flex;
    padding: 17px 22px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    border-top: 1px solid var(--jj-border, #dddddd);
}

.photo-modal-information[b-ijqwu3vnwy] {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: minmax(110px, 0.7fr) minmax(210px, 1.35fr) minmax(220px, 1.5fr);
    gap: 20px;
}

    .photo-modal-information > div[b-ijqwu3vnwy] {
        min-width: 0;
    }

    .photo-modal-information span[b-ijqwu3vnwy],
    .photo-modal-information strong[b-ijqwu3vnwy] {
        display: block;
    }

    .photo-modal-information span[b-ijqwu3vnwy] {
        color: var(--jj-text-muted, #747474);
        font-size: 10px;
        font-weight: 690;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .photo-modal-information strong[b-ijqwu3vnwy] {
        margin-top: 6px;
        overflow-wrap: anywhere;
        color: var(--jj-text, #222222);
        font-size: 13px;
        font-weight: 680;
        line-height: 1.5;
    }

.photo-modal-actions[b-ijqwu3vnwy] {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
}

    .photo-modal-actions button[b-ijqwu3vnwy] {
        display: inline-flex;
        min-height: 44px;
        padding: 0 18px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 2px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

.modal-close-button[b-ijqwu3vnwy] {
    border: 1px solid var(--jj-border, #d4d4d4);
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #3d3d3d);
}

.modal-download-button[b-ijqwu3vnwy] {
    border: 1px solid var(--jj-sidebar, #181818);
    background: var(--jj-sidebar, #181818);
    color: #ffffff;
}

/* =========================================================
   Modal para archivar
   ========================================================= */

.archive-photo-modal[b-ijqwu3vnwy] {
    display: flex;
    width: min(540px, 100%);
    padding: 34px;
    align-items: center;
    flex-direction: column;
    border: 1px solid var(--jj-border, #d5d5d5);
    background: var(--jj-surface, #ffffff);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.archive-photo-warning[b-ijqwu3vnwy] {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid #d3a1a1;
    border-radius: 50%;
    background: #fff1f1;
    color: #8b3c3c;
}

    .archive-photo-warning svg[b-ijqwu3vnwy] {
        width: 30px;
        height: 30px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.archive-photo-eyebrow[b-ijqwu3vnwy] {
    color: #8b3c3c;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.archive-photo-modal h2[b-ijqwu3vnwy] {
    margin: 9px 0 0;
    color: var(--jj-text, #202020);
    font-size: 27px;
    font-weight: 720;
    line-height: 1.35;
}

.archive-photo-modal > p[b-ijqwu3vnwy] {
    max-width: 460px;
    margin: 14px 0 0;
    color: var(--jj-text-secondary, #5d5d5d);
    font-size: 15px;
    line-height: 1.7;
}

    .archive-photo-modal > p strong[b-ijqwu3vnwy] {
        color: var(--jj-text, #202020);
    }

.archive-photo-error[b-ijqwu3vnwy] {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid #d3a1a1;
    background: #fff1f1;
    color: #843939;
    font-size: 13px;
    line-height: 1.55;
}

.archive-photo-actions[b-ijqwu3vnwy] {
    display: flex;
    width: 100%;
    margin-top: 25px;
    justify-content: center;
    gap: 10px;
}

    .archive-photo-actions button[b-ijqwu3vnwy] {
        display: inline-flex;
        min-height: 47px;
        padding: 0 20px;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border-radius: 2px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

.archive-cancel-button[b-ijqwu3vnwy] {
    border: 1px solid var(--jj-border, #d5d5d5);
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #3d3d3d);
}

.archive-confirm-button[b-ijqwu3vnwy] {
    min-width: 170px;
    border: 1px solid #873d3d;
    background: #873d3d;
    color: #ffffff;
}

.archive-photo-actions button:disabled[b-ijqwu3vnwy] {
    cursor: wait;
    opacity: 0.6;
}

/* =========================================================
   Tema oscuro
   ========================================================= */

html[data-theme="dark"] .photo-success-message[b-ijqwu3vnwy] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

html[data-theme="dark"] .photo-action-error[b-ijqwu3vnwy],
html[data-theme="dark"] .archive-photo-error[b-ijqwu3vnwy] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

html[data-theme="dark"] .archive-photo-warning[b-ijqwu3vnwy] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

html[data-theme="dark"] .photo-image-frame[b-ijqwu3vnwy],
html[data-theme="dark"] .photo-modal-image[b-ijqwu3vnwy] {
    background: #0f0f0f;
}

html[data-theme="dark"] .photo-type-badge.is-before[b-ijqwu3vnwy] {
    border-color: #6a5e48;
    background: #302a20;
    color: #dbc89d;
}

html[data-theme="dark"] .photo-type-badge.is-after[b-ijqwu3vnwy] {
    border-color: #41684a;
    background: #1d2a20;
    color: #96c99f;
}

html[data-theme="dark"] .photos-filter-result[b-ijqwu3vnwy] {
    background: #202020;
}

html[data-theme="dark"] .photo-date-group[b-ijqwu3vnwy] {
    background: #181818;
}

/* =========================================================
   Diseño adaptable
   ========================================================= */

@media (max-width: 1120px) {
    .photos-search-panel[b-ijqwu3vnwy] {
        grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
    }

    .photos-filter-result[b-ijqwu3vnwy] {
        grid-column: 1 / -1;
    }

    .photo-date-group-header[b-ijqwu3vnwy] {
        grid-template-columns: minmax(260px, 1fr) auto;
    }

    .add-group-photo-button[b-ijqwu3vnwy] {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .photo-card-metadata[b-ijqwu3vnwy] {
        grid-template-columns: 1fr;
    }

    .photo-modal-footer[b-ijqwu3vnwy] {
        align-items: stretch;
        flex-direction: column;
    }

    .photo-modal-actions[b-ijqwu3vnwy] {
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .client-photos-header[b-ijqwu3vnwy] {
        align-items: stretch;
        flex-direction: column;
    }

    .add-photo-button[b-ijqwu3vnwy] {
        align-self: flex-start;
    }

    .photos-summary[b-ijqwu3vnwy] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photos-search-panel[b-ijqwu3vnwy] {
        grid-template-columns: 1fr;
    }

    .photos-filter-result[b-ijqwu3vnwy] {
        grid-column: auto;
    }

    .photo-date-group-header[b-ijqwu3vnwy] {
        grid-template-columns: 1fr;
    }

    .photo-date-group-summary[b-ijqwu3vnwy] {
        justify-self: start;
    }

    .add-group-photo-button[b-ijqwu3vnwy] {
        grid-column: auto;
    }

    .photos-gallery[b-ijqwu3vnwy] {
        grid-template-columns: 1fr;
    }

    .photo-image-frame[b-ijqwu3vnwy] {
        height: 410px;
    }

    .photo-modal-information[b-ijqwu3vnwy] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .client-photos-section[b-ijqwu3vnwy] {
        margin-top: 30px;
    }

    .add-photo-button[b-ijqwu3vnwy] {
        width: 100%;
    }

    .photos-summary[b-ijqwu3vnwy] {
        grid-template-columns: 1fr;
    }

    .photos-search-panel[b-ijqwu3vnwy] {
        padding: 14px;
    }

    .photo-filter-buttons[b-ijqwu3vnwy] {
        display: grid;
        grid-template-columns: 1fr;
    }

    .photo-filter-button[b-ijqwu3vnwy] {
        width: 100%;
        justify-content: space-between;
    }

    .photo-date-group-header[b-ijqwu3vnwy] {
        padding: 16px;
    }

    .photo-date-group-identity[b-ijqwu3vnwy] {
        align-items: flex-start;
    }

        .photo-date-group-identity h3[b-ijqwu3vnwy] {
            font-size: 22px;
        }

    .photo-date-group-summary[b-ijqwu3vnwy] {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        .photo-date-group-summary > div[b-ijqwu3vnwy] {
            min-width: 0;
        }

    .add-group-photo-button[b-ijqwu3vnwy] {
        width: 100%;
    }

    .photos-gallery[b-ijqwu3vnwy] {
        padding: 12px;
    }

    .photo-image-frame[b-ijqwu3vnwy] {
        height: 310px;
    }

    .photo-card-metadata[b-ijqwu3vnwy] {
        grid-template-columns: 1fr;
    }

    .photo-card-actions[b-ijqwu3vnwy] {
        align-items: stretch;
        flex-direction: column;
    }

        .photo-card-actions button[b-ijqwu3vnwy] {
            width: 100%;
        }

    .photo-modal-backdrop[b-ijqwu3vnwy] {
        padding: 12px;
        align-items: flex-start;
    }

    .photo-preview-modal[b-ijqwu3vnwy] {
        max-height: none;
    }

    .photo-modal-header[b-ijqwu3vnwy] {
        padding: 17px;
    }

    .photo-modal-image[b-ijqwu3vnwy] {
        min-height: 300px;
        padding: 10px;
    }

        .photo-modal-image > img[b-ijqwu3vnwy] {
            max-height: none;
        }

    .photo-modal-footer[b-ijqwu3vnwy] {
        padding: 16px;
    }

    .photo-modal-actions[b-ijqwu3vnwy] {
        align-items: stretch;
        flex-direction: column;
    }

        .photo-modal-actions button[b-ijqwu3vnwy] {
            width: 100%;
        }

    .archive-photo-modal[b-ijqwu3vnwy] {
        padding: 27px 20px;
    }

    .archive-photo-actions[b-ijqwu3vnwy] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .archive-photo-actions button[b-ijqwu3vnwy] {
            width: 100%;
        }
}

@media (max-width: 480px) {
    .photo-date-group-identity[b-ijqwu3vnwy] {
        flex-direction: column;
    }

    .photo-date-group-icon[b-ijqwu3vnwy] {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .photo-date-group-summary[b-ijqwu3vnwy] {
        grid-template-columns: 1fr;
    }

    .photo-image-frame[b-ijqwu3vnwy] {
        height: 250px;
    }
}

@keyframes client-photos-spin-b-ijqwu3vnwy {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   Client Photos — Readable Typography Overrides
   ========================================================= */

/* Encabezado principal */

.photos-eyebrow[b-ijqwu3vnwy] {
    font-size: 13px;
    letter-spacing: 0.11em;
}

.client-photos-header h2[b-ijqwu3vnwy] {
    font-size: 30px;
}

.client-photos-header p[b-ijqwu3vnwy] {
    font-size: 16px;
}

/* Resumen y filtros */

.photos-summary span[b-ijqwu3vnwy] {
    font-size: 13px;
}

.photos-summary strong[b-ijqwu3vnwy] {
    font-size: 23px;
}

.photos-date-filter > label[b-ijqwu3vnwy],
.photos-classification-filter > span[b-ijqwu3vnwy],
.photos-filter-result > span[b-ijqwu3vnwy] {
    font-size: 13px;
    letter-spacing: 0.055em;
}

.photos-date-select-wrapper select[b-ijqwu3vnwy] {
    min-height: 48px;
    font-size: 15px;
}

.photo-filter-button[b-ijqwu3vnwy] {
    min-height: 48px;
    font-size: 14px;
}

    .photo-filter-button > span[b-ijqwu3vnwy] {
        font-size: 12px;
    }

.photos-filter-result small[b-ijqwu3vnwy] {
    font-size: 14px;
}

/* Encabezado de cada grupo de visita */

.photo-date-group-eyebrow[b-ijqwu3vnwy] {
    font-size: 13px;
    letter-spacing: 0.08em;
}

.photo-date-group-identity h3[b-ijqwu3vnwy] {
    font-size: 27px;
}

.photo-date-group-identity p[b-ijqwu3vnwy] {
    font-size: 15px;
}

.photo-date-group-summary > div[b-ijqwu3vnwy] {
    min-width: 82px;
    padding: 11px 14px;
}

.photo-date-group-summary span[b-ijqwu3vnwy] {
    font-size: 12px;
    letter-spacing: 0.045em;
}

.photo-date-group-summary strong[b-ijqwu3vnwy] {
    font-size: 19px;
}

.add-group-photo-button[b-ijqwu3vnwy] {
    min-height: 45px;
    padding-right: 17px;
    padding-left: 17px;
    font-size: 14px;
}

/* Fotografía y etiquetas */

.photo-type-badge[b-ijqwu3vnwy] {
    min-height: 31px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12px;
    letter-spacing: 0.065em;
}

.photo-view-indicator[b-ijqwu3vnwy] {
    min-height: 37px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 13px;
}

/* Información de cada fotografía */

.photo-card-content[b-ijqwu3vnwy] {
    padding: 21px;
}

.photo-card-identity span[b-ijqwu3vnwy] {
    font-size: 13px;
    letter-spacing: 0.05em;
}

.photo-card-identity strong[b-ijqwu3vnwy] {
    font-size: 16px;
}

.photo-association span[b-ijqwu3vnwy] {
    font-size: 14px;
    line-height: 1.55;
}

.photo-caption[b-ijqwu3vnwy] {
    min-height: 50px;
    font-size: 15px;
    line-height: 1.65;
}

.photo-card-metadata > div[b-ijqwu3vnwy] {
    padding: 14px;
}

.photo-card-metadata span[b-ijqwu3vnwy] {
    font-size: 12px;
    letter-spacing: 0.045em;
}

.photo-card-metadata strong[b-ijqwu3vnwy] {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.5;
}

/* Botones de cada fotografía */

.photo-card-actions[b-ijqwu3vnwy] {
    padding: 15px 18px;
}

    .photo-card-actions button[b-ijqwu3vnwy] {
        min-height: 42px;
        padding-right: 16px;
        padding-left: 16px;
        font-size: 14px;
    }

/* Modal de fotografía */

.photo-modal-header span[b-ijqwu3vnwy] {
    font-size: 13px;
    letter-spacing: 0.09em;
}

.photo-modal-header h2[b-ijqwu3vnwy] {
    font-size: 24px;
}

.photo-modal-header p[b-ijqwu3vnwy] {
    font-size: 14px;
}

.photo-modal-information span[b-ijqwu3vnwy] {
    font-size: 12px;
    letter-spacing: 0.05em;
}

.photo-modal-information strong[b-ijqwu3vnwy] {
    margin-top: 7px;
    font-size: 15px;
    line-height: 1.55;
}

.photo-modal-actions button[b-ijqwu3vnwy] {
    min-height: 46px;
    font-size: 14px;
}

/* Modal de archivado */

.archive-photo-eyebrow[b-ijqwu3vnwy] {
    font-size: 13px;
    letter-spacing: 0.09em;
}

.archive-photo-error[b-ijqwu3vnwy] {
    font-size: 14px;
}

@media (max-width: 680px) {
    .client-photos-header h2[b-ijqwu3vnwy] {
        font-size: 27px;
    }

    .photo-date-group-identity h3[b-ijqwu3vnwy] {
        font-size: 24px;
    }

    .photo-card-content[b-ijqwu3vnwy] {
        padding: 17px;
    }
}
/* /Features/ClientPhotos/NewClientPhoto.razor.rz.scp.css */
.new-photo-page[b-ex8mw9gtl7] {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 30px 28px 60px;
}

/* =========================================================
   Encabezado
   ========================================================= */

.new-photo-header[b-ex8mw9gtl7] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

    .new-photo-header > div[b-ex8mw9gtl7] {
        min-width: 0;
    }

.new-photo-eyebrow[b-ex8mw9gtl7] {
    display: block;
    margin-bottom: 7px;
    color: var(--jj-accent-dark, #6d665d);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.new-photo-header h1[b-ex8mw9gtl7] {
    margin: 0;
    color: var(--jj-text, #191919);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 740;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.new-photo-header p[b-ex8mw9gtl7] {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--jj-text-muted, #686868);
    font-size: 15px;
    line-height: 1.65;
}

.back-client-button[b-ex8mw9gtl7] {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--jj-border, #d9d9d9);
    border-radius: 2px;
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #3c3c3c);
    font-size: 14px;
    font-weight: 690;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

    .back-client-button svg[b-ex8mw9gtl7] {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .back-client-button:hover:not(:disabled)[b-ex8mw9gtl7],
    .back-client-button:focus-visible:not(:disabled)[b-ex8mw9gtl7] {
        border-color: var(--jj-accent, #92877a);
        background: var(--jj-accent-soft, #f2efeb);
        color: var(--jj-accent-dark, #655c52);
        transform: translateY(-1px);
    }

    .back-client-button:focus-visible[b-ex8mw9gtl7] {
        outline: 2px solid var(--jj-accent, #92877a);
        outline-offset: 2px;
    }

    .back-client-button:disabled[b-ex8mw9gtl7] {
        cursor: wait;
        opacity: 0.55;
    }

/* =========================================================
   Estados de carga y error
   ========================================================= */

.photo-page-status[b-ex8mw9gtl7] {
    display: flex;
    min-height: 340px;
    padding: 40px 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px solid var(--jj-border, #dddddd);
    background: var(--jj-surface, #ffffff);
}

    .photo-page-status strong[b-ex8mw9gtl7] {
        margin-top: 18px;
        color: var(--jj-text, #202020);
        font-size: 18px;
        font-weight: 720;
    }

    .photo-page-status > span[b-ex8mw9gtl7] {
        max-width: 560px;
        margin-top: 7px;
        color: var(--jj-text-muted, #6c6c6c);
        font-size: 14px;
        line-height: 1.6;
    }

.photo-page-spinner[b-ex8mw9gtl7],
.save-spinner[b-ex8mw9gtl7] {
    display: inline-block;
    border-radius: 50%;
    border-style: solid;
    border-color: var(--jj-border, #d8d8d8);
    border-top-color: var(--jj-accent-dark, #6e645a);
    animation: jj-photo-spin-b-ex8mw9gtl7 750ms linear infinite;
}

.photo-page-spinner[b-ex8mw9gtl7] {
    width: 34px;
    height: 34px;
    border-width: 3px;
}

.save-spinner[b-ex8mw9gtl7] {
    width: 19px;
    height: 19px;
    border-width: 2px;
}

@keyframes jj-photo-spin-b-ex8mw9gtl7 {
    to {
        transform: rotate(360deg);
    }
}

.photo-page-error[b-ex8mw9gtl7] {
    border-color: #d9b3b3;
    background: #fffafa;
}

    .photo-page-error > svg[b-ex8mw9gtl7] {
        width: 42px;
        height: 42px;
        fill: none;
        stroke: #a34c4c;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.load-error-actions[b-ex8mw9gtl7] {
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

    .load-error-actions button[b-ex8mw9gtl7] {
        min-height: 43px;
        padding: 0 17px;
        border: 1px solid var(--jj-border, #d7d7d7);
        border-radius: 2px;
        background: var(--jj-surface, #ffffff);
        color: var(--jj-text-secondary, #333333);
        font-size: 14px;
        font-weight: 680;
        cursor: pointer;
    }

/* =========================================================
   Resumen del cliente
   ========================================================= */

.client-summary[b-ex8mw9gtl7] {
    display: flex;
    margin-bottom: 22px;
    padding: 20px 22px;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--jj-border, #dddddd);
    background: var(--jj-surface, #ffffff);
}

.client-avatar[b-ex8mw9gtl7] {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border: 1px solid var(--jj-border, #d4d4d4);
    background: var(--jj-background-soft, #f5f5f5);
    color: var(--jj-text, #222222);
    font-size: 17px;
    font-weight: 780;
    letter-spacing: 0.04em;
}

.client-summary-information[b-ex8mw9gtl7] {
    min-width: 0;
}

    .client-summary-information > span[b-ex8mw9gtl7] {
        display: block;
        color: var(--jj-text-muted, #707070);
        font-size: 12px;
        font-weight: 650;
    }

    .client-summary-information h2[b-ex8mw9gtl7] {
        margin: 3px 0 0;
        overflow: hidden;
        color: var(--jj-text, #1e1e1e);
        font-size: 21px;
        font-weight: 730;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .client-summary-information p[b-ex8mw9gtl7] {
        margin: 4px 0 0;
        color: var(--jj-text-muted, #777777);
        font-size: 13px;
    }

/* =========================================================
   Paneles del formulario
   ========================================================= */

.photo-form-panel[b-ex8mw9gtl7] {
    margin-bottom: 22px;
    border: 1px solid var(--jj-border, #dedede);
    background: var(--jj-surface, #ffffff);
}

.form-section-header[b-ex8mw9gtl7] {
    display: flex;
    padding: 21px 23px;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid var(--jj-border, #dedede);
    background: var(--jj-background-soft, #f8f8f8);
}

    .form-section-header > span[b-ex8mw9gtl7] {
        display: grid;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        place-items: center;
        border: 1px solid var(--jj-border, #d0d0d0);
        background: var(--jj-surface, #ffffff);
        color: var(--jj-accent-dark, #665e55);
        font-size: 12px;
        font-weight: 780;
    }

    .form-section-header > div[b-ex8mw9gtl7] {
        min-width: 0;
    }

    .form-section-header h2[b-ex8mw9gtl7] {
        margin: 0;
        color: var(--jj-text, #202020);
        font-size: 19px;
        font-weight: 730;
        line-height: 1.35;
    }

    .form-section-header p[b-ex8mw9gtl7] {
        margin: 5px 0 0;
        color: var(--jj-text-muted, #6e6e6e);
        font-size: 13px;
        line-height: 1.55;
    }

.photo-form-content[b-ex8mw9gtl7] {
    padding: 24px;
}

.form-field[b-ex8mw9gtl7] {
    min-width: 0;
}

    .form-field > label[b-ex8mw9gtl7],
    .photo-type-field > label[b-ex8mw9gtl7] {
        display: block;
        margin-bottom: 8px;
        color: var(--jj-text-secondary, #353535);
        font-size: 13px;
        font-weight: 720;
    }

.form-control[b-ex8mw9gtl7] {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid var(--jj-border, #d4d4d4);
    border-radius: 2px;
    outline: none;
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text, #1f1f1f);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

    .form-control:hover:not(:disabled)[b-ex8mw9gtl7] {
        border-color: #b9b9b9;
    }

    .form-control:focus[b-ex8mw9gtl7] {
        border-color: var(--jj-accent, #8c8175);
        box-shadow: 0 0 0 3px rgba(130, 119, 106, 0.12);
    }

    .form-control:disabled[b-ex8mw9gtl7] {
        cursor: wait;
        opacity: 0.65;
    }

.field-help[b-ex8mw9gtl7] {
    display: block;
    margin-top: 7px;
    color: var(--jj-text-muted, #777777);
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================================
   Relación con visita
   ========================================================= */

.visit-selection-notice[b-ex8mw9gtl7] {
    display: flex;
    margin-top: 16px;
    padding: 13px 15px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #d9cfbb;
    background: #fffdf7;
    color: #6f6042;
    font-size: 13px;
    line-height: 1.55;
}

    .visit-selection-notice svg[b-ex8mw9gtl7] {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.photo-type-field[b-ex8mw9gtl7] {
    margin-top: 24px;
}

.photo-type-options[b-ex8mw9gtl7] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.photo-type-option[b-ex8mw9gtl7] {
    display: flex;
    min-height: 92px;
    padding: 17px 18px;
    align-items: center;
    gap: 14px;
    text-align: left;
    border: 1px solid var(--jj-border, #d7d7d7);
    border-radius: 2px;
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #3b3b3b);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

    .photo-type-option:hover:not(:disabled)[b-ex8mw9gtl7],
    .photo-type-option:focus-visible:not(:disabled)[b-ex8mw9gtl7] {
        border-color: var(--jj-accent, #93877a);
        background: var(--jj-accent-soft, #f4f1ed);
        transform: translateY(-1px);
    }

    .photo-type-option:focus-visible[b-ex8mw9gtl7] {
        outline: 2px solid var(--jj-accent, #93877a);
        outline-offset: 2px;
    }

    .photo-type-option.is-selected[b-ex8mw9gtl7] {
        border-color: var(--jj-accent-dark, #6e645a);
        background: var(--jj-accent-soft, #f1ede8);
        color: var(--jj-text, #202020);
        box-shadow: inset 0 0 0 1px var(--jj-accent-dark, #6e645a);
    }

    .photo-type-option:disabled[b-ex8mw9gtl7] {
        cursor: wait;
        opacity: 0.58;
    }

.photo-type-icon[b-ex8mw9gtl7] {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid var(--jj-border, #d6d6d6);
    background: var(--jj-background-soft, #f7f7f7);
}

.photo-type-option.is-selected .photo-type-icon[b-ex8mw9gtl7] {
    border-color: var(--jj-accent, #93877a);
    background: var(--jj-surface, #ffffff);
    color: var(--jj-accent-dark, #665d53);
}

.photo-type-icon svg[b-ex8mw9gtl7] {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photo-type-option > span:last-child[b-ex8mw9gtl7] {
    min-width: 0;
}

.photo-type-option strong[b-ex8mw9gtl7] {
    display: block;
    color: inherit;
    font-size: 15px;
    font-weight: 730;
}

.photo-type-option small[b-ex8mw9gtl7] {
    display: block;
    margin-top: 4px;
    color: var(--jj-text-muted, #747474);
    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   Selección de archivo
   ========================================================= */

.file-upload-area[b-ex8mw9gtl7] {
    position: relative;
    display: flex;
    min-height: 250px;
    padding: 32px 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px dashed #bdbdbd;
    background: var(--jj-background-soft, #fafafa);
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .file-upload-area.has-file[b-ex8mw9gtl7] {
        border-style: solid;
        border-color: var(--jj-accent, #918578);
        background: var(--jj-accent-soft, #f6f3ef);
    }

.file-upload-icon[b-ex8mw9gtl7] {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 17px;
    place-items: center;
    border: 1px solid var(--jj-border, #d6d6d6);
    background: var(--jj-surface, #ffffff);
    color: var(--jj-accent-dark, #6c6258);
}

    .file-upload-icon svg[b-ex8mw9gtl7] {
        width: 30px;
        height: 30px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.file-upload-area h3[b-ex8mw9gtl7] {
    max-width: 720px;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--jj-text, #202020);
    font-size: 18px;
    font-weight: 720;
    line-height: 1.4;
}

.file-upload-area p[b-ex8mw9gtl7] {
    max-width: 650px;
    margin: 7px 0 0;
    color: var(--jj-text-muted, #707070);
    font-size: 13px;
    line-height: 1.55;
}

.file-upload-area .save-spinner[b-ex8mw9gtl7] {
    margin-top: 17px;
}

.select-file-button[b-ex8mw9gtl7] {
    display: inline-flex;
    min-height: 45px;
    margin-top: 20px;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-accent-dark, #6d6359);
    border-radius: 2px;
    background: var(--jj-accent-dark, #6d6359);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

    .select-file-button:hover[b-ex8mw9gtl7] {
        border-color: #514a43;
        background: #514a43;
        transform: translateY(-1px);
    }

[b-ex8mw9gtl7] .file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   Mensajes de error
   ========================================================= */

.file-error-message[b-ex8mw9gtl7],
.submit-error-message[b-ex8mw9gtl7] {
    display: flex;
    padding: 14px 16px;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid #d9adad;
    background: #fff8f8;
    color: #8b3737;
    font-size: 13px;
    line-height: 1.55;
}

.file-error-message[b-ex8mw9gtl7] {
    margin-top: 16px;
}

.submit-error-message[b-ex8mw9gtl7] {
    margin-bottom: 22px;
}

    .file-error-message > svg[b-ex8mw9gtl7],
    .submit-error-message > svg[b-ex8mw9gtl7] {
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .submit-error-message > div[b-ex8mw9gtl7] {
        min-width: 0;
    }

    .submit-error-message strong[b-ex8mw9gtl7],
    .submit-error-message span[b-ex8mw9gtl7] {
        display: block;
    }

    .submit-error-message strong[b-ex8mw9gtl7] {
        margin-bottom: 3px;
        font-weight: 730;
    }

/* =========================================================
   Vista previa y rotación
   ========================================================= */

.selected-image-editor[b-ex8mw9gtl7] {
    margin-top: 22px;
    border: 1px solid var(--jj-border, #d8d8d8);
    background: var(--jj-surface, #ffffff);
}

.selected-image-editor-header[b-ex8mw9gtl7] {
    padding: 18px 20px;
    border-bottom: 1px solid var(--jj-border, #d8d8d8);
    background: var(--jj-background-soft, #f7f7f7);
}

    .selected-image-editor-header span[b-ex8mw9gtl7] {
        color: var(--jj-accent-dark, #6b6258);
        font-size: 11px;
        font-weight: 780;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .selected-image-editor-header h3[b-ex8mw9gtl7] {
        margin: 6px 0 0;
        color: var(--jj-text, #202020);
        font-size: 18px;
        font-weight: 720;
        line-height: 1.4;
    }

    .selected-image-editor-header p[b-ex8mw9gtl7] {
        margin: 5px 0 0;
        color: var(--jj-text-muted, #707070);
        font-size: 13px;
        line-height: 1.5;
    }

.selected-image-preview[b-ex8mw9gtl7] {
    display: grid;
    min-height: 390px;
    max-height: 680px;
    padding: 20px;
    place-items: center;
    overflow: auto;
    background: #202020;
}

    .selected-image-preview img[b-ex8mw9gtl7] {
        display: block;
        max-width: 100%;
        max-height: 635px;
        object-fit: contain;
    }

.image-rotation-actions[b-ex8mw9gtl7] {
    display: flex;
    padding: 16px 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--jj-border, #d8d8d8);
}

.rotate-image-button[b-ex8mw9gtl7] {
    display: inline-flex;
    min-height: 45px;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--jj-border, #d5d5d5);
    border-radius: 2px;
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #393939);
    font-size: 14px;
    font-weight: 690;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

    .rotate-image-button svg[b-ex8mw9gtl7] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .rotate-image-button:hover:not(:disabled)[b-ex8mw9gtl7],
    .rotate-image-button:focus-visible:not(:disabled)[b-ex8mw9gtl7] {
        border-color: var(--jj-accent, #918578);
        background: var(--jj-accent-soft, #f3efeb);
        color: var(--jj-accent-dark, #655c53);
        transform: translateY(-1px);
    }

    .rotate-image-button:focus-visible[b-ex8mw9gtl7] {
        outline: 2px solid var(--jj-accent, #918578);
        outline-offset: 2px;
    }

    .rotate-image-button:disabled[b-ex8mw9gtl7] {
        cursor: wait;
        opacity: 0.55;
    }

/* =========================================================
   Descripción
   ========================================================= */

.caption-control[b-ex8mw9gtl7] {
    min-height: 122px;
    resize: vertical;
}

.caption-help[b-ex8mw9gtl7] {
    display: flex;
    margin-top: 7px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--jj-text-muted, #777777);
    font-size: 12px;
}

/* =========================================================
   Botones inferiores
   ========================================================= */

.photo-form-actions[b-ex8mw9gtl7] {
    display: flex;
    padding-top: 4px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 11px;
}

.cancel-button[b-ex8mw9gtl7],
.save-photo-button[b-ex8mw9gtl7] {
    display: inline-flex;
    min-height: 48px;
    padding: 0 21px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 710;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.cancel-button[b-ex8mw9gtl7] {
    border: 1px solid var(--jj-border, #d4d4d4);
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #3a3a3a);
}

.save-photo-button[b-ex8mw9gtl7] {
    border: 1px solid var(--jj-accent-dark, #685f56);
    background: var(--jj-accent-dark, #685f56);
    color: #ffffff;
}

    .save-photo-button svg[b-ex8mw9gtl7] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.cancel-button:hover:not(:disabled)[b-ex8mw9gtl7],
.cancel-button:focus-visible:not(:disabled)[b-ex8mw9gtl7] {
    border-color: var(--jj-accent, #918578);
    background: var(--jj-accent-soft, #f3efeb);
    transform: translateY(-1px);
}

.save-photo-button:hover:not(:disabled)[b-ex8mw9gtl7],
.save-photo-button:focus-visible:not(:disabled)[b-ex8mw9gtl7] {
    border-color: #4f4841;
    background: #4f4841;
    transform: translateY(-1px);
}

.cancel-button:focus-visible[b-ex8mw9gtl7],
.save-photo-button:focus-visible[b-ex8mw9gtl7] {
    outline: 2px solid var(--jj-accent, #918578);
    outline-offset: 2px;
}

.cancel-button:disabled[b-ex8mw9gtl7],
.save-photo-button:disabled[b-ex8mw9gtl7] {
    cursor: not-allowed;
    opacity: 0.55;
}

/* =========================================================
   Panel de guardado exitoso
   ========================================================= */

.photo-created-panel[b-ex8mw9gtl7] {
    display: flex;
    min-height: 470px;
    padding: 44px 28px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px solid var(--jj-border, #d8d8d8);
    background: var(--jj-surface, #ffffff);
}

.created-icon[b-ex8mw9gtl7] {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border: 1px solid #9ebca3;
    background: #f3faf4;
    color: #47704e;
}

    .created-icon svg[b-ex8mw9gtl7] {
        width: 40px;
        height: 40px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.created-eyebrow[b-ex8mw9gtl7] {
    display: block;
    margin-top: 20px;
    color: #517158;
    font-size: 11px;
    font-weight: 780;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.photo-created-panel h2[b-ex8mw9gtl7] {
    margin: 8px 0 0;
    color: var(--jj-text, #202020);
    font-size: 29px;
    font-weight: 740;
    line-height: 1.3;
}

.photo-created-panel > p[b-ex8mw9gtl7] {
    max-width: 650px;
    margin: 10px 0 0;
    color: var(--jj-text-muted, #6f6f6f);
    font-size: 14px;
    line-height: 1.6;
}

.created-details[b-ex8mw9gtl7] {
    display: grid;
    width: min(760px, 100%);
    margin-top: 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--jj-border, #dddddd);
    border-left: 1px solid var(--jj-border, #dddddd);
}

    .created-details > div[b-ex8mw9gtl7] {
        min-width: 0;
        padding: 17px 14px;
        border-right: 1px solid var(--jj-border, #dddddd);
        border-bottom: 1px solid var(--jj-border, #dddddd);
    }

    .created-details span[b-ex8mw9gtl7],
    .created-details strong[b-ex8mw9gtl7] {
        display: block;
    }

    .created-details span[b-ex8mw9gtl7] {
        color: var(--jj-text-muted, #747474);
        font-size: 11px;
        font-weight: 670;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .created-details strong[b-ex8mw9gtl7] {
        margin-top: 7px;
        overflow-wrap: anywhere;
        color: var(--jj-text, #232323);
        font-size: 14px;
        font-weight: 720;
        line-height: 1.45;
    }

.created-actions[b-ex8mw9gtl7] {
    display: flex;
    margin-top: 28px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.primary-created-button[b-ex8mw9gtl7],
.secondary-created-button[b-ex8mw9gtl7] {
    min-height: 47px;
    padding: 0 20px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.primary-created-button[b-ex8mw9gtl7] {
    border: 1px solid var(--jj-accent-dark, #675f56);
    background: var(--jj-accent-dark, #675f56);
    color: #ffffff;
}

.secondary-created-button[b-ex8mw9gtl7] {
    border: 1px solid var(--jj-border, #d5d5d5);
    background: var(--jj-surface, #ffffff);
    color: var(--jj-text-secondary, #3a3a3a);
}

/* =========================================================
   Tema oscuro
   ========================================================= */

html[data-theme="dark"] .photo-page-error[b-ex8mw9gtl7],
html[data-theme="dark"] .file-error-message[b-ex8mw9gtl7],
html[data-theme="dark"] .submit-error-message[b-ex8mw9gtl7] {
    border-color: #704545;
    background: #281f1f;
    color: #efaaaa;
}

html[data-theme="dark"] .visit-selection-notice[b-ex8mw9gtl7] {
    border-color: #5b503c;
    background: #28251e;
    color: #d9c79d;
}

html[data-theme="dark"] .selected-image-preview[b-ex8mw9gtl7] {
    background: #0f0f0f;
}

html[data-theme="dark"] .created-icon[b-ex8mw9gtl7] {
    border-color: #426849;
    background: #1d2a20;
    color: #8bc194;
}

/* =========================================================
   Diseño adaptable
   ========================================================= */

@media (max-width: 900px) {
    .new-photo-page[b-ex8mw9gtl7] {
        padding-right: 20px;
        padding-left: 20px;
    }

    .new-photo-header[b-ex8mw9gtl7] {
        align-items: stretch;
        flex-direction: column;
    }

    .back-client-button[b-ex8mw9gtl7] {
        align-self: flex-start;
    }

    .created-details[b-ex8mw9gtl7] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .new-photo-page[b-ex8mw9gtl7] {
        padding: 22px 14px 44px;
    }

    .new-photo-header[b-ex8mw9gtl7] {
        margin-bottom: 20px;
    }

        .new-photo-header h1[b-ex8mw9gtl7] {
            font-size: 31px;
        }

    .back-client-button[b-ex8mw9gtl7] {
        width: 100%;
    }

    .client-summary[b-ex8mw9gtl7] {
        padding: 17px;
    }

    .form-section-header[b-ex8mw9gtl7] {
        padding: 18px 16px;
    }

    .photo-form-content[b-ex8mw9gtl7] {
        padding: 17px;
    }

    .photo-type-options[b-ex8mw9gtl7] {
        grid-template-columns: 1fr;
    }

    .file-upload-area[b-ex8mw9gtl7] {
        min-height: 230px;
        padding: 26px 16px;
    }

    .selected-image-preview[b-ex8mw9gtl7] {
        min-height: 280px;
        max-height: 520px;
        padding: 12px;
    }

        .selected-image-preview img[b-ex8mw9gtl7] {
            max-height: 490px;
        }

    .image-rotation-actions[b-ex8mw9gtl7] {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .rotate-image-button[b-ex8mw9gtl7] {
        width: 100%;
    }

    .caption-help[b-ex8mw9gtl7] {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .photo-form-actions[b-ex8mw9gtl7] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cancel-button[b-ex8mw9gtl7],
    .save-photo-button[b-ex8mw9gtl7] {
        width: 100%;
    }

    .created-details[b-ex8mw9gtl7] {
        grid-template-columns: 1fr;
    }

    .created-actions[b-ex8mw9gtl7] {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .primary-created-button[b-ex8mw9gtl7],
    .secondary-created-button[b-ex8mw9gtl7] {
        width: 100%;
    }
}
/* /Features/ClientPhotos/VisitPhotosSummary.razor.rz.scp.css */
.visit-photos-summary[b-koqxg87vjc] {
    margin-top: 17px;
    border-top: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

/* =========================================================
   Carga y error
   ========================================================= */

.visit-photos-loading[b-koqxg87vjc] {
    display: flex;
    min-height: 64px;
    padding: 14px 18px;
    align-items: center;
    gap: 10px;
    color: var(--jj-text-muted);
    font-size: 13px;
}

.visit-photos-spinner[b-koqxg87vjc] {
    display: inline-block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 2px solid var(--jj-border);
    border-top-color: var(--jj-accent-dark);
    border-radius: 50%;
    animation: visit-photos-spin-b-koqxg87vjc 700ms linear infinite;
}

.visit-photos-error[b-koqxg87vjc] {
    display: flex;
    min-height: 64px;
    padding: 13px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid #d3a1a1;
    background: #fff1f1;
    color: #843939;
    font-size: 13px;
    line-height: 1.5;
}

    .visit-photos-error button[b-koqxg87vjc] {
        min-height: 37px;
        flex: 0 0 auto;
        padding: 0 13px;
        border: 1px solid #b16a6a;
        border-radius: 2px;
        background: transparent;
        color: currentColor;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

/* =========================================================
   Encabezado y contadores
   ========================================================= */

.visit-photos-header[b-koqxg87vjc] {
    display: grid;
    min-height: 82px;
    padding: 15px 18px;
    align-items: center;
    grid-template-columns: minmax(230px, 1fr) auto auto;
    gap: 18px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
}

.visit-photos-title[b-koqxg87vjc] {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

    .visit-photos-title > svg[b-koqxg87vjc] {
        width: 25px;
        height: 25px;
        flex: 0 0 25px;
        fill: none;
        stroke: var(--jj-accent-dark);
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .visit-photos-title > div[b-koqxg87vjc] {
        min-width: 0;
    }

    .visit-photos-title span[b-koqxg87vjc],
    .visit-photos-title strong[b-koqxg87vjc] {
        display: block;
    }

    .visit-photos-title span[b-koqxg87vjc] {
        color: var(--jj-text);
        font-size: 13px;
        font-weight: 720;
    }

    .visit-photos-title strong[b-koqxg87vjc] {
        margin-top: 4px;
        color: var(--jj-text-muted);
        font-size: 12px;
        font-weight: 590;
    }

.visit-photos-counts[b-koqxg87vjc] {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--jj-border);
    border-left: 1px solid var(--jj-border);
}

    .visit-photos-counts > div[b-koqxg87vjc] {
        min-width: 76px;
        padding: 9px 12px;
        border-right: 1px solid var(--jj-border);
        border-bottom: 1px solid var(--jj-border);
        text-align: center;
    }

    .visit-photos-counts span[b-koqxg87vjc],
    .visit-photos-counts strong[b-koqxg87vjc] {
        display: block;
    }

    .visit-photos-counts span[b-koqxg87vjc] {
        color: var(--jj-text-muted);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .visit-photos-counts strong[b-koqxg87vjc] {
        margin-top: 4px;
        color: var(--jj-text);
        font-size: 16px;
        font-weight: 740;
    }

/* =========================================================
   Botones
   ========================================================= */

.visit-photos-actions[b-koqxg87vjc] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

    .visit-photos-actions button[b-koqxg87vjc] {
        display: inline-flex;
        min-height: 39px;
        padding: 0 13px;
        align-items: center;
        justify-content: center;
        border-radius: 2px;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
        transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
    }

.view-visit-photos-button[b-koqxg87vjc] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

    .view-visit-photos-button:hover[b-koqxg87vjc],
    .view-visit-photos-button:focus-visible[b-koqxg87vjc] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

.add-visit-photo-button[b-koqxg87vjc] {
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

    .add-visit-photo-button:hover[b-koqxg87vjc],
    .add-visit-photo-button:focus-visible[b-koqxg87vjc] {
        opacity: 0.87;
    }

/* =========================================================
   Sin fotografías
   ========================================================= */

.visit-photos-empty[b-koqxg87vjc] {
    padding: 13px 18px;
    border-right: 1px solid var(--jj-border);
    border-bottom: 1px solid var(--jj-border);
    border-left: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-muted);
    font-size: 12px;
    line-height: 1.55;
}

/* =========================================================
   Galería
   ========================================================= */

.visit-photos-gallery[b-koqxg87vjc] {
    display: grid;
    padding: 17px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border-right: 1px solid var(--jj-border);
    border-bottom: 1px solid var(--jj-border);
    border-left: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

.visit-photo-card[b-koqxg87vjc] {
    min-width: 0;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
}

.visit-photo-image[b-koqxg87vjc] {
    position: relative;
    display: grid;
    height: 240px;
    overflow: hidden;
    place-items: center;
    background: #202020;
}

    .visit-photo-image img[b-koqxg87vjc] {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.visit-photo-status[b-koqxg87vjc] {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 18px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #d7d7d7;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

    .visit-photo-status .visit-photos-spinner[b-koqxg87vjc] {
        border-color: #555555;
        border-top-color: #ffffff;
    }

.visit-photo-type[b-koqxg87vjc] {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    min-height: 27px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 9px;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .visit-photo-type.is-before[b-koqxg87vjc] {
        border-color: #c7b99d;
        background: #f5efe3;
        color: #6d5c3f;
    }

    .visit-photo-type.is-after[b-koqxg87vjc] {
        border-color: #9dbca4;
        background: #eaf4ec;
        color: #3f6c49;
    }

/* =========================================================
   Información de la fotografía
   ========================================================= */

.visit-photo-information[b-koqxg87vjc] {
    padding: 14px;
}

    .visit-photo-information > div[b-koqxg87vjc] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

        .visit-photo-information > div span[b-koqxg87vjc] {
            color: var(--jj-text-muted);
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .visit-photo-information > div strong[b-koqxg87vjc] {
            color: var(--jj-text);
            font-size: 12px;
            font-weight: 740;
        }

.visit-photo-caption[b-koqxg87vjc] {
    min-height: 39px;
    margin: 11px 0 0;
    color: var(--jj-text-secondary);
    font-size: 12px;
    line-height: 1.55;
}

    .visit-photo-caption.is-empty[b-koqxg87vjc] {
        color: var(--jj-text-muted);
        font-style: italic;
    }

.visit-photo-date[b-koqxg87vjc] {
    display: block;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--jj-border);
    color: var(--jj-text-muted);
    font-size: 10px;
    line-height: 1.5;
}

/* =========================================================
   Tema oscuro
   ========================================================= */

html[data-theme="dark"] .visit-photos-error[b-koqxg87vjc] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

html[data-theme="dark"] .visit-photo-image[b-koqxg87vjc] {
    background: #0f0f0f;
}

html[data-theme="dark"] .visit-photo-type.is-before[b-koqxg87vjc] {
    border-color: #6a5e48;
    background: #302a20;
    color: #dbc89d;
}

html[data-theme="dark"] .visit-photo-type.is-after[b-koqxg87vjc] {
    border-color: #41684a;
    background: #1d2a20;
    color: #96c99f;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1050px) {
    .visit-photos-header[b-koqxg87vjc] {
        grid-template-columns: minmax(220px, 1fr) auto;
    }

    .visit-photos-actions[b-koqxg87vjc] {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .visit-photos-header[b-koqxg87vjc] {
        grid-template-columns: 1fr;
    }

    .visit-photos-counts[b-koqxg87vjc] {
        width: 100%;
    }

        .visit-photos-counts > div[b-koqxg87vjc] {
            flex: 1;
        }

    .visit-photos-actions[b-koqxg87vjc] {
        grid-column: auto;
    }

        .visit-photos-actions button[b-koqxg87vjc] {
            flex: 1;
        }

    .visit-photos-gallery[b-koqxg87vjc] {
        grid-template-columns: 1fr;
    }

    .visit-photo-image[b-koqxg87vjc] {
        height: 300px;
    }
}

@media (max-width: 520px) {
    .visit-photos-header[b-koqxg87vjc] {
        padding: 14px;
    }

    .visit-photos-actions[b-koqxg87vjc] {
        align-items: stretch;
        flex-direction: column;
    }

        .visit-photos-actions button[b-koqxg87vjc] {
            width: 100%;
        }

    .visit-photos-gallery[b-koqxg87vjc] {
        padding: 12px;
    }

    .visit-photo-image[b-koqxg87vjc] {
        height: 240px;
    }
}

@keyframes visit-photos-spin-b-koqxg87vjc {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   Readable Typography Overrides
   ========================================================= */

.visit-photos-loading[b-koqxg87vjc] {
    font-size: 14px;
}

.visit-photos-error[b-koqxg87vjc] {
    font-size: 14px;
}

    .visit-photos-error button[b-koqxg87vjc] {
        min-height: 39px;
        padding-right: 15px;
        padding-left: 15px;
        font-size: 13px;
    }

.visit-photos-header[b-koqxg87vjc] {
    min-height: 92px;
    padding: 17px 19px;
    grid-template-columns: minmax(270px, 1fr) auto auto;
}

.visit-photos-title[b-koqxg87vjc] {
    gap: 14px;
}

    .visit-photos-title > svg[b-koqxg87vjc] {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .visit-photos-title span[b-koqxg87vjc] {
        font-size: 15px;
        line-height: 1.4;
    }

    .visit-photos-title strong[b-koqxg87vjc] {
        margin-top: 5px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.45;
    }

.visit-photos-counts > div[b-koqxg87vjc] {
    min-width: 84px;
    padding: 10px 13px;
}

.visit-photos-counts span[b-koqxg87vjc] {
    font-size: 12px;
    letter-spacing: 0.055em;
}

.visit-photos-counts strong[b-koqxg87vjc] {
    margin-top: 5px;
    font-size: 18px;
}

.visit-photos-actions[b-koqxg87vjc] {
    gap: 8px;
}

    .visit-photos-actions button[b-koqxg87vjc] {
        min-height: 41px;
        padding-right: 15px;
        padding-left: 15px;
        font-size: 13px;
    }

.visit-photos-empty[b-koqxg87vjc] {
    padding: 15px 18px;
    font-size: 14px;
}

.visit-photo-status[b-koqxg87vjc] {
    font-size: 14px;
}

.visit-photo-type[b-koqxg87vjc] {
    min-height: 29px;
    padding-right: 11px;
    padding-left: 11px;
    font-size: 11px;
    letter-spacing: 0.065em;
}

.visit-photo-information[b-koqxg87vjc] {
    padding: 16px;
}

    .visit-photo-information > div span[b-koqxg87vjc] {
        font-size: 11px;
        letter-spacing: 0.055em;
    }

    .visit-photo-information > div strong[b-koqxg87vjc] {
        font-size: 14px;
    }

.visit-photo-caption[b-koqxg87vjc] {
    min-height: 42px;
    font-size: 14px;
    line-height: 1.6;
}

.visit-photo-date[b-koqxg87vjc] {
    margin-top: 13px;
    padding-top: 11px;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 1050px) {
    .visit-photos-header[b-koqxg87vjc] {
        grid-template-columns: minmax(250px, 1fr) auto;
    }
}

@media (max-width: 760px) {
    .visit-photos-header[b-koqxg87vjc] {
        grid-template-columns: 1fr;
    }

    .visit-photos-counts > div[b-koqxg87vjc] {
        min-width: 0;
    }
}

/* /Features/Clients/ClientDetails.razor.rz.scp.css */
.client-details-page[b-l9ja068vng] {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

.client-details-header[b-l9ja068vng] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 28px;
}

.client-details-eyebrow[b-l9ja068vng] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-accent-dark);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.client-details-header h1[b-l9ja068vng] {
    margin: 0;
    color: var(--jj-text);
    font-size: clamp(38px, 4vw, 50px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.client-details-header p[b-l9ja068vng] {
    max-width: 700px;
    margin: 12px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.back-clients-button[b-l9ja068vng] {
    display: inline-flex;
    min-height: 48px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 680;
}

    .back-clients-button:hover[b-l9ja068vng] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .back-clients-button svg[b-l9ja068vng] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.client-details-status[b-l9ja068vng] {
    display: flex;
    min-height: 420px;
    padding: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

    .client-details-status strong[b-l9ja068vng] {
        margin-top: 18px;
        color: var(--jj-text);
        font-size: 19px;
    }

    .client-details-status span[b-l9ja068vng] {
        max-width: 620px;
        margin-top: 8px;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.6;
    }

.client-details-spinner[b-l9ja068vng] {
    width: 42px;
    height: 42px;
    border: 3px solid var(--jj-border);
    border-top-color: var(--jj-accent);
    border-radius: 50%;
    animation: client-details-spin-b-l9ja068vng 700ms linear infinite;
}

.client-details-error svg[b-l9ja068vng] {
    width: 42px;
    height: 42px;
    color: var(--jj-danger);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-details-error-actions[b-l9ja068vng] {
    display: flex;
    margin-top: 24px;
    gap: 10px;
}

    .client-details-error-actions button[b-l9ja068vng] {
        min-height: 46px;
        padding: 0 18px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text-secondary);
        font-size: 14px;
        font-weight: 680;
    }

.client-profile-card[b-l9ja068vng] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 27px;
    gap: 24px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.client-profile-summary[b-l9ja068vng] {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 19px;
}

.client-profile-avatar[b-l9ja068vng] {
    display: grid;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
    font-size: 23px;
    font-weight: 780;
    letter-spacing: 0.04em;
}

.client-profile-identity[b-l9ja068vng] {
    min-width: 0;
}

.client-profile-label[b-l9ja068vng] {
    color: var(--jj-text-muted);
    font-size: 12px;
    font-weight: 720;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.client-profile-identity h2[b-l9ja068vng] {
    margin: 6px 0 0;
    color: var(--jj-text);
    font-size: 30px;
    font-weight: 720;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.client-profile-metadata[b-l9ja068vng] {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 12px;
}

    .client-profile-metadata > span:first-child[b-l9ja068vng] {
        color: var(--jj-text-muted);
        font-size: 13px;
        font-weight: 650;
    }

.client-profile-status[b-l9ja068vng] {
    display: inline-flex;
    min-height: 29px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 720;
}

    .client-profile-status.is-active[b-l9ja068vng] {
        border: 1px solid #89b99a;
        background: #e1f2e6;
        color: #245e38;
    }

    .client-profile-status.is-inactive[b-l9ja068vng] {
        border: 1px solid #c2c2c2;
        background: #eeeeee;
        color: #595959;
    }

.edit-client-button[b-l9ja068vng] {
    display: inline-flex;
    min-height: 47px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--jj-accent-border);
    border-radius: 2px;
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    opacity: 1;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

    .edit-client-button:hover[b-l9ja068vng] {
        border-color: var(--jj-accent);
        background: var(--jj-surface);
    }

    .edit-client-button svg[b-l9ja068vng] {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.client-information-grid[b-l9ja068vng] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.client-information-card[b-l9ja068vng] {
    min-width: 0;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.client-information-full[b-l9ja068vng] {
    grid-column: 1 / -1;
}

.client-information-card > header[b-l9ja068vng] {
    display: flex;
    padding: 21px 24px;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .client-information-card > header > span[b-l9ja068vng] {
        display: grid;
        width: 35px;
        height: 35px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid var(--jj-accent-border);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
        font-size: 12px;
        font-weight: 780;
    }

.client-information-card h2[b-l9ja068vng] {
    margin: 0;
    color: var(--jj-text);
    font-size: 19px;
    font-weight: 720;
}

.client-information-card header p[b-l9ja068vng] {
    margin: 5px 0 0;
    color: var(--jj-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.client-detail-list[b-l9ja068vng] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
    gap: 18px;
}

.client-detail-item[b-l9ja068vng] {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .client-detail-item span[b-l9ja068vng] {
        display: block;
        margin-bottom: 8px;
        color: var(--jj-text-muted);
        font-size: 12px;
        font-weight: 720;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .client-detail-item strong[b-l9ja068vng] {
        display: block;
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 680;
        line-height: 1.55;
    }

.client-detail-break[b-l9ja068vng] {
    overflow-wrap: anywhere;
}

.client-address-list[b-l9ja068vng] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-full-address[b-l9ja068vng] {
    grid-column: 1 / -1;
}

.client-notes-content[b-l9ja068vng] {
    padding: 24px;
}

    .client-notes-content p[b-l9ja068vng] {
        min-height: 115px;
        margin: 0;
        padding: 19px;
        border: 1px solid var(--jj-border);
        background: var(--jj-background-soft);
        color: var(--jj-text-secondary);
        font-size: 15px;
        line-height: 1.75;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

.client-notes-empty[b-l9ja068vng] {
    display: flex;
    min-height: 115px;
    padding: 19px;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--jj-border);
    background: var(--jj-background-soft);
    color: var(--jj-text-muted);
    font-size: 14px;
    text-align: center;
}

/* =========================================================
   Visits
   ========================================================= */

.client-visits-section[b-l9ja068vng] {
    margin-top: 34px;
}

.client-visits-header[b-l9ja068vng] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 24px;
}

    .client-visits-header h2[b-l9ja068vng] {
        margin: 0;
        color: var(--jj-text);
        font-size: 28px;
        font-weight: 720;
    }

    .client-visits-header p[b-l9ja068vng] {
        max-width: 730px;
        margin: 9px 0 0;
        color: var(--jj-text-secondary);
        font-size: 15px;
        line-height: 1.6;
    }

.register-visit-button[b-l9ja068vng] {
    display: inline-flex;
    min-height: 48px;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--jj-sidebar);
    border-radius: 2px;
    background: var(--jj-sidebar);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

    .register-visit-button:hover[b-l9ja068vng] {
        opacity: 0.88;
    }

    .register-visit-button svg[b-l9ja068vng] {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.visit-success-message[b-l9ja068vng] {
    display: flex;
    margin-bottom: 18px;
    padding: 14px 16px;
    align-items: center;
    gap: 11px;
    border: 1px solid #8cbea0;
    background: #e4f3e8;
    color: #245f3a;
    font-size: 14px;
    font-weight: 650;
}

    .visit-success-message > svg[b-l9ja068vng] {
        width: 21px;
        height: 21px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .visit-success-message > span[b-l9ja068vng] {
        flex: 1;
    }

    .visit-success-message button[b-l9ja068vng] {
        display: grid;
        width: 31px;
        height: 31px;
        flex: 0 0 auto;
        place-items: center;
        border: 0;
        background: transparent;
        color: currentColor;
    }

        .visit-success-message button svg[b-l9ja068vng] {
            width: 17px;
            height: 17px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8px;
            stroke-linecap: round;
        }

.visits-status[b-l9ja068vng],
.visits-empty[b-l9ja068vng] {
    display: flex;
    min-height: 270px;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

    .visits-status strong[b-l9ja068vng],
    .visits-empty h3[b-l9ja068vng] {
        margin: 16px 0 0;
        color: var(--jj-text);
        font-size: 19px;
        font-weight: 720;
    }

    .visits-status span[b-l9ja068vng],
    .visits-empty p[b-l9ja068vng] {
        max-width: 590px;
        margin: 8px 0 0;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.65;
    }

    .visits-status button[b-l9ja068vng],
    .visits-empty button[b-l9ja068vng] {
        min-height: 44px;
        margin-top: 20px;
        padding: 0 18px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text-secondary);
        font-size: 14px;
        font-weight: 680;
    }

.visits-spinner[b-l9ja068vng] {
    width: 38px;
    height: 38px;
    border: 3px solid var(--jj-border);
    border-top-color: var(--jj-accent);
    border-radius: 50%;
    animation: client-details-spin-b-l9ja068vng 700ms linear infinite;
}

.visits-error > svg[b-l9ja068vng] {
    width: 38px;
    height: 38px;
    color: var(--jj-danger);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visits-empty-icon[b-l9ja068vng] {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

    .visits-empty-icon svg[b-l9ja068vng] {
        width: 27px;
        height: 27px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.visits-summary[b-l9ja068vng] {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--jj-text-muted);
    font-size: 13px;
}

    .visits-summary strong[b-l9ja068vng] {
        display: grid;
        min-width: 29px;
        height: 29px;
        padding: 0 8px;
        place-items: center;
        border: 1px solid var(--jj-accent-border);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
        font-size: 13px;
    }

.visits-list[b-l9ja068vng] {
    display: grid;
    gap: 16px;
}

.visit-card[b-l9ja068vng] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.visit-card-header[b-l9ja068vng] {
    display: flex;
    padding: 18px 21px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

.visit-date-block[b-l9ja068vng],
.visit-status-block[b-l9ja068vng],
.visit-id-block[b-l9ja068vng] {
    display: flex;
    flex-direction: column;
}

    .visit-date-block span[b-l9ja068vng],
    .visit-status-block > span[b-l9ja068vng],
    .visit-id-block span[b-l9ja068vng],
    .visit-notes-label[b-l9ja068vng] {
        color: var(--jj-text-muted);
        font-size: 11px;
        font-weight: 740;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .visit-date-block strong[b-l9ja068vng] {
        margin-top: 5px;
        color: var(--jj-text);
        font-size: 21px;
        font-weight: 720;
    }

.visit-id-block[b-l9ja068vng] {
    text-align: right;
}

    .visit-id-block strong[b-l9ja068vng] {
        margin-top: 5px;
        color: var(--jj-accent-dark);
        font-size: 15px;
        font-weight: 720;
    }

/* =========================================================
   Estado de la visita
   ========================================================= */

.visit-status-block[b-l9ja068vng] {
    min-width: 140px;
}

.client-visit-status[b-l9ja068vng] {
    display: inline-flex;
    width: fit-content;
    min-width: 104px;
    min-height: 32px;
    margin-top: 7px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 780;
    line-height: 1;
    white-space: nowrap;
}

    /* Programada */
    .client-visit-status.is-scheduled[b-l9ja068vng] {
        border-color: #b99861;
        background: #f3e6cf;
        color: #694817;
    }

    /* Completada */
    .client-visit-status.is-completed[b-l9ja068vng] {
        border-color: #72a080;
        background: #deede2;
        color: #235b36;
    }

    /* Cancelada */
    .client-visit-status.is-cancelled[b-l9ja068vng] {
        border-color: #c77d7d;
        background: #f5dddd;
        color: #842d2d;
    }

    /* No asistió */
    .client-visit-status.is-noshow[b-l9ja068vng] {
        border-color: #8d819d;
        background: #e8e3ee;
        color: #4c3d60;
    }

    /* Estado desconocido */
    .client-visit-status.is-unknown[b-l9ja068vng] {
        border-color: #aeb2b7;
        background: #eceeef;
        color: #5e646b;
    }






.visit-card-content[b-l9ja068vng] {
    padding: 21px;
}

    .visit-card-content p[b-l9ja068vng] {
        margin: 10px 0 0;
        color: var(--jj-text-secondary);
        font-size: 15px;
        line-height: 1.7;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .visit-card-content .visit-notes-empty[b-l9ja068vng] {
        color: var(--jj-text-muted);
        font-style: italic;
    }

.visit-card-footer[b-l9ja068vng] {
    display: flex;
    padding: 15px 21px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--jj-border);
}

.visit-system-date[b-l9ja068vng] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: var(--jj-text-muted);
    font-size: 12px;
}

    .visit-system-date strong[b-l9ja068vng] {
        color: var(--jj-text-secondary);
        font-weight: 680;
    }

.visit-actions[b-l9ja068vng] {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .visit-actions button[b-l9ja068vng] {
        min-height: 36px;
        padding: 0 13px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text-secondary);
        font-size: 13px;
        font-weight: 680;
        white-space: nowrap;
        cursor: pointer;
        transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
    }

/* Ver notas: dorado solamente al pasar el mouse */

.visit-view-button:hover:not(:disabled)[b-l9ja068vng],
.visit-view-button:focus-visible:not(:disabled)[b-l9ja068vng] {
    border-color: var(--jj-accent);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

/* Editar visita: negro solamente al pasar el mouse */

.visit-edit-button:hover:not(:disabled)[b-l9ja068vng],
.visit-edit-button:focus-visible:not(:disabled)[b-l9ja068vng] {
    border-color: var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

/* Archivar: rojo solamente al pasar el mouse */

.visit-archive-button:hover:not(:disabled)[b-l9ja068vng],
.visit-archive-button:focus-visible:not(:disabled)[b-l9ja068vng] {
    border-color: #873d3d;
    background: #873d3d;
    color: #ffffff;
}

.visit-actions button:hover:not(:disabled)[b-l9ja068vng] {
    transform: translateY(-1px);
}

.visit-actions button:active:not(:disabled)[b-l9ja068vng] {
    transform: translateY(0);
}

.visit-actions button:focus-visible[b-l9ja068vng] {
    outline: 2px solid var(--jj-accent);
    outline-offset: 2px;
}

.visit-actions button:disabled[b-l9ja068vng] {
    cursor: not-allowed;
    opacity: 0.42;
}

/* =========================================================
   Visit Modals
   ========================================================= */

.visit-modal-backdrop[b-l9ja068vng] {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.64);
    backdrop-filter: blur(3px);
}

.visit-notes-modal[b-l9ja068vng],
.visit-confirm-modal[b-l9ja068vng] {
    width: min(680px, 100%);
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.visit-modal-header[b-l9ja068vng] {
    display: flex;
    padding: 22px 24px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .visit-modal-header span[b-l9ja068vng],
    .visit-notes-modal-content > span[b-l9ja068vng] {
        color: var(--jj-accent-dark);
        font-size: 11px;
        font-weight: 760;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .visit-modal-header h2[b-l9ja068vng] {
        margin: 6px 0 0;
        color: var(--jj-text);
        font-size: 25px;
        font-weight: 720;
    }

    .visit-modal-header p[b-l9ja068vng] {
        margin: 5px 0 0;
        color: var(--jj-text-muted);
        font-size: 13px;
    }

.visit-modal-close[b-l9ja068vng] {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

    .visit-modal-close svg[b-l9ja068vng] {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
    }

.visit-notes-modal-content[b-l9ja068vng] {
    padding: 24px;
}

    .visit-notes-modal-content p[b-l9ja068vng] {
        min-height: 145px;
        max-height: 430px;
        margin: 12px 0 0;
        padding: 19px;
        overflow-y: auto;
        border: 1px solid var(--jj-border);
        background: var(--jj-background-soft);
        color: var(--jj-text-secondary);
        font-size: 15px;
        line-height: 1.75;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

.visit-modal-footer[b-l9ja068vng] {
    display: flex;
    padding: 17px 24px;
    justify-content: flex-end;
    border-top: 1px solid var(--jj-border);
}

    .visit-modal-footer button[b-l9ja068vng] {
        min-height: 44px;
        padding: 0 20px;
        border: 1px solid var(--jj-sidebar);
        border-radius: 2px;
        background: var(--jj-sidebar);
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
    }

.visit-confirm-modal[b-l9ja068vng] {
    display: flex;
    max-width: 540px;
    padding: 34px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.archive-warning-icon[b-l9ja068vng] {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid #d3a1a1;
    border-radius: 50%;
    background: #fff1f1;
    color: #8b3c3c;
}

    .archive-warning-icon svg[b-l9ja068vng] {
        width: 30px;
        height: 30px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.archive-modal-eyebrow[b-l9ja068vng] {
    color: #8b3c3c;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.visit-confirm-modal h2[b-l9ja068vng] {
    margin: 9px 0 0;
    color: var(--jj-text);
    font-size: 28px;
    font-weight: 720;
}

.visit-confirm-modal > p[b-l9ja068vng] {
    max-width: 460px;
    margin: 14px 0 0;
    color: var(--jj-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

    .visit-confirm-modal > p strong[b-l9ja068vng] {
        color: var(--jj-text);
    }

.archive-modal-error[b-l9ja068vng] {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid #d3a1a1;
    background: #fff1f1;
    color: #843939;
    font-size: 13px;
    line-height: 1.55;
}

.archive-modal-actions[b-l9ja068vng] {
    display: flex;
    width: 100%;
    margin-top: 25px;
    justify-content: center;
    gap: 10px;
}

    .archive-modal-actions button[b-l9ja068vng] {
        display: inline-flex;
        min-height: 47px;
        padding: 0 20px;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border-radius: 2px;
        font-size: 14px;
        font-weight: 700;
    }

.archive-cancel-button[b-l9ja068vng] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

.archive-confirm-button[b-l9ja068vng] {
    min-width: 150px;
    border: 1px solid #873d3d;
    background: #873d3d;
    color: #ffffff;
}

.archive-modal-actions button:disabled[b-l9ja068vng] {
    cursor: wait;
    opacity: 0.6;
}

.archive-spinner[b-l9ja068vng] {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: client-details-spin-b-l9ja068vng 650ms linear infinite;
}

/* =========================================================
   Future Client Modules
   ========================================================= */

.client-modules-section[b-l9ja068vng] {
    margin-top: 38px;
}

.client-modules-header h2[b-l9ja068vng] {
    margin: 0;
    color: var(--jj-text);
    font-size: 28px;
    font-weight: 720;
}

.client-modules-header p[b-l9ja068vng] {
    max-width: 730px;
    margin: 9px 0 0;
    color: var(--jj-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.client-modules-grid[b-l9ja068vng] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 21px;
    gap: 20px;
}

.client-module-card[b-l9ja068vng] {
    display: flex;
    min-height: 285px;
    padding: 24px;
    flex-direction: column;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.client-module-icon[b-l9ja068vng] {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 19px;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

    .client-module-icon svg[b-l9ja068vng] {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.client-module-card > span[b-l9ja068vng] {
    color: var(--jj-text-muted);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.client-module-card h3[b-l9ja068vng] {
    margin: 9px 0 0;
    color: var(--jj-text);
    font-size: 21px;
    font-weight: 720;
}

.client-module-card p[b-l9ja068vng] {
    margin: 12px 0 24px;
    color: var(--jj-text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.client-module-card button[b-l9ja068vng] {
    min-height: 43px;
    margin-top: auto;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-background-soft);
    color: var(--jj-text-muted);
    font-size: 13px;
    font-weight: 680;
    cursor: not-allowed;
    opacity: 0.65;
}

/* =========================================================
   Dark Theme
   ========================================================= */

html[data-theme="dark"] .client-profile-status.is-active[b-l9ja068vng] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

html[data-theme="dark"] .client-profile-status.is-inactive[b-l9ja068vng] {
    border-color: #555555;
    background: #292929;
    color: #bdbdbd;
}

html[data-theme="dark"] .visit-success-message[b-l9ja068vng] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

html[data-theme="dark"] .archive-warning-icon[b-l9ja068vng],
html[data-theme="dark"] .archive-modal-error[b-l9ja068vng] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

@keyframes client-details-spin-b-l9ja068vng {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .client-information-grid[b-l9ja068vng],
    .client-modules-grid[b-l9ja068vng] {
        grid-template-columns: 1fr;
    }

    .client-information-full[b-l9ja068vng] {
        grid-column: auto;
    }

    .client-address-list[b-l9ja068vng] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-full-address[b-l9ja068vng] {
        grid-column: 1 / -1;
    }

    .visit-card-footer[b-l9ja068vng] {
        align-items: flex-start;
        flex-direction: column;
    }

    .visit-actions[b-l9ja068vng] {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 680px) {
    .client-details-header[b-l9ja068vng],
    .client-profile-card[b-l9ja068vng],
    .client-visits-header[b-l9ja068vng] {
        align-items: stretch;
        flex-direction: column;
    }

    .back-clients-button[b-l9ja068vng],
    .edit-client-button[b-l9ja068vng],
    .register-visit-button[b-l9ja068vng] {
        width: 100%;
    }

    .client-profile-summary[b-l9ja068vng] {
        align-items: flex-start;
    }

    .client-profile-metadata[b-l9ja068vng] {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-detail-list[b-l9ja068vng],
    .client-address-list[b-l9ja068vng] {
        grid-template-columns: 1fr;
    }

    .client-full-address[b-l9ja068vng] {
        grid-column: auto;
    }

    .client-details-error-actions[b-l9ja068vng] {
        width: 100%;
        flex-direction: column;
    }

    .visit-card-header[b-l9ja068vng] {
        align-items: flex-start;
    }

    .visit-actions[b-l9ja068vng] {
        align-items: stretch;
        flex-direction: column;
    }

        .visit-actions button[b-l9ja068vng] {
            width: 100%;
        }

    .visit-modal-backdrop[b-l9ja068vng] {
        padding: 14px;
    }

    .visit-notes-modal-content[b-l9ja068vng],
    .visit-modal-header[b-l9ja068vng],
    .visit-modal-footer[b-l9ja068vng] {
        padding-right: 18px;
        padding-left: 18px;
    }

    .visit-confirm-modal[b-l9ja068vng] {
        padding: 27px 20px;
    }

    .archive-modal-actions[b-l9ja068vng] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .archive-modal-actions button[b-l9ja068vng] {
            width: 100%;
        }
}


/* =========================================================
   Client Information Collapsible + Readability
   ========================================================= */

.client-information-collapsible[b-l9ja068vng] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.client-information-toggle[b-l9ja068vng] {
    display: flex;
    width: 100%;
    min-height: 112px;
    padding: 22px 24px;
    align-items: center;
    justify-content: flex-start;
    gap: 17px;
    border: 0;
    background: var(--jj-surface);
    color: var(--jj-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 150ms ease;
}

    .client-information-toggle:hover[b-l9ja068vng],
    .client-information-toggle:focus-visible[b-l9ja068vng] {
        background: var(--jj-background-soft);
    }

    .client-information-toggle:focus-visible[b-l9ja068vng] {
        outline: 2px solid var(--jj-accent);
        outline-offset: -2px;
    }

.client-information-toggle-icon[b-l9ja068vng] {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

    .client-information-toggle-icon svg[b-l9ja068vng] {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.client-information-toggle-copy[b-l9ja068vng] {
    min-width: 0;
    flex: 1;
}

    .client-information-toggle-copy > span[b-l9ja068vng] {
        display: block;
        margin-bottom: 5px;
        color: var(--jj-accent-dark);
        font-size: 13px;
        font-weight: 760;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .client-information-toggle-copy h2[b-l9ja068vng] {
        margin: 0;
        color: var(--jj-text);
        font-size: 23px;
        font-weight: 720;
        line-height: 1.25;
    }

    .client-information-toggle-copy p[b-l9ja068vng] {
        margin: 7px 0 0;
        color: var(--jj-text-secondary);
        font-size: 15px;
        line-height: 1.55;
    }

.client-information-toggle-action[b-l9ja068vng] {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: var(--jj-text-secondary);
}

    .client-information-toggle-action span[b-l9ja068vng] {
        font-size: 14px;
        font-weight: 680;
        white-space: nowrap;
    }

    .client-information-toggle-action svg[b-l9ja068vng] {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 170ms ease;
    }

.client-information-toggle.is-expanded
.client-information-toggle-action svg[b-l9ja068vng] {
    transform: rotate(180deg);
}

.client-information-content[b-l9ja068vng] {
    padding: 22px;
    border-top: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

/* =========================================================
   Readable Typography
   ========================================================= */

.client-details-eyebrow[b-l9ja068vng] {
    font-size: 13px;
    letter-spacing: 0.13em;
}

.client-profile-label[b-l9ja068vng] {
    font-size: 13px;
    letter-spacing: 0.08em;
}

.client-profile-metadata > span:first-child[b-l9ja068vng] {
    font-size: 14px;
}

.client-profile-status[b-l9ja068vng] {
    min-height: 31px;
    font-size: 13px;
}

.client-information-card > header > span[b-l9ja068vng] {
    font-size: 13px;
}

.client-information-card header p[b-l9ja068vng] {
    font-size: 14px;
    line-height: 1.55;
}

.client-detail-item span[b-l9ja068vng] {
    font-size: 13px;
    letter-spacing: 0.055em;
}

.client-detail-item strong[b-l9ja068vng] {
    font-size: 16px;
}

.client-notes-content p[b-l9ja068vng] {
    font-size: 16px;
}

.client-notes-empty[b-l9ja068vng] {
    font-size: 15px;
}

.visits-summary[b-l9ja068vng] {
    font-size: 14px;
}

.visit-date-block span[b-l9ja068vng],
.visit-status-block > span[b-l9ja068vng],
.visit-id-block span[b-l9ja068vng],
.visit-notes-label[b-l9ja068vng] {
    font-size: 13px;
    letter-spacing: 0.065em;
}

.visit-id-block strong[b-l9ja068vng] {
    font-size: 16px;
}

.visit-card-content p[b-l9ja068vng] {
    font-size: 16px;
}

.visit-system-date[b-l9ja068vng] {
    font-size: 13px;
}

.visit-actions button[b-l9ja068vng] {
    min-height: 38px;
    padding-right: 15px;
    padding-left: 15px;
    font-size: 14px;
}

.visit-modal-header span[b-l9ja068vng],
.visit-notes-modal-content > span[b-l9ja068vng] {
    font-size: 13px;
    letter-spacing: 0.09em;
}

.visit-modal-header p[b-l9ja068vng] {
    font-size: 14px;
}

.visit-notes-modal-content p[b-l9ja068vng] {
    font-size: 16px;
}

.archive-modal-eyebrow[b-l9ja068vng] {
    font-size: 13px;
    letter-spacing: 0.09em;
}

.archive-modal-error[b-l9ja068vng] {
    font-size: 14px;
}

@media (max-width: 680px) {
    .client-information-toggle[b-l9ja068vng] {
        min-height: 0;
        padding: 19px;
        align-items: flex-start;
    }

    .client-information-toggle-icon[b-l9ja068vng] {
        width: 44px;
        height: 44px;
    }

    .client-information-toggle-copy h2[b-l9ja068vng] {
        font-size: 21px;
    }

    .client-information-toggle-copy p[b-l9ja068vng] {
        font-size: 14px;
    }

    .client-information-toggle-action[b-l9ja068vng] {
        margin-left: auto;
    }

        .client-information-toggle-action span[b-l9ja068vng] {
            display: none;
        }

    .client-information-content[b-l9ja068vng] {
        padding: 15px;
    }
}
/* /Features/Clients/Clients.razor.rz.scp.css */
.clients-page[b-lwjm5ifi4d] {
    width: 100%;
}

.clients-header[b-lwjm5ifi4d] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 28px;
}

.clients-eyebrow[b-lwjm5ifi4d] {
    display: block;
    margin-bottom: 10px;
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.clients-header h1[b-lwjm5ifi4d] {
    margin: 0;
    color: var(--jj-text);
    font-size: clamp(42px, 3.5vw, 50px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.clients-header p[b-lwjm5ifi4d] {
    margin: 13px 0 0;
    color: var(--jj-text-secondary);
    font-size: 17px;
    line-height: 1.65;
}

.new-client-button[b-lwjm5ifi4d] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    gap: 10px;
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
    font-size: 16px;
    font-weight: 680;
}

    .new-client-button span[b-lwjm5ifi4d] {
        font-size: 23px;
        font-weight: 400;
        line-height: 1;
    }

    .new-client-button:disabled[b-lwjm5ifi4d] {
        cursor: default;
        opacity: 0.72;
    }

.clients-panel[b-lwjm5ifi4d] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.clients-panel-header[b-lwjm5ifi4d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 108px;
    padding: 25px 27px;
    gap: 24px;
    border-bottom: 1px solid var(--jj-border);
}

    .clients-panel-header h2[b-lwjm5ifi4d] {
        margin: 0;
        color: var(--jj-text);
        font-size: 21px;
        font-weight: 700;
    }

    .clients-panel-header p[b-lwjm5ifi4d] {
        margin: 8px 0 0;
        color: var(--jj-text-muted);
        font-size: 15px;
    }

.reload-button[b-lwjm5ifi4d] {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text);
    font-size: 15px;
    font-weight: 650;
}

    .reload-button:disabled[b-lwjm5ifi4d] {
        cursor: default;
        opacity: 0.55;
    }

.clients-status[b-lwjm5ifi4d] {
    display: flex;
    min-height: 360px;
    padding: 48px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .clients-status strong[b-lwjm5ifi4d] {
        color: var(--jj-text);
        font-size: 20px;
        font-weight: 700;
    }

    .clients-status span[b-lwjm5ifi4d] {
        max-width: 720px;
        margin-top: 10px;
        color: var(--jj-text-muted);
        font-size: 15px;
        line-height: 1.7;
    }

    .clients-status button[b-lwjm5ifi4d] {
        min-height: 48px;
        margin-top: 22px;
        padding: 0 22px;
        border: 1px solid var(--jj-sidebar);
        background: var(--jj-sidebar);
        color: #ffffff;
        font-size: 15px;
        font-weight: 650;
    }

.clients-error strong[b-lwjm5ifi4d] {
    color: var(--jj-danger);
}

.loading-indicator[b-lwjm5ifi4d] {
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border: 4px solid var(--jj-border);
    border-top-color: var(--jj-accent);
    border-radius: 50%;
    animation: clients-loading-b-lwjm5ifi4d 700ms linear infinite;
}

.table-container[b-lwjm5ifi4d] {
    width: 100%;
    overflow-x: auto;
}

.clients-table[b-lwjm5ifi4d] {
    width: 100%;
    border-collapse: collapse;
}

    .clients-table th[b-lwjm5ifi4d],
    .clients-table td[b-lwjm5ifi4d] {
        border-bottom: 1px solid var(--jj-border-soft);
        text-align: left;
        vertical-align: middle;
    }

    .clients-table th[b-lwjm5ifi4d] {
        padding: 14px 22px;
    }

    .clients-table td[b-lwjm5ifi4d] {
        padding: 10px 22px;
    }

        .clients-table td:first-child[b-lwjm5ifi4d] {
            min-width: 220px;
        }

        .clients-table td strong[b-lwjm5ifi4d] {
            display: block;
            color: var(--jj-text);
            font-size: 16px;
            font-weight: 680;
        }

        .clients-table td:first-child span[b-lwjm5ifi4d] {
            display: block;
            margin-top: 4px;
            color: var(--jj-text-muted);
            font-size: 13px;
        }

    .clients-table tbody tr[b-lwjm5ifi4d] {
        transition: background-color 150ms ease;
    }

        .clients-table tbody tr:hover[b-lwjm5ifi4d] {
            background: var(--jj-background-soft);
        }

}

.client-status.is-active[b-lwjm5ifi4d],
.client-status.is-inactive[b-lwjm5ifi4d] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 36px;
    padding: 0 14px;
    gap: 8px;
    border: 1px solid;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.025em;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(20, 22, 24, 0.08);
}

    .client-status.is-active[b-lwjm5ifi4d]::before,
    .client-status.is-inactive[b-lwjm5ifi4d]::before {
        width: 8px;
        height: 8px;
        flex: 0 0 auto;
        border-radius: 50%;
        background: currentColor;
        content: "";
    }

/* Modo claro */

.client-status.is-active[b-lwjm5ifi4d] {
    border-color: #82b795;
    background: #dcefe3;
    color: #245f3a;
}

.client-status.is-inactive[b-lwjm5ifi4d] {
    border-color: #bfc3c7;
    background: #eceeef;
    color: #626870;
}

/* Modo oscuro */

html[data-theme="dark"] .client-status.is-active[b-lwjm5ifi4d] {
    border-color: #4f8b64;
    background: #193c29;
    color: #9bd8ae;
}

html[data-theme="dark"] .client-status.is-inactive[b-lwjm5ifi4d] {
    border-color: #555b62;
    background: #292d31;
    color: #bec3c9;
}

/* Estado en modo oscuro */

html[data-theme="dark"] .client-status.is-active[b-lwjm5ifi4d] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

html[data-theme="dark"] .client-status.is-inactive[b-lwjm5ifi4d] {
    border-color: #4b5056;
    background: #292d31;
    color: #b0b5bc;
}

@keyframes clients-loading-b-lwjm5ifi4d {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 700px) {
    .clients-header[b-lwjm5ifi4d] {
        align-items: flex-start;
        flex-direction: column;
    }

    .new-client-button[b-lwjm5ifi4d] {
        width: 100%;
    }

    .clients-panel-header[b-lwjm5ifi4d] {
        align-items: flex-start;
        flex-direction: column;
    }

    .reload-button[b-lwjm5ifi4d] {
        width: 100%;
    }
}


/* =========================================================
   JJColor — Clients Pagination
   ========================================================= */

.clients-pagination[b-lwjm5ifi4d] {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(360px, 1fr);
    align-items: center;
    min-height: 92px;
    padding: 18px 22px;
    gap: 24px;
    border-top: 1px solid var(--jj-border);
    background: var(--jj-surface);
}

.pagination-summary[b-lwjm5ifi4d] {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--jj-text-secondary);
    font-size: 14px;
}

    .pagination-summary strong[b-lwjm5ifi4d] {
        color: var(--jj-text);
        font-weight: 720;
    }

.page-size-control[b-lwjm5ifi4d] {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--jj-text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

    .page-size-control label[b-lwjm5ifi4d] {
        margin: 0;
    }

    .page-size-control select[b-lwjm5ifi4d] {
        min-width: 72px;
        min-height: 40px;
        padding: 0 30px 0 12px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text);
        font-size: 14px;
        font-weight: 650;
    }

        .page-size-control select:focus[b-lwjm5ifi4d] {
            border-color: var(--jj-accent);
            outline: none;
            box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
        }

.pagination-navigation[b-lwjm5ifi4d] {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-direction: column;
    gap: 9px;
}

.pagination-page-summary[b-lwjm5ifi4d] {
    color: var(--jj-text-muted);
    font-size: 13px;
}

.pagination-buttons[b-lwjm5ifi4d] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.pagination-button[b-lwjm5ifi4d] {
    display: inline-grid;
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
    place-items: center;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 680;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

    .pagination-button:hover:not(:disabled)[b-lwjm5ifi4d] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .pagination-button.is-active[b-lwjm5ifi4d] {
        border-color: var(--jj-accent);
        background: var(--jj-accent);
        color: #151719;
    }

    .pagination-button:disabled[b-lwjm5ifi4d] {
        cursor: default;
        opacity: 0.45;
    }

    .pagination-button.is-active:disabled[b-lwjm5ifi4d] {
        opacity: 1;
    }

.pagination-direction[b-lwjm5ifi4d] {
    min-width: 94px;
}

@media (max-width: 1050px) {
    .clients-pagination[b-lwjm5ifi4d] {
        grid-template-columns: 1fr auto;
    }

    .pagination-navigation[b-lwjm5ifi4d] {
        grid-column: 1 / -1;
        align-items: stretch;
    }

    .pagination-buttons[b-lwjm5ifi4d] {
        justify-content: space-between;
    }
}

@media (max-width: 700px) {
    .clients-pagination[b-lwjm5ifi4d] {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .page-size-control[b-lwjm5ifi4d] {
        justify-content: flex-start;
    }

    .pagination-navigation[b-lwjm5ifi4d] {
        grid-column: auto;
    }

    .pagination-buttons[b-lwjm5ifi4d] {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pagination-direction[b-lwjm5ifi4d] {
        flex: 1 1 120px;
    }
}


/* =========================================================
   JJColor — Clients Search
   ========================================================= */

.clients-searchbar[b-lwjm5ifi4d] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    padding: 18px 22px;
    gap: 10px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-surface);
}

.clients-search-field[b-lwjm5ifi4d] {
    position: relative;
    display: flex;
    align-items: center;
}

    .clients-search-field svg[b-lwjm5ifi4d] {
        position: absolute;
        left: 15px;
        width: 20px;
        height: 20px;
        color: var(--jj-text-muted);
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
    }

.clients-search-input[b-lwjm5ifi4d] {
    width: 100%;
    min-height: 46px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    outline: none;
    background: var(--jj-background-soft);
    color: var(--jj-text);
    font-size: 15px;
}

    .clients-search-input[b-lwjm5ifi4d]::placeholder {
        color: var(--jj-text-muted);
    }

    .clients-search-input:focus[b-lwjm5ifi4d] {
        border-color: var(--jj-accent);
        box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
    }

    .clients-search-input:disabled[b-lwjm5ifi4d] {
        cursor: wait;
        opacity: 0.7;
    }

.clients-search-button[b-lwjm5ifi4d],
.clients-clear-button[b-lwjm5ifi4d] {
    min-width: 100px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 680;
}

.clients-search-button[b-lwjm5ifi4d] {
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

.clients-clear-button[b-lwjm5ifi4d] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

.clients-search-button:hover:not(:disabled)[b-lwjm5ifi4d] {
    opacity: 0.88;
}

.clients-clear-button:hover:not(:disabled)[b-lwjm5ifi4d] {
    border-color: var(--jj-accent);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

.clients-search-button:disabled[b-lwjm5ifi4d],
.clients-clear-button:disabled[b-lwjm5ifi4d] {
    cursor: default;
    opacity: 0.45;
}

@media (max-width: 700px) {
    .clients-searchbar[b-lwjm5ifi4d] {
        grid-template-columns: 1fr 1fr;
    }

    .clients-search-field[b-lwjm5ifi4d] {
        grid-column: 1 / -1;
    }

    .clients-search-button[b-lwjm5ifi4d],
    .clients-clear-button[b-lwjm5ifi4d] {
        width: 100%;
    }
}


/* =========================================================
   JJColor — Address Modal
   ========================================================= */

.client-address-action[b-lwjm5ifi4d] {
    min-width: 140px;
}

.view-address-button[b-lwjm5ifi4d] {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--jj-accent-border);
    border-radius: 2px;
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 700;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

    .view-address-button:hover[b-lwjm5ifi4d] {
        border-color: var(--jj-accent);
        background: var(--jj-accent);
        color: #151719;
    }

    .view-address-button:focus-visible[b-lwjm5ifi4d] {
        outline: 2px solid rgba(179, 149, 99, 0.42);
        outline-offset: 2px;
    }

.address-modal-backdrop[b-lwjm5ifi4d] {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(10, 12, 14, 0.62);
    backdrop-filter: blur(4px);
}

.address-modal[b-lwjm5ifi4d] {
    width: min(540px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.address-modal-header[b-lwjm5ifi4d] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid var(--jj-border);
}

    .address-modal-header span[b-lwjm5ifi4d] {
        display: block;
        margin-bottom: 7px;
        color: var(--jj-accent-dark);
        font-size: 12px;
        font-weight: 760;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }

    .address-modal-header h2[b-lwjm5ifi4d] {
        margin: 0;
        color: var(--jj-text);
        font-size: 24px;
        font-weight: 720;
        line-height: 1.25;
    }

.address-modal-close[b-lwjm5ifi4d] {
    display: grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

    .address-modal-close:hover[b-lwjm5ifi4d] {
        background: var(--jj-background-soft);
        color: var(--jj-text);
    }

    .address-modal-close svg[b-lwjm5ifi4d] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
    }

.address-modal-content[b-lwjm5ifi4d] {
    padding: 8px 24px;
}

.address-detail-row[b-lwjm5ifi4d] {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    align-items: baseline;
    padding: 16px 0;
    gap: 20px;
    border-bottom: 1px solid var(--jj-border-soft);
}

    .address-detail-row:last-child[b-lwjm5ifi4d] {
        border-bottom: 0;
    }

    .address-detail-row span[b-lwjm5ifi4d] {
        color: var(--jj-text-muted);
        font-size: 14px;
    }

    .address-detail-row strong[b-lwjm5ifi4d] {
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 680;
        line-height: 1.5;
    }

.address-modal-footer[b-lwjm5ifi4d] {
    display: flex;
    justify-content: flex-end;
    padding: 18px 24px;
    border-top: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .address-modal-footer button[b-lwjm5ifi4d] {
        min-width: 110px;
        min-height: 42px;
        padding: 0 18px;
        border: 1px solid var(--jj-sidebar);
        background: var(--jj-sidebar);
        color: #ffffff;
        font-size: 14px;
        font-weight: 680;
    }

@media (max-width: 560px) {
    .address-modal-backdrop[b-lwjm5ifi4d] {
        padding: 14px;
    }

    .address-modal-header[b-lwjm5ifi4d] {
        padding: 20px;
    }

    .address-modal-content[b-lwjm5ifi4d] {
        padding: 6px 20px;
    }

    .address-detail-row[b-lwjm5ifi4d] {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .address-modal-footer[b-lwjm5ifi4d] {
        padding: 16px 20px;
    }

        .address-modal-footer button[b-lwjm5ifi4d] {
            width: 100%;
        }
}


/* =========================================================
   JJColor — Client Notes Modal
   ========================================================= */

.client-notes-action[b-lwjm5ifi4d] {
    min-width: 125px;
}

.view-notes-button:disabled[b-lwjm5ifi4d] {
    cursor: default;
    opacity: 0.42;
}

.notes-modal[b-lwjm5ifi4d] {
    width: min(650px, 100%);
}

.notes-modal-content[b-lwjm5ifi4d] {
    padding: 26px;
}

.notes-modal-label[b-lwjm5ifi4d] {
    display: block;
    margin-bottom: 12px;
    color: var(--jj-accent-dark);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.notes-modal-content p[b-lwjm5ifi4d] {
    min-height: 110px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
    color: var(--jj-text-secondary);
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .notes-modal-content[b-lwjm5ifi4d] {
        padding: 20px;
    }

        .notes-modal-content p[b-lwjm5ifi4d] {
            padding: 16px;
        }
}


/* =========================================================
   JJColor — Client Profile Button
   ========================================================= */

.client-profile-action[b-lwjm5ifi4d] {
    min-width: 125px;
}

.view-client-button[b-lwjm5ifi4d] {
    display: inline-flex;
    min-height: 34px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-accent-border);
    border-radius: 2px;
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

    .view-client-button:hover[b-lwjm5ifi4d] {
        border-color: var(--jj-accent);
        background: var(--jj-surface);
    }
/* /Features/Clients/EditClient.razor.rz.scp.css */
.edit-client-page[b-r9afs0ix74] {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.edit-client-header[b-r9afs0ix74] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 28px;
}

.edit-client-eyebrow[b-r9afs0ix74] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-accent-dark);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.edit-client-header h1[b-r9afs0ix74] {
    margin: 0;
    color: var(--jj-text);
    font-size: clamp(40px, 4vw, 50px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.edit-client-header p[b-r9afs0ix74] {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.back-client-button[b-r9afs0ix74] {
    display: inline-flex;
    min-height: 48px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 680;
}

    .back-client-button:hover:not(:disabled)[b-r9afs0ix74] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .back-client-button:disabled[b-r9afs0ix74] {
        cursor: wait;
        opacity: 0.55;
    }

    .back-client-button svg[b-r9afs0ix74] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.edit-client-status[b-r9afs0ix74] {
    display: flex;
    min-height: 440px;
    padding: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

    .edit-client-status strong[b-r9afs0ix74] {
        margin-top: 18px;
        color: var(--jj-text);
        font-size: 19px;
    }

    .edit-client-status > span[b-r9afs0ix74] {
        max-width: 620px;
        margin-top: 8px;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.6;
    }

.edit-client-spinner[b-r9afs0ix74] {
    width: 42px;
    height: 42px;
    border: 3px solid var(--jj-border);
    border-top-color: var(--jj-accent);
    border-radius: 50%;
    animation: edit-client-spin-b-r9afs0ix74 700ms linear infinite;
}

.edit-client-load-error > svg[b-r9afs0ix74] {
    width: 42px;
    height: 42px;
    color: var(--jj-danger);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.load-error-actions[b-r9afs0ix74] {
    display: flex;
    margin-top: 24px;
    gap: 10px;
}

    .load-error-actions button[b-r9afs0ix74] {
        min-height: 46px;
        padding: 0 18px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text-secondary);
        font-size: 14px;
        font-weight: 680;
    }

.editing-client-summary[b-r9afs0ix74] {
    display: flex;
    margin-bottom: 22px;
    padding: 22px 24px;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.editing-client-avatar[b-r9afs0ix74] {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
    font-size: 19px;
    font-weight: 780;
}

.editing-client-summary span[b-r9afs0ix74] {
    color: var(--jj-text-muted);
    font-size: 11px;
    font-weight: 740;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.editing-client-summary h2[b-r9afs0ix74] {
    margin: 4px 0 0;
    color: var(--jj-text);
    font-size: 23px;
    font-weight: 720;
}

.editing-client-summary p[b-r9afs0ix74] {
    margin: 5px 0 0;
    color: var(--jj-text-muted);
    font-size: 13px;
}

.edit-form-panel[b-r9afs0ix74] {
    margin-bottom: 22px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.form-section-header[b-r9afs0ix74] {
    display: flex;
    padding: 22px 26px;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .form-section-header > span[b-r9afs0ix74] {
        display: grid;
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid var(--jj-accent-border);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
        font-size: 12px;
        font-weight: 780;
    }

    .form-section-header h2[b-r9afs0ix74] {
        margin: 0;
        color: var(--jj-text);
        font-size: 20px;
        font-weight: 720;
    }

    .form-section-header p[b-r9afs0ix74] {
        margin: 6px 0 0;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.55;
    }

.edit-form-grid[b-r9afs0ix74] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 26px;
    gap: 24px;
}

.form-field[b-r9afs0ix74] {
    min-width: 0;
}

.form-field-full[b-r9afs0ix74] {
    grid-column: 1 / -1;
}

.form-field label:not(.active-client-option)[b-r9afs0ix74] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-text);
    font-size: 15px;
    font-weight: 680;
}

.form-field label > span[b-r9afs0ix74] {
    color: var(--jj-danger);
}

.form-control[b-r9afs0ix74] {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    outline: none;
    background: var(--jj-surface);
    color: var(--jj-text);
    font-size: 15px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

    .form-control:focus[b-r9afs0ix74] {
        border-color: var(--jj-accent);
        box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
    }

    .form-control[b-r9afs0ix74]::placeholder {
        color: var(--jj-text-muted);
    }

    .form-control:disabled[b-r9afs0ix74] {
        cursor: wait;
        background: var(--jj-background-soft);
        opacity: 0.7;
    }

.notes-control[b-r9afs0ix74] {
    min-height: 145px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    line-height: 1.6;
}

.active-client-option[b-r9afs0ix74] {
    display: flex;
    padding: 18px;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
    cursor: pointer;
}

.active-client-checkbox[b-r9afs0ix74] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.active-client-control[b-r9afs0ix74] {
    position: relative;
    display: block;
    width: 46px;
    height: 25px;
    flex: 0 0 auto;
    margin-top: 2px;
    border: 1px solid var(--jj-border);
    border-radius: 20px;
    background: var(--jj-border);
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .active-client-control > span[b-r9afs0ix74] {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        background: #ffffff;
        transition: transform 150ms ease;
    }

.active-client-checkbox:checked +
.active-client-control[b-r9afs0ix74] {
    border-color: var(--jj-success);
    background: var(--jj-success);
}

    .active-client-checkbox:checked +
    .active-client-control > span[b-r9afs0ix74] {
        transform: translateX(21px);
    }

.active-client-checkbox:focus-visible +
.active-client-control[b-r9afs0ix74] {
    outline: 2px solid rgba(179, 149, 99, 0.45);
    outline-offset: 2px;
}

.active-client-copy[b-r9afs0ix74] {
    display: flex;
    flex-direction: column;
}

    .active-client-copy strong[b-r9afs0ix74] {
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 700;
    }

    .active-client-copy small[b-r9afs0ix74] {
        margin-top: 5px;
        color: var(--jj-text-muted);
        font-size: 13px;
        line-height: 1.5;
    }

.update-client-error[b-r9afs0ix74] {
    display: flex;
    margin-bottom: 22px;
    padding: 18px;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid #d6a5a5;
    background: #fff3f3;
    color: #7a3232;
}

    .update-client-error svg[b-r9afs0ix74] {
        width: 23px;
        height: 23px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .update-client-error > div[b-r9afs0ix74] {
        display: flex;
        flex-direction: column;
    }

    .update-client-error strong[b-r9afs0ix74] {
        font-size: 15px;
        font-weight: 720;
    }

    .update-client-error span[b-r9afs0ix74] {
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.55;
    }

.edit-form-actions[b-r9afs0ix74] {
    display: flex;
    padding: 22px 0 6px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-edit-button[b-r9afs0ix74],
.save-changes-button[b-r9afs0ix74] {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.cancel-edit-button[b-r9afs0ix74] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

    .cancel-edit-button:hover:not(:disabled)[b-r9afs0ix74] {
        background: var(--jj-background-soft);
        color: var(--jj-text);
    }

.save-changes-button[b-r9afs0ix74] {
    display: inline-flex;
    min-width: 190px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

    .save-changes-button:hover:not(:disabled)[b-r9afs0ix74] {
        opacity: 0.88;
    }

    .cancel-edit-button:disabled[b-r9afs0ix74],
    .save-changes-button:disabled[b-r9afs0ix74] {
        cursor: wait;
        opacity: 0.6;
    }

    .save-changes-button svg[b-r9afs0ix74] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.save-spinner[b-r9afs0ix74] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: edit-client-spin-b-r9afs0ix74 650ms linear infinite;
}

.update-success-panel[b-r9afs0ix74] {
    display: flex;
    min-height: 480px;
    padding: 54px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

.success-icon[b-r9afs0ix74] {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid #8cbea0;
    border-radius: 50%;
    background: #dff1e5;
    color: #245f3a;
}

    .success-icon svg[b-r9afs0ix74] {
        width: 38px;
        height: 38px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.success-eyebrow[b-r9afs0ix74] {
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.update-success-panel h2[b-r9afs0ix74] {
    margin: 13px 0 0;
    color: var(--jj-text);
    font-size: 34px;
    font-weight: 720;
}

.update-success-panel p[b-r9afs0ix74] {
    max-width: 590px;
    margin: 17px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

    .update-success-panel p strong[b-r9afs0ix74] {
        color: var(--jj-text);
    }

.success-actions[b-r9afs0ix74] {
    display: flex;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.primary-success-button[b-r9afs0ix74],
.secondary-success-button[b-r9afs0ix74] {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.primary-success-button[b-r9afs0ix74] {
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

.secondary-success-button[b-r9afs0ix74] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

html[data-theme="dark"] .update-client-error[b-r9afs0ix74] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

html[data-theme="dark"] .success-icon[b-r9afs0ix74] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

@keyframes edit-client-spin-b-r9afs0ix74 {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 760px) {
    .edit-client-header[b-r9afs0ix74] {
        align-items: flex-start;
        flex-direction: column;
    }

    .back-client-button[b-r9afs0ix74] {
        width: 100%;
    }

    .edit-form-grid[b-r9afs0ix74] {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .form-field-full[b-r9afs0ix74] {
        grid-column: auto;
    }

    .edit-form-actions[b-r9afs0ix74] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cancel-edit-button[b-r9afs0ix74],
    .save-changes-button[b-r9afs0ix74] {
        width: 100%;
    }

    .success-actions[b-r9afs0ix74],
    .load-error-actions[b-r9afs0ix74] {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

        .primary-success-button[b-r9afs0ix74],
        .secondary-success-button[b-r9afs0ix74],
        .load-error-actions button[b-r9afs0ix74] {
            width: 100%;
        }
}
/* /Features/Clients/NewClient.razor.rz.scp.css */
.new-client-page[b-u3pm6zaqjt] {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.new-client-header[b-u3pm6zaqjt] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 28px;
}

.new-client-eyebrow[b-u3pm6zaqjt] {
    display: block;
    margin-bottom: 10px;
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.new-client-header h1[b-u3pm6zaqjt] {
    margin: 0;
    color: var(--jj-text);
    font-size: clamp(42px, 3.5vw, 50px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.new-client-header p[b-u3pm6zaqjt] {
    max-width: 720px;
    margin: 13px 0 0;
    color: var(--jj-text-secondary);
    font-size: 17px;
    line-height: 1.65;
}

.back-to-clients-button[b-u3pm6zaqjt] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    gap: 10px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 680;
}

    .back-to-clients-button:hover:not(:disabled)[b-u3pm6zaqjt] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .back-to-clients-button:disabled[b-u3pm6zaqjt] {
        cursor: wait;
        opacity: 0.55;
    }

    .back-to-clients-button svg[b-u3pm6zaqjt] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.client-form-panel[b-u3pm6zaqjt] {
    margin-bottom: 22px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.form-section-header[b-u3pm6zaqjt] {
    padding: 22px 26px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .form-section-header > div[b-u3pm6zaqjt] {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

        .form-section-header > div > span[b-u3pm6zaqjt] {
            display: grid;
            width: 36px;
            height: 36px;
            flex: 0 0 auto;
            place-items: center;
            border: 1px solid var(--jj-accent-border);
            background: var(--jj-accent-soft);
            color: var(--jj-accent-dark);
            font-size: 12px;
            font-weight: 780;
        }

    .form-section-header h2[b-u3pm6zaqjt] {
        margin: 0;
        color: var(--jj-text);
        font-size: 20px;
        font-weight: 720;
        line-height: 1.3;
    }

    .form-section-header p[b-u3pm6zaqjt] {
        margin: 6px 0 0;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.55;
    }

.client-form-grid[b-u3pm6zaqjt] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 26px;
    gap: 24px;
}

.form-field[b-u3pm6zaqjt] {
    min-width: 0;
}

.form-field-full[b-u3pm6zaqjt] {
    grid-column: 1 / -1;
}

.form-field label:not(.active-client-option)[b-u3pm6zaqjt] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-text);
    font-size: 15px;
    font-weight: 680;
}

.form-field label > span[b-u3pm6zaqjt] {
    color: var(--jj-danger);
}

.form-control[b-u3pm6zaqjt] {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    outline: none;
    background: var(--jj-surface);
    color: var(--jj-text);
    font-size: 15px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

    .form-control:focus[b-u3pm6zaqjt] {
        border-color: var(--jj-accent);
        box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
    }

    .form-control[b-u3pm6zaqjt]::placeholder {
        color: var(--jj-text-muted);
    }

    .form-control:disabled[b-u3pm6zaqjt] {
        cursor: wait;
        background: var(--jj-background-soft);
        opacity: 0.7;
    }

.notes-control[b-u3pm6zaqjt] {
    min-height: 145px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    line-height: 1.6;
}

.active-client-option[b-u3pm6zaqjt] {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    gap: 14px;
    border: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
    cursor: pointer;
}

.active-client-checkbox[b-u3pm6zaqjt] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.active-client-control[b-u3pm6zaqjt] {
    position: relative;
    display: block;
    width: 46px;
    height: 25px;
    flex: 0 0 auto;
    margin-top: 2px;
    border: 1px solid var(--jj-border);
    border-radius: 20px;
    background: var(--jj-border);
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .active-client-control > span[b-u3pm6zaqjt] {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        background: #ffffff;
        transition: transform 150ms ease;
    }

.active-client-checkbox:checked +
.active-client-control[b-u3pm6zaqjt] {
    border-color: var(--jj-success);
    background: var(--jj-success);
}

    .active-client-checkbox:checked +
    .active-client-control > span[b-u3pm6zaqjt] {
        transform: translateX(21px);
    }

.active-client-checkbox:focus-visible +
.active-client-control[b-u3pm6zaqjt] {
    outline: 2px solid rgba(179, 149, 99, 0.45);
    outline-offset: 2px;
}

.active-client-copy[b-u3pm6zaqjt] {
    display: flex;
    flex-direction: column;
}

    .active-client-copy strong[b-u3pm6zaqjt] {
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 700;
    }

    .active-client-copy small[b-u3pm6zaqjt] {
        margin-top: 5px;
        color: var(--jj-text-muted);
        font-size: 13px;
        line-height: 1.5;
    }

.create-client-error[b-u3pm6zaqjt] {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 18px;
    gap: 13px;
    border: 1px solid #d6a5a5;
    background: #fff3f3;
    color: #7a3232;
}

    .create-client-error svg[b-u3pm6zaqjt] {
        width: 23px;
        height: 23px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .create-client-error > div[b-u3pm6zaqjt] {
        display: flex;
        flex-direction: column;
    }

    .create-client-error strong[b-u3pm6zaqjt] {
        font-size: 15px;
        font-weight: 720;
    }

    .create-client-error span[b-u3pm6zaqjt] {
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.55;
    }

.client-form-actions[b-u3pm6zaqjt] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 22px 0 6px;
    gap: 12px;
}

.cancel-client-button[b-u3pm6zaqjt],
.save-client-button[b-u3pm6zaqjt] {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.cancel-client-button[b-u3pm6zaqjt] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

    .cancel-client-button:hover:not(:disabled)[b-u3pm6zaqjt] {
        background: var(--jj-background-soft);
        color: var(--jj-text);
    }

.save-client-button[b-u3pm6zaqjt] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    gap: 11px;
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

    .save-client-button:hover:not(:disabled)[b-u3pm6zaqjt] {
        opacity: 0.88;
    }

    .cancel-client-button:disabled[b-u3pm6zaqjt],
    .save-client-button:disabled[b-u3pm6zaqjt] {
        cursor: wait;
        opacity: 0.6;
    }

    .save-client-button svg[b-u3pm6zaqjt] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.save-spinner[b-u3pm6zaqjt] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: save-client-spin-b-u3pm6zaqjt 650ms linear infinite;
}

.client-created-panel[b-u3pm6zaqjt] {
    display: flex;
    min-height: 480px;
    padding: 54px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

.created-icon[b-u3pm6zaqjt] {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid #8cbea0;
    border-radius: 50%;
    background: #dff1e5;
    color: #245f3a;
}

    .created-icon svg[b-u3pm6zaqjt] {
        width: 38px;
        height: 38px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.created-eyebrow[b-u3pm6zaqjt] {
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.client-created-panel h2[b-u3pm6zaqjt] {
    margin: 13px 0 0;
    color: var(--jj-text);
    font-size: 34px;
    font-weight: 720;
    line-height: 1.2;
}

.client-created-panel p[b-u3pm6zaqjt] {
    max-width: 570px;
    margin: 17px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

    .client-created-panel p strong[b-u3pm6zaqjt] {
        color: var(--jj-text);
    }

.created-actions[b-u3pm6zaqjt] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 12px;
}

.primary-action-button[b-u3pm6zaqjt],
.secondary-action-button[b-u3pm6zaqjt] {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.primary-action-button[b-u3pm6zaqjt] {
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

.secondary-action-button[b-u3pm6zaqjt] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

html[data-theme="dark"] .create-client-error[b-u3pm6zaqjt] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

html[data-theme="dark"] .created-icon[b-u3pm6zaqjt] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

@keyframes save-client-spin-b-u3pm6zaqjt {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 760px) {
    .new-client-header[b-u3pm6zaqjt] {
        align-items: flex-start;
        flex-direction: column;
    }

    .back-to-clients-button[b-u3pm6zaqjt] {
        width: 100%;
    }

    .client-form-grid[b-u3pm6zaqjt] {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .form-field-full[b-u3pm6zaqjt] {
        grid-column: auto;
    }

    .client-form-actions[b-u3pm6zaqjt] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cancel-client-button[b-u3pm6zaqjt],
    .save-client-button[b-u3pm6zaqjt] {
        width: 100%;
    }

    .created-actions[b-u3pm6zaqjt] {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .primary-action-button[b-u3pm6zaqjt],
    .secondary-action-button[b-u3pm6zaqjt] {
        width: 100%;
    }
}
/* /Features/Dashboard/Dashboard.razor.rz.scp.css */
.dashboard-page[b-uyvwb3xvpa] {
    width: 100%;
}

.page-header[b-uyvwb3xvpa] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 28px;
}

.page-eyebrow[b-uyvwb3xvpa] {
    display: block;
    margin-bottom: 10px;
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 780;
    line-height: 1.2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.page-header h1[b-uyvwb3xvpa] {
    margin: 0;
    color: var(--jj-text);
    font-size: clamp(42px, 3.5vw, 50px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.page-header p[b-uyvwb3xvpa] {
    max-width: 820px;
    margin: 13px 0 0;
    color: var(--jj-text-secondary);
    font-size: 17px;
    line-height: 1.65;
}

.primary-action[b-uyvwb3xvpa] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    gap: 10px;
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
    font-size: 16px;
    font-weight: 680;
    line-height: 1.3;
}

    .primary-action svg[b-uyvwb3xvpa] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
    }

    .primary-action:disabled[b-uyvwb3xvpa] {
        cursor: default;
        opacity: 0.86;
    }

.metrics-grid[b-uyvwb3xvpa] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.metric-card[b-uyvwb3xvpa],
.panel[b-uyvwb3xvpa] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.metric-card[b-uyvwb3xvpa] {
    min-height: 192px;
    padding: 25px;
}

.metric-header[b-uyvwb3xvpa] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

    .metric-header > span[b-uyvwb3xvpa] {
        color: var(--jj-text-secondary);
        font-size: 16px;
        font-weight: 650;
        line-height: 1.45;
    }

.metric-icon[b-uyvwb3xvpa] {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

    .metric-icon svg[b-uyvwb3xvpa] {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.65px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.metric-card > strong[b-uyvwb3xvpa] {
    display: block;
    margin-top: 23px;
    color: var(--jj-text);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.metric-card > small[b-uyvwb3xvpa] {
    display: block;
    margin-top: 14px;
    color: var(--jj-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.dashboard-grid[b-uyvwb3xvpa] {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(350px, 0.8fr);
    gap: 20px;
}

.panel[b-uyvwb3xvpa] {
    min-width: 0;
}

.panel-header[b-uyvwb3xvpa] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 108px;
    padding: 25px 27px;
    gap: 20px;
    border-bottom: 1px solid var(--jj-border);
}

    .panel-header h2[b-uyvwb3xvpa] {
        margin: 0;
        color: var(--jj-text);
        font-size: 21px;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: -0.015em;
    }

    .panel-header p[b-uyvwb3xvpa] {
        margin: 8px 0 0;
        color: var(--jj-text-muted);
        font-size: 15px;
        line-height: 1.55;
    }

    .panel-header button[b-uyvwb3xvpa] {
        min-height: 42px;
        padding: 0 6px;
        border: 0;
        background: transparent;
        color: var(--jj-accent-dark);
        font-size: 15px;
        font-weight: 680;
    }

        .panel-header button:disabled[b-uyvwb3xvpa] {
            opacity: 0.72;
        }

.empty-state[b-uyvwb3xvpa] {
    display: flex;
    min-height: 360px;
    padding: 52px 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-state-icon[b-uyvwb3xvpa] {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    place-items: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
    color: var(--jj-text-muted);
}

    .empty-state-icon svg[b-uyvwb3xvpa] {
        width: 30px;
        height: 30px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.empty-state h3[b-uyvwb3xvpa] {
    margin: 0;
    color: var(--jj-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.empty-state p[b-uyvwb3xvpa] {
    max-width: 540px;
    margin: 12px 0 0;
    color: var(--jj-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.quick-actions[b-uyvwb3xvpa] {
    padding: 12px;
}

    .quick-actions button[b-uyvwb3xvpa] {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        align-items: center;
        width: 100%;
        min-height: 90px;
        padding: 15px 14px;
        gap: 16px;
        border: 0;
        border-bottom: 1px solid var(--jj-border-soft);
        background: transparent;
        color: inherit;
        text-align: left;
    }

        .quick-actions button:last-child[b-uyvwb3xvpa] {
            border-bottom: 0;
        }

        .quick-actions button:disabled[b-uyvwb3xvpa] {
            cursor: default;
            opacity: 1;
        }

        .quick-actions button > span[b-uyvwb3xvpa] {
            display: grid;
            width: 44px;
            height: 44px;
            place-items: center;
            border: 1px solid var(--jj-accent-border);
            background: var(--jj-accent-soft);
            color: var(--jj-accent-dark);
            font-size: 13px;
            font-weight: 780;
        }

        .quick-actions button div[b-uyvwb3xvpa] {
            display: flex;
            flex-direction: column;
        }

    .quick-actions strong[b-uyvwb3xvpa] {
        color: var(--jj-text);
        font-size: 17px;
        font-weight: 690;
        line-height: 1.4;
    }

    .quick-actions small[b-uyvwb3xvpa] {
        margin-top: 5px;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.5;
    }

@media (max-width: 1300px) {
    .metrics-grid[b-uyvwb3xvpa] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .dashboard-grid[b-uyvwb3xvpa] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .page-header[b-uyvwb3xvpa] {
        align-items: flex-start;
        flex-direction: column;
    }

        .page-header h1[b-uyvwb3xvpa] {
            font-size: 40px;
        }

        .page-header p[b-uyvwb3xvpa] {
            font-size: 16px;
        }

    .primary-action[b-uyvwb3xvpa] {
        width: 100%;
    }

    .metrics-grid[b-uyvwb3xvpa] {
        grid-template-columns: 1fr;
    }

    .metric-card[b-uyvwb3xvpa] {
        min-height: 175px;
    }

    .panel-header[b-uyvwb3xvpa] {
        min-height: auto;
    }
}
/* /Features/Visits/EditVisit.razor.rz.scp.css */
.edit-visit-page[b-s93thytaya] {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.edit-visit-header[b-s93thytaya] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 28px;
}

.edit-visit-eyebrow[b-s93thytaya] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-accent-dark);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.edit-visit-header h1[b-s93thytaya] {
    margin: 0;
    color: var(--jj-text);
    font-size: clamp(40px, 4vw, 50px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.edit-visit-header p[b-s93thytaya] {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.back-client-button[b-s93thytaya] {
    display: inline-flex;
    min-height: 48px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 680;
}

    .back-client-button:hover:not(:disabled)[b-s93thytaya] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .back-client-button:disabled[b-s93thytaya] {
        cursor: wait;
        opacity: 0.55;
    }

    .back-client-button svg[b-s93thytaya] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.edit-visit-status[b-s93thytaya] {
    display: flex;
    min-height: 430px;
    padding: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

    .edit-visit-status strong[b-s93thytaya] {
        margin-top: 18px;
        color: var(--jj-text);
        font-size: 19px;
    }

    .edit-visit-status > span[b-s93thytaya] {
        max-width: 620px;
        margin-top: 8px;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.6;
    }

.edit-visit-spinner[b-s93thytaya] {
    width: 42px;
    height: 42px;
    border: 3px solid var(--jj-border);
    border-top-color: var(--jj-accent);
    border-radius: 50%;
    animation: edit-visit-spin-b-s93thytaya 700ms linear infinite;
}

.edit-visit-load-error > svg[b-s93thytaya] {
    width: 42px;
    height: 42px;
    color: var(--jj-danger);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.load-error-actions[b-s93thytaya] {
    display: flex;
    margin-top: 24px;
    gap: 10px;
}

    .load-error-actions button[b-s93thytaya] {
        min-height: 46px;
        padding: 0 18px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text-secondary);
        font-size: 14px;
        font-weight: 680;
    }

.visit-summary[b-s93thytaya] {
    display: flex;
    margin-bottom: 22px;
    padding: 22px 24px;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.client-avatar[b-s93thytaya] {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
    font-size: 19px;
    font-weight: 780;
}

.visit-summary-client[b-s93thytaya] {
    min-width: 0;
    flex: 1;
}

    .visit-summary-client > span[b-s93thytaya],
    .visit-summary-id > span[b-s93thytaya] {
        color: var(--jj-text-muted);
        font-size: 11px;
        font-weight: 740;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .visit-summary-client h2[b-s93thytaya] {
        margin: 4px 0 0;
        color: var(--jj-text);
        font-size: 23px;
        font-weight: 720;
        overflow-wrap: anywhere;
    }

    .visit-summary-client p[b-s93thytaya] {
        margin: 5px 0 0;
        color: var(--jj-text-muted);
        font-size: 13px;
    }

.visit-summary-id[b-s93thytaya] {
    display: flex;
    min-width: 90px;
    flex-direction: column;
    align-items: flex-end;
}

    .visit-summary-id strong[b-s93thytaya] {
        margin-top: 5px;
        color: var(--jj-accent-dark);
        font-size: 21px;
        font-weight: 740;
    }

.visit-form-panel[b-s93thytaya] {
    margin-bottom: 22px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.form-section-header[b-s93thytaya] {
    display: flex;
    padding: 22px 26px;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .form-section-header > span[b-s93thytaya] {
        display: grid;
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid var(--jj-accent-border);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
        font-size: 12px;
        font-weight: 780;
    }

    .form-section-header h2[b-s93thytaya] {
        margin: 0;
        color: var(--jj-text);
        font-size: 20px;
        font-weight: 720;
    }

    .form-section-header p[b-s93thytaya] {
        margin: 6px 0 0;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.55;
    }

.visit-form-grid[b-s93thytaya] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 26px;
    gap: 24px;
}

.form-field[b-s93thytaya] {
    min-width: 0;
}

.form-field-full[b-s93thytaya] {
    grid-column: 1 / -1;
}

.form-field label[b-s93thytaya] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-text);
    font-size: 15px;
    font-weight: 680;
}

    .form-field label > span[b-s93thytaya] {
        color: var(--jj-danger);
    }

.form-control[b-s93thytaya] {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    outline: none;
    background: var(--jj-surface);
    color: var(--jj-text);
    font-size: 15px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

    .form-control:focus[b-s93thytaya] {
        border-color: var(--jj-accent);
        box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
    }

    .form-control[b-s93thytaya]::placeholder {
        color: var(--jj-text-muted);
    }

    .form-control:disabled[b-s93thytaya] {
        cursor: wait;
        background: var(--jj-background-soft);
        opacity: 0.7;
    }

.notes-control[b-s93thytaya] {
    min-height: 240px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    line-height: 1.65;
}

.notes-help[b-s93thytaya] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 12px;
    color: var(--jj-text-muted);
    font-size: 12px;
}

.visit-system-panel[b-s93thytaya] {
    margin-bottom: 22px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

    .visit-system-panel > header[b-s93thytaya] {
        padding: 17px 22px;
        border-bottom: 1px solid var(--jj-border);
        background: var(--jj-background-soft);
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 700;
    }

.visit-system-grid[b-s93thytaya] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px;
    gap: 18px;
}

    .visit-system-grid > div[b-s93thytaya] {
        padding: 15px;
        border: 1px solid var(--jj-border);
        background: var(--jj-background-soft);
    }

    .visit-system-grid span[b-s93thytaya] {
        display: block;
        color: var(--jj-text-muted);
        font-size: 11px;
        font-weight: 720;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .visit-system-grid strong[b-s93thytaya] {
        display: block;
        margin-top: 7px;
        color: var(--jj-text);
        font-size: 14px;
        font-weight: 680;
    }

.update-visit-error[b-s93thytaya] {
    display: flex;
    margin-bottom: 22px;
    padding: 18px;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid #d6a5a5;
    background: #fff3f3;
    color: #7a3232;
}

    .update-visit-error svg[b-s93thytaya] {
        width: 23px;
        height: 23px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .update-visit-error > div[b-s93thytaya] {
        display: flex;
        flex-direction: column;
    }

    .update-visit-error strong[b-s93thytaya] {
        font-size: 15px;
        font-weight: 720;
    }

    .update-visit-error span[b-s93thytaya] {
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.55;
    }

.visit-form-actions[b-s93thytaya] {
    display: flex;
    padding: 22px 0 6px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-visit-button[b-s93thytaya],
.save-visit-button[b-s93thytaya] {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.cancel-visit-button[b-s93thytaya] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

    .cancel-visit-button:hover:not(:disabled)[b-s93thytaya] {
        background: var(--jj-background-soft);
        color: var(--jj-text);
    }

.save-visit-button[b-s93thytaya] {
    display: inline-flex;
    min-width: 190px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

    .save-visit-button:hover:not(:disabled)[b-s93thytaya] {
        opacity: 0.88;
    }

    .cancel-visit-button:disabled[b-s93thytaya],
    .save-visit-button:disabled[b-s93thytaya] {
        cursor: wait;
        opacity: 0.6;
    }

    .save-visit-button svg[b-s93thytaya] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.save-spinner[b-s93thytaya] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: edit-visit-spin-b-s93thytaya 650ms linear infinite;
}

.visit-updated-panel[b-s93thytaya] {
    display: flex;
    min-height: 480px;
    padding: 54px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

.updated-icon[b-s93thytaya] {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid #8cbea0;
    border-radius: 50%;
    background: #dff1e5;
    color: #245f3a;
}

    .updated-icon svg[b-s93thytaya] {
        width: 38px;
        height: 38px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.updated-eyebrow[b-s93thytaya] {
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.visit-updated-panel h2[b-s93thytaya] {
    margin: 13px 0 0;
    color: var(--jj-text);
    font-size: 34px;
    font-weight: 720;
}

.visit-updated-panel p[b-s93thytaya] {
    max-width: 590px;
    margin: 17px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

    .visit-updated-panel p strong[b-s93thytaya] {
        color: var(--jj-text);
    }

.updated-actions[b-s93thytaya] {
    display: flex;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.primary-updated-button[b-s93thytaya],
.secondary-updated-button[b-s93thytaya] {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.primary-updated-button[b-s93thytaya] {
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

.secondary-updated-button[b-s93thytaya] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

html[data-theme="dark"] .update-visit-error[b-s93thytaya] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

html[data-theme="dark"] .updated-icon[b-s93thytaya] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

@keyframes edit-visit-spin-b-s93thytaya {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 760px) {
    .edit-visit-header[b-s93thytaya] {
        align-items: flex-start;
        flex-direction: column;
    }

    .back-client-button[b-s93thytaya] {
        width: 100%;
    }

    .visit-summary[b-s93thytaya] {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .visit-summary-id[b-s93thytaya] {
        width: 100%;
        align-items: flex-start;
    }

    .visit-form-grid[b-s93thytaya],
    .visit-system-grid[b-s93thytaya] {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .form-field-full[b-s93thytaya] {
        grid-column: auto;
    }

    .visit-form-actions[b-s93thytaya] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cancel-visit-button[b-s93thytaya],
    .save-visit-button[b-s93thytaya] {
        width: 100%;
    }

    .updated-actions[b-s93thytaya],
    .load-error-actions[b-s93thytaya] {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

        .primary-updated-button[b-s93thytaya],
        .secondary-updated-button[b-s93thytaya],
        .load-error-actions button[b-s93thytaya] {
            width: 100%;
        }
}
/* /Features/Visits/NewVisit.razor.rz.scp.css */
.new-visit-page[b-jyok8tubdq] {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.new-visit-header[b-jyok8tubdq] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 28px;
}

.new-visit-eyebrow[b-jyok8tubdq] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-accent-dark);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.new-visit-header h1[b-jyok8tubdq] {
    margin: 0;
    color: var(--jj-text);
    font-size: clamp(40px, 4vw, 50px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.new-visit-header p[b-jyok8tubdq] {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.back-client-button[b-jyok8tubdq] {
    display: inline-flex;
    min-height: 48px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 680;
}

    .back-client-button:hover:not(:disabled)[b-jyok8tubdq] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .back-client-button:disabled[b-jyok8tubdq] {
        cursor: wait;
        opacity: 0.55;
    }

    .back-client-button svg[b-jyok8tubdq] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.new-visit-status[b-jyok8tubdq] {
    display: flex;
    min-height: 430px;
    padding: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

    .new-visit-status strong[b-jyok8tubdq] {
        margin-top: 18px;
        color: var(--jj-text);
        font-size: 19px;
    }

    .new-visit-status > span[b-jyok8tubdq] {
        max-width: 620px;
        margin-top: 8px;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.6;
    }

.new-visit-spinner[b-jyok8tubdq] {
    width: 42px;
    height: 42px;
    border: 3px solid var(--jj-border);
    border-top-color: var(--jj-accent);
    border-radius: 50%;
    animation: new-visit-spin-b-jyok8tubdq 700ms linear infinite;
}

.new-visit-load-error > svg[b-jyok8tubdq] {
    width: 42px;
    height: 42px;
    color: var(--jj-danger);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.load-error-actions[b-jyok8tubdq] {
    display: flex;
    margin-top: 24px;
    gap: 10px;
}

    .load-error-actions button[b-jyok8tubdq] {
        min-height: 46px;
        padding: 0 18px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        background: var(--jj-surface);
        color: var(--jj-text-secondary);
        font-size: 14px;
        font-weight: 680;
    }

.visit-client-summary[b-jyok8tubdq] {
    display: flex;
    margin-bottom: 22px;
    padding: 22px 24px;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.client-avatar[b-jyok8tubdq] {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
    font-size: 19px;
    font-weight: 780;
}

.visit-client-summary span[b-jyok8tubdq] {
    color: var(--jj-text-muted);
    font-size: 11px;
    font-weight: 740;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.visit-client-summary h2[b-jyok8tubdq] {
    margin: 4px 0 0;
    color: var(--jj-text);
    font-size: 23px;
    font-weight: 720;
}

.visit-client-summary p[b-jyok8tubdq] {
    margin: 5px 0 0;
    color: var(--jj-text-muted);
    font-size: 13px;
}

.visit-form-panel[b-jyok8tubdq] {
    margin-bottom: 22px;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.form-section-header[b-jyok8tubdq] {
    display: flex;
    padding: 22px 26px;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

    .form-section-header > span[b-jyok8tubdq] {
        display: grid;
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid var(--jj-accent-border);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
        font-size: 12px;
        font-weight: 780;
    }

    .form-section-header h2[b-jyok8tubdq] {
        margin: 0;
        color: var(--jj-text);
        font-size: 20px;
        font-weight: 720;
    }

    .form-section-header p[b-jyok8tubdq] {
        margin: 6px 0 0;
        color: var(--jj-text-muted);
        font-size: 14px;
        line-height: 1.55;
    }

.visit-form-grid[b-jyok8tubdq] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 26px;
    gap: 24px;
}

.form-field[b-jyok8tubdq] {
    min-width: 0;
}

.form-field-full[b-jyok8tubdq] {
    grid-column: 1 / -1;
}

.form-field label[b-jyok8tubdq] {
    display: block;
    margin-bottom: 9px;
    color: var(--jj-text);
    font-size: 15px;
    font-weight: 680;
}

    .form-field label > span[b-jyok8tubdq] {
        color: var(--jj-danger);
    }

.form-control[b-jyok8tubdq] {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    outline: none;
    background: var(--jj-surface);
    color: var(--jj-text);
    font-size: 15px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

    .form-control:focus[b-jyok8tubdq] {
        border-color: var(--jj-accent);
        box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
    }

    .form-control[b-jyok8tubdq]::placeholder {
        color: var(--jj-text-muted);
    }

    .form-control:disabled[b-jyok8tubdq] {
        cursor: wait;
        background: var(--jj-background-soft);
        opacity: 0.7;
    }

.notes-control[b-jyok8tubdq] {
    min-height: 240px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    line-height: 1.65;
}

.notes-help[b-jyok8tubdq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 12px;
    color: var(--jj-text-muted);
    font-size: 12px;
}

.create-visit-error[b-jyok8tubdq] {
    display: flex;
    margin-bottom: 22px;
    padding: 18px;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid #d6a5a5;
    background: #fff3f3;
    color: #7a3232;
}

    .create-visit-error svg[b-jyok8tubdq] {
        width: 23px;
        height: 23px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .create-visit-error > div[b-jyok8tubdq] {
        display: flex;
        flex-direction: column;
    }

    .create-visit-error strong[b-jyok8tubdq] {
        font-size: 15px;
        font-weight: 720;
    }

    .create-visit-error span[b-jyok8tubdq] {
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.55;
    }

.visit-form-actions[b-jyok8tubdq] {
    display: flex;
    padding: 22px 0 6px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-visit-button[b-jyok8tubdq],
.save-visit-button[b-jyok8tubdq] {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.cancel-visit-button[b-jyok8tubdq] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

    .cancel-visit-button:hover:not(:disabled)[b-jyok8tubdq] {
        background: var(--jj-background-soft);
        color: var(--jj-text);
    }

.save-visit-button[b-jyok8tubdq] {
    display: inline-flex;
    min-width: 190px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

    .save-visit-button:hover:not(:disabled)[b-jyok8tubdq] {
        opacity: 0.88;
    }

    .cancel-visit-button:disabled[b-jyok8tubdq],
    .save-visit-button:disabled[b-jyok8tubdq] {
        cursor: wait;
        opacity: 0.6;
    }

    .save-visit-button svg[b-jyok8tubdq] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.save-spinner[b-jyok8tubdq] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: new-visit-spin-b-jyok8tubdq 650ms linear infinite;
}

.visit-created-panel[b-jyok8tubdq] {
    display: flex;
    min-height: 480px;
    padding: 54px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
    text-align: center;
}

.created-icon[b-jyok8tubdq] {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid #8cbea0;
    border-radius: 50%;
    background: #dff1e5;
    color: #245f3a;
}

    .created-icon svg[b-jyok8tubdq] {
        width: 38px;
        height: 38px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.created-eyebrow[b-jyok8tubdq] {
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.visit-created-panel h2[b-jyok8tubdq] {
    margin: 13px 0 0;
    color: var(--jj-text);
    font-size: 34px;
    font-weight: 720;
}

.visit-created-panel p[b-jyok8tubdq] {
    max-width: 590px;
    margin: 17px 0 0;
    color: var(--jj-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

    .visit-created-panel p strong[b-jyok8tubdq] {
        color: var(--jj-text);
    }

.created-actions[b-jyok8tubdq] {
    display: flex;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.primary-action-button[b-jyok8tubdq],
.secondary-action-button[b-jyok8tubdq] {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
}

.primary-action-button[b-jyok8tubdq] {
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

.secondary-action-button[b-jyok8tubdq] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

html[data-theme="dark"] .create-visit-error[b-jyok8tubdq] {
    border-color: #684044;
    background: #2b1d1f;
    color: #e9a3a8;
}

html[data-theme="dark"] .created-icon[b-jyok8tubdq] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

@keyframes new-visit-spin-b-jyok8tubdq {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 760px) {
    .new-visit-header[b-jyok8tubdq] {
        align-items: flex-start;
        flex-direction: column;
    }

    .back-client-button[b-jyok8tubdq] {
        width: 100%;
    }

    .visit-form-grid[b-jyok8tubdq] {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .form-field-full[b-jyok8tubdq] {
        grid-column: auto;
    }

    .visit-form-actions[b-jyok8tubdq] {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cancel-visit-button[b-jyok8tubdq],
    .save-visit-button[b-jyok8tubdq] {
        width: 100%;
    }

    .created-actions[b-jyok8tubdq],
    .load-error-actions[b-jyok8tubdq] {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

        .primary-action-button[b-jyok8tubdq],
        .secondary-action-button[b-jyok8tubdq],
        .load-error-actions button[b-jyok8tubdq] {
            width: 100%;
        }
}
/* /Features/Visits/Visits.razor.rz.scp.css */
.visits-page[b-f4yr0k8kg0] {
    width: 100%;
}

/* =========================================================
   Encabezado principal
   ========================================================= */

.visits-header[b-f4yr0k8kg0] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 28px;
}

.visits-eyebrow[b-f4yr0k8kg0] {
    display: block;
    margin-bottom: 10px;
    color: var(--jj-accent-dark);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.visits-header h1[b-f4yr0k8kg0] {
    margin: 0;
    color: var(--jj-text);
    font-size: clamp(42px, 3.5vw, 50px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.visits-header p[b-f4yr0k8kg0] {
    max-width: 760px;
    margin: 13px 0 0;
    color: var(--jj-text-secondary);
    font-size: 17px;
    line-height: 1.65;
}

.visits-clients-button[b-f4yr0k8kg0] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid var(--jj-sidebar);
    border-radius: 2px;
    background: var(--jj-sidebar);
    color: #ffffff;
    font-size: 15px;
    font-weight: 680;
    white-space: nowrap;
    transition: opacity 150ms ease, transform 150ms ease;
}

    .visits-clients-button:hover[b-f4yr0k8kg0] {
        opacity: 0.9;
        transform: translateY(-1px);
    }

/* =========================================================
   Métricas
   ========================================================= */

.visits-metrics[b-f4yr0k8kg0] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
    gap: 16px;
}

.visit-metric-card[b-f4yr0k8kg0] {
    position: relative;
    min-height: 142px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

    .visit-metric-card[b-f4yr0k8kg0]::before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--jj-accent);
        content: "";
    }

    .visit-metric-card span[b-f4yr0k8kg0] {
        display: block;
        color: var(--jj-text-muted);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .visit-metric-card strong[b-f4yr0k8kg0] {
        display: block;
        margin-top: 14px;
        color: var(--jj-text);
        font-size: 34px;
        font-weight: 720;
        line-height: 1;
    }

    .visit-metric-card small[b-f4yr0k8kg0] {
        display: block;
        margin-top: 11px;
        color: var(--jj-text-secondary);
        font-size: 14px;
        line-height: 1.4;
    }

/* =========================================================
   Panel principal
   ========================================================= */

.visits-panel[b-f4yr0k8kg0] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: var(--jj-shadow);
}

.visits-panel-header[b-f4yr0k8kg0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 108px;
    padding: 25px 27px;
    gap: 24px;
    border-bottom: 1px solid var(--jj-border);
}

    .visits-panel-header h2[b-f4yr0k8kg0] {
        margin: 0;
        color: var(--jj-text);
        font-size: 22px;
        font-weight: 700;
    }

    .visits-panel-header p[b-f4yr0k8kg0] {
        margin: 8px 0 0;
        color: var(--jj-text-muted);
        font-size: 15px;
        line-height: 1.55;
    }

.visits-reload-button[b-f4yr0k8kg0] {
    min-width: 110px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text);
    font-size: 15px;
    font-weight: 650;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

    .visits-reload-button:hover:not(:disabled)[b-f4yr0k8kg0] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .visits-reload-button:disabled[b-f4yr0k8kg0] {
        cursor: default;
        opacity: 0.55;
    }

/* =========================================================
   Filtros
   ========================================================= */

.visits-filters[b-f4yr0k8kg0] {
    display: grid;
    padding: 22px;
    gap: 22px;
    border-bottom: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

.visits-preset-group[b-f4yr0k8kg0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.visits-filter-label[b-f4yr0k8kg0] {
    flex: 0 0 auto;
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.visits-preset-buttons[b-f4yr0k8kg0] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.visit-preset-button[b-f4yr0k8kg0] {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 680;
    white-space: nowrap;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

    .visit-preset-button:hover:not(:disabled)[b-f4yr0k8kg0] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .visit-preset-button.is-active[b-f4yr0k8kg0] {
        border-color: var(--jj-accent);
        background: var(--jj-surface);
        color: var(--jj-text);
        font-weight: 780;
        box-shadow: inset 0 -3px 0 var(--jj-accent);
    }

    .visit-preset-button:disabled[b-f4yr0k8kg0] {
        cursor: default;
        opacity: 0.5;
    }

.visits-date-range[b-f4yr0k8kg0] {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

    .visits-date-range label[b-f4yr0k8kg0] {
        display: grid;
        gap: 8px;
    }

        .visits-date-range label span[b-f4yr0k8kg0] {
            color: var(--jj-text-secondary);
            font-size: 14px;
            font-weight: 680;
        }

    .visits-date-range input[b-f4yr0k8kg0] {
        width: 100%;
        min-height: 46px;
        padding: 0 14px;
        border: 1px solid var(--jj-border);
        border-radius: 2px;
        outline: none;
        background: var(--jj-surface);
        color: var(--jj-text);
        font-family: inherit;
        font-size: 15px;
    }

        .visits-date-range input:focus[b-f4yr0k8kg0] {
            border-color: var(--jj-accent);
            box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
        }

        .visits-date-range input:disabled[b-f4yr0k8kg0] {
            cursor: wait;
            opacity: 0.7;
        }

.apply-range-button[b-f4yr0k8kg0] {
    min-width: 136px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--jj-sidebar);
    border-radius: 2px;
    background: var(--jj-sidebar);
    color: #ffffff;
    font-size: 14px;
    font-weight: 680;
}

    .apply-range-button:hover:not(:disabled)[b-f4yr0k8kg0] {
        opacity: 0.9;
    }

    .apply-range-button:disabled[b-f4yr0k8kg0] {
        cursor: default;
        opacity: 0.5;
    }

.visits-searchbar[b-f4yr0k8kg0] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.visits-search-field[b-f4yr0k8kg0] {
    position: relative;
    display: flex;
    align-items: center;
}

    .visits-search-field svg[b-f4yr0k8kg0] {
        position: absolute;
        left: 15px;
        width: 20px;
        height: 20px;
        color: var(--jj-text-muted);
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
    }

.visits-search-input[b-f4yr0k8kg0] {
    width: 100%;
    min-height: 46px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    outline: none;
    background: var(--jj-surface);
    color: var(--jj-text);
    font-size: 15px;
}

    .visits-search-input[b-f4yr0k8kg0]::placeholder {
        color: var(--jj-text-muted);
    }

    .visits-search-input:focus[b-f4yr0k8kg0] {
        border-color: var(--jj-accent);
        box-shadow: 0 0 0 3px rgba(179, 149, 99, 0.13);
    }

    .visits-search-input:disabled[b-f4yr0k8kg0] {
        cursor: wait;
        opacity: 0.7;
    }

.clear-visit-search-button[b-f4yr0k8kg0] {
    min-width: 100px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 14px;
    font-weight: 680;
}

    .clear-visit-search-button:hover:not(:disabled)[b-f4yr0k8kg0] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .clear-visit-search-button:disabled[b-f4yr0k8kg0] {
        cursor: default;
        opacity: 0.45;
    }

/* =========================================================
   Estados de carga y error
   ========================================================= */

.visits-status[b-f4yr0k8kg0] {
    display: flex;
    min-height: 360px;
    padding: 48px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .visits-status strong[b-f4yr0k8kg0] {
        color: var(--jj-text);
        font-size: 20px;
        font-weight: 700;
    }

    .visits-status span[b-f4yr0k8kg0] {
        max-width: 720px;
        margin-top: 10px;
        color: var(--jj-text-muted);
        font-size: 15px;
        line-height: 1.7;
    }

    .visits-status button[b-f4yr0k8kg0] {
        min-height: 48px;
        margin-top: 22px;
        padding: 0 22px;
        border: 1px solid var(--jj-sidebar);
        border-radius: 2px;
        background: var(--jj-sidebar);
        color: #ffffff;
        font-size: 15px;
        font-weight: 650;
    }

.visits-error strong[b-f4yr0k8kg0] {
    color: var(--jj-danger);
}

.visits-loading-indicator[b-f4yr0k8kg0] {
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border: 4px solid var(--jj-border);
    border-top-color: var(--jj-accent);
    border-radius: 50%;
    animation: visits-loading-b-f4yr0k8kg0 700ms linear infinite;
}

@keyframes visits-loading-b-f4yr0k8kg0 {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   Resumen del resultado
   ========================================================= */

.visits-results-summary[b-f4yr0k8kg0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 12px 22px;
    gap: 18px;
    border-bottom: 1px solid var(--jj-border-soft);
    background: var(--jj-surface);
    color: var(--jj-text-muted);
    font-size: 14px;
}

    .visits-results-summary strong[b-f4yr0k8kg0] {
        color: var(--jj-text);
        font-weight: 720;
    }

/* =========================================================
   Tabla
   ========================================================= */

.visits-table-container[b-f4yr0k8kg0] {
    width: 100%;
    overflow-x: auto;
}

.visits-table[b-f4yr0k8kg0] {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
}

    .visits-table th[b-f4yr0k8kg0],
    .visits-table td[b-f4yr0k8kg0] {
        border-bottom: 1px solid var(--jj-border-soft);
        text-align: left;
        vertical-align: top;
    }

    .visits-table th[b-f4yr0k8kg0] {
        padding: 15px 20px;
        background: var(--jj-background-soft);
        color: var(--jj-text-secondary);
        font-size: 13px;
        font-weight: 750;
        letter-spacing: 0.045em;
        text-transform: uppercase;
    }

    .visits-table td[b-f4yr0k8kg0] {
        padding: 18px 20px;
        color: var(--jj-text-secondary);
        font-size: 14px;
        line-height: 1.55;
    }

    .visits-table tbody tr[b-f4yr0k8kg0] {
        transition: background-color 150ms ease;
    }

        .visits-table tbody tr:hover[b-f4yr0k8kg0] {
            background: var(--jj-background-soft);
        }

.visit-date-cell[b-f4yr0k8kg0] {
    width: 190px;
    min-width: 190px;
}

    .visit-date-cell strong[b-f4yr0k8kg0] {
        display: block;
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.45;
    }

.visit-date-status[b-f4yr0k8kg0] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    margin-top: 10px;
    padding: 0 11px;
    border: 1px solid;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

    .visit-date-status.is-past[b-f4yr0k8kg0] {
        border-color: #c8cbd0;
        background: #eef0f2;
        color: #656b72;
    }

    .visit-date-status.is-today[b-f4yr0k8kg0] {
        border-color: #b79861;
        background: #f2e7d2;
        color: #72511e;
    }

    .visit-date-status.is-tomorrow[b-f4yr0k8kg0] {
        border-color: #7da58a;
        background: #e2efe6;
        color: #2c6240;
    }

    .visit-date-status.is-upcoming[b-f4yr0k8kg0] {
        border-color: #a9b4c2;
        background: #e8edf3;
        color: #40566e;
    }


/* =========================================================
   Estado real de la visita
   Scheduled / Completed / Cancelled / NoShow
   ========================================================= */

.visit-status-cell[b-f4yr0k8kg0] {
    width: 155px;
    min-width: 155px;
}

.visit-status-badge[b-f4yr0k8kg0] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 780;
    line-height: 1;
    letter-spacing: 0.015em;
    white-space: nowrap;
}

    /* Programada */
    .visit-status-badge.is-scheduled[b-f4yr0k8kg0] {
        border-color: #b99861;
        background: #f3e6cf;
        color: #694817;
    }

    /* Completada */
    .visit-status-badge.is-completed[b-f4yr0k8kg0] {
        border-color: #72a080;
        background: #deede2;
        color: #235b36;
    }

    /* Cancelada */
    .visit-status-badge.is-cancelled[b-f4yr0k8kg0] {
        border-color: #c77d7d;
        background: #f5dddd;
        color: #842d2d;
    }

    /* No asistió */
    .visit-status-badge.is-noshow[b-f4yr0k8kg0] {
        border-color: #8d819d;
        background: #e8e3ee;
        color: #4c3d60;
    }

    /* Estado desconocido */
    .visit-status-badge.is-unknown[b-f4yr0k8kg0] {
        border-color: #aeb2b7;
        background: #eceeef;
        color: #5e646b;
    }


.visit-detail-grid .visit-current-status[b-f4yr0k8kg0] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .visit-detail-grid .visit-current-status > .visit-status-badge[b-f4yr0k8kg0] {
        display: inline-flex;
        width: auto;
        min-width: 110px;
        min-height: 38px;
        margin-top: 10px;
        padding: 0 14px;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }




.visit-client-cell[b-f4yr0k8kg0] {
    width: 210px;
    min-width: 210px;
}

    .visit-client-cell strong[b-f4yr0k8kg0] {
        display: block;
        color: var(--jj-text);
        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;
    }

    .visit-client-cell span[b-f4yr0k8kg0] {
        display: block;
        margin-top: 5px;
        color: var(--jj-text-muted);
        font-size: 13px;
    }

.visit-contact-cell[b-f4yr0k8kg0] {
    width: 210px;
    min-width: 210px;
}

    .visit-contact-cell span[b-f4yr0k8kg0] {
        display: block;
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 650;
    }

    .visit-contact-cell small[b-f4yr0k8kg0] {
        display: block;
        margin-top: 7px;
        color: var(--jj-text-muted);
        font-size: 13px;
        overflow-wrap: anywhere;
    }

.visit-notes-cell[b-f4yr0k8kg0] {
    min-width: 320px;
}

    .visit-notes-cell p[b-f4yr0k8kg0] {
        max-width: 620px;
        margin: 0;
        color: var(--jj-text-secondary);
        font-size: 14px;
        line-height: 1.7;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .visit-notes-cell .empty-visit-notes[b-f4yr0k8kg0] {
        color: var(--jj-text-muted);
        font-style: italic;
    }

.preparation-status[b-f4yr0k8kg0] {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-top: 11px;
    padding: 0 11px;
    border: 1px solid;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 730;
}

    .preparation-status.has-preparation[b-f4yr0k8kg0] {
        border-color: var(--jj-accent-border);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
    }

    .preparation-status.no-preparation[b-f4yr0k8kg0] {
        border-color: var(--jj-border);
        background: var(--jj-background-soft);
        color: var(--jj-text-muted);
    }

.visit-actions-cell[b-f4yr0k8kg0] {
    display: flex;
    min-width: 370px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.visit-detail-button[b-f4yr0k8kg0],
.visit-client-button[b-f4yr0k8kg0],
.visit-edit-button[b-f4yr0k8kg0] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}


    .visit-detail-button:hover[b-f4yr0k8kg0],
    .visit-client-button:hover[b-f4yr0k8kg0],
    .visit-edit-button:hover[b-f4yr0k8kg0] {
        border-color: var(--jj-accent);
        background: var(--jj-accent-soft);
        color: var(--jj-accent-dark);
        transform: translateY(-1px);
    }

    .visit-detail-button:active[b-f4yr0k8kg0],
    .visit-client-button:active[b-f4yr0k8kg0],
    .visit-edit-button:active[b-f4yr0k8kg0] {
        transform: translateY(0);
    }



/* =========================================================
   Modal de detalle
   ========================================================= */

.visit-modal-backdrop[b-f4yr0k8kg0] {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(10, 12, 14, 0.64);
    backdrop-filter: blur(4px);
}

.visit-detail-modal[b-f4yr0k8kg0] {
    width: min(780px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.visit-detail-modal-header[b-f4yr0k8kg0] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 25px 26px;
    gap: 24px;
    border-bottom: 1px solid var(--jj-border);
}

    .visit-detail-modal-header span[b-f4yr0k8kg0] {
        display: block;
        margin-bottom: 7px;
        color: var(--jj-accent-dark);
        font-size: 12px;
        font-weight: 760;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }

    .visit-detail-modal-header h2[b-f4yr0k8kg0] {
        margin: 0;
        color: var(--jj-text);
        font-size: 26px;
        font-weight: 720;
        line-height: 1.25;
    }

.visit-modal-close[b-f4yr0k8kg0] {
    display: grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--jj-border);
    border-radius: 2px;
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

    .visit-modal-close:hover[b-f4yr0k8kg0] {
        background: var(--jj-background-soft);
        color: var(--jj-text);
    }

    .visit-modal-close svg[b-f4yr0k8kg0] {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

.visit-detail-modal-content[b-f4yr0k8kg0] {
    padding: 26px;
}

.visit-detail-grid[b-f4yr0k8kg0] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

    .visit-detail-grid > div[b-f4yr0k8kg0] {
        min-height: 92px;
        padding: 17px;
        border: 1px solid var(--jj-border-soft);
        background: var(--jj-background-soft);
    }

    .visit-detail-grid span[b-f4yr0k8kg0] {
        display: block;
        color: var(--jj-text-muted);
        font-size: 13px;
        font-weight: 650;
    }

    .visit-detail-grid strong[b-f4yr0k8kg0] {
        display: block;
        margin-top: 9px;
        color: var(--jj-text);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

.visit-preparation-detail[b-f4yr0k8kg0] {
    margin-top: 20px;
}

    .visit-preparation-detail > span[b-f4yr0k8kg0] {
        display: block;
        margin-bottom: 10px;
        color: var(--jj-accent-dark);
        font-size: 13px;
        font-weight: 760;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .visit-preparation-detail p[b-f4yr0k8kg0] {
        min-height: 150px;
        margin: 0;
        padding: 21px;
        border: 1px solid var(--jj-border);
        background: var(--jj-background-soft);
        color: var(--jj-text-secondary);
        font-size: 15px;
        line-height: 1.8;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

.visit-detail-modal-footer[b-f4yr0k8kg0] {
    display: flex;
    justify-content: flex-end;
    padding: 18px 26px;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--jj-border);
    background: var(--jj-background-soft);
}

.modal-client-button[b-f4yr0k8kg0],
.modal-edit-button[b-f4yr0k8kg0],
.modal-close-button[b-f4yr0k8kg0] {
    min-height: 43px;
    padding: 0 18px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 680;
}

.modal-client-button[b-f4yr0k8kg0] {
    border: 1px solid var(--jj-accent-border);
    background: var(--jj-accent-soft);
    color: var(--jj-accent-dark);
}

.modal-edit-button[b-f4yr0k8kg0] {
    border: 1px solid var(--jj-sidebar);
    background: var(--jj-sidebar);
    color: #ffffff;
}

.modal-close-button[b-f4yr0k8kg0] {
    border: 1px solid var(--jj-border);
    background: var(--jj-surface);
    color: var(--jj-text-secondary);
}

.modal-client-button:hover[b-f4yr0k8kg0] {
    border-color: var(--jj-accent);
    background: var(--jj-accent);
    color: #151719;
}

.modal-edit-button:hover[b-f4yr0k8kg0] {
    opacity: 0.88;
}

.modal-close-button:hover[b-f4yr0k8kg0] {
    background: var(--jj-surface);
    color: var(--jj-text);
}

/* =========================================================
   Tema oscuro
   ========================================================= */

html[data-theme="dark"] .visit-date-status.is-past[b-f4yr0k8kg0] {
    border-color: #50565d;
    background: #292d31;
    color: #bec3c9;
}

html[data-theme="dark"] .visit-date-status.is-today[b-f4yr0k8kg0] {
    border-color: #8e7141;
    background: #3c301e;
    color: #e5c790;
}

html[data-theme="dark"] .visit-date-status.is-tomorrow[b-f4yr0k8kg0] {
    border-color: #487b5a;
    background: #183426;
    color: #8ed0a5;
}

html[data-theme="dark"] .visit-date-status.is-upcoming[b-f4yr0k8kg0] {
    border-color: #4d6278;
    background: #202f3d;
    color: #a9c5dd;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
    .visits-metrics[b-f4yr0k8kg0] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .visits-preset-group[b-f4yr0k8kg0] {
        align-items: flex-start;
        flex-direction: column;
    }

    .visits-preset-buttons[b-f4yr0k8kg0] {
        justify-content: flex-start;
    }
}

@media (max-width: 850px) {
    .visits-header[b-f4yr0k8kg0] {
        align-items: flex-start;
        flex-direction: column;
    }

    .visits-clients-button[b-f4yr0k8kg0] {
        width: 100%;
    }

    .visits-panel-header[b-f4yr0k8kg0] {
        align-items: flex-start;
        flex-direction: column;
    }

    .visits-reload-button[b-f4yr0k8kg0] {
        width: 100%;
    }

    .visits-date-range[b-f4yr0k8kg0] {
        grid-template-columns: 1fr 1fr;
    }

    .apply-range-button[b-f4yr0k8kg0] {
        grid-column: 1 / -1;
        width: 100%;
    }

    .visit-detail-grid[b-f4yr0k8kg0] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .visits-metrics[b-f4yr0k8kg0] {
        grid-template-columns: 1fr;
    }

    .visits-header h1[b-f4yr0k8kg0] {
        font-size: 40px;
    }

    .visits-filters[b-f4yr0k8kg0] {
        padding: 18px;
    }

    .visits-preset-buttons[b-f4yr0k8kg0] {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .visit-preset-button[b-f4yr0k8kg0] {
        width: 100%;
    }

    .visits-date-range[b-f4yr0k8kg0] {
        grid-template-columns: 1fr;
    }

    .apply-range-button[b-f4yr0k8kg0] {
        grid-column: auto;
    }

    .visits-searchbar[b-f4yr0k8kg0] {
        grid-template-columns: 1fr;
    }

    .clear-visit-search-button[b-f4yr0k8kg0] {
        width: 100%;
    }

    .visits-results-summary[b-f4yr0k8kg0] {
        align-items: flex-start;
        flex-direction: column;
    }

    .visit-modal-backdrop[b-f4yr0k8kg0] {
        padding: 12px;
    }

    .visit-detail-modal[b-f4yr0k8kg0] {
        max-height: calc(100vh - 24px);
    }

    .visit-detail-modal-header[b-f4yr0k8kg0],
    .visit-detail-modal-content[b-f4yr0k8kg0] {
        padding: 20px;
    }

    .visit-detail-modal-footer[b-f4yr0k8kg0] {
        padding: 16px 20px;
        flex-direction: column;
    }

    .modal-client-button[b-f4yr0k8kg0],
    .modal-edit-button[b-f4yr0k8kg0],
    .modal-close-button[b-f4yr0k8kg0] {
        width: 100%;
    }
}
/* /Layout/AuthLayout.razor.rz.scp.css */
.auth-layout[b-zfu0ixnhpd] {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient( circle at 18% 18%, rgba(179, 149, 99, 0.14), transparent 32% ), #151719;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-idrdn234d5] {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    background: var(--jj-background);
}

.app-sidebar[b-idrdn234d5] {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 270px;
    height: 100vh;
    overflow: hidden;
    background: var(--jj-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-main[b-idrdn234d5] {
    min-width: 0;
    min-height: 100vh;
    background: var(--jj-background);
}

.app-content[b-idrdn234d5] {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px;
}

.sidebar-overlay[b-idrdn234d5] {
    display: none;
}

@media (max-width: 1100px) {
    .app-shell[b-idrdn234d5] {
        grid-template-columns: 238px minmax(0, 1fr);
    }

    .app-sidebar[b-idrdn234d5] {
        width: 238px;
    }

    .app-content[b-idrdn234d5] {
        padding: 26px;
    }
}

@media (max-width: 900px) {
    .app-shell[b-idrdn234d5] {
        display: block;
    }

    .app-sidebar[b-idrdn234d5] {
        position: fixed;
        inset: 0 auto 0 0;
        width: 270px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        box-shadow: 18px 0 50px rgba(0, 0, 0, 0.22);
    }

        .app-sidebar.is-open[b-idrdn234d5] {
            transform: translateX(0);
        }

    .sidebar-overlay[b-idrdn234d5] {
        position: fixed;
        inset: 0;
        z-index: 40;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(16, 18, 21, 0.52);
        backdrop-filter: blur(2px);
    }

    .app-content[b-idrdn234d5] {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .app-content[b-idrdn234d5] {
        padding: 18px;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.sidebar-content[b-f5dn70l0bz] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 16px 18px;
    background: radial-gradient( circle at 10% 0%, rgba(179, 149, 99, 0.13), transparent 28% ), var(--jj-sidebar);
    color: #ffffff;
}

.brand[b-f5dn70l0bz] {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 4px 8px 24px;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark[b-f5dn70l0bz] {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(216, 190, 145, 0.44);
    background: rgba(179, 149, 99, 0.12);
    color: var(--jj-accent-light);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.brand-copy[b-f5dn70l0bz] {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

    .brand-copy strong[b-f5dn70l0bz] {
        color: #ffffff;
        font-size: 18px;
        font-weight: 690;
        letter-spacing: -0.02em;
    }

    .brand-copy span[b-f5dn70l0bz] {
        margin-top: 1px;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.52);
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.nav-menu[b-f5dn70l0bz] {
    flex: 1;
    padding-top: 22px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.nav-section-title[b-f5dn70l0bz] {
    padding: 0 12px 9px;
    color: rgba(255, 255, 255, 0.36);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-section-secondary[b-f5dn70l0bz] {
    margin-top: 24px;
}

.nav-item[b-f5dn70l0bz] {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    margin-bottom: 5px;
    padding: 0 13px;
    gap: 13px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-weight: 520;
    text-align: left;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

    .nav-item svg[b-f5dn70l0bz] {
        width: 19px;
        height: 19px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.65px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .nav-item:hover[b-f5dn70l0bz] {
        background: rgba(255, 255, 255, 0.055);
        color: #ffffff;
    }

    .nav-item.active[b-f5dn70l0bz] {
        border-left-color: var(--jj-accent);
        background: rgba(179, 149, 99, 0.13);
        color: var(--jj-accent-light);
    }

.nav-item-disabled[b-f5dn70l0bz] {
    cursor: default;
    opacity: 1;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 16px;
    font-weight: 570;
    line-height: 1.4;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.55);
}

    .nav-item-disabled svg[b-f5dn70l0bz] {
        color: rgba(255, 255, 255, 0.48);
    }

    .nav-item-disabled:hover[b-f5dn70l0bz],
    .nav-item-disabled:focus[b-f5dn70l0bz],
    .nav-item-disabled:active[b-f5dn70l0bz] {
        border-left-color: transparent;
        background: transparent;
        color: rgba(255, 255, 255, 0.55);
        -webkit-text-fill-color: rgba(255, 255, 255, 0.55);
    }

.sidebar-footer[b-f5dn70l0bz] {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.environment-status[b-f5dn70l0bz] {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 10px;
}

.environment-dot[b-f5dn70l0bz] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #65b982;
    box-shadow: 0 0 0 4px rgba(101, 185, 130, 0.12);
}

.environment-status div[b-f5dn70l0bz] {
    display: flex;
    flex-direction: column;
}

.environment-status strong[b-f5dn70l0bz] {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 620;
}

.environment-status span:last-child[b-f5dn70l0bz] {
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
}


/* =========================================================
   JJColor — Sidebar typography correction
   ========================================================= */
.brand-copy strong[b-f5dn70l0bz] {
    font-size: 21px;
    line-height: 1.25;
}

.brand-copy span[b-f5dn70l0bz] {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.nav-section-title[b-f5dn70l0bz] {
    padding-top: 4px;
    padding-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.13em;
}

.nav-item[b-f5dn70l0bz] {
    min-height: 54px;
    margin-bottom: 7px;
    padding-right: 15px;
    padding-left: 15px;
    gap: 16px;
    font-size: 16px;
    font-weight: 570;
}

    .nav-item svg[b-f5dn70l0bz] {
        width: 21px;
        height: 21px;
    }

.environment-status strong[b-f5dn70l0bz] {
    font-size: 14px;
}

.environment-status span:last-child[b-f5dn70l0bz] {
    margin-top: 2px;
    font-size: 12px;
}

/* =========================================================
   Eliminar subrayado de los NavLink del sidebar
   ========================================================= */

[b-f5dn70l0bz] a.nav-item,
[b-f5dn70l0bz] a.nav-item:link,
[b-f5dn70l0bz] a.nav-item:visited,
[b-f5dn70l0bz] a.nav-item:hover,
[b-f5dn70l0bz] a.nav-item:active,
[b-f5dn70l0bz] a.nav-item:focus,
[b-f5dn70l0bz] a.nav-item.active,
[b-f5dn70l0bz] a.nav-item span {
    text-decoration: none !important;
}

/* =========================================================
   JJColor — Menú uniforme y más compacto
   ========================================================= */

button.nav-item[b-f5dn70l0bz],
[b-f5dn70l0bz] a.nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin: 0 0 2px 0;
    padding: 0 14px;
    gap: 14px;
    border-left-width: 3px;
    box-sizing: border-box;
    font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-decoration: none !important;
}

    /* El texto debe ser idéntico en enlaces y botones */
    button.nav-item span[b-f5dn70l0bz],
    [b-f5dn70l0bz] a.nav-item span {
        margin: 0;
        padding: 0;
        font-family: inherit;
        font-size: 18px !important;
        font-weight: 600 !important;
        line-height: 1.3;
        text-decoration: none !important;
    }

    /* Iconos idénticos */
    button.nav-item svg[b-f5dn70l0bz],
    [b-f5dn70l0bz] a.nav-item svg {
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
        margin: 0;
    }

    /* Dashboard activo */
    [b-f5dn70l0bz] a.nav-item.active {
        min-height: 50px;
        margin-bottom: 2px;
        padding: 0 14px;
        gap: 14px;
        color: #ffffff;
        font-size: 18px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

/* Opciones aún no disponibles */
button.nav-item-disabled[b-f5dn70l0bz] {
    color: rgba(255, 255, 255, 0.62);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.62);
}

/* Menos espacio antes de la segunda sección */
.nav-section-secondary[b-f5dn70l0bz] {
    margin-top: 18px;
}
