/* Viajario 0.13.1 · editor de actividad, pasaporte y correcciones visuales */

/* Iconos fiables: no dependen de glifos disponibles en la fuente del móvil. */
.notification-bell-icon,
.notification-bell-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.notification-bell-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* El botón debe ser legible antes, durante y después del hover. */
.budget-manage-button,
.budget-manage-button:link,
.budget-manage-button:visited {
    color: #061857;
    background: #fff;
    border: 1px solid rgba(6, 24, 87, .18);
}

.budget-manage-button:hover,
.budget-manage-button:focus-visible {
    color: #fff;
    background: #061857;
    border-color: #061857;
}

.activity-expense-hint {
    display: inline-flex;
    margin-top: 6px;
    color: #eb6255;
    font-size: 10px;
    font-weight: 800;
}

.plan-title-button {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    text-align: left;
}

.plan-title-button:hover,
.plan-title-button:focus-visible { color: #eb6255; }

body.plan-modal-open { overflow: hidden; }

.plan-panel-backdrop {
    position: fixed;
    z-index: 109;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(5, 15, 48, .62);
    border: 0;
    border-radius: 0 !important;
    cursor: default;
    backdrop-filter: blur(2px);
}

.plan-menu .plan-panel {
    position: fixed;
    z-index: 110;
    top: 50%;
    right: auto;
    left: 50%;
    width: min(760px, calc(100vw - 32px));
    max-height: min(86vh, 880px);
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border-radius: 14px !important;
    box-shadow: 0 28px 80px rgba(2, 10, 40, .35);
}

.plan-panel-header {
    position: sticky;
    z-index: 2;
    top: 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #061857;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #e5e9f2;
    backdrop-filter: blur(8px);
}

.plan-panel-header h2 {
    margin: 3px 0 0;
    font-size: 19px;
    line-height: 1.2;
}

.plan-panel-close {
    min-width: 42px;
    min-height: 40px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #061857;
    background: #f1f3f8;
    border: 1px solid #dce1eb;
    border-radius: 7px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.plan-panel-close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.plan-panel > form,
.activity-expense-editor {
    margin: 0;
    padding: 20px;
}

.activity-expense-editor {
    background: #f7f9fc;
    border-top: 1px solid #e1e6ef;
    border-bottom: 1px solid #e1e6ef;
}

.activity-expense-editor-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.activity-expense-editor-heading h3 {
    margin: 3px 0 0;
    color: #061857;
    font-size: 17px;
}

.activity-expense-editor-heading > strong {
    color: #176840;
    font-size: 11px;
}

.plan-panel > form:last-child {
    padding-top: 14px;
    padding-bottom: 18px;
}

.plan-panel .text-danger { cursor: pointer; }

.passport-date { display: inline-flex; }

@media (max-width: 620px) {
    .notification-bell-icon,
    .notification-bell-icon svg { width: 21px; height: 21px; }

    .plan-menu .plan-panel {
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        max-height: none;
        transform: none;
    }

    .plan-panel-header { padding: 13px 14px; }
    .plan-panel-header h2 { max-width: 210px; font-size: 16px; }
    .plan-panel-close span { display: none; }
    .plan-panel-close { width: 40px; padding: 8px; }
    .plan-panel > form,
    .activity-expense-editor { padding: 16px 14px; }
    .activity-expense-editor-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .activity-expense-add form { margin-left: 0; }
}
