/* Tokens GY expandidos a literales para compatibilidad Sass 3.2 / Liferay 6.2 */
/* Goodyear Externos UI - maqueta (reutilizable). Scope: .gy-ui */
* {
    box-sizing: border-box;
}

.gy-ui {
    min-height: 100%;
    background: #eef3f8;
}

.gy-ui {
    min-height: 100vh;
    margin: 0;
    color: #14213d;
    background: #eef3f8;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(22, 119, 232, 0.18);
}

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

.gy-sidebar {
    position: fixed;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    width: 270px;
    flex-direction: column;
    overflow-y: auto;
    color: #ffffff;
    background: linear-gradient(180deg, #0666d1 0%, #064ca8 100%);
    box-shadow: 8px 0 28px rgba(3, 45, 103, 0.13);
}

.gy-brand {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.gy-brand__wordmark {
    color: #ffd900;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: -1.2px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.gy-sidebar__nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 18px 10px 24px;
}

.gy-nav-link {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.gy-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(2px);
}

.gy-nav-link[aria-current="page"] {
    color: #17203a;
    background: #ffd900;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(83, 73, 0, 0.18);
}

.gy-nav-link__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: currentColor;
    background: rgba(255, 255, 255, 0.10);
}

.gy-nav-link[aria-current="page"] .gy-nav-link__icon {
    background: rgba(6, 79, 174, 0.12);
}

.gy-nav-link__icon svg {
    width: 17px;
    height: 17px;
}

.gy-main {
    min-height: 100vh;
    margin-left: 270px;
}

.gy-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid #d8e0eb;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.gy-topbar__left,
.gy-topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gy-menu-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e0eb;
    border-radius: 10px;
    color: #0868d7;
    background: #ffffff;
    cursor: pointer;
}

.gy-menu-button:hover {
    background: #f5f9ff;
}

.gy-menu-button svg {
    width: 22px;
    height: 22px;
}

.gy-topbar__context {
    color: #667085;
    font-size: 13px;
}

.gy-topbar__user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #14213d;
    font-size: 13px;
    font-weight: 600;
}

.gy-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0868d7;
    background: #eaf3ff;
    font-size: 12px;
    font-weight: 800;
}

.gy-content {
    width: 100%;
    max-width: 1620px;
    margin: 0 auto;
    padding: 28px;
}

.gy-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.gy-page-header__main {
    display: flex;
    align-items: center;
    gap: 22px;
}

.gy-page-header__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe2ff;
    border-radius: 13px;
    color: #0868d7;
    background: #eaf3ff;
}

.gy-page-header__icon svg {
    width: 28px;
    height: 28px;
}

.gy-page-title {
    margin: 0;
    color: #05245c;
    font-size: 2vw;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.gy-page-subtitle {
    margin: 1px 0 0;
    color: #667085;
    font-size: 14px;
}

/* Misma maqueta que goodyear-ui / pantallas internas */
.gy-alert-bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 13px 40px 13px 16px;
    border: 1px solid #d9b900;
    border-left: 5px solid #d9b900;
    border-radius: 10px;
    color: #4d4200;
    background: #fff8c8;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    font-size: 13px;
    line-height: 1.45;
}

.gy-alert-bar__icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #064fae;
    font-size: 12px;
    font-weight: 800;
}

.gy-alert-bar strong {
    color: #0d1b33;
}

.gy-alert-bar__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #4d4200;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.gy-alert-bar__close:hover,
.gy-alert-bar__close:focus {
    background: rgba(77, 66, 0, 0.10);
    outline: none;
}

.gy-alert-bar.is-dismissed {
    display: none !important;
}

.gy-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gy-card {
    border: 1px solid #d8e0eb;
    border-radius: 1.125rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 54, 104, 0.10);
    overflow: hidden;
}

.gy-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 16px 20px;
    border-bottom: 1px solid #d8e0eb;
    background: #ffffff;
    border-top-left-radius: 1.125rem;
    border-top-right-radius: 1.125rem;
}

.gy-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
}

.gy-card__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #0868d7;
    background: #eaf3ff;
}

.gy-card__icon svg {
    width: 18px;
    height: 18px;
}

.gy-card__title {
    margin: 0;
    color: #05245c;
    font-size: 16px;
    font-weight: 750;
}

.gy-card__help {
    color: #667085;
    font-size: 12px;
}

.gy-card__body {
    padding: 22px;
}

.gy-user-summary {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    margin: 10px 2px;
    border: 1px solid #E6E9ED;
    border-radius: 0.75rem;
    padding: 5px 15px;
    background-color: #ffffff;
    box-shadow: none;
}

.gy-user-summary__item {
    display: flex;
    flex: 1 1 0;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 8px 10px;
    background: transparent;
    border-right: 1px solid #E6E9ED;
    text-align: left;
}

.gy-user-summary__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
}

.gy-user-summary__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdcff;
    border-radius: 0.5rem;
    color: #0868d7;
    background: #eaf3ff;
}

.gy-user-summary__icon svg {
    width: 17px;
    height: 17px;
    display: block;
    overflow: visible;
    margin: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gy-user-summary__label,
.gy-user-summary__value {
    text-align: left;
    width: 100%;
}

.gy-user-summary__value--email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.gy-user-summary__item:last-child {
    border-right: 0;
}

.gy-user-summary__label {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.gy-user-summary__value {
    display: block;
    margin-top: 3px;
    color: #0d1b33;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

/* Date/select en resumen: compacto, sin margin que desalinee el icono */
.gy-user-summary__item .gy-control,
.gy-user-summary__item input.gy-control,
.gy-user-summary__item select.gy-control {
    margin-top: 0;
    min-height: 32px;
    height: 32px;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 700;
}

.gy-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.gy-col-12 { grid-column: span 12; }
.gy-col-8 { grid-column: span 8; }
.gy-col-7 { grid-column: span 7; }
.gy-col-6 { grid-column: span 6; }
.gy-col-5 { grid-column: span 5; }
.gy-col-4 { grid-column: span 4; }
.gy-col-3 { grid-column: span 3; }
.gy-col-2 { grid-column: span 2; }

.gy-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0;
}

.gy-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 7px;
    color: #05245c;
    font-size: 13px;
    font-weight: 700;
}

.gy-required {
    color: #0868d7;
}

.gy-control-wrap {
    position: relative;
}

.gy-control-wrap--icon .gy-control {
    padding-left: 46px;
}

.gy-control-icon {
    position: absolute;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: inline-flex;
    width: 42px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #d8e0eb;
    color: #0868d7;
    pointer-events: none;
}

.gy-control-icon::before {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    content: "i";
    font-size: 11px;
    font-weight: 800;
}

.gy-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #c6d0dd;
    border-radius: 0.5rem;
    color: #14213d;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.gy-control::placeholder {
    color: #98a2b3;
}

.gy-control:hover:not(:disabled) {
    border-color: #9fb6d2;
}

.gy-control:focus {
    border-color: #1677e8;
    box-shadow: 0 0 0 3px rgba(22, 119, 232, 0.18);
}

.gy-control:disabled,
.gy-control[readonly] {
    color: #667085;
    background: #f0f3f7;
    cursor: not-allowed;
}

textarea.gy-control {
    min-height: 132px;
    resize: vertical;
}

.gy-control--compact {
    min-height: 40px;
}

.gy-help-text {
    margin: 6px 0 0;
    color: #667085;
    font-size: 12px;
}

.gy-counter {
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    text-align: right;
}

.gy-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.gy-check-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gy-check-grid--single {
    grid-template-columns: 1fr;
}

/* Si / No: cada extra debajo de su opcion */
.gy-check-grid--si-no {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    justify-items: start;
    align-items: start;
    column-gap: 24px;
    row-gap: 12px;
    width: 100%;
    text-align: left;
}

.gy-si-no-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.gy-si-no-extra {
    width: 100%;
    margin: 0;
}

.gy-si-no-extra:empty {
    display: none;
}

.gy-choice {
    position: relative;
    display: flex;
    min-height: 28px;
    align-items: center;
    gap: 9px;
    color: #344054;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.gy-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.gy-choice__box {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1.5px solid #9aa7b8;
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 140ms ease, background 140ms ease;
}

.gy-choice input[type="radio"] + .gy-choice__box {
    border-radius: 50%;
}

.gy-choice input:focus-visible + .gy-choice__box {
    box-shadow: 0 0 0 3px rgba(22, 119, 232, 0.18);
}

.gy-choice input:checked + .gy-choice__box {
    border-color: #0868d7;
    background: #0868d7;
}

.gy-choice input[type="checkbox"]:checked + .gy-choice__box::after {
    width: 8px;
    height: 4px;
    border: solid #ffffff;
    border-width: 0 0 2px 2px;
    content: "";
    transform: rotate(-45deg) translateY(-1px);
}

.gy-choice input[type="radio"]:checked + .gy-choice__box::after {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
}

.gy-choice:hover .gy-choice__box {
    border-color: #1677e8;
}

.gy-inline-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.gy-section-divider {
    height: 1px;
    margin: 4px 0;
    border: 0;
    background: #d8e0eb;
}

.gy-subsection {
    padding: 18px;
    border: 1px solid #d8e0eb;
    border-radius: 0.75rem;
    background: #f7f9fc;
}

.gy-subsection__title {
    margin: 0 0 14px;
    color: #05245c;
    font-size: 14px;
    font-weight: 750;
}

.gy-subsection__note {
    margin: -4px 0 14px;
    color: #c73232;
    font-size: 12px;
    font-style: italic;
}

.gy-date-time {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 120px 120px;
    gap: 12px;
}

.gy-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 4px;
    padding: 16px 18px;
    border: 1px solid #d8e0eb;
    border-radius: 1.125rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 24px rgba(22, 55, 95, 0.08);
    backdrop-filter: blur(12px);
    transition: border-radius 120ms ease;
}

/* Sticky activo: bordes inferiores cuadrados (sigue la pantalla) */
.gy-form-actions.is-stuck {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.gy-form-actions__edge {
    height: 1px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

.gy-form-actions__hint {
    margin-right: auto;
    color: #667085;
    font-size: 12px;
}

.gy-action-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gy-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.gy-button:hover {
    transform: translateY(-1px);
}

.gy-button svg {
    width: 18px;
    height: 18px;
}

.gy-button--primary {
    color: #ffffff;
    border-color: #0868d7;
    /* Azul solido de maqueta (sin degradado) */
    background: #0868d7;
    box-shadow: 0 7px 16px rgba(6, 79, 174, 0.20);
}

.gy-button--primary:hover {
    background: #1677e8;
    border-color: #1677e8;
}

.gy-button--secondary {
    color: #064fae;
    border-color: #b9cbe1;
    background: #ffffff;
}

.gy-button--secondary:hover {
    background: #f5f9ff;
}

.gy-other-company {
    display: none;
    margin-top: 10px;
}

.gy-other-company.is-visible {
    display: block;
}

.gy-sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: none;
    background: rgba(3, 18, 42, 0.48);
}

.gy-sidebar-overlay.is-visible {
    display: block;
}

.gy-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1280px) {
.gy-content {
        padding: 22px;
    }

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

@media (max-width: 1024px) {
    .gy-sidebar {
        transform: translateX(-105%);
        transition: transform 200ms ease;
    }

    .gy-sidebar.is-open {
        transform: translateX(0);
    }

    .gy-main {
        margin-left: 0;
    }

    .gy-content {
        padding: 20px;
    }

    .gy-user-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
    }

    .gy-col-8,
    .gy-col-7,
    .gy-col-6,
    .gy-col-5,
    .gy-col-4 {
        grid-column: span 12;
    }

    .gy-col-3,
    .gy-col-2 {
        grid-column: span 6;
    }

    .gy-date-time {
        grid-template-columns: minmax(200px, 1fr) 110px 110px;
    }
}

@media (max-width: 720px) {
    .gy-ui {
        font-size: 13px;
    }

    .gy-topbar {
        padding: 0 16px;
    }

    .gy-topbar__context {
        display: none;
    }

    .gy-content {
        padding: 16px;
    }

    .gy-page-header {
        align-items: center;
    }

    .gy-page-header__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .gy-page-title {
        font-size: 23px;
    }

    .gy-user-summary,
    .gy-check-grid,
    .gy-check-grid--three {
        grid-template-columns: 1fr;
    }

    .gy-col-3,
    .gy-col-2 {
        grid-column: span 12;
    }

    .gy-card__header,
    .gy-card__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gy-date-time {
        grid-template-columns: 1fr 1fr;
    }

    .gy-date-time .gy-date-time__date {
        grid-column: 1 / -1;
    }

    .gy-form-actions {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .gy-action-group,
    .gy-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gy-topbar__user span:not(.gy-avatar) {
        display: none;
    }

    .gy-page-header__icon {
        display: none;
    }

    .gy-card__help {
        display: none;
    }
}

@media print {
    .gy-sidebar,
    .gy-topbar,
    .gy-form-actions,
    .gy-alert-bar {
        display: none !important;
    }

    .gy-main {
        margin: 0;
    }

    .gy-content {
        max-width: none;
        padding: 0;
    }

    .gy-card {
        break-inside: avoid;
        box-shadow: none;
    }
}