﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Stretch ingredient search boxes and results */
#ingredient-search,
#ingredient-search-box {
    width: 100% !important;
}

#ingredient-search-results {
    width: 100% !important;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    position: relative;
    z-index: 1000; /* keeps results above other elements if overlapping */
}

html {
  position: relative;
  min-height: 100%;
}

/* General Styles */
body {
    background-color: white;
    color: black;
}

/* Navbar Styling */
.navbar {
    background-color: #003366 !important;
    border-bottom: 1px solid #ddd;
}

.navbar .nav-link, .navbar .nav-link i {
    color: white !important;
}

.navbar .nav-link i.bi-bell-fill {
    font-size: 1.3rem; /* Make icon slightly larger */
    color: white !important;
}

.status-indicator {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    display: inline-block;
}

.fresh-green {
    background-color: #28a745;
}

.medium-yellow {
    background-color: #ffc107;
}

.stale-red {
    background-color: #dc3545;
}

.input-wide {
    min-width: 12ch; /* or go to 14ch if needed */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Button Styling */
.btn-delete {
    background-color: red;
    color: white;
    border: none;
}

    .btn-delete:hover {
        background-color: darkred;
    }

.btn-submit {
    background-color: #003366 !important;
    color: white !important;
    border: none;
}

    .btn-submit:hover {
        background-color: #002855 !important; /* Slightly darker shade */
    }

.btn-edit {
    background-color: #003366 !important;
    color: white !important;
    border: none;
}

    .btn-edit:hover {
        background-color: #002855 !important; /* Slightly darker shade */
    }

#search-results {
    margin-bottom: 3rem; /* ensures space after results */
    overflow: visible; /* default, ensures no clipping */
}

/* CoA modal: keep header/footer fixed, body scrolls */
#coaModal .modal-dialog {
    height: calc(100% - var(--bs-modal-margin) * 2);
}

#coaModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#coaModal .modal-header,
#coaModal .modal-footer {
    flex: 0 0 auto; /* never shrink/grow */
}

#coaModal .modal-body {
    flex: 1 1 auto; /* fills remaining space */
    min-height: 0; /* 👈 crucial: allow shrinking so scrolling can happen */
    overflow-y: auto; /* scroll inside the body */
}

/* If you previously set heights on table wrappers, undo them */
#coaModal .table-responsive {
    max-height: none; /* avoid nested scroll stealing space */
    overflow: visible; /* let .modal-body own the scroll */
}

/* Optional: sticky header for long tables */
#coaModal thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bs-body-bg, #fff);
}

/* Procurement PO table header cleanup */
.procurement-po-table thead th {
    vertical-align: bottom;
    padding-top: 0.5rem;
    padding-bottom: 0.4rem;
    line-height: 1.1;
    font-weight: 600;
    white-space: nowrap;
}

    .procurement-po-table thead th.text-end {
        text-align: right;
    }

.procurement-po-table tbody td {
    vertical-align: middle;
}





