/* ===== Base ===== */
html {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
  }
  body {
    margin: 0;
    background: #f0f0f0;
  }
  
  /* ===== Page Container ===== */
  .page-container {
    max-width: 1800px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  }
  
  /* ===== Header ===== */
  .main-header {
    background-color: #40a6dd;
    color: white;
    padding: 15px 20px;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
  }

  .app-title {
    font-size: 1.4em;
    font-weight: bold;
    color: white;
    text-decoration: none;
  }
  .app-title:hover {
    text-decoration: underline;
  }
  .user-info {
    font-size: 0.9em;
  }

  .user-info link {
    color: green;
  }

  

  
  /* ===== Layout ===== */
  .layout-wrapper {
    display: flex;
    justify-content: center;
    background: white;
  }
  .layout {
    display: flex;
    max-width: 1800px;
    width: 100%;
    min-height: calc(100vh - 60px);
    background-color: white;
  }
  
  /* ===== Sidebar ===== */
  .sidebar {
    width: 220px;
    background-color: #f7f7f7;
    border-right: 1px solid #ccc;
    padding: 20px;
  }
  .sidebar h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
  }
  .sidebar ul {
    list-style: none;
    padding-left: 0;
  }
  .sidebar li {
    margin: 6px 0;
  }
  .sidebar a {
    text-decoration: none;
    color: #0074cc;
  }
  .sidebar a:hover {
    text-decoration: underline;
  }
  
  /* ===== Main Content ===== */
  .content-area {
    flex: 1;
    padding: 30px;
  }
  .flash {
    background-color: #f8e6e6;
    border: 1px solid #e0b4b4;
    padding: 10px;
    margin-bottom: 15px;
    color: #a94442;
  }
  
  /* ===== Form Layout ===== */
  form {
    width: 100%;
  }
  .form-row {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
  }
  .form-row label {
    width: 150px;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
  }
  .form-row input,
  .form-row select,
  .content input,
  .content textarea {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
  }
  .content textarea {
    min-height: 12em;
    resize: vertical;
  }
  input[type=submit] {
    align-self: start;
    min-width: 10em;
  }
  .qty-input {
    max-width: 80px;    /* or whatever you prefer */
  }
  
  /* ===== Fieldsets ===== */
  fieldset {
    border: 1px solid #ccc;
    padding: 1em;
    margin-top: 1em;
  }
  legend {
    font-weight: bold;
  }
  
  /* ===== Buttons ===== */
  
  .delete-icon {
    background: none;
    border: none;
    color: #cc2f2e;
    font-size: 1em;
    cursor: pointer;
    margin-left: 8px;
  }
  .delete-icon:hover {
    text-decoration: underline;
  }
  
  
  /* ===== Tables ===== */
  .styled-table,
  .table-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 16px;
  }
  .styled-table th,
  .table-card th,
  .styled-table td,
  .table-card td {
    padding: 5px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
  }
  .styled-table tbody tr:nth-child(even),
  .table-card tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  .styled-table tbody tr:nth-child(odd),
  .table-card tr:nth-child(odd) {
    background-color: #fff;
  }
  .table-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
  }
  .table-card tr:hover {
    background-color: #f1f1f1;
  }
  
  .usage-cell.insufficient {
    background-color: #ffe5e5;
    color: #b30000;
    font-weight: bold;
  }

.shortfall {
  color: red;
  font-weight: bold;
}

  .table-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border: 1px solid #65a4e7;
    width: auto;
    table-layout: auto;
  }
  
  .table-section th {
    background-color: #65a4e7;
  }
  
  .styled-table .amount {
    text-align: right;
  }
  /* ===== Vendor Layout ===== */
  .vendor-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px;
    margin: 2px 0;
    background-color: #f9f9f9;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  .vendor-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    padding-bottom: 0;
  }

  .vendor-block {
    margin-bottom: 2em;
  }

  
/* ===== About page ===== */
.about-narrow {
  max-width: 960px; /* narrower content area for About */
  margin-left: auto;
  margin-right: auto;
}

.about-hero-img {
  max-width: 80%; /* further reduce hero image width */
  height: auto;
}
/* ===== About page ===== */

/* ===== Carousel overrides ===== */
#prodCarousel .carousel-control-prev-icon,
#prodCarousel .carousel-control-next-icon {
  filter: invert(1) grayscale(100%);
}
