/* Shared phone defaults; the desktop layout keeps its existing density. */
.login-panel { padding-top: 3rem; padding-bottom: 2rem; }
@media (max-width: 767.98px) {
    .login-panel { padding-top: 4rem; }
    .form-control, .form-select, .input-group-text { font-size: 1rem; }
    input.form-control:not([type="checkbox"]):not([type="radio"]),
    select.form-select, .btn, .page-link, .dropdown-item, .navbar-toggler { min-height: 44px; }
    .btn, .page-link { display: inline-flex; align-items: center; justify-content: center; }
    .btn { white-space: normal; min-width: 44px; }
    .btn-close { min-width: 24px; min-height: 24px; padding: 10px; box-sizing: content-box; }
    .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
    .form-check { min-height: 44px; display: flex; align-items: center; gap: .5rem; }
    .form-check-input { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: 0; }
    .form-check-label { padding-block: .5rem; }
    #alert-chk { width: calc(100% - 1.5rem); max-width: 450px; margin-right: .75rem; overflow-wrap: anywhere; }
    #myFather .row > *, .planning-layout > *, .planning-actions .flex-grow-1 { min-width: 0; }
    #myFather h4, #myFather h5, .alert, .breadcrumb, #planningSelection { overflow-wrap: anywhere; }
    .table-responsive { position: relative; max-width: 100%; -webkit-overflow-scrolling: touch; }
    .pagination { flex-wrap: wrap; gap: .25rem; }
    #mainNavbar { max-height: calc(100dvh - 70px); overflow-y: auto; }
    #mainNavbar .nav-link { min-height: 48px; }
    #profile .name { display: none; }
    #visitLocationActions { width: 100%; }
    #visitLocationActions .btn { flex: 1 1 0; padding-inline: .4rem; }
    .planning-calendar { min-width: 0; grid-template-columns: 1fr; }
    .planning-calendar .planning-day { grid-column: 1 !important; }
    .planning-actions .flex-grow-1 { flex-basis: 100%; }
    .planning-cycle .input-group-text { white-space: normal; flex: 1; min-width: 0; }
    .planning-visit { min-height: 44px; }
}
@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down .modal-body { padding: .75rem; }
    .modal-fullscreen-sm-down .modal-footer { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
    .visit-map { height: 45dvh; min-height: 240px; max-height: 360px; }
    .modal-footer .btn { flex: 1 1 0; }
}
