:root {
    --mw-navy: #0d355d;
    --mw-blue: #1d6fb8;
    --mw-cyan: #4ec7d3;
    --mw-sand: #f3efe5;
    --mw-white: #ffffff;
    --mw-ink: #1d2c3a;
    --mw-muted: #6b7b8c;
    --mw-line: rgba(13, 53, 93, 0.1);
    --mw-shadow: 0 22px 50px rgba(10, 37, 64, 0.14);
    --mw-radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--mw-ink);
    background: linear-gradient(180deg, #eef8fb 0%, #f7fbfc 100%);
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(13, 53, 93, 0.92), rgba(29, 111, 184, 0.8)),
        url("../assets/img/fondo.jpg") center/cover no-repeat;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.login-brand-panel,
.login-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-brand-copy {
    max-width: 520px;
    color: var(--mw-white);
}

.eyebrow {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-brand-copy h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
}

.login-brand-copy p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.88);
}

.login-card {
    width: 100%;
    max-width: 470px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(3, 19, 35, 0.28);
}

.login-logo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 16px 35px rgba(13, 53, 93, 0.16);
}

.login-title {
    color: var(--mw-navy);
    font-weight: 800;
}

.login-subtitle {
    color: var(--mw-muted);
}

.form-label {
    color: var(--mw-navy);
    font-weight: 700;
}

.form-control {
    border-radius: 16px;
    border: 1px solid rgba(13, 53, 93, 0.15);
    padding: 0.9rem 1rem;
}

.form-control:focus {
    border-color: rgba(29, 111, 184, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(78, 199, 211, 0.18);
}

.btn-brand {
    background: linear-gradient(135deg, var(--mw-blue), var(--mw-navy));
    color: var(--mw-white);
    border: 0;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(29, 111, 184, 0.25);
}

.btn-brand:hover,
.btn-brand:focus {
    color: var(--mw-white);
    background: linear-gradient(135deg, #155b97, #0b2b4b);
}

.app-page {
    min-height: 100vh;
}

.app-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(9, 40, 70, 0.98), rgba(16, 77, 117, 0.96)),
        url("../assets/img/fondo.jpg") center/cover no-repeat;
    color: var(--mw-white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 26, 47, 0.18), rgba(7, 26, 47, 0.5));
    pointer-events: none;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.sidebar-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.24);
}

.sidebar-brand {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sidebar-tagline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sidebar-section-label {
    margin: 0.85rem 0 0.2rem;
    padding: 0 0.9rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sidebar-accordion {
    display: grid;
    gap: 0.4rem;
}

.sidebar-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.sidebar-accordion-toggle:hover,
.sidebar-accordion-toggle:focus {
    color: var(--mw-white);
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.sidebar-accordion-toggle.is-active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(78, 199, 211, 0.28));
    color: var(--mw-white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sidebar-accordion-main {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.sidebar-accordion-main i,
.sidebar-accordion-arrow {
    font-size: 1.15rem;
}

.sidebar-accordion-toggle[aria-expanded="true"] .sidebar-accordion-arrow {
    transform: rotate(180deg);
}

.sidebar-accordion-arrow {
    transition: transform 0.18s ease;
}

.sidebar-submenu {
    display: grid;
    gap: 0.35rem;
    margin-left: 0.85rem;
    padding-left: 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-sublink:hover,
.sidebar-sublink:focus {
    color: var(--mw-white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.sidebar-sublink.is-active {
    color: var(--mw-white);
    background: rgba(255, 255, 255, 0.18);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
    color: var(--mw-white);
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.sidebar-link.is-active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(78, 199, 211, 0.28));
    color: var(--mw-white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sidebar-link i {
    font-size: 1.15rem;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 1rem;
}

.sidebar-user {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.sidebar-user-label,
.sidebar-user small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-logout {
    border-radius: 16px;
    border: 0;
}

.app-main {
    padding: 1.75rem;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mw-blue);
    font-size: 0.78rem;
    font-weight: 700;
}

.topbar-title {
    color: var(--mw-navy);
    font-size: 2rem;
    font-weight: 800;
}

.topbar-pill {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--mw-white);
    border: 1px solid var(--mw-line);
    box-shadow: 0 10px 25px rgba(17, 65, 103, 0.08);
    color: var(--mw-navy);
    font-weight: 700;
}

.app-content {
    display: grid;
    gap: 1.5rem;
}

.catalog-hero {
    display: grid;
    grid-template-columns: 1.15fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(78, 199, 211, 0.26), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #eff8fb 52%, #dff1f8 100%);
    border: 1px solid rgba(13, 53, 93, 0.08);
    box-shadow: var(--mw-shadow);
}

.catalog-hero-copy h2 {
    margin: 0 0 0.45rem;
    color: var(--mw-navy);
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    font-weight: 800;
}

.catalog-hero-copy p {
    max-width: 44rem;
    margin: 0;
    color: var(--mw-muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.catalog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
}

.catalog-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.catalog-metric {
    min-width: 150px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 53, 93, 0.08);
}

.catalog-metric strong {
    display: block;
    color: var(--mw-navy);
    font-size: 1.2rem;
    font-weight: 800;
}

.catalog-metric span {
    color: var(--mw-muted);
    font-size: 0.9rem;
}

.catalog-table-card {
    overflow: hidden;
}

.catalog-hero-pagos {
    position: relative;
    overflow: hidden;
}

.catalog-hero-pagos::after {
    content: "";
    position: absolute;
    right: -5rem;
    top: -5rem;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(29, 111, 184, 0.16), rgba(29, 111, 184, 0));
    pointer-events: none;
}

.pagos-hero-actions {
    align-self: stretch;
    align-items: center;
}

.pagos-hero-metrics .catalog-metric {
    min-width: 190px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(13, 53, 93, 0.08);
}

.pagos-kpi-grid .kpi-card {
    position: relative;
    overflow: hidden;
}

.pagos-kpi-grid .kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #1d6fb8, #4ec7d3);
}

.pagos-table-card .card-body {
    padding: 1.35rem;
}

.pagos-table-badge {
    box-shadow: inset 0 0 0 1px rgba(29, 111, 184, 0.08);
}

.pagos-filters {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.pagos-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pagos-filters-head h4 {
    margin: 0.2rem 0 0;
    color: var(--mw-navy);
    font-size: 1rem;
    font-weight: 800;
}

.pagos-filters-kicker {
    display: inline-block;
    color: var(--mw-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pagos-filters-note {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(13, 53, 93, 0.08);
    color: var(--mw-muted);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.pagos-btn-clear {
    min-height: 46px;
}

.pagos-table-wrap {
    border-radius: 20px;
    border: 1px solid rgba(13, 53, 93, 0.08);
    background: #fff;
}

.pagos-table thead th {
    white-space: nowrap;
}

.pagos-table tbody td {
    vertical-align: middle;
}

.pagos-table tbody td:nth-child(2) {
    min-width: 240px;
    font-weight: 700;
    color: var(--mw-navy);
}

.pagos-table tbody td:nth-child(4) {
    min-width: 240px;
}

.pagos-table .btn-group {
    box-shadow: none;
}

.catalog-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.catalog-table-head h3 {
    margin: 0;
    color: var(--mw-navy);
    font-size: 1.15rem;
    font-weight: 800;
}

.catalog-table-head p {
    margin: 0.3rem 0 0;
    color: var(--mw-muted);
}

.catalog-table-badge {
    white-space: nowrap;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(29, 111, 184, 0.12), rgba(78, 199, 211, 0.18));
    color: var(--mw-navy);
    font-weight: 700;
}

.catalog-table-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-export-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(13, 53, 93, 0.14);
    background: #fff;
    color: #1d6f42;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(13, 53, 93, 0.08);
}

.btn-export-icon:hover,
.btn-export-icon:focus {
    color: #0f5132;
    border-color: rgba(25, 135, 84, 0.35);
    background: #f5fffa;
}

.btn-export-icon i {
    font-size: 1.2rem;
}

.catalog-filters {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(243, 249, 252, 0.9), rgba(255, 255, 255, 1));
    border: 1px solid rgba(13, 53, 93, 0.08);
}

.catalog-filters .form-label {
    color: var(--mw-navy);
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.kpi-card {
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #eef8fb);
    border: 1px solid rgba(13, 53, 93, 0.08);
    box-shadow: 0 14px 30px rgba(17, 65, 103, 0.08);
}

.kpi-label {
    display: block;
    color: var(--mw-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kpi-value {
    margin-top: 0.45rem;
    color: var(--mw-navy);
    font-size: 1.85rem;
    font-weight: 800;
}

.kpi-note {
    margin-top: 0.4rem;
    color: var(--mw-muted);
    font-size: 0.88rem;
}

.catalog-table thead th {
    background: #f3f9fc;
    color: var(--mw-navy);
    border-bottom: 1px solid rgba(13, 53, 93, 0.08);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.catalog-table thead th.sortable-th {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.catalog-table thead th.sortable-th:hover {
    background: #e8f4fa;
}

.catalog-table thead th.sortable-th::after {
    content: "\2195";
    margin-left: 0.45rem;
    font-size: 0.78rem;
    color: rgba(13, 53, 93, 0.44);
}

.catalog-table thead th.sortable-th.sort-asc::after {
    content: "\2191";
    color: var(--mw-blue);
}

.catalog-table thead th.sortable-th.sort-desc::after {
    content: "\2193";
    color: var(--mw-blue);
}

.catalog-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-color: rgba(13, 53, 93, 0.06);
}

.catalog-table tbody tr:hover {
    background: rgba(78, 199, 211, 0.08);
}

.row-inactive {
    opacity: 0.7;
}

.row-turtle-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
    flex: 0 0 22px;
    vertical-align: text-bottom;
}

.row-turtle-icon-placeholder {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.name-cell-leading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 3.3rem;
    margin-right: 0.35rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-pill-off {
    background: rgba(108, 117, 125, 0.14);
    color: #5f6b76;
}

.status-pill-on {
    background: rgba(25, 135, 84, 0.16);
    color: #0f5132;
}

.status-pill-warn {
    background: rgba(255, 193, 7, 0.2);
    color: #8a5b00;
}

.payment-row.pay-full {
    background: rgba(25, 135, 84, 0.08);
}

.payment-row.pay-partial {
    background: rgba(255, 193, 7, 0.12);
}

.payment-row.pay-none {
    background: rgba(220, 53, 69, 0.08);
}

.heat-board {
    display: grid;
    gap: 1rem;
}

.heat-card {
    border: 1px solid rgba(13, 53, 93, 0.08);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 28px rgba(17, 65, 103, 0.06);
}

.heat-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(243, 249, 252, 0.95), rgba(255, 255, 255, 1));
    border-bottom: 1px solid rgba(13, 53, 93, 0.08);
}

.heat-card-head h4 {
    margin: 0;
    color: var(--mw-navy);
    font-size: 1rem;
    font-weight: 800;
}

.heat-card-head p {
    margin: 0.2rem 0 0;
    color: var(--mw-muted);
    font-size: 0.9rem;
}

.heat-card-actions {
    padding: 0 1.2rem 1.1rem;
    display: flex;
    justify-content: flex-end;
}

.heat-table input.form-control-sm {
    min-width: 88px;
}

.style-icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.style-icon-image {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.catalog-hero-users {
    position: relative;
    overflow: hidden;
}

.catalog-hero-users::after {
    content: "";
    position: absolute;
    right: -4rem;
    top: -5rem;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(29, 111, 184, 0.2), rgba(29, 111, 184, 0));
    pointer-events: none;
}

.hero-board {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.hero-copy,
.hero-image-card,
.placeholder-card {
    background: var(--mw-white);
    border-radius: var(--mw-radius);
    box-shadow: var(--mw-shadow);
}

.hero-copy {
    padding: 2rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(78, 199, 211, 0.16);
    color: var(--mw-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.hero-copy h2 {
    margin: 1rem 0 0.75rem;
    color: var(--mw-navy);
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.hero-copy p {
    margin: 0;
    color: var(--mw-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.hero-image-card {
    padding: 1rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    border-radius: calc(var(--mw-radius) - 8px);
}

.dashboard-hero {
    background: var(--mw-white);
    border-radius: var(--mw-radius);
    box-shadow: var(--mw-shadow);
    padding: 1rem;
    min-height: calc(100vh - 170px);
}

.dashboard-hero-image {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 202px);
    object-fit: cover;
    border-radius: calc(var(--mw-radius) - 8px);
}

.placeholder-card {
    height: 100%;
    padding: 1.5rem;
}

.placeholder-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(78, 199, 211, 0.18), rgba(29, 111, 184, 0.16));
    color: var(--mw-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.placeholder-card h3 {
    color: var(--mw-navy);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.placeholder-card p {
    color: var(--mw-muted);
    margin: 0;
    line-height: 1.7;
}

.mawii-modal .modal-content {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(11, 35, 63, 0.22);
}

.mawii-modal .modal-header {
    padding: 1.35rem 1.5rem 1.1rem;
    border-bottom: 1px solid rgba(13, 53, 93, 0.08);
    background:
        radial-gradient(circle at top right, rgba(78, 199, 211, 0.24), transparent 32%),
        linear-gradient(135deg, rgba(243, 249, 252, 0.95), rgba(255, 255, 255, 1));
}

.mawii-modal .modal-title {
    color: var(--mw-navy);
    font-weight: 800;
}

.mawii-modal .modal-body {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(247, 251, 253, 0.86), rgba(255, 255, 255, 1));
}

.mawii-modal .modal-footer {
    padding: 1rem 1.5rem 1.4rem;
    border-top: 1px solid rgba(13, 53, 93, 0.08);
    background: #fff;
}

.modal-section-card {
    height: 100%;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(13, 53, 93, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.modal-section-card h6 {
    margin: 0 0 0.35rem;
    color: var(--mw-navy);
    font-size: 0.98rem;
    font-weight: 800;
}

.modal-section-card p {
    margin: 0 0 1rem;
    color: var(--mw-muted);
    font-size: 0.92rem;
}

.mawii-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(13, 53, 93, 0.08);
    border-radius: 18px;
    background: rgba(243, 249, 252, 0.75);
}

.mawii-switch .form-check-input {
    width: 2.8rem;
    height: 1.45rem;
    margin: 0;
}

.mawii-switch .form-check-label {
    margin: 0;
    color: var(--mw-navy);
    font-weight: 700;
}

.row-switch {
    min-height: 1.5rem;
}

.row-switch .form-check-input {
    float: none;
    margin-left: 0;
    cursor: pointer;
}

.modal-birth-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.form-hint {
    margin-top: 0.35rem;
    color: var(--mw-muted);
    font-size: 0.82rem;
}

.age-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(78, 199, 211, 0.14);
    color: var(--mw-navy);
    font-size: 0.86rem;
    font-weight: 700;
}

.age-pill.is-minor {
    background: rgba(255, 193, 7, 0.18);
    color: #8a5b00;
}

.contacts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.contacts-toolbar p {
    margin: 0;
    color: var(--mw-muted);
    font-size: 0.92rem;
}

.contact-card {
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(13, 53, 93, 0.08);
    background: #fff;
    box-shadow: 0 10px 24px rgba(10, 37, 64, 0.06);
}

.contact-card + .contact-card {
    margin-top: 0.9rem;
}

.contact-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.contact-card-title {
    margin: 0;
    color: var(--mw-navy);
    font-size: 0.95rem;
    font-weight: 800;
}

.contact-empty {
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(13, 53, 93, 0.16);
    border-radius: 18px;
    background: rgba(243, 249, 252, 0.8);
    color: var(--mw-muted);
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .login-shell,
    .app-shell,
    .hero-board {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 38vh;
    }

    .sidebar {
        padding-bottom: 2rem;
    }

    .app-main {
        padding: 1.25rem;
    }

    .app-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-hero {
        grid-template-columns: 1fr;
    }

    .catalog-hero-actions,
    .catalog-table-head {
        justify-content: flex-start;
    }

    .dashboard-hero,
    .dashboard-hero-image {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .login-brand-panel,
    .login-card-wrap {
        padding: 1.25rem;
    }

    .login-card {
        border-radius: 24px;
    }

    .sidebar {
        padding: 1.25rem;
    }

    .modal-birth-grid {
        grid-template-columns: 1fr;
    }
}
