/* Generic classes */
button.success { background-color:#28a745 !important; } 
button.success:hover { background-color:#208137 !important; } 
button.danger { background-color:#dc3545 !important; } 
button.danger:hover { background-color:#ba2c3b !important; } 

tr.danger td { background-color: #dfa9af; }
tr.success td { background-color: #b6debf; }

span.danger { color:#dc3545 !important; }

.tabButton.active { 
  background-color: #004464;
 }

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0 20px;
}
h2, h3 {
  color: #333;
}
form {
  background-color: #fff;
  margin:15px 0;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.awb-form { padding:0; }
label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}
input[type="text"],input[type="number"], input[type="password"], input[type="submit"], select, button, #order_ids, #bulk_gen_order_ids {
  width: calc(100% - 22px);
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="submit"], button {
  background-color: #0073aa;
  color: #fff;
  border: none;
  cursor: pointer;
  width:100%;
}
input[type="submit"]:hover {
  background-color: #005b8a;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
table, th, td {
  border: 1px solid #ddd;
}
th, td {
  padding: 15px;
  text-align: left;
}
th {
  background-color: #0073aa;
  color: #fff;
}
td {
  background-color: #f9f9f9;
}
ul { padding-inline-start: 0; }
li {list-style-type: none;}

.admin {
  position:relative;
  display:flex;
  gap:10px;
  top: 10px;
  button, select { width:120px; }
  .currentUser { text-align: center; }
  .currentLabelType {
    margin-left:auto; 
    text-align: center; 
    select { width: 70px; }
  }
  #generateAwbBulk { width:190px; }
}
#orderDetails, #logout, #addUser, #generateAwbBulk {
  margin-top: 20px;
}
#clearQueue, #clearOrders { 
  width:150px; 
  float:right;
  .icon {
    position:relative;
    top: 4px;
    left: -6px;
    line-height:11px;
    font-size:24px;
    font-weight: bold;
  }
}
#clearOrders { width:170px; }
#order_count, #bulk_order_count { font-size:14px; color:#343a40; margin:10px 0; }
#logout { background-color: #343a40; color: #fff; }

#add_to_queue_bulk { float:right; width:210px; } 

#order_ids, #bulk_gen_order_ids {
  overflow: hidden;
  resize: none;
}

#generateAWB, #generateBulkAWB {
  background-color:#0aaa00;
  font-size:24px;
  width: 100%;
}
#generateAWB:hover, #generateBulkAWB:hover {
  background-color:#077900;
}

.error { 
  color:red;
  font-size:21px;
  font-weight: bold;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background: white;
  border-radius: 4px;
  text-align: center;
}
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#order_id { font-size:18px; }

.awb-form label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}
.awb-form input[type="text"], .awb-form select, .awb-form button, .awb-form textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.awb-form select, .awb-form textarea {
  width: calc(100% - 22px);
}
.awb-form button {
  background-color: #0073aa;
  color: #fff;
  border: none;
  cursor: pointer;
  width: auto;
  margin-top: 15px;
}
button:hover {
  background-color: #005b8a;
}
.awb-form textarea {
  resize: vertical; /* Allow vertical resizing */
}

.inline-elements {
  display: flex;
  align-items: center;
  gap: 30px; /* space between elements */
  select, input, textarea { width:100%; }
}

.label-select-container {
  display: flex;
  flex:1;
  flex-direction: column;
}

#bulkOrdersFetch {
  table {
    td, th { padding:10px !important; } 
    span {
      font-size: 14px;
      font-weight:bold;
      display: block;
      text-align: center;
    }
    p { margin:5px 0; }
  }
}