/* =========================================
ASSIGNMENTS MODULE
========================================= */

/* ================================
WRAPPER
================================ */

.assignments-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.assignments-container {
  padding: 20px;
}

/* ================================
HEADER
================================ */

.assignments-header {
  margin-bottom: 20px;
  background: #1d4ed8;
  color: white;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.assignments-header-title {
  font-size: 18px;
  font-weight: 600;
}

.assignments-header-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 2px;
}

.assignments-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.assignments-subtitle {
  color: #6b7280;
  margin-top: 4px;
}

/* ================================
BODY
================================ */

.assignments-body {
  padding: 14px;
  overflow: auto;
  flex: 1;
}

/* ================================
GRID
================================ */

.assignments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* =========================================
CARDS
========================================= */

.assignments-card {
  background: white;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.assignments-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.assignments-card-title {
  font-size: 13px;
  color: #6b7280;
}

.assignments-card-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

/* =========================================
ASSIGNMENTS LIST
========================================= */

.assignments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.assignments-row {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.assignments-row-title {
  font-weight: 600;
  font-size: 14px;
}

.assignments-row-meta {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.assignments-back-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #2563eb;
  margin-bottom: 8px;
}

.assignments-loading,
.assignments-empty,
.assignments-error {
  padding: 20px;
  text-align: center;
  color: #6b7280;
}

.assignments-row-actions {
  margin-top: 8px;
}

.assignments-btn {
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: white;
}

/* Add Pool */
.assignments-btn-pool {
  background: #2563eb;
}

/* Add Service */
.assignments-btn-service {
  background: #16a34a;
}

/* Add Schedule */
.assignments-btn-schedule {
  background: #f59e0b;
}

.assignments-inline-form {
  margin-top: 16px;
  width: 100%;
}

.assignments-inline-form .pool-simple-wrapper {
  width: 100%;
}

.assignments-inline-form .pool-simple-card {
  width: 100%;
}

.assignments-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assignments-back-icon {
  border: none;
  background: transparent;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.assignments-header-text {
  display: flex;
  flex-direction: column;
}

.assign-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.assign-tech-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.assign-tech-name {
  font-weight: 600;
  margin-bottom: 6px;
}

.assign-tech-visits {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.assign-tech-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.assignments-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assignments-row-service {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}

.assignments-btn-complete {
  background: #16a34a;
}

.assignments-btn-cancel {
  background: #dc2626;
}

.assignments-btn-reschedule {
  background: #ff8400;
}

/* ================================
OVERDUE COLORS
================================ */

.overdue-soft {
  border-left: 5px solid #f59e0b;
}

.overdue-warning {
  border-left: 5px solid #f97316;
}

.overdue-critical {
  border-left: 5px solid #dc2626;
}

.assignments-overdue-days {
  margin-left: 8px;
  font-weight: 600;
  color: #dc2626;
}
