﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- 
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height 
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there 
}
    */


.error {
    font-size: small;
    color: #ff0000;
    font-style: italic;
}

.err-field {
    background-color: #ffcccb !important;
}

.alert-sm {
    padding: 0.50rem 0.50rem !important;
}

.datepicker td, .datepicker th {
    padding: 5px;
}

/* ── App bottom nav (hidden in browser, shown only when installed as PWA/TWA) ── */
.app-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #fff;
    border-top: 1px solid #dee2e6;
    z-index: 1050;
}

.app-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #6c757d;
    text-decoration: none;
    font-size: 10px;
    padding: 6px 0 8px;
}

.app-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.75;
}

.app-nav-item.active {
    color: #1b6ec2;
}

.app-nav-item:hover {
    color: #1b6ec2;
    text-decoration: none;
}

@media (display-mode: standalone) {
    /* Show the bottom nav */
    .app-bottom-nav {
        display: flex !important;
    }

    /* Hide desktop-only chrome */
    #layoutSidenav_nav { display: none !important; }
    #sidebarToggle { display: none !important; }
    .footer { display: none !important; }
    .page-header { display: none !important; }

    /* Content fills the full width (no sidebar pushing it over) */
    #layoutSidenav #layoutSidenav_content {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* Prevent content from hiding behind the bottom nav */
    main { padding-bottom: 72px !important; }
}