/* HTS Request Form Custom Styling */

:root {
    /* Primary colors from the organization theme */
    --primary-color: #00338D;         /* Red - Primary brand color */
    --secondary-color: #605E5C;       /* Dark gray */
    --background-color: #F3F2F1;      /* Light gray background */
    --text-color: #000000;            /* Black text */
    --light-gray: #F8F8F8;            /* Very light gray */
    --dark-gray: #191817;             /* Almost black */
    --accent-color: #d3d3d3;          /* Medium gray */
    --white: #ffffff;   
    --alt: #483698;            
  }
  
  /* Base structure and resets */
  * {
    box-sizing: border-box;
  }
  
  body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
  }
  
  /* Container - master width control */
  .container {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px;
  }

  .cust-container {
    max-width: 70%;
    width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px;
  }

  .container custom-container {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px;
  }
  
  .container-outer {
    width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px;
  }
  
  /* Form sections - consistent sizing */
  .form-section {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  
  .form-section h4 {
    font-weight: 700;
    font-size: 20px;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
  }
  
  /* Required field indicators */
  .required-label:after {
    content: " *";
    color: red;
    font-weight: bold;
  }
  
  /* Form controls and inputs */
  .form-control {
    border: 1px solid #000;
    border-radius: 4px;
    padding: 4px 6px;
    width: 100%;
    background-color: var(--white);
    color: #000;
  }
  
  .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(237, 32, 39, 0.25);
    outline: none;
  }
  
  .form-control-plaintext {
    font-weight: 600;
    color: var(--secondary-color);
    padding: 8px 0;
    border: none;
    background-color: transparent;
  }
  
  .form-control.is-invalid {
    border-color: var(--primary-color);
    background-color: rgba(237, 32, 39, 0.05);
  }
  
  textarea.form-control {
    resize: vertical;
    min-height: 80px;
  }
  
  select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 10px;
    padding-right: 30px;
    color:#000;
    border-color: #949494;
  }
  
  /* Form layout */
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
  }
  
  .form-text.text-muted {
    font-size: 0.85rem;
    margin-top: 4px;
  }
  
  /* Checkboxes and radio buttons */
  .form-check {
    margin-bottom: 8px;
  }
  
  .form-check-inline {
    display: inline-block;
    margin-right: 15px;
  }
  
  .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  /* Table styles - completely rewritten to fix overflow issues */
  .parts-section {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
  }
  
  .table-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    max-width: 100%;
    border: none;
    position: relative;
  }
  
  #partsTable, #excelTable {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    table-layout: auto;
  }

  #partsTable {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}
  
  .table th, 
  .table td {
    padding: 10px;
    vertical-align: top;
    border: 1px solid #dee2e6;
    white-space: normal;
    word-wrap: break-word;
  }
  
  .table th {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    font-weight: 600;
    text-align: left;
  }
  
  /* Excel table specific styles */
  #excelContainer {
    margin-top: 20px;
    max-width: 100%;
    overflow-x: auto;
  }
  
  #excelTable input.form-control {
    min-height: 34px;
    padding: 6px;
    font-size: 14px;
  }
  
  /* Upload options styling */
  #fileInputRow {
    transition: all 0.3s ease;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 8px 20px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
  }
  
  .btn-primary:hover, 
  .btn-primary:focus {
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
  }

  /* .button2, .btn-secondary, .btn-default {
    color: #fff;
    border-radius: 7px;
    font-family: Arial;
    font-weight: 600;
    font-size: 14px;
    border-color: #00338d;
    padding: 6px 20px;
    width: fit-content;
    border-style: solid;
    border-width: 1.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
  } */
  
  .btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  
  .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
  }
  
  .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .btn-lg {
    padding: 10px 24px;
    font-size: 16px;
  }
  
  #addRowButton {
    margin-top: 15px;
    margin-bottom: 15px;
  }
  
  /* Alerts */
  .alert {
    position: relative;
    padding: 12px 20px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 4px;
  }
  
  .alert-info {
    background-color: rgba(237, 32, 39, 0.05);
    border-color: var(--primary-color);
    color: var(--secondary-color);
  }
  
  .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #721c24;
  }
  
  /* Header styling */
  .page-header {
    margin-bottom: 10px;
  }
  
  .page-header h2 {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 600;
    margin-top: 0;
  }

  /* certificate styling */
  .certificate-list {
    margin-top: 10px;
  }
  
  .certificate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
  }
  
  .certificate-name {
    font-weight: 500;
  }
  
  .remove-certificate {
    margin-left: 10px;
  }

  /* Template styling */
  .template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
  }
  
  /* Attachment styling */
  .attachment-list {
    margin-top: 10px;
  }
  
  .attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
  }
  
  .attachment-name {
    font-weight: 500;
  }
  
  .remove-attachment {
    margin-left: 10px;
  }
  
  /* Submit container */
  .submit-container {
    margin: 30px 0;
    text-align: center;
  }
  
  .submit-container .btn-primary {
    min-width: 200px;
  }
  
  /* Modal styling */
  .modal-header {
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 20px;
  }
  
  .modal-header .modal-title {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--light-gray);
  }
  
  /* Grid system simplified */
  .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
  }
  
  .row > [class^="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .col-sm-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-sm-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Part field display */
  .part-field-display {
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Loading animation */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  #loader {
    display: none;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
  }
  
  /* Responsive breakpoints */
  @media (max-width: 768px) {
    [class^="col-sm-"], [class^="col-md-"] {
      flex: 0 0 100%;
      max-width: 100%;
    }
  
    .modal-body {
      padding: 15px;
    }
  }
  
  User Type Selection Section Styles
  .user-type-section {
      display: flex;
      flex-wrap: wrap;
      padding: 8px;
      margin: 0;
      min-height: 15px;
      background-color: #605E5C;
  }
  
  .user-selection-container {
      display: block;
      flex-wrap: wrap;
      padding: 8px;
      margin: 0;
      margin-top: 0px;
      margin-bottom: 0px;
      min-height: auto;
      height: 84px;
      position: static;
  }
  
  .user-selection-wrapper {
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      column-gap: 0;
      margin-bottom: 0px;
      padding-bottom: 0px;
  }
  
  .user-selection-text {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      min-width: 250px;
      margin: 20px 0;
      padding: 4px;
      width: calc(66.6667% + 0px);
      justify-content: flex-end;
  }
  
  .user-selection-text p {
      font-family: Arial, sans-serif;
      font-size: 16px;
      color: #605E5C;
      margin-bottom: 0;
  }
  
  .user-selection-buttons {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      min-width: 250px;
      margin: 20px 0;
      padding: 4px;
      width: calc(33.3333% + 0px);
      justify-content: flex-end;
  }
  
  .user-buttons-container {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
  }
  
  /* Button Styles */
  .btn.button1 {
      color: #ffffff;
      background-color: var(--primary-color);
      border: 1px solid var(--primary-color);
      border-radius: 7px;
      padding: 8px 20px; /* Increased padding for larger touch target */
      font-family: Arial, sans-serif;
      font-weight: 600;
      font-size: 14px;
      text-decoration: none;
      cursor: pointer;
      height: auto;
      display: inline-block; /* Ensure block-level properties for better clickability */
      text-align: center;
      min-width: 120px; /* Ensure minimum width for better touch target */
      position: relative; /* For absolute positioning pseudo-elements if needed */
      margin: 0 5px; /* Add margin for spacing instead of gap */
      line-height: 1.5; /* Improved text centering */
      transition: all 0.2s ease; /* Smooth transition for hover effect */
  }
  
  .btn.button1:hover {
      color: #d3d3d3;
      background-color: var(--alt);
      transform: translateY(-1px); /* Slight lift effect on hover */
  }
  
  
  /* Requests Section Styles */
  .requests-section {
      display: flex;
      flex-wrap: wrap;
      margin: 0;
      min-height: auto;
      padding: 0;
      width: auto;
      background-color: #d3d3d3;
  }
  
  .btn.button1:active {
      transform: translateY(1px); /* Press effect */
  }
  
  .columnBlockLayoutCustom {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      min-width: 250px;
      padding: 16px;
      margin: 0px 0;
      margin-top: 0px;
      width: 100%;
  }
  
  /* Core Requests Grid Styles */
  .core-requests-container {
      font-family: Arial, sans-serif;
      margin: 0px;
      color: #605E5C;
      margin-top: 0px;
      padding-top: 0px;
  }
  
  /* Improved heading visibility */
  .core-requests-heading {
      font-size: 28px;
      font-weight: 600;
      margin-top: 20px;
      margin-bottom: 20px;
      color: var(--primary-color);
      padding-bottom: 8px;
      border-bottom: 2px solid var(--primary-color);
  }
  
  .highlight-heading {
      display: inline-block;
      position: relative;
  }
  
  .search-filter-container {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
      margin-top: 0px;
      align-items: center;
  }

  .search-filter-container2 {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    margin-top: 0px;
    align-items: center;
}
  
  .search-controls {
      display: flex;
      gap: 10px;
      margin-top: 0px;
      margin-bottom: 0px;
  }
  
  .search-box {
      padding: 8px 12px;
      border: 1px solid #d3d3d3;
      border-radius: 4px;
      width: 300px;
      background-color: #F3F2F1;
  }
  
  .filter-dropdown {
      padding: 8px 12px;
      border: 1px solid #d3d3d3;
      border-radius: 4px;
      background-color: #F3F2F1;
  }
  
  /* Grid Table Styles */
  .core-requests-grid {
      width: 100%;
      border-collapse: collapse;
      background-color: #F3F2F1;
      margin-bottom: 20px;
  }

  .core-requests-grid th {
      background-color: #00338d;
      color: #FFFFFF;
      text-align: center;
      padding: 6px 15px;
      font-weight: 600;
      border: 1px solid #d3d3d3;
  }
  
  .core-requests-grid td {
      padding: 6px 15px;
      border: 1px solid #d3d3d3;
      color: #000000;
  }
  
  .core-requests-grid tr:hover {
      background-color: #e7e5e3;
  }
  
  /* Status Styles */
  .core-requests-status {
      display: inline-block;
      padding: 4px 8px;
      border-radius: 4px;
      font-weight: 600;
      text-align: center;
      min-width: 80px;
  }
  
  .status-new {
      background-color: var(--primary-color);
      color: #ffffff;
  }
  
  .status-in-progress {
      background-color: #605E5C;
      color: #ffffff;
  }
  
  .status-completed {
      background-color: #191817;
      color: #ffffff;
  }
  
  /* Action Buttons */
  .core-requests-actions {
      display: flex;
      gap: 8px;
      justify-content: center;
  }
  
  .action-button {
      color: #ffffff;
      background-color: var(--primary-color);
      border: 1px solid var(--primary-color);
      border-radius: 7px;
      padding: 3px 15px;
      font-family: Arial, sans-serif;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      text-align: center;
  }
  
  .action-button:hover {
      color: #d3d3d3;
      background-color: var(--alt);
  }
  
  /* Pagination Styles */
  .pagination {
      display: flex;
      justify-content: center;
      margin-top: 20px;
      gap: 8px;
  }
  
  .pagination-item {
      padding: 6px 12px;
      border: 1px solid #d3d3d3;
      background-color: #F3F2F1;
      color: #000000;
      cursor: pointer;
      border-radius: 4px;
  }
  
  .pagination-item.active {
      background-color: var(--primary-color);
      color: #ffffff;
      border-color: var(--primary-color);
  }
  
  .pagination-item:hover:not(.active):not(.disabled) {
      background-color: #e7e5e3;
  }
  
  .pagination-item.disabled {
      color: #a0a0a0;
      cursor: not-allowed;
      background-color: #f8f8f8;
  }
  
  /* Loading and Error States */
  .loading-indicator, 
  .error-message {
      padding: 20px;
      text-align: center;
      font-style: italic;
      color: #605E5C;
  }
  
  .error-message {
      color: #ed2027;
  }
  
  /* Responsive Styles */
  @media (max-width: 992px) {
      .user-selection-text,
      .user-selection-buttons {
          flex-grow: 1;
          display: flex;
          flex-direction: column;
          min-width: 250px;
          margin: 20px 0;
          padding: 4px;
          width: calc(33.3333% + 0px);
          justify-content: flex-end;
      }
      
      .user-buttons-container {
          display: flex;
          justify-content: flex-end;
          align-items: center;
          flex-wrap: wrap; /* Allow wrapping on small screens */
      }
      
      .user-buttons-container {
          justify-content: center;
          gap: 10px; /* Gap works better in flex containers */
      }
  
      .btn.button1 {
          margin: 5px; /* More margin on smaller screens */
          min-width: 140px; /* Slightly wider on mobile for easier tapping */
      }
  }
  
  @media (max-width: 768px) {
      .search-filter-container {
          flex-direction: column;
          gap: 15px;
          align-items: flex-start;
      }
      
      .search-controls {
          flex-direction: column;
          width: 100%;
      }
      
      .search-box, 
      .filter-dropdown {
          width: 100%;
      }
      
      .core-requests-grid {
          display: block;
          overflow-x: auto;
      }
      
      .action-button {
          padding: 6px 8px;
      }
      
      .columnBlockLayout {
          margin: 30px 0;
      }
  }
  
  @media (max-width: 576px) {
      .core-requests-actions {
          flex-direction: column;
      }
      
      .pagination {
          flex-wrap: wrap;
      }
      
      .btn.button1 {
          width: 100%; /* Full width on very small screens */
          margin: 5px 0; /* Vertical margin only */
          padding: 10px 20px; /* Even larger touch target on smallest screens */
      }
  }
    
    /* Highlight current user's requests */
    td.current-user {
      font-weight: bold;
      /* color: #FF0000; */
    }
    
    /* Style adjustments for the heading based on role */
    .core-requests-heading {
      margin-bottom: 20px;
    }
  
  /* Requests Section Styles */
  .requests-section {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    min-height: auto;
    padding: 0;
    width: auto;
    background-color: #d3d3d3;
  }
  
  .highlight-heading {
    display: inline-block;
    position: relative;
  }
  
  .search-controls {
    display: flex;
    gap: 10px;
  }
  
  .filter-dropdown {
    padding: 8px 12px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    background-color: #F3F2F1;
  }
  
  .status-new {
    background-color: var(--primary-color);
    color: #ffffff;
  }
  
  .status-in-progress {
    background-color: #605E5C;
    color: #ffffff;
  }
  
  .status-completed {
    background-color: #191817;
    color: #ffffff;
  }
  
  /* Pagination Styles */
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
  }
  
  .pagination-item {
    padding: 6px 12px;
    border: 1px solid #d3d3d3;
    background-color: #F3F2F1;
    color: #000000;
    cursor: pointer;
    border-radius: 4px;
  }
  
  .pagination-item.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
  }
  
  .pagination-item:hover:not(.active):not(.disabled) {
    background-color: #e7e5e3;
  }
  
  .pagination-item.disabled {
    color: #a0a0a0;
    cursor: not-allowed;
    background-color: #f8f8f8;
  }
  
  /* Loading and Error States */
  .loading-indicator, 
  .error-message {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #605E5C;
  }
  
  .error-message {
    color: #ed2027;
  }
  
  /* Responsive Styles */
  @media (max-width: 992px) {
    .user-selection-text,
    .user-selection-buttons {
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }
    
    .user-buttons-container {
        justify-content: center;
    }
    
    .user-selection-container {
        height: auto;
    }
  }
  
  @media (max-width: 576px) {
    .core-requests-actions {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .btn.button1 {
        width: 100%;
        text-align: center;
    }
  }
  
  /* Add styles to the card container */
  .cards-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    margin-top: 0px;
    padding: 10px;
  }
  
  /* Card style */
  .card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 30%;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px); /* Hover effect */
  }
  
  /* Title and value styles */
  .card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
  }
  
  .card-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    .card {
      width: 100%;
      margin-bottom: 15px;
    }
  }
  
  /* Center the loading spinner */
  #loading-overlay {
    position: fixed; /* Use fixed positioning to make sure it stays on screen */
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 9999; /* Ensure the overlay is on top of other content */
    display: flex; /* This is what makes the flexbox container center the spinner */
  }
  
  .spinner-border {
    width: 3rem; /* Size of the spinner */
    height: 3rem;
  }
  
  /* Make only the checkboxes inside incorrectContactCell bigger */
  td .bulk-checkbox {
    transform: scale(1.5); /* Adjust the scale value to make the checkbox bigger */
    margin: 0; /* Remove default margins */
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 7px;
  }
  
  .pagination button.active {
    background-color: #00338D;
    color: white;
    border-radius: 7px;
  }
  
  .pagination button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
    border-radius: 7px;
  }

  /* Special style for previous and next buttons */
.pagination button:first-child {
  border-radius: 7px 0 0 7px; /* Rounded left corners for previous button */
}

.pagination button:last-child {
  border-radius: 0 7px 7px 0; /* Rounded right corners for next button */
}

.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 700px;
  text-align: center;
  position: relative; /* To position the close button */
}

.popup-content button {
  margin-top: 0px;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #0056b3;
}

/* Optional: Add some space around the input-container */
.input-container {
  width: 100%;  /* Ensure input container takes up the full width */
  display: flex;
  flex-direction: column;
  gap: 15px; /* Adds space between input rows */
}

/* Close button in the top right corner */
.close-popup-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 18px;
  color: #000;
  cursor: pointer;
  width: 30px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-popup-btn:hover {
  color: #ff0000;
}

/* Add a visual effect to make it obvious it's clickable */
.clickable-part-cell {
    cursor: pointer;
    color: #007bff; /* Blue color to suggest it's a link */
    text-decoration: underline; /* Underline the text */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
}

/* Hover effect for the clickable cell */
.clickable-part-cell:hover {
    background-color: #f0f8ff; /* Light blue background on hover */
    color: #0056b3; /* Darker blue color on hover */
}

/* Optional: Focus effect to improve accessibility */
.clickable-part-cell:focus {
    outline: 2px solid #0056b3; /* Blue outline when focused */
    outline-offset: 2px;
}

/* Basic modal styles */
.status-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content2 {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 450px;
  text-align: center;
  position: relative;
}

/* Close button in the top right corner */
.close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 18px;
  color: #000;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  color: #ff0000;
}

  /* Button Styles */
  .submit-popup-btn {
    color: #ffffff;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 7px;
    padding: 8px 20px; /* Increased padding for larger touch target */
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    height: auto;
    display: inline-block; /* Ensure block-level properties for better clickability */
    text-align: center;
    min-width: 120px; /* Ensure minimum width for better touch target */
    position: relative; /* For absolute positioning pseudo-elements if needed */
    margin: 0 5px; /* Add margin for spacing instead of gap */
    line-height: 1.5; /* Improved text centering */
    transition: all 0.2s ease; /* Smooth transition for hover effect */
}

.submit-popup-btn:hover {
    color: #d3d3d3;
    background-color: var(--alt);
    transform: translateY(-1px); /* Slight lift effect on hover */
}

/* Apply to all selects using this class */
.custom-select-placeholder {
  color: black;
}

/* Make the placeholder grey when it's selected */
.custom-select-placeholder option[value=""] {
  color: grey;
}

/* When placeholder is selected, make the entire select appear grey */
.custom-select-placeholder:invalid {
  color: grey;
}

.table-responsive-wrapper {
  overflow-x: auto;
  width: 100%;
  border: 1px solid #ccc;
}

.scrollable-requests-table {
  min-width: 1890px;
  table-layout: fixed;
}

.scrollable-requests-table th,
.scrollable-requests-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Optional: Column-specific widths */
.scrollable-requests-table th:nth-child(1),
.scrollable-requests-table td:nth-child(1) {
  width: 120px;
}
/* ... etc */


.gray-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
    width: 32px;
    height: 32px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.gray-btn:hover {
    background-color: #e0e0e0;
}

.gray-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    flex-direction: row;
    gap: 8px; /* Padding between buttons */
    justify-content: center;
    align-items: center;
}


  /* --- Technical Questions Table --- */
  .tq-table-responsive {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }

  .tq-scrollable-table {
      width: 100%;
      table-layout: auto;
      border-collapse: collapse;
      white-space: nowrap;
  }

  .tq-scrollable-table th,
  .tq-scrollable-table td {
      padding: 10px 12px;
      border: 1px solid #ddd;
      vertical-align: middle;
      text-align: left;
      word-wrap: break-word;
      overflow-wrap: break-word;
  }

  .tq-scrollable-table thead th {
      background-color: #f2f2f2;
      position: sticky;
      top: 0;
      z-index: 10;
  }

  /* --- Utility Classes --- */
  .tq-wrap-text {
      white-space: normal;
      word-wrap: break-word;
      overflow-wrap: break-word;
  }
  
  .tq-text-center {
      text-align: center;
  }

  /* --- Proportional Column Widths --- */
  .tq-col-flag { width: 5%; }
  .tq-col-assigned { width: 10%; }
  .tq-col-reassign { width: 12%; }
  .tq-col-date { width: 7%; }
  .tq-col-part { width: 10%; }
  .tq-col-alt-part { width: 10%; }
  .tq-col-desc { width: 15%; }
  .tq-col-bu { width: 10%; }
  .tq-col-question { width: 15%; }
  .tq-col-answer { width: 15%; }
  .tq-col-add-resp { width: 15%; }
  .tq-col-add-resp-by { width: 10%; }
  .tq-col-add-resp-date { width: 7%; }
  .tq-col-action { width: 5%; }
  .tq-col-attachment { width: 15%; }

