body {
  font-family: 'Quicksand', 'Cairo', sans-serif;
}

@media (min-width: 600px) {
  md-sidenav {
    max-width: 260px;
  }

  md-sidenav md-list-item {
    min-height: 40px;
    height: 40px;
  }
}

md-list.scrollable {
  height: 500px;
  overflow-y: scroll;
}

.md-table-select,
.no-border {
  border: none !important;
}

.md-dialog-content {
  padding: 12px !important;
}

.margin-bottom {
  margin-bottom: 16px !important;
}

.alert {
  position: relative;
  padding: .75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: .25rem;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.radius {
  border-radius: 16px !important;
}

.padding {
  padding: 16px !important;
}

.padding-horizontal {
  padding: 0px 16px !important;
}

.padding-bottom {
  padding-bottom: 16px !important;
}

.margin-vertical {
  margin: 8px 0 !important;
}

.margin-top {
  margin-top: 16px !important;
}

.margin-bottom {
  margin-bottom: 16px !important;
}

.margin-right {
  margin-right: 8px !important;
}

.no-margin-bottom {
  margin-bottom: 0 !important;
}

.text-medium {
  font-size: 14px !important;
}

.text-small {
  font-size: 12px !important;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-wrap {
  white-space: normal !important;
}

thead {
  background: #f2f5f7;
}

ng-md-icon {
  fill: grey;
}

.icon.md-sort-icon {
  color: #444 !important;
}

md-autocomplete {
  background: transparent;
}

label {
  padding-bottom: 6px;
  font-weight: 500;
  color: #374151;
}

.content md-input-container input,
.content md-input-container textarea,
.md-dialog-container input,
.md-dialog-container textarea {
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 12px !important;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.content md-input-container input:focus,
.content md-input-container textarea:focus,
.md-dialog-container input:focus,
.md-dialog-container textarea:focus {
  border-color: #6150e0 !important;
  box-shadow: 0 0 0 3px rgba(97, 80, 224, 0.15);
  outline: none;
}

md-select {
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

md-select:focus,
md-select.md-focused {
  border-color: #6150e0 !important;
  box-shadow: 0 0 0 3px rgba(97, 80, 224, 0.15);
}

md-input-container .md-errors-spacer {
  min-height: 0;
}

md-select .md-select-value {
  border-bottom-width: 0 !important;
}

input[disabled] {
  background-color: #f8f8f8;
}

md-table-pagination {
  margin-right: 50px;
}

table.md-table td.md-cell.image-cell {
  min-width: auto;
}

.padding-vertical {
  padding: 16px 0;
}

.badge {
  display: inline-block;
  padding: .25em .4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25rem;
  color: #212529;
  background-color: #f8f9fa;
}

.link {
  text-decoration: underline;
  cursor: pointer;
  color: #74b9ff !important;
}

label.link input {
  display: none;
}

.item-box {
  border: 1px solid #ccc;
  cursor: pointer;
  background: #f2f2f2;
  display: block !important;
  padding: 16px !important;
}

.item-border {
  border: 1px solid #ccc;
}

.hidden {
  visibility: hidden;
}

.no-padding {
  padding: 0 !important;
}

.signature-container {
  border: 1px solid #ccc;
  padding: 10px 10px 40px 10px;
  position: relative;
  margin: 0 auto 0 auto;
  height: 100%;
}

.signature-container .signature {
  border: 1px solid orange;
  margin: 0 auto;
  cursor: pointer;
}

.signature-container .buttons {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.signature-container .signature canvas {
  border: 1px solid #999;
  margin: 0 auto;
  cursor: pointer;
}

md-table-toolbar md-input-container {
  margin-right: 16px;
}

.md-table-toolbar {
  background-color: transparent !important;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
}

md-radio-button.radio-with-input .md-label {
  position: absolute;
  top: 38%;
}

table.md-table th.md-column,
table.md-table td.md-cell {
  min-width: 160px;
  max-width: 160px;
  padding: 12px !important;
}

table.md-table.half th.md-column,
table.md-table.half td.md-cell {
  min-width: auto;
  max-width: auto;
  padding: 6px !important;
}

table.md-table th.md-column,
table.md-table td.md-cell:last-child {
  min-width: auto;
  max-width: auto;
}

table.md-table td.md-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

table.md-table.autofit th.md-column.customer-name-cell,
table.md-table.autofit td.md-cell.customer-name-cell {
  min-width: 220px;
  max-width: 260px;
  white-space: normal;
  word-break: break-word;
}

.customer-name-cell-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: start;
}

.customer-name-cell-inner .img-thumb {
  flex: none;
  margin: 0;
}

table.md-table.sticky-head thead th.md-column {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.md-list-item-text a {
  color: #444;
  display: inline-block;
  text-decoration: none;
  padding-bottom: 8px;
}

.card {
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.2);
  margin: 16px;
  transition: 0.3s;
}

.subscriber-view .icon-item {
  margin-left: 16px;
  margin-right: 8px;
}

md-dialog-content .icon-item {
  margin-left: 44px;
  margin-right: 20px;
}

.transparent {
  background-color: transparent !important;
}

.login-content {
  background: none;
  margin-top: 80px;
}

.border-dark {
  border: 1px solid #ccc;
  padding: 8px;
}

.md-mini {
  font-size: 11px;
  text-transform: capitalize;
  min-height: 24px;
  line-height: 24px;
}

.hint {
  position: absolute;
  left: 8px;
  right: auto;
  bottom: 7px;
  font-size: 12px;
  line-height: 14px;
  color: grey;
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 14px;
  color: grey;
}

.username-phone-prefix {
  padding: 6px 10px;
  margin-bottom: 12px;
  margin-inline-end: 8px;
  border-radius: 4px;
  background: #eceff1;
  color: #37474f;
  font-weight: 600;
  white-space: nowrap;
}

.filter-bar {
  padding-left: 15px;
}

.filter-bar md-input-container {
  margin-right: 10px;
}

.filter-bar md-datepicker {
  padding-top: 16px;
}

.icon-add,
.icon-close,
.icon.light {
  fill: white;
}

.photo-camera,
.set-cursor-pointer {
  cursor: pointer;
}

.icon-active {
  fill: #1e88e5;
}

.fade.ng-enter {
  transition: 1s linear all;
  opacity: 0;
}

.fade.ng-enter.ng-enter-active {
  opacity: 1;
}

.md-button.md-fab.md-fab-bottom-right {
  top: auto;
  right: 20px;
  bottom: 20px;
  left: auto;
  position: fixed;
}

.star-rating {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.star {
  padding: 1px;
  color: #ddd;
  font-size: 20px;
  text-shadow: .05em .05em #aaa;
  list-style-type: none;
  display: inline-block;
  cursor: pointer;
}

.star.filled i {
  color: #fd0;
}

.login-content {
  background: none;
}

.content {
  background-color: #eef1f4;
}

.main-content {
  border-radius: 8px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.no-padding {
  padding: 0px;
}

.no-margin {
  margin: 0px !important;
}

.set-intcont-margin md-input-container {
  margin: 8px !important;
}

.set-intcont-width md-input-container {
  width: 100% !important;
}

.position-selecte {
  position: relative;
  bottom: 13px;
}

.color-white {
  color: #fff;
}

.hide {
  display: none !important;
}

.full-image {
  display: block;
  max-width: 100%;
}

.img-thumb {
  width: 40px;
  height: 40px;
  margin: 5px 10px;
}

.bg-thumb {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
  width: 80px;
  height: 80px;
}

.img-circle {
  border-radius: 50%;
}

[ng\:cloak],
[ng-cloak],
.ng-cloak {
  display: none !important;
}

.label {
  border-radius: 5px;
  padding: 5px 10px;
  display: inline-block;
  line-height: 1.5em;
  text-align: center;
  min-width: 80px;
  margin: 5px 0;
}

.label.yellow {
  background-color: #fbf8df;
}

.label.orange {
  background-color: #FF9E3D;
}

.label.green {
  background-color: #d8f5ea;
}

.label.red {
  background-color: #fab1a0;
  color: white;
}

.label.purple {
  background-color: #a29bfe;
  color: white;
}

.label.blue {
  background-color: #74b9ff;
  color: white;
}

.label.tier-bronze {
  background-color: #eaddd1;
  color: #7c4a24;
}

.label.tier-silver {
  background-color: #e5e7eb;
  color: #374151;
}

.label.tier-gold {
  background-color: #fff3c4;
  color: #92710a;
}

.label.tier-platinum {
  background-color: #ede9fe;
  color: #5b21b6;
}

.separacion-asig-r {
  position: relative;
  bottom: 50px;
}

.full-width {
  width: 100% !important;
}

.md-nav-bar {
  border-style: none;
}

.content-white {
  background-color: #fff;
}

.padding-doble {
  padding: 16px;
}

.md-cell .md-checkbox-cell {
  display: none;
}

.sin-border-azul {
  outline: 0;
}

md-autocomplete-wrap {
  box-shadow: none !important;
  border-radius: 8px;
  overflow: hidden;
}

.separacion-border-order {
  border-right: 1px solid #e1e1e1;
  padding-right: 15px;
}

.result-items {
  padding: 0px 25px 0px 25px;
}

/* ---- Modern flat theme: soft borders instead of heavy Material
   elevation, larger radius, pill-shaped sidebar selection ---- */

.active {
  background: rgba(97, 80, 224, 0.35) !important;
  border-radius: 8px;
}

md-sidenav md-list-item {
  margin: 2px 8px;
  border-radius: 8px;
  width: auto;
}

.notification-center {
  position: relative;
  margin-inline-end: 4px;
}

.notification-badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: #d50000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notification-center-results {
  position: absolute;
  top: 42px;
  inset-inline-end: 0;
  width: 260px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 60;
  padding: 8px 0;
  margin: 0 !important;
}

.notification-center-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.global-search {
  position: relative;
  width: 280px;
  margin: 0 16px;
}

.global-search-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 10px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #9ca3af;
  pointer-events: none;
}

.global-search-input {
  width: 100%;
  height: 36px;
  padding-block: 0;
  padding-inline: 34px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-size: 13px;
  background: #f9fafb;
  box-sizing: border-box;
}

.global-search-input:focus {
  outline: none;
  border-color: #6150e0;
  background: #fff;
}

.global-search-results {
  position: absolute;
  top: 42px;
  inset-inline-end: 0;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 60;
  padding: 8px 0;
  margin: 0 !important;
}

.global-search-group-title {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.global-search-item {
  padding: 8px 16px;
  cursor: pointer;
}

.global-search-item:hover {
  background: rgba(97, 80, 224, 0.08);
}

.global-search-item-label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.global-search-item-sub {
  font-size: 12px;
  color: #6b7280;
}

.global-search-empty {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b7280;
}

.sidebar-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-inline-end: 12px;
  fill: rgba(255, 255, 255, 0.75);
}

.active .sidebar-icon {
  fill: #ffffff;
}

md-toolbar {
  box-shadow: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

md-table-toolbar {
  box-shadow: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

md-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.05) !important;
}

.main-content {
  border-radius: 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.05) !important;
  background: #fff;
}

.md-button:not(.md-icon-button):not(.md-fab) {
  border-radius: 8px;
  text-transform: none;
}

.md-button.md-raised:not([disabled]) {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08) !important;
}

.md-button.md-raised:not([disabled]):not(.md-primary):not(.md-accent):not(.md-warn) {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.md-button.md-raised:not([disabled]):hover,
.md-button.md-raised:not([disabled]):focus {
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12) !important;
}

md-input-container .md-input {
  border-bottom-width: 2px;
}

table.md-table thead.md-head > tr.md-row {
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

table.md-table tbody.md-body > tr.md-row:hover {
  background: rgba(97, 80, 224, 0.04);
}

.style-order {
  padding-left: 6px;
  color: #4CAF50
}

.style-cards-items {
  height: 300px;
  width: 100%;
  overflow: auto
}

.padding-items-order {
  padding: 0 10px 0 10px;
  margin: 0px;
}

.price-underline {
  text-decoration: line-through;
}

.estilo-note-item {
  font-size: 12px;
  color: gray
}

/* Please note: All these selectors are only applied to children of elements with the 'selectdemoSelectHeader' class */

.selectdemoSelectHeader .demo-header-searchbox {
  border: none;
  outline: none;
  height: 100%;
  width: 100%;
  padding: 0;
}

.selectdemoSelectHeader .demo-select-header {
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(0, 0, 0, 0.12);
  padding-left: 10.667px;
  height: 48px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  width: auto;
}

.selectdemoSelectHeader md-content._md {
  max-height: 240px;
}

.button-import {
  position: relative;
  top: 25px;
}

.set-icon-item-delete {
  position: relative;
  bottom: 8px;
}

.contenedor-list-sc {
  height: 300px;
  overflow: auto;
}

trix-editor {
  min-height: 15em;
}

.margin {
  margin: 16px !important;
}

.margin-bottom {
  margin-bottom: 16px;
}

.margin-horizontal {
  margin: 0 16px !important;
}

.margin-t {
  margin-top: 16px;
}

.margin-8px {
  margin: 8px !important;
}

.box-picture {
  height: 250px;
  border: 1px solid #e0e0e0;
}

.set-margin {
  margin: 16px;
}

.img-box {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 200px;
}

.box-disco-item {
  position: relative;
  bottom: 15px;
}

.variation {
  border: 1px solid #ccc;
  margin-top: 8px;
}

.label.yellow {
  background-color: #fbf8df;
  color: #333;
}

.label.orange {
  background-color: #FF9E3D;
}

.label.green,
.box-success {
  background-color: #d8f5ea;
}

.label.red,
.box-reject {
  background-color: #fab1a0;
}

.bold {
  font-weight: bold;
}

.rtl {
  direction: rtl !important;
}

.status-box {
  padding: 8px;
  text-align: center;
  width: 50%;
  margin: 0 auto;
}

.map {
  width: 100%;
  height: 200px;
}

/* Image Viewer */

.iv-container {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
  width: 50% !important;
  height: 50% !important;
}

.md-chips md-chip {
  font-size: 12px;
  max-width: 100%;
}

.md-chips.full-width md-chip {
  max-width: 100%;
}

.md-chips .md-chip-input-container input {
  border: 0 !important;
  padding: 0 !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.column {
  flex: 25%;
  max-width: 25%;
  padding: 8px;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

.gallery .bg-image {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  width: 100%;
  height: 250px;
}

.gallery .bg-image md-progress-circular {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gallery .bg-image .md-button {
  position: absolute;
  top: 4px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
}

.gallery .bg-image .md-button:hover {
  background: rgba(255, 255, 255, 1.0);
}

/* Drag and Drop */

[draggable=true] {
  cursor: move;
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;

}

[draggable=true]:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

.draggable {
  background-color: #dff0d8;
  font-size: 1.2em;
}

.dtr-dragging {
  opacity: 0.3;
}

.dtr-transition {
  background-color: #d9edf7;
}

.dtr-dropping-above {
  border-top: 15px solid #ccc !important;
}

.dtr-dropping-below {
  border-bottom: 15px solid #ccc !important;
}

/* End Drag and Drop */

/* ---- Dark theme ----
   Angular Material injects its own theme stylesheet at runtime (the
   "default" light palette - text at ~87% black) that our static
   stylesheet cannot out-specificity reliably, since we can't control
   where in the DOM its <style> tag lands. Every text-color rule here
   is !important so it wins regardless: Material's generated color
   rules are plain (non-!important), so this is a safe, deliberate
   escape hatch, not a general habit for this file.

   Covers the structural chrome every page shares (toolbars, cards,
   tables, form inputs, dialogs, menus, the search/notification
   dropdowns) rather than every one-off legacy class in this file -
   a handful of older, rarely-touched forms may still show a light
   patch and should be reported for a follow-up pass. */

body.dark-theme {
  background: #0f172a;
  color: #e2e8f0 !important;
}

/* Broad text-color reset: anything painted black by Material's
   generated theme (almost every plain container/text element) gets
   forced light. Deliberately excludes buttons/badges/pills that carry
   their own intentional foreground color - those are restored below,
   *after* this block, so source order lets them win the tie. */
body.dark-theme div,
body.dark-theme span,
body.dark-theme p,
body.dark-theme td,
body.dark-theme th,
body.dark-theme li,
body.dark-theme a,
body.dark-theme label,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme strong,
body.dark-theme small,
body.dark-theme .md-list-item-text,
body.dark-theme md-list-item,
body.dark-theme md-option,
body.dark-theme md-select-value,
body.dark-theme md-input-container,
body.dark-theme .md-select-menu-container,
body.dark-theme md-select-menu {
  color: #e2e8f0 !important;
}

body.dark-theme md-content {
  background: #0f172a;
}

body.dark-theme md-toolbar:not(#side-menu md-toolbar) {
  background: #1e293b !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme md-table-toolbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme md-card,
body.dark-theme .main-content,
body.dark-theme .kpi-card,
body.dark-theme .chart-card,
body.dark-theme .content-white {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .kpi-card-title,
body.dark-theme label,
body.dark-theme .global-search-group-title,
body.dark-theme .global-search-item-sub,
body.dark-theme .global-search-empty,
body.dark-theme .estilo-note-item {
  color: #94a3b8 !important;
}

body.dark-theme thead {
  background: #263449;
}

body.dark-theme table.md-table thead.md-head > tr.md-row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.dark-theme table.md-table tbody.md-body > tr.md-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme table.md-table tbody.md-body > tr.md-row:hover,
body.dark-theme .global-search-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-theme table.md-table.sticky-head thead th.md-column {
  background: #263449;
}

body.dark-theme td,
body.dark-theme th {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .content md-input-container input,
body.dark-theme .content md-input-container textarea,
body.dark-theme .md-dialog-container input,
body.dark-theme .md-dialog-container textarea,
body.dark-theme .global-search-input {
  background: #263449 !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.dark-theme .global-search-input:focus {
  background: #263449 !important;
}

body.dark-theme md-dialog,
body.dark-theme md-dialog-content,
body.dark-theme md-dialog .md-title,
body.dark-theme md-dialog-actions {
  background: #1e293b;
}

body.dark-theme md-menu-content,
body.dark-theme .md-select-menu-container md-select-menu,
body.dark-theme md-select-menu {
  background: #1e293b;
}

body.dark-theme md-option:hover,
body.dark-theme md-option.md-active,
body.dark-theme .md-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-theme .md-button.md-raised:not([disabled]):not(.md-primary):not(.md-accent):not(.md-warn) {
  background-color: #263449;
  border-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0 !important;
}

body.dark-theme md-datepicker,
body.dark-theme .md-datepicker-input-container {
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Restore intentional foreground colors that must NOT go light ---
   These come after the blanket reset above, so equal-!important
   specificity is broken by source order in their favor. */

body.dark-theme .kpi-card-value {
  color: var(--kpi-color, #e2e8f0) !important;
}

body.dark-theme .badge {
  color: #212529 !important;
}

/* Status pills (.label.yellow/.green - pending/approved, used across
   orders, cards, topup/register requests, etc.) keep pale backgrounds
   in both themes for quick scanning, so they need dark text kept dark,
   not swept up by the blanket light-text reset above. .red/.purple/
   .blue/.orange already set their own white text and sit on solid,
   fully-saturated backgrounds, so the blanket light text already
   reads fine on those and they're left alone. */
body.dark-theme .label.yellow,
body.dark-theme .label.yellow *,
body.dark-theme .label.green,
body.dark-theme .label.green *,
body.dark-theme .box-success,
body.dark-theme .box-success *,
body.dark-theme .draggable,
body.dark-theme .draggable *,
body.dark-theme .dtr-transition,
body.dark-theme .dtr-transition * {
  color: #1f2937 !important;
}

/* Membership tier badges keep their own pale backgrounds + matching
   dark text in both themes, same reasoning. */
body.dark-theme .label.tier-bronze,
body.dark-theme .label.tier-bronze * {
  color: #7c4a24 !important;
}

body.dark-theme .label.tier-silver,
body.dark-theme .label.tier-silver * {
  color: #374151 !important;
}

body.dark-theme .label.tier-gold,
body.dark-theme .label.tier-gold * {
  color: #92710a !important;
}

body.dark-theme .label.tier-platinum,
body.dark-theme .label.tier-platinum * {
  color: #5b21b6 !important;
}

/* .alert-warning keeps its pale-yellow banner background in both
   themes (same reasoning as the status pills above). */
body.dark-theme .alert-warning,
body.dark-theme .alert-warning * {
  color: #856404 !important;
}

body.dark-theme .notification-badge {
  color: #fff !important;
}

body.dark-theme .chart-card-title,
body.dark-theme .global-search-item-label {
  color: #e2e8f0 !important;
}

.offer-points-old {
  text-decoration: line-through;
  opacity: 0.6;
  margin-inline-end: 6px;
}

.offer-inline-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 4px;
}

.offer-inline-hint small {
  opacity: 0.7;
}

.offer-fields {
  padding-inline-start: 32px;
}

.offer-error {
  color: #dc3545;
  font-size: 12px;
}