/* Workorder List Page Styles (Updated) */

/* Filter Bar */
.filter-bar { 
  display: flex; 
  background: #fff; 
  border-bottom: 1px solid #f5f5f5; 
  overflow-x: auto; 
  flex-shrink: 0; 
  white-space: nowrap;
  padding: 0 10px;
}
.filter-item { 
  padding: 14px 15px; 
  font-size: 15px; 
  color: #666; 
  position: relative; 
  cursor: pointer;
  flex: 1; /* Distribute evenly if possible, or auto */
  text-align: center;
}
.filter-item.active { 
  color: #333; 
  font-weight: 600; 
  font-size: 16px;
}
.filter-item.active::after { 
  content: ''; 
  position: absolute; 
  bottom: 6px; 
  left: 50%; 
  transform: translateX(-50%);
  width: 20px; 
  height: 3px; 
  background: #FF6B35; 
  border-radius: 2px;
}

/* Search Bar */
.search-bar {
  background: #fff;
  padding: 10px 15px;
  margin-bottom: 10px;
}
.search-input-wrapper {
  background: #f5f5f5;
  border-radius: 18px; /* Capsule shape */
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-icon {
  font-size: 14px;
  color: #999;
  margin-right: 8px;
}
.search-input-wrapper input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  outline: none;
  color: #333;
}

.wo-search-btn {
  border: none;
  background: #FF6B35;
  color: #fff;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

/* List Container */
.list-container { 
  flex: 1; 
  overflow-y: auto; 
  padding: 0 15px 15px; 
  background: #f9f9f9; 
}

/* Workorder Card */
.workorder-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  position: relative;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.service-title-row {
  display: flex;
  align-items: center;
}
.checkbox-icon {
  width: 18px;
  height: 18px;
  border: 1px solid #ddd;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.checkbox-icon.checked {
  background: #FF6B35;
  border-color: #FF6B35;
}
.checkbox-icon.checked::after {
  content: '✔';
  color: #fff;
  font-size: 12px;
}
.service-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.status-text {
  font-size: 12px;
  color: #666;
}

.card-content {
  padding-left: 24px; /* Align with text, skip checkbox */
  margin-bottom: 15px;
}
.info-line {
  font-size: 13px;
  margin-bottom: 6px;
  line-height: 1.4;
  display: flex;
}
.info-line .label {
  color: #999;
  min-width: 65px;
}
.info-line .value {
  color: #333;
  flex: 1;
}

.return-reason-tag {
  display: inline-block;
  margin-top: 8px;
  margin-left: 65px;
  font-size: 11px;
  color: #FF6B35;
  background: #FFF4EE;
  border: 1px solid #FFD5C2;
  border-radius: 10px;
  padding: 2px 8px;
}

.card-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f9f9f9;
  padding-left: 24px;
}

.btn-action {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  font-weight: bold;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.btn-action.secondary {
  background: #fff;
  border: 1px solid #FF6B35; /* Orange border for secondary */
  color: #FF6B35;
}
.btn-action.primary {
  background: #FF6B35;
  color: #fff;
  border: 1px solid #FF6B35;
}
/* Orange button specific */
.btn-accept {
  /* If design uses orange for primary action */
  /* color: #FF6B35; border-color: #FF6B35; */
}

/* Floating Bar */
.wo-floating-bar {
  position: fixed;
  bottom: 0;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Correct centering */
  width: 100%;
  max-width: 480px; /* Match app container */
  background: #fff;
  padding: 12px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.select-info {
  font-size: 16px;
  color: #333;
}
.btn-float-action {
  background: #FF6B35;
  border: none;
  height: 48px;
  padding: 0 30px;
  border-radius: 24px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}
