* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.bg-blue-coop {
    background-color: #e0f2fe;
    color: #0369a1;
}

.bg-purple-coop {
    background-color: #f3e8ff;
    color: #7e22ce;
}

.bg-green-coop {
    background-color: #dcfce7;
    color: #15803d;
}

.bg-amber-light {
    background-color: #fef3c7;
    color: #b45309;
}

.body-login {
    background-color: #001529;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(0, 138, 75, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(217, 119, 6, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #001122 0%, #001f3f 50%, #001122 100%);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
}

.login-wrapper {
    flex-grow: 1;
    display: flex;
    width: 100%;
}

.login-bg-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-right: 0;
    background: url('../Fondo_coopac.png') center / cover no-repeat;
    position: relative;
}

.login-bg-side .asamblea-banner-box {
    display: none;
}

.login-event-title {
    position: absolute;
    top: clamp(36px, 9vh, 92px);
    left: 6%;
    right: 6%;
    margin: 0;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(0, 31, 63, 0.62);
    color: #fff;
    font-size: clamp(36px, 3.4vw, 62px);
    font-weight: 900;
    line-height: 1.12;
    text-align: center;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
    text-wrap: balance;
}

@media (max-width: 1024px) {
    .login-bg-side {
        display: none;
    }
}

.asamblea-banner-box {
    width: 100%;
    max-width: 900px;
    min-height: clamp(500px, 57vh, 700px);
    padding: clamp(32px, 3.1vw, 60px);
    border-radius: 24px;
    background-color: #033f7a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.asamblea-banner-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #008A4B, #d97706);
}

.banner-text-top {
    margin-bottom: 50px;
    z-index: 2;
}

.asamblea-banner-box h2 {
    font-size: clamp(36px, 2.6vw, 50px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.asamblea-banner-box p {
    font-size: 15px;
    color: #fafafa;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
}

.banner-img-container {
    width: 100%;
    height: clamp(200px, 25vh, 300px);
    background-color: #003366;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.banner-img-render {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.login-form-side {
    --login-panel-width: clamp(480px, 42vw, 800px);
    flex: 0 0 var(--login-panel-width);
    width: auto;
    container-type: inline-size;
    background-color: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(28px, 3vw, 56px);
    padding-top: 0;
    position: relative;
    box-shadow: inset 10px 0 30px rgba(22, 14, 138, 0.01), -5px 0 25px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1024px) {
    .login-form-side {
        --login-panel-width: calc(100cqw + 60px);
        flex: 1 1 100%;
        width: 100%;
        padding: 30px;
    }
}

.login-form-side::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: repeating-linear-gradient(45deg, #001f3f, #001f3f 10px, #008A4B 10px, #008A4B 20px, #d97706 20px, #d97706 30px);
}

.card {
    width: 100%;
    max-width: 540px;
}

.logo-area {
    text-align: center;
    margin-bottom: 28px;
    font-size: 14px;
    color: #008A4B;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-brand-header {
    display: block;
    position: relative;
    left: 50%;
    width: var(--login-panel-width);
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    margin-bottom: 20px;
}

.logo-area h1 {
    font-size: clamp(27px, 2vw, 38px);
    font-weight: 800;
    color: #002855;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 6px;
}



.electoral-notice {
    background: linear-gradient(135deg, #f0fdf4, #e6f4ea);
    border-left: 4px solid #008A4B;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 15px;
    color: #115e59;
    font-weight: 600;
    line-height: 1.4;
}

.padron-cutoff-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #f3d28b;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8e6, #fff1cc);
    color: #713f12;
    font-size: 15px;
    line-height: 1.5;
}

.padron-cutoff-notice strong {
    color: #854d0e;
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    font-size: clamp(15px, 0.94vw, 18px);
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    color: #001f3f;
    font-size: clamp(20px, 1.25vw, 24px);
    transition: all 0.2s;
    background-color: #f8fafc;
}

input[type="text"]:focus {
    outline: none;
    border-color: #003366;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.12);
}

.document-type-select {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    color: #001f3f;
    background-color: #f8fafc;
    font-size: 18px;
    font-weight: 600;
}

.document-type-select:focus {
    outline: none;
    border-color: #003366;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.12);
}

.input-dni {
    text-align: center;
    letter-spacing: 8px;
    font-weight: bold;
    font-size: clamp(32px, 1.9vw, 36px) !important;
    color: #003366 !important;
}

.btn-submit {
    width: 100%;
    background-color: #008A4B;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: clamp(17px, 1vw, 20px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0, 138, 75, 0.25);
}

.btn-submit:hover {
    background-color: #006e3b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 138, 75, 0.3);
}

.body-dashboard {
    background-color: #F4F7FA;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #0f172a;
}

header {
    background: linear-gradient(90deg, #001f3f, #003366);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid #008A4B;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.body-dashboard header {
    --header-inline-gutter: 40px;
    padding-block: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.body-dashboard .header-logo {
    gap: 0;
    margin-left: calc(-1 * var(--header-inline-gutter));
}

.logo-img-nav {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.header-title-text {
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.btn-logout {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

main {
    flex-grow: 1;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(20px, 1.8vw, 35px) clamp(16px, 1.6vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.welcome-msg {
    border-left: 5px solid #008A4B;
    padding-left: 15px;
}

.welcome-msg h3 {
    font-size: clamp(27px, 1.67vw, 32px);
    color: #003366;
    font-weight: 800;
}

.welcome-msg p {
    font-size: 16px;
    color: #334155;
    margin-top: 3px;
    font-weight: 600;
}

.minor-vote-alert-popup {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 215px);
    grid-template-areas:
        "icon image"
        "title image"
        "html image"
        "actions image";
    align-items: center;
    column-gap: 10px;
    width: min(100%, 960px) !important;
    padding: 22px 26px !important;
    border: 2px solid #bfdbfe !important;
    border-left: 8px solid #18a66a !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #eff6ff, #ecfdf5) !important;
    box-shadow: 0 8px 22px rgba(0, 51, 102, 0.12) !important;
    text-align: center !important;
}

.minor-vote-alert-popup .swal2-icon {
    grid-area: icon;
    justify-self: center;
}

.minor-vote-alert-popup .swal2-title {
    grid-area: title;
    width: 100%;
}

.minor-vote-alert-popup .swal2-html-container {
    grid-area: html;
    width: 100%;
}

.minor-vote-alert-popup .swal2-actions {
    grid-area: actions;
    justify-content: center !important;
    margin-top: 4px !important;
}

.cooperativista-notice-image {
    grid-area: image;
    width: 100% !important;
    max-width: 215px !important;
    max-height: 300px !important;
    align-self: center;
    margin: 0 !important;
    object-fit: contain;
    transform: scale(1.3);
}

.electoral-notice-icon {
    width: 112px !important;
    height: 112px !important;
    margin: 0 auto 14px !important;
    border: 0 !important;
    background: transparent !important;
}

.electoral-notice-icon .swal2-icon-content {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
}

.electoral-notice-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.minor-vote-alert-title {
    margin: 0 0 10px !important;
    color: #174b37 !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    text-align: center !important;
}

.minor-vote-alert-message {
    margin: 0 0 18px !important;
    color: #334155 !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    text-align: center !important;
    white-space: pre-line !important;
    overflow-wrap: anywhere !important;
}

.minor-vote-alert-button {
    border: 0 !important;
    border-radius: 9px !important;
    padding: 10px 22px !important;
    background: #087f4f !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

@media (max-width: 600px) {
    .minor-vote-alert-popup {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "icon"
            "title"
            "html"
            "image"
            "actions";
        row-gap: 4px;
        padding: 18px 16px !important;
        border-left-width: 6px !important;
        border-radius: 14px !important;
    }

    .cooperativista-notice-image {
        width: auto !important;
        max-width: min(190px, 65vw) !important;
        max-height: 220px !important;
        margin: 0 auto 8px !important;
        transform: none;
    }

    .minor-vote-alert-title {
        font-size: 18px !important;
    }

    .minor-vote-alert-message {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
}

@media (min-width: 601px) and (max-width: 800px) {
    .minor-vote-alert-popup {
        grid-template-columns: minmax(0, 1fr) minmax(125px, 175px);
        column-gap: 8px;
        padding: 20px 18px !important;
    }

    .cooperativista-notice-image {
        max-width: 175px !important;
        max-height: 260px !important;
        transform: scale(1.2);
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.25vw, 24px);
    width: 100%;
}

.col-span-2 {
    grid-column: span 2;
}

.panel {
    background-color: #ffffff;
    border-radius: 16px;
    padding: clamp(22px, 1.56vw, 30px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 2.5px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.2s ease;
}

.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #94a3b8;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 2px solid #e2e8f0;
    font-size: 15px;
    color: #334155;
}

.panel-tag {
    font-size: 20px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    line-height: 1.3;
}

.panel-tag-section {
    font-size: clamp(26px, 1.56vw, 30px);
    color: #003366;
}

.member-vote-panel {
    grid-row: span 1;
    gap: 22px;
    justify-content: flex-start;
}

.member-identity-section,
.member-location-section {
    min-width: 0;
}

.member-location-section {
    padding-bottom: 18px;
    border-bottom: 2px solid #e2e8f0;
}

.member-identity-section .panel-header,
.member-location-section .panel-header {
    justify-content: flex-start;
    margin-bottom: 16px;
}

.member-name-line {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 6px;
    margin: 0;
}

.member-name-line .data-name {
    margin-top: 0;
}

.member-name-line .panel-label,
.member-section-title,
.member-location-section .panel-header .panel-tag-section {
    color: #64748b;
    font-size: clamp(21px, 1.3vw, 25px);
}

.member-section-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1.3;
}

.member-dni-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    margin: 18px 0 0;
    color: #1e293b;
    font-weight: 800;
}

.member-dni-line strong {
    font-size: clamp(38px, 2.5vw, 48px);
    letter-spacing: 3px;
}

.member-time-title {
    margin-top: 20px;
    font-size: clamp(27px, 1.67vw, 32px);
}

.member-location-section .panel-header .panel-tag-section {
    font-size: clamp(27px, 1.67vw, 32px);
}

.member-voting-place {
    margin: 0;
    color: #1e293b;
    font-size: clamp(28px, 1.77vw, 34px);
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.member-voting-place strong {
    color: #1e293b;
    font-size: clamp(38px, 2.5vw, 48px);
    font-weight: 900;
}

.member-voting-time {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 2px solid #e2e8f0;
    color: #1e293b;
    font-size: clamp(30px, 1.875vw, 36px);
    font-weight: 800;
    line-height: 1.4;
}

.member-voting-time strong:first-child {
    color: #1e293b;
}

.icon-wrapper {
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-label {
    font-size: 17px;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-electoral-5 {
    grid-column: span 1;
    grid-row: span 1;
    background-color: #ffffff;
    border-radius: 16px;
    border: 2px solid #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.panel-electoral-5:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #94a3b8;
}

.electoral-img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #003366;
    min-height: 100%;
}

.electoral-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.data-dni {
    font-size: 42px;
    font-weight: 900;
    color: #002855;
    letter-spacing: 2px;
    margin-top: 8px;
}

.data-name {
    font-size: clamp(34px, 2.2vw, 42px);
    font-weight: 900;
    color: #0f172a;
    line-height: 2;
    text-transform: uppercase;
    margin-top: 8px;
}

.office-highlight {
    font-weight: 900;
    color: #008A4B;
    font-size: 18px;
    text-transform: uppercase;
}

.data-sede {
    font-size: 38px;
    font-weight: 900;
    color: #002855;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-direccion {
    font-size: 25px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 8px;
    line-height: 1.4;
    text-transform: uppercase;
}

.ubigeo-tag {
    background-color: #dcfce7;
    color: #14532d;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2.5px solid #bbf7d0;
    display: inline-block;
    font-weight: 900;
    font-size: 15px;
    text-transform: uppercase;
}

.cronograma-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 0;
}

.fecha-block {
    background: linear-gradient(135deg, #002855, #001f3f);
    color: #ffffff;
    padding: 26px;
    border-radius: 12px;
}

.fecha-title {
    font-size: 17px;
    color: #bae6fd;
    font-weight: 700;
    text-transform: uppercase;
}

.fecha-value {
    font-size: 36px;
    font-weight: 900;
    margin-top: 6px;
}

.hora-block {
    background-color: #fef3c7;
    border: 2.5px solid #fde68a;
    padding: 26px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hora-value {
    font-size: 32px;
    font-weight: 900;
    color: #78350f;
}

.print-container {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.btn-print {
    background-color: #003366;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 51, 102, 0.18);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-print:hover {
    background-color: #001f3f;
    transform: translateY(-1px);
}

footer {
    background-color: #001428;
    color: #94a3b8;
    font-size: 12px;
    padding: 18px;
    text-align: center;
    border-top: 4px solid #008A4B;
}

@media (max-width: 1200px) {
    header {
        padding: 15px 20px;
        justify-content: center;
        text-align: center;
    }

    .body-dashboard header {
        --header-inline-gutter: 20px;
    }

    .header-logo {
        flex-direction: column;
        gap: 8px;
    }

    .header-title-text {
        border-left: none;
        padding-left: 0;
        font-size: 13px;
    }

    .btn-logout {
        width: 100%;
        justify-content: center;
    }

    .grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-electoral-5 {
        grid-column: span 2;
        grid-row: span 1;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .col-span-2,
    .panel-electoral-5 {
        grid-column: span 1;
    }

    .cronograma-container {
        grid-template-columns: 1fr;
    }

    .member-voting-place {
        font-size: 28px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .member-voting-place strong {
        font-size: 38px;
    }

    .member-dni-line strong {
        font-size: 42px;
    }

    .data-name {
        font-size: 36px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .member-vote-panel {
        min-width: 0;
    }

    .member-name-line,
    .member-voting-time {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .panel-electoral-5 {
        height: clamp(200px, 55vw, 340px);
    }

    .electoral-img-wrapper {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .login-form-side {
        --login-panel-width: calc(100cqw + 48px);
        width: 100%;
        padding: 24px;
    }

    .sub-title-electoral {
        font-size: 15px;
    }

    input[type="text"] {
        padding: 10px;
    }

    .logo-area h1 {
        font-size: 25px;
    }

    .electoral-notice,
    .padron-cutoff-notice {
        font-size: 14px;
    }

    label {
        font-size: 14px;
    }

    .input-dni {
        font-size: 28px !important;
        letter-spacing: 6px;
    }

    .btn-submit {
        font-size: 16px;
    }

    .panel {
        padding: 22px;
    }

    .panel-tag {
        font-size: 18px;
    }

    .panel-tag-section {
        font-size: 24px;
    }

    .member-name-line .panel-label,
    .member-section-title,
    .member-location-section .panel-header .panel-tag-section {
        font-size: 21px;
    }

    .member-time-title,
    .member-location-section .panel-header .panel-tag-section {
        font-size: 24px;
    }

    .data-name {
        font-size: 30px;
        line-height: 1.25;
    }

    .member-dni-line {
        gap: 6px 10px;
    }

    .member-dni-line strong {
        font-size: 36px;
    }

    .member-voting-place {
        font-size: 22px;
    }

    .member-voting-place strong {
        font-size: 30px;
    }

    .member-voting-time {
        font-size: 27px;
    }

    .print-container {
        justify-content: center;
    }
}

@media screen and (min-width: 769px) and (max-width: 1200px) and (orientation: landscape) {
    .body-dashboard header {
        --header-inline-gutter: 20px;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 20px;
        text-align: left;
    }

    .body-dashboard .header-logo {
        flex-direction: row;
        gap: 0;
    }

    .body-dashboard .header-title-text {
        border-left: 2px solid rgba(255, 255, 255, 0.3);
        padding-left: 10px;
        font-size: clamp(11px, 1.4vw, 14px);
    }

    .body-dashboard .btn-logout {
        width: auto;
        flex: 0 0 auto;
    }

    .body-dashboard main {
        gap: 10px;
        padding-block: clamp(8px, 1.5vh, 16px);
    }

    .body-dashboard footer {
        padding-block: 12px;
    }

    .body-dashboard .grid-container {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
        gap: 16px;
    }

    .body-dashboard .grid-container > .col-span-2 {
        grid-column: 1;
    }

    .body-dashboard .panel-electoral-5 {
        grid-column: 2;
        grid-row: 1;
        height: auto;
        min-height: 0;
    }

    .body-dashboard .panel {
        min-width: 0;
        padding: clamp(16px, 2vw, 22px);
    }

    .body-dashboard .member-vote-panel {
        gap: 12px;
    }

    .body-dashboard .member-section-title,
    .body-dashboard .member-location-section .panel-header .panel-tag-section {
        font-size: clamp(18px, 1.8vw, 22px);
        line-height: 1.25;
    }

    .body-dashboard .data-name {
        font-size: clamp(22px, 2.3vw, 28px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .body-dashboard .member-dni-line {
        margin-top: 10px;
        gap: 6px 10px;
    }

    .body-dashboard .member-dni-line strong,
    .body-dashboard .member-voting-place strong {
        font-size: clamp(28px, 2.8vw, 34px);
    }

    .body-dashboard .member-voting-place {
        font-size: clamp(21px, 2vw, 25px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .body-dashboard .member-time-title {
        margin-top: 12px;
        font-size: clamp(22px, 2.2vw, 26px);
    }

    .body-dashboard .member-voting-time {
        margin-top: 10px;
        padding-top: 8px;
        font-size: clamp(20px, 2vw, 24px);
        line-height: 1.3;
    }

    .body-dashboard .print-container {
        margin-top: auto;
    }
}

@media (max-height: 850px) {
    .login-bg-side {
        padding-block: 20px;
    }

    .asamblea-banner-box {
        min-height: min(500px, calc(100svh - 100px));
        padding-block: clamp(24px, 3vw, 40px);
    }

    .banner-text-top {
        margin-bottom: 24px;
    }

    .banner-img-container {
        height: clamp(180px, 28vh, 240px);
    }

    .login-form-side {
        padding-block: 16px;
    }

    .login-brand-header {
        margin-bottom: 14px;
    }

    .logo-area {
        margin-bottom: 14px;
    }

    .logo-area h1 {
        font-size: 25px;
        line-height: 1.25;
    }

    .electoral-notice {
        margin-bottom: 10px;
        padding: 8px 11px;
        font-size: 14px;
        line-height: 1.3;
    }

    .padron-cutoff-notice {
        margin-bottom: 10px;
        padding: 8px 10px;
        font-size: 14px;
        line-height: 1.35;
    }

    .form-group {
        margin-bottom: 12px;
    }

    input[type="text"] {
        padding: 12px;
    }

    .btn-submit {
        padding: 14px;
    }
}

.body-login .login-form-side {
    padding-top: 0;
}

@media screen and (min-width: 1025px) and (min-height: 700px) {
    .body-login {
        height: 100vh;
        height: 100svh;
        min-height: 0;
        overflow-y: hidden;
    }

    .body-login .login-wrapper {
        min-height: 0;
    }

    .body-login .login-bg-side,
    .body-login .login-form-side {
        min-width: 0;
    }

    .body-login > footer {
        flex: 0 0 auto;
    }
}

@media screen and (min-width: 1201px) and (max-height: 1000px) {
    .body-dashboard header {
        --header-inline-gutter: clamp(20px, 2vw, 32px);
        padding: 0 clamp(20px, 2vw, 32px);
    }

    .body-dashboard main {
        flex: 1 1 0;
        min-height: 0;
        padding-block: 14px;
        gap: 12px;
    }

    .body-dashboard .welcome-msg h3 {
        font-size: clamp(24px, 1.5vw, 28px);
        line-height: 1.2;
    }

    .body-dashboard .grid-container {
        flex: 1 1 0;
        min-height: 0;
        gap: 16px;
        grid-template-rows: minmax(0, 1fr);
    }

    .body-dashboard .panel {
        min-height: 0;
        padding: 18px;
    }

    .body-dashboard .member-vote-panel {
        gap: 12px;
        justify-content: flex-start;
    }

    .body-dashboard .member-location-section {
        padding-bottom: 12px;
    }

    .body-dashboard .member-identity-section .panel-header,
    .body-dashboard .member-location-section .panel-header {
        margin-bottom: 8px;
    }

    .body-dashboard .member-location-section .panel-header .panel-tag-section,
    .body-dashboard .member-time-title {
        font-size: 24px;
    }

    .body-dashboard .member-time-title {
        margin-top: 12px;
    }

    .body-dashboard .member-voting-place {
        font-size: clamp(22px, 1.5vw, 28px);
        line-height: 1.3;
    }

    .body-dashboard .member-voting-place strong {
        font-size: clamp(30px, 2vw, 38px);
    }

    .body-dashboard .member-voting-time {
        margin-top: 10px;
        padding-top: 10px;
        font-size: clamp(25px, 1.6vw, 30px);
        line-height: 1.25;
    }

    .body-dashboard .member-name-line {
        row-gap: 4px;
    }

    .body-dashboard .member-name-line .member-time-title,
    .body-dashboard .member-dni-line .member-time-title {
        margin-top: 0;
        font-size: 20px;
    }

    .body-dashboard .data-name {
        font-size: clamp(28px, 1.8vw, 34px);
        line-height: 1.2;
    }

    .body-dashboard .member-dni-line {
        margin-top: 10px;
        gap: 6px 12px;
    }

    .body-dashboard .member-dni-line strong {
        font-size: clamp(34px, 2.1vw, 40px);
    }

    .body-dashboard .panel-electoral-5 {
        height: 100%;
        min-height: 0;
    }

    .body-dashboard .electoral-img-wrapper,
    .body-dashboard .electoral-img {
        min-height: 0;
    }

    .body-dashboard .print-container {
        margin-top: auto;
    }

    .body-dashboard .btn-print {
        padding: 12px 24px;
    }

    .body-dashboard footer {
        padding: 10px 18px;
    }
}

@media screen and (min-width: 1201px) {
    .body-dashboard .member-vote-panel {
        display: grid;
        grid-template-rows: minmax(0, 1.05fr) minmax(0, 0.95fr) auto;
        align-content: stretch;
        gap: clamp(10px, 1.2vh, 18px);
    }

    .body-dashboard .member-location-section,
    .body-dashboard .member-identity-section {
        display: flex;
        min-height: 0;
        flex-direction: column;
        justify-content: space-around;
    }

    .body-dashboard .member-location-section {
        padding-bottom: 14px;
    }

    .body-dashboard .member-identity-section .panel-header,
    .body-dashboard .member-location-section .panel-header {
        margin-bottom: 0;
    }

    .body-dashboard .member-time-title,
    .body-dashboard .member-voting-place,
    .body-dashboard .member-voting-time,
    .body-dashboard .member-dni-line {
        margin-top: 0;
    }

    .body-dashboard .member-voting-time {
        padding-top: 12px;
    }

    .body-dashboard .member-name-line {
        row-gap: 6px;
    }

    .body-dashboard .member-dni-line {
        gap: 8px 14px;
    }

    .body-dashboard .print-container {
        margin-top: 0;
        align-self: end;
    }
}

@media screen and (min-width: 1201px) and (min-height: 700px) {
    .body-dashboard {
        height: 100vh;
        height: 100svh;
        min-height: 0;
        overflow: hidden;
    }

    .body-dashboard > header,
    .body-dashboard > footer {
        flex: 0 0 auto;
    }

    .body-dashboard main {
        flex: 1 1 0;
        min-height: 0;
        padding-block: clamp(8px, 1.3vh, 16px);
        gap: clamp(8px, 1.3vh, 14px);
    }

    .body-dashboard .welcome-msg {
        flex: 0 0 auto;
    }

    .body-dashboard .grid-container {
        flex: 1 1 0;
        min-height: 0;
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
    }

    .body-dashboard .grid-container > .panel,
    .body-dashboard .panel-electoral-5 {
        height: 100%;
        min-height: 0;
    }
}

@media print {
    header,
    .btn-logout,
    .print-container,
    footer,
    .welcome-msg,
    .panel-electoral-5 {
        display: none !important;
    }

    body {
        background-color: #ffffff;
        color: #000000;
    }

    main {
        padding: 0;
        margin: 0;
    }

    .grid-container {
        display: block;
        width: 100%;
    }

    .panel {
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        transform: none !important;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
}