:root {
    --sc-bordo: #861f3d;
    --sc-bordo-oscuro: #551326;
    --sc-rojo: #a62845;
    --sc-crema: #f5eadc;
    --sc-arena: #d4ad79;
    --sc-tinta: #302126;
    --sc-muted: #716067;
    --sc-linea: #e4d2c5;
    --sc-superficie: #fffdfa;
    --sc-sombra: 0 18px 45px rgba(79, 19, 38, .13);
}

/* Modulo de eventos --------------------------------------------------- */
.sc-events-main {
    width: min(1480px, calc(100% - 32px));
    margin: 26px auto 60px;
}
.sc-events-hero,
.sc-events-panel {
    border: 1px solid var(--sc-linea);
    border-radius: 18px;
    background: rgba(255,253,250,.96);
    box-shadow: var(--sc-sombra);
}
.sc-events-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: clamp(22px, 4vw, 38px);
    background:
        radial-gradient(circle at 92% 15%, rgba(212,173,121,.32), transparent 18rem),
        rgba(255,253,250,.97);
}
.sc-events-hero h2 { margin: 3px 0 8px; font-size: clamp(25px, 3vw, 39px); }
.sc-events-hero p { max-width: 720px; margin: 0; color: var(--sc-muted); }
.sc-events-panel { margin-bottom: 20px; padding: 22px; }
.sc-events-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto;
    align-items: end;
    gap: 16px;
}
.sc-events-filters label,
.sc-event-form-grid label { display: grid; gap: 7px; }
.sc-events-filters input[type="search"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d8c1b5;
    border-radius: 11px;
    outline: none;
    color: var(--sc-tinta);
    font: 400 15px/1.3 "Segoe UI", Arial, sans-serif;
    background: #fffdfa;
    box-shadow: inset 0 1px 2px rgba(74,35,45,.04), 0 4px 12px rgba(79,19,38,.04);
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.sc-events-filters input[type="search"]:hover { border-color: #c8a99b; background: #fff; }
.sc-events-filters input[type="search"]:focus {
    border-color: var(--sc-bordo);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(134,31,61,.11), 0 7px 18px rgba(79,19,38,.07);
}
.sc-events-filters select { min-height: 46px; border-radius: 11px !important; }
.sc-events-section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.sc-events-section-title h2 { margin: 2px 0 0; font-size: 22px; }
.sc-events-table-panel { padding: 0; overflow: hidden; }
.sc-events-table-panel .sc-events-section-title { padding: 22px 22px 0; }
.sc-events-table { width: 100%; }
.sc-events-screen table.sc-events-table tbody td {
    padding: 12px 14px !important;
    border-bottom: 1px solid #e7d5c9 !important;
    transition: background-color .14s ease;
}
.sc-events-screen table.sc-events-table tbody tr:nth-child(odd) td {
    background: #fffdfa !important;
}
.sc-events-screen table.sc-events-table tbody tr:nth-child(even) td {
    background: #f6ece4 !important;
}
.sc-events-screen table.sc-events-table tbody tr:hover td {
    background: #f0ded2 !important;
}
.sc-events-screen table.sc-events-table tbody tr:last-child td {
    border-bottom: 0 !important;
}
.sc-events-table td strong,
.sc-events-table td small { display: block; }
.sc-events-table td small { margin-top: 4px; color: var(--sc-muted); font-size: 11px; }
.sc-events-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #6d4e11;
    background: #f5e4b9;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.sc-events-status.is-active { color: #1f633e; background: #dff2e7; }
.sc-events-status.is-inactive { color: #7b3030; background: #f5dddd; }
.sc-events-actions { white-space: nowrap; }
.sc-events-actions a { display: inline-block; margin-right: 10px; font-weight: 700; }
.sc-events-actions a[aria-disabled="true"] { color: #a8979c; pointer-events: none; }
.sc-events-message { margin-bottom: 18px; padding: 13px 16px; border-radius: 10px; font-weight: 700; }
.sc-events-message.success { color: #215c3d; background: #dff2e7; }
.sc-events-message.error { color: #792b37; background: #f8dfe4; }

/* Portal cautivo externo de UniFi. */
.sc-hotspot-form input[type="text"] { text-align: center; font-size: 24px; letter-spacing: .13em; font-weight: 750; }
.sc-hotspot-help { display: block; margin-top: 18px; color: #75685c; line-height: 1.45; }
.sc-wifi-message:empty { display: none; }
.sc-wifi-form { margin-top: 18px; }
.sc-wifi-form small { color: var(--sc-muted); font-weight: 500; }
.sc-wifi-empty { padding: 26px !important; color: var(--sc-muted); text-align: center; }
.sc-wifi-vouchers-body td:first-child strong { white-space: nowrap; letter-spacing: .04em; }
.sc-wifi-list .sc-events-actions { min-width: 150px; }
.sc-event-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}
.sc-event-form-grid .is-wide { grid-column: span 2; }
.sc-events-screen .sc-event-form-grid input[type="time"] {
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid #d8c1b5 !important;
    border-radius: 11px !important;
    color: var(--sc-tinta) !important;
    font: 400 15px/1.3 "Segoe UI", Arial, sans-serif !important;
    background: #fff !important;
    box-sizing: border-box;
}
.sc-events-screen .sc-event-form-grid input[type="time"]:focus {
    border-color: var(--sc-bordo) !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(134,31,61,.11) !important;
}
.sc-event-check { display: flex !important; align-items: center; align-self: end; min-height: 38px; grid-template-columns: auto 1fr; }
.sc-event-check input { min-height: 0 !important; }
.sc-event-gift-toggle { align-self: auto; margin-bottom: 18px; font-weight: 800; }
.sc-event-gift-fields[hidden] { display: none !important; }
.sc-event-form-actions { display: flex; justify-content: flex-end; gap: 12px; position: sticky; bottom: 12px; padding: 14px; border-radius: 14px; background: rgba(255,250,244,.94); box-shadow: 0 10px 35px rgba(79,19,38,.14); backdrop-filter: blur(8px); }

/* Gestion de invitados ----------------------------------------------- */
.sc-guests-hero { padding-block: 25px; }
.sc-guest-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.sc-guest-stats article {
    padding: 18px 20px;
    border: 1px solid var(--sc-linea);
    border-radius: 15px;
    background: rgba(255,253,250,.96);
    box-shadow: 0 10px 28px rgba(79,19,38,.08);
}
.sc-guest-stats span,
.sc-guest-stats strong { display: block; }
.sc-guest-stats span { margin-bottom: 6px; color: var(--sc-muted); font-size: 13px; font-weight: 700; }
.sc-guest-stats strong { color: var(--sc-bordo-oscuro); font-size: 25px; }
.sc-guest-form-panel { scroll-margin-top: 18px; }
.sc-guest-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc-guest-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #ccb5aa;
    border-radius: 10px;
    color: var(--sc-tinta);
    background: #fffdfa;
    font-weight: 700;
    text-decoration: none;
}
.sc-inline-form { display: inline; margin: 0; }
.sc-link-danger {
    display: inline;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    color: #9b2d43;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-weight: 700;
}
.sc-link-danger:hover { color: #65182c; background: transparent; box-shadow: none; }
.sc-guests-table tr.is-disabled td { color: #96878b; opacity: .72; }
.sc-guests-table th:nth-child(1) { min-width: 210px; }
.sc-guests-table th:nth-child(2) { min-width: 190px; }

/* Acceso SaaS del cliente ------------------------------------------- */
.sc-access-intro > p { margin: -6px 0 20px; color: var(--sc-muted); }
.sc-access-table th:nth-child(1) { min-width: 190px; }
.sc-access-table th:nth-child(2) { min-width: 210px; }
.sc-access-table th:nth-child(3) { min-width: 250px; }
.sc-access-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-access-badges span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #5d2637;
    background: #f3e4e8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.sc-access-form-grid { align-items: start; margin-bottom: 20px; }
.sc-access-form-grid label { align-content: start; }
.sc-events-screen .sc-access-form-grid input[type="text"],
.sc-events-screen .sc-access-form-grid input[type="email"],
.sc-events-screen .sc-access-form-grid input[type="tel"] {
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
}
.sc-access-form-grid label small { display: block; min-height: 16px; margin-top: 0; color: var(--sc-muted); font-weight: 400; }
.sc-access-permissions {
    display: grid;
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--sc-linea);
    border-radius: 13px;
    background: #fffdfa;
}
.sc-access-permissions legend { padding: 0 8px; color: var(--sc-bordo-oscuro); font-weight: 800; }
.sc-access-permissions .sc-event-check { align-self: center; margin: 0; }
.sc-api-credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    border-color: #c9ad71;
    background: linear-gradient(145deg,#fffaf0,#f2e5c9);
}
.sc-api-credentials > div,.sc-api-credentials > button { grid-column: 1 / -1; }
.sc-api-credentials h2 { margin: 3px 0 6px; }
.sc-api-credentials p { margin: 0; color: var(--sc-muted); }
.sc-api-credentials label { display: grid; gap: 7px; font-weight: 700; }
.sc-api-credentials input { width: 100%; min-height: 48px; box-sizing: border-box; font-family: Consolas,"Courier New",monospace; }
.sc-api-credentials #api-key { font-size: 12px; }
.sc-api-credentials button { min-height: 48px; }
.sc-operator-table th:nth-child(1) { min-width: 180px; }
.sc-operator-table th:nth-child(2) { min-width: 180px; }
.sc-operator-table th:last-child { min-width: 230px; }
.sc-operator-table code { color: var(--sc-bordo-oscuro); font-weight: 700; }
.sc-activation-link {
    display: grid;
    grid-template-columns: minmax(260px,1fr) auto;
    align-items: end;
    gap: 14px;
}
.sc-activation-link label { display: grid; gap: 7px; }
.sc-activation-link input { width: 100%; min-height: 46px; box-sizing: border-box; }
.sc-activation-link button { min-height: 46px; }

/* Portal externo de clientes --------------------------------------- */
body.sc-portal-screen,
body.sc-portal-dashboard,
body.sc-portal-public {
    --sc-bordo: #8c622d;
    --sc-bordo-oscuro: #2b2a28;
    --sc-rojo: #a77c43;
    --sc-crema: #e5d5b1;
    --sc-arena: #bea36d;
    --sc-tinta: #231f20;
    --sc-muted: #6f6658;
    --sc-linea: #ddcca7;
    --sc-superficie: #fffaf0;
    --sc-sombra: 0 18px 45px rgba(43,42,40,.14);
    color: var(--sc-tinta);
    background:
        linear-gradient(45deg,transparent 47%,rgba(140,98,45,.035) 47% 53%,transparent 53%) 0 0 / 54px 54px,
        radial-gradient(circle at 88% 8%,rgba(190,163,109,.34),transparent 28rem),
        linear-gradient(135deg,#fffdf8 0%,#f3ead8 62%,#e5d5b1 100%) !important;
}
body.sc-portal-screen::before,
body.sc-portal-dashboard::before,
body.sc-portal-public::before { background: linear-gradient(90deg,#2b2a28 0 38%,#bea36d 38% 82%,#8c622d 82%) !important; }
.sc-portal-dashboard table.sc-events-table tbody tr:nth-child(odd) td {
    background: #fffaf0 !important;
}
.sc-portal-dashboard table.sc-events-table tbody tr:nth-child(even) td {
    background: #f4ead5 !important;
}
.sc-portal-dashboard table.sc-events-table tbody tr:hover td {
    background: #eadbb9 !important;
}
.sc-portal-screen {
    min-height: 100vh;
    background:
        radial-gradient(circle at 88% 12%, rgba(212,173,121,.24), transparent 24rem),
        repeating-linear-gradient(45deg, rgba(134,31,61,.025) 0, rgba(134,31,61,.025) 4px, transparent 4px, transparent 36px),
        #fbf5ee;
}
.sc-portal-main { width: min(560px,calc(100% - 28px)); margin: 0 auto; padding: 50px 0; }
.sc-portal-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 24px; }
.sc-portal-brand img { width: auto; height: 54px; }
.sc-portal-brand img.sc-salones-logo { width: 210px; height: 148px; object-fit: contain; }
.sc-portal-brand div { display: grid; color: var(--sc-bordo-oscuro); }
.sc-portal-brand strong { font-size: 20px; }
.sc-portal-brand span { color: var(--sc-muted); font-size: 13px; }
.sc-portal-card {
    padding: clamp(24px,5vw,40px);
    border: 1px solid var(--sc-linea);
    border-radius: 20px;
    background: rgba(255,250,240,.97);
    box-shadow: var(--sc-sombra);
}
.sc-portal-card h1 { margin: 4px 0 10px; color: var(--sc-bordo-oscuro); font-size: clamp(27px,5vw,38px); }
.sc-portal-lead { margin: 0 0 22px; color: var(--sc-muted); }
.sc-portal-form { display: grid; gap: 17px; margin-top: 22px; }
.sc-portal-form label { display: grid; gap: 7px; }
.sc-portal-form label small { color: var(--sc-muted); font-weight: 400; }
.sc-portal-form input { width: 100%; min-height: 52px; box-sizing: border-box; }
.sc-portal-form button { min-height: 52px; }
.sc-portal-action { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; text-decoration: none; }
.sc-portal-dashboard .sc-events-main { max-width: 1260px; }
.sc-portal-events-table th:first-child { min-width: 260px; }
.sc-portal-events-table th:last-child { min-width: 280px; }
.sc-portal-manage { display: inline-flex !important; margin: 0 !important; padding: 9px 12px !important; color: #fff !important; text-decoration: none; }

/* Escritorio SaaS inspirado en la navegacion de AgendaNor ---------- */
.sc-portal-dashboard { margin: 0; padding: 0; overflow-x: hidden; background: #f3ead8; }
.sc-saas-app { min-height: 100vh; display: flex; }
.sc-saas-sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: 280px;
    padding: 31px 23px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border-right: 1px solid #ddcca7;
    background: #fffaf0;
    box-shadow: 8px 0 28px rgba(43,42,40,.08);
}
.sc-saas-brand { display: flex; align-items: center; justify-content: center; min-height: 132px; padding: 0 8px 24px; }
.sc-saas-brand img { width: 82px; height: auto; }
.sc-saas-brand img.sc-salones-logo { width: 176px; height: 124px; object-fit: contain; }
.sc-saas-brand div { min-width: 0; display: grid; }
.sc-saas-brand strong { color: var(--sc-bordo-oscuro); font-size: 13px; }
.sc-saas-brand span { color: var(--sc-muted); font-size: 10px; }
.sc-saas-sidebar nav { display: grid; gap: 5px; }
.sc-saas-sidebar nav a,
.sc-saas-sidebar nav button,
.sc-saas-sidebar-foot > a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--sc-muted);
    text-decoration: none;
    font-size: 13px;
    transition: background-color .16s,color .16s;
}
.sc-saas-sidebar nav button { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.sc-saas-sidebar nav a:hover,
.sc-saas-sidebar nav button:hover,
.sc-saas-sidebar-foot > a:hover { color: var(--sc-bordo-oscuro); background: #f2e5c9; }
.sc-saas-sidebar nav a.active,
.sc-saas-sidebar nav button.active { color: #fff8e8; background: var(--sc-bordo-oscuro); font-weight: 800; }
.sc-saas-sidebar nav a b,
.sc-saas-sidebar nav button b,
.sc-saas-sidebar-foot > a b {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--sc-bordo);
    background: #eadbb9;
    font-size: 10px;
}
.sc-saas-sidebar-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid #ddcca7; }
.sc-saas-user { display: grid; gap: 3px; padding: 0 12px; overflow: hidden; }
.sc-saas-user b,.sc-saas-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-saas-user b { color: var(--sc-bordo-oscuro); font-size: 12px; }
.sc-saas-user span { color: var(--sc-muted); font-size: 10px; }
.sc-saas-workspace { width: calc(100% - 280px); min-width: 0; margin-left: 280px; }
.sc-saas-topbar {
    min-height: 105px;
    padding: 23px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #ddcca7;
    background: rgba(255,250,240,.97);
}
.sc-saas-topbar p { margin: 0 0 6px; }
.sc-saas-topbar h1 { margin: 0; color: var(--sc-bordo-oscuro); font-size: 25px; }
.sc-saas-topbar > a { text-decoration: none; }
.sc-saas-content { padding: 25px 34px 50px; }
.sc-saas-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
    padding: clamp(22px,4vw,34px);
    border: 1px solid var(--sc-linea);
    border-radius: 18px;
    background: radial-gradient(circle at 92% 14%,rgba(212,173,121,.3),transparent 16rem),#fffdfa;
    box-shadow: 0 14px 36px rgba(79,19,38,.09);
}
.sc-saas-welcome h2 { margin: 3px 0 8px; color: var(--sc-bordo-oscuro); font-size: clamp(25px,3vw,36px); }
.sc-saas-welcome p { margin: 0; color: var(--sc-muted); }
.sc-saas-welcome-mark { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: var(--sc-bordo); font-size: 20px; font-weight: 900; box-shadow: 0 12px 25px rgba(134,31,61,.23); }
.sc-saas-menu-toggle,.sc-saas-menu-backdrop { display: none; }
.sc-saas-event { display: grid; gap: 4px; margin: -5px 7px 22px; padding: 13px; border: 1px solid #d4bd8d; border-radius: 12px; background: #f2e5c9; }
.sc-saas-event small,.sc-saas-event span { color: var(--sc-muted); font-size: 10px; }
.sc-saas-event strong { color: var(--sc-bordo-oscuro); font-size: 12px; line-height: 1.35; }
.sc-saas-current { display: grid; justify-items: end; gap: 3px; }
.sc-saas-current span { color: var(--sc-muted); font-size: 11px; }
.sc-saas-current strong { color: var(--sc-bordo); font-size: 18px; }
.sc-module-content { min-height: calc(100vh - 105px); }
.sc-module-loading { padding: 55px 25px; color: var(--sc-muted); text-align: center; font-weight: 700; }
.sc-portal-module { width: 100%; }
.sc-portal-module > .sc-module-title { margin-top: 0; }
.sc-module-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; padding: 23px 26px; border: 1px solid var(--sc-linea); border-radius: 18px; background: #fffaf0; box-shadow: 0 10px 30px rgba(43,42,40,.08); }
.sc-module-title h2 { margin: 3px 0 5px; color: var(--sc-bordo-oscuro); font-size: 28px; }
.sc-module-title p { margin: 0; color: var(--sc-muted); }
.sc-module-title > a { flex: 0 0 auto; text-decoration: none; }
.sc-saas-empty { min-width: 310px; padding: 30px 18px; display: grid; gap: 7px; text-align: center; }
.sc-saas-empty strong { color: var(--sc-bordo-oscuro); font-size: 16px; }
.sc-saas-empty span { color: var(--sc-muted); font-size: 13px; }
.sc-guest-bulk-copy {
    width: auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #cdaeb7;
    border-radius: 10px;
    color: var(--sc-bordo);
    background: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
}
.sc-guest-bulk-copy:hover { color: #fff; background: var(--sc-bordo); }
.sc-send-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #7b3030;
    background: #f5dddd;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.sc-send-status.has-send { color: #1f633e; background: #dff2e7; }
.sc-send-link {
    display: inline;
    width: auto;
    min-height: 0;
    margin: 0 9px 0 0;
    padding: 0;
    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    border-radius: 0;
    color: var(--sc-bordo) !important;
    background: transparent !important;
    box-shadow: none !important;
    font: inherit;
    font-weight: 700;
}
.sc-send-link:hover { color: var(--sc-bordo-oscuro) !important; background: transparent !important; }
.sc-send-link:disabled { color: #aa9ca0 !important; cursor: not-allowed; }
.sc-action-locked { color: var(--sc-muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.sc-report-status-summary {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    margin: 0 0 20px;
}
.sc-report-status-summary article {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--sc-linea);
    border-radius: 16px;
    background: #fffaf0;
    box-shadow: 0 10px 28px rgba(43,42,40,.07);
}
.sc-report-status-summary span { color: var(--sc-muted); font-size: 12px; font-weight: 700; }
.sc-report-status-summary strong { color: var(--sc-bordo-oscuro); font-size: 27px; }
.sc-report-filter-panel { margin-bottom: 20px; }
.sc-report-filters { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; align-items: end; gap: 14px; }
.sc-report-filters label { display: grid; gap: 7px; font-weight: 700; }
.sc-report-filters input,.sc-report-filters select { width: 100%; min-height: 46px; box-sizing: border-box; border-radius: 11px !important; }
.sc-report-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.sc-report-filter-actions button,.sc-report-filter-actions a { min-height: 46px; box-sizing: border-box; white-space: nowrap; }
.sc-report-export { background: linear-gradient(135deg,#8c622d,#2b2a28) !important; }
.sc-audit-table th:last-child { min-width: 270px; }
.sc-audit-detail { min-width: 270px; white-space: normal; }
.sc-guests-table th:nth-child(7) { min-width: 145px; }
.sc-guests-table th:nth-child(8) { min-width: 330px; }

/* Portal publico de invitaciones ------------------------------------- */
.sc-public-invite-screen { padding-bottom: 70px; }
.sc-public-invite {
    width: min(680px, calc(100% - 28px));
    margin: 24px auto 70px;
}
.sc-invite-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 0 24px;
    color: var(--sc-bordo-oscuro);
    font-size: 17px;
    font-weight: 800;
}
.sc-invite-brand img { width: 150px; max-height: 58px; object-fit: contain; }
.sc-portal-public .sc-invite-brand { padding: 14px 0 22px; }
.sc-portal-public .sc-invite-brand img.sc-salones-logo {
    width: 210px;
    height: 148px;
    max-height: none;
    object-fit: contain;
}
.sc-invite-card {
    margin-bottom: 18px;
    padding: clamp(22px, 5vw, 36px);
    border: 1px solid var(--sc-linea);
    border-radius: 22px;
    background: rgba(255,253,250,.97);
    box-shadow: var(--sc-sombra);
}
.sc-invite-event {
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 95% 5%, rgba(212,173,121,.35), transparent 15rem),
        rgba(255,253,250,.98);
}
.sc-invite-event h1 {
    margin: 7px 0 25px;
    color: var(--sc-bordo-oscuro);
    font-size: clamp(30px, 7vw, 48px);
    line-height: 1.05;
}
.sc-invite-event-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--sc-linea);
}
.sc-invite-event-data span,
.sc-invite-event-data strong { display: block; }
.sc-invite-event-data span { margin-bottom: 5px; color: var(--sc-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.sc-invite-event-data strong { font-size: 15px; }
.sc-invite-person { text-align: center; }
.sc-invite-person > p:first-child { margin: 0 0 4px; color: var(--sc-muted); }
.sc-invite-person h2 { margin: 0 0 18px; color: var(--sc-bordo-oscuro); font-size: 27px; }
.sc-invite-copy { margin: 0 auto 22px; white-space: pre-line; line-height: 1.6; }
.sc-invite-capacity {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f4e8dc;
}
.sc-invite-capacity span { color: var(--sc-muted); font-weight: 700; }
.sc-invite-capacity strong { color: var(--sc-bordo); font-size: 22px; }
.sc-invite-gift h2 { margin: 4px 0 10px; color: var(--sc-bordo-oscuro); font-size: 27px; }
.sc-invite-gift > p:not(.sc-afip-eyebrow) { margin: 0 0 22px; color: var(--sc-muted); line-height: 1.55; }
.sc-invite-gift-details { display: grid; gap: 10px; }
.sc-invite-gift-details > div {
    display: grid;
    grid-template-columns: 84px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #e2cfaa;
    border-radius: 13px;
    background: #fffaf0;
}
.sc-invite-gift-details span { color: var(--sc-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.sc-invite-gift-details strong { overflow-wrap: anywhere; color: var(--sc-bordo-oscuro); }
.sc-invite-gift-details button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d4bd8d;
    border-radius: 9px;
    color: #6e4b20;
    background: #fff;
    box-shadow: none;
    font-size: 12px;
}
.sc-invite-gift-copy { display: block; min-height: 18px; margin-top: 10px; color: #1f633e; text-align: center; font-weight: 700; }
.sc-invite-qr { text-align: center; }
.sc-invite-confirmed {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #1f633e;
    background: #dff2e7;
    font-weight: 800;
}
#invite-qr {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 18px;
    padding: 14px;
    border: 1px solid #eadbd2;
    border-radius: 15px;
    background: #fff;
}
#invite-qr img,
#invite-qr canvas { max-width: 100%; height: auto !important; }
.sc-invite-qr p { margin: 8px 0; }
.sc-invite-qr small { color: var(--sc-muted); }
.sc-invite-response h2 { margin: 4px 0 20px; font-size: 28px; }
.sc-invite-response label { display: grid; gap: 7px; margin-bottom: 18px; }
.sc-invite-response select { width: 100%; min-height: 52px; border-radius: 11px !important; }
.sc-invite-response-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.sc-invite-response-actions button { min-height: 52px; border-radius: 12px; }
.sc-invite-no { color: var(--sc-bordo) !important; border: 1px solid #d7b8c0 !important; background: #fff !important; box-shadow: none !important; }
.sc-invite-response > small { display: block; color: var(--sc-muted); text-align: center; }
.sc-invite-declined,
.sc-invite-expired,
.sc-invite-invalid { text-align: center; }
.sc-invite-declined h2,
.sc-invite-expired h2,
.sc-invite-invalid h1 { margin-top: 0; color: var(--sc-bordo-oscuro); }
.sc-invite-change { margin: 0 0 18px; text-align: center; }
.sc-invite-change a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #cdaeb7;
    border-radius: 11px;
    color: var(--sc-bordo);
    background: rgba(255,253,250,.94);
    font-weight: 800;
    text-decoration: none;
}
.sc-invite-change a:hover { color: #fff; background: var(--sc-bordo); }
.sc-invite-change small { display: block; margin-top: 8px; color: var(--sc-muted); }
.sc-portal-public .sc-invite-card {
    border-color: #ddcca7;
    background: rgba(255,250,240,.97);
    box-shadow: 0 18px 45px rgba(43,42,40,.14);
}
.sc-portal-public .sc-invite-event {
    background:
        radial-gradient(circle at 92% 8%,rgba(190,163,109,.36),transparent 16rem),
        linear-gradient(145deg,#fffaf0 0%,#f4ead5 100%);
}
.sc-portal-public .sc-invite-capacity { background: #f2e5c9; }
.sc-portal-public #invite-qr {
    border-color: #d4bd8d;
    background: #fff;
    box-shadow: 0 10px 24px rgba(43,42,40,.08);
}
.sc-portal-public .sc-invite-no {
    color: #8c622d !important;
    border-color: #d4bd8d !important;
    background: #fffaf0 !important;
}
.sc-portal-public .sc-invite-change a {
    border-color: #d4bd8d;
    background: #fffaf0;
}
@media (max-width: 520px) {
    .sc-invite-gift-details > div { grid-template-columns: 1fr auto; }
    .sc-invite-gift-details span { grid-column: 1 / -1; }
}

/* Grilla de disponibilidad de salones ------------------------------- */
.sc-availability-open {
    width: 100%;
    min-height: 38px;
    margin-top: 4px;
    border: 1px solid #cdaeb7;
    border-radius: 9px;
    color: var(--sc-bordo);
    background: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
}
.sc-availability-open:hover { color: #fff; background: var(--sc-bordo); }
.sc-event-form .is-selected-from-grid {
    border-color: #27945d !important;
    background: #edf9f1 !important;
    box-shadow: 0 0 0 4px rgba(39,148,93,.16) !important;
}
.sc-availability-main { width: min(1800px, calc(100% - 24px)); }
.sc-availability-filters {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(220px, 320px) auto auto auto;
    align-items: end;
    gap: 14px;
}
.sc-availability-filters label { display: grid; gap: 7px; }
.sc-availability-filters input,
.sc-availability-filters select { min-height: 46px; border-radius: 11px !important; }
.sc-availability-filters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d8c1b5;
    border-radius: 10px;
    color: var(--sc-bordo);
    background: #fff;
    font-weight: 800;
    text-decoration: none;
}
.sc-availability-panel { padding: 20px; overflow: hidden; }
.sc-availability-help { margin: -6px 0 16px; color: var(--sc-muted); }
.sc-availability-legend { display: flex; gap: 9px; }
.sc-availability-legend span { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.sc-availability-legend .is-free { color: #21603e; background: #dff2e7; }
.sc-availability-legend .is-busy { color: #fff; background: var(--sc-bordo); }
.sc-availability-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--sc-linea); border-radius: 13px; }
.sc-availability-grid { min-width: 1320px; width: 100%; border-spacing: 0; border-collapse: separate; table-layout: fixed; }
.sc-availability-grid th,
.sc-availability-grid td { height: 54px; padding: 0; border-right: 1px solid #eadbd2; border-bottom: 1px solid #eadbd2; text-align: center; }
.sc-availability-grid thead th { position: sticky; top: 0; z-index: 3; height: 62px; color: var(--sc-tinta); background: #f6eae1; }
.sc-availability-grid thead th span,
.sc-availability-grid thead th strong,
.sc-availability-grid thead th small { display: block; }
.sc-availability-grid thead th span { font-size: 11px; text-transform: uppercase; }
.sc-availability-grid thead th strong { font-size: 18px; }
.sc-availability-grid thead th small { color: var(--sc-muted); }
.sc-availability-grid .sc-availability-salon-col {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 190px;
    padding: 0 13px;
    text-align: left;
    background: #fffaf5;
    box-shadow: 5px 0 12px rgba(65,25,36,.05);
}
.sc-availability-grid thead .sc-availability-salon-col { z-index: 5; }
.sc-availability-salon-col strong,
.sc-availability-salon-col small { display: block; }
.sc-availability-salon-col small { margin-top: 3px; color: var(--sc-muted); font-size: 11px; }
.sc-availability-grid td { width: 42px; }
.sc-availability-grid td.is-free { background: #dff2e7 !important; }
.sc-availability-grid td.is-busy { color: #fff; background: var(--sc-bordo); }
.sc-availability-grid td.is-busy span { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(255,255,255,.18); font-weight: 800; }
.sc-availability-grid td.is-free button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    color: #1f633e !important;
    background: #dff2e7 !important;
    box-shadow: none !important;
    font-size: 11px;
    font-weight: 800;
}
.sc-availability-grid td.is-free button:hover {
    color: #174c30 !important;
    background: #bfe5cd !important;
}
.sc-availability-grid .is-weekend { background: #ead8cb; }
.sc-availability-grid .is-today { box-shadow: inset 0 0 0 3px #d49b36; }

@media (max-width: 1100px) {
    .sc-guest-stats { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}

@media (max-width: 900px) {
    .sc-report-status-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sc-report-filters { grid-template-columns: 1fr 1fr; }
    .sc-report-filter-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
    .sc-events-hero { align-items: flex-start; flex-direction: column; }
    .sc-events-filters { grid-template-columns: 1fr; }
    .sc-event-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-guest-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-availability-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .sc-api-credentials { grid-template-columns: 1fr; }
    .sc-api-credentials > div,.sc-api-credentials > button { grid-column: auto; }
    .sc-report-status-summary,.sc-report-filters { grid-template-columns: 1fr; }
    .sc-report-filter-actions { grid-column: auto; display: grid; }
    .sc-events-main { width: min(100% - 18px, 1480px); margin-top: 12px; }
    .sc-events-panel { padding: 16px; }
    .sc-event-form-grid { grid-template-columns: 1fr; }
    .sc-event-form-grid .is-wide { grid-column: auto; }
    .sc-guest-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-invite-event-data { grid-template-columns: 1fr; gap: 16px; }
    .sc-invite-response-actions { grid-template-columns: 1fr; }
    .sc-availability-filters { grid-template-columns: 1fr; }
}

body.sc-modern {
    min-height: 100vh;
    margin: 0;
    padding-bottom: 40px;
    color: var(--sc-tinta);
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(45deg, transparent 47%, rgba(134,31,61,.028) 47% 53%, transparent 53%) 0 0 / 54px 54px,
        radial-gradient(circle at 88% 8%, rgba(212,173,121,.3), transparent 28rem),
        linear-gradient(135deg, #fffaf4 0%, var(--sc-crema) 62%, #f0dccd 100%) !important;
}

body.sc-modern::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    z-index: 9999;
    height: 6px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--sc-bordo-oscuro) 0 18%, var(--sc-bordo) 18% 82%, var(--sc-bordo-oscuro) 82%);
}

.sc-modern .header {
    width: 100%;
    min-height: 84px;
    margin: 0 0 28px;
    padding: 14px clamp(20px, 4vw, 70px);
    border: 0;
    border-collapse: separate;
    background: rgba(255,252,247,.96) !important;
    box-shadow: 0 1px 0 rgba(91,19,40,.12);
}
.sc-modern .header th { width: 260px; border: 0 !important; background: transparent !important; }
.sc-modern .header th:first-child { text-align: left; }
.sc-modern .header th:last-child { text-align: right; }
.sc-modern .header td {
    border: 0 !important;
    color: var(--sc-bordo-oscuro) !important;
    background: transparent !important;
    font-size: clamp(14px, 1.25vw, 18px) !important;
    letter-spacing: .02em;
}
.sc-modern .header img { width: auto !important; object-fit: contain; }
.sc-modern .header img.brand-uthgra { height: 58px !important; max-width: 220px; }
.sc-modern .header img.brand-osuthgra { height: 44px !important; max-width: 250px; }
.sc-modern .header .sc-legacy-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}
.sc-modern .header .sc-legacy-brand img.brand-uthgra {
    height: 40px !important;
    max-width: 150px;
}
.sc-modern .header .sc-legacy-brand span {
    max-width: 95px;
    color: var(--sc-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
}
.sc-modern .header .sc-page-title-cell {
    color: var(--sc-bordo-oscuro) !important;
    font-size: clamp(18px, 1.55vw, 24px) !important;
    font-weight: 750;
    letter-spacing: -.015em;
    text-align: center;
}

.sc-modern h1,
.sc-modern h2,
.sc-modern h3,
.sc-modern h4 { color: var(--sc-bordo-oscuro); font-family: "Segoe UI", Arial, sans-serif; }
.sc-modern h1 { letter-spacing: -.035em; }
.sc-modern a { color: var(--sc-bordo); text-underline-offset: 3px; }
.sc-modern a:hover { color: var(--sc-bordo-oscuro); }

.sc-modern table.info,
.sc-modern table.infoSinLinea,
.sc-modern table.info2,
.sc-modern table.info3,
.sc-modern table.t1,
.sc-modern table.sc-card-table {
    max-width: calc(100% - 28px);
    margin: 22px auto !important;
    overflow: hidden;
    border: 1px solid var(--sc-linea) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 15px;
    background: var(--sc-superficie) !important;
    box-shadow: var(--sc-sombra);
}

.sc-modern table.info th,
.sc-modern table.infoSinLinea th,
.sc-modern table.info2 th,
.sc-modern table.info3 th,
.sc-modern table.t1 th,
.sc-modern table.sc-card-table th,
.sc-modern td.th1,
.sc-modern th.th1 {
    height: auto;
    padding: 12px 14px !important;
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--sc-rojo), var(--sc-bordo-oscuro)) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .015em;
}

.sc-modern table.info td,
.sc-modern table.infoSinLinea td,
.sc-modern table.info2 td,
.sc-modern table.info3 td,
.sc-modern table.t1 td,
.sc-modern table.sc-card-table td {
    height: auto;
    padding: 9px 11px !important;
    border: 0 !important;
    border-bottom: 1px solid #eee0d6 !important;
    color: var(--sc-tinta);
    background: rgba(255,253,250,.96) !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 13px !important;
}
.sc-modern table.info tr:last-child td,
.sc-modern table.infoSinLinea tr:last-child td,
.sc-modern table.info2 tr:last-child td,
.sc-modern table.info3 tr:last-child td,
.sc-modern table.t1 tr:last-child td,
.sc-modern table.sc-card-table tr:last-child td { border-bottom: 0 !important; }
.sc-modern table.info tr:nth-child(even) td,
.sc-modern table.infoSinLinea tr:nth-child(even) td,
.sc-modern table.info2 tr:nth-child(even) td,
.sc-modern table.info3 tr:nth-child(even) td,
.sc-modern table.sc-card-table tr:nth-child(even) td { background: #fbf4ed !important; }

.sc-modern input[type="text"],
.sc-modern input[type="search"],
.sc-modern input[type="password"],
.sc-modern input[type="number"],
.sc-modern input[type="date"],
.sc-modern input[type="time"],
.sc-modern input[type="email"],
.sc-modern input[type="tel"],
.sc-modern input:not([type]),
.sc-modern select,
.sc-modern textarea,
.sc-modern .form-control {
    min-height: 38px;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #d6c3ba !important;
    border-radius: 8px !important;
    outline: none;
    color: var(--sc-tinta) !important;
    font: 400 14px/1.3 "Segoe UI", Arial, sans-serif !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .18s, box-shadow .18s;
}
.sc-modern textarea { min-height: 86px; resize: vertical; }
.sc-modern select { padding-right: 28px; }
.sc-modern input:focus,
.sc-modern input[type="search"]:focus,
.sc-modern select:focus,
.sc-modern textarea:focus,
.sc-modern .form-control:focus {
    border-color: var(--sc-bordo) !important;
    box-shadow: 0 0 0 4px rgba(134,31,61,.12) !important;
}
.sc-modern input[disabled],
.sc-modern select[disabled],
.sc-modern textarea[disabled],
.sc-modern input[readonly] { color: #776a6d !important; background: #f1e8e1 !important; }
.sc-modern label,
.sc-modern .form-label { color: #4d3a40; font-weight: 650; }

.sc-modern button,
.sc-modern input[type="button"],
.sc-modern input[type="submit"],
.sc-modern input[type="reset"],
.sc-modern .boton,
.sc-modern .btn {
    min-height: 38px;
    padding: 8px 16px;
    border: 0 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font: 700 13px/1.2 "Segoe UI", Arial, sans-serif !important;
    text-decoration: none !important;
    cursor: pointer;
    background: linear-gradient(135deg, var(--sc-rojo), var(--sc-bordo-oscuro)) !important;
    box-shadow: 0 7px 16px rgba(94,19,43,.18) !important;
    transition: transform .16s, box-shadow .16s;
}
.sc-modern button:hover,
.sc-modern input[type="button"]:hover,
.sc-modern input[type="submit"]:hover,
.sc-modern input[type="reset"]:hover,
.sc-modern .boton:hover,
.sc-modern .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(94,19,43,.24) !important; }
.sc-modern button:focus-visible,
.sc-modern input[type="button"]:focus-visible,
.sc-modern input[type="submit"]:focus-visible,
.sc-modern input[type="reset"]:focus-visible,
.sc-modern .btn:focus-visible { outline: 3px solid var(--sc-arena); outline-offset: 3px; }
.sc-modern input[type="image"],
.sc-modern .botonimagen,
.sc-modern button[class*="botonFiltra"] { min-height: 0; padding: 0; border-radius: 4px !important; background-color: transparent !important; box-shadow: none !important; }
.sc-modern .btn-secondary,
.sc-modern .bg-secondary { background: #756369 !important; }
.sc-modern .btn-danger { background: #a3323d !important; }
.sc-modern .btn-success { background: #47745b !important; }
.sc-modern .bg-primary { background-color: var(--sc-bordo) !important; }
.sc-modern .text-primary { color: var(--sc-bordo) !important; }

.sc-modern fieldset {
    margin: 20px auto;
    padding: 20px;
    border: 1px solid var(--sc-linea);
    border-radius: 14px;
    background: rgba(255,253,250,.88);
    box-shadow: 0 10px 30px rgba(79,19,38,.07);
}
.sc-modern legend { width: auto; padding: 0 8px; color: var(--sc-bordo-oscuro); font-size: 15px; font-weight: 750; }
.sc-modern hr { border: 0; border-top: 1px solid var(--sc-linea); }

.sc-modern .container,
.sc-modern .container-fluid { max-width: 1180px; }
.sc-modern .container-fluid { margin-right: auto; margin-left: auto; }
.sc-modern .alert { border: 0; border-left: 4px solid var(--sc-bordo); border-radius: 10px; box-shadow: 0 8px 22px rgba(79,19,38,.08); }
.sc-modern .card { border: 1px solid var(--sc-linea); border-radius: 14px; background: var(--sc-superficie); box-shadow: 0 10px 30px rgba(79,19,38,.08); }
.sc-modern .table-responsive { border-radius: 14px; box-shadow: var(--sc-sombra); }
.sc-modern .table { margin-bottom: 0; color: var(--sc-tinta); background: var(--sc-superficie); }
.sc-modern .table thead th { border-color: var(--sc-bordo-oscuro); color: #fff; background: var(--sc-bordo); }
.sc-modern .table td { border-color: #eee0d6; }

.sc-modern-min .container-fluid.bg-light,
.sc-modern-min .row.bg-light,
.sc-modern-min [class*="col-"] .bg-light,
.sc-modern-min .alert-light {
    border-color: var(--sc-linea) !important;
    background-color: rgba(255,253,250,.94) !important;
}
.sc-modern-min .alert-light {
    border-left: 5px solid var(--sc-bordo) !important;
    color: var(--sc-tinta) !important;
}
.sc-modern-min table.display {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--sc-linea) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px;
    color: var(--sc-tinta);
    background: var(--sc-superficie) !important;
    box-shadow: 0 12px 30px rgba(79,19,38,.1);
}
.sc-modern-min table.display thead th,
.sc-modern-min table.display thead td {
    padding: 11px 10px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.14) !important;
    color: #fff !important;
    background-color: var(--sc-bordo) !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
.sc-modern-min table.display tbody td {
    padding: 9px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #eee0d6 !important;
    color: var(--sc-tinta) !important;
    background-color: #fffdfa !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
}
.sc-modern-min table.display tbody tr:nth-child(even) td { background-color: #fbf3ec !important; }
.sc-modern-min table.display tbody tr:hover td { background-color: #f4e2d7 !important; }
.sc-modern-min .dataTables_wrapper {
    padding: 12px;
    border-radius: 14px;
    color: var(--sc-muted);
    background: rgba(255,253,250,.92);
}
.sc-modern-min .dataTables_wrapper .dataTables_length,
.sc-modern-min .dataTables_wrapper .dataTables_filter,
.sc-modern-min .dataTables_wrapper .dataTables_info,
.sc-modern-min .dataTables_wrapper .dataTables_paginate { margin: 6px 0; color: var(--sc-muted) !important; }
.sc-modern-min .dataTables_wrapper .dataTables_filter input,
.sc-modern-min .dataTables_wrapper .dataTables_length select { margin-left: 7px; }
.sc-modern-min .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 36px;
    margin-left: 4px;
    padding: 7px 10px !important;
    border: 1px solid var(--sc-linea) !important;
    border-radius: 7px !important;
    color: var(--sc-bordo-oscuro) !important;
    background: #fffdfa !important;
    box-shadow: none !important;
}
.sc-modern-min .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.sc-modern-min .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: var(--sc-bordo) !important;
    color: #fff !important;
    background: var(--sc-bordo) !important;
}
.sc-modern-min .modal-content {
    overflow: hidden;
    border: 1px solid var(--sc-linea);
    border-radius: 16px;
    background: var(--sc-superficie);
    box-shadow: var(--sc-sombra);
}
.sc-modern-min .fa-spinner { color: var(--sc-bordo); }
.sc-modern-min .form-check-input:checked { border-color: var(--sc-bordo); background-color: var(--sc-bordo); }

.sc-modern-min .sc-app-header-wrap {
    width: min(100%, 1440px);
    max-width: 1440px !important;
    margin: 0 auto 10px;
    padding: 18px 12px 0;
}
.sc-modern-min .sc-app-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px,1fr) minmax(0,2fr) minmax(108px,1fr);
    align-items: center;
    min-height: 78px;
    padding: 10px 18px;
    border: 1px solid rgba(134,31,61,.1);
    border-left: 5px solid var(--sc-bordo);
    border-radius: 0 0 15px 15px;
    background: rgba(255,253,250,.97);
    box-shadow: 0 10px 28px rgba(79,19,38,.1);
}
.sc-modern-min .sc-app-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
}
.sc-modern-min .sc-app-brand img {
    display: block;
    width: auto;
    height: 40px;
    object-fit: contain;
}
.sc-modern-min .sc-app-brand strong {
    max-width: 100px;
    color: var(--sc-muted);
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
}
.sc-modern-min .sc-page-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--sc-bordo-oscuro);
    font-size: clamp(18px,1.55vw,24px);
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sc-modern-min .sc-exit-button {
    position: static;
    justify-self: end;
    min-width: 108px;
    min-height: 46px;
    margin: 0 !important;
}
.sc-modern-min button[onclick*="Buscar12"] {
    min-width: 46px;
    min-height: 46px;
    margin: 6px 4px !important;
}

/* Evita que las grillas con alturas heredadas cubran los formularios siguientes. */
.sc-modern-min form[name="opcion"] > .container-fluid {
    width: min(100%, 1440px);
    max-width: 1440px;
    margin-right: auto !important;
    margin-left: auto !important;
}
.sc-modern-min .row[style*="height: 60%"],
.sc-modern-min .row[style*="height: 40%"],
.sc-modern-min .row[style*="height: 30%"],
.sc-modern-min .row[style*="height: 20%"] {
    height: auto !important;
    min-height: 0;
}
.sc-modern-min .dataTables_wrapper {
    clear: both;
    margin-bottom: 12px;
}
.sc-modern-min .dataTables_scrollBody {
    height: auto !important;
    max-height: 52vh !important;
    overflow: auto !important;
}

/* Fechas completas y calendario legible. */
.sc-modern-min input.inputFecha,
.sc-modern-min #fecdesde,
.sc-modern-min #fechasta {
    width: 112px !important;
    min-width: 112px;
    text-align: center;
}
.sc-modern-min .ui-datepicker {
    width: 310px !important;
    padding: 8px !important;
    z-index: 1055 !important;
    border: 1px solid var(--sc-linea) !important;
    border-radius: 12px;
    background: #fffdfa;
    box-shadow: var(--sc-sombra);
}
.sc-modern-min .ui-datepicker .ui-datepicker-header {
    padding: 7px 34px !important;
    border: 0 !important;
    border-radius: 9px;
    background: #eee3df !important;
}
.sc-modern-min .ui-datepicker .ui-datepicker-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
}
.sc-modern-min .ui-datepicker .ui-datepicker-title select {
    width: calc(50% - 3px) !important;
    min-width: 0;
    min-height: 34px;
    padding: 4px 24px 4px 8px !important;
    font-size: 14px !important;
    line-height: 1.2;
}
.sc-modern-min .ui-datepicker table {
    width: 100% !important;
    margin: 6px 0 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
}
.sc-modern-min .ui-datepicker td a,
.sc-modern-min .ui-datepicker td span {
    padding: 6px !important;
    text-align: center;
}

.sc-modern .tr_hover,
.sc-modern tr.tr_hover td { color: var(--sc-bordo) !important; background: #f6e6dc !important; }
.sc-modern .tr_hoverNormal,
.sc-modern .tr_normal { color: var(--sc-tinta) !important; }

/* Calendario de eventos (web-sc035). */
.sc-calendar-screen form[name="opcion"] > table.infoSinLinea:first-of-type {
    width: min(100% - 28px,1500px) !important;
    margin: 16px auto 14px !important;
    border: 1px solid var(--sc-linea) !important;
    border-radius: 14px;
    background: rgba(255,253,250,.96) !important;
    box-shadow: 0 10px 28px rgba(79,19,38,.09);
}
.sc-calendar-screen form[name="opcion"] > table.infoSinLinea:first-of-type th {
    padding: 12px 16px !important;
    color: var(--sc-bordo-oscuro) !important;
    background: transparent !important;
    font-size: 15px !important;
}
.sc-calendar-screen form[name="opcion"] > table.infoSinLinea:first-of-type select {
    min-width: 170px;
    margin-left: 8px;
    background-color: #fff !important;
}
.sc-calendar-screen #calendar {
    width: min(100% - 28px,1500px);
    margin: 0 auto;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--sc-linea);
    border-radius: 18px;
    background: rgba(255,253,250,.98);
    box-shadow: var(--sc-sombra);
}
.sc-calendar-screen #calendar .fc-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px !important;
}
.sc-calendar-screen #calendar .fc-left { justify-self: start; }
.sc-calendar-screen #calendar .fc-center { justify-self: center; }
.sc-calendar-screen #calendar .fc-right { justify-self: end; }
.sc-calendar-screen #calendar .fc-toolbar h2 {
    margin: 0;
    color: var(--sc-bordo-oscuro);
    font-size: clamp(20px,2vw,27px);
    font-weight: 750;
    letter-spacing: -.025em;
    text-transform: capitalize;
}
.sc-calendar-screen #calendar .fc-button,
.sc-calendar-screen #calendar .ui-button {
    min-width: 42px;
    min-height: 40px;
    margin-left: 5px !important;
    padding: 7px 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: var(--sc-bordo) !important;
    box-shadow: 0 7px 17px rgba(85,19,38,.18) !important;
    text-shadow: none !important;
}
.sc-calendar-screen #calendar .fc-button:hover,
.sc-calendar-screen #calendar .ui-button:hover { background: var(--sc-bordo-oscuro) !important; }
.sc-calendar-screen #calendar .fc-state-disabled,
.sc-calendar-screen #calendar .ui-state-disabled { opacity: .48; }
.sc-calendar-screen #calendar .fc-view-container {
    overflow: hidden;
    border: 1px solid var(--sc-linea);
    border-radius: 12px;
}
.sc-calendar-screen #calendar .fc-widget-header {
    padding: 9px 5px !important;
    border-color: var(--sc-linea) !important;
    color: var(--sc-bordo-oscuro) !important;
    background: #efe1d8 !important;
    font-size: 13px;
    font-weight: 750;
}
.sc-calendar-screen #calendar .fc-widget-content { border-color: #e9dcd3 !important; }
.sc-calendar-screen #calendar .fc-bg td {
    border-right: 1px solid #d8ccc4 !important;
    border-bottom: 1px solid #d8ccc4 !important;
    opacity: 1 !important;
    filter: none !important;
}
.sc-calendar-screen #calendar .fc-bg td:last-child { border-right: 0 !important; }
.sc-calendar-screen #calendar .fc-day-grid .fc-row {
    position: relative;
}
.sc-calendar-screen #calendar .fc-day-grid .fc-row::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(14.285714% - 1px),
        #c9bbb2 calc(14.285714% - 1px),
        #c9bbb2 14.285714%
    );
    box-shadow: inset 0 -1px 0 #c9bbb2;
}
.sc-calendar-screen #calendar td.fc-verde {
    background-color: #f0edea !important;
    opacity: 1 !important;
    filter: none !important;
}
.sc-calendar-screen #calendar td.fc-rojo {
    background-color: #f9e8e8 !important;
    opacity: 1 !important;
    filter: none !important;
}
.sc-calendar-screen #calendar td.fc-verde-hoy {
    background-color: #e4f3e7 !important;
    opacity: 1 !important;
    filter: none !important;
}
.sc-calendar-screen #calendar td.fc-rojo-hoy {
    background-color: #fde4e8 !important;
    opacity: 1 !important;
    filter: none !important;
}
.sc-calendar-screen #calendar .fc-day { background: #fffdfa; }
.sc-calendar-screen #calendar .fc-sat,
.sc-calendar-screen #calendar .fc-sun { background-color: #fbf3ec; }
.sc-calendar-screen #calendar .fc-today {
    background-color: #fff3cf !important;
    box-shadow: inset 0 0 0 2px rgba(212,173,121,.48);
}
.sc-calendar-screen #calendar .fc-day-number {
    padding: 7px 8px 3px !important;
    color: #50343d;
    font-size: 13px;
    font-weight: 700;
}
.sc-calendar-screen #calendar .fc-other-month .fc-day-number { color: #a99b9e; }
.sc-calendar-screen #calendar .fc-event {
    margin: 2px 4px !important;
    padding: 3px 6px !important;
    overflow: hidden;
    border: 0 !important;
    border-left: 4px solid rgba(48,33,38,.3) !important;
    border-radius: 7px !important;
    box-shadow: 0 3px 9px rgba(48,33,38,.13);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sc-calendar-screen #calendar .fc-event:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}
.sc-calendar-screen #calendar + table {
    width: min(100% - 28px,1500px) !important;
    margin: 14px auto 0 !important;
    overflow: hidden;
    border: 1px solid var(--sc-linea);
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 13px;
    background: rgba(255,253,250,.96);
    box-shadow: 0 9px 24px rgba(79,19,38,.08);
}
.sc-calendar-screen #calendar + table td {
    height: 42px;
    padding: 8px 6px;
    color: var(--sc-tinta);
    font-size: 13px;
    font-weight: 600;
}
.sc-calendar-screen #calendar + table td[width="2%"][style*="background"] {
    width: 22px !important;
    min-width: 22px;
    height: 22px;
    padding: 0 !important;
    border: 5px solid #fffdfa;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(48,33,38,.1);
}

/* Resultados de Facturado (web-sc034). */
.sc-facturado-screen table.info4 {
    margin: 22px auto !important;
    overflow: hidden;
    border: 1px solid var(--sc-linea) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 14px;
    background: var(--sc-superficie) !important;
    box-shadow: 0 14px 34px rgba(79,19,38,.11);
    font-family: "Segoe UI",Arial,sans-serif;
}
.sc-facturado-screen table.sc-period-table {
    width: min(calc(100% - 28px),520px) !important;
}
.sc-facturado-screen table.sc-detail-table {
    width: min(calc(100% - 28px),1500px) !important;
}
.sc-facturado-screen table.info4 th {
    height: auto;
    padding: 11px 14px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.2) !important;
    color: #fff !important;
    background: linear-gradient(135deg,var(--sc-rojo),var(--sc-bordo-oscuro)) !important;
    font-family: "Segoe UI",Arial,sans-serif;
    font-size: 13px !important;
    font-weight: 750;
    letter-spacing: .01em;
    text-align: left;
}
.sc-facturado-screen table.info4 th:last-child { border-right: 0 !important; }
.sc-facturado-screen table.info4 tr:first-child th {
    font-size: 15px !important;
    text-align: center;
}
.sc-facturado-screen table.info4 td {
    height: auto;
    padding: 9px 13px !important;
    border: 0 !important;
    border-bottom: 1px solid #eaded5 !important;
    color: var(--sc-tinta);
    background: #fffdfa !important;
    font-family: "Segoe UI",Arial,sans-serif;
    font-size: 13px !important;
}
.sc-facturado-screen table.info4 tr:nth-child(odd) td { background: #fbf4ed !important; }
.sc-facturado-screen table.info4 tr:last-child td { border-bottom: 0 !important; }
.sc-facturado-screen table.info4 tr:hover td { background: #f3e3d8 !important; }
.sc-facturado-screen table.sc-period-table td:first-child { font-weight: 700; text-align: center; }
.sc-facturado-screen table.sc-period-table td:last-child,
.sc-facturado-screen table.sc-detail-table td:not(:first-child) {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}
.sc-facturado-screen table.sc-period-table a {
    display: block;
    margin: -9px -13px;
    padding: 9px 13px;
    color: var(--sc-bordo);
    font-weight: 750;
    text-decoration: none;
}
.sc-facturado-screen table.sc-period-table a:hover { color: var(--sc-bordo-oscuro); }
.sc-facturado-screen table.sc-period-table td.sc-period-selected,
.sc-facturado-screen table.sc-period-table td[style] {
    color: var(--sc-bordo-oscuro) !important;
    background: #edcfba !important;
    border-top: 1px solid #c98f6f !important;
    border-bottom: 1px solid #c98f6f !important;
    font-weight: 800;
}
.sc-facturado-screen table.sc-period-table td.sc-period-selected:first-child,
.sc-facturado-screen table.sc-period-table td[style]:first-child {
    box-shadow: inset 5px 0 0 var(--sc-bordo);
}
.sc-facturado-screen table.sc-period-table td.sc-period-selected a,
.sc-facturado-screen table.sc-period-table td[style] a { color: var(--sc-bordo-oscuro) !important; }

/* Disponibilidad del gimnasio (web-sc033) */
.sc-modern table.sc-gym-hours-table,
.sc-modern table.sc-gym-clients-table {
    width: min(calc(100% - 32px), 1460px) !important;
    margin: 28px auto !important;
    border: 1px solid var(--sc-linea) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 16px;
    overflow: hidden;
    color: var(--sc-tinta);
    background: var(--sc-superficie) !important;
    box-shadow: 0 16px 38px rgba(79,19,38,.12);
    font-family: "Segoe UI",Arial,sans-serif;
}
.sc-modern table.sc-gym-hours-table th,
.sc-modern table.sc-gym-clients-table th {
    height: auto;
    padding: 11px 12px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.22) !important;
    border-bottom: 1px solid rgba(255,255,255,.22) !important;
    color: #fff8f1 !important;
    background: linear-gradient(135deg,var(--sc-rojo),var(--sc-bordo-oscuro)) !important;
    font-family: "Segoe UI",Arial,sans-serif;
    font-size: 13px !important;
    font-weight: 750;
    text-align: center !important;
}
.sc-modern table.sc-gym-hours-table th:last-child,
.sc-modern table.sc-gym-clients-table th:last-child { border-right: 0 !important; }
.sc-modern table.sc-gym-hours-table td,
.sc-modern table.sc-gym-clients-table td {
    height: auto;
    padding: 8px 12px !important;
    border: 0 !important;
    border-right: 1px solid #eaded5 !important;
    border-bottom: 1px solid #eaded5 !important;
    color: var(--sc-tinta) !important;
    background: #fffdfa !important;
    font-family: "Segoe UI",Arial,sans-serif;
    font-size: 13px !important;
}
.sc-modern table.sc-gym-hours-table tr:nth-child(odd) td,
.sc-modern table.sc-gym-clients-table tr:nth-child(even) td { background: #fbf4ed !important; }
.sc-modern table.sc-gym-hours-table td:last-child,
.sc-modern table.sc-gym-clients-table td:last-child { border-right: 0 !important; }
.sc-modern table.sc-gym-hours-table td:first-child {
    color: var(--sc-bordo-oscuro) !important;
    background: #f5e7dc !important;
    font-weight: 750;
    text-align: center !important;
}
.sc-modern table.sc-gym-hours-table td:not(:first-child) {
    font-variant-numeric: tabular-nums;
    text-align: center !important;
}
.sc-modern table.sc-gym-hours-table a {
    display: inline-flex;
    min-width: 30px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--sc-bordo) !important;
    background: #f4d9cd;
    font-weight: 800;
    text-decoration: none;
}
.sc-modern table.sc-gym-hours-table a:hover { background: #ebc6b5; }
.sc-modern table.sc-gym-hours-table tr:nth-last-child(2) th {
    color: #fff !important;
    background: var(--sc-bordo) !important;
    font-size: 14px !important;
}
.sc-modern table.sc-gym-hours-table tr:last-child th {
    padding: 13px !important;
    color: #fff8f1 !important;
    background: var(--sc-bordo-oscuro) !important;
    font-size: 15px !important;
    letter-spacing: .02em;
}
.sc-modern table.sc-gym-clients-table tr:first-child th {
    padding: 13px !important;
    background: var(--sc-bordo-oscuro) !important;
    font-size: 15px !important;
}
.sc-modern table.sc-gym-clients-table td { vertical-align: middle !important; }
.sc-modern table.sc-gym-clients-table td:first-child { text-align: center !important; }
.sc-modern table.sc-gym-clients-table img {
    display: block;
    width: 72px;
    height: 88px;
    margin: 2px auto;
    border: 1px solid #dec9ba;
    border-radius: 10px;
    object-fit: cover;
    background: #f5e9df;
    box-shadow: 0 5px 14px rgba(79,19,38,.12);
}

/* Cursos activos (web-sc032) */
.sc-modern table.sc-courses-table,
.sc-modern table.sc-course-students-table {
    width: min(calc(100% - 32px), 1780px) !important;
    margin: 28px auto !important;
    border: 1px solid var(--sc-linea) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 16px;
    overflow: hidden;
    color: var(--sc-tinta);
    background: var(--sc-superficie) !important;
    box-shadow: 0 16px 38px rgba(79,19,38,.12);
    font-family: "Segoe UI",Arial,sans-serif;
}
.sc-modern table.sc-courses-table th,
.sc-modern table.sc-course-students-table th {
    height: auto;
    padding: 12px 10px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.22) !important;
    color: #fff8f1 !important;
    background: linear-gradient(135deg,var(--sc-rojo),var(--sc-bordo-oscuro)) !important;
    font-family: "Segoe UI",Arial,sans-serif;
    font-size: 13px !important;
    font-weight: 750;
    text-align: center !important;
}
.sc-modern table.sc-courses-table th:last-child,
.sc-modern table.sc-course-students-table th:last-child { border-right: 0 !important; }
.sc-modern table.sc-courses-table td,
.sc-modern table.sc-course-students-table td {
    height: auto;
    padding: 9px 11px !important;
    border: 0 !important;
    border-right: 1px solid #eaded5 !important;
    border-bottom: 1px solid #eaded5 !important;
    color: var(--sc-tinta);
    background: #fffdfa !important;
    font-family: "Segoe UI",Arial,sans-serif;
    font-size: 13px !important;
    line-height: 1.3;
    vertical-align: middle !important;
}
.sc-modern table.sc-courses-table tr:nth-child(odd) td,
.sc-modern table.sc-course-students-table tr:nth-child(even) td { background: #fbf4ed !important; }
.sc-modern table.sc-courses-table tr:hover td,
.sc-modern table.sc-course-students-table tr:hover td { background: #f3e3d8 !important; }
.sc-modern table.sc-courses-table td:last-child,
.sc-modern table.sc-course-students-table td:last-child { border-right: 0 !important; }
.sc-modern table.sc-courses-table td:first-child {
    color: var(--sc-bordo-oscuro);
    font-weight: 700;
}
.sc-modern table.sc-courses-table td:nth-child(2),
.sc-modern table.sc-courses-table td:nth-child(3),
.sc-modern table.sc-courses-table td:nth-child(5),
.sc-modern table.sc-courses-table td:nth-child(6),
.sc-modern table.sc-courses-table td:nth-child(7) {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sc-modern table.sc-courses-table td:nth-child(5),
.sc-modern table.sc-courses-table td:nth-child(6),
.sc-modern table.sc-courses-table td:nth-child(7) { text-align: right !important; }
.sc-modern table.sc-courses-table a {
    display: inline-flex;
    min-width: 34px;
    min-height: 27px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--sc-bordo) !important;
    background: #f4d9cd;
    font-weight: 800;
    text-decoration: none;
}
.sc-modern table.sc-courses-table a:hover { background: #ebc6b5; }
.sc-modern table.sc-course-students-table tr:first-child th {
    padding: 14px !important;
    background: var(--sc-bordo-oscuro) !important;
    font-size: 15px !important;
}
.sc-modern table.sc-course-students-table td:nth-child(2),
.sc-modern table.sc-course-students-table td:nth-child(3),
.sc-modern table.sc-course-students-table td:nth-child(4),
.sc-modern table.sc-course-students-table td:last-child { text-align: center !important; }

/* Consulta de comprobantes ARCA (web-fac001) */
.sc-afip-screen .sc-afip-main {
    width: min(calc(100% - 32px), 1680px);
    margin: 0 auto;
}
.sc-afip-screen .sc-afip-panel,
.sc-afip-screen .sc-afip-results {
    border: 1px solid var(--sc-linea);
    border-radius: 18px;
    background: rgba(255,253,250,.96);
    box-shadow: 0 16px 38px rgba(79,19,38,.12);
}
.sc-afip-screen .sc-afip-panel { padding: clamp(20px,3vw,34px); }
.sc-afip-screen .sc-afip-panel-heading,
.sc-afip-screen .sc-afip-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}
.sc-afip-screen .sc-afip-panel-heading h2,
.sc-afip-screen .sc-afip-results-heading h2 {
    margin: 3px 0 0;
    color: var(--sc-bordo-oscuro);
    font-size: clamp(20px,2vw,28px);
}
.sc-afip-screen .sc-afip-panel-heading > p,
.sc-afip-screen .sc-afip-results-heading > span { margin: 0; color: var(--sc-muted); }
.sc-afip-screen .sc-afip-eyebrow {
    margin: 0;
    color: var(--sc-bordo);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.sc-afip-screen .sc-afip-filters {
    display: grid;
    grid-template-columns: minmax(190px,260px) minmax(190px,260px) minmax(180px,220px);
    gap: 18px;
    align-items: end;
    margin-top: 24px;
}
.sc-afip-screen .sc-afip-filters label {
    display: grid;
    gap: 7px;
    color: var(--sc-tinta);
    font-size: 13px;
    font-weight: 750;
}
.sc-afip-screen .sc-afip-filters input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #dcc7b8;
    border-radius: 11px;
    color: var(--sc-tinta);
    background: #fffdfa;
    font: 600 14px "Segoe UI",Arial,sans-serif;
}
.sc-afip-screen .sc-afip-filters input:focus {
    border-color: var(--sc-bordo);
    outline: 3px solid rgba(134,31,61,.12);
}
.sc-afip-screen .sc-afip-search-button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg,var(--sc-rojo),var(--sc-bordo-oscuro));
    box-shadow: 0 9px 22px rgba(85,19,38,.2);
    font: 800 14px "Segoe UI",Arial,sans-serif;
    cursor: pointer;
}
.sc-afip-screen .sc-afip-search-button:hover { transform: translateY(-1px); }
.sc-afip-screen .sc-afip-search-button:disabled { cursor: wait; opacity: .7; transform: none; }
.sc-afip-screen .sc-afip-message {
    margin: 18px 0 0;
    padding: 13px 16px;
    border: 1px solid #ddc5b6;
    border-radius: 12px;
    color: var(--sc-tinta);
    background: #fff8ef;
    font-weight: 650;
}
.sc-afip-screen .sc-afip-message.error { border-color: #d69baa; color: #6f1630; background: #fbecef; }
.sc-afip-screen .sc-afip-message.warning { border-color: #dcb876; color: #69440b; background: #fff5dd; }
.sc-afip-screen .sc-afip-message.loading { color: #51424a; background: #f8eee7; }
.sc-afip-screen .sc-afip-summary {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin: 18px 0;
}
.sc-afip-screen .sc-afip-summary[hidden],
.sc-afip-screen .sc-afip-results[hidden],
.sc-afip-screen .sc-afip-message[hidden] { display: none !important; }
.sc-afip-screen .sc-afip-summary article {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    border: 1px solid var(--sc-linea);
    border-radius: 14px;
    background: rgba(255,253,250,.94);
    box-shadow: 0 10px 24px rgba(79,19,38,.08);
}
.sc-afip-screen .sc-afip-summary span { color: var(--sc-muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.sc-afip-screen .sc-afip-summary strong { color: var(--sc-bordo-oscuro); font-size: clamp(21px,2vw,28px); }
.sc-afip-screen .sc-afip-results { overflow: hidden; margin-bottom: 30px; }
.sc-afip-screen .sc-afip-results-heading { padding: 20px 22px; }
.sc-afip-screen .sc-afip-table-scroll { overflow: auto; border-top: 1px solid var(--sc-linea); }
.sc-afip-screen table.sc-afip-table {
    width: 100%;
    min-width: 1320px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--sc-tinta);
    background: #fffdfa;
    font: 13px "Segoe UI",Arial,sans-serif;
}
.sc-afip-screen table.sc-afip-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 11px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.2);
    color: #fff8f1;
    background: linear-gradient(135deg,var(--sc-rojo),var(--sc-bordo-oscuro));
    font-weight: 750;
    text-align: left;
    white-space: nowrap;
}
.sc-afip-screen table.sc-afip-table th:last-child { border-right: 0; }
.sc-afip-screen table.sc-afip-table td {
    padding: 11px;
    border: 0;
    border-right: 1px solid #eaded5;
    border-bottom: 1px solid #eaded5;
    background: #fffdfa;
    vertical-align: middle;
}
.sc-afip-screen table.sc-afip-table td:last-child { border-right: 0; }
.sc-afip-screen table.sc-afip-table tr:nth-child(even) td { background: #fbf4ed; }
.sc-afip-screen table.sc-afip-table tr:hover td { background: #f3e3d8; }
.sc-afip-screen table.sc-afip-table .sc-money,
.sc-afip-screen table.sc-afip-table .sc-number { font-variant-numeric: tabular-nums; text-align: right; }
.sc-afip-screen table.sc-afip-table .sc-total { color: var(--sc-bordo-oscuro); font-weight: 800; }
.sc-afip-screen table.sc-afip-table .sc-nowrap { white-space: nowrap; }
.sc-afip-screen .sc-afip-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #245338;
    background: #e3f1e7;
    font-size: 12px;
    font-weight: 800;
}
.sc-afip-screen .sc-afip-download {
    display: inline-flex;
    min-height: 32px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff !important;
    background: linear-gradient(135deg,var(--sc-rojo),var(--sc-bordo-oscuro));
    box-shadow: 0 6px 14px rgba(85,19,38,.18);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}
.sc-afip-screen .sc-afip-download:hover { transform: translateY(-1px); filter: brightness(1.06); }
.sc-afip-screen .sc-afip-pdf-state {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--sc-muted);
    background: #eee6e0;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}
.sc-afip-screen .sc-afip-empty { padding: 34px !important; color: var(--sc-muted); text-align: center; }

@media (max-width: 760px) {
    body.sc-modern { padding-bottom: 24px; overflow-x: auto; }
    .sc-modern .header { margin-bottom: 18px; padding: 12px max(10px,env(safe-area-inset-left)); }
    .sc-modern .header th { width: 74px; }
    .sc-modern .header img.brand-logo { width: auto !important; max-width: 92px; height: auto !important; max-height: 38px; }
    .sc-modern .header td { padding: 0 6px !important; font-size: 11px !important; line-height: 1.25; }
    .sc-modern table.info,
    .sc-modern table.infoSinLinea,
    .sc-modern table.info2,
    .sc-modern table.info3,
    .sc-modern table.t1,
    .sc-modern table.sc-card-table { max-width: calc(100% - 16px); }
    .sc-modern table.info td,
    .sc-modern table.infoSinLinea td,
    .sc-modern table.info2 td,
    .sc-modern table.info3 td,
    .sc-modern table.t1 td,
    .sc-modern table.sc-card-table td { padding: 8px !important; }
    .sc-modern input[type="text"],
    .sc-modern input[type="search"],
    .sc-modern input[type="password"],
    .sc-modern input[type="number"],
    .sc-modern input[type="date"],
    .sc-modern input[type="time"],
    .sc-modern input[type="email"],
    .sc-modern input[type="tel"],
    .sc-modern input:not([type]),
    .sc-modern select,
    .sc-modern textarea,
    .sc-modern .form-control { font-size: 16px !important; }
    .sc-modern fieldset { margin-right: 8px; margin-left: 8px; padding: 14px; }
    .sc-modern-min .sc-app-header-wrap { padding: 14px 8px 0; }
    .sc-modern-min .sc-app-header { grid-template-columns: minmax(0,1fr) auto; min-height: 68px; padding: 9px 10px; border-radius: 0 0 12px 12px; }
    .sc-modern-min .sc-app-brand { justify-content: flex-start; gap: 8px; }
    .sc-modern-min .sc-app-brand img { height: 34px; }
    .sc-modern-min .sc-app-brand strong { max-width: 82px; font-size: 10px; }
    .sc-modern-min .sc-page-title { grid-column: 1 / -1; grid-row: 2; padding: 7px 4px 2px; font-size: 17px; white-space: normal; }
    .sc-modern-min .sc-exit-button { position: static; min-width: 78px; min-height: 42px; padding: 8px 10px !important; }
    .sc-modern-min button[onclick*="Buscar12"] { margin: 6px 2px !important; }
    .sc-modern-min .dataTables_scrollBody { max-height: 46vh !important; }
    .sc-modern-min .ui-datepicker { width: min(310px,calc(100vw - 20px)) !important; }
    .sc-calendar-screen form[name="opcion"] > table.infoSinLinea:first-of-type,
    .sc-calendar-screen #calendar,
    .sc-calendar-screen #calendar + table { width: calc(100% - 16px) !important; }
    .sc-calendar-screen #calendar { padding: 10px; overflow-x: auto; }
    .sc-calendar-screen #calendar .fc-toolbar { grid-template-columns: 1fr auto; }
    .sc-calendar-screen #calendar .fc-center { display: none; }
    .sc-calendar-screen #calendar .fc-toolbar h2 { font-size: 19px; }
    .sc-calendar-screen #calendar .fc-widget-header { padding: 7px 2px !important; font-size: 11px; }
    .sc-calendar-screen #calendar + table td { font-size: 11px; }
    .sc-facturado-screen table.sc-period-table,
    .sc-facturado-screen table.sc-detail-table { width: calc(100% - 16px) !important; }
    .sc-facturado-screen table.info4 th,
    .sc-facturado-screen table.info4 td { padding: 8px 9px !important; font-size: 12px !important; }
    .sc-modern table.sc-gym-hours-table,
    .sc-modern table.sc-gym-clients-table { width: calc(100% - 16px) !important; min-width: 760px; }
    .sc-modern table.sc-gym-hours-table th,
    .sc-modern table.sc-gym-hours-table td,
    .sc-modern table.sc-gym-clients-table th,
    .sc-modern table.sc-gym-clients-table td { padding: 7px 8px !important; font-size: 12px !important; }
    .sc-modern table.sc-courses-table,
    .sc-modern table.sc-course-students-table { width: calc(100% - 16px) !important; min-width: 980px; }
    .sc-modern table.sc-courses-table th,
    .sc-modern table.sc-courses-table td,
    .sc-modern table.sc-course-students-table th,
    .sc-modern table.sc-course-students-table td { padding: 7px 8px !important; font-size: 12px !important; }
    .sc-afip-screen .sc-afip-main { width: calc(100% - 16px); }
    .sc-afip-screen .sc-afip-panel-heading,
    .sc-afip-screen .sc-afip-results-heading { align-items: start; flex-direction: column; gap: 8px; }
    .sc-afip-screen .sc-afip-filters { grid-template-columns: 1fr; }
    .sc-afip-screen .sc-afip-summary { grid-template-columns: 1fr; }
    .sc-access-permissions { grid-template-columns: 1fr; }
    .sc-activation-link { grid-template-columns: 1fr; }
    .sc-portal-main { padding-top: 28px; }
    .sc-portal-brand img { height: 44px; }
}

@media (max-width: 900px) {
    body.sc-saas-menu-open { overflow: hidden; }
    .sc-saas-menu-toggle { position: fixed; z-index: 80; top: 13px; left: 13px; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--sc-linea); border-radius: 11px; color: var(--sc-tinta); background: #fff; box-shadow: 0 6px 20px rgba(79,19,38,.15); }
    .sc-saas-menu-toggle span { font-size: 20px; line-height: 1; }
    .sc-saas-menu-backdrop { position: fixed; z-index: 55; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(48,33,38,.5); box-shadow: none; }
    .sc-saas-menu-open .sc-saas-menu-backdrop { display: block; }
    .sc-saas-sidebar { z-index: 60; width: min(290px,84vw); padding-top: 72px; transform: translateX(-105%); transition: transform .22s ease; }
    .sc-saas-menu-open .sc-saas-sidebar { transform: translateX(0); }
    .sc-saas-workspace { width: 100%; margin-left: 0; }
    .sc-saas-topbar { min-height: 105px; padding: 22px 18px 18px 94px; }
    .sc-saas-content { padding: 18px 14px 40px; }
}

@media (max-width: 540px) {
    .sc-saas-topbar { padding: 65px 14px 16px; align-items: flex-start; flex-direction: column; }
    .sc-saas-topbar h1 { font-size: 22px; }
    .sc-saas-topbar > a { position: absolute; top: 13px; right: 13px; padding: 10px 12px !important; }
    .sc-saas-welcome-mark { display: none; }
    .sc-module-title { align-items: stretch; flex-direction: column; padding: 20px; }
    .sc-module-title > a { width: 100%; }
    .sc-saas-current { display: none; }
}

/* El estilo general de botones se declara mas abajo que el menu. Esta regla
   mantiene los botones modulares livianos, legibles y separados. */
.sc-portal-dashboard .sc-saas-sidebar nav button {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    color: var(--sc-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    text-align: left;
    font: 650 13px/1.2 "Segoe UI",Arial,sans-serif !important;
}
.sc-portal-dashboard .sc-saas-sidebar nav button:hover {
    color: var(--sc-bordo-oscuro) !important;
    background: #f2e5c9 !important;
    box-shadow: none !important;
    transform: none !important;
}
.sc-portal-dashboard .sc-saas-sidebar nav button.active {
    color: #fff8e8 !important;
    background: var(--sc-bordo-oscuro) !important;
    font-weight: 800 !important;
}
.sc-portal-dashboard .sc-saas-sidebar nav button.active b { color: #2b2a28; background: #bea36d; }

@media (prefers-reduced-motion: reduce) {
    .sc-modern *, .sc-modern *::before, .sc-modern *::after { transition: none !important; }
}
