/* enhance.css - load AFTER style.css (and invoice.css). Visual overrides only; no layout/JS behaviour changed. */
:root,
  :root[data-theme="light"] {
  --navy: #0a2a4a;
  --navy2: #061a33;
  --green: #0e9f6e;
  --green2: #0b7a5a;
  --mint: #2dd4a0;
  --gold: #f5b942;
  --bg: #f3f6fb;
  --surface: #fff;
  --text: #0b1f3a;
  --muted: #64748b;
  --line: #e3eaf3;
  --red: #e11d48;
  --blue: #2563eb;
  --r: 16px;
  --shadow:
    0 1px 2px rgba(10, 42, 74, 0.05), 0 12px 32px -12px rgba(10, 42, 74, 0.14);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #071426;
    --surface: #0d1f36;
    --text: #eaf1fb;
    --muted: #93a4bd;
    --line: #1f3350;
    --input: #0a1a2e;
    --green: #2dd4a0;
    --green2: #14b88a;
    --mint: #2dd4a0;
    --gold: #f5b942;
    --red: #fb7185;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --welcome-bg: linear-gradient(135deg, #04101f, #0a1f38 60%, #0b3a38);
    --ring-bg: #0a1a2e;
    --bar-track: #152a45;
  }

body {
  font-family:
    "Plus Jakarta Sans",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif !important;
  background: var(--bg) !important;
  color: var(--text);
}
/* header */
header {
  background: linear-gradient(
    120deg,
    var(--navy2),
    var(--navy) 60%,
    #0b4a47
  ) !important;
  box-shadow: 0 8px 24px -12px rgba(6, 26, 51, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  border: 0;
}
/* header a, */
header .logo-text {
  color: #fff !important;
  text-decoration: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--mint), var(--green2)) !important;
  color: #fff !important;
}
.logo-text {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-text span {
  color: var(--mint) !important;
}
/* .nav-menu a {
  color: #c9d8ec !important;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
.nav-menu a.active {
  background: rgba(45, 212, 160, 0.18) !important;
  color: var(--mint) !important;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 160, 0.35);
} */
.nav-menu a:hover {
    color: var(--green);
    background: white;
    box-shadow: var(--green);
}

.nav-menu a.active {
    color: var(--green2) !important;
    background: white !important;
    box-shadow: var(--green2) !important;
    font-weight: 600 !important;
}

.nav-menu a.active::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--green2);
    border-radius: 2px;
}

.hamburger span {
  background: #fff !important;
}
/* page */
.container {
  max-width: 1280px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header h2 i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  /* color: #fff; */
  /* background: linear-gradient(135deg, var(--green), var(--navy)); */
}
.sales-report-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow) !important;
  overflow-x: auto;
}
/* tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
thead th {
  background: #f6f9fd !important;
  color: var(--muted) !important;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  text-align: left;
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 14px;
  color: var(--text);
}
tbody tr {
  transition: background 0.15s;
}
tbody tr:hover {
  background: #f4faf7 !important;
}
tbody tr:last-child td {
  border-bottom: 0 !important;
}
td.actions {
  display: table-cell;
  white-space: nowrap;
}
td.actions .btn {
  margin-right: 6px;
}
/* buttons */
.btn {
  border: 0 !important;
  border-radius: 11px !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    filter 0.2s;
  color: #fff;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}
.btn-primary {
  background: var(--green2) !important;
  box-shadow: 0 8px 18px -8px rgba(14, 159, 110, 0.7);
}
.btn-secondary {
  background: #eaf0f8 !important;
  color: var(--text) !important;
}
.btn-success {
  background: linear-gradient(135deg, #16a34a, var(--green)) !important;
}
.btn-info {
  background: linear-gradient(135deg, #0ea5e9, var(--blue)) !important;
}
.btn-danger {
  background: linear-gradient(135deg, #f43f5e, var(--red)) !important;
}
.btn-sm {
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 10px !important;
}
/* alerts */
.alert {
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid;
}
.alert-success {
  background: #e8f8f1 !important;
  color: #0b6b4d !important;
  border-color: #a8e5cc !important;
}
.alert-danger {
  background: #fdecef !important;
  color: #b4122f !important;
  border-color: #f6b6c2 !important;
}
/* search */
.search-box {
  margin-bottom: 18px;
}
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.search-form input {
  flex: 1;
  min-width: 220px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  font: inherit;
  outline: 0;
  transition: 0.2s;
}
.search-form input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.field-grid input:focus,
.field-grid select:focus ,
input:focus{
  border-color: var(--green) !important;
  box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.18) !important;
  outline: 0;
}
.search-form button[type="submit"] {
  height: 46px;
  width: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--green2);
  /* background: linear-gradient(135deg, var(--navy), var(--green)); */
  color: #fff;
  cursor: pointer;
}
/* forms + modals (visibility logic untouched) */
.modal-content {
  border-radius: 20px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 30px 80px -20px rgba(6, 26, 51, 0.5) !important;
  background: #fff !important;
}
.modal-header {
  border-bottom: 1px solid var(--line) !important;
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.modal-header h2,
.modal-header h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #eef3f9;
  color: var(--muted) !important;
  transition: 0.2s;
}
.close:hover {
  background: #fdecef;
  color: var(--red) !important;
}
.form-group label,
.field-grid label, 
label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}
.form-group input,
.form-group select,
.form-group textarea,
.field-grid input,
.field-grid select,
.field-grid textarea,
 input, select {
  width: 100%;
  border: 1.5px solid var(--line) !important;
  border-radius: 11px !important;
  padding: 11px 13px;
  /* font: inherit; */
  background: #f8fafd;
  transition: 0.2s;
}
.form-row {
  gap: 16px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.product-form-section {
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.rate,
.prod_saleType {
  font-weight: 700;
  color: var(--green2);
}
.stock-position-table {
  border-radius: 12px;
  overflow: hidden;
}
/* invoice form */
.app-header,
.subtitle {
  color: var(--text);
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green2);
  background: rgba(14, 159, 110, 0.12);
  padding: 5px 11px;
  border-radius: 99px;
}
.section {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow) !important;
  padding: 22px !important;
  margin-bottom: 18px;
}
.action-bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.response-modal-content {
  border-radius: 20px !important;
  box-shadow: 0 30px 80px -20px rgba(6, 26, 51, 0.5) !important;
}
@media (max-width: 768px) {
  .page-header h2 {
    font-size: 21px;
  }
  .btn {
    padding: 9px 13px;
  }
}
