/* =====================================
   Modern Compact Gray + Black + Dark Red Dashboard
   ===================================== */

/* Base Reset */
* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f2f2f2;
  color: #111;
  font-size: 0.85rem;
  margin: 0;
}

/* Links */
a {
  color: #111;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Containers */
.container, form, .small-card .card {
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 0.8rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.2rem;
}

/* Text & Headings */
h6, .card-title {
  font-weight: 600;
  color: #000;
}
.text-muted, .text-secondary {
  color: #555 !important;
}

/* =====================================
   Breadcrumb (Unified)
   ===================================== */
.breadcrumb {
  background-color: #f2f2f2;
  border-radius: 0.6rem;
  padding: 6px 12px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 0.85rem;
  font-weight: 500;
}
.breadcrumb-item,
.breadcrumb-item a {
  color: #111 !important;
}
.breadcrumb-item.active {
  color: #555 !important;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #777 !important;
}

/* =====================================
   Forms & Inputs
   ===================================== */
input.form-control,
input.form-control-sm,
select.form-select,
select.form-select-sm {
  font-size: 0.85rem !important;
  background-color: #f9f9f9 !important;
  border: 1px solid #bbb !important;
  border-radius: 0.5rem !important;
  color: #111 !important;
  padding: 6px 8px !important;
}
input:focus, select:focus {
  background-color: #fff !important;
  border-color: #8B0000 !important; /* Dark red focus */
  box-shadow: 0 0 3px rgba(139, 0, 0, 0.3) !important;
}

/* Labels */
.col-sm-2, .col-sm-4 {
  font-weight: 500;
  color: #111;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

/* Rows */
.row {
  margin-bottom: 0.4rem !important;
  align-items: center;
}

/* =====================================
   Buttons (Rounded + 3-Color Scheme)
   ===================================== */
.btn {
  font-size: 0.85rem !important;
  border: none !important;
  border-radius: 0.6rem !important;
  padding: 5px 16px !important;
  transition: all 0.2s ease-in-out;
  color: #fff !important;
}

/* Primary (Dark Red) */
.btn-primary,
.btn-success {
  background-color: #8B0000 !important;
}
.btn-primary:hover,
.btn-success:hover {
  background-color: #a31212 !important;
}

/* Warning (Gray Accent) */
.btn-warning {
  background-color: #555 !important;
  color: #fff !important;
}
.btn-warning:hover {
  background-color: #333 !important;
}

/* Dark (Black) */
.btn-dark {
  background-color: #111 !important;
}
.btn-dark:hover {
  background-color: #333 !important;
}

/* Danger (Deep Black/Red blend) */
.btn-danger {
  background-color: #330000 !important;
}
.btn-danger:hover {
  background-color: #550000 !important;
}

/* =====================================
   Cards & Tables
   ===================================== */
.small-card * {
  font-size: 0.85rem !important;
  line-height: 1.3rem;
  color: #111 !important;
}
.small-row .row {
  align-items: center;
}
.small-row .fw-bold {
  background-color: #e6e6e6;
  border-radius: 0.4rem;
  padding: 3px 0;
}
.small-row .row.border-bottom {
  border-color: #ccc !important;
}

/* =====================================
   Autocomplete (Wider & Clean)
   ===================================== */
/* ===== AUTOCOMPLETE SMALL COMPACT STYLE ===== */
.autocomplete {
  position: relative;
  display: inline-block;
}

.autocomplete input {
  width: 100%;
  font-size: 0.8rem;
  border: 1px solid #bbb;
  border-radius: 0.4rem;
  padding: 4px 6px;
  background-color: #f9f9f9;
  color: #111;
}

.autocomplete input:focus {
  background-color: #fff;
  border-color: #8B0000;
  box-shadow: 0 0 3px rgba(139, 0, 0, 0.3);
}

/* Dropdown List */
.autocomplete-items {
  position: absolute;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 0.4rem 0.4rem;
  background-color: #fff;
  overflow: hidden;
  overflow-y: auto;
}

.autocomplete-items div {
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  border-bottom: 1px solid #eee;
  color: #111;
}

.autocomplete-items div:hover {
  background-color: #f0f0f0;
}

.autocomplete-active {
  background-color: #8B0000 !important;
  color: #fff !important;
}

/* =====================================
   Utility Sections (like #showPaymentPaid)
   ===================================== */
#showPaymentPaid, #resultFlexAdd {
  margin-top: 1rem;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 0.6rem;
  padding: 0.8rem;
}

/* =====================================
   Universal Small Text
   ===================================== */
small, form *, .container * {
  font-size: 0.85rem !important;
}
