/* Courier module UI consistency styles */

/* Standard page title with optional icon */
.courier-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.courier-title .fa,
.courier-title .fas,
.courier-title .far {
  color: #6c757d; /* subtle neutral icon color */
}

/* Optional header bar for pages that use flex/toolbars */
.courier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Tables: keep consistent borders and header background */
.table.courier-table thead th {
  background-color: #f8f9fa;
  font-weight: 600;
}
.table.courier-table {
  border-color: #e9ecef;
}

/* Labels spacing inside tables */
.table.courier-table .label {
  display: inline-block;
  margin: 0;
}

/* Panel heading spacing normalization */
.panel_s .hr-panel-heading {
  margin-top: 8px;
  margin-bottom: 16px;
}

.courier-title-strong {
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.courier-client-link {
  font-weight: 700;
}

.courier-points-pill {
  padding: 6px 12px;
}

.courier-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.courier-table-actions-center {
  width: 100%;
  justify-content: center;
}

.courier-circle-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #dbe5f0;
  background: #fff;
  color: #4b5563;
  text-align: center !important;
  vertical-align: middle;
  line-height: 38px !important;
  font-size: 0;
  transition: all 0.18s ease;
}

.courier-circle-icon-btn i,
.courier-circle-icon-btn .fa,
.courier-circle-icon-btn .fas,
.courier-circle-icon-btn .far {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  width: 14px;
  min-width: 14px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  flex: 0 0 14px;
}

.courier-circle-icon-btn:hover,
.courier-circle-icon-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 44, 55, 0.08);
  color: #0f4c5c;
  border-color: #c8d8ea;
  background: #eef6f8;
}

.courier-circle-icon-btn.courier-circle-icon-btn-primary:hover,
.courier-circle-icon-btn.courier-circle-icon-btn-primary:focus {
  color: #0f4c5c;
  border-color: rgba(15, 76, 92, 0.24);
  background: rgba(15, 76, 92, 0.08);
}

.courier-circle-icon-btn.courier-circle-icon-btn-warning:hover,
.courier-circle-icon-btn.courier-circle-icon-btn-warning:focus {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.12);
}

.courier-circle-icon-btn.courier-circle-icon-btn-danger:hover,
.courier-circle-icon-btn.courier-circle-icon-btn-danger:focus {
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
}

/* Points modal */
.courier-points-modal {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.courier-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.courier-points-balance-badge {
  align-self: flex-start;
}

.courier-points-stats-row > div {
  margin-bottom: 12px;
}

.courier-client-stat-card {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 14px;
  padding: 16px;
  min-height: 102px;
  box-shadow: 0 2px 6px rgba(17, 44, 55, 0.04);
}

.courier-client-stat-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.courier-client-stat-value {
  margin-top: 12px;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #111827;
}

.courier-client-section-card {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(17, 44, 55, 0.06);
  overflow: hidden;
}

.courier-client-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #f8fbff;
  border-bottom: 1px solid #e6eef8;
}

.courier-client-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
}

.courier-client-section-body {
  padding: 20px;
}

.courier-client-points-table {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .courier-section-heading,
  .courier-client-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .courier-client-section-body {
    padding: 12px;
  }

  .courier-table-actions {
    flex-wrap: wrap;
  }
}
