// =========================================
// PEOPLE — Import (Customers & Suppliers shared)
// =========================================

.import-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.import-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e6f0ff 0%, #f7fbff 60%, #ffffff 100%);
  opacity: 0.9;
}

.import-hero-body {
  position: relative;
  padding: 1.1rem;
}

.import-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #2667ff10;
  color: #2667ff;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
}

.import-dropzone {
  border: 2px dashed #cfd8e3;
  border-radius: 14px;
  padding: 28px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fbfdff;

  &:hover {
    border-color: #9cb4ff;
    background: #f7fbff;
    box-shadow: 0 1px 6px rgba(38, 103, 255, 0.08);
  }

  &.is-dragover {
    border-color: #2667ff;
    background: #f1f6ff;
  }

  &.has-file {
    border-color: #cfd8e3;
  }
}

.import-dz-icon {
  font-size: 28px;
  color: #2667ff;
}

.import-file-pill {
  border: 1px solid #e6ebf2;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
}

.import-file-dot {
  width: 10px;
  height: 10px;
  background: #2667ff;
  border-radius: 999px;
}

.import-file-name {
  font-weight: 600;
}

.badge-success-soft {
  background: #eaf7ef;
  color: #0a7a2d;
  border: 1px solid #cdebd7;
  font-weight: 600;
}

.import-example-table {
  th.req {
    background: #eaf7ef;
    border-color: #cdebd7;
  }

  thead th {
    font-weight: 600;
  }
}

.import-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.import-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  &.chip-req {
    color: #0a7a2d;
    background: #eaf7ef;
    border-color: #cdebd7;
  }

  &.chip-opt {
    color: #475569;
    background: #f5f7fb;
    border-color: #e6e9f2;
  }
}

.import-mini-notes {
  padding-left: 18px;
  margin: 0;

  li {
    margin-bottom: 6px;
  }
}

.import-tip-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5ff;
  color: #2667ff;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
}

// =========================================
// PEOPLE — Customer Details
// =========================================

.customer-details-page {
  .border-left-primary {
    border-left: 4px solid #007bff !important;
  }

  .border-left-warning {
    border-left: 4px solid #ffc107 !important;
  }

  .border-left-danger {
    border-left: 4px solid #dc3545 !important;
  }

  .border-left-success {
    border-left: 4px solid #28a745 !important;
  }

  .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  }

  .card {
    transition: transform 0.2s;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
  }

  .custom-field-item {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border-left: 3px solid #007bff;

    strong {
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    span {
      font-size: 1rem;
      color: #212529;
      font-weight: 500;
    }
  }
}

.people-icon-lg {
  font-size: 2.5rem;
}

.people-icon-md {
  font-size: 2rem;
}

.people-icon-info {
  font-size: 1.5rem;
}

// =========================================
// PEOPLE — Customer Credit Note Receipt
// =========================================

.credit-note-receipt {
  max-width: 400px;
  margin: 0 auto;
}

.credit-note-table {
  font-size: 10px;
  width: 100%;

  th {
    text-align: left;
    background: #eee;
  }

  td {
    text-align: right;
  }

  .credit-note-th-wide {
    width: 50%;
  }

  .credit-note-td-wide {
    width: 50%;
  }
}

// =========================================
// PEOPLE — Customer Ledger
// =========================================

.customer-ledger-page {
  .soft-shadow {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  }

  .header-hero {
    background: linear-gradient(135deg, #6b8dfc 0%, #88aafc 100%);
    color: #fff;
  }

  .avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    backdrop-filter: saturate(120%);
  }

  .kpi-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
  }

  .kpi-label {
    font-size: 12px;
    color: #6b7280;
  }

  .kpi-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.2px;
  }

  .toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;

    .form-control {
      min-width: 260px;
    }
  }

  .pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }

  .table-modern {
    thead th {
      background: #f8fafc;
      color: #374151;
      font-weight: 600;
      border-bottom: 1px solid #e5e7eb;
    }

    tbody tr:hover {
      background: #f9fbff;
    }

    td,
    th {
      vertical-align: middle;
    }
  }

  .badge {
    font-weight: 600;
    letter-spacing: 0.2px;
  }
}

// =========================================
// PEOPLE — Full Page Loading (shared)
// =========================================

.people-full-page-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);

  .loading-content {
    text-align: center;
  }

  .loading-text {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
  }

  .spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
  }
}

// =========================================
// PEOPLE — Password Toggle (Ecommerce shared)
// =========================================

.people-password-toggle {
  top: 56%;
  right: 0;
  transform: translateY(-50%);
}
