/* ETEL Admin - footer bar. A thin fixed bar at the bottom: copyright, links to the other apps, live system status.
   The page area above it (.main-container) is shortened by the same height so nothing hides behind it. */
:root { --af-h: 34px; }
.admin-footer {
    position: fixed; left: 0; right: 0; bottom: 0; height: var(--af-h); z-index: 190;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 18px;
    background: #FFFFFF; color: #3A3322; border-top: 1px solid rgba(212, 175, 55, .45);
    font-size: 12px; line-height: 1; box-sizing: border-box; overflow: hidden; white-space: nowrap;
}
body.dark-theme .admin-footer { background: #14141f; color: #D9D2C0; border-top-color: rgba(212, 175, 55, .35); }
.admin-footer .af-links { display: flex; gap: 16px; align-items: center; min-width: 0; }
.admin-footer a { color: inherit; text-decoration: none; font-weight: 600; opacity: .85; }
.admin-footer a:hover, .admin-footer a:focus-visible { opacity: 1; text-decoration: underline; outline: none; }
.admin-footer .af-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.admin-footer .af-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 0 3px rgba(46, 204, 113, .2); }
.admin-footer .af-dot.af-warn { background: #E67E22; box-shadow: 0 0 0 3px rgba(230, 126, 34, .2); }
.admin-footer .af-dot.af-bad { background: #E63946; box-shadow: 0 0 0 3px rgba(230, 57, 70, .2); }
/* make room for the bar */
.main-container { height: calc(100vh - 72px - var(--af-h)) !important; }
@media (max-width: 768px) {
    /* follow the real header height (js/admin-footer.js sets --af-header-h / --af-nav-h); 56px / 52px are the normal-size values */
    .sidebar { top: var(--af-header-h, 56px) !important; }
    .main-container { top: calc(var(--af-header-h, 56px) + var(--af-nav-h, 52px)) !important; bottom: var(--af-h) !important; height: auto !important; }
    .admin-footer { padding: 0 10px; gap: 8px; font-size: 11px; }
    .admin-footer .af-copy { display: none; }
    .admin-footer .af-links { gap: 10px; overflow: hidden; }
    .admin-footer .af-links a:nth-child(n+3) { display: none; }
}
/* two more app links in the header (Customer, Service Giver): on a laptop screen make the header stats compact so the logout button stays on screen */
@media (min-width: 769px) and (max-width: 1320px) {
    .header-right { gap: 6px !important; }
    .header-right .header-stat { padding: 6px 9px !important; font-size: 11px !important; }
    .header-right .header-stat:nth-child(2) { display: none !important; }   /* "Updated: time" is the least needed here */
    .header-left .header-info { min-width: 0; }
}
