@import url("/webjars/datatables/2.1.8/css/dataTables.dataTables.min.css");

.auth-shell {
    min-height: 100vh;
    background: #f4f7fb;
}

.auth-portal-header {
    border-top: 4px solid var(--brand-orange);
    border-bottom: 1px solid var(--brand-border);
    background: #ffffff;
}

.auth-portal-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-portal-brand img {
    width: min(240px, 58vw);
    height: auto;
    display: block;
}

.auth-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: center;
    padding-top: clamp(2.5rem, 7vh, 5rem);
    padding-bottom: clamp(2.5rem, 7vh, 5rem);
}

.auth-intro {
    max-width: 620px;
}

.auth-kicker {
    display: inline-block;
    color: var(--brand-orange-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-intro h1,
.registration-heading h1 {
    margin: 0.7rem 0 1rem;
    color: var(--brand-blue-dark);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
}

.auth-intro > p,
.registration-heading p {
    color: var(--brand-muted);
    font-size: 1.05rem;
}

.auth-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.8rem;
    color: #34455d;
    font-weight: 600;
}

.auth-trust-list i {
    color: var(--brand-green);
    margin-right: 0.35rem;
}

.auth-panel {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--brand-border);
    border-top: 4px solid var(--brand-blue);
    background: #ffffff;
    box-shadow: var(--brand-shadow);
}

.auth-panel h2 {
    margin: 0;
    color: var(--brand-blue-dark);
    font-size: 1.55rem;
    font-weight: 800;
}

.auth-panel-copy {
    margin: 0.35rem 0 1.5rem;
    color: var(--brand-muted);
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-panel .input-group .form-control,
.auth-panel .input-group .input-group-text {
    min-height: 48px;
}

.auth-panel .input-group-text {
    width: 48px;
    justify-content: center;
    border-color: #ced4da;
    background: #f7f9fc;
    color: #637083;
}

.auth-shared-ruc {
    margin-bottom: 1rem;
}

.auth-shared-ruc small {
    display: block;
    margin-top: 0.45rem;
    color: var(--brand-muted);
    line-height: 1.35;
}

.auth-submit {
    min-height: 48px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.4rem 0;
    color: var(--brand-muted);
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--brand-border);
}

.auth-google-form .auth-social-btn {
    width: 100%;
    min-height: 46px;
}

.auth-register-link {
    margin: 1.35rem 0 0;
    text-align: center;
    color: var(--brand-muted);
}

.auth-register-link-intro {
    margin-top: 2rem;
    text-align: left;
}

.auth-register-link-intro a {
    font-weight: 700;
}

.registration-container {
    width: min(1120px, calc(100% - 2rem));
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.registration-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.registration-heading h1 {
    font-size: clamp(2rem, 3.8vw, 3rem);
}

.registration-alert {
    max-width: 900px;
}

.registration-form {
    display: grid;
    gap: 1.25rem;
}

.registration-section {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--brand-border);
    background: #ffffff;
    box-shadow: var(--brand-shadow-soft);
}

.registration-section-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.registration-section-title > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    background: var(--brand-blue);
    color: #ffffff;
    font-weight: 800;
}

.registration-section-title h2 {
    margin: 0;
    color: var(--brand-blue-dark);
    font-size: 1.25rem;
    font-weight: 800;
}

.registration-section-title p {
    margin: 0.2rem 0 0;
    color: var(--brand-muted);
}

.module-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.module-option {
    min-width: 0;
    cursor: pointer;
}

.module-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.module-option-body {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--brand-border);
    background: var(--brand-surface-soft);
    color: #34455d;
}

.module-option-body i {
    color: var(--brand-blue);
    font-size: 1.5rem;
}

.module-option input:checked + .module-option-body {
    border-color: var(--brand-blue);
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
}

.module-option input:focus-visible + .module-option-body {
    outline: 3px solid rgba(37, 99, 235, 0.25);
}

.registration-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
}

.profile-container {
    width: min(960px, calc(100% - 2rem));
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.profile-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-heading h1 {
    margin: 0.55rem 0 0.35rem;
    color: var(--brand-blue-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.profile-heading p {
    margin: 0;
    color: var(--brand-muted);
}

.profile-form .registration-actions {
    margin-top: 1.5rem;
}

.password-page {
    width: min(560px, calc(100% - 2rem));
    padding-top: clamp(2.5rem, 8vh, 5rem);
    padding-bottom: clamp(2.5rem, 8vh, 5rem);
}

.password-panel h1 {
    margin: 0.55rem 0 0;
    color: var(--brand-blue-dark);
    font-size: 1.8rem;
    font-weight: 800;
}

.password-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.oauth-password-note {
    display: grid;
    justify-items: start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--brand-border);
    background: var(--brand-surface-soft);
}

.oauth-password-note > i {
    color: var(--brand-blue);
    font-size: 1.75rem;
}

.oauth-password-note p {
    margin: 0;
    color: var(--brand-muted);
}

.active-institution {
    max-width: 260px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #40516a;
    font-size: 0.84rem;
    font-weight: 700;
}

.active-institution span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .module-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .auth-portal-header-inner {
        min-height: 66px;
    }

    .auth-portal-header .btn span {
        display: none;
    }

    .module-selector {
        grid-template-columns: 1fr;
    }

    .module-option-body {
        min-height: 82px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .registration-actions {
        flex-direction: column-reverse;
    }

    .registration-actions .btn {
        width: 100%;
    }

    .profile-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-heading .btn {
        width: 100%;
    }

    .active-institution {
        display: none;
    }
}

:root {
    --brand-blue: #2563eb;
    --brand-blue-dark: #1b2f58;
    --brand-blue-soft: #eaf1ff;
    --brand-orange: #f97316;
    --brand-orange-dark: #d86610;
    --brand-green: #22a35a;
    --brand-green-soft: #e8f7ee;
    --brand-surface: #f6f8fc;
    --brand-surface-soft: #fbfcff;
    --brand-glass: rgba(255, 255, 255, 0.78);
    --brand-text: #233044;
    --brand-muted: #637083;
    --brand-logo-image: url("/assets/kermexpress-logo.png");
    --brand-background: rgba(255, 255, 255, 0.9);
    --brand-border: rgba(126, 143, 168, 0.24);
    --brand-shadow: 0 12px 34px rgba(31, 47, 73, 0.09);
    --brand-shadow-soft: 0 8px 22px rgba(31, 47, 73, 0.06);
    --brand-radius: 0;
    --brand-radius-sm: 0;
    --brand-footer-bg: #f7f9fc;
}

*,
*::before,
*::after {
    border-radius: 0 !important;
}

.module-check,
.permission-grid {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-sm);
  background: rgba(255, 255, 255, 0.58);
}

.module-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.7rem;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(7rem, 1fr));
  gap: 0.35rem 0.65rem;
  min-width: 18rem;
  padding: 0.5rem;
}

.support-contact-table {
  min-width: 980px;
}

body {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(34, 163, 90, 0.04) 46%, rgba(249, 115, 22, 0.05)),
        var(--brand-surface);
    color: var(--brand-text);
    font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.navbar {
    background: var(--brand-background);
    backdrop-filter: blur(16px);
    border-top: 3px solid var(--brand-orange);
    border-bottom: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow-soft);
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #263548;
}

.navbar-brand {
    font-weight: 700;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-logo-image) center / cover no-repeat;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
    display: inline-block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1rem;
}

.brand-text small {
    font-size: 0.75rem;
    opacity: 0.75;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.83rem;
    white-space: nowrap;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-right: 1px solid var(--brand-border);
    padding-right: 0.9rem;
    margin-right: 0.9rem;
}

.navbar-nav .nav-item:last-child .nav-link {
    border-right: none;
    margin-right: 0;
    padding-right: 0.5rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--brand-blue);
}

.navbar-collapse {
    overflow: visible;
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-actions {
    margin-left: auto;
}

.navbar-actions .dropdown {
    position: relative;
}

.navbar-actions .dropdown-menu {
    min-width: 220px;
}

.btn-search,
.btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0;
    border: 1px solid var(--brand-border);
    color: #1f2937;
    padding: 0.35rem 0.9rem;
    font-weight: 500;
    background: #ffffff;
}

.btn-search svg,
.btn-profile svg {
    width: 18px;
    height: 18px;
}

.btn-profile {
    border-color: var(--brand-border);
}

.profile-icon {
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero {
    background: linear-gradient(120deg, #ffffff 0%, var(--brand-blue-soft) 100%);
    padding: 0.75rem 0 0;
}

.home-service-carousel {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.6rem;
    background: #ffffff;
    box-shadow: 0 0.85rem 2rem rgba(15, 23, 42, 0.12);
}

.home-service-carousel .carousel-item {
    min-height: clamp(17rem, 31vw, 25rem);
    position: relative;
}

.home-service-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.9) 0%, rgba(248, 250, 252, 0.68) 42%, rgba(15, 23, 42, 0.06) 100%);
    pointer-events: none;
}

.home-service-carousel img {
    width: 100%;
    min-height: clamp(17rem, 31vw, 25rem);
    object-fit: cover;
}

.home-carousel-copy {
    position: absolute;
    z-index: 2;
    left: clamp(1.2rem, 5vw, 4rem);
    top: 50%;
    width: min(34rem, calc(100% - 2.4rem));
    transform: translateY(-50%);
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.88);
    color: #111827;
    box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.home-carousel-copy span {
    display: inline-flex;
    margin-bottom: 0.55rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-carousel-copy h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.35rem, 3.2vw, 2.4rem);
    font-weight: 900;
    line-height: 1.04;
}

.home-carousel-copy p {
    margin: 0.7rem 0 0.9rem;
    color: #475569;
    font-size: clamp(0.92rem, 1.2vw, 1.04rem);
    line-height: 1.45;
}

.home-service-carousel .carousel-indicators {
    margin-bottom: 0.8rem;
}

.home-service-carousel .carousel-indicators [data-bs-target] {
    width: 2rem;
    height: 0.28rem;
    border-radius: 999px;
}

.home-service-carousel .carousel-control-prev,
.home-service-carousel .carousel-control-next {
    width: 4rem;
}

.home-feature-card {
    min-height: 10.5rem;
    display: grid;
    grid-template-columns: 8.4rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid rgba(126, 143, 168, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 0.65rem 1.5rem rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-feature-card:hover,
.home-feature-card:focus {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.42);
    color: #111827;
    box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.12);
}

.home-feature-media {
    min-width: 0;
    overflow: hidden;
    background: #e2e8f0;
}

.home-feature-media img {
    width: 100%;
    height: 100%;
    min-height: 9rem;
    display: block;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.home-feature-card:hover .home-feature-media img,
.home-feature-card:focus .home-feature-media img {
    transform: scale(1.04);
}

.home-feature-content {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 0.3rem;
}

.home-feature-content span {
    color: #0f766e;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-feature-content h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    font-weight: 800;
    line-height: 1.1;
}

.home-feature-content p {
    margin: 0;
    color: #526173;
    font-size: 0.9rem;
    line-height: 1.42;
}

.home-feature-card > i {
    align-self: center;
    color: var(--brand-orange);
    font-size: 1rem;
}

.page-image-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(20rem, 34vw, 30rem);
    border: 0;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.page-image-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 14, 28, 0.92) 0%, rgba(15, 23, 42, 0.78) 44%, rgba(15, 23, 42, 0.34) 100%);
}

.page-image-hero .card-body {
    position: relative;
    z-index: 1;
    max-width: 50rem;
}

.page-image-hero .section-hint {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-weight: 800;
}

.page-image-hero .section-title,
.page-image-hero .module-text {
    color: #ffffff;
    text-shadow: 0 0.12rem 0.4rem rgba(0, 0, 0, 0.3);
}

.page-image-hero .module-text {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.9);
}

.page-image-hero-services {
    background-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=82");
}

.page-image-hero-solutions {
    background-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=82");
}

.page-image-hero-community {
    background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1800&q=82");
}

.hero-kicker {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(13, 43, 99, 0.08);
    color: var(--brand-blue);
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 2vw + 2rem, 3.5rem);
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-panel {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    display: grid;
    gap: 1.5rem;
}

.hero-panel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.hero-panel-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-panel-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #6b7280;
}

.btn-brand {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #ffffff;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-orange-dark);
    border-color: var(--brand-orange-dark);
    color: #ffffff;
}

.btn-outline-brand {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background-color: var(--brand-blue);
    color: #ffffff;
}

.module-section {
    padding: 0;
}

.features-item {
    background: #ffffff;
    border-radius: 0;
    border: 1px solid var(--brand-border);
    padding: 1rem 0.75rem;
    box-shadow: none;
}

.features-link {
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.features-link:hover,
.features-link:focus {
    border-color: #9aa5b8;
}

.features-content p {
    color: var(--brand-blue);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.features-content h6 {
    color: #334155;
    margin: 0;
    line-height: 1.4;
}

.feature-circle-wrapper {
    width: 78px;
    height: 78px;
}

.feature-image-frame {
    width: 78px;
    height: 78px;
    border: 3px solid rgba(13, 43, 99, 0.12);
}

.feature-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-badge {
    position: absolute;
    top: 8%;
    right: -10px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue);
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.module-wrapper {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.module-row {
    margin: 0;
    padding: 0.75rem;
}

.feature-tile {
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-tile h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

.error-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-blue-soft) 100%);
}

.error-kicker {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(13, 43, 99, 0.12);
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-title {
    font-size: clamp(2rem, 2vw + 1.5rem, 3rem);
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-text {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.error-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
    background: #ffffff;
    padding: 1.25rem;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}


.profile-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--brand-border);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue-soft), #ffffff);
    color: var(--brand-blue-dark);
    font-weight: 700;
    text-transform: uppercase;
}

.profile-avatar .profile-photo {
    width: 100%;
    height: 100%;
    display: block;
}

.profile-avatar .avatar-fallback {
    display: none;
}

.profile-avatar.is-fallback .avatar-fallback {
    display: inline-flex;
}

.profile-avatar.is-fallback .profile-photo {
    display: none;
}

.btn-profile.dropdown-toggle::after {
    margin-left: 0.25rem;
}

.auth-card-modern {
    border-radius: 16px;
}

.auth-title {
    font-size: clamp(2rem, 2vw + 1rem, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #111827;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #eef0f3;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.auth-social-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.auth-social-icon {
    width: 20px;
    text-align: center;
}

.auth-submit {
    background: #7c3aed;
    border-color: #7c3aed;
}

.auth-submit:hover,
.auth-submit:focus {
    background: #6d28d9;
    border-color: #6d28d9;
}

.auth-card {
    border-radius: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #6b7280;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.user-grid th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0;
}

.section-hint {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card {
    border: 1px solid var(--brand-border);
    border-radius: 0;
}

.module-card {
    background: #ffffff;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card-media {
    border-radius: 0;
    padding: 1.75rem;
    display: flex;
    align-items: flex-end;
    min-height: 140px;
}

.module-card-badge {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    font-size: 0.85rem;
}

.gradient-identity {
    background: linear-gradient(135deg, #fef3c7, #f9a8d4);
}

.gradient-catalogo {
    background: linear-gradient(135deg, #dbeafe, #38bdf8);
}

.gradient-help {
    background: linear-gradient(135deg, #e9d5ff, #c084fc);
}

.gradient-pagos {
    background: linear-gradient(135deg, #bbf7d0, #4ade80);
}

.gradient-herramientas {
    background: linear-gradient(135deg, #fee2e2, #f87171);
}

.gradient-tienda {
    background: linear-gradient(135deg, #fde68a, #f97316);
}

.gradient-impresiones {
    background: linear-gradient(135deg, #e0f2fe, #60a5fa);
}

.gradient-admin {
    background: linear-gradient(135deg, #f3f4f6, #9ca3af);
}

.module-card-body {
    padding: 1.5rem;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.module-title {
    font-size: 1.3rem;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    color: #4b5563;
    font-weight: 500;
}

.module-text {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.module-link {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.module-link::after {
    content: "›";
    font-size: 1.2rem;
}

.module-link:hover,
.module-link:focus {
    text-decoration: underline;
    color: #1d4ed8;
}

.module-list li::before {
    content: "•";
    color: var(--brand-orange);
    margin-right: 0.5rem;
}

main .card {
    background: #ffffff;
}

.site-footer {
    background: var(--brand-footer-bg);
    color: #334155;
    border-top: 1px solid var(--brand-border);
    padding: 1.5rem 0;
    margin-top: 0;
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr minmax(180px, 1fr);
    align-items: center;
    gap: 1rem;
}

.social-link {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    border: 1px solid var(--brand-border);
    text-decoration: none;
    background: #ffffff;
    border-radius: 0;
}

.social-link:hover,
.social-link:focus {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.footer-brand strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.footer-brand span {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-logo {
    width: 70px;
    height: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--brand-blue);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.footer-copy {
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 0.4rem;
}

@media (max-width: 991px) {
    .error-page {
        text-align: center;
    }

    .navbar-actions {
        margin-left: 0;
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: stretch !important;
    }

    .btn-search,
    .btn-profile {
        width: 100%;
        justify-content: center;
    }

    .navbar-actions .dropdown-menu {
        position: static;
        inset: auto;
        transform: none !important;
        width: 100%;
        margin-top: 0.35rem;
    }

    .navbar-nav .nav-link {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

.comunidad-page {
    min-height: 60vh;
}

.community-card {
    border: 1px solid var(--brand-border);
    background: #ffffff;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.community-card:hover,
.community-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.community-card-body {
    padding: 1.25rem;
}

.catalog-product-media {
    height: 11rem;
    overflow: hidden;
    border-bottom: 1px solid var(--brand-border);
    border-radius: 0.75rem 0.75rem 0 0;
    background: var(--brand-surface-soft);
}

.catalog-product-media img,
.catalog-product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    object-fit: cover;
    color: var(--brand-muted);
    font-size: 2.2rem;
}

.catalog-share-panel {
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    width: min(100%, 26rem);
    max-width: 26rem;
    padding: 0.85rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.catalog-share-qr {
    display: grid;
    place-items: center;
    width: 6.25rem;
    min-height: 6.25rem;
    padding: 0.3rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.45rem;
    background: #ffffff;
}

.catalog-share-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.catalog-share-panel strong,
.catalog-share-panel span {
    display: block;
}

.catalog-share-panel span {
    color: var(--brand-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.catalog-product-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.8rem;
    gap: 0.85rem;
    align-items: start;
}

.catalog-product-code {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
}

.catalog-product-qr {
    display: grid;
    place-items: center;
    width: 4.8rem;
    min-height: 4.8rem;
    padding: 0.25rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.45rem;
    background: #ffffff;
}

.catalog-product-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.catalog-product-code span {
    color: var(--brand-blue-dark);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.jcp-error-page {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 46%, #eff6ff 100%);
}

.error-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    background: #fff;
    box-shadow: var(--brand-shadow-soft);
}

.error-brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
}

.error-brand strong,
.error-brand span {
    display: block;
    line-height: 1.15;
}

.error-brand strong {
    color: var(--brand-text);
    font-weight: 700;
}

.error-brand span {
    color: var(--brand-muted);
    font-size: 0.82rem;
}

.error-visual-card {
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--brand-shadow-soft);
}

.error-logo {
    width: min(260px, 72vw);
    height: auto;
}

.error-visual-card .error-illustration {
    box-shadow: none;
    padding: 0;
    max-height: 260px;
}

.community-group {
    height: 100%;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    background: var(--brand-glass);
    box-shadow: var(--brand-shadow-soft);
    backdrop-filter: blur(14px);
    padding: 1rem;
}

.community-group-title {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
}

.community-group-grid {
    display: grid;
    gap: 0.85rem;
}

.bkr-public-page {
    background: #f8fafc;
}

.bkr-public-hero {
    padding: clamp(2rem, 5vw, 4rem) 0 2rem;
    background: #ffffff;
}

.bkr-public-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.bkr-public-hero-copy {
    display: grid;
    gap: 1rem;
}

.bkr-public-hero-copy h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(2rem, 5vw, 4.4rem);
    font-weight: 900;
    line-height: 0.98;
}

.bkr-public-hero-copy p {
    max-width: 42rem;
    margin: 0;
    color: #475569;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.65;
}

.bkr-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.bkr-public-hero-media {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #111827;
    box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.2);
}

.bkr-public-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.bkr-public-section {
    padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.bkr-public-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bkr-public-feature {
    min-height: 22rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.bkr-public-feature img {
    display: block;
    width: 100%;
    height: 13rem;
    object-fit: cover;
}

.bkr-feature-bingo img {
    object-fit: contain;
    padding: 1rem;
    background: #fff;
}

.bkr-public-feature > div:not(.bkr-public-plate) {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
}

.bkr-public-feature span {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.bkr-public-feature h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-weight: 900;
    line-height: 1.1;
}

.bkr-public-feature p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.bkr-feature-pollada {
    display: grid;
    grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
    align-items: stretch;
    background: #fff7ed;
}

.bkr-feature-pollada > div:not(.bkr-public-plate) {
    align-content: center;
}

.bkr-public-plate {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.5rem;
    min-height: 100%;
    background: linear-gradient(160deg, #dc2626 0%, #f59e0b 100%);
    color: #fff;
}

.bkr-public-plate span {
    display: grid;
    place-items: center;
    width: 6rem;
    aspect-ratio: 1;
    border: 0.25rem solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    color: #fff;
    font-size: 3.8rem;
    font-weight: 900;
}

.bkr-public-plate strong {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
}

.bkr-public-band {
    padding: 2rem 0 3rem;
    background: #111827;
    color: #fff;
}

.bkr-public-print-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.bkr-public-print-grid div {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
}

.bkr-public-print-grid i {
    color: #fbbf24;
    font-size: 1.5rem;
}

.bkr-public-print-grid strong {
    font-size: 1.05rem;
}

.bkr-public-print-grid span {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 991px) {
    .home-feature-card {
        grid-template-columns: 7rem minmax(0, 1fr) auto;
    }

    .home-feature-media img {
        min-height: 8rem;
    }

    .home-service-carousel .carousel-item,
    .home-service-carousel img {
        min-height: 23rem;
    }

    .home-service-carousel .carousel-item::after {
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.82) 0%, rgba(248, 250, 252, 0.62) 58%, rgba(15, 23, 42, 0.08) 100%);
    }

    .home-carousel-copy {
        left: 1rem;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        padding: 0.9rem;
    }

    .home-service-carousel .carousel-control-prev,
    .home-service-carousel .carousel-control-next {
        width: 2.6rem;
    }

    .page-image-hero {
        min-height: 24rem;
    }

    .page-image-hero::before {
        background: linear-gradient(180deg, rgba(7, 14, 28, 0.88) 0%, rgba(15, 23, 42, 0.8) 66%, rgba(15, 23, 42, 0.54) 100%);
    }

    .bkr-public-hero-grid,
    .bkr-public-feature-grid,
    .bkr-public-print-grid {
        grid-template-columns: 1fr;
    }

    .bkr-feature-pollada {
        grid-template-columns: 1fr;
    }

    .bkr-public-plate {
        min-height: 12rem;
    }
}

@media (max-width: 640px) {
    .home-feature-card {
        grid-template-columns: 1fr;
    }

    .home-feature-media img {
        height: 9.5rem;
    }

    .home-feature-card > i {
        display: none;
    }
}

.support-highlight-card,
.support-hero-card,
.support-info-card,
.support-plan-card,
.support-plan-detail,
.support-scope-card {
    border-radius: 0;
    border: 1px solid var(--brand-border);
}

.support-highlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #edf3ff 100%);
}

.support-list {
    columns: 1;
}

.plan-title {
    color: var(--brand-blue);
    font-weight: 700;
}

.plan-price {
    color: var(--brand-orange-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.support-plan-card .card-body,
.support-plan-detail .card-body,
.support-scope-card .card-body {
    padding: 1.5rem;
}

.support-scope-card h3,
.support-plan-detail h2 {
    color: var(--brand-blue);
    font-weight: 700;
}


.support-plan-header {
    padding: 1rem 1.5rem;
    color: #ffffff;
}


.support-plan-preview-header {
    padding: 1rem 1.5rem;
    color: #ffffff;
}

.support-plan-preview-header .plan-title {
    color: inherit;
}


.support-plan-header h2 {
    color: inherit;
}

.plan-color-1 { background: #ffc107; color: #1f2937; }
.plan-color-2 { background: #dc3545; }
.plan-color-3 { background: #6c757d; }
.plan-color-4 { background: #0d6efd; }
.plan-color-5 { background: #212529; }
.plan-color-6 { background: #198754; }
.support-plan-detail {
    background: #ffffff;
}

.form-control,
.form-select {
    border-radius: 0;
}

@media (min-width: 992px) {
    .support-list {
        columns: 2;
        column-gap: 2rem;
    }
}

/* Unified Enterprise Glass layer */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.auth-title,
.section-title,
.module-title,
.plan-title {
    color: var(--brand-blue-dark);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.22;
}

h1,
.hero-title,
.auth-title {
    font-size: clamp(1.55rem, 1.05rem + 1.2vw, 2.2rem);
}

h2,
.section-title {
    font-size: clamp(1.25rem, 1rem + 0.6vw, 1.65rem);
}

h3,
.module-title {
    font-size: clamp(1.05rem, 0.96rem + 0.25vw, 1.25rem);
}

p,
li,
.hero-subtitle,
.module-text,
.section-hint,
.features-content h6 {
    color: var(--brand-muted);
}

strong,
b,
.fw-bold,
.fw-semibold {
    font-weight: 600 !important;
}

.container {
    max-width: 1180px;
}

.navbar .container {
    gap: 1rem;
}

.navbar-brand {
    font-weight: 600;
}

.navbar-brand img {
    width: clamp(150px, 16vw, 205px);
    height: auto;
}

.navbar-nav .nav-link {
    border-right: 0;
    border-radius: var(--brand-radius-sm);
    color: var(--brand-muted);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0;
    margin-right: 0.15rem;
    padding: 0.45rem 0.7rem;
    text-transform: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-blue-dark);
}

.btn,
.btn-search,
.btn-profile,
.dropdown-menu,
.form-control,
.form-select,
.form-check-input {
    border-radius: var(--brand-radius-sm);
}

.btn,
.btn-search,
.btn-profile {
    min-height: 2.35rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-search,
.btn-profile,
.profile-icon,
.dropdown-menu {
    background: rgba(255, 255, 255, 0.76);
    border-color: var(--brand-border);
}

.hero {
    background: transparent;
    padding: 1.25rem 0 0;
}

.hero-kicker,
.error-kicker,
.section-hint,
.features-content p,
.module-card-badge {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
}

.hero-panel,
.features-item,
.card,
.module-card,
.community-card,
.support-highlight-card,
.support-hero-card,
.support-info-card,
.support-plan-card,
.support-plan-detail,
.support-scope-card,
.auth-card,
.auth-card-modern,
.error-illustration {
    background: var(--brand-glass);
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow-soft);
    backdrop-filter: blur(14px);
}

.features-item,
.module-card-body,
.support-plan-card .card-body,
.support-plan-detail .card-body,
.support-scope-card .card-body {
    padding: 1rem;
}

.features-link:hover,
.features-link:focus,
.module-card:hover,
.community-card:hover,
.community-card:focus {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--brand-shadow);
    transform: translateY(-1px);
}

.feature-circle-wrapper,
.feature-image-frame {
    width: 64px;
    height: 64px;
}

.feature-badge {
    background: var(--brand-orange);
    font-weight: 600;
}

.btn-brand,
.auth-submit {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    border-color: transparent;
}

.btn-brand:hover,
.btn-brand:focus,
.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-green));
    border-color: transparent;
}

.btn-outline-brand {
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(37, 99, 235, 0.34);
}

.module-card-media,
.gradient-identity,
.gradient-catalogo,
.gradient-help,
.gradient-pagos,
.gradient-herramientas,
.gradient-tienda,
.gradient-impresiones,
.gradient-admin,
.support-highlight-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(34, 163, 90, 0.09), rgba(249, 115, 22, 0.11));
}

.plan-color-1,
.plan-color-2,
.plan-color-3,
.plan-color-4,
.plan-color-5,
.plan-color-6,
.support-plan-header,
.support-plan-preview-header {
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
    color: #fff;
}

.site-footer {
    background: var(--brand-footer-bg);
    color: var(--brand-muted);
}

.footer-brand strong,
.footer-links a,
.social-link {
    color: var(--brand-text);
}

.site-footer .text-white,
.site-footer .footer-copy {
    color: var(--brand-muted) !important;
}

.site-footer .footer-brand strong {
    color: var(--brand-text) !important;
}

.site-footer .footer-links a {
    color: var(--brand-muted) !important;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
    color: var(--brand-blue-dark) !important;
}

.social-link {
    border-radius: var(--brand-radius-sm);
}

/* Modern SaaS interface */
:root {
    --brand-blue: #3b82f6;
    --brand-blue-dark: #172554;
    --brand-blue-soft: #eff6ff;
    --brand-green: #16a34a;
    --brand-green-soft: #ecfdf3;
    --brand-red: #dc2626;
    --brand-surface: #f7f9fc;
    --brand-surface-soft: #ffffff;
    --brand-text: #172033;
    --brand-muted: #667085;
    --brand-border: #e5e9f2;
    --brand-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --brand-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --brand-radius: 16px;
    --brand-radius-sm: 12px;
}

html {
    background: var(--brand-surface);
}

body {
    background: var(--brand-surface);
    color: var(--brand-text);
    font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

a {
    color: var(--brand-blue);
}

.navbar {
    border-top: 0;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: none;
}

.btn {
    border-radius: var(--brand-radius-sm);
}

.btn-brand,
.auth-submit {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
}

.btn-brand:hover,
.btn-brand:focus,
.auth-submit:hover,
.auth-submit:focus {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-outline-brand {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #fff;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    color: #fff;
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.card,
.auth-card,
.auth-card-modern,
.community-card,
.community-group,
.support-highlight-card,
.support-hero-card,
.support-info-card,
.support-plan-card,
.support-plan-detail,
.support-scope-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow-soft);
}

.form-control,
.form-select {
    min-height: 2.65rem;
    border-color: #d9e0ea;
    border-radius: var(--brand-radius-sm);
    color: var(--brand-text);
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.24rem rgba(59, 130, 246, 0.12);
}

.form-label {
    color: #344054;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.alert {
    border: 0;
    border-radius: var(--brand-radius-sm);
}

.alert-success {
    background: var(--brand-green-soft);
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    color: var(--brand-red);
}

.table {
    --bs-table-striped-bg: #f8fafc;
    margin-bottom: 0;
    color: #334155;
}

.table > :not(caption) > * > * {
    border-bottom-color: #edf1f7;
    padding: 0.82rem 0.9rem;
}

.table thead th {
    background: #f8fafc;
    color: #667085;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.table-responsive {
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    overflow: auto;
}

.data-table-shell {
    padding: 0.75rem;
}

.data-table-shell .dt-container {
    color: var(--brand-text);
}

.data-table-shell .dt-search,
.data-table-shell .dt-length,
.data-table-shell .dt-info,
.data-table-shell .dt-paging {
    color: var(--brand-muted);
    font-size: 0.9rem;
}

.data-table-shell .dt-input {
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-sm);
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-text);
    min-height: 2.1rem;
}

.support-client-form {
    display: grid;
    gap: 1rem;
}

.support-detail-section {
    display: grid;
    gap: 0.75rem;
}

.support-detail-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.support-detail-heading h3 {
    margin: 0;
    color: var(--brand-blue-dark);
    font-size: 1rem;
    font-weight: 700;
}

.support-detail-heading p {
    margin: 0.15rem 0 0;
    color: var(--brand-muted);
    font-size: 0.9rem;
}

.support-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.support-detail-table > :not(caption) > * > * {
    padding: 0.45rem 0.6rem;
}

.support-detail-table .action-icon {
    width: 2rem;
    height: 2rem;
}

.compact-permission-grid {
    background: #f8fafc;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-sm);
    padding: 0.65rem;
}

.compact-inline-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(8rem, 1fr));
    gap: 0.4rem;
}

.compact-table-input {
    min-height: 2rem;
    padding: 0.25rem 0.45rem;
}

.compact-table-permissions {
    padding: 0.35rem;
}

@media (max-width: 768px) {
    .data-table-shell {
        padding: 0.5rem;
    }

    .support-detail-heading,
    .support-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .support-form-actions .btn {
        width: 100%;
    }

    .compact-inline-pair {
        grid-template-columns: 1fr;
    }
}

.dropdown-menu {
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-sm);
    box-shadow: var(--brand-shadow);
}

.icon-button {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-sm);
    background: #fff;
    color: #475467;
    text-decoration: none;
}

.icon-button:hover,
.icon-button:focus {
    color: var(--brand-blue);
    border-color: #bfdbfe;
    background: var(--brand-blue-soft);
}

.app-shell-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-right: 1px solid var(--brand-border);
    z-index: 1035;
}

.app-sidebar-header,
.app-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-sidebar-header {
    justify-content: space-between;
    min-height: 3rem;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-text);
    text-decoration: none;
    min-width: 0;
}

.app-brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.auth-portal-brand,
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.auth-portal-brand .brand-mark-inline,
.navbar-brand .brand-mark-inline {
    width: 2.6rem;
    height: 2.6rem;
    object-fit: contain;
    flex: none;
}

.app-brand-text {
    display: grid;
    line-height: 1.1;
}

.app-brand-text strong {
    color: var(--brand-text);
}

.app-brand-text small {
    color: var(--brand-muted);
    font-size: 0.74rem;
}

.brand-wordmark {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.auth-portal-brand .brand-wordmark {
    width: clamp(155px, 28vw, 225px);
}

.navbar-brand .brand-wordmark {
    width: clamp(140px, 15vw, 185px);
}

.app-brand-text .brand-wordmark {
    width: 150px;
}

.footer-brand .brand-wordmark {
    width: 190px;
    margin-bottom: 0.3rem;
}

.error-brand .brand-wordmark {
    width: 185px;
    margin-bottom: 0.25rem;
}

.error-visual-card .brand-wordmark {
    width: min(270px, 72vw);
}

.app-nav {
    display: grid;
    gap: 0.35rem;
}

.app-nav-section {
    margin: 0.85rem 0 0.2rem;
    padding: 0 0.8rem;
    color: #98a2b3;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-nav-section:first-child {
    margin-top: 0;
}

.app-nav-link {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 0.8rem;
    border-radius: 14px;
    color: #475467;
    font-weight: 600;
    text-decoration: none;
}

.app-nav-link svg,
.app-nav-link i {
    width: 1.1rem;
    color: #94a3b8;
}

.app-nav-link:hover,
.app-nav-link:focus {
    background: #f8fafc;
    color: var(--brand-blue-dark);
}

.app-nav-link.active {
    background: var(--brand-blue-soft);
    color: #1d4ed8;
}

.app-nav-link.active svg,
.app-nav-link.active i {
    color: var(--brand-blue);
}

.app-sidebar-footer {
    display: grid;
    margin-top: auto;
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(247, 249, 252, 0.9);
    border-bottom: 1px solid rgba(229, 233, 242, 0.9);
    backdrop-filter: blur(16px);
}

.app-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.app-topbar h1 {
    margin: 0;
    color: var(--brand-text);
    font-size: clamp(1.18rem, 1rem + 0.45vw, 1.55rem);
    font-weight: 700;
}

.app-topbar p {
    margin: 0.12rem 0 0;
    color: var(--brand-muted);
    font-size: 0.88rem;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.cliente-context-form {
    min-width: min(18rem, 34vw);
}

.cliente-context-select {
    min-height: 2.45rem;
    max-width: 18rem;
    padding-right: 2rem;
    background-color: #fff;
    font-weight: 600;
}

.profile-copy {
    display: grid;
    line-height: 1.05;
    text-align: left;
}

.profile-copy small {
    color: var(--brand-muted);
    font-size: 0.72rem;
}

.app-content {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 1.4rem;
}

.app-section {
    display: grid;
    gap: 1rem;
}

.app-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-page-header h2 {
    margin: 0;
    color: var(--brand-text);
    font-size: 1.25rem;
}

.app-page-header p {
    margin: 0.2rem 0 0;
    color: var(--brand-muted);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.kpi-card {
    min-height: 138px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow-soft);
}

.kpi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.kpi-icon {
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.kpi-label {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.83rem;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kpi-value {
    margin: 0.65rem 0 0;
    color: var(--brand-text);
    font-size: 1.8rem;
    font-weight: 750;
    line-height: 1.18;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.support-case-summary .kpi-card {
    min-height: 128px;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.support-case-summary .kpi-value {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.35rem);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.support-case-summary .kpi-card:nth-child(3) .kpi-value {
    font-size: clamp(1.45rem, 1.1rem + 0.8vw, 1.8rem);
    -webkit-line-clamp: 1;
}

.kpi-trend {
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 700;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    min-height: 116px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow-soft);
}

.quick-card:hover,
.quick-card:focus {
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.quick-card h3 {
    margin: 0 0 0.35rem;
    color: var(--brand-text);
    font-size: 1rem;
}

.quick-card p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.88rem;
}

.bkr-action-grid {
    display: grid;
    gap: 0.75rem;
}

.bkr-action-card {
    min-height: 96px;
    padding: 0.85rem;
}

.bkr-action-card h3 {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.bkr-action-card h3 i {
    color: var(--brand-blue);
    width: 1.1rem;
}

.qr-print-body {
    background: #fff;
}

.qr-print-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem;
}

.qr-print-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qr-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.qr-card-print {
    min-height: 260px;
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px dashed #9ca3af;
    border-radius: 8px;
    text-align: center;
    break-inside: avoid;
}

.qr-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.qr-card-print h2 {
    margin: 0.2rem 0 0;
    font-size: 1rem;
}

.qr-card-print p {
    margin: 0;
    color: #475467;
    font-size: 0.68rem;
    overflow-wrap: anywhere;
}

@media print {
    .qr-print-toolbar {
        display: none;
    }

    .qr-print-page {
        padding: 0;
    }

    .qr-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }

    .qr-card-print {
        box-shadow: none;
    }
}

.soft-panel {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow-soft);
}

.soft-panel-body {
    padding: 1.15rem;
}

.chart-strip {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    gap: 0.5rem;
    height: 165px;
    padding: 1rem;
    border-radius: var(--brand-radius);
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--brand-border);
}

.chart-strip span {
    display: block;
    min-height: 22px;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pill.success {
    background: var(--brand-green-soft);
    color: #166534;
}

.status-pill.danger {
    background: #fef2f2;
    color: var(--brand-red);
}

.action-icon-group {
    display: inline-flex;
    gap: 0.35rem;
}

.action-icon {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    color: #64748b;
    background: #fff;
    text-decoration: none;
}

.action-icon:hover,
.action-icon:focus {
    color: var(--brand-blue);
    border-color: #bfdbfe;
    background: var(--brand-blue-soft);
}

.bingo-card-row {
    cursor: pointer;
}

.bingo-card-detail-grid {
    display: grid;
    gap: 0.75rem;
    width: min(100%, 42rem);
    margin: 0 auto;
}

.bingo-card-detail-card {
    padding: clamp(0.75rem, 2.5vw, 1.5rem);
    border-radius: 0.35rem;
}

.bingo-card-detail-75 {
    max-width: 31rem;
    background: var(--card-color, #d70000);
    justify-self: center;
    border: 0.35rem solid var(--card-color, #d70000);
}

.bingo-card-detail-title {
    color: #fffdf0;
    font-size: clamp(3rem, 12vw, 6rem);
    line-height: 0.95;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0;
    margin-bottom: clamp(0.8rem, 2vw, 1.25rem);
}

.bingo-card-detail-board-75 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
}

.bingo-card-detail-board-90 {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0.12rem;
    width: 100%;
    border: 0.25rem solid var(--card-color, #22c000);
    background: var(--card-color, #22c000);
}

.bingo-card-detail-90 {
    background: #fff;
    border: 0.25rem solid var(--card-color, #22c000);
    max-width: 48rem;
    justify-self: center;
}

.bingo-card-detail-header {
    display: grid;
    place-items: center;
    min-height: 2.4rem;
    background: #fffdf0;
    color: var(--card-color, #d70000);
    font-size: clamp(1.4rem, 4vw, 2.3rem);
    font-weight: 900;
}

.bingo-card-detail-grid-info {
    width: min(100%, 28rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bingo-card-detail-cell {
    display: grid;
    place-items: center;
    min-height: clamp(3.2rem, 9vw, 5.2rem);
    border-radius: 0;
    border: 0.15rem solid transparent;
    background: #fffdf0;
    color: #1f1d20;
    font-size: clamp(1.6rem, 7vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
}

.bingo-card-detail-board-75 .bingo-card-detail-cell {
    border-color: var(--card-color, #d70000);
}

.bingo-card-detail-board-90 .bingo-card-detail-cell {
    min-height: clamp(3rem, 6vw, 4.45rem);
    border: 1px solid var(--card-color, #22c000);
    background: #fff;
    color: var(--card-color, #22c000);
    font-size: clamp(1.55rem, 4.1vw, 2.85rem);
    overflow: hidden;
}

.bingo-card-detail-board-90 .bingo-card-detail-cell.blank {
    background: color-mix(in srgb, var(--card-color, #22c000) 38%, #fff);
    color: transparent;
}

.bingo-card-detail-cell.free {
    font-size: clamp(0.95rem, 3.5vw, 1.45rem);
    font-weight: 900;
    background: #facc15;
    color: #78350f;
}

.bingo-card-detail-cell.free::before {
    content: "LIBRE";
}

.bingo-card-detail-cell.marked {
    position: relative;
    background: #16a34a;
    border-color: #15803d;
    color: #fff;
    box-shadow: inset 0 0 0 0.18rem rgba(255, 255, 255, 0.7), 0 0 1rem rgba(22, 163, 74, 0.55);
}

.bingo-card-detail-cell.marked::after {
    content: "✓";
    position: absolute;
    right: 0.35rem;
    bottom: 0.25rem;
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #fff;
    color: #15803d;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.22);
}

.bingo-card-detail-board-90 .bingo-card-detail-cell.marked {
    background: #27bd00;
    border-color: #15803d;
    color: #fff;
}

.bingo-card-detail-footer {
    width: min(100%, 48rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin: 0.75rem auto 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.bingo-card-detail-cell.marked::after {
    content: "\2713";
}

.bingo-card-detail-board-90 .bingo-card-detail-cell.marked {
    background: var(--card-color, #22c000);
}

.bingo-card-detail-card .bingo-card-detail-footer {
    width: 100%;
    border-top-color: rgba(255, 255, 255, 0.36);
    color: #fff;
}

.bingo-card-detail-90 .bingo-card-detail-footer {
    color: var(--card-color, #22c000);
    border-top-color: color-mix(in srgb, var(--card-color, #22c000) 40%, #fff);
}

.bingo-card-detail-footer span,
.bingo-card-detail-footer strong {
    display: block;
}

.bingo-card-detail-footer span {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.bingo-card-detail-footer strong {
    overflow-wrap: anywhere;
    font-size: clamp(1rem, 4vw, 1.8rem);
    font-weight: 900;
}

.fundraiser-ticket {
    width: min(100%, 30rem);
    justify-self: center;
    overflow: hidden;
    border: 0.22rem solid var(--card-color, #d70000);
    border-radius: 0.4rem;
    background: #fffaf0;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.14);
}

.fundraiser-ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem 0.55rem;
    background: var(--card-color, #d70000);
    color: #fff;
}

.fundraiser-ticket-header h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.55rem, 7vw, 2.8rem);
    font-weight: 900;
    line-height: 0.96;
    text-transform: uppercase;
}

.fundraiser-ticket-header span {
    flex: 0 0 auto;
    padding: 0.3rem 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
}

.fundraiser-ticket-hero {
    display: grid;
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    border-bottom: 0.18rem dashed color-mix(in srgb, var(--card-color, #d70000) 45%, #fff);
}

.fundraiser-ticket-icon {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 0.2rem solid var(--card-color, #d70000);
    border-radius: 999px;
    background: #fff;
    color: var(--card-color, #d70000);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.fundraiser-ticket-hero strong,
.fundraiser-ticket-hero span {
    display: block;
    overflow-wrap: anywhere;
}

.fundraiser-ticket-hero strong {
    color: #111827;
    font-size: clamp(1rem, 4vw, 1.35rem);
    line-height: 1.1;
}

.fundraiser-ticket-hero span {
    margin-top: 0.35rem;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 800;
}

.fundraiser-ticket-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.8rem 0.9rem;
    background: #fff;
}

.fundraiser-ticket-meta div {
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    text-align: center;
}

.fundraiser-ticket-meta span,
.fundraiser-ticket-meta strong {
    display: block;
}

.fundraiser-ticket-meta span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.fundraiser-ticket-meta strong {
    overflow-wrap: anywhere;
    color: #111827;
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    font-weight: 900;
}

.fundraiser-ticket-note {
    padding: 0.55rem 0.9rem 0.7rem;
    background: #111827;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.fundraiser-ticket-rifa .fundraiser-ticket-hero {
    min-height: 9rem;
}

.fundraiser-ticket-pollada {
    width: min(100%, 36rem);
    border-color: #111827;
}

.fundraiser-ticket-pollada .fundraiser-ticket-header {
    background: #d71920;
}

.fundraiser-ticket-pollada .fundraiser-ticket-icon {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #b45309;
}

.fundraiser-ticket-pollada .fundraiser-ticket-note {
    background: #f59e0b;
    color: #111827;
}

@media (max-width: 640px) {
    .bingo-card-detail-card {
        padding: 0.55rem;
    }

    .bingo-card-detail-board-75 {
        gap: 0.2rem;
    }

    .bingo-card-detail-board-90 .bingo-card-detail-cell {
        font-size: clamp(1.45rem, 7.5vw, 3.1rem);
    }

    .bingo-card-detail-grid-info {
        grid-template-columns: 1fr;
    }

    .fundraiser-ticket-hero,
    .fundraiser-ticket-meta {
        grid-template-columns: 1fr;
    }

    .fundraiser-ticket-icon {
        width: 5.2rem;
        justify-self: center;
    }
}

.app-sidebar-backdrop {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

.sidebar-collapsed {
    grid-template-columns: 88px minmax(0, 1fr);
}

.sidebar-collapsed .app-sidebar {
    align-items: center;
}

.sidebar-collapsed .app-brand-text,
.sidebar-collapsed .app-nav-section,
.sidebar-collapsed .app-nav-link span {
    display: none;
}

.sidebar-collapsed .app-nav-link {
    width: 3.1rem;
    justify-content: center;
    padding-inline: 0;
}

@media (max-width: 1199px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .app-shell,
    .sidebar-collapsed {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 320px);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: var(--brand-shadow);
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-sidebar-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        pointer-events: none;
        opacity: 0;
        background: rgba(15, 23, 42, 0.36);
        z-index: 1030;
        transition: opacity 0.2s ease;
    }

    .sidebar-open .app-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .app-content {
        padding: 1rem 1rem 5.5rem;
    }

    .app-topbar {
        padding: 0.8rem 1rem;
    }

    .app-topbar-actions .profile-copy,
    .app-topbar-actions .dropdown-toggle::after {
        display: none;
    }

    .cliente-context-form {
        min-width: 0;
        width: min(44vw, 15rem);
    }

    .cliente-context-select {
        max-width: 100%;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0.85rem;
        right: 0.85rem;
        bottom: 0.85rem;
        z-index: 1020;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.3rem;
        padding: 0.45rem;
        border: 1px solid var(--brand-border);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--brand-shadow);
        backdrop-filter: blur(16px);
    }

    .mobile-bottom-nav a {
        display: grid;
        justify-items: center;
        gap: 0.2rem;
        padding: 0.45rem 0.2rem;
        border-radius: 14px;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-bottom-nav a.active {
        color: var(--brand-blue);
        background: var(--brand-blue-soft);
    }
}

@media (max-width: 640px) {
    .kpi-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .support-case-summary {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .support-case-summary .kpi-card {
        min-height: auto;
    }

    .support-case-summary .kpi-value {
        display: block;
        overflow: visible;
        font-size: clamp(0.98rem, 0.92rem + 0.35vw, 1.12rem);
        -webkit-line-clamp: unset;
    }

    .support-case-summary .kpi-card:nth-child(3) .kpi-value {
        font-size: 1.45rem;
    }

    .app-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .app-page-header .btn,
    .app-page-header .d-flex {
        width: 100%;
    }

.app-page-header .d-flex .btn {
        flex: 1;
    }
}

/* Compact colored sections */
.support-plan-compact-grid .support-plan-detail {
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

.support-plan-compact-grid .support-plan-header {
    min-height: 3.15rem;
    display: grid;
    align-items: center;
    padding: 0.65rem 0.75rem;
}

.support-plan-compact-grid .support-plan-header h3 {
    color: inherit;
    font-size: 0.94rem;
    line-height: 1.1;
}

.support-plan-compact-grid .support-plan-detail .card-body {
    padding: 0.7rem 0.8rem;
}

.support-plan-compact-grid .module-list {
    display: grid;
    gap: 0.24rem;
    margin: 0;
    padding-left: 1rem;
}

.support-plan-compact-grid .module-list li {
    font-size: 0.82rem;
    line-height: 1.25;
}

.support-plan-compact-grid .plan-color-1 { background: #f59e0b; color: #111827; }
.support-plan-compact-grid .plan-color-2 { background: #2563eb; color: #ffffff; }
.support-plan-compact-grid .plan-color-3 { background: #0f766e; color: #ffffff; }
.support-plan-compact-grid .plan-color-4 { background: #7c3aed; color: #ffffff; }
.support-plan-compact-grid .plan-color-5 { background: #334155; color: #ffffff; }

.support-scope-card,
.module-card {
    overflow: hidden;
}

.row > .col:nth-child(1) .support-scope-card,
.row > [class*="col-"]:nth-child(1) .module-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.row > .col:nth-child(2) .support-scope-card,
.row > [class*="col-"]:nth-child(2) .module-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #ccfbf1 100%);
    border-color: #99f6e4;
}

.row > .col:nth-child(3) .support-scope-card,
.row > [class*="col-"]:nth-child(3) .module-card {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-color: #fdba74;
}

.row > .col:nth-child(4) .support-scope-card,
.row > [class*="col-"]:nth-child(4) .module-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 100%);
    border-color: #c4b5fd;
}

.row > .col:nth-child(5) .support-scope-card,
.row > [class*="col-"]:nth-child(5) .module-card {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    border-color: #cbd5e1;
}

.support-scope-card h3,
.module-card .module-title {
    color: #111827;
}

.support-scope-card p,
.module-card .module-text {
    color: #374151;
}

.event-selector-panel {
    margin-bottom: 1rem;
}

.event-selector-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.event-selector-main {
    min-width: 0;
}

.event-selector-actions {
    display: inline-flex;
    gap: 0.45rem;
}

.event-icon-btn {
    width: 2.5rem;
    min-width: 2.5rem;
    padding-inline: 0;
}

.activity-workspace,
.activity-flow-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.activity-panel {
    min-width: 0;
}

.activity-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-panel-header h3 {
    margin: 0;
    color: var(--brand-blue-dark);
    font-size: 1.15rem;
    font-weight: 800;
}

.activity-panel-header p {
    margin: 0.2rem 0 0;
    color: var(--brand-muted);
    font-size: 0.88rem;
}

.activity-panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.activity-table tbody tr {
    cursor: pointer;
}

.activity-row-selected td {
    background: var(--brand-blue-soft);
}

.activity-description-panel {
    min-height: 13rem;
    padding: 1rem;
    border: 1px solid var(--brand-border);
    background: var(--brand-surface-soft);
}

.activity-description-panel h4 {
    margin: 0 0 0.5rem;
    color: var(--brand-blue-dark);
    font-size: 1rem;
    font-weight: 800;
}

.activity-description-panel p {
    margin: 0;
    color: #40516a;
    white-space: pre-wrap;
}

.activity-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activity-modal-actions .btn {
    min-width: 8.5rem;
}

.cards-state-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.cards-state-legend span {
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--brand-border);
    background: var(--brand-surface-soft);
    color: #40516a;
    font-size: 0.78rem;
    font-weight: 800;
}

.cards-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr));
    gap: 0.55rem;
    max-height: min(66vh, 38rem);
    overflow: auto;
    padding: 0.25rem;
}

.card-map-cell {
    position: relative;
    min-height: 5.4rem;
    overflow: hidden;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.1rem;
    padding: 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 0.45rem;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1;
}

.card-map-cell .card-map-state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.42);
    font-size: clamp(3.4rem, 12vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.card-map-cell strong,
.card-map-cell small {
    position: relative;
    z-index: 1;
    overflow-wrap: anywhere;
    text-align: center;
}

.card-map-cell strong {
    font-size: 0.86rem;
    font-weight: 900;
}

.card-map-cell small {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-map-cell:hover,
.card-map-cell:focus {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    border-color: var(--brand-blue);
}

.activity-card-state-form {
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border);
}

.product-cell {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
}

.product-cell img,
.product-placeholder {
    width: 3.2rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--brand-border);
    border-radius: 0.35rem;
    background: var(--brand-surface-soft);
}

.product-placeholder {
    display: grid;
    place-items: center;
    color: var(--brand-muted);
}

.product-cell strong,
.product-cell small {
    display: block;
}

.product-cell small {
    color: var(--brand-muted);
}

.product-form-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--brand-border);
}

.product-form-section:first-child {
    padding-top: 0;
}

.product-form-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-form-section h4 {
    margin: 0 0 0.85rem;
    color: var(--brand-blue-dark);
    font-size: 1rem;
    font-weight: 800;
}

.price-history-panel {
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border);
}

.price-history-panel h6 {
    margin: 0 0 0.75rem;
    color: var(--brand-blue-dark);
    font-size: 0.95rem;
    font-weight: 800;
}

.product-image-field {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.product-image-field img {
    display: block;
    width: 9rem;
    min-width: 9rem;
    height: 6.75rem;
    object-fit: cover;
    border: 1px solid var(--brand-border);
    border-radius: 0.35rem;
    background: var(--brand-surface-soft);
}

.product-image-capture {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 0.75rem;
    align-items: start;
}

.product-image-capture video,
.product-image-capture img {
    display: block;
    width: 100%;
    height: min(45vh, 18rem);
    min-height: 12rem;
    object-fit: cover;
    border: 1px solid var(--brand-border);
    border-radius: 0.35rem;
    background: var(--brand-surface-soft);
}

.product-image-capture img:not([src]),
.product-image-capture img[src=""],
.product-image-field img:not([src]),
.product-image-field img[src=""] {
    visibility: hidden;
}

.product-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-content: flex-start;
}

@media (max-width: 760px) {
    .event-selector-form {
        grid-template-columns: 1fr;
    }

    .event-selector-actions {
        justify-content: stretch;
    }

    .event-icon-btn {
        flex: 1;
        width: auto;
    }

    .activity-workspace,
    .activity-flow-layout {
        grid-template-columns: 1fr;
    }

    .activity-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .activity-panel-header .btn {
        width: 100%;
    }

    .activity-panel-actions {
        width: 100%;
    }

    .activity-modal-actions .btn {
        width: 100%;
    }

    .cards-map-grid {
        grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
    }

    .product-image-capture {
        grid-template-columns: 1fr;
    }

    .product-image-field {
        grid-template-columns: 1fr;
    }
}

.portal-private-shell,.portal-private-main { min-height:100vh; display:flex; flex-direction:column; min-width:0; }
.portal-private-main { flex:1; }
.portal-private-main > main { flex:1; }
.private-page-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; }
.private-page-heading h1 { color:var(--brand-blue-dark); font-size:clamp(1.5rem,3vw,2.2rem); font-weight:800; }
.private-institution-context { min-width:0; max-width:100%; }
.private-institution-context select { min-width:0; max-width:100%; }

/* Shared typography and information density for management screens. */
.portal-private-body {
    --bs-body-font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    font-family: var(--bs-body-font-family);
}
.portal-private-body :is(input, select, textarea, button) { font-family: inherit; }
.portal-private-body .table { font-size: .875rem; line-height: 1.35; }
.portal-private-body .table > :not(caption) > * > * { padding: .5rem .65rem; }
.portal-private-body .table thead th {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: #475467;
}
.portal-private-body .table :is(strong, b) { font-weight: 600; }
.portal-private-body .dt-container { font-size: .8125rem; }
.portal-private-body .dt-container .dt-input { font-family: inherit; min-height: 2rem; }
.portal-private-body .dt-container .dt-layout-row { margin: .5rem 0; }

.inventory-main { padding-top: .75rem; padding-bottom: .5rem; }
.inventory-page .soft-panel-body { padding: .75rem; }
.inventory-page .activity-panel-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
}
.inventory-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; min-width: 0; }
.inventory-heading h1 { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--brand-text); }
.inventory-event { margin: 0; min-width: 0; }
.inventory-event .form-select { width: 13rem; max-width: 100%; min-height: 2rem; border-radius: .35rem; font-size: .8125rem; }
.inventory-page .activity-panel-actions { align-items: center; gap: .4rem; width: auto; }
.inventory-page .activity-panel-header .btn { width: auto; padding: .375rem .65rem; font-size: .8125rem; border-radius: .35rem; }
.inventory-page .active-institution { padding: .3rem .5rem; font-size: .75rem; gap: .35rem; }
.inventory-page .active-institution span { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-page .private-institution-context select { min-height: 2rem; font-size: .75rem; }
.inventory-page .data-table-shell { padding: .25rem .5rem; border-radius: .4rem; }
.inventory-page .product-cell { gap: .5rem; }
.inventory-page .product-cell :is(img, .product-placeholder) { width: 1.75rem; min-width: 1.75rem; height: 1.75rem; border-radius: .25rem; }
.inventory-page .product-cell strong { font-size: .875rem; text-transform: none; }
.inventory-page .action-icon { width: 1.9rem; height: 1.9rem; min-width: 1.9rem; border-radius: .35rem; font-size: .8125rem; }
.inventory-page .action-icon-group { gap: .2rem; }
.inventory-page #productsTable td:nth-child(6) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.inventory-page .dt-container .dt-layout-table { display: block; overflow: auto; max-height: max(12rem, calc(100dvh - 300px)); }
.inventory-page .dt-layout-table .dt-layout-cell { display: block; min-width: 0; }
.inventory-page #productsTable { min-width: 980px; }
.inventory-page #productsTable :is(th, td) { white-space: nowrap; }
.inventory-page #productsTable td:nth-child(3) { min-width: 15rem; }
.inventory-page #productsTable thead th { position: sticky; top: 0; z-index: 1; }
.inventory-footer { padding: .25rem 1rem .5rem; text-align: center; font-size: .6875rem; color: var(--brand-muted); }
@media (max-width: 760px) {
    .inventory-main { padding-left: .5rem; padding-right: .5rem; }
    .inventory-page .soft-panel-body { padding: .5rem; }
    .inventory-heading { width: 100%; gap: .4rem; }
    .inventory-event { flex: 1 1 100%; }
    .inventory-event .form-select { width: 100%; }
    .inventory-page .activity-panel-actions { width: 100%; justify-content: flex-end; }
    .inventory-page .private-institution-context { margin-right: auto; }
    .inventory-page .active-institution { display: flex; }
    .inventory-page .dt-container .dt-layout-table { max-height: max(12rem, calc(100dvh - 420px)); }
}

/* Compact event dashboard: one heading, concise indicators and direct actions. */
.bingo-dashboard .dashboard-main { padding-top: .65rem; padding-bottom: .5rem; }
.bingo-dashboard .app-section { gap: .65rem; }
.bingo-dashboard .app-page-header { margin: 0; gap: .5rem; align-items: center; }
.bingo-dashboard .app-page-header h1 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.bingo-dashboard .app-page-header h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.bingo-dashboard .soft-panel { border-radius: .5rem; }
.bingo-dashboard .soft-panel-body { padding: .65rem; }
.bingo-dashboard .kpi-grid { gap: .5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bingo-dashboard .kpi-card { min-height: 0; padding: .6rem .75rem; gap: .2rem; border-radius: .5rem; }
.bingo-dashboard .kpi-card-header { gap: .4rem; }
.bingo-dashboard .kpi-label { margin: 0; font-size: .8125rem; text-transform: none; letter-spacing: normal; }
.bingo-dashboard .kpi-value { margin: 0; font-size: 1.4rem; line-height: 1.2; font-weight: 600; }
.bingo-dashboard .kpi-icon { width: 1.75rem; height: 1.75rem; font-size: .9rem; }
.bingo-dashboard .event-selector-form { display: flex; align-items: center; gap: .5rem; }
.bingo-dashboard .event-selector-main { flex: 1; min-width: 0; }
.bingo-dashboard .event-selector-actions { gap: .35rem; flex-wrap: wrap; }
.bingo-dashboard .event-selector-form .form-select { min-height: 2rem; font-size: .8125rem; border-radius: .35rem; }
.bingo-dashboard .btn { padding: .375rem .6rem; font-size: .8125rem; border-radius: .35rem; min-height: 2rem; }
.bingo-dashboard .event-icon-btn { width: 2rem; min-width: 2rem; height: 2rem; }
.bingo-dashboard .dashboard-modules .app-page-header { margin-bottom: .5rem; }
.bingo-dashboard .bkr-action-grid { gap: .35rem; }
.bingo-dashboard .bkr-action-card { min-height: 2.5rem; padding: .6rem; border-radius: .35rem; gap: .4rem; box-shadow: none; }
.bingo-dashboard .bkr-action-card h3 { margin: 0; font-size: .875rem; line-height: 1.25; font-weight: 500; }
.bingo-dashboard .bkr-action-card > .fa-arrow-right { font-size: .75rem; color: var(--brand-muted); }
.bingo-dashboard .dashboard-footer { padding: .25rem 1rem .5rem; font-size: .6875rem; text-align: center; color: var(--brand-muted); }
.dashboard-company { min-width: 0; }
.dashboard-company .active-institution { display: flex; padding: .25rem .4rem; gap: .35rem; }
.dashboard-company .form-select { width: 13rem; min-height: 2rem; font-size: .8125rem; border-radius: .35rem; }
.dashboard-company .active-institution span { max-width: 12rem; font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 991px) {
    .bingo-dashboard .event-selector-form { flex-wrap: wrap; }
    .bingo-dashboard .event-selector-main { flex-basis: 100%; }
    .bingo-dashboard .event-selector-actions { width: 100%; justify-content: flex-end; }
    .bingo-dashboard .event-selector-actions .btn { width: auto; flex: initial; }
}
@media (max-width: 575px) {
    .bingo-dashboard .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bingo-dashboard .dashboard-main { padding-left: .5rem; padding-right: .5rem; }
    .bingo-dashboard .dashboard-modules { --bs-gutter-y: .5rem; }
    .dashboard-company .form-select { width: 11rem; }
}
.bingo-dashboard :is(.kpi-grid, .event-selector-panel) { margin-bottom: 0; }
@media (max-width: 575px) {
    .bingo-dashboard .dashboard-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bingo-dashboard .dashboard-modules > .col-md-4 { width: auto; min-width: 0; }
    .bingo-dashboard .dashboard-modules > .col-md-4:last-child { grid-column: 1 / -1; }
    .bingo-dashboard .dashboard-modules > .col-md-4:last-child .bkr-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bingo-dashboard .bkr-action-card { padding: .4rem; min-height: 2.5rem; }
    .bingo-dashboard .bkr-action-card h3 { font-size: .8125rem; }
    .bingo-dashboard .bkr-action-card > .fa-arrow-right { display: none; }
    .bingo-dashboard .app-page-header h1 { font-size: 1.0625rem; }
}

/* Compact public landing page; keep the same heading scale as private pages. */
.bkr-public-body { min-height: 100vh; display: flex; flex-direction: column; }
.bkr-public-body .bkr-public-page { flex: 1; }
.bkr-public-body .bkr-public-hero { padding: .5rem 0 1rem; }
.bkr-public-body .bkr-public-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.bkr-public-body .bkr-public-hero-copy { gap: .75rem; }
.bkr-public-body .bkr-public-hero-copy h1 { color: var(--brand-blue-dark); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; }
.bkr-public-body .bkr-public-hero-copy p { font-size: .95rem; line-height: 1.5; }
.bkr-public-carousel { min-width: 0; }
.bkr-public-carousel .bkr-public-feature { min-height: 0; box-shadow: none; }
.bkr-public-carousel .bkr-public-feature img { height: clamp(16rem, 40vh, 24rem); object-fit: contain; background: #f4f7fb; }
.bkr-public-carousel .bkr-public-feature > div { min-height: 10.5rem; gap: .4rem; padding: .85rem 1rem; }
.bkr-public-carousel .bkr-public-feature h2 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.bkr-public-carousel .bkr-public-feature p { font-size: .875rem; line-height: 1.45; }
.bkr-carousel-navigation { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .65rem; }
.bkr-carousel-navigation .carousel-indicators { position: static; margin: 0; gap: .35rem; }
.bkr-carousel-navigation .carousel-indicators button { width: .65rem; height: .65rem; border: 0; border-radius: 50%; background-color: var(--brand-blue-dark); }
.bkr-public-body .site-footer { padding: .85rem 0; margin-top: 0; }
.bkr-public-body .footer-logo { width: 2.5rem; height: 2.5rem; }
.bkr-public-body .brand-wordmark-footer { max-width: 8rem; }
.bkr-public-body .footer-links { gap: .3rem; font-size: .8rem; }
.bkr-public-body .footer-brand span, .bkr-public-body .footer-copy { font-size: .75rem; }
@media (max-width: 767.98px) {
    .bkr-public-body .bkr-public-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .bkr-public-body .bkr-public-hero { padding: .5rem 0 1rem; }
    .bkr-public-carousel .bkr-public-feature > div { min-height: 11rem; }
}

/* Shared compact layout for public sign-in and institutional registration. */
.auth-compact { display: flex; flex-direction: column; }
.auth-compact .auth-portal-header-inner { min-height: 60px; }
.auth-compact .auth-page { min-height: 0; display: block; flex: 1; }
.auth-compact .registration-page { flex: 1; }
.auth-compact .auth-container { gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.auth-compact .auth-intro h1,
.auth-compact .registration-heading h1 { margin: .35rem 0 .5rem; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; }
.auth-compact .auth-intro > p,
.auth-compact .registration-heading p { font-size: .95rem; margin-bottom: .5rem; }
.auth-compact .auth-trust-list { margin-top: .75rem; gap: .5rem .75rem; font-size: .875rem; }
.auth-compact .auth-register-link-intro { margin-top: .75rem; }
.auth-compact .auth-panel { padding: 1.25rem; }
.auth-compact .auth-panel h2 { font-size: 1.25rem; }
.auth-compact .auth-panel-copy { margin: .25rem 0 .75rem; font-size: .875rem; }
.auth-compact .auth-form { gap: .65rem; }
.auth-compact .auth-panel .input-group .form-control,
.auth-compact .auth-panel .input-group .input-group-text,
.auth-compact .auth-submit,
.auth-compact .auth-google-form .auth-social-btn { min-height: 40px; }
.auth-compact .auth-social-btn { padding: .45rem .75rem; }
.auth-compact .auth-divider { margin: .75rem 0; }
.auth-compact .registration-container { padding-top: .75rem; padding-bottom: 1rem; }
.auth-compact .registration-heading { max-width: none; margin-bottom: .75rem; }
.auth-compact .registration-heading p { margin-bottom: 0; }
.auth-compact .registration-form { gap: .75rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.auth-compact .registration-section { padding: 1rem; min-width: 0; }
.auth-compact .registration-section-title { gap: .65rem; margin-bottom: .65rem; }
.auth-compact .registration-section-title h2 { font-size: 1.1rem; }
.auth-compact .registration-section-title p { font-size: .85rem; line-height: 1.35; }
.auth-compact .registration-section-title > span { width: 28px; height: 28px; flex-basis: 28px; }
.auth-compact .registration-section .row { --bs-gutter-x: .75rem; --bs-gutter-y: .6rem; }
.auth-compact .form-label { margin-bottom: .25rem; font-size: .875rem; }
.auth-compact .form-control,
.auth-compact .form-select { min-height: 38px; font-size: .9rem; }
.auth-compact .registration-actions { grid-column: 1 / -1; flex-wrap: wrap; padding-top: 0; gap: .5rem; }
.auth-compact .alert { padding: .65rem .85rem; margin-bottom: .75rem; font-size: .875rem; }
.auth-compact .site-footer { padding: .85rem 0; margin-top: 0; }
.auth-compact .footer-logo { width: 2.5rem; height: 2.5rem; }
.auth-compact .brand-wordmark-footer { max-width: 8rem; }
.auth-compact .footer-links { gap: .3rem; font-size: .8rem; }
.auth-compact .footer-brand span, .auth-compact .footer-copy { font-size: .75rem; }
@media (max-width: 900px) {
    .auth-compact .auth-container { gap: 1rem; }
    .auth-compact .registration-form { grid-template-columns: minmax(0, 1fr); }
}
/* Administration follows the density and controls of authenticated events. */
.admin-compact { min-height: 100vh; display: flex; flex-direction: column; }
.admin-compact > main { flex: 1; }
.admin-compact .admin-main,
.admin-compact .registration-container,
.admin-compact .profile-container { padding-top: .65rem; padding-bottom: .75rem; }
.admin-compact .private-page-heading { padding-top: .65rem !important; gap: .5rem; }
.admin-compact :is(.private-page-heading h1, .registration-heading h1, .profile-heading h1) { margin: 0 0 .25rem; font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--brand-text); }
.admin-compact :is(.registration-heading, .profile-heading, .app-page-header) { gap: .5rem; margin-bottom: .65rem; }
.admin-compact .registration-heading { max-width: none; }
.admin-compact :is(.private-page-heading p, .registration-heading p, .profile-heading p, .app-page-header p) { margin: 0; font-size: .8125rem; line-height: 1.4; color: var(--brand-muted); }
.admin-compact :is(.app-page-header h2, .soft-panel-body > h2, .registration-section-title h2) { margin: 0 0 .25rem; font-size: .9375rem; font-weight: 600; }
.admin-compact .soft-panel { border-radius: .5rem; box-shadow: 0 3px 12px #17203306; }
.admin-compact :is(.soft-panel-body, .registration-section, .admin-card-body) { padding: .75rem; }
.admin-compact .registration-form { gap: .65rem; }
.admin-compact .registration-section-title { gap: .5rem; margin-bottom: .65rem; }
.admin-compact .registration-section-title > span { width: 28px; height: 28px; flex-basis: 28px; border-radius: .35rem; }
.admin-compact .registration-section-title p { margin: 0; font-size: .8125rem; }
.admin-compact :is(form .row, form.row) { --bs-gutter-x: .75rem; --bs-gutter-y: .65rem; }
.admin-compact .form-label { font-size: .8125rem; margin-bottom: .25rem; }
.admin-compact :is(.form-control, .form-select) { min-height: 2rem; font-size: .875rem; border-radius: .35rem; }
.admin-compact .btn { min-height: 2rem; padding: .375rem .65rem; font-size: .8125rem; border-radius: .35rem; }
.admin-compact .action-icon { width: 2rem; min-width: 2rem; height: 2rem; border-radius: .35rem; font-size: .8125rem; }
.admin-compact .action-icon-group { gap: .25rem; }
.admin-compact .table { margin-bottom: 0; font-size: .8125rem; }
.admin-compact .table > :not(caption) > * > * { padding: .45rem .55rem; }
.admin-compact .data-table-shell { padding: .25rem .5rem; }
.admin-compact .alert { padding: .5rem .75rem; margin-bottom: .65rem; font-size: .875rem; }
.admin-compact .registration-actions { padding-top: .65rem; gap: .5rem; flex-wrap: wrap; }
.admin-compact .site-footer { margin-top: 0; padding: .65rem 0; }
.admin-compact .footer-logo { width: 2.5rem; height: 2.5rem; }
.admin-compact .brand-wordmark-footer { max-width: 8rem; }
.admin-compact .footer-links { gap: .3rem; font-size: .8rem; }
.admin-compact .footer-brand span, .admin-compact .footer-copy { font-size: .75rem; }
@media (max-width: 767.98px) {
    .admin-compact .profile-heading { align-items: flex-start; flex-wrap: wrap; }
    .admin-compact :is(.registration-section, .soft-panel-body, .admin-card-body) { padding: .65rem; }
}

/* Colores de los indicadores superiores del dashboard del evento. */
.bingo-dashboard .kpi-card { background: var(--tile-bg, #eaf1ff); border-color: var(--tile-border, #c9dafe); }
.bingo-dashboard .kpi-card[data-icon="fa-cash-register"] { --tile-bg: #dcf5e5; --tile-border: #b0ddc0; --tile-ink: #166534; }
.bingo-dashboard .kpi-card[data-icon="fa-boxes-stacked"] { --tile-bg: #ffead7; --tile-border: #f4ccaa; --tile-ink: #9a4310; }
.bingo-dashboard .kpi-card[data-icon="fa-ticket"] { --tile-bg: #dfeaff; --tile-border: #b8cdf8; --tile-ink: #1b2f58; }
.bingo-dashboard .kpi-card[data-icon="fa-trophy"] { --tile-bg: #fff3cb; --tile-border: #ead695; --tile-ink: #78540a; }
.bingo-dashboard :is(.kpi-label, .kpi-value) { color: var(--tile-ink, var(--brand-blue-dark)); }
.bingo-dashboard .kpi-icon { background: #ffffff80; color: var(--tile-ink, var(--brand-blue-dark)); }

/* Compact product editor; keep scrolling available on small screens. */
#productModal .modal-header, #productModal .modal-footer { padding: .6rem 1rem; }
#productModal .modal-body { padding: .65rem 1rem; }
#productModal .product-form-section { padding: .5rem 0; }
#productModal .product-form-section h4 { font-size: .85rem; margin-bottom: .35rem; }
#productModal .form-label { font-size: .78rem; margin-bottom: .15rem; }
#productModal .form-control, #productModal .form-select, #productModal .input-group-text { min-height: 32px; padding: .25rem .5rem; font-size: .85rem; }
#productModal .product-image-field { display: flex; gap: .4rem; height: 32px; }
#productModal .product-image-field img { width: 42px; min-width: 42px; height: 32px; }
#productModal .product-image-field .btn { padding: .25rem .5rem; font-size: .8rem; }
#productModal .modal-content { max-height: calc(100dvh - 2rem); overflow-y: auto; }
#productImageModal .product-image-capture { grid-template-columns: minmax(0, 1fr); }
#productImageModal #productCameraVideo { display: none; }
#productImageModal #productImagePreview { height: min(45vh, 320px); min-height: 0; object-fit: contain; aspect-ratio: 4/3; }
#productImageModal .product-image-actions { justify-content: center; }
@media (min-width: 768px) { #productModal .modal-dialog { max-width: min(1140px, calc(100vw - 3rem)); } }

/* Shared card status palette and readable profile menu. */
.navbar { position: relative; z-index: 1030; }
.navbar-actions .dropdown-menu { background: #fff; opacity: 1; color: #172033; z-index: 1031; }
.navbar-actions .dropdown-item { color: #172033; }
.navbar-actions .dropdown-item:hover, .navbar-actions .dropdown-item:focus { background: #edf2fa; color: #172033; }
#bingoCardModal .card-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 1rem; }
#bingoCardModal .activity-card-state-form { margin: 0; padding: 0 0 0 1rem; border-top: 0; border-left: 1px solid var(--brand-border); }
#bingoCardModal .activity-card-state-form .row > div { width: 100%; }
#bingoCardModal .bingo-card-detail-grid { min-width: 0; }
.card-detail-modal .modal-dialog { max-width: 760px; }
#bingoCardModal.card-detail-modal .card-detail-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: .75rem; padding: .75rem; }
#bingoCardModal.card-detail-modal .activity-card-state-form { padding: 0 0 0 .75rem; }
.card-detail-modal .card-detail-heading { display: flex; align-items: start; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.card-detail-modal .card-detail-heading > div { min-width: 0; overflow-wrap: anywhere; }
.card-detail-modal .card-detail-heading .modal-title { font-size: 1rem; }
.card-detail-modal .card-detail-heading .btn-close { flex-shrink: 0; }
.card-detail-modal .activity-card-state-form .row { --bs-gutter-y: .65rem; }
.card-detail-modal .activity-card-state-form .form-label { margin-bottom: .25rem; }
.card-detail-navigation { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.card-detail-navigation[hidden], .card-update-status[hidden] { display: none; }
.card-update-status { background: #dcfce7; color: #166534; border: 1px solid #86efac; border-radius: .35rem; font-weight: 700; padding: .4rem .6rem; margin-bottom: .65rem; }
#cardsMapModal .modal-header { gap: .75rem; align-items: center; flex-wrap: wrap; }
#cardsMapModal .modal-header > div:first-child { flex: 0 1 auto; }
#cardsMapModal .cards-state-legend { flex: 1 1 20rem; margin: 0; justify-content: flex-end; gap: .3rem; }
#cardsMapModal .modal-header .btn-close { margin-left: auto; flex-shrink: 0; }
.bingo-card-detail-board-90 { container-type: inline-size; }
.bingo-card-detail-board-90 .bingo-card-detail-cell { font-family: 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif; font-stretch: condensed; font-size: clamp(.65rem, 5cqi, 1.8rem); font-variant-numeric: lining-nums tabular-nums; min-width: 0; }
.card-detail-modal .bingo-card-detail-card { padding: .65rem; }
@media (max-width: 767px) {
    #bingoCardModal .card-detail-layout { grid-template-columns: minmax(0, 1fr); }
    #bingoCardModal .activity-card-state-form { border-left: 0; border-top: 1px solid var(--brand-border); padding: .75rem 0 0; }
    #bingoCardModal.card-detail-modal .card-detail-layout { grid-template-columns: minmax(0, 1fr); }
    #bingoCardModal.card-detail-modal .activity-card-state-form { padding: .75rem 0 0; }
}
.assignment-state-card.state-GENERADA, .card-map-cell.state-GENERADA, .cards-state-legend .state-GENERADA { background: #e9edf3; color: #344256; }
.assignment-state-card.state-ASIGNADA, .card-map-cell.state-ASIGNADA, .cards-state-legend .state-ASIGNADA { background: #dbeafe; color: #1e40af; }
.assignment-state-card.state-VENDIDA, .card-map-cell.state-VENDIDA, .cards-state-legend .state-VENDIDA { background: #fff0c2; color: #854d0e; }
.assignment-state-card.state-PAGADA, .card-map-cell.state-PAGADA, .cards-state-legend .state-PAGADA { background: #dcfce7; color: #166534; }
.assignment-state-card.state-PREMIADA, .card-map-cell.state-PREMIADA, .cards-state-legend .state-PREMIADA { background: #f3e8ff; color: #6b21a8; }
.assignment-state-card.state-ENTREGADA, .card-map-cell.state-ENTREGADA, .cards-state-legend .state-ENTREGADA { background: #ccfbf1; color: #115e59; }
.assignment-state-card.state-CERRADA, .card-map-cell.state-CERRADA, .cards-state-legend .state-CERRADA { background: #e0e7ff; color: #3730a3; }
.assignment-state-card.state-ANULADA, .card-map-cell.state-ANULADA, .cards-state-legend .state-ANULADA { background: #fee2e2; color: #991b1b; }
