
/* ===== Contractor Monthly Reporting: Subgrid visual fixes (scoped) ===== */

/* Load Poppins (only if not already loaded) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

/* Base scope to subgrids to avoid side effects */
#Resource_Entries_Subgrid .view-grid.table-responsive .table,
#Waste_Entries_Subgrid .view-grid.table-responsive .table {
  color: #212529; /* dark base text */
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- TABLE HEADER ---------- */
#Resource_Entries_Subgrid .view-grid.table-responsive .table thead th,
#Waste_Entries_Subgrid .view-grid.table-responsive .table thead th {
  color: #212529 !important;      /* defeat white header text from theme */
  font-size: 11px;                 /* requested header size */
  font-weight: 600;                /* semi-bold for readability */
  line-height: 1.4;
  padding-top: 0.35rem;            /* tighter layout */
  padding-bottom: 0.35rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  vertical-align: middle;
}

/* Header links inherit styling and stay dark */
#Resource_Entries_Subgrid .view-grid.table-responsive .table thead th a,
#Waste_Entries_Subgrid .view-grid.table-responsive .table thead th a {
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

/* Optional: clearer affordance on hover/focus */
#Resource_Entries_Subgrid .view-grid.table-responsive .table thead th a:hover,
#Resource_Entries_Subgrid .view-grid.table-responsive .table thead th a:focus,
#Waste_Entries_Subgrid .view-grid.table-responsive .table thead th a:hover,
#Waste_Entries_Subgrid .view-grid.table-responsive .table thead th a:focus {
  color: #1a1a1a !important;
  text-decoration: underline;
}

/* Fail-safe for themes using descendant selectors on headers */
#Resource_Entries_Subgrid .view-grid.table-responsive .table > thead > tr > th,
#Waste_Entries_Subgrid .view-grid.table-responsive .table > thead > tr > th {
  color: #212529 !important;
  font-size: 11px;
  font-weight: 600;
}

/* ---------- TABLE BODY ---------- */
#Resource_Entries_Subgrid .view-grid.table-responsive .table tbody,
#Waste_Entries_Subgrid .view-grid.table-responsive .table tbody {
  font-size: 11px;           /* requested body size */
  line-height: 1.4;          /* readable at small size */
  font-weight: 300;          /* Poppins Light */
}

/* Cells adopt the 11px Poppins Light and tighten padding */
#Resource_Entries_Subgrid .view-grid.table-responsive .table tbody td,
#Waste_Entries_Subgrid .view-grid.table-responsive .table tbody td {
  font-size: inherit;        /* inherit 11px */
  font-weight: inherit;      /* inherit 300 (Light) */
  padding-top: 0.4rem;       /* tighter than default */
  padding-bottom: 0.4rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  vertical-align: middle;
}

/* Links and buttons inside body cells follow the 11px Light style */
#Resource_Entries_Subgrid .view-grid.table-responsive .table tbody td a,
#Resource_Entries_Subgrid .view-grid.table-responsive .table tbody td button,
#Waste_Entries_Subgrid .view-grid.table-responsive .table tbody td a,
#Waste_Entries_Subgrid .view-grid.table-responsive .table tbody td button {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.3;
}

/* Dropdown action cell: keep icons/buttons compact */
#Resource_Entries_Subgrid .view-grid.table-responsive .table tbody td .dropdown.action .btn,
#Resource_Entries_Subgrid .view-grid.table-responsive .table tbody td .dropdown.action .fa,
#Waste_Entries_Subgrid .view-grid.table-responsive .table tbody td .dropdown.action .btn,
#Waste_Entries_Subgrid .view-grid.table-responsive .table tbody td .dropdown.action .fa {
  font-size: 10px;
  line-height: 1.2;
  padding: 0.25rem 0.4rem; /* smaller button footprint */
}

/* Striped rows maintain contrast with dark text */
#Resource_Entries_Subgrid .view-grid.table-responsive .table.table-striped tbody tr:nth-of-type(odd),
#Waste_Entries_Subgrid .view-grid.table-responsive .table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}

/* Optional: slightly tighter column headers to match body density */
#Resource_Entries_Subgrid .view-grid.table-responsive .table thead th .visually-hidden.sort-hint,
#Waste_Entries_Subgrid .view-grid.table-responsive .table thead th .visually-hidden.sort-hint {
  font-size: 0; /* keep in DOM for SR but visually collapse if theme exposes it */
}


/* Add this to provide a subtle visual state for disabled*/
select.pp-empty {
  background-color: #f8f9fa; /* light gray */
  opacity: 0.9;
}

/*added to addreess the subgrid overflow*/

/* ===== Subgrid layout/overlay fixes (scoped) ===== */

/* Baseline min-height so row action menu has space (tweak as you like) */
#Resource_Entries_Subgrid,
#Resource_Entries_Subgrid .entity-grid.subgrid,
#Resource_Entries_Subgrid .view-grid,
#Waste_Entries_Subgrid,
#Waste_Entries_Subgrid .entity-grid.subgrid,
#Waste_Entries_Subgrid .view-grid {
  min-height: 320px; /* 280–360px usually good */
}

/* Do not clamp vertical overflow inside the subgrid wrappers */
#Resource_Entries_Subgrid,
#Resource_Entries_Subgrid .entity-grid.subgrid,
#Resource_Entries_Subgrid .view-grid,
#Resource_Entries_Subgrid .table-responsive,
#Waste_Entries_Subgrid,
#Waste_Entries_Subgrid .entity-grid.subgrid,
#Waste_Entries_Subgrid .view-grid,
#Waste_Entries_Subgrid .table-responsive {
  overflow-y: visible !important;   /* keep horizontal scroll intact */
}

/* Multistep/tab shells sometimes clamp overflow; relax just the vertical axis */
.tab-content, .tab-pane { overflow-y: visible !important; }

/* Make sure the action dropdown sits above local content (not strictly required, helpful on some themes) */
#Resource_Entries_Subgrid .dropdown-menu,
#Waste_Entries_Subgrid .dropdown-menu {
  z-index: 1060; /* > default dropdown (1000) and aligns with Bootstrap layers */
}

/* Small spacing so the toolbar doesn't collide with the table */
#Resource_Entries_Subgrid .view-toolbar,
#Waste_Entries_Subgrid .view-toolbar { margin-bottom: .5rem; }

/*added 2/18/2026 to shrink site header nave bar*/

/* ===== Header: force the container to 100px and center content ===== */

/* Exact 100px height on larger screens */
@media (min-width: 992px) { /* lg and up to match .navbar-expand-xl behavior */
  .navbar.static-top .header-container.custom-container {
    height: 100px;               /* the requirement */
    display: flex;                /* center children vertically */
    align-items: center;
    gap: 0.75rem;                 /* small spacing between brand and toggler/nav */
  }

  /* Remove extra vertical padding so 100px is honored */
  .navbar.static-top {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Keep brand/title/toggler from adding extra height */
  .navbar.static-top .navbar-brand,
  .navbar.static-top .nav-link,
  .navbar.static-top .navbar-toggler {
    padding-top: 0;               /* prevent padding from inflating height */
    padding-bottom: 0;
    line-height: 1.25;
  }

  /* The <h1> site title in your brand should not add margins */
  .navbar.static-top .custom-sitetitle {
    margin: 0;                    /* h1 has default margins; zero them */
    line-height: 1.2;
  }

  /* Your logo is currently 32px tall; cap it if you later increase it */
  .navbar.static-top .navbar-brand img,
  .navbar.static-top .navbar-brand svg {
    max-height: 48px;             /* tune if you want a larger logo within 100px */
    height: auto;
    width: auto;
  }
}

/* On smaller screens let the header breathe to avoid clipping the toggler/brand */
@media (max-width: 991.98px) {
  .navbar.static-top .header-container.custom-container {
    min-height: 64px;             /* typical mobile navbar height */
    display: flex;
    align-items: center;
  }
  .navbar.static-top {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  .navbar.static-top .custom-sitetitle { margin: 0; }
}