/* Shell: header, sidebar, page chrome */
body.ezco-gui .theme-header-bg {
  background-image: none !important;
  background-color: var(--ez-forest) !important;
  border-color: color-mix(in srgb, var(--ez-sage) 35%, transparent) !important;
}
body.ezco-gui .theme-btn-bg {
  background-color: color-mix(in srgb, var(--ez-forest) 88%, var(--ez-sage)) !important;
  color: var(--ez-bone) !important;
}
body.ezco-gui .theme-btn-bg:hover,
body.ezco-gui .theme-btn-bg:focus-visible {
  background-color: var(--ez-sage-700) !important;
  outline: 2px solid var(--ez-sage);
  outline-offset: 2px;
}
body.ezco-gui .theme-logo-bg {
  background-color: var(--ez-forest) !important;
}
body.ezco-gui #side-bar,
body.ezco-gui .main-sidebar,
body.ezco-gui aside.main-sidebar {
  background-color: var(--ez-surface) !important;
  border-right: 1px solid var(--ez-border-soft);
}
body.ezco-gui #side-bar a,
body.ezco-gui .sidebar-menu > li > a {
  color: var(--ez-text-muted);
}
body.ezco-gui #side-bar a:hover svg,
body.ezco-gui #side-bar a:hover i,
body.ezco-gui #side-bar a.theme-sidebar-active svg,
body.ezco-gui #side-bar a.theme-sidebar-active i {
  color: var(--ez-sage-700) !important;
}
body.ezco-gui #side-bar .theme-sidebar-hover:hover,
body.ezco-gui #side-bar .theme-sidebar-active {
  background-color: color-mix(in srgb, var(--ez-sage) 14%, transparent) !important;
  color: var(--ez-forest) !important;
}
body.ezco-gui .content-wrapper,
body.ezco-gui .tw-bg-gray-100 {
  background-color: var(--ez-bg) !important;
}
body.ezco-gui .box,
body.ezco-gui .box-solid,
body.ezco-gui .panel,
body.ezco-gui .card {
  background: var(--ez-surface);
  border-color: var(--ez-border-soft);
  border-radius: var(--ez-radius-lg);
  box-shadow: none;
}
body.ezco-gui .box-header {
  background: var(--ez-surface-2);
  border-bottom: 1px solid var(--ez-border-soft);
  border-radius: var(--ez-radius-lg) var(--ez-radius-lg) 0 0;
}
/* Header brand mark via CSS (cream icon) — does not replace business logo upload logic */
body.ezco-gui .ezco-brand-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  background: var(--ez-bone);
  -webkit-mask: url("../img/logo/ezco-icon.svg") center / contain no-repeat;
  mask: url("../img/logo/ezco-icon.svg") center / contain no-repeat;
}

/* Design credit under EZCO Login / GUI sidebar items */
body.ezco-gui #side-bar li.sb-mod-ezcologin > a,
body.ezco-gui #side-bar li.sb-mod-ezcogui > a {
  flex-wrap: wrap;
  height: auto !important;
  min-height: 2.5rem;
  align-items: flex-start;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
body.ezco-gui #side-bar li.sb-mod-ezcologin > a::after,
body.ezco-gui #side-bar li.sb-mod-ezcogui > a::after {
  content: "Desain GUI by Jason L 2026";
  display: block;
  width: 100%;
  flex-basis: 100%;
  margin: 0.15rem 0 0 1.75rem;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.72;
  color: inherit;
}

/* Readable status pills in content headers */
body.ezco-gui .content-header .ezco-status-pill,
.content-header .ezco-status-pill {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  padding: 0.35em 0.75em;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
body.ezco-gui .content-header .ezco-status-pill--on,
.content-header .ezco-status-pill--on {
  background: color-mix(in srgb, var(--ez-sage-700) 18%, var(--ez-tint)) !important;
  color: var(--ez-sage-700) !important;
  border-color: color-mix(in srgb, var(--ez-sage-700) 35%, var(--ez-tint)) !important;
}
body.ezco-gui .content-header .ezco-status-pill--off,
.content-header .ezco-status-pill--off {
  background: color-mix(in srgb, var(--ez-clay) 14%, var(--ez-tint)) !important;
  color: var(--ez-clay) !important;
  border-color: color-mix(in srgb, var(--ez-clay) 30%, var(--ez-tint)) !important;
}
.ezco-design-credit {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ez-border-soft);
  font-size: 12px;
  color: var(--ez-text-muted);
  text-align: center;
}

/* Dark mode: flip hard Tailwind surfaces + header menus + Select2 */
html[data-color-mode="dark"] body.ezco-gui .tw-bg-white,
html[data-color-mode="dark"] body.ezco-gui .tw-bg-gray-100,
html[data-color-mode="dark"] body.ezco-gui .header-surface-menu {
  background-color: var(--ez-surface) !important;
  color: var(--ez-text) !important;
}
html[data-color-mode="dark"] body.ezco-gui .tw-text-gray-900,
html[data-color-mode="dark"] body.ezco-gui .tw-text-black,
html[data-color-mode="dark"] body.ezco-gui .tw-text-gray-700 {
  color: var(--ez-text) !important;
}
html[data-color-mode="dark"] body.ezco-gui .tw-text-gray-600,
html[data-color-mode="dark"] body.ezco-gui .tw-text-gray-500 {
  color: var(--ez-text-muted) !important;
}
html[data-color-mode="dark"] body.ezco-gui .tw-ring-gray-200 {
  --tw-ring-color: var(--ez-border-soft);
}
html[data-color-mode="dark"] body.ezco-gui .header-surface-menu a,
html[data-color-mode="dark"] body.ezco-gui .header-surface-menu button {
  color: var(--ez-text) !important;
}
html[data-color-mode="dark"] body.ezco-gui .header-surface-menu a:hover,
html[data-color-mode="dark"] body.ezco-gui .header-surface-menu button:hover,
html[data-color-mode="dark"] body.ezco-gui .header-lang-option:hover {
  background-color: var(--ez-surface-2) !important;
}
html[data-color-mode="dark"] body.ezco-gui #side-bar {
  background-color: var(--ez-surface) !important;
  color: var(--ez-text) !important;
}
html[data-color-mode="dark"] body.ezco-gui .select2-container--default .select2-selection--single,
html[data-color-mode="dark"] body.ezco-gui .select2-dropdown,
html[data-color-mode="dark"] body.ezco-gui .select2-search--dropdown .select2-search__field,
html[data-color-mode="dark"] body.ezco-gui .select2-results__option {
  background-color: var(--ez-surface-2) !important;
  color: var(--ez-text) !important;
  border-color: var(--ez-border-soft) !important;
}
html[data-color-mode="dark"] body.ezco-gui .select2-results__option--highlighted[aria-selected],
html[data-color-mode="dark"] body.ezco-gui .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--ez-forest) !important;
  color: var(--ez-bone) !important;
}
html[data-color-mode="dark"] body.ezco-gui table.dataTable tbody tr,
html[data-color-mode="dark"] body.ezco-gui .table > tbody > tr > td,
html[data-color-mode="dark"] body.ezco-gui .table > thead > tr > th {
  background-color: var(--ez-surface) !important;
  color: var(--ez-text) !important;
  border-color: var(--ez-border-soft) !important;
}
html[data-color-mode="dark"] body.ezco-gui .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--ez-surface-2) !important;
}
