/* Create Billing Report Modal Styles */

.billing-report-create {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Section */
.billing-report-create__section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.billing-report-create__label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

/* Period Inputs */
.billing-report-create__period-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.billing-report-create__period-separator {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.billing-report-create__input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  background: var(--background);
  color: var(--text-primary);
}

.billing-report-create__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

.billing-report-create__textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  background: var(--background);
  color: var(--text-primary);
  min-height: 60px;
}

.billing-report-create__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

/* Header with Actions */
.billing-report-create__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.billing-report-create__actions {
  display: flex;
  gap: 0.5rem;
}

/* Task List */
.billing-report-create__task-list {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  max-height: 400px;
  overflow-y: auto;
}

/* Client Group */
.billing-report-create__client-group {
  border-bottom: 1px solid var(--border-color);
}

.billing-report-create__client-group:last-child {
  border-bottom: none;
}

.billing-report-create__client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--background-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1;
}

.billing-report-create__client-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.billing-report-create__client-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.billing-report-create__client-name {
  font-size: 0.875rem;
}

.billing-report-create__task-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: normal;
}

/* Tasks Container */
.billing-report-create__tasks {
  display: flex;
  flex-direction: column;
}

/* Task Item */
.billing-report-create__task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.15s;
  margin: 0;
}

.billing-report-create__task-item:hover {
  background: var(--hover-background);
}

.billing-report-create__task-item:last-child {
  border-bottom: none;
}

.billing-report-create__task-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin: 0;
}

.billing-report-create__task-info {
  flex: 1;
  min-width: 0;
}

.billing-report-create__task-name {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-report-create__task-period {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.billing-report-create__task-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.billing-report-create__task-hours {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: right;
}

.billing-report-create__task-amount {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

/* Selection Summary */
.billing-report-create__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.billing-report-create__summary-label {
  font-weight: 600;
  color: var(--text-primary);
}

.billing-report-create__summary-separator {
  color: var(--border-color);
}

#selected-count {
  color: var(--primary);
  font-weight: 600;
}

#selected-hours {
  color: var(--text-secondary);
}

#selected-amount {
  color: var(--success);
  font-weight: 600;
  margin-left: auto;
  font-size: 1rem;
}

/* Scrollbar Styling */
.billing-report-create__task-list::-webkit-scrollbar {
  width: 8px;
}

.billing-report-create__task-list::-webkit-scrollbar-track {
  background: var(--background-secondary);
}

.billing-report-create__task-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.billing-report-create__task-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Empty State */
.billing-report-create__empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .billing-report-create__period-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .billing-report-create__period-separator {
    display: none;
  }

  .billing-report-create__task-stats {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }

  .billing-report-create__summary {
    flex-wrap: wrap;
  }

  #selected-amount {
    margin-left: 0;
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
  }
}
