.alert-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  padding: 1rem;
  width: auto;
  z-index: 1080;
}

.custom-alert {
  display: none;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
}

.custom-alert--success {
  background: #2ecc71;
}

.custom-alert--error {
  background: #c0392b;
}

.custom-alert--warning {
  background: #ffc107;
}

.custom-alert .btn-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  filter: invert(1);
  opacity: .8;
}
.custom-alert .btn-close:hover {
  opacity: 1;
}

/* Pagination styles */
/* Pagination container */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Pagination buttons */
.preview-nav {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-nav:hover:not(:disabled) {
  background-color: #e2e2e2;
}

.preview-nav:disabled {
  background-color: #eaeaea;
  color: #999;
  border-color: #ddd;
  cursor: default;
  opacity: 0.6;
}

/* Center label */
.preview-page-label {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

/* status badge */
.status-badge {
  display: inline-block;
  padding: 0.21rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  color: white;
  text-transform: capitalize;
}

.status-pending {
  background-color: #f0ad4e; /* amber/orange */
}

.status-parsed {
  background-color: #5bc0de; /* light blue */
}

.status-processed {
  background-color: #5cb85c; /* green */
}

.status-failed {
  background-color: #d9534f; /* red */
}

/* tooltip styles */
  /* Make our popover nice and wide with a light background and subtle shadow */
  .popover-wide .popover-body {
    max-width: 450px;
    white-space: normal;
    text-align: left;
    font-size: .9rem;
    color: #333;
  }
  .popover-wide .popover-header {
    background-color: #007bff;
    color: #fff;
    font-weight: 500;
  }
  .popover-wide {
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15);
  }
/* -------------------------------------------------------------------- */
/* cell styles */
/* -------------------------------------------------------------------- */

  /* light “smooth” red highlight for empty cells */
.empty-cell {
  background-color: rgba(255, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  display: inline-block;
  padding: 0.2em 0.4em;
  border-radius: 0.2em;
}
.empty-cell:hover {
  background-color: rgba(255, 0, 0, 0.2);
}

/* light green for cells that have a value */
.filled-cell {
  background-color: rgba(0, 128, 0, 0.1);
  transition: background-color 0.3s ease;
  display: inline-block;
  padding: 0.2em 0.4em;
  border-radius: 0.2em;
}
.filled-cell:hover {
  background-color: rgba(0, 128, 0, 0.2);
}


.bg-purple {
  background-color: #6f42c1 !important;
  color: #fff !important;
}

.bg-suggested {
  background-color: #66282d; /* Bootstrap indigo */
  color: #fff;
}

/* -------------------------------------------------------------------- */
/* Select2 styles */
/* -------------------------------------------------------------------- */
.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #e9edf1; 
  border-radius: 0.7rem;  
  padding: 0.275rem 0.75rem; 
  height: calc(2.5rem + 2px); 
  line-height: 1;
  font-size: .875rem;
  color:#283f5c;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #495057; 
  padding-left: 0; 
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.75rem;
  top: 0;
  width: 2rem;
}


/* edit customer modal styles */
.form-control-plaintext{
  font-size: .875rem;
  color: #0d9e36;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  background-color: #d6d6d6;
  padding: 0.3rem 1rem;
  border-radius: 12px;
  margin-bottom: 20px;;
}

/* -------------------------------------------------------------------- */
/* State Filter Container */
/* -------------------------------------------------------------------- */
.state-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));  /* Responsive button grid */
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto;
}

.btn-filter-state {
  padding: 0.4rem 0.6rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-filter-state.active {
  background-color: #79a13e;
  color: #fff;
  border-color: #79a13e;
}

.btn-filter-state:hover {
  background-color: #5f832f;
  color: #fff;
  border-color: #5f832f;
}



#us-map svg {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------------- */
/* US Map styles */
/* -------------------------------------------------------------------- */

.btn-filter-state.active { background-color: #79a13e; color: #fff; }

#us-map svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

#us-map path {
  fill: #e0e0e0;  /* Light gray as base */
  stroke: #999;   /* Thin border between states */
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

#us-map path:hover {
  fill: #79a13e !important;  /* Your brand green on hover */
  stroke: #555;
}

#us-map path.active {
  fill: #79a13e !important;  /* Highlight active state */
  stroke: #333;
}


#us-map {
  display: flex;
  justify-content: left;
  align-items: left;
}

/* priority confidence */
.priority-6 {
  background-color: #007bff;  /* blue */
  color: #fff;
  border-left: 4px solid #28772c;  /* High confidence */
}

.priority-7 {
  background-color: #17a2b8;  /* cyan */
  color: #fff;
  border-left: 4px solid #1a858c;
}

.priority-8 {
  background-color: #ffc107;  /* yellow */
  color: #212529;
  border-left: 4px solid #b28704;
}

.priority-9 {
  background-color: #6f42c1;  /* purple */
  color: #fff;
  border-left: 4px solid #523494;  /* Medium confidence */
}

.priority-10 {
  background-color: #20c997;  /* teal */
  color: #fff;
  border-left: 4px solid #178f6d;
}

.priority-11 {
  background-color: #fd7e14;  /* orange */
  color: #212529;
  border-left: 4px solid #c65b08;
}

.priority-12 {
  background-color: #c62828;  /* red */
  color: #fff;
  border-left: 4px solid #8b1d1d;  /* No match */
}

.priority-default {
  background-color: #adb5bd;  /* gray */
  color: #fff;
  border-left: 4px solid #6c757d;
}

.badge {
  display: inline-block;
  border-radius: 4px;
  border-bottom: solid 2px #ffffff;
  padding: 0.5rem 0.75rem;
}

.badge ul.match-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.badge ul.match-list li {
  position: relative;
  padding-left: .5rem;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.badge ul.match-list li a {
  font-weight: 500;
  color: #f8f9fa;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.badge ul.match-list li a:hover {
  color: #dfe6ed;
}


.card {
  min-width: 180px; /* adjust as needed */
  gap: 10px;
}


/* -------------------------------------------------------------------- */
/* Make preview + error tables look like proper admin tables */
#uploadCitiesPreviewTable,
#uploadCitiesErrorsTable {
  font-size: 0.875rem;
}

/* Status column right-aligned and a fixed-ish width */
#uploadCitiesPreviewTable th:nth-child(3),
#uploadCitiesPreviewTable td:nth-child(3),
#uploadCitiesErrorsTable th:nth-child(3),
#uploadCitiesErrorsTable td:nth-child(3) {
  text-align: right;
  width: 8rem;
}

/* Base status badge */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: none; /* override your global badge bottom-border */
  border-color: rebeccapurple;
}

/* States */
.status-badge-ready {
  background-color: #e6f4ea;
  color: #0b6b3a;
}

.status-badge-resolvable {
  color: #fff4d6;
  background-color: #8a5b00;
}

.status-badge-error {
  background-color: #fde2e2;
  color: #a31616;
}

.status-badge-unknown {
  background-color: #e4e7ec;
  color: #344054;
}
