.job_details {
    color: #0d6efd;
}

/* Users page specific search box padding override - only for users listing */
.users-page .global-header-box .search-box .type_box.users-search-input {
    padding: 12px !important;
    padding-left: 20px !important;
}
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none; /* Initially hidden */
  }

  .loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  }

  .loader-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }


  .error {
    color: #ff0000;
    font-size: 12px;
    display: block;
    margin-top: 5px;
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    width: 100%;
    clear: both;
}

/* Make asterisks appear inline after label (not below) */
.form-item-row label .error {
    display: inline !important;
    margin-top: 0;
    margin-left: 2px;
    width: auto;
    clear: none;
}

/* Make error messages appear below input fields, aligned with input (not label) */
.form-item-row {
    flex-wrap: wrap;
    align-items: flex-start;
}

.form-item-row .control-form {
    flex: 1;
}

.form-item-row .control-form + label.error {
    display: block !important;
    width: 100%;
    max-width: 450px;
    margin-top: 5px;
    margin-left: 310px; /* Align with input: label width (300px) + gap (10px) */
    flex-basis: 100%;
    order: 10;
}

/* Align profile image upload section with other inputs */
.form-item-row .upload_section_wrap {
    flex: 1;
    max-width: 450px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Input wrapper for error messages */
.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profileImgRightTop {
    width: 34px;
    height: 34px;
    border-radius: 100px;
    background-size: cover;
    background-position: center;
}

.profileImgMedium {
    width: 88px;
    height: 88px;
    border-radius: 100px;
    background-size: cover;
    background-position: center;
}
.job-card {
    white-space: normal;
}
.profileImgNote {
    width: 40px;
    height: 40px;
    border-radius: 100px;
    background-size: cover;
    background-position: center;
}
body:has(.sidebar.active)::before,
body:has(.sidebar-css.active)::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 10; /* Ensure it covers everything but sidebar */
}

/* Ensure the sidebar remains on top */
.sidebar,
.sidebar-css {
    z-index: 11;
}
.day-column {
    min-width: 200px;
    width: 100%;
}
  .blue-section-top {
    background-color: rgba(25, 75, 160, 1);
    padding: 15px;
    color: #fff;
  }
  .blue-section-top a{
    color: #fff;
  }
  .blue-section-top h3{
    color: #fff;
    font-weight: normal;
  }
  .container-custom {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-logo {
    width: 250px;
    margin-bottom: 20px;
}
.download-buttons img {
    width: 200px;
    margin: 10px 0;
}
.phone-mockup {
    width: 260px;
}
.sign-out-btn {
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    margin-top: 20px;
}
.app-link {
    color: #BE8458;
    font-weight: 700;
    margin-top: 10px;
    display: block;
}
.btn-primary {
    color: #fff;
    background-color: #194BA0;
    border-color: #194BA0;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0b2552;
    border-color: #0b2552;
}
.align-items-end label[for="time_1"] {
    margin-left: -16px;
}
.job-card.conflict-user {
    background-color: #FFD6D6;
    border-color: #d6d8db;
  }
  .red-section-top {
    background-color: #FFD6D6;
    padding: 15px;
    color: #FF0000;
  }
  .red-section-top a{
    color: #FF0000;
  }
  .red-section-top h3{
    color: #FF0000;
    font-weight: normal;
  }
 .sort-icon img {
    width: 1.2rem !important;
  }
  .sort-icon{
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  #estimatingDropdown::after {
    display: none;
  }

  /* Crafts Module Styles */
  .crafts-module .accordion-#7DA8F0:not(.collapsed) {
    background-color: #7DA8F0;
    color: #194BA0;
  }

  .crafts-module .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #7DA8F0;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
  }

  .crafts-module .accordion-button:not(.collapsed) {
    color: #fff;
  }

  .crafts-module .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 75, 160, 0.25);
  }

  .crafts-module .accordion-item {
    border: 1px solid #DEDEDE;
  }

  .crafts-module .accordion-header button {
    border-radius: 5px 5px 0 0;
  }

  .crafts-module .accordion-body {
    background-color: #fff;
    border-radius: 0 0 5px 5px;
  }

  /* Custom accordion icons for Crafts Module */
  .crafts-module .accordion-button::after {
    display: none !important;
  }

  .crafts-module .accordion-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background-color: #194BA0;
    transition: all 0.3s ease;
  }

  .crafts-module .accordion-icon:hover {
    background-color: #0b2552;
  }

  .crafts-module .accordion-icon img {
    width: 16px;
    height: 16px;
    transition: opacity 0.3s ease;
    filter: brightness(0) saturate(100%) invert(100%);
  }

  .crafts-module .accordion-button:not(.collapsed) .accordion-icon .icon-expand {
    display: none !important;
  }

  .crafts-module .accordion-button:not(.collapsed) .accordion-icon .icon-collapse {
    display: block !important;
  }

  .crafts-module .accordion-button.collapsed .accordion-icon .icon-expand {
    display: block !important;
  }

  .crafts-module .accordion-button.collapsed .accordion-icon .icon-collapse {
    display: none !important;
  }

  .crafts-module .accordion-button {
    cursor: default !important;
  }

  /* Expiration Warning Styles */
  .crafts-module .expiration-warning {
    background-color: rgba(232.93, 0, 0, 0.10);
    border: 1px solid #E90000;
    border-radius: 5px;
    color: #E90000;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 24px;
    margin-bottom: 16px;
  }

  .crafts-module .expiration-warning strong {
    font-weight: 400;
  }

  /* Craft Dropdown Styles */
  .crafts-module .accordion-button .dropdown {
    position: relative;
    z-index: 10;
  }

  .crafts-module .accordion-button .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    min-width: 150px;
  }

  .crafts-module .accordion-button .dropdown-toggle::after {
    display: none;
  }

  .crafts-module .accordion-button .dropdown-item.text-danger {
    color: #dc3545 !important;
  }

  .crafts-module .accordion-button .dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24 !important;
  }

  /* Prevent dropdown from interfering with accordion toggle */
  .crafts-module .accordion-button .dropdown-toggle {
    pointer-events: auto;
  }

  .crafts-module .accordion-button .dropdown-toggle:hover {
    background-color: transparent;
  }

  /* No Crafts Message Styles */
  .crafts-module .no-crafts-message {
    background-color: #E9F2FF;
    border-radius: 5px;
    padding: 60px 20px;
    margin: 20px 0;
    min-height: 186px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .crafts-module .no-crafts-content {
    text-align: center;
  }

  .crafts-module .no-crafts-title {
    color: #27251F;
    font-size: 24px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
  }

  .crafts-module .no-crafts-button {
    background-color: #194BA0;
    border-color: #194BA0;
    color: white;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
  }

  .crafts-module .no-crafts-button:hover {
    background-color: #0b2552;
    border-color: #0b2552;
    color: white;
  }

  /* Crews Module Styles - Similar to Crafts Module */
  .crews-module .accordion-#7DA8F0:not(.collapsed) {
    background-color: #7DA8F0;
    color: #194BA0;
  }

  .crews-module .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #7DA8F0;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
  }

  .crews-module .accordion-button:not(.collapsed) {
    color: #fff;
  }

  .crews-module .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 75, 160, 0.25);
  }

  .crews-module .accordion-item {
    border: 1px solid #DEDEDE;
  }

  .crews-module .accordion-header button {
    border-radius: 5px 5px 0 0;
  }

  .crews-module .accordion-body {
    background-color: #fff;
    border-radius: 0 0 5px 5px;
  }

  /* Custom accordion icons for Crews Module */
  .crews-module .accordion-button::after {
    display: none !important;
  }

  .crews-module .accordion-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background-color: #194BA0;
    transition: all 0.3s ease;
  }

  .crews-module .accordion-icon:hover {
    background-color: #0b2552;
  }

  .crews-module .accordion-icon img {
    width: 16px;
    height: 16px;
    transition: opacity 0.3s ease;
    filter: brightness(0) saturate(100%) invert(100%);
  }

  .crews-module .accordion-button:not(.collapsed) .accordion-icon .icon-expand {
    display: none !important;
  }

  .crews-module .accordion-button:not(.collapsed) .accordion-icon .icon-collapse {
    display: block !important;
  }

  .crews-module .accordion-button.collapsed .accordion-icon .icon-expand {
    display: block !important;
  }

  .crews-module .accordion-button.collapsed .accordion-icon .icon-collapse {
    display: none !important;
  }

  .crews-module .accordion-button {
    cursor: default !important;
  }

  /* Crew Dropdown Styles */
  .crews-module .accordion-button .dropdown {
    position: relative;
    z-index: 10;
  }

  .crews-module .accordion-button .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    min-width: 150px;
  }

  .crews-module .accordion-button .dropdown-toggle::after {
    display: none;
  }

  .crews-module .accordion-button .dropdown-item.text-danger {
    color: #dc3545 !important;
  }

  .crews-module .accordion-button .dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24 !important;
  }

  /* Prevent dropdown from interfering with accordion toggle */
  .crews-module .accordion-button .dropdown-toggle {
    pointer-events: auto;
  }

  .crews-module .accordion-button .dropdown-toggle:hover {
    background-color: transparent;
  }

  /* No Crews Message Styles */
  .crews-module .no-crews-message {
    background-color: #E9F2FF;
    border-radius: 5px;
    padding: 60px 20px;
    margin: 20px 0;
    min-height: 186px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .crews-module .no-crews-content {
    text-align: center;
  }

  .crews-module .no-crews-title {
    color: #27251F;
    font-size: 24px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
  }

  .crews-module .no-crews-button {
    background-color: #194BA0;
    border-color: #194BA0;
    color: white;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
  }

  .crews-module .no-crews-button:hover {
    background-color: #0b2552;
    border-color: #0b2552;
    color: white;
  }

  /* Estimate Crews Module Styles - Similar to Crafts Module */
  .estimate-crews-module .accordion-#7DA8F0:not(.collapsed) {
    background-color: #7DA8F0;
    color: #194BA0;
  }

  .estimate-crews-module .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #7DA8F0;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
  }

  .estimate-crews-module .accordion-button:not(.collapsed) {
    color: #fff;
  }

  .crews-module .accordion-button {
        padding: 8px;
  }

  .estimate-crews-module .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 75, 160, 0.25);
  }

  .estimate-crews-module .accordion-item {
    border: 1px solid #DEDEDE;
  }

  .estimate-crews-module .accordion-header button {
    border-radius: 5px 5px 0 0;
  }

  .estimate-crews-module .accordion-body {
    background-color: #fff;
    border-radius: 0 0 5px 5px;
  }

  /* Custom accordion icons for Estimate Crews Module */
  .estimate-crews-module .accordion-button::after {
    display: none !important;
  }

  .estimate-crews-module .accordion-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background-color: #194BA0;
    transition: all 0.3s ease;
  }

  .estimate-crews-module .accordion-icon:hover {
    background-color: #0b2552;
  }

  .estimate-crews-module .accordion-icon img {
    width: 16px;
    height: 16px;
    transition: opacity 0.3s ease;
    filter: brightness(0) saturate(100%) invert(100%);
  }

  .estimate-crews-module .accordion-button:not(.collapsed) .accordion-icon .icon-expand {
    display: none !important;
  }

  .estimate-crews-module .accordion-button:not(.collapsed) .accordion-icon .icon-collapse {
    display: block !important;
  }

  .estimate-crews-module .accordion-button.collapsed .accordion-icon .icon-expand {
    display: block !important;
  }

  .estimate-crews-module .accordion-button.collapsed .accordion-icon .icon-collapse {
    display: none !important;
  }

  .estimate-crews-module .accordion-button {
    cursor: default !important;
  }

  /* Estimate Crew Dropdown Styles */
  .estimate-crews-module .accordion-button .dropdown {
    position: relative;
    z-index: 10;
  }

  .estimate-crews-module .accordion-button .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    min-width: 150px;
  }

  .estimate-crews-module .accordion-button .dropdown-toggle::after {
    display: none;
  }

  .estimate-crews-module .accordion-button .dropdown-item.text-danger {
    color: #dc3545 !important;
  }

  .estimate-crews-module .accordion-button .dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24 !important;
  }

  /* Prevent dropdown from interfering with accordion toggle */
  .estimate-crews-module .accordion-button .dropdown-toggle {
    pointer-events: auto;
  }

  .estimate-crews-module .accordion-button .dropdown-toggle:hover {
    background-color: transparent;
  }

  /* No Estimate Crews Message Styles */
  .estimate-crews-module .no-crews-message {
    background-color: #E9F2FF;
    border-radius: 5px;
    padding: 60px 20px;
    margin: 20px 0;
    min-height: 186px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .estimate-crews-module .no-crews-content {
    text-align: center;
  }

  .estimate-crews-module .no-crews-title {
    color: #27251F;
    font-size: 24px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
  }

  .estimate-crews-module .no-crews-button {
    background-color: #194BA0;
    border-color: #194BA0;
    color: white;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
  }

  .estimate-crews-module .no-crews-button:hover {
    background-color: #0b2552;
    border-color: #0b2552;
    color: white;
  }

  /* Craft expiration warning styling */
  .estimate-crews-module .craft-expiration-warning {
    color: #E90000;
    font-size: 14px;
    font-family: Lato;
    font-weight: 400;
    margin-top: 4px;
  }

  /* Bootstrap alert customization for expiration warnings */
  .alert.expiration-warning {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 5px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    line-height: 12px;
  }

  .alert.expiration-warning strong {
    font-weight: normal;
    color: #721c24;
  }

/* Bid Sheet Page Styles */

.bid-sheet-page .bid-sheet-header {
  padding-bottom: 0;
}

.bid-sheet-page .bid-sheet-tab {
  color: #7B7667;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  padding-bottom: 12px;
}

.bid-sheet-page .bid-sheet-tab.active {
  color: #BE8458;
  font-weight: 700;
}

.bid-sheet-page .bid-sheet-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #BE8458;
}

.bid-sheet-page .add-bid-sheet-btn {
  width: 16px;
  height: 16px;
  background: #D9D9D9;
  border-radius: 2px;
  text-decoration: none;
  margin-bottom: 12px;
}

.bid-sheet-page .add-bid-sheet-btn span {
  color: #7B7667;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.bid-sheet-page .divider-line {
  width: 100%;
  height: 0px;
  border-top: 1px solid #DEDEDE;
}

.bid-sheet-page .bid-sheet-form-section {
  background-color: #F0F0F0;
}

.bid-sheet-page .form-label {
  color: #7B7667;
  font-size: 13px;
}

.bid-sheet-page .form-control {
  font-size: 13px;
  color: #27251F;
  border: none;
}

.bid-sheet-page .form-control:focus {
  border: 1px solid #194BA0;
  box-shadow: 0 0 0 0.2rem rgba(25, 75, 160, 0.25);
}

.bid-sheet-page .text-muted {
  font-size: 11px;
  color: #7B7667;
}

.bid-sheet-page .dropdown-toggle {
  font-size: 13px;
}

.bid-sheet-page .dropdown-menu {
  min-width: 400px;
}

.bid-sheet-page .form-check-label {
  font-size: 13px;
  color: #7B7667;
}

/* Bid Sheet Table Styles */
.bid-sheet-page .bid-sheet-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  border: 1px solid #DEDEDE;
}

.bid-sheet-page .bid-sheet-table td,
.bid-sheet-page .bid-sheet-table th {
  border-right: 1px solid #DEDEDE !important;
  padding: 8px;
}

.bid-sheet-page .bid-sheet-table td:last-child,
.bid-sheet-page .bid-sheet-table th:last-child {
  border-right: none !important;
}

.bid-sheet-page .table-header {
  background-color: #E9F2FF;
  font-size: 13px;
  font-weight: 700;
  color: #27251F;
}

.bid-sheet-page .category-headers {
  background-color: #F0F0F0;
}

.bid-sheet-page .category-headers th {
  font-size: 13px;
  font-weight: 700;
  color: #27251F;
  border-right: 1px solid #DEDEDE;
  border-top: 1px solid #DEDEDE;
  border-bottom: 1px solid #DEDEDE;
}

.bid-sheet-page .editable-cell {
  font-size: 13px;
  color: #7B7667;
}

.bid-sheet-page .row-description {
  font-size: 13px;
  color: #27251F;
}

.bid-sheet-page .row-total {
  font-size: 13px;
  color: #27251F;
  font-weight: 700;
}

.bid-sheet-page .fixed-row {
  background-color: #F0F0F0;
}

.bid-sheet-page .fixed-row td {
  border-left: none !important;
}

.bid-sheet-page .fixed-row strong {
  font-size: 13px;
  color: #27251F;
  font-weight: 700;
}

.bid-sheet-page .grand-total-row {
  background-color: #BE8458;
  color: white;
}

.bid-sheet-page .grand-total-row strong {
  font-size: 13px;
  color: white;
  font-weight: 700;
}

/* Travel/Fuel and Per Diem Section Styles */
.bid-sheet-page .travel-fuel-per-diem-row {
  --bs-gutter-x: unset !important;
}

.bid-sheet-page .travel-fuel-table,
.bid-sheet-page .per-diem-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  border: 1px solid #DEDEDE;
}

.bid-sheet-page .travel-fuel-table td,
.bid-sheet-page .travel-fuel-table th,
.bid-sheet-page .per-diem-table td,
.bid-sheet-page .per-diem-table th {
  border-right: 1px solid #DEDEDE !important;
  padding: 8px;
}

/* Fuel type rows styling */
.bid-sheet-page .fuel-type-row td {
  padding: 0px;
  text-align: center;
  vertical-align: middle;
}

.bid-sheet-page .fuel-type-row td span {
  font-size: 13px;
}

/* Per diem type rows styling */
.bid-sheet-page .per-diem-type-row td {
  padding: 0px;
  text-align: center;
  vertical-align: middle;
}

.bid-sheet-page .per-diem-type-row td span {
  font-size: 13px;
}

/* Remove padding from per diem type rows since inputs have their own padding */
.bid-sheet-page .per-diem-section tr:not(.subtotal-row):not(.overhead-row):not(.profit-row):not(.total-row) td {
  padding: 0px;
}

.bid-sheet-page .travel-fuel-table td:last-child,
.bid-sheet-page .travel-fuel-table th:last-child,
.bid-sheet-page .per-diem-table td:last-child,
.bid-sheet-page .per-diem-table th:last-child {
  border-right: none !important;
}

.bid-sheet-page .travel-fuel-toggle,
.bid-sheet-page .per-diem-toggle {
  background: #194BA0;
  border: none;
  border-radius: 2px;
  width: 16px;
  height: 16px;
  padding: 0;
  cursor: pointer;
}

.bid-sheet-page .travel-fuel-toggle span,
.bid-sheet-page .per-diem-toggle span {
  color: white;
  font-size: 10px;
  line-height: 1;
}

.bid-sheet-page .rental-owned-labels {
  background-color: #F0F0F0;
  font-size: 13px;
}

.bid-sheet-page .travel-fuel-headers th,
.bid-sheet-page .per-diem-headers th {
  font-size: 13px;
  font-weight: 700;
  color: #27251F;
  border-right: 1px solid #DEDEDE;
  border-top: 1px solid #DEDEDE;
  border-bottom: 1px solid #DEDEDE;
}

.bid-sheet-page .travel-fuel-section td,
.bid-sheet-page .per-diem-section td {
  border-left: none !important;
}

.bid-sheet-page .travel-fuel-section .row-description,
.bid-sheet-page .per-diem-section .row-description {
  font-size: 13px;
  color: #27251F;
}

.bid-sheet-page .travel-fuel-section .editable-cell,
.bid-sheet-page .per-diem-section .editable-cell {
  font-size: 13px;
  color: #7B7667;
}

.bid-sheet-page .travel-fuel-section .row-total,
.bid-sheet-page .per-diem-section .row-total {
  font-size: 13px;
  color: #27251F;
}

.bid-sheet-page .travel-fuel-section .subtotal-row,
.bid-sheet-page .per-diem-section .subtotal-row {
  background-color: #F0F0F0;
}

.bid-sheet-page .travel-fuel-section .subtotal-row strong,
.bid-sheet-page .per-diem-section .subtotal-row strong {
  font-size: 13px;
  color: #27251F;
  font-weight: 700;
}

.bid-sheet-page .travel-fuel-section .final-total-cell,
.bid-sheet-page .per-diem-section .final-total-cell {
  background-color: #BE8458;
  color: white;
}

.bid-sheet-page .travel-fuel-section .final-total-cell strong,
.bid-sheet-page .per-diem-section .final-total-cell strong {
  font-size: 13px;
  color: white;
  font-weight: 700;
}

/* Action Buttons and Utility Styles */
.bid-sheet-page .action-buttons {
  padding: 16px;
}

.bid-sheet-page .btn-primary {
  background-color: #194BA0;
  border-color: #194BA0;
  font-size: 13px;
}

.bid-sheet-page .btn-primary:hover {
  background-color: #0d3a7a;
  border-color: #0d3a7a;
}

.bid-sheet-page .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  font-size: 13px;
}

.bid-sheet-page .btn-secondary:hover {
  background-color: #545b62;
  border-color: #545b62;
}

.bid-sheet-page .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  font-size: 13px;
}

.bid-sheet-page .btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
}

.bid-sheet-page .multiaddlink {
  color: #194BA0;
  font-size: 13px;
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bid-sheet-page .multiaddlink span {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.bid-sheet-page .row-description-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bid-sheet-page .row-description-spacer {
  width: 14px;
  display: inline-block;
}

/* Input group styling for cost/unit fields with dollar prefix */
.bid-sheet-page .input-group-sm .input-group-text {
  font-size: 13px;
  padding: 0.25rem 0.5rem;
  background-color: #e9ecef;
  border-color: #DEDEDE;
  color: #27251F;
}

.bid-sheet-page .input-group-sm .input-group-text + .form-control {
  border-left: 0;
}

.bid-sheet-page .input-group-sm .input-group-text + .form-control:focus {
  border-color: #86b7fe;
  box-shadow: none;
}

.bid-sheet-page .total-display {
  font-size: 16px;
  color: #27251F;
  font-weight: 700;
}

/* Fixed row visibility */
.bid-sheet-page .fixed-row {
  display: table-row !important;
  visibility: visible !important;
}

.bid-sheet-page #fixed-rows-section {
  display: table-row-group !important;
}

/* Additional Table Header Styles */
.bid-sheet-page .table-header-empty {
  min-width: 200px;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background-color: white;
}

.bid-sheet-page .table-header-category {
  background-color: #F0F0F0;
  min-width: 140px;
}

.bid-sheet-page .table-header-category-wide {
  background-color: #F0F0F0;
  min-width: 280px;
}

.bid-sheet-page .table-header-right {
  min-width: 100px;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background-color: white;
}

.bid-sheet-page .table-subheader {
  background-color: white;
}

.bid-sheet-page .table-subheader th {
  font-size: 13px;
  font-weight: 700;
  color: #27251F;
  border-top: none !important;
}

.bid-sheet-page .row-description-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bid-sheet-page .row-description-spacer {
  width: 14px;
  display: inline-block;
}

/* Input group styling for cost/unit fields with dollar prefix */
.bid-sheet-page .input-group {
  display: inline-flex;
  width: 100%;
  flex-wrap: nowrap;
}

.bid-sheet-page .input-group-sm {
  width: 100%;
}

.bid-sheet-page .input-group-sm .input-group-text {
  font-size: 13px;
  padding: 0.25rem 0.15rem 0.25rem 0.5rem;
  background-color: transparent;
  border: none;
  color: #7B7667;
  font-weight: normal;
}

.bid-sheet-page .input-group-sm .input-group-text + .form-control {
  border-left-color: #DEDEDE;
  padding-left: 0.1rem;
}

.bid-sheet-page .input-group-sm .input-group-text + .form-control:focus {
  border-color: #86b7fe;
  box-shadow: none;
}

.bid-sheet-page td .input-group {
  margin: 0;
}
table.bid-sheet-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #DEDEDE;
}

table.bid-sheet-table td {
  border: 1px solid #DEDEDE;
  padding: 8px;
}

/* Strict column width enforcement for bid sheet table */
.bid-sheet-table {
  table-layout: fixed !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
}

/* Override inline min-width that forces table to expand */
.bid-sheet-page .bid-sheet-table,
.bid-sheet-table {
  min-width: auto !important;
  table-layout: fixed !important;
}

/* Container for bid sheet table - allows white space on right */
.bid-sheet-scroll,
.table-responsive {
  overflow-x: auto !important;
}

.bid-sheet-table th,
.bid-sheet-table td {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Allow overflow for cells containing crews dropdown */
.bid-sheet-table td.category-labor:has(.crews-dropdown),
.bid-sheet-table td.category-labor .input-group.position-relative {
  overflow: visible !important;
}

/* Alternative for browsers that don't support :has() */
.bid-sheet-table td.category-labor.dropdown-active-cell {
  overflow: visible !important;
}

/* First column (Description) - 300px */
.bid-sheet-table th:first-child,
.bid-sheet-table td:first-child {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 300px !important;
}

/* Last column (Total) - also 150px */
.bid-sheet-table th:last-child,
.bid-sheet-table td:last-child {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
}

/* Override any inline styles that set different widths */
.bid-sheet-table thead:nth-child(2) th {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
}

.bid-sheet-table thead:nth-child(2) th:first-child {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 300px !important;
}

.bid-sheet-table thead:nth-child(2) th:last-child {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
}

.bid-sheet-table tbody td {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
}

.bid-sheet-table tbody td:first-child {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 300px !important;
}

.bid-sheet-table tbody td:last-child {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
}

.bid-sheet-table tfoot td {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
}

.bid-sheet-table tfoot td:first-child {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 300px !important;
}

.bid-sheet-table tfoot td:last-child {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
}

/* Dropdown icon styling for Travel/Fuel and Per Diem selects - matches crews dropdown icon style */
.travel-fuel-type-select,
.per-diem-type-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 24px !important;
  cursor: pointer !important;
  position: relative !important;
  /* Match form-control-sm default padding */
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  padding-left: 0.5rem !important;
}

/* Use SVG chevron-down icon matching Font Awesome fa-chevron-down style - exactly like crews dropdown */
.travel-fuel-type-select,
.per-diem-type-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 320 512'%3E%3Cpath fill='%23DEDEDE' d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
}

.travel-fuel-type-select:hover,
.per-diem-type-select:hover {
  background-color: #f8f9fa !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 320 512'%3E%3Cpath fill='%2327251F' d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E") !important;
}

.travel-fuel-type-select:focus,
.per-diem-type-select:focus {
  outline: 2px solid #194BA0 !important;
  outline-offset: -2px !important;
  border-radius: 3px !important;
}

/* Consistent delete button styling for Travel/Fuel and Per Diem rows */
.delete-travel-fuel-row,
.delete-per-diem-row {
  font-size: 14px !important;
  text-decoration: none !important;
  color: #27251F !important;
  width: 14px !important;
  text-align: center !important;
  display: inline-block !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
}

.delete-travel-fuel-row:hover,
.delete-per-diem-row:hover {
  color: #dc3545 !important;
  font-weight: bold !important;
  text-decoration: none !important;
}
.error {
  color: #dc3545 !important;
  margin-top: 5px !important;
}

/* Hide ONLY the mobile pagination div with "Previous" and "Next" text buttons */
/* This keeps the desktop pagination with numbered pages */
.paginationCommon > div.flex.justify-between.flex-1.sm\\:hidden,
.paginationCommon > div[class*="flex justify-between flex-1"][class*="sm:hidden"],
div[class*="flex justify-between flex-1 sm:hidden"] {
  display: none !important;
}

/* More aggressive - hide any div that contains Previous/Next buttons but not numbered pages */
.paginationCommon > div:has(a:contains("Previous")):not(:has(.page-link:contains("1"))):not(:has(.page-link:contains("2"))) {
  display: none !important;
}

/* Hide divs with just Previous/Next text buttons */
.paginationCommon > div.flex.justify-between:has(a[href*="page"]):not(:has(button)):not(:has(.page-link[href*="page"])) {
  display: none !important;
}

/* Custom Pagination Styles */
.custom-pagination-wrapper {
  text-align: center;
}

.custom-pagination-wrapper .pagination-results-text {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 15px;
}

.custom-pagination .pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  list-style: none;
  padding: 0;
}

.custom-pagination .pagination .page-item {
  display: inline-block;
}

.custom-pagination .pagination .page-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.375rem 0.75rem !important;
  min-width: 38px !important;
  height: 38px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  color: #374151;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.custom-pagination .pagination .page-link:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.custom-pagination .pagination .page-item.active .page-link {
  background-color: #10b981;
  border-color: #10b981;
  color: #fff;
  font-weight: 500;
}

.custom-pagination .pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f3f4f6;
}

.custom-pagination .pagination .page-link svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block;
}

/* Fix pagination icon sizes - Users page and all pagination */
.paginationCommon .pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 20px 0 !important;
}

.paginationCommon .pagination .page-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.375rem 0.75rem !important;
  min-width: 38px !important;
  height: 38px !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

/* Fix all SVG icons in pagination - extremely aggressive approach */
.paginationCommon .pagination svg,
.paginationCommon .pagination .page-link svg,
.paginationCommon svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  vertical-align: middle !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

/* Fix pagination icons in any nested structure */
.paginationCommon .pagination * svg,
.paginationCommon .pagination a svg,
.paginationCommon .pagination span svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

/* Fix chevron icons specifically */
.paginationCommon .pagination .page-link:has(svg),
.paginationCommon .pagination a:has(svg) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.375rem 0.5rem !important;
}

/* Ensure disabled pagination links still have proper sizing */
.paginationCommon .pagination .disabled .page-link svg,
.paginationCommon .pagination .disabled svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  opacity: 0.5 !important;
}

/* Fix icon sizing inside previous/next links */
.paginationCommon .pagination .page-item.previous svg,
.paginationCommon .pagination .page-item.next svg,
.paginationCommon .pagination li.previous svg,
.paginationCommon .pagination li.next svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

/* Override any Bootstrap default icon sizing */
.paginationCommon .bi,
.paginationCommon .bi-chevron-left,
.paginationCommon .bi-chevron-right {
  width: 16px !important;
  height: 16px !important;
  font-size: 16px !important;
}

/* Ensure pagination links don't stretch */
.paginationCommon .pagination .page-item {
  display: inline-block !important;
}

.paginationCommon .pagination .page-item .page-link {
  box-sizing: border-box !important;
}