/* Acceso web: recursos de CORK, independientes del panel y de Flutter. */
body.avicore-login::before,
body.avicore-access::before {
    display: none;
}
body.avicore-auth.avicore-login {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body.avicore-auth.avicore-login #auth-boxed {
    flex: 1 0 auto;
    min-height: 0;
    height: auto;
    margin-block: 0;
    padding-block: 24px;
}
.avicore-login-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: #1b2e4b;
}
.avicore-login-background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.avicore-login-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27, 46, 75, 0.28);
}
body.dark .avicore-login-background::after {
    background: rgba(6, 8, 24, 0.62);
}
body.avicore-login #auth-boxed,
body.avicore-login .footer-wrapper {
    position: relative;
    z-index: 1;
}
body.avicore-login #auth-boxed .card {
    border: 1px solid #e0e6ed;
    box-shadow: 0 16px 48px rgba(27, 46, 75, 0.18);
    border-radius: 16px;
}
body.avicore-auth.avicore-login .footer-wrapper {
    flex: 0 0 auto;
    min-height: 0;
    background: transparent;
}
body.avicore-login .footer-wrapper .footer-section,
body.avicore-login .footer-wrapper .footer-section p,
body.avicore-login .footer-wrapper .footer-section a {
    color: #fff;
    text-shadow: 0 1px 4px rgba(14, 23, 38, 0.8);
}
body.dark.avicore-login #auth-boxed .card {
    border-color: #3b3f5c;
}
body.avicore-access {
    background: #f7f8fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.avicore-access .avicore-access-shell {
    width: 100%;
    max-width: 1760px;
    padding: 24px 32px 40px;
    margin-inline: auto;
    flex: 1;
}
.avicore-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.avicore-access-session {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.avicore-access-session strong {
    overflow-wrap: anywhere;
    color: var(--primary_500);
}
.avicore-access-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.9fr) minmax(0, 2fr);
    gap: 24px;
    align-items: stretch;
}
body.avicore-access .avicore-access-card {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 28px;
    min-width: 0;
    box-shadow: 0 8px 28px rgba(31, 45, 61, 0.04);
}
.avicore-access-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.5;
}
.avicore-access-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 5px;
    background: var(--primary_500);
}
.avicore-access-identity {
    text-align: center;
    padding: 30px 0 24px;
}
.avicore-access-identity .avicore-current-avatar {
    width: 142px;
    height: 142px;
    border-radius: 20px !important;
    font-size: 56px;
    margin-bottom: 20px;
}
.avicore-access-identity h3 {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--primary_500);
    overflow-wrap: anywhere;
    margin-bottom: 10px;
}
.avicore-access-data {
    margin: 0;
    display: grid;
    gap: 18px;
}
.avicore-access-data dt {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 3px;
}
.avicore-access-data dt svg {
    width: 17px;
    height: 17px;
}
.avicore-access-data dd {
    margin: 0 0 0 27px;
    overflow-wrap: anywhere;
    color: #3b3f5c;
}
.avicore-access-columns,
.avicore-access-branch {
    display: grid;
    grid-template-columns: 58px minmax(125px, 1.1fr) minmax(120px, 1fr) minmax(85px, 0.6fr) 105px;
    gap: 16px;
    align-items: center;
}
.avicore-access-columns {
    padding: 12px 8px;
    border-radius: 8px;
    background: var(--primary_100);
    color: var(--primary_500);
    font-size: 11px;
    font-weight: 600;
}
.avicore-access-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.avicore-access-branch {
    border-bottom: 1px solid #e0e6ed;
    padding: 24px 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.avicore-access-branch > * {
    min-width: 0;
}
.avicore-access-logo .avicore-branch-avatar {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
}
.avicore-access-name strong,
.avicore-access-name small {
    display: block;
}
.avicore-access-name small {
    margin-top: 6px;
}
.avicore-access-field {
    display: none;
}
.avicore-access-enter .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
    padding: 10px 12px;
}
body.dark.avicore-access {
    background: #060818;
}
body.dark.avicore-access .avicore-access-card {
    background: #0e1726;
    border-color: #3b3f5c;
}
body.dark .avicore-access-data dt {
    color: #888ea8;
}
body.dark .avicore-access-data dd,
body.dark .avicore-access-branch {
    color: #e0e6ed;
}
body.dark .avicore-access-branch {
    border-color: #3b3f5c;
}
body.dark .avicore-access-columns {
    background: #1b2e4b;
    color: var(--primary_200);
}
.avicore-access :is(a, button):focus-visible {
    outline: 2px solid var(--primary_500);
    outline-offset: 4px;
}
@media (max-width: 1199px) {
    .avicore-access-columns {
        display: none;
    }
    .avicore-access-branch {
        grid-template-columns: 50px minmax(0, 1fr) 105px;
        grid-template-areas: 'logo name enter' '. address address' '. phone phone';
        gap: 12px 16px;
    }
    .avicore-access-logo {
        grid-area: logo;
    }
    .avicore-access-name {
        grid-area: name;
    }
    .avicore-access-enter {
        grid-area: enter;
    }
    .avicore-access-address {
        grid-area: address;
    }
    .avicore-access-phone {
        grid-area: phone;
    }
    .avicore-access-field {
        display: block;
        color: #888ea8;
        font-size: 11px;
        margin-bottom: 3px;
    }
}
@media (max-width: 767px) {
    body.avicore-access .avicore-access-shell {
        padding: 18px 16px 24px;
    }
    .avicore-access-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    body.avicore-access .avicore-access-card {
        padding: 22px;
    }
    .avicore-access-identity .avicore-current-avatar {
        width: 88px;
        height: 88px;
        font-size: 36px;
    }
    .avicore-access-data {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .avicore-access-session .avicore-current-avatar {
        display: none;
    }
}
@media (max-width: 420px) {
    .avicore-access-header {
        align-items: flex-start;
        gap: 12px;
    }
    .avicore-access-header .avicore-auth-brand {
        font-size: 18px;
    }
    .avicore-access-session {
        font-size: 12px;
    }
    .avicore-access-branch {
        grid-template-columns: 50px minmax(0, 1fr);
        grid-template-areas: 'logo name' 'address address' 'phone phone' 'enter enter';
    }
    .avicore-access-enter {
        justify-self: end;
    }
}
