* {
    box-sizing: border-box;
  }
  
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
  }
  
  header, .sidebar, .content, footer {
    padding: 20px;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ddd;
  }
  
  .header-title {
    text-align: center;
    flex-grow: 1;
  }
  
  .logo {
    /* width: 200px; */
  }
  
.messages {
  color: red;
}

  .logo img{
    padding: 10px;
    width: 200px;
  }

  main {
    flex: 1;
    display: flex;
    background-color: #eee;
  }
  
  .sidebar {
    flex-basis: 20%;
    background-color: #ccc;
  }
  
  .content {
    flex-grow: 1;
    background-color: #bbb;
  }
  
  footer {
    text-align: center;
    background-color: #aaa;
  }
  
  .hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
  }

  .storage_list_table{
    width: 100%;
    border-collapse: collapse;
    /* direction: rtl; */
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 20px;
  }
  
  .storage_list_table td,.storage_list_table th{
    padding:12px 15px;
    border:1px solid #ddd;
    text-align: center;
    font-size:16px;
  }
  
  .storage_list_table th{
    background-color: darkblue;
    color:#ffffff;
  }
  
  .item-row td{
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }

  #warehouse-name-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    /* margin-top: 20px; */
    margin: 20px auto 0 auto;
  }
  /* .storage_list_table tbody tr:nth-child(even){
    background-color: #f5f5f5;
  }
  
  #open_ticket_IR_tech_name, label[for="open_ticket_IR_tech_name"]{
    display: none;
  } */

  /* #open_ticket_IR_tech_phone, label[for="open_ticket_IR_tech_phone"]{
    display: none;
  } */
  
  #login {
    margin-top: 10px !important;
  }

  #replace {
    margin-top: 10px !important;
  }

  #debt {
    margin-left: 120px;
    margin-top: 10px !important;
  }

/* style2.css */

#upload_excel_cell {
  padding-left: 50px;
}

/* Existing styles... */

/* Make sure the container is properly sized */
.signature-pad-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0; /* Remove padding */
  box-sizing: border-box;
}

/* Specific to the signature pad itself */
.signature-pad {
  width: 100%;
  height: 150px;
  border: 2px solid black;
  box-sizing: border-box;
  margin: 0; /* Ensure no margin is affecting the alignment */
  padding: 0; /* Ensure no padding is affecting the alignment */
}

/* Responsive styles for the form container */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 20px;
  max-width: 600px;
  width: 100%;
}

.form-container input, 
.form-container label, 
.form-container button, 
.signature-pad {
  width: 100%;
  margin: 5px 0;
}

/* Ensure the table is responsive */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

.storage_list_table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 20px;
}

.storage_list_table th,
.storage_list_table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 16px;
}

.storage_list_table th {
  background-color: darkblue;
  color: #ffffff;
}

#part_nr_dropdown {
  background-color: white;
  min-width: 300px;  /* Slightly wider than the input field */
  max-width: 600px;               /* Optional: Set a maximum width for the dropdown */
  max-height: 150px;
  border: 1px solid #ccc;
  overflow-y: auto;
  position: absolute;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);  /* Add shadow for better visibility */
}

#part_nr_dropdown .dropdown-item {
  padding: 8px;
  cursor: pointer;
  white-space: nowrap;
  background-color: transparent;  /* Override Bootstrap's background color */
  color: black;                    /* Override Bootstrap's text color */
}

#part_nr_dropdown .dropdown-item:hover {
  background-color: #f1f1f1 !important;  /* Use !important to override Bootstrap's hover effect */
  color: black !important;               /* Override the hover color */
}


#part_nr_dropdown .custom-dropdown-item {
  padding: 8px;
  cursor: pointer;
  white-space: nowrap;
  background-color: white;
  color: black;
}

#part_nr_dropdown .custom-dropdown-item:hover {
  background-color: #f1f1f1;
}

.search-form {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.part-select-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.part-select-container label {
  min-width: 100px; /* Fixed width for labels to ensure alignment */
}

.search-input-wrapper {
  flex: 1;
  max-width: 600px; /* Maximum width for the input field */
  min-width: 300px; /* Minimum width for the input field */
}

.search-input-wrapper input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.part-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.part-info label {
  min-width: 100px; /* Matches the width of labels in part-select-container */
}

.part-info input {
  flex: 1;
  max-width: 600px;
  min-width: 300px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.search-custom-dropdown {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  background: white;
  z-index: 1000;
}

.search-custom-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
}

.search-custom-dropdown-item:hover {
  background-color: #f5f5f5;
}

#locations-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#locations-table th,
#locations-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

#locations-table th {
  background-color: #51a72f;
}

.search-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.search-btn:hover {
  background-color: #0056b3;
}

.logo-img-small {
  max-height: 100px;
  height: auto;
}

.pagination {
    margin-top: 20px;
    text-align: center;
    font-size: 1.1em;
}
.pagination .step-links a,
.pagination .step-links span {
    display: inline-block;
    margin: 0 8px;
    padding: 6px 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    color: #1a1a1a;
    transition: background 0.2s, color 0.2s;
}
.pagination .step-links a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}
.pagination .current {
    font-weight: bold;
    background: #e6e6e6;
    border-color: #bcbcbc;
    color: #007bff;
}
.pagination .step-links {
    display: inline-block;
}
.pagination-info {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.05em;
    color: #444;
}

/* Responsive styles */
@media (max-width: 600px) {
  .form-container {
      padding: 10px;
  }

  .form-container input, 
  .form-container label, 
  .form-container button {
      width: 100%;
      margin: 5px 0;
  }

  .storage_list_table th,
  .storage_list_table td {
      padding: 8px 10px;
      font-size: 14px;
  }

  header {
      flex-direction: column;
      text-align: center;
  }

  .logo {
      width: auto;
  }

  .hamburger {
      display: block;
  }

  .sidebar {
      display: none;
  }

  .logo-img-small {
      max-height: 60px;
  }

  #id_manual-majsan {
      width: 50%;
  }

  #warehouse-name-title {
      font-size: 16px;
  }

  .table-container {
      overflow-x: auto;
  }

  .storage_list_table {
      display: block;
      width: 100%;
  }

  .storage_list_table thead,
  .storage_list_table tbody,
  .storage_list_table th,
  .storage_list_table td,
  .storage_list_table tr {
      display: block;
  }

  .storage_list_table thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
  }

  .storage_list_table tr {
      border: 1px solid #ccc;
      margin-bottom: 10px;
  }

  .storage_list_table td {
      border: none;
      border-bottom: 1px solid #eee;
      position: relative;
      padding-left: 50%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  .storage_list_table td:before {
      position: absolute;
      top: 12px;
      left: 6px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
      content: attr(data-label);
      text-align: left;
      font-weight: bold;
  }

  /* Add separating line between rows */
  .storage_list_table tr + tr {
      border-top: 5px solid black;
      margin-top: 10px;
  }

  .signature-pad-container {
      max-width: 100%;  /* Ensure the container does not exceed screen width */
      padding: 5px;  /* Adjust padding for smaller screens */
  }
  .signature-pad {
      height: 120px; /* Reduce height slightly on mobile */
  }
}
