/* Mini Oracle: responsive layout + always-visible header/footer (added 2026-12-06) */
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 64px; }
.app-header { position: sticky; top: 0; z-index: 1030; }
.site-footer, body > .footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
    margin-top: 0 !important;
}
.mo-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 991.98px) {
    .container, .container-fluid { padding-left: 12px; padding-right: 12px; }
    .portlet, .card { border-radius: 8px; }
}
@media (max-width: 767.98px) {
    body { padding-bottom: 58px; }
    .app-header { padding: 8px 0 !important; }
    .app-header .container { flex-wrap: wrap; gap: 6px; }
    .site-logo { font-size: 18px !important; }
    .logo-badge { width: 30px; height: 30px; font-size: 13px; }
    .welcome-chip, .hdr-btn { font-size: 12px !important; padding: 4px 9px !important; }
    .site-footer, body > .footer { font-size: 11.5px; padding: 9px 0 !important; }
    h1, h2 { font-size: 1.25rem; }
    h3, h4 { font-size: 1.05rem; }
    .portlet-title { font-size: 14px; }
    .btn { font-size: 13px; padding: 6px 12px; }
    .form-control, .form-select { font-size: 14px; }
    .row { --bs-gutter-x: .6rem; --bs-gutter-y: .6rem; }
    .mo-table-scroll table.table { font-size: 12.5px; margin-bottom: 0; }
    .mo-table-scroll table.table th, .mo-table-scroll table.table td { white-space: nowrap; }
    .modal-dialog { margin: 8px; }
}
/* flex children must be allowed to shrink on narrow screens */
.d-flex > .form-control, .d-flex > .form-select, .d-flex > .input-group { min-width: 0; }
.d-flex > .form-control.flex-grow-1 { width: 1%; }
