/* Tokens GY expandidos a literales para compatibilidad Sass 3.2 / Liferay 6.2 */

/* Goodyear ultimas pantallas - propuesta de validacion */
/* No resetear html/body global: rompe tipografia del theme Liferay */
body.gy-last-pages { background: #eef3f8; }
.gy-last-pages .gy-shell { min-height: 100vh; }
.gy-last-pages .gy-content { max-width: 1580px; }
.gy-last-pages .gy-sidebar__brand-name { color: #ffffff !important; }
.gy-last-pages .gy-sidebar__brand-product { color: rgba(255,255,255,.62) !important; }
.gy-last-topbar .gy-topbar__left,
.gy-last-topbar .gy-topbar__right { display: flex; align-items: center; gap: 14px; }
.gy-last-topbar .gy-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #d8e0eb;
    border-radius: 9px;
    background: #ffffff;
}
.gy-last-topbar .gy-menu-button span { width: 18px; height: 2px; border-radius: 4px; background: #073b87; }
.gy-topbar__title { display: block; color: #05245c; font-size: 14px; }
.gy-topbar__crumb { display: block; margin-top: 1px; color: #667085; font-size: 11px; }
.gy-topbar__status { display: inline-flex; align-items: center; gap: 7px; color: #137a48; font-size: 12px; font-weight: 700; }
.gy-topbar__status > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.gy-topbar__user { display: inline-flex; align-items: center; gap: 9px; color: #14213d; font-size: 12px; font-weight: 650; }
.gy-topbar__user .gy-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #073b87; background: #eaf3ff; font-size: 11px; font-weight: 800; }
.gy-page-header__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.gy-last-pages .gy-alert-bar { margin-bottom: 22px; }
.gy-button--block { width: 100%; }
.gy-card__body--flush { padding: 0; }

/* Index */
.gy-last-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.gy-last-index-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 132px; padding: 22px; border: 1px solid #d8e0eb; border-radius: 0.75rem; color: inherit; background: #ffffff; box-shadow: 0 8px 24px rgba(15, 54, 104, 0.10); text-decoration: none; transition: transform 150ms ease, border-color 150ms ease; }
.gy-last-index-card:hover { transform: translateY(-2px); border-color: #8ec3ff; }
.gy-last-index-card h2 { margin: 0; color: #05245c; font-size: 18px; }
.gy-last-index-card p { margin: 6px 0 0; color: #667085; font-size: 13px; }
.gy-last-index-card__arrow { width: 22px; color: #0868d7; }
.gy-last-index-card__arrow svg { width: 20px; }
.gy-last-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gy-last-check-grid span { position: relative; padding: 12px 14px 12px 38px; border: 1px solid #bfdcff; border-radius: 9px; color: #073b87; background: #f5f9ff; font-weight: 700; }
.gy-last-check-grid span::before { position: absolute; left: 14px; top: 11px; content: "✓"; color: #0868d7; }

/* Home */
.gy-home-hero { display: flex; min-height: 250px; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 40px; border: 1px solid #bfdcff; border-radius: 1.125rem; color: #14213d; background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%); box-shadow: 0 8px 24px rgba(15, 54, 104, 0.10); }
.gy-home-hero__eyebrow { display: inline-block; margin-bottom: 8px; color: #0868d7; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gy-home-hero h2 { max-width: 720px; margin: 0; color: #05245c; font-size: 4vw; line-height: 1.05; }
.gy-home-hero p { max-width: 720px; margin: 14px 0 0; color: #667085; font-size: 16px; }
.gy-home-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.gy-home-hero__visual { display: grid; width: 172px; height: 172px; flex: 0 0 172px; place-items: center; border: 1px solid #bfdcff; border-radius: 42px; color: #0868d7; background: rgba(255,255,255,.72); transform: rotate(5deg); }
.gy-home-hero__visual svg { width: 88px; height: 88px; }
.gy-home-summary { margin-top: 22px; }
.gy-last-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 30px 0 14px; }
.gy-last-section-heading h2 { margin: 0; color: #05245c; font-size: 22px; }
.gy-last-section-heading p { margin: 5px 0 0; color: #667085; }
.gy-last-section-heading--compact { margin-top: 0; }
.gy-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gy-quick-action { display: grid; grid-template-columns: auto minmax(0,1fr) auto; min-height: 138px; align-items: center; gap: 15px; padding: 20px; border: 1px solid #d8e0eb; border-radius: 0.75rem; color: inherit; background: #ffffff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); text-decoration: none; transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.gy-quick-action:hover { transform: translateY(-2px); border-color: #8ec3ff; box-shadow: 0 8px 24px rgba(15, 54, 104, 0.10); }
.gy-quick-action__icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: #0868d7; background: #eaf3ff; }
.gy-quick-action__icon svg { width: 24px; height: 24px; }
.gy-quick-action h3 { margin: 0; color: #05245c; font-size: 16px; }
.gy-quick-action p { margin: 6px 0 0; color: #667085; font-size: 12px; }
.gy-quick-action__arrow { width: 18px; color: #1677e8; }
.gy-quick-action__arrow svg { width: 18px; }

/* External access */
.gy-external-layout { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); align-items: start; gap: 22px; }
.gy-login-card { position: sticky; top: 86px; }
.gy-login-form { display: flex; flex-direction: column; gap: 18px; }
.gy-login-link { align-self: center; color: #0868d7; font-size: 12px; font-weight: 650; text-decoration: none; }
.gy-external-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gy-external-action { min-height: 210px; overflow: hidden; border: 1px solid #d8e0eb; border-radius: 0.75rem; color: inherit; background: #ffffff; box-shadow: 0 8px 24px rgba(15, 54, 104, 0.10); text-decoration: none; }
.gy-external-action__icon { display: grid; height: 92px; place-items: center; color: #ffffff; background: linear-gradient(135deg, #0868d7, #073b87); }
.gy-external-action__icon svg { width: 42px; height: 42px; }
.gy-external-action > div { padding: 18px; }
.gy-external-action h3 { margin: 0; color: #05245c; font-size: 17px; }
.gy-external-action p { min-height: 38px; margin: 7px 0 15px; color: #667085; font-size: 12px; }
.gy-external-action > div > span { display: inline-flex; align-items: center; gap: 5px; color: #0868d7; font-size: 12px; font-weight: 750; }
.gy-external-action > div > span svg { width: 14px; height: 14px; }

/* Reports */
.gy-report-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.gy-report-type { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: auto auto; gap: 4px 14px; min-height: 144px; padding: 22px; border: 1px solid #d8e0eb; border-radius: 0.75rem; color: #14213d; background: #ffffff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); text-align: left; cursor: pointer; }
.gy-report-type:hover, .gy-report-type.is-active { border-color: #8ec3ff; box-shadow: 0 8px 24px rgba(15, 54, 104, 0.10); }
.gy-report-type.is-active { background: #f5f9ff; }
.gy-report-type__number { position: absolute; top: 14px; right: 16px; color: #bfdcff; font-size: 30px; font-weight: 800; }
.gy-report-type__icon { grid-row: span 2; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 12px; color: #0868d7; background: #eaf3ff; }
.gy-report-type__icon svg { width: 24px; height: 24px; }
.gy-report-type strong { align-self: end; padding-right: 44px; color: #05245c; font-size: 17px; }
.gy-report-type small { color: #667085; font-size: 12px; }
.gy-report-panel { display: none; }
.gy-report-panel.is-active { display: block; }

/* Layout reportes: gy-grid / footer / input-group (no se carga goodyear-ui.css) */
.gy-last-pages .gy-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}
.gy-last-pages .gy-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 14px 1.25rem;
    border-top: 1px solid #d8e0eb;
    background: #f7f9fc;
}
.gy-last-pages .gy-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
.gy-last-pages .gy-input-group__addon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border: 1px solid #c6d0dd;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    color: #667085;
    background: #f7f9fc;
}
.gy-last-pages .gy-input-group__addon svg { width: 17px; height: 17px; }
.gy-last-pages .gy-input-group .gy-control,
.gy-last-pages .gy-input-group .form-control,
.gy-last-pages .gy-input-group .select2-container {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0 8px 8px 0 !important;
}
.gy-last-pages .gy-input-group .select2-container { width: 100% !important; }
.gy-last-pages .gy-input-group .select2-container .select2-selection--single {
    min-height: 42px;
    border-radius: 0 8px 8px 0 !important;
}

/* Users */
.gy-user-filter { margin-bottom: 18px; }
.gy-user-filter__button { align-self: end; }
.gy-last-record-size { display: inline-flex; align-items: center; gap: 8px; color: #667085; font-size: 12px; }
.gy-last-record-size .gy-select { width: 76px; min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
.gy-user-table .gy-table { min-width: 1060px; }
.gy-user-cell { display: flex; align-items: center; gap: 10px; }
.gy-user-cell > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; color: #073b87; background: #eaf3ff; font-size: 10px; font-weight: 800; }
.gy-user-cell strong, .gy-user-cell small { display: block; }
.gy-user-cell small { margin-top: 2px; color: #667085; font-size: 10px; }
.gy-user-table__footer { justify-content: space-between; color: #667085; font-size: 12px; }

/* Import modal */
.gy-js-modal.is-open { display: flex; }
.gy-modal-tabs__list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding: 5px; border: 1px solid #d8e0eb; border-radius: 10px; background: #ffffff; }
.gy-modal-tab { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 7px; color: #667085; background: transparent; font-weight: 700; cursor: pointer; }
.gy-modal-tab:hover, .gy-modal-tab.is-active { color: #073b87; background: #eaf3ff; }
.gy-modal-tab-panel { display: none; }
.gy-modal-tab-panel.is-active { display: flex; flex-direction: column; gap: 18px; }
.gy-upload-zone { display: flex; min-height: 148px; align-items: center; gap: 16px; padding: 22px; border: 2px dashed #bfdcff; border-radius: 0.75rem; background: #f5f9ff; }
.gy-upload-zone__icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border-radius: 13px; color: #0868d7; background: #ffffff; }
.gy-upload-zone__icon svg { width: 25px; height: 25px; }
.gy-upload-zone > div { flex: 1; }
.gy-upload-zone strong { display: block; color: #05245c; }
.gy-upload-zone p { margin: 5px 0 0; color: #667085; font-size: 12px; }
.gy-modal-inline-actions { display: flex; justify-content: flex-end; gap: 10px; }
.gy-modal-danger-panel { display: flex; gap: 14px; padding: 16px; border: 1px solid #f0b5b5; border-radius: 10px; color: #b42318; background: #fff0f0; }
.gy-modal-danger-panel > span { width: 28px; }
.gy-modal-danger-panel svg { width: 24px; height: 24px; }
.gy-modal-danger-panel h3 { margin: 0; font-size: 15px; }
.gy-modal-danger-panel p { margin: 5px 0 0; font-size: 12px; }
.gy-modal-preview-card { max-width: 700px; margin: 30px auto; text-align: center; }
.gy-modal-preview-card .gy-card__body { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 46px; }
.gy-modal-preview-card h2 { margin: 0; color: #05245c; }
.gy-modal-preview-card p { max-width: 520px; margin: 0; color: #667085; }

/* Resumen turnos / info jornada */
.gy-journey-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #d8e0eb;
    border-radius: 10px;
    background: #d8e0eb;
}
.gy-journey-info > div {
    padding: 14px 16px;
    background: #fff;
}
.gy-journey-info span {
    display: block;
    color: #667085;
    font-size: 11px;
}
.gy-journey-info strong {
    display: block;
    margin-top: 4px;
    color: #0d1b33;
    font-size: 13px;
}
.gy-ui--jornada .form_wizard,
.gy-ui--jornada .wizard_horizontal {
    margin-top: 12px;
}

/* Filtros JLS: botones alineados al final de la fila */
.gy-ui.gy-ui--mis .gy-filter-grid--jornada {
    align-items: end;
}
.gy-ui.gy-ui--mis .gy-filter-grid--jornada .gy-filter-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    width: 100% !important;
    min-height: 42px;
}
.gy-ui.gy-ui--mis .gy-filter-grid--jornada .gy-filter-actions .gy-button {
    width: 100%;
    justify-content: center;
}
.gy-ui.gy-ui--mis .gy-page-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
}
.gy-ui.gy-ui--mis .gy-page-actions,
.gy-ui.gy-ui--mis .gy-page-header__actions {
    margin-left: auto !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
}

@media (max-width: 1100px) {
    .gy-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gy-external-layout { grid-template-columns: 1fr; }
    .gy-login-card { position: static; }
    .gy-last-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gy-journey-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .gy-last-topbar .gy-menu-button { display: flex; }
    .gy-topbar__status { display: none; }
    .gy-home-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .gy-home-summary .gy-summary__item:nth-child(2) { border-right: 0; }
    .gy-home-summary .gy-summary__item:nth-child(-n+2) { border-bottom: 1px solid #d8e0eb; }
}
@media (max-width: 760px) {
    .gy-last-pages .gy-content { padding: 22px 16px; }
    .gy-page-header { flex-direction: column; }
    .gy-page-header__actions { width: 100%; justify-content: stretch; }
    .gy-page-header__actions .gy-button { flex: 1; }
    .gy-last-index-grid, .gy-quick-actions, .gy-external-actions, .gy-report-selector { grid-template-columns: 1fr; }
    .gy-home-hero { align-items: flex-start; padding: 28px 24px; }
    .gy-home-hero__visual { display: none; }
    .gy-home-summary { display: grid; grid-template-columns: 1fr; }
    .gy-home-summary .gy-summary__item { border-right: 0; border-bottom: 1px solid #d8e0eb; }
    .gy-home-summary .gy-summary__item:last-child { border-bottom: 0; }
    .gy-last-check-grid { grid-template-columns: 1fr; }
    .gy-grid > [class*="gy-col-"] { grid-column: span 12; }
    .gy-user-table__footer { align-items: flex-start; flex-direction: column; }
    .gy-upload-zone { align-items: flex-start; flex-direction: column; }
    .gy-upload-zone .gy-button { width: 100%; }
    .gy-modal-tabs__list { flex-direction: column; }
    .gy-modal-tab { text-align: left; }
    .gy-topbar__user > span:last-child { display: none; }
}

/* Modal editar: botones .center en fila + x_panel redondeados e igual altura */
.gy-modal-root .center,
.gy-modal-root .form-group.row > .center,
.gy-modal-root .gy-info-card__footer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    text-align: center !important;
}
.gy-modal-root .center > .btn,
.gy-modal-root .center > .gy-button,
.gy-modal-root .center > button,
.gy-modal-root .gy-info-card__footer > .btn,
.gy-modal-root .gy-info-card__footer > .gy-button,
.gy-modal-root .gy-info-card__footer > button {
    width: auto !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    display: inline-flex !important;
    margin: 0 !important;
    float: none !important;
}
.gy-modal-root .x_panel {
    border: 1px solid #d8e0eb !important;
    border-radius: 1.125rem !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(15, 54, 104, 0.10) !important;
    overflow: hidden !important;
    padding: 16px 18px 12px !important;
}
.gy-modal-root .row:has(> .col-md-6 > .x_panel),
.gy-modal-root .row:has(> [class*="col-md-6"] > .x_panel) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}
.gy-modal-root .row:has(> .col-md-6 > .x_panel) > [class*="col-"],
.gy-modal-root .row:has(> [class*="col-md-6"] > .x_panel) > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
}
.gy-modal-root .row:has(> .col-md-6 > .x_panel) > [class*="col-"] > .x_panel,
.gy-modal-root .row:has(> [class*="col-md-6"] > .x_panel) > [class*="col-"] > .x_panel {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.gy-modal-root .x_panel > form {
    flex: 1 1 auto !important;
}
.gy-modal-root .x_panel > .ln_solid {
    margin-top: auto !important;
}
.gy-modal-root .x_panel > .form-group.row {
    margin-bottom: 0 !important;
}

/* Switch/check unificado sitio: legacy .slider.round = gy-switch 46x26 */
.gy-ui .switch,
.gy-ui label.switch,
.gy-modal-root .switch,
.gy-modal-root label.switch,
.aui .gy-ui .switch,
.aui .gy-modal-root .switch {
    width: 46px !important;
    height: 26px !important;
    min-width: 46px !important;
    min-height: 26px !important;
}
.gy-ui .switch .slider,
.gy-ui .switch .slider.round,
.gy-modal-root .switch .slider,
.gy-modal-root .switch .slider.round {
    display: block !important;
    width: 46px !important;
    height: 26px !important;
    border-radius: 999px !important;
}
.gy-ui .gy-switch__track,
.gy-modal-root .gy-switch__track {
    width: 46px !important;
    height: 26px !important;
    flex-basis: 46px !important;
}