﻿/**
* Template Name: NiceAdmin
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Updated: Apr 20 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  --bg: #e8efee;
  --text: #1a2b2b;
  --card: #f4f9f8;
  --input: #f6fbfa;
  --border: #e5f2f4;
  --text-muted: #5f6f6f;
  --text-soft: #7a8c8c;
  --heading: #274646;
  --primary: #2f7f7f;
  --accent: #4caf50;
  --hover: #e3f2ef;
  --pacbiz-primary: var(--primary);
  --pacbiz-accent: var(--accent);
  --pacbiz-bg: var(--bg);
  --pacbiz-card: var(--card);
  --pacbiz-hover: var(--hover);
  --pacbiz-text: var(--text);
  --pacbiz-muted: var(--text-muted);
  --pacbiz-heading: var(--heading);
  --pacbiz-border: var(--border);
  --pacbiz-shadow: 0 12px 30px rgba(47, 127, 127, 0.08);
  --ui-ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ui-duration-fast: 0.18s;
  --ui-duration-base: 0.26s;
  --ui-duration-slow: 0.38s;
}

:root[data-theme="light"] {
  --bg: #f3f7f6;
  --text: #1a2b2b;
  --card: #ffffff;
  --input: #ffffff;
  --border: #e5f2f4;
  --text-muted: #5f6f6f;
  --text-soft: #7a8c8c;
  --heading: #274646;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f1a1a;
  --text: #e4f0ef;
  --card: #202729;
  --input: #30383c;
  --border: #404a4e;
  --text-muted: #9fb3b3;
  --text-soft: #768989;
  --heading: #edf5f4;
  color-scheme: dark;
}

body {
  font-family: "Inter", "Open Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color var(--ui-duration-base) var(--ui-ease-standard),
    color var(--ui-duration-base) var(--ui-ease-standard);
}

html {
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--pacbiz-primary);
  text-decoration: none;
  transition: color var(--ui-duration-fast) var(--ui-ease-standard),
    opacity var(--ui-duration-fast) var(--ui-ease-standard),
    transform var(--ui-duration-fast) var(--ui-ease-standard);
}

a:hover {
  color: #246767;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", "Nunito", sans-serif;
  color: var(--pacbiz-heading);
  transition: color var(--ui-duration-base) var(--ui-ease-standard);
}

.header,
.sidebar,
.footer,
.card,
.modal-content,
.dropdown-menu,
.form-control,
.form-select,
.form-check-input,
.btn,
.badge,
.nav-link,
.dropdown-item,
.table tbody tr,
.alert,
.accordion-button,
.settings-shortcut-card,
.super-admin-nav-link {
  transition: none;
}

h1,
h2,
h3 {
  font-weight: 600;
}

label,
.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--pacbiz-heading);
}

.form-text,
small.form-text,
.text-muted {
  color: var(--pacbiz-muted);
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--pacbiz-heading);
}

.pagetitle .page-scope-label {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pacbiz-muted);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--pacbiz-primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #256d6d;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 16px 36px rgba(47, 127, 127, 0.14);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--pacbiz-hover);
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #f4f9f8;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: 1px solid var(--pacbiz-border);
  border-radius: 12px;
  box-shadow: var(--pacbiz-shadow);
  background: var(--pacbiz-card);
}

.card-header,
.card-footer {
  border-color: var(--pacbiz-border);
  background-color: var(--pacbiz-card);
  color: var(--pacbiz-muted);
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--pacbiz-heading);
  font-family: "Inter", "Poppins", sans-serif;
}

.card-title span {
  color: var(--pacbiz-muted);
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0 20px 20px 20px;
}

.card-img-overlay {
  background-color: rgba(244, 249, 248, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Status rules editor */
.status-rules-editor {
  border: 1px solid #e1edf3;
  border-radius: 12px;
  padding: 12px;
  background: #f9fcff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-rule-row {
  border: 1px solid rgba(15, 47, 53, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f4f9f8;
}

.status-rule-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.status-rule-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.status-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(91, 209, 215, 0.12);
  border: 1px solid rgba(91, 209, 215, 0.35);
  color: #0f2f35;
}

.status-rule-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.notification-policy-input {
  min-height: 88px;
  border-radius: 12px;
  background: #f9fbfd;
  border-color: #dfe7ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #3f5368;
  resize: vertical;
}

.notification-policy-input:focus {
  background: #f4f9f8;
  border-color: #b9cce0;
  box-shadow: 0 0 0 0.15rem rgba(65, 84, 241, 0.08);
}

.notification-policy-note {
  display: block;
  margin-top: 0.35rem;
}

.settings-page-description {
  margin: 0.35rem 0 0;
  color: #6c7f97;
  font-size: 0.95rem;
}

.settings-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.settings-shortcut-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(1, 41, 112, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f9f8 0%, #f0f5fe 100%);
  color: #012970;
  transition: 0.2s ease;
  min-height: 132px;
}

.settings-shortcut-card:hover,
.settings-shortcut-card:focus {
  transform: translateY(-2px);
  border-color: rgba(65, 84, 241, 0.28);
  box-shadow: 0 12px 28px rgba(1, 41, 112, 0.08);
  color: #012970;
}

.settings-shortcut-card i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(65, 84, 241, 0.1);
  color: #4154f1;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.settings-shortcut-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #012970;
}

.settings-shortcut-card span {
  color: #6c7f97;
  line-height: 1.45;
  font-size: 0.88rem;
}

.settings-form-card {
  position: sticky;
  top: 86px;
}

.settings-form-title {
  margin-bottom: 0.25rem;
}

.settings-form-hint {
  margin: 0 0 1rem;
  color: #6c7f97;
  font-size: 0.88rem;
}

.page-intro {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(47, 127, 127, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 245, 243, 0.95));
  box-shadow: 0 14px 30px rgba(47, 127, 127, 0.08);
}

.page-intro h2,
.page-intro h3,
.page-intro h4,
.page-intro h5,
.page-intro h6 {
  margin-bottom: 0.45rem;
}

.page-intro p:last-child {
  margin-bottom: 0;
}

.page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.page-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.page-intro-actions .btn {
  border-radius: 999px;
  padding-inline: 1rem;
}

.quick-guide {
  display: grid;
  gap: 0.7rem;
}

.quick-guide-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(47, 127, 127, 0.12);
}

.quick-guide-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(47, 127, 127, 0.12);
  color: var(--pacbiz-primary);
  font-size: 0.86rem;
}

.quick-guide-step span {
  display: block;
  color: var(--pacbiz-muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.section-kicker {
  margin-bottom: 0.9rem;
}

.section-kicker h5 {
  margin-bottom: 0.25rem;
}

.section-kicker p {
  margin-bottom: 0;
  color: var(--pacbiz-muted);
  font-size: 0.92rem;
}

.toolbar-section {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(47, 127, 127, 0.14);
  border-radius: 16px;
  background: rgba(244, 249, 248, 0.9);
}

.toolbar-section + .toolbar-section {
  margin-top: 0.85rem;
}

.toolbar-section-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--pacbiz-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field-guidance {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(47, 127, 127, 0.08);
  border: 1px solid rgba(47, 127, 127, 0.14);
}

.field-guidance h6 {
  margin-bottom: 0.45rem;
}

.field-guidance p {
  margin-bottom: 0.6rem;
  color: var(--pacbiz-muted);
  font-size: 0.92rem;
}

.field-guidance ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--pacbiz-muted);
  font-size: 0.9rem;
}

.field-guidance li + li {
  margin-top: 0.35rem;
}

.onboarding-card {
  border: 1px solid rgba(47, 127, 127, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 247, 0.96));
  box-shadow: 0 16px 34px rgba(47, 127, 127, 0.08);
}

.onboarding-card .card-body {
  padding: 1.15rem 1.2rem;
}

.onboarding-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.onboarding-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 127, 127, 0.1);
  color: var(--pacbiz-heading);
  font-size: 0.84rem;
  font-weight: 600;
}

.onboarding-chip i {
  color: var(--pacbiz-primary);
}

.settings-section-note {
  margin: 0.35rem 0 1rem;
  color: var(--pacbiz-muted);
  font-size: 0.93rem;
}

.page-intro-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.95rem;
}

.page-intro-controls .btn {
  border-radius: 999px;
}

.page-guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

.page-guide-trigger .guide-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.page-guide-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-guide-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(47, 127, 127, 0.08);
  border: 1px solid rgba(47, 127, 127, 0.14);
}

.page-guide-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(47, 127, 127, 0.12);
  color: var(--pacbiz-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.page-guide-step p {
  margin: 0;
  color: var(--pacbiz-muted);
  line-height: 1.45;
  font-size: 0.93rem;
}

.page-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.page-guide-links .btn {
  border-radius: 999px;
}

.page-guide-note {
  margin-top: 1rem;
  color: var(--pacbiz-muted);
  font-size: 0.9rem;
}

.help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.35rem;
  border: 1px solid rgba(47, 127, 127, 0.28);
  border-radius: 999px;
  background: rgba(47, 127, 127, 0.08);
  color: var(--pacbiz-primary);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.help-trigger:hover,
.help-trigger:focus {
  background: rgba(47, 127, 127, 0.16);
  color: #215f5f;
}

.popover.help-popover {
  max-width: 320px;
  background: #ffffff;
  border: 1px solid rgba(47, 127, 127, 0.16);
  box-shadow: 0 16px 34px rgba(47, 127, 127, 0.12);
}

.popover.help-popover.bs-popover-top > .popover-arrow::before,
.popover.help-popover.bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::before {
  border-top-color: rgba(47, 127, 127, 0.16);
}

.popover.help-popover.bs-popover-top > .popover-arrow::after,
.popover.help-popover.bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::after {
  border-top-color: #ffffff;
}

.popover.help-popover.bs-popover-bottom > .popover-arrow::before,
.popover.help-popover.bs-popover-auto[data-popper-placement^="bottom"] > .popover-arrow::before {
  border-bottom-color: rgba(47, 127, 127, 0.16);
}

.popover.help-popover.bs-popover-bottom > .popover-arrow::after,
.popover.help-popover.bs-popover-auto[data-popper-placement^="bottom"] > .popover-arrow::after {
  border-bottom-color: #ffffff;
}

.popover.help-popover.bs-popover-start > .popover-arrow::before,
.popover.help-popover.bs-popover-auto[data-popper-placement^="left"] > .popover-arrow::before {
  border-left-color: rgba(47, 127, 127, 0.16);
}

.popover.help-popover.bs-popover-start > .popover-arrow::after,
.popover.help-popover.bs-popover-auto[data-popper-placement^="left"] > .popover-arrow::after {
  border-left-color: #ffffff;
}

.popover.help-popover.bs-popover-end > .popover-arrow::before,
.popover.help-popover.bs-popover-auto[data-popper-placement^="right"] > .popover-arrow::before {
  border-right-color: rgba(47, 127, 127, 0.16);
}

.popover.help-popover.bs-popover-end > .popover-arrow::after,
.popover.help-popover.bs-popover-auto[data-popper-placement^="right"] > .popover-arrow::after {
  border-right-color: #ffffff;
}

.popover.help-popover .popover-header {
  background: rgba(47, 127, 127, 0.08);
  color: var(--pacbiz-heading);
  font-weight: 700;
}

.popover.help-popover .popover-body {
  color: var(--pacbiz-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.popover.help-popover .popover-body ul {
  padding-left: 1rem;
  margin: 0.35rem 0 0;
}

.popover.help-popover .popover-body li + li {
  margin-top: 0.3rem;
}

@media (max-width: 991px) {
  .page-intro-grid {
    grid-template-columns: 1fr;
  }
}

.table-fit {
  width: 100%;
  table-layout: auto;
}

.table-fit th,
.table-fit td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: middle;
  font-size: 0.84rem;
}

.table-fit tbody tr:nth-child(odd) {
  background: rgba(58, 70, 82, 0.04);
}

.table-fit.table-hover tbody tr:hover {
  background: rgba(65, 84, 241, 0.06);
}

.col-compact {
  width: 72px;
  text-align: center;
  white-space: nowrap !important;
}

.col-actions {
  width: 88px;
  text-align: center;
  white-space: nowrap !important;
}

.resource-table-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.resource-table-filters {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
  flex: 1 1 420px;
}

.resource-filter-group {
  min-width: 220px;
}

.resource-filter-group.compact {
  min-width: 160px;
  max-width: 220px;
}

.resource-table-actions {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.resource-table-meta {
  font-size: 0.85rem;
  color: #6c7f97;
  white-space: nowrap;
}

.resource-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.resource-pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-pagination .btn {
  min-width: 38px;
}

.settings-page-note {
  font-size: 0.84rem;
  color: #6c7f97;
}

.super-admin-intro {
  margin-bottom: 1rem;
}

.super-admin-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.super-admin-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(1, 41, 112, 0.1);
  border-radius: 14px;
  background: #f4f9f8;
  color: #012970;
  transition: none;
}

.super-admin-nav-link:hover,
.super-admin-nav-link:focus {
  color: #012970;
  border-color: rgba(65, 84, 241, 0.24);
  box-shadow: none;
  transform: none;
}

.super-admin-nav-link.is-active {
  border-color: rgba(65, 84, 241, 0.34);
  box-shadow: none;
  background: linear-gradient(180deg, #f4f9f8 0%, #eef3fe 100%);
}

.super-admin-nav-link i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(65, 84, 241, 0.12);
  color: #4154f1;
  font-size: 1rem;
  flex-shrink: 0;
}

.super-admin-nav-link strong,
.super-admin-nav-link span {
  display: block;
}

.super-admin-nav-link strong {
  color: #012970;
  margin-bottom: 0.2rem;
}

.super-admin-nav-link span {
  color: #6c7f97;
  font-size: 0.84rem;
  line-height: 1.45;
}

.super-admin-section {
  margin-bottom: 1.5rem;
}

.super-admin-section[hidden] {
  display: none !important;
}

.super-admin-section.is-visible {
  display: block;
}

.super-admin-section.is-hiding {
  display: none;
}

.super-admin-card {
  height: 100%;
}

.super-admin-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.super-admin-card .card-title {
  margin-bottom: 0;
}

.super-admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.super-admin-card-copy {
  max-width: 760px;
}

.super-admin-card-copy .settings-form-hint,
.super-admin-card-copy .settings-page-note {
  margin-bottom: 0;
}

.super-admin-action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.super-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.super-admin-form-span-3 {
  grid-column: span 3;
}

.super-admin-form-span-4 {
  grid-column: span 4;
}

.super-admin-form-span-6 {
  grid-column: span 6;
}

.super-admin-form-span-8 {
  grid-column: span 8;
}

.super-admin-form-span-12 {
  grid-column: span 12;
}

.super-admin-inline-check {
  min-height: 100%;
  display: flex;
  align-items: end;
  padding-bottom: 0.35rem;
}

.super-admin-email-panel {
  border: 1px solid rgba(93, 135, 164, 0.22);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.92);
  padding: 1.1rem;
  margin-top: 0.35rem;
}

.super-admin-email-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(93, 135, 164, 0.18);
  flex-wrap: wrap;
}

.super-admin-email-toggle {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(93, 135, 164, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.super-admin-email-sender-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(93, 135, 164, 0.18);
}

.super-admin-email-status {
  min-width: 0;
}

.super-admin-email-label {
  color: #17324a;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.super-admin-email-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.super-admin-email-actions .btn {
  white-space: nowrap;
}

.super-admin-email-recipient-title {
  color: #17324a;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.65rem;
}

.super-admin-email-recipient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.super-admin-email-recipient-grid .form-label {
  margin-bottom: 0.35rem;
}

.super-admin-status-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.super-admin-status-toolbar .form-label {
  margin-bottom: 0;
}

.perm-table-wrap {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
}

.perm-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e9fdfd;
}

.perm-table-wrap::-webkit-scrollbar {
  width: 6px;
}

.perm-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(91, 209, 215, 0.35);
  border-radius: 6px;
}

.perm-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 209, 215, 0.35) transparent;
}

.backup-history-wrap {
  max-height: 360px;
  overflow: auto;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 209, 215, 0.35) transparent;
}

.backup-history-wrap thead th {
  position: sticky;
  top: 0;
  background: #f4f9f8;
  z-index: 1;
}

.backup-history-wrap table,
.inventory-table {
  min-width: 980px;
}

.backup-history-wrap th,
.backup-history-wrap td,
.inventory-table th,
.inventory-table td {
  vertical-align: middle;
}

.backup-history-wrap th,
.inventory-table th {
  white-space: nowrap;
}

.backup-history-wrap td:nth-child(3),
.inventory-table td:first-child {
  min-width: 220px;
}

.backup-history-wrap td:nth-child(3) div,
.table-primary-text {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.backup-history-wrap td:nth-child(1),
.backup-history-wrap td:nth-child(2),
.backup-history-wrap td:nth-child(4),
.backup-history-wrap td:nth-child(5),
.backup-history-wrap td:nth-child(6),
.backup-history-wrap td:nth-child(7),
.inventory-table td:nth-child(2),
.inventory-table td:nth-child(3),
.inventory-table td:nth-child(4),
.inventory-table td:nth-child(5),
.inventory-table td:nth-child(7) {
  white-space: nowrap;
}

.backup-history-wrap td:last-child,
.inventory-table td.col-actions {
  width: 1%;
  white-space: nowrap;
}

.backup-history-wrap td:last-child .d-flex {
  flex-wrap: nowrap !important;
}

.backup-history-wrap .btn,
.inventory-table .row-actions .btn {
  min-width: 36px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inventory-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 209, 215, 0.35) transparent;
}

.consumables-table td:nth-child(6) {
  min-width: 170px;
}

.licenses-table td:nth-child(1),
.license-allocation-table td:nth-child(1) {
  min-width: 220px;
}

.licenses-table td:nth-child(3),
.license-allocation-table td:nth-child(5),
.license-allocation-table td:nth-child(6) {
  white-space: nowrap;
}

.licenses-table td:nth-child(6) {
  min-width: 120px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--pacbiz-border);
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--pacbiz-heading);
  background-color: var(--pacbiz-hover);
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--pacbiz-primary);
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Inter", "Nunito", sans-serif;
  color: var(--pacbiz-muted);
  font-weight: 600;
}

.breadcrumb a {
  color: var(--pacbiz-muted);
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: var(--pacbiz-primary);
}

.breadcrumb .breadcrumb-item::before {
  color: var(--pacbiz-muted);
}

.breadcrumb .active {
  color: var(--pacbiz-heading);
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: var(--pacbiz-primary);
}

.nav-tabs-bordered .nav-link.active {
  background-color: var(--pacbiz-card);
  color: var(--pacbiz-primary);
  border-bottom: 2px solid var(--pacbiz-primary);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: var(--pacbiz-heading);
  font-family: "Inter", "Nunito", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0 10px 25px rgba(47, 127, 127, 0.08);
  background: linear-gradient(90deg, rgba(243, 247, 246, 0.98) 0%, rgba(227, 242, 239, 0.9) 100%);
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: var(--pacbiz-primary);
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: #eef8f7;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: var(--pacbiz-heading);
  border: 1px solid rgba(47, 127, 127, 0.22);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #012970;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #012970;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #012970;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .nav-profile .badge {
  margin-left: 0.45rem;
}

.header-nav .nav-profile .auth-role-badge {
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.38rem 0.48rem;
}

.header-nav .nav-profile .badge.bg-dark {
  background: #5c6c75 !important;
  color: #f7fbfb !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
  display: none;
}

.header-nav .badge-number:not(.d-none) {
  display: inline-flex;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
  max-height: 60vh;
  overflow-y: auto;
  width: 320px;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.header-nav .notifications .notification-item p {
  font-size: 12px;
  margin-bottom: 2px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .notifications .notification-item.loading {
  opacity: 0.65;
}

.header-nav .notifications .notification-item.loading h4,
.header-nav .notifications .notification-item.loading p {
  position: relative;
  overflow: hidden;
  color: transparent;
}

.header-nav .notifications .notification-item.loading h4::after,
.header-nav .notifications .notification-item.loading p::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(91, 209, 215, 0.1), rgba(91, 209, 215, 0.35), rgba(91, 209, 215, 0.1));
  animation: notifShimmer 1.2s ease-in-out infinite;
}

@keyframes notifShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: #eef8f7;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #eef8f7;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #4154f1;
  transition: 0.3;
  background: #f6f9ff;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #4154f1;
}

.sidebar-nav .nav-link.collapsed {
  color: #012970;
  background: #f4f9f8;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: #4154f1;
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
  color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #012970;
  transition: 0.3;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
  background-color: #4154f1;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #4154f1;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Searchable selection dropdown */
.header .search-bar,
.header-nav .search-bar-toggle {
  display: none !important;
}

.search-select {
  position: relative;
}

.search-select .search-select-input {
  position: relative;
}

.search-select .search-select-input input {
  padding-right: 2.25rem;
}

.search-select.search-select-empty-state .search-select-input input {
  background: rgba(255, 193, 7, 0.09);
  border-color: rgba(255, 193, 7, 0.55);
  color: #8b6200;
  font-weight: 600;
}

.search-select .search-select-input .dropdown-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #3a5b67;
  pointer-events: none;
}

.search-select .search-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #f4f9f8;
  border: 1px solid #d7e5f1;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(14, 54, 77, 0.12);
  margin-top: 0.3rem;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.35rem 0;
  display: none;
  z-index: 1055;
}

.search-select.open .search-select-menu {
  display: block;
}

.search-select .search-select-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  color: #012970;
  cursor: pointer;
}

.search-select .search-select-item:hover,
.search-select .search-select-item.is-active {
  background: rgba(91, 209, 215, 0.16);
  color: #012970;
}

.search-select .search-select-item.is-empty {
  color: #9a6a00;
  font-style: normal;
  font-weight: 700;
  background: rgba(255, 193, 7, 0.12);
  border-left: 3px solid rgba(255, 193, 7, 0.7);
}

.asset-unassigned-badge {
  background: rgba(255, 193, 7, 0.18);
  color: #9a6a00;
  border: 1px solid rgba(255, 193, 7, 0.45);
  font-weight: 700;
}

.search-select .search-select-menu::-webkit-scrollbar {
  width: 8px;
}

.search-select .search-select-menu::-webkit-scrollbar-thumb {
  background: rgba(1, 41, 112, 0.2);
  border-radius: 6px;
}

/* Pacbiz confirmation modal */
#pacbizConfirmModal .modal-content {
  border: 1px solid rgba(91, 209, 215, 0.35);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(17, 73, 99, 0.18);
  overflow: hidden;
}

#pacbizConfirmModal .pacbiz-confirm-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

#pacbizConfirmModal .pacbiz-confirm-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 127, 127, 0.14);
  color: #1f6d6d;
  font-size: 1.05rem;
  flex-shrink: 0;
}

#pacbizConfirmModal .pacbiz-confirm-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#pacbizConfirmModal .pacbiz-confirm-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4d6f79;
  margin-bottom: 0.15rem;
}

#pacbizConfirmModal .modal-header {
  background: linear-gradient(90deg, rgba(91, 209, 215, 0.12) 0%, rgba(158, 235, 71, 0.12) 100%);
  border-bottom: 1px solid rgba(91, 209, 215, 0.24);
}

#pacbizConfirmModal .modal-title {
  color: #012970;
  font-weight: 700;
}

#pacbizConfirmModal .modal-body {
  color: #2f4a56;
  font-size: 0.98rem;
}

#pacbizConfirmModal .pacbiz-confirm-message {
  line-height: 1.6;
}

#pacbizConfirmModal .modal-footer {
  border-top: 1px solid rgba(91, 209, 215, 0.18);
}

#pacbizConfirmModal.is-danger .pacbiz-confirm-icon {
  background: rgba(220, 53, 69, 0.12);
  color: #b42333;
}

#pacbizConfirmModal.is-danger .pacbiz-confirm-eyebrow {
  color: #a12d39;
}

#pacbizConfirmModal.is-success .pacbiz-confirm-icon {
  background: rgba(25, 135, 84, 0.12);
  color: #1d7c54;
}

#pacbizConfirmModal.is-success .pacbiz-confirm-eyebrow {
  color: #237453;
}

#pacbizConfirmModal.is-info .pacbiz-confirm-icon {
  background: rgba(13, 202, 240, 0.14);
  color: #0a6d88;
}

/* System alerts */
.alert {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 24px rgba(15, 47, 53, 0.06);
}

.alert.alert-success {
  background: linear-gradient(180deg, rgba(209, 231, 221, 0.95), rgba(231, 247, 239, 0.96));
  border-color: rgba(25, 135, 84, 0.18);
  color: #154b32;
}

.alert.alert-danger {
  background: linear-gradient(180deg, rgba(248, 215, 218, 0.96), rgba(252, 233, 236, 0.98));
  border-color: rgba(220, 53, 69, 0.2);
  color: #7e1f29;
}

.alert.alert-warning {
  background: linear-gradient(180deg, rgba(255, 243, 205, 0.96), rgba(255, 248, 224, 0.98));
  border-color: rgba(255, 193, 7, 0.22);
  color: #725204;
}

.alert.alert-info,
.alert.alert-secondary {
  background: linear-gradient(180deg, rgba(207, 244, 252, 0.94), rgba(231, 249, 252, 0.98));
  border-color: rgba(13, 202, 240, 0.18);
  color: #24505a;
}

.pacbiz-notify-host {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.pacbiz-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(47, 127, 127, 0.16);
  background: rgba(255, 255, 255, 0.98);
  color: #183032;
  box-shadow: 0 18px 36px rgba(15, 47, 53, 0.16);
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.pacbiz-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pacbiz-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.pacbiz-toast-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(47, 127, 127, 0.12);
  color: #1f6d6d;
}

.pacbiz-toast-copy {
  min-width: 0;
}

.pacbiz-toast-title {
  display: block;
  margin-bottom: 0.15rem;
  color: #17363a;
  font-size: 0.94rem;
}

.pacbiz-toast-message {
  color: #446165;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.pacbiz-toast-close {
  border: 0;
  background: transparent;
  color: #6a8387;
  padding: 0.1rem;
  line-height: 1;
}

.pacbiz-toast-close:hover,
.pacbiz-toast-close:focus {
  color: #1f3638;
}

.pacbiz-toast.is-success {
  border-color: rgba(25, 135, 84, 0.22);
  background: linear-gradient(180deg, rgba(240, 251, 245, 0.98), rgba(230, 247, 237, 0.98));
}

.pacbiz-toast.is-success .pacbiz-toast-icon {
  background: rgba(25, 135, 84, 0.12);
  color: #1d7c54;
}

.pacbiz-toast.is-danger {
  border-color: rgba(220, 53, 69, 0.22);
  background: linear-gradient(180deg, rgba(254, 244, 245, 0.98), rgba(250, 232, 235, 0.98));
}

.pacbiz-toast.is-danger .pacbiz-toast-icon {
  background: rgba(220, 53, 69, 0.12);
  color: #b42333;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #4154f1;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #f4f9f8;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #012970;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #4154f1;
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #f4f9f8;
  border-radius: 0.25rem;
  text-align: center;
  color: #012970;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #012970;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #012970;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #4154f1;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #4154f1;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #012970;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #f4f9f8;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #4154f1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #4154f1;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #012970;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}

/*--------------------------------------------------------------
# Pacbiz Theme Overrides
--------------------------------------------------------------*/
:root {
  --pacbiz-cyan: #5bd1d7;
  --pacbiz-lime: #9eeb47;
  --pacbiz-ink: #0f2f35;
  --pacbiz-bg: #f3fbfb;
}

body {
  background: var(--bg);
  color: var(--text);
}

a {
  color: #1b9ca5;
}

a:hover {
  color: #13858d;
}

.header {
  background: linear-gradient(90deg, #eef8f8 0%, #e6f9f9 45%, #edfce5 100%);
  border-bottom: 2px solid rgba(91, 209, 215, 0.35);
  box-shadow: 0 4px 20px rgba(15, 47, 53, 0.08);
}

.logo span {
  color: var(--pacbiz-heading);
}

.sidebar {
  background: linear-gradient(180deg, #eef8f7 0%, #e5f7f4 100%);
  border-right: 1px solid rgba(91, 209, 215, 0.2);
}

.sidebar-nav .nav-link {
  color: #2c4a5a;
  border-radius: 10px;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #0f2f35;
  background: linear-gradient(90deg, rgba(91, 209, 215, 0.18) 0%, rgba(158, 235, 71, 0.18) 100%);
}

.sidebar-nav .nav-link:not(.collapsed) {
  color: #0f2f35;
  background: linear-gradient(90deg, rgba(91, 209, 215, 0.2) 0%, rgba(158, 235, 71, 0.2) 100%);
}

.card {
  border: 1px solid rgba(91, 209, 215, 0.2);
  border-top: 3px solid var(--pacbiz-cyan);
  box-shadow: 0 8px 22px rgba(15, 47, 53, 0.06);
}

.card-title {
  color: var(--pacbiz-ink);
}

.btn-primary,
.bg-primary {
  background: linear-gradient(90deg, #3fbec5 0%, #67d8dc 100%) !important;
  border-color: #3fbec5 !important;
}

.btn-success,
.bg-success {
  background: linear-gradient(90deg, #8fda40 0%, #b0f165 100%) !important;
  border-color: #8fda40 !important;
}

.btn-outline-primary {
  color: #1b9ca5;
  border-color: #1b9ca5;
}

.btn-outline-primary:hover {
  background: #1b9ca5;
  border-color: #1b9ca5;
}

.btn-outline-success {
  color: #6db62e;
  border-color: #6db62e;
}

.btn-outline-success:hover {
  background: #6db62e;
  border-color: #6db62e;
}

.table thead th {
  background: #e9fdfd;
  color: var(--pacbiz-ink);
  border-bottom: 1px solid rgba(91, 209, 215, 0.35);
}

.table-hover tbody tr:hover {
  background: rgba(91, 209, 215, 0.08);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pacbiz-cyan);
  box-shadow: 0 0 0 0.2rem rgba(91, 209, 215, 0.2);
}

.badge.bg-primary {
  background: #39b8bf !important;
}

.badge.bg-success {
  background: #8fdc3d !important;
}

.dashboard .kpi-card {
  --kpi-color: #5bd1d7;
  --kpi-icon-color: #0a5e63;
  border-top-width: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dashboard .kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 47, 53, 0.12);
}

.dashboard .kpi-clickable {
  cursor: pointer;
}

.dashboard .kpi-clickable:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.22rem rgba(91, 209, 215, 0.24), 0 12px 28px rgba(15, 47, 53, 0.12);
}

.dashboard .kpi-card::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.35;
}

.dashboard .kpi-card .card-title {
  margin-bottom: 8px;
}

.dashboard .kpi-card p {
  color: #4a6772;
}

.dashboard .kpi-summary-wrap {
  margin-top: 10px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.dashboard .kpi-summary-note {
  color: #476772;
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 0;
}

.dashboard .kpi-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.dashboard .kpi-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1;
  color: #123846;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 47, 53, 0.08);
  box-shadow: inset 0 1px 0 rgba(244, 249, 248, 0.5);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.dashboard .kpi-summary-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard .kpi-summary-chip strong {
  font-weight: 700;
  color: #012970;
  flex-shrink: 0;
}

.dashboard .kpi-summary-chip.is-empty,
.dashboard .kpi-summary-chip.kpi-summary-more {
  color: #5c7884;
}

.dashboard .kpi-summary-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 600;
  color: #32556a;
  opacity: 0.88;
  transition: color 0.18s ease, transform 0.18s ease;
}

.dashboard .kpi-clickable:hover .kpi-summary-link,
.dashboard .kpi-clickable:focus-visible .kpi-summary-link {
  color: #012970;
  transform: translateX(1px);
}

#dashboardKpiModal .modal-content {
  border: 1px solid rgba(91, 209, 215, 0.35);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(17, 73, 99, 0.18);
  overflow: hidden;
}

#dashboardKpiModal .modal-header {
  background: linear-gradient(90deg, rgba(91, 209, 215, 0.12) 0%, rgba(158, 235, 71, 0.12) 100%);
  border-bottom: 1px solid rgba(91, 209, 215, 0.24);
  align-items: start;
}

#dashboardKpiModal .modal-title {
  color: #012970;
  font-weight: 700;
}

#dashboardKpiModal .modal-body {
  padding: 1.15rem 1.15rem 1.35rem;
}

.kpi-breakdown-subtitle {
  color: #53717d;
  font-size: 0.92rem;
}

.kpi-breakdown-section+.kpi-breakdown-section {
  margin-top: 1rem;
}

.kpi-breakdown-section-title {
  margin: 0 0 0.8rem;
  color: #012970;
  font-size: 0.94rem;
  font-weight: 700;
}

.kpi-breakdown-item {
  height: 100%;
  border: 1px solid rgba(91, 209, 215, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 249, 248, 0.96) 0%, rgba(225, 244, 246, 0.94) 100%);
  padding: 0.95rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.kpi-breakdown-label {
  display: block;
  color: #3c5f6b;
  font-size: 0.84rem;
  margin-bottom: 0.25rem;
}

.kpi-breakdown-value {
  display: block;
  color: #012970;
  font-size: 1.55rem;
  line-height: 1.05;
}

.kpi-breakdown-meta {
  display: block;
  margin-top: 0.42rem;
  color: #5e7d89;
  font-size: 0.76rem;
}

.kpi-breakdown-empty {
  border: 1px dashed rgba(91, 209, 215, 0.35);
  border-radius: 14px;
  padding: 1rem;
  color: #5e7d89;
  text-align: center;
  background: rgba(236, 248, 250, 0.62);
}

.dashboard .kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(15, 47, 53, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 4px 12px rgba(10, 24, 32, 0.1);
}

.dashboard .kpi-cyan {
  --kpi-color: #5bd1d7;
  --kpi-icon-color: #0a5e63;
  border-top-color: #5bd1d7;
  background: linear-gradient(135deg, #eef9fa 0%, #e3f8fa 45%, #d5f5f9 100%);
}

.dashboard .kpi-cyan .kpi-icon {
  color: #0a5e63;
  background: rgba(91, 209, 215, 0.36);
}

.dashboard .kpi-cyan::after {
  background: radial-gradient(circle, rgba(91, 209, 215, 0.55) 0%, rgba(91, 209, 215, 0) 70%);
}

.dashboard .kpi-lime {
  --kpi-color: #9eeb47;
  --kpi-icon-color: #3f6f10;
  border-top-color: #9eeb47;
  background: linear-gradient(135deg, #f3fde5 0%, #f0fddb 45%, #e7fcc8 100%);
}

.dashboard .kpi-lime .kpi-icon {
  color: #3f6f10;
  background: rgba(158, 235, 71, 0.4);
}

.dashboard .kpi-lime::after {
  background: radial-gradient(circle, rgba(158, 235, 71, 0.5) 0%, rgba(158, 235, 71, 0) 70%);
}

.dashboard .kpi-ocean {
  --kpi-color: #3ca0d6;
  --kpi-icon-color: #124e70;
  border-top-color: #3ca0d6;
  background: linear-gradient(135deg, #e9f5ff 0%, #e3f3ff 45%, #d7edfc 100%);
}

.dashboard .kpi-ocean .kpi-icon {
  color: #124e70;
  background: rgba(60, 160, 214, 0.34);
}

.dashboard .kpi-ocean::after {
  background: radial-gradient(circle, rgba(60, 160, 214, 0.5) 0%, rgba(60, 160, 214, 0) 70%);
}

.dashboard .kpi-amber {
  --kpi-color: #ffb74d;
  --kpi-icon-color: #835108;
  border-top-color: #ffb74d;
  background: linear-gradient(135deg, #fef6e5 0%, #fef4e0 45%, #fee8c5 100%);
}

.dashboard .kpi-amber .kpi-icon {
  color: #835108;
  background: rgba(255, 183, 77, 0.4);
}

.dashboard .kpi-amber::after {
  background: radial-gradient(circle, rgba(255, 183, 77, 0.48) 0%, rgba(255, 183, 77, 0) 70%);
}

.dashboard .kpi-red {
  --kpi-color: #ef5350;
  --kpi-icon-color: #7f1f1f;
  border-top-color: #ef5350;
  background: linear-gradient(135deg, #feeded 0%, #feebeb 45%, #ffd8d9 100%);
}

.dashboard .kpi-red .kpi-icon {
  color: #7f1f1f;
  background: rgba(239, 83, 80, 0.35);
}

.dashboard .kpi-red::after {
  background: radial-gradient(circle, rgba(239, 83, 80, 0.42) 0%, rgba(239, 83, 80, 0) 70%);
}

.dashboard .kpi-violet {
  --kpi-color: #7e57c2;
  --kpi-icon-color: #432a6f;
  border-top-color: #7e57c2;
  background: linear-gradient(135deg, #f2ecff 0%, #f0eaff 45%, #e7d8ff 100%);
}

.dashboard .kpi-violet .kpi-icon {
  color: #432a6f;
  background: rgba(126, 87, 194, 0.34);
}

.dashboard .kpi-violet::after {
  background: radial-gradient(circle, rgba(126, 87, 194, 0.45) 0%, rgba(126, 87, 194, 0) 70%);
}

.dashboard .kpi-slate {
  --kpi-color: #546e7a;
  --kpi-icon-color: #1e2e35;
  border-top-color: #546e7a;
  background: linear-gradient(135deg, #edf2f4 0%, #eaf0f3 45%, #d9e5ea 100%);
}

.dashboard .kpi-slate .kpi-icon {
  color: #1e2e35;
  background: rgba(84, 110, 122, 0.34);
}

.dashboard .kpi-slate::after {
  background: radial-gradient(circle, rgba(84, 110, 122, 0.42) 0%, rgba(84, 110, 122, 0) 70%);
}

@supports (background: color-mix(in srgb, #000, transparent 50%)) {
  .dashboard .kpi-card {
    border-top-color: color-mix(in srgb, var(--kpi-color), transparent 94%);
    background: color-mix(in srgb, var(--kpi-color), transparent 94%);
  }

  .dashboard .kpi-card::after {
    background: radial-gradient(circle,
        color-mix(in srgb, var(--kpi-color), transparent 45%) 0%,
        color-mix(in srgb, var(--kpi-color), transparent 100%) 70%);
  }

  .dashboard .kpi-icon {
    color: var(--kpi-icon-color);
    background: color-mix(in srgb, var(--kpi-color), transparent 62%);
  }
}

.assets-overview .overview-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15, 47, 53, 0.12);
}

.assets-overview .overview-stat:last-of-type {
  border-bottom: 0;
}

.assets-overview .overview-stat span {
  color: #4a6772;
  font-size: 0.92rem;
}

.assets-overview .overview-stat strong {
  color: #0f2f35;
  font-size: 1.1rem;
}

/* Hide profile avatar but keep profile dropdown text/menu */
.header-nav .nav-profile img {
  display: none !important;
}

/* Dark mode */
:root[data-theme="dark"] {
  background: linear-gradient(180deg, #102028 0%, #14262f 10%);
  color: #e4ebf2;
}

:root[data-theme="dark"] a {
  color: #7ce5ea;
}

:root[data-theme="dark"] a:hover {
  color: #9eeb47;
}

:root[data-theme="dark"] .header {
  background: linear-gradient(90deg, #18303a 0%, #152a33 100%);
  border-bottom-color: rgba(91, 209, 215, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .logo span,
:root[data-theme="dark"] .pagetitle h1,
:root[data-theme="dark"] .card-title {
  color: #e4ebf2;
}

:root[data-theme="dark"] .pagetitle .page-scope-label {
  color: #cfe3ea;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] .dashboard .info-card h6 {
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] .search-bar .search-form input {
  background: #1a343f;
  color: #edf7fa;
  border-color: #37616f;
}

:root[data-theme="dark"] .search-bar .search-form button {
  background: #1a343f;
  color: #b8eff2;
}

:root[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #18303a 0%, #142a33 100%);
  border-right-color: #345968;
}

:root[data-theme="dark"] .sidebar-nav .nav-link,
:root[data-theme="dark"] .sidebar-nav .nav-content a {
  color: #e4ebf2;
  background: transparent !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-link.collapsed {
  background: transparent !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-link i,
:root[data-theme="dark"] .sidebar-nav .nav-content a i {
  color: #b8cdd7;
}

:root[data-theme="dark"] .sidebar-nav .nav-link:hover,
:root[data-theme="dark"] .sidebar-nav .nav-content a:hover,
:root[data-theme="dark"] .sidebar-nav .nav-content a.active,
:root[data-theme="dark"] .sidebar-nav .nav-link:not(.collapsed) {
  color: #e4ebf2;
  background: linear-gradient(90deg, rgba(91, 209, 215, 0.14) 0%, rgba(158, 235, 71, 0.13) 100%) !important;
}

:root[data-theme="dark"] .card {
  background: #1a323c;
  border-color: #37606e;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .card-title span,
:root[data-theme="dark"] .small,
:root[data-theme="dark"] .text-muted {
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] .table {
  color: #e4ebf2;
}

:root[data-theme="dark"] .table thead th {
  background: #214552;
  color: #e4ebf2;
  border-bottom-color: #437182;
}

:root[data-theme="dark"] .table-hover tbody tr:hover {
  background: rgba(91, 209, 215, 0.12);
}

:root[data-theme="dark"] .table> :not(caption)>*>* {
  border-bottom-color: #3a6270;
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] textarea {
  background: #1a343f;
  color: #e4ebf2;
  border-color: #3a6675;
}

:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus,
:root[data-theme="dark"] textarea:focus {
  background: #1e3a46;
  color: #e4ebf2;
}

:root[data-theme="dark"] .search-select .search-select-input .dropdown-icon {
  color: #c7d7df;
}

:root[data-theme="dark"] .search-select.search-select-empty-state .search-select-input input {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.45);
  color: #ffd97a;
}

:root[data-theme="dark"] .search-select .search-select-menu {
  background: #1a323c;
  border-color: #3a6270;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .search-select .search-select-item {
  color: #e4ebf2;
}

:root[data-theme="dark"] .search-select .search-select-item:hover,
:root[data-theme="dark"] .search-select .search-select-item.is-active {
  background: rgba(91, 209, 215, 0.18);
  color: #e4ebf2;
}

:root[data-theme="dark"] .search-select .search-select-item.is-empty {
  color: #ffd97a;
  background: rgba(255, 193, 7, 0.12);
  border-left: 3px solid rgba(255, 193, 7, 0.65);
}

:root[data-theme="dark"] .asset-unassigned-badge {
  background: rgba(255, 193, 7, 0.16);
  color: #ffd97a;
  border-color: rgba(255, 193, 7, 0.4);
}

:root[data-theme="dark"] #pacbizConfirmModal .modal-content {
  background: #1a323c;
  border-color: #3a6270;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] #pacbizConfirmModal .modal-header {
  background: linear-gradient(90deg, rgba(91, 209, 215, 0.12) 0%, rgba(158, 235, 71, 0.1) 100%);
  border-bottom-color: #355c69;
}

:root[data-theme="dark"] #pacbizConfirmModal .pacbiz-confirm-icon {
  background: rgba(91, 209, 215, 0.16);
  color: #b8eeee;
}

:root[data-theme="dark"] #pacbizConfirmModal .pacbiz-confirm-eyebrow {
  color: #9ac3cf;
}

:root[data-theme="dark"] #pacbizConfirmModal .modal-title,
:root[data-theme="dark"] #pacbizConfirmModal .modal-body,
:root[data-theme="dark"] #pacbizConfirmModal .btn-close {
  color: #e4ebf2;
}

:root[data-theme="dark"] #pacbizConfirmModal .btn-close {
  filter: invert(1) brightness(1.2);
}

:root[data-theme="dark"] #pacbizConfirmModal .modal-footer {
  border-top-color: #355c69;
}

:root[data-theme="dark"] #pacbizConfirmModal.is-danger .pacbiz-confirm-icon {
  background: rgba(255, 107, 129, 0.14);
  color: #ff9bac;
}

:root[data-theme="dark"] #pacbizConfirmModal.is-danger .pacbiz-confirm-eyebrow {
  color: #ffb0bc;
}

:root[data-theme="dark"] #pacbizConfirmModal.is-success .pacbiz-confirm-icon {
  background: rgba(76, 175, 80, 0.16);
  color: #9ee2a1;
}

:root[data-theme="dark"] #pacbizConfirmModal.is-success .pacbiz-confirm-eyebrow {
  color: #a9dbaf;
}

:root[data-theme="dark"] #pacbizConfirmModal.is-info .pacbiz-confirm-icon {
  background: rgba(91, 209, 215, 0.16);
  color: #9fe8ec;
}

:root[data-theme="dark"] .alert {
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .alert.alert-success {
  background: linear-gradient(180deg, rgba(26, 73, 48, 0.96), rgba(22, 61, 41, 0.98));
  border-color: rgba(76, 175, 80, 0.26);
  color: #d0f0d3;
}

:root[data-theme="dark"] .alert.alert-danger {
  background: linear-gradient(180deg, rgba(97, 32, 43, 0.96), rgba(76, 26, 35, 0.98));
  border-color: rgba(255, 107, 129, 0.28);
  color: #ffd3da;
}

:root[data-theme="dark"] .alert.alert-warning {
  background: linear-gradient(180deg, rgba(92, 72, 18, 0.96), rgba(76, 59, 14, 0.98));
  border-color: rgba(240, 185, 11, 0.3);
  color: #ffe5a1;
}

:root[data-theme="dark"] .alert.alert-info,
:root[data-theme="dark"] .alert.alert-secondary {
  background: linear-gradient(180deg, rgba(25, 63, 74, 0.96), rgba(20, 52, 61, 0.98));
  border-color: rgba(91, 209, 215, 0.24);
  color: #d5f1f2;
}

:root[data-theme="dark"] .pacbiz-toast {
  background: rgba(23, 39, 44, 0.96);
  border-color: rgba(91, 209, 215, 0.22);
  color: #e4f0ef;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .pacbiz-toast-icon {
  background: rgba(91, 209, 215, 0.14);
  color: #a7edf0;
}

:root[data-theme="dark"] .pacbiz-toast-title {
  color: #eef7f6;
}

:root[data-theme="dark"] .pacbiz-toast-message {
  color: #b8caca;
}

:root[data-theme="dark"] .pacbiz-toast-close {
  color: #a8bcbc;
}

:root[data-theme="dark"] .pacbiz-toast-close:hover,
:root[data-theme="dark"] .pacbiz-toast-close:focus {
  color: #eff8f7;
}

:root[data-theme="dark"] .pacbiz-toast.is-success {
  background: linear-gradient(180deg, rgba(24, 67, 45, 0.96), rgba(20, 55, 37, 0.98));
  border-color: rgba(76, 175, 80, 0.28);
}

:root[data-theme="dark"] .pacbiz-toast.is-success .pacbiz-toast-icon {
  background: rgba(76, 175, 80, 0.16);
  color: #a8e3ab;
}

:root[data-theme="dark"] .pacbiz-toast.is-danger {
  background: linear-gradient(180deg, rgba(91, 31, 41, 0.96), rgba(73, 25, 33, 0.98));
  border-color: rgba(255, 107, 129, 0.3);
}

:root[data-theme="dark"] .pacbiz-toast.is-danger .pacbiz-toast-icon {
  background: rgba(255, 107, 129, 0.16);
  color: #ffb4c1;
}

:root[data-theme="dark"] .dropdown-menu {
  background: #1b3742;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .dropdown-menu .dropdown-item,
:root[data-theme="dark"] .dropdown-menu .dropdown-header,
:root[data-theme="dark"] .dropdown-menu .dropdown-footer a {
  color: #e4ebf2;
}

:root[data-theme="dark"] .dropdown-menu .dropdown-item:hover {
  background: #28505f;
}

:root[data-theme="dark"] .footer {
  border-top-color: #26444e;
}

:root[data-theme="dark"] .footer .copyright,
:root[data-theme="dark"] .footer .credits {
  color: #e4ebf2;
}

:root[data-theme="dark"] .breadcrumb,
:root[data-theme="dark"] .breadcrumb a,
:root[data-theme="dark"] .breadcrumb .active {
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] .kpi-card p,
:root[data-theme="dark"] .overview-stat span {
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] .dashboard .kpi-summary-chip {
  color: #dbeaf2;
  background: rgba(9, 20, 26, 0.34);
  border-color: rgba(228, 235, 242, 0.12);
}

:root[data-theme="dark"] .dashboard .kpi-summary-chip strong {
  color: #f5fbff;
}

:root[data-theme="dark"] .dashboard .kpi-summary-chip.is-empty,
:root[data-theme="dark"] .dashboard .kpi-summary-chip.kpi-summary-more,
:root[data-theme="dark"] .dashboard .kpi-summary-link {
  color: #9fc2d0;
}

:root[data-theme="dark"] .dashboard .kpi-summary-note {
  color: #c7dce6;
}

:root[data-theme="dark"] .dashboard .kpi-clickable:hover .kpi-summary-link,
:root[data-theme="dark"] .dashboard .kpi-clickable:focus-visible .kpi-summary-link {
  color: #f2fbff;
}

:root[data-theme="dark"] #dashboardKpiModal .modal-content {
  background: #1a323c;
  border-color: #3a6270;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] #dashboardKpiModal .modal-header {
  background: linear-gradient(90deg, rgba(91, 209, 215, 0.12) 0%, rgba(158, 235, 71, 0.1) 100%);
  border-bottom-color: #355c69;
}

:root[data-theme="dark"] #dashboardKpiModal .modal-title,
:root[data-theme="dark"] #dashboardKpiModal .btn-close,
:root[data-theme="dark"] .kpi-breakdown-section-title,
:root[data-theme="dark"] .kpi-breakdown-value {
  color: #e4ebf2;
}

:root[data-theme="dark"] #dashboardKpiModal .btn-close {
  filter: invert(1) brightness(1.2);
}

:root[data-theme="dark"] .kpi-breakdown-subtitle,
:root[data-theme="dark"] .kpi-breakdown-label,
:root[data-theme="dark"] .kpi-breakdown-meta,
:root[data-theme="dark"] .kpi-breakdown-empty {
  color: #a9c2ce;
}

:root[data-theme="dark"] .kpi-breakdown-item {
  background: linear-gradient(180deg, rgba(20, 38, 46, 0.96) 0%, rgba(17, 31, 38, 0.98) 100%);
  border-color: rgba(91, 209, 215, 0.2);
}

:root[data-theme="dark"] .kpi-breakdown-empty {
  background: rgba(15, 27, 34, 0.7);
  border-color: rgba(91, 209, 215, 0.24);
}

:root[data-theme="dark"] .dashboard .kpi-cyan {
  background: color-mix(in srgb, var(--kpi-color), #0f1b22 90%);
}

:root[data-theme="dark"] .dashboard .kpi-lime {
  background: color-mix(in srgb, var(--kpi-color), #0f1b22 90%);
}

:root[data-theme="dark"] .dashboard .kpi-ocean {
  background: color-mix(in srgb, var(--kpi-color), #0f1b22 90%);
}

:root[data-theme="dark"] .dashboard .kpi-amber {
  background: color-mix(in srgb, var(--kpi-color), #0f1b22 90%);
}

:root[data-theme="dark"] .dashboard .kpi-red {
  background: color-mix(in srgb, var(--kpi-color), #0f1b22 90%);
}

:root[data-theme="dark"] .dashboard .kpi-violet {
  background: color-mix(in srgb, var(--kpi-color), #0f1b22 90%);
}

:root[data-theme="dark"] .dashboard .kpi-slate {
  background: color-mix(in srgb, var(--kpi-color), #0f1b22 90%);
}

:root[data-theme="dark"] .dashboard .kpi-icon {
  color: #f4fbff !important;
  border-color: rgba(228, 235, 242, 0.32);
  background: rgba(10, 18, 24, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(228, 235, 242, 0.2), 0 5px 14px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .badge.bg-secondary {
  background: #6f8892 !important;
}

:root[data-theme="dark"] .badge.bg-info {
  background: #41b7d2 !important;
  color: #08202a !important;
}

:root[data-theme="dark"] .header-nav .nav-profile .badge.bg-dark {
  background: #8ea2ad !important;
  color: #102022 !important;
  border-color: rgba(228, 240, 239, 0.2);
}

:root[data-theme="dark"] .status-rules-editor {
  background: #182c35;
  border-color: #2c4b57;
}

:root[data-theme="dark"] .status-rule-row {
  background: #152831;
  border-color: #2b4c5a;
}

:root[data-theme="dark"] .status-option {
  background: rgba(91, 209, 215, 0.2);
  color: #e4ebf2;
  border-color: rgba(91, 209, 215, 0.45);
}

/* Final dark-mode readability polish */
:root[data-theme="dark"] label,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .col-form-label,
:root[data-theme="dark"] .form-check-label {
  color: #dce9e8 !important;
}

:root[data-theme="dark"] .form-text,
:root[data-theme="dark"] small.form-text,
:root[data-theme="dark"] .text-muted {
  color: #9fb3b3 !important;
}

:root[data-theme="dark"] #authRoleBadge,
:root[data-theme="dark"] .header-nav .nav-profile .badge.bg-dark {
  background: #a9b9c1 !important;
  color: #132124 !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.header-nav .notifications .notification-link {
  display: flex;
  align-items: flex-start;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.header-nav .notifications .notification-copy {
  flex: 1;
  min-width: 0;
}

.header-nav .notifications .notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.3rem;
  font-size: 11px;
}

.header-nav .notifications .notification-category,
.header-nav .notifications .notification-severity,
.header-nav .notifications .notification-time {
  display: inline-flex;
  align-items: center;
}

.header-nav .notifications .notification-category {
  color: var(--pacbiz-primary);
  font-weight: 600;
}

.header-nav .notifications .notification-severity {
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: rgba(47, 127, 127, 0.08);
  color: #456565;
  border: 1px solid rgba(47, 127, 127, 0.16);
}

.header-nav .notifications .notification-severity.severity-danger {
  background: rgba(226, 93, 75, 0.1);
  color: #b84536;
  border-color: rgba(226, 93, 75, 0.16);
}

.header-nav .notifications .notification-severity.severity-warning {
  background: rgba(255, 193, 7, 0.12);
  color: #946000;
  border-color: rgba(255, 193, 7, 0.22);
}

.header-nav .notifications .notification-severity.severity-info {
  background: rgba(11, 143, 178, 0.1);
  color: #0b6f8a;
  border-color: rgba(11, 143, 178, 0.18);
}

.header-nav .notifications .notification-severity.severity-success {
  background: rgba(76, 175, 80, 0.1);
  color: #2f7b32;
  border-color: rgba(76, 175, 80, 0.18);
}

.header-nav .notifications .notification-time {
  color: var(--pacbiz-muted);
}

.header-nav .notifications .notification-empty {
  align-items: center;
}

:root[data-theme="dark"] .header-nav .notifications .notification-item:hover {
  background: rgba(91, 209, 215, 0.12);
}

:root[data-theme="dark"] .header-nav .notifications .notification-item h4 {
  color: #edf5f4;
}

:root[data-theme="dark"] .header-nav .notifications .notification-item p,
:root[data-theme="dark"] .header-nav .notifications .notification-time {
  color: #a9bdbd;
}

:root[data-theme="dark"] .header-nav .notifications .notification-category {
  color: #a9ecef;
}

:root[data-theme="dark"] .header-nav .notifications .notification-severity {
  background: rgba(255, 255, 255, 0.06);
  color: #e4f0ef;
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .header-nav .notifications .notification-severity.severity-danger {
  background: rgba(226, 93, 75, 0.16);
  color: #ffc4bc;
  border-color: rgba(226, 93, 75, 0.24);
}

:root[data-theme="dark"] .header-nav .notifications .notification-severity.severity-warning {
  background: rgba(255, 193, 7, 0.16);
  color: #ffe399;
  border-color: rgba(255, 193, 7, 0.24);
}

:root[data-theme="dark"] .header-nav .notifications .notification-severity.severity-info {
  background: rgba(11, 143, 178, 0.16);
  color: #acecff;
  border-color: rgba(11, 143, 178, 0.24);
}

:root[data-theme="dark"] .header-nav .notifications .notification-severity.severity-success {
  background: rgba(76, 175, 80, 0.16);
  color: #b9f0bd;
  border-color: rgba(76, 175, 80, 0.24);
}

/* Table surface polish (light + dark) */
.table,
.datatable-table {
  --bs-table-bg: transparent;
}

.table tbody tr,
.datatable-table tbody tr {
  background: rgba(255, 255, 255, 0.72);
}

.table tbody tr td,
.datatable-table tbody tr td {
  border-bottom: 1px solid rgba(15, 47, 53, 0.14);
}

.table-hover tbody tr:hover,
.datatable-table tbody tr:hover {
  background: rgba(91, 209, 215, 0.16);
}

:root[data-theme="dark"] .table,
:root[data-theme="dark"] .datatable-table {
  --bs-table-bg: transparent;
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] .table tbody tr,
:root[data-theme="dark"] .datatable-table tbody tr {
  background: rgba(24, 50, 60, 0.9);
}

:root[data-theme="dark"] .table tbody tr:nth-child(even),
:root[data-theme="dark"] .datatable-table tbody tr:nth-child(even) {
  background: rgba(28, 58, 70, 0.92);
}

:root[data-theme="dark"] .table tbody tr td,
:root[data-theme="dark"] .datatable-table tbody tr td {
  color: #e4ebf2 !important;
  border-bottom: 1px solid rgba(112, 154, 171, 0.36);
}

:root[data-theme="dark"] .table-hover tbody tr:hover,
:root[data-theme="dark"] .datatable-table tbody tr:hover {
  background: rgba(91, 209, 215, 0.18);
}

:root[data-theme="dark"] .table thead th,
:root[data-theme="dark"] .datatable-table thead th {
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] .header,
:root[data-theme="dark"] .header * {
  color: #e4ebf2;
}

:root[data-theme="dark"] .header .logo span,
:root[data-theme="dark"] .header .toggle-sidebar-btn,
:root[data-theme="dark"] .header .search-form i,
:root[data-theme="dark"] .header .search-form button,
:root[data-theme="dark"] .header-nav .nav-link,
:root[data-theme="dark"] .header-nav .nav-icon i {
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] .header .search-form input::placeholder {
  color: #c7d8df;
}

/* Force-bootstrap text colors in dark mode (fix #212529 bleed) */
:root[data-theme="dark"] .text-dark,
:root[data-theme="dark"] .text-body,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .col-form-label,
:root[data-theme="dark"] .form-check-label,
:root[data-theme="dark"] label,
:root[data-theme="dark"] legend,
:root[data-theme="dark"] .form-text {
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] option,
:root[data-theme="dark"] optgroup {
  color: #e4ebf2;
  background: #1a343f;
}

:root[data-theme="dark"] .form-control:disabled,
:root[data-theme="dark"] .form-select:disabled,
:root[data-theme="dark"] .form-control[readonly] {
  color: #d4e1e7 !important;
  background: #213b46 !important;
}

/* Extra dark-mode readability fixes */
:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .card-body p,
:root[data-theme="dark"] .card-body span:not(.badge),
:root[data-theme="dark"] .card-body li,
:root[data-theme="dark"] .card-body td,
:root[data-theme="dark"] .card-body th {
  color: #e4ebf2;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder,
:root[data-theme="dark"] .form-control::placeholder {
  color: #d6e2e8 !important;
  opacity: 1 !important;
}

:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="week"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.7);
  opacity: 1;
}

:root[data-theme="dark"] .apexcharts-canvas text,
:root[data-theme="dark"] .apexcharts-title-text,
:root[data-theme="dark"] .apexcharts-subtitle-text,
:root[data-theme="dark"] .apexcharts-xaxis-label,
:root[data-theme="dark"] .apexcharts-yaxis-label,
:root[data-theme="dark"] .apexcharts-datalabel,
:root[data-theme="dark"] .apexcharts-legend-text {
  fill: #e4ebf2 !important;
  color: #e4ebf2 !important;
}

:root[data-theme="dark"] .apexcharts-gridline,
:root[data-theme="dark"] .apexcharts-xaxis line,
:root[data-theme="dark"] .apexcharts-yaxis line {
  stroke: rgba(170, 199, 210, 0.32) !important;
}

:root[data-theme="dark"] .apexcharts-toolbar svg,
:root[data-theme="dark"] .apexcharts-menu-icon svg {
  fill: #e4ebf2 !important;
}

/* Dark mode select arrow visibility */
:root[data-theme="dark"] .form-select {
  color: #e4ebf2 !important;
  border-color: #3a6675;
  background-color: #1a343f;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e4ebf2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.2rem;
}

/* Global action button colors */
.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.row-actions .btn {
  min-width: 32px;
}

.btn.edit-btn,
.btn.btn-outline-primary.edit-btn,
.btn.edit-model-btn,
.btn.btn-outline-primary.edit-model-btn {
  color: #0b8fb2;
  border-color: #0b8fb2;
  background: rgba(11, 143, 178, 0.1);
}

.btn.delete-btn,
.btn.btn-outline-danger.delete-btn,
.btn.del-btn,
.btn.btn-outline-danger.del-btn,
.btn.delete-model-btn,
.btn.btn-outline-danger.delete-model-btn,
.btn.revoke-btn,
.btn.btn-outline-danger.revoke-btn {
  color: #e25d4b;
  border-color: #e25d4b;
  background: rgba(226, 93, 75, 0.1);
}

.btn.renew-btn,
.btn.btn-outline-success.renew-btn {
  color: #6fbf33;
  border-color: #6fbf33;
  background: rgba(111, 191, 51, 0.1);
}

.btn.restore-btn,
.btn.btn-outline-secondary.restore-btn,
.btn.restore-model-btn,
.btn.btn-outline-success.restore-model-btn,
.btn.complete-btn,
.btn.btn-outline-success.complete-btn,
.btn.print-btn,
.btn.btn-outline-dark.print-btn {
  color: #5bd1d7;
  border-color: #5bd1d7;
  background: rgba(91, 209, 215, 0.1);
}

:root[data-theme="dark"] .btn.edit-btn,
:root[data-theme="dark"] .btn.edit-model-btn,
:root[data-theme="dark"] .btn.delete-btn,
:root[data-theme="dark"] .btn.delete-model-btn,
:root[data-theme="dark"] .btn.renew-btn,
:root[data-theme="dark"] .btn.restore-btn,
:root[data-theme="dark"] .btn.restore-model-btn,
:root[data-theme="dark"] .btn.complete-btn,
:root[data-theme="dark"] .btn.revoke-btn,
:root[data-theme="dark"] .btn.print-btn {
  color: #e4ebf2;
}

:root[data-theme="dark"] .badge.bg-light.text-muted,
:root[data-theme="dark"] .badge.bg-light {
  background: rgba(117, 145, 157, 0.45) !important;
  color: #f4fbff !important;
  border: 1px solid rgba(176, 204, 215, 0.5);
}

/* Asset records dark-mode polish */
:root[data-theme="dark"] #scanResultPanel {
  background: rgba(38, 72, 84, 0.55);
  border: 1px solid rgba(111, 170, 191, 0.45);
  color: #e4ebf2;
}

:root[data-theme="dark"] .scan-result-panel {
  background: rgba(38, 72, 84, 0.55);
  border: 1px solid rgba(111, 170, 191, 0.45);
  color: #e4ebf2;
}

:root[data-theme="dark"] #barcodeLookupBtn,
:root[data-theme="dark"] #barcodeCameraBtn,
:root[data-theme="dark"] #dymoRefreshBtn,
:root[data-theme="dark"] #bulkDeleteBtn {
  color: #e4ebf2;
}

.table-scroll-limited {
  max-height: 65vh;
  overflow: auto;
}

.table-scroll-logs {
  max-height: 360px;
  overflow: auto;
}

@media (max-width: 992px) {
  .table-scroll-logs {
    max-height: 50vh;
  }
}

.dashboard .dash-chart-card .card-body {
  min-height: 390px;
  display: flex;
  flex-direction: column;
}

.dashboard .dash-chart-slot {
  min-height: 320px;
  flex: 1;
}

.dashboard .dash-table-card .card-body {
  min-height: 390px;
  display: flex;
  flex-direction: column;
}

.dashboard .dash-available-table-wrap {
  min-height: 0;
  max-height: none;
  overflow: auto;
  flex: 0 0 auto;
}

.dashboard .dash-available-pager {
  margin-top: auto !important;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(91, 209, 215, 0.18);
}

.dashboard .dash-available-table.table-sm> :not(caption)>*>* {
  padding-top: 0.95rem !important;
  padding-bottom: 0.95rem !important;
  line-height: 1.25 !important;
}

.dashboard .dash-available-table tbody td {
  min-height: 56px;
  vertical-align: middle !important;
}

@media (max-width: 1199px) {

  .dashboard .dash-chart-card .card-body,
  .dashboard .dash-table-card .card-body {
    min-height: auto;
  }

  .dashboard .dash-available-table-wrap {
    min-height: 0;
    max-height: none;
  }
}


/* Accountability module */
.accountability-summary {
  border: 1px solid rgba(91, 209, 215, 0.45);
  background: linear-gradient(135deg, rgba(91, 209, 215, 0.12), rgba(158, 235, 71, 0.08));
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 1rem;
}

.accountability-summary.empty {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.22);
}

.accountability-summary strong,
.accountability-summary span {
  display: block;
}

.accountability-summary strong {
  color: #083f52;
  font-size: 0.96rem;
}

.accountability-summary span {
  color: #5c7580;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.accountability-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.accountability-queue-table th {
  white-space: normal;
}

.accountability-queue-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.accountability-queue-table th:last-child,
.accountability-queue-table td:last-child {
  white-space: nowrap;
}

.accountability-item-list {
  display: grid;
  gap: 0.9rem;
}

.accountability-item-card {
  border: 1px solid rgba(91, 209, 215, 0.28);
  border-radius: 14px;
  background: rgba(91, 209, 215, 0.05);
  padding: 0.95rem 1rem;
}

.accountability-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.accountability-item-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.agreement-finalized-note {
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(84, 113, 125, 0.22);
  background: rgba(16, 56, 72, 0.04);
  color: #274b59;
}

.agreement-finalized-note strong {
  color: #103848;
}

.accountability-item-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.accountability-item-meta strong,
.accountability-item-meta span {
  display: block;
}

.accountability-item-meta strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #54717d;
  margin-bottom: 0.15rem;
}

.accountability-item-meta span {
  color: #103848;
  font-size: 0.88rem;
  word-break: break-word;
}

.accountability-item-fields {
  display: grid;
  grid-template-columns: 140px 140px minmax(0, 1fr);
  gap: 0.75rem;
}

.accountability-item-notes {
  min-width: 0;
}

.terms-card {
  border: 1px solid rgba(91, 209, 215, 0.3);
  border-radius: 14px;
  background: rgba(91, 209, 215, 0.05);
  padding: 1rem 1rem 0.9rem;
}

.terms-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #173847;
  line-height: 1.55;
  font-size: 0.89rem;
}

.terms-note {
  border-top: 1px dashed rgba(91, 209, 215, 0.35);
  padding-top: 0.8rem;
  color: #234a59;
  font-size: 0.86rem;
  line-height: 1.5;
}

.agreement-history-list {
  display: grid;
  gap: 0.9rem;
}

.agreement-history-entry {
  border: 1px solid rgba(91, 209, 215, 0.28);
  border-radius: 14px;
  background: rgba(91, 209, 215, 0.05);
  padding: 1rem;
}

.agreement-history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
}

.agreement-history-head strong {
  display: block;
  color: #083f52;
  font-size: 0.95rem;
}

.agreement-history-meta {
  color: #5c7580;
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.agreement-history-points {
  margin: 0;
  padding-left: 1.2rem;
  color: #173847;
  font-size: 0.88rem;
  line-height: 1.6;
}

.agreement-history-points li+li {
  margin-top: 0.18rem;
}

.accountability-queue-table tr.is-selected {
  background: rgba(91, 209, 215, 0.12);
}

.signature-section {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding-top: 1rem;
}

.signature-meta {
  color: #617d87;
  font-size: 0.84rem;
}

.signature-pad-wrap {
  background: #fbfeff;
  border: 1px dashed rgba(11, 74, 93, 0.28);
  border-radius: 12px;
  padding: 0.35rem;
}

.signature-pad {
  width: 100%;
  height: 180px;
  display: block;
  border-radius: 10px;
  background: #fff;
  cursor: crosshair;
}

.signature-pad.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.signature-preview-wrap {
  margin-top: 0.75rem;
  border: 1px solid rgba(91, 209, 215, 0.35);
  border-radius: 12px;
  padding: 0.6rem;
  background: rgba(91, 209, 215, 0.06);
}

.signature-preview-wrap img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.agreement-log-json {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.75rem;
  margin: 0;
  color: inherit;
  background: transparent;
}

.backup-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.backup-summary-card {
  border: 1px solid rgba(91, 209, 215, 0.26);
  border-radius: 14px;
  background: rgba(91, 209, 215, 0.06);
  padding: 0.85rem 0.95rem;
}

.backup-summary-card strong,
.backup-summary-card span {
  display: block;
}

.backup-summary-card strong {
  color: #0c4253;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.22rem;
}

.backup-summary-card span {
  color: #123848;
  font-size: 0.94rem;
}

.backup-note {
  color: #5e7480;
  font-size: 0.84rem;
  line-height: 1.55;
}

.backup-history-wrap {
  max-height: 360px;
  overflow: auto;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 209, 215, 0.35) transparent;
}

.backup-history-wrap thead th {
  position: sticky;
  top: 0;
  background: #f4f9f8;
  z-index: 1;
}

.backup-download-btn {
  white-space: nowrap;
}

.audit-progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.audit-progress-step {
  border: 1px solid #d7e4ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  min-height: 86px;
  display: grid;
  align-content: start;
  gap: 4px;
}

.audit-progress-step.is-active strong {
  color: #0a6d78;
}

.audit-progress-step span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4f7;
  color: #415d6b;
  font-weight: 700;
  font-size: 0.8rem;
}

.audit-progress-step strong {
  color: #223946;
  font-size: 0.88rem;
}

.audit-progress-step small {
  color: #647d8a;
}

.audit-progress-step.is-active {
  border-color: #4f9fbd;
  box-shadow: 0 0 0 2px rgba(79, 159, 189, 0.14);
}

.audit-progress-step.is-active span {
  background: #4f9fbd;
  color: #fff;
}

.audit-progress-step.is-complete {
  background: #f3faf6;
  border-color: #9bd3ad;
}

.audit-progress-step.is-complete span {
  background: #2c9b5f;
  color: #fff;
}

.audit-guidance-card {
  border: 1px solid #dce7ed;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
  display: grid;
  gap: 8px;
  min-height: 96px;
}

.audit-guidance-card strong {
  color: #263f4d;
  line-height: 1.45;
}

.audit-plan-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.audit-plan-overview > div,
.audit-summary-card,
.audit-empty-state {
  border: 1px solid #dce7ed;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
}

.audit-plan-overview small {
  color: #667b86;
}

.audit-summary-card {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.audit-summary-card i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f8fa;
  color: #0b8f9a;
  flex: 0 0 auto;
}

.audit-empty-state {
  color: #657c88;
  text-align: center;
}

.audit-attention-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 209, 215, 0.35) transparent;
}

.audit-attention-item {
  border: 1px solid #f0d38d;
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.audit-attention-item small {
  display: block;
  color: #7a6a42;
  margin-top: 2px;
}

.audit-status-filters {
  gap: 6px;
}

.audit-status-filters .btn {
  border-radius: 8px !important;
}

.audit-section-panel {
  border: 1px solid #d8e8ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  margin-top: 14px;
  box-shadow: 0 8px 20px rgba(28, 65, 78, 0.06);
}

.audit-section-help {
  color: #657c88;
  font-size: 0.8rem;
  line-height: 1.35;
}

.audit-section-title {
  color: #203d4a;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5f0f4;
}

.audit-section-table {
  margin-bottom: 0;
}

.audit-automation-panel {
  border: 1px solid #d8e8ee;
  border-radius: 8px;
  background: #f9fcfd;
  overflow: hidden;
}

.audit-automation-panel summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
}

.audit-automation-panel summary::-webkit-details-marker {
  display: none;
}

.audit-automation-panel summary::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  margin-left: auto;
  color: #55717d;
  transition: transform 0.18s ease;
}

.audit-automation-panel[open] summary::after {
  transform: rotate(180deg);
}

.audit-automation-panel summary strong {
  display: block;
  color: #203d4a;
  font-size: 0.9rem;
  line-height: 1.2;
}

.audit-automation-panel summary small {
  display: block;
  color: #607985;
  font-size: 0.76rem;
  line-height: 1.3;
  margin-top: 2px;
}

.audit-automation-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #e0f8fa;
  color: #0b8f9a;
  border: 1px solid #bdebf0;
}

.audit-scope-builder {
  border: 0;
  border-top: 1px solid #d8e8ee;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(91, 209, 215, 0.14), rgba(238, 250, 244, 0.65)),
    #f8fcfd;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.audit-scope-builder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.audit-scope-builder-title {
  color: #203d4a;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.audit-scope-builder-subtitle {
  color: #607985;
  font-size: 0.76rem;
  line-height: 1.3;
}

.audit-scope-builder-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0ca6b3;
  border: 1px solid rgba(91, 209, 215, 0.38);
  box-shadow: 0 6px 14px rgba(28, 65, 78, 0.08);
}

.audit-scope-field {
  border: 1px solid rgba(159, 202, 213, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px;
}

.audit-scope-field .form-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #244555;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.audit-scope-field .form-select {
  border-color: #d7e8ee;
  background-color: #fbfeff;
}

.audit-scope-builder select[multiple] {
  min-height: 92px;
}

.audit-scope-preview,
.audit-scope-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.audit-scope-summary-grid {
  margin-top: 6px;
}

.audit-scope-chip-group {
  border: 1px solid #dcebf0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px;
  min-width: 0;
}

.audit-scope-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #54707d;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.audit-scope-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.audit-scope-chip {
  border-radius: 999px;
  background: #dff8fa;
  color: #116171;
  border: 1px solid #bdebf0;
  padding: 3px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.audit-scope-chip.is-all {
  background: #eef4f7;
  color: #657c88;
  border-color: #dce6eb;
}

.audit-scope-chip.is-more {
  background: #203d4a;
  color: #ffffff;
  border-color: #203d4a;
}

.audit-generate-btn,
.audit-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audit-generate-btn {
  box-shadow: 0 8px 16px rgba(31, 151, 164, 0.16);
}

.audit-section-table thead th,
.audit-findings-table thead th {
  background: #e6fbfc;
  color: #173541;
  border-bottom-color: #bce8ee;
}

.audit-section-panel .resource-table-footer {
  border-top: 1px solid #e5f0f4;
  padding-top: 10px;
}

.audit-comment-entry {
  border: 1px solid #dce7ed;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  margin-bottom: 8px;
}

.audit-comment-entry.needs-reply {
  border-color: #f3c26b;
  background: #fffaf0;
}

.audit-findings-table-wrap {
  max-height: 560px;
  overflow-x: auto;
  overflow-y: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 209, 215, 0.35) transparent;
}

.audit-findings-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.audit-findings-table th,
.audit-findings-table td {
  vertical-align: middle;
  overflow-wrap: normal;
  word-break: normal;
}

.audit-findings-table th {
  white-space: nowrap;
  line-height: 1.25;
  position: sticky;
  top: 0;
  z-index: 2;
}

.audit-findings-table th:nth-child(1),
.audit-findings-table td:nth-child(1) { width: 150px; min-width: 150px; }

.audit-findings-table th:nth-child(2),
.audit-findings-table td:nth-child(2) { width: 190px; min-width: 190px; }

.audit-findings-table th:nth-child(3),
.audit-findings-table td:nth-child(3) { width: 150px; min-width: 150px; }

.audit-findings-table th:nth-child(4),
.audit-findings-table td:nth-child(4) { width: 160px; min-width: 160px; }

.audit-findings-table th:nth-child(5),
.audit-findings-table td:nth-child(5) { width: 180px; min-width: 180px; }

.audit-findings-table th:nth-child(6),
.audit-findings-table td:nth-child(6) { width: 180px; min-width: 180px; }

.audit-findings-table th:nth-child(7),
.audit-findings-table td:nth-child(7) { width: 120px; min-width: 120px; }

.audit-findings-table th:nth-child(8),
.audit-findings-table td:nth-child(8) { width: 150px; min-width: 150px; }

.audit-findings-table th:nth-child(9),
.audit-findings-table td:nth-child(9) { width: 150px; min-width: 150px; }

.audit-findings-table th:nth-child(10),
.audit-findings-table td:nth-child(10) { width: 260px; min-width: 260px; }

.audit-findings-table .btn {
  white-space: nowrap;
  width: auto;
  min-width: 82px;
}

.audit-findings-table .badge {
  white-space: normal;
  line-height: 1.25;
}

.audit-finding-asset,
.audit-finding-action {
  display: grid;
  gap: 3px;
}

.audit-finding-asset strong,
.audit-finding-action strong {
  color: #172f3a;
  line-height: 1.25;
}

.audit-finding-asset span,
.audit-finding-action span {
  color: #516b77;
}

.audit-finding-asset small {
  color: #6d818c;
}

.audit-finding-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.audit-page-size-select {
  width: 76px;
}

@media (max-width: 1199.98px) {
  .audit-scope-preview,
  .audit-scope-summary-grid {
    grid-template-columns: 1fr;
  }

  .audit-plan-overview {
    grid-template-columns: 1fr;
  }

  .audit-findings-table {
    min-width: 0;
    table-layout: auto;
  }

  .audit-findings-table thead {
    display: none;
  }

  .audit-findings-table,
  .audit-findings-table tbody,
  .audit-findings-table tr,
  .audit-findings-table td {
    display: block;
    width: 100% !important;
  }

  .audit-findings-table tr {
    border: 1px solid #d7e4ea;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
  }

  .audit-findings-table td {
    border: 0;
    padding: 6px 0;
  }

  .audit-findings-table td::before {
    content: attr(data-label);
    display: block;
    color: #657c88;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 3px;
  }

  .audit-finding-buttons {
    justify-content: flex-start;
  }

  .audit-attention-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

.audit-comment-list {
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 209, 215, 0.35) transparent;
}

@media (max-width: 991.98px) {
  .audit-progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .audit-progress-steps {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="dark"] .accountability-summary {
  background: linear-gradient(135deg, rgba(31, 84, 97, 0.5), rgba(73, 102, 43, 0.22));
  border-color: rgba(111, 187, 201, 0.42);
}

:root[data-theme="dark"] .accountability-summary.empty {
  background: rgba(63, 79, 88, 0.36);
  border-color: rgba(121, 151, 164, 0.32);
}

:root[data-theme="dark"] .accountability-summary strong,
:root[data-theme="dark"] .signature-meta,
:root[data-theme="dark"] .agreement-log-json {
  color: #e4ebf2;
}

:root[data-theme="dark"] .accountability-summary span {
  color: rgba(228, 235, 242, 0.76);
}

:root[data-theme="dark"] .accountability-item-card,
:root[data-theme="dark"] .terms-card {
  background: rgba(91, 209, 215, 0.08);
  border-color: rgba(111, 187, 201, 0.24);
}

:root[data-theme="dark"] .agreement-history-entry {
  background: rgba(91, 209, 215, 0.08);
  border-color: rgba(111, 187, 201, 0.24);
}

:root[data-theme="dark"] .accountability-item-meta strong,
:root[data-theme="dark"] .terms-note {
  color: rgba(228, 235, 242, 0.74);
}

:root[data-theme="dark"] .accountability-item-meta span,
:root[data-theme="dark"] .terms-list {
  color: #e4ebf2;
}

:root[data-theme="dark"] .form-check-input {
  background-color: rgba(228, 235, 242, 0.08);
  border-color: rgba(228, 235, 242, 0.58);
  box-shadow: 0 0 0 1px rgba(16, 32, 40, 0.35);
}

:root[data-theme="dark"] .form-check-input:checked {
  background-color: #5bd1d7;
  border-color: #5bd1d7;
}

:root[data-theme="dark"] .form-check-input:focus {
  border-color: #7ce5ea;
  box-shadow: 0 0 0 0.2rem rgba(91, 209, 215, 0.2);
}

:root[data-theme="dark"] .form-check-input:disabled {
  opacity: 0.85;
}

:root[data-theme="dark"] .agreement-finalized-note {
  background: rgba(91, 209, 215, 0.12);
  border-color: rgba(124, 229, 234, 0.24);
  color: #e4ebf2;
}

:root[data-theme="dark"] .agreement-finalized-note strong {
  color: #9fecef;
}

:root[data-theme="dark"] .agreement-history-head strong,
:root[data-theme="dark"] .agreement-history-points {
  color: #e4ebf2;
}

:root[data-theme="dark"] .agreement-history-meta {
  color: rgba(228, 235, 242, 0.76);
}

:root[data-theme="dark"] .accountability-queue-table tr.is-selected {
  background: rgba(91, 209, 215, 0.16);
}

:root[data-theme="dark"] .audit-progress-step,
:root[data-theme="dark"] .audit-guidance-card,
:root[data-theme="dark"] .audit-plan-overview > div,
:root[data-theme="dark"] .audit-summary-card,
:root[data-theme="dark"] .audit-empty-state,
:root[data-theme="dark"] .audit-attention-item,
:root[data-theme="dark"] .audit-section-panel,
:root[data-theme="dark"] .audit-automation-panel,
:root[data-theme="dark"] .audit-scope-builder,
:root[data-theme="dark"] .audit-scope-field,
:root[data-theme="dark"] .audit-scope-chip-group,
:root[data-theme="dark"] .audit-comment-entry {
  background: rgba(91, 209, 215, 0.08);
  border-color: rgba(111, 187, 201, 0.24);
}

:root[data-theme="dark"] .audit-progress-step strong,
:root[data-theme="dark"] .audit-guidance-card strong,
:root[data-theme="dark"] .audit-attention-item strong,
:root[data-theme="dark"] .audit-section-title,
:root[data-theme="dark"] .audit-automation-panel summary strong,
:root[data-theme="dark"] .audit-scope-builder-title,
:root[data-theme="dark"] .audit-scope-field .form-label,
:root[data-theme="dark"] .audit-comment-entry {
  color: #e4ebf2;
}

:root[data-theme="dark"] .audit-scope-builder-subtitle,
:root[data-theme="dark"] .audit-automation-panel summary small,
:root[data-theme="dark"] .audit-scope-chip-label,
:root[data-theme="dark"] .audit-attention-item small,
:root[data-theme="dark"] .audit-plan-overview small,
:root[data-theme="dark"] .audit-section-help {
  color: rgba(228, 235, 242, 0.74);
}

:root[data-theme="dark"] .audit-automation-icon {
  background: rgba(91, 209, 215, 0.16);
  color: #d8fbff;
  border-color: rgba(111, 187, 201, 0.34);
}

:root[data-theme="dark"] .audit-summary-card i {
  background: rgba(91, 209, 215, 0.16);
  color: #d8fbff;
}

:root[data-theme="dark"] .audit-scope-builder-icon {
  background: rgba(19, 42, 51, 0.78);
  color: #9fecef;
  border-color: rgba(111, 187, 201, 0.34);
}

:root[data-theme="dark"] .audit-scope-chip {
  background: rgba(91, 209, 215, 0.16);
  color: #d8fbff;
  border-color: rgba(111, 187, 201, 0.34);
}

:root[data-theme="dark"] .audit-scope-chip.is-all {
  background: rgba(228, 235, 242, 0.08);
  color: rgba(228, 235, 242, 0.72);
  border-color: rgba(228, 235, 242, 0.16);
}

:root[data-theme="dark"] .audit-section-title,
:root[data-theme="dark"] .audit-section-panel .resource-table-footer {
  border-color: rgba(111, 187, 201, 0.22);
}

:root[data-theme="dark"] .audit-section-table thead th,
:root[data-theme="dark"] .audit-findings-table thead th {
  background: rgba(91, 209, 215, 0.14);
  color: #e4ebf2;
  border-color: rgba(111, 187, 201, 0.22);
}

:root[data-theme="dark"] .audit-progress-step small {
  color: rgba(228, 235, 242, 0.72);
}

:root[data-theme="dark"] .audit-progress-step span {
  background: rgba(228, 235, 242, 0.2);
  color: #f3f8fc;
}

:root[data-theme="dark"] .audit-finding-asset strong,
:root[data-theme="dark"] .audit-finding-action strong {
  color: #e4ebf2;
}

:root[data-theme="dark"] .audit-finding-asset span,
:root[data-theme="dark"] .audit-finding-action span,
:root[data-theme="dark"] .audit-finding-asset small {
  color: rgba(228, 235, 242, 0.74);
}

:root[data-theme="dark"] .audit-findings-table tr {
  border-color: rgba(111, 187, 201, 0.24);
}

:root[data-theme="dark"] .audit-comment-entry.needs-reply {
  background: rgba(243, 194, 107, 0.12);
  border-color: rgba(243, 194, 107, 0.42);
}

:root[data-theme="dark"] #planWorkflowHint {
  background: rgba(18, 73, 92, 0.52);
  border-color: rgba(91, 209, 215, 0.42);
  color: #e7f5fc;
}

:root[data-theme="dark"] .audit-section-panel .text-muted,
:root[data-theme="dark"] .audit-progress-step .text-muted {
  color: rgba(228, 235, 242, 0.82) !important;
}

:root[data-theme="dark"] .audit-export-btn.btn-outline-success,
:root[data-theme="dark"] .audit-section-panel .btn-outline-primary,
:root[data-theme="dark"] .audit-section-panel .btn-outline-secondary,
:root[data-theme="dark"] .audit-section-panel .btn-outline-warning,
:root[data-theme="dark"] .audit-section-panel .btn-outline-danger {
  color: #dff2ff;
  border-color: rgba(121, 185, 202, 0.58);
}

:root[data-theme="dark"] .audit-export-btn.btn-outline-success:hover,
:root[data-theme="dark"] .audit-section-panel .btn-outline-primary:hover,
:root[data-theme="dark"] .audit-section-panel .btn-outline-secondary:hover,
:root[data-theme="dark"] .audit-section-panel .btn-outline-warning:hover,
:root[data-theme="dark"] .audit-section-panel .btn-outline-danger:hover {
  color: #07131a;
  background: #9fecef;
  border-color: #9fecef;
}

:root[data-theme="dark"] .signature-pad-wrap {
  background: rgba(19, 42, 51, 0.75);
  border-color: rgba(121, 185, 202, 0.4);
}

:root[data-theme="dark"] .signature-pad {
  background: #f6fbff;
}

:root[data-theme="dark"] .signature-preview-wrap {
  background: rgba(91, 209, 215, 0.1);
  border-color: rgba(91, 209, 215, 0.28);
}

:root[data-theme="dark"] .it-confirmation-block {
  background: #1f292f;
  border-color: #42545c;
}

:root[data-theme="dark"] .it-confirmation-header h6,
:root[data-theme="dark"] .it-confirmation-type .form-label,
:root[data-theme="dark"] .it-confirmation-options .form-check-label {
  color: #eef7f7;
}

:root[data-theme="dark"] .it-confirmation-type {
  background: #253139;
  border-color: #465a63;
}

:root[data-theme="dark"] .it-confirmation-block .signature-meta,
:root[data-theme="dark"] .it-confirmation-block .text-muted,
:root[data-theme="dark"] .it-confirmation-hint {
  color: #b8cfd5 !important;
}

:root[data-theme="dark"] .it-confirmation-block .signature-pad-wrap,
:root[data-theme="dark"] .it-confirmation-block .signature-preview-wrap {
  background: #182227;
  border-color: #516a74;
}

:root[data-theme="dark"] .it-confirmation-block .signature-preview-wrap img {
  background: #ffffff;
  border-radius: 4px;
}

:root[data-theme="dark"] .settings-page-description,
:root[data-theme="dark"] .settings-form-hint,
:root[data-theme="dark"] .resource-table-meta,
:root[data-theme="dark"] .settings-page-note,
:root[data-theme="dark"] .settings-shortcut-card span {
  color: #c9d8e3;
}

:root[data-theme="dark"] .settings-shortcut-card {
  background: linear-gradient(180deg, #1c3641 0%, #1a313a 100%);
  border-color: rgba(111, 187, 201, 0.2);
  color: #e4ebf2;
}

:root[data-theme="dark"] .settings-shortcut-card strong {
  color: #e4ebf2;
}

:root[data-theme="dark"] .settings-shortcut-card:hover,
:root[data-theme="dark"] .settings-shortcut-card:focus {
  border-color: rgba(91, 209, 215, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  color: #e4ebf2;
}

:root[data-theme="dark"] .settings-shortcut-card i {
  background: rgba(91, 209, 215, 0.12);
  color: #7ce5ea;
}

:root[data-theme="dark"] .page-intro,
:root[data-theme="dark"] .onboarding-card {
  background: linear-gradient(135deg, rgba(26, 49, 58, 0.98), rgba(20, 39, 47, 0.96));
  border-color: rgba(121, 185, 202, 0.2);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .quick-guide-step,
:root[data-theme="dark"] .toolbar-section,
:root[data-theme="dark"] .field-guidance {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(121, 185, 202, 0.18);
}

:root[data-theme="dark"] .quick-guide-step strong,
:root[data-theme="dark"] .onboarding-chip {
  background: rgba(91, 209, 215, 0.12);
  color: #e4ebf2;
}

:root[data-theme="dark"] .quick-guide-step span,
:root[data-theme="dark"] .section-kicker p,
:root[data-theme="dark"] .settings-section-note,
:root[data-theme="dark"] .field-guidance p,
:root[data-theme="dark"] .field-guidance ul {
  color: #c9d8e3;
}

:root[data-theme="dark"] .toolbar-section-label,
:root[data-theme="dark"] .field-guidance h6 {
  color: #e4ebf2;
}

:root[data-theme="dark"] .page-guide-trigger {
  border-color: rgba(121, 185, 202, 0.24);
}

:root[data-theme="dark"] .page-guide-step {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(121, 185, 202, 0.18);
}

:root[data-theme="dark"] .page-guide-step-number {
  background: rgba(91, 209, 215, 0.12);
  color: #e4ebf2;
}

:root[data-theme="dark"] .page-guide-step p,
:root[data-theme="dark"] .page-guide-note {
  color: #c9d8e3;
}

:root[data-theme="dark"] .help-trigger {
  border-color: rgba(121, 185, 202, 0.24);
  background: rgba(91, 209, 215, 0.1);
  color: #e4ebf2;
}

:root[data-theme="dark"] .popover.help-popover {
  background: #18252b;
  border-color: rgba(121, 185, 202, 0.24);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .popover.help-popover .popover-header {
  background: rgba(91, 209, 215, 0.1);
  border-bottom-color: rgba(121, 185, 202, 0.18);
  color: #eef7f7;
}

:root[data-theme="dark"] .popover.help-popover .popover-body {
  color: #d7e6e6;
}

:root[data-theme="dark"] .popover.help-popover .popover-body strong {
  color: #f3fbfb;
}

:root[data-theme="dark"] .popover.help-popover.bs-popover-top > .popover-arrow::before,
:root[data-theme="dark"] .popover.help-popover.bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::before {
  border-top-color: rgba(121, 185, 202, 0.24);
}

:root[data-theme="dark"] .popover.help-popover.bs-popover-top > .popover-arrow::after,
:root[data-theme="dark"] .popover.help-popover.bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::after {
  border-top-color: #18252b;
}

:root[data-theme="dark"] .popover.help-popover.bs-popover-bottom > .popover-arrow::before,
:root[data-theme="dark"] .popover.help-popover.bs-popover-auto[data-popper-placement^="bottom"] > .popover-arrow::before {
  border-bottom-color: rgba(121, 185, 202, 0.24);
}

:root[data-theme="dark"] .popover.help-popover.bs-popover-bottom > .popover-arrow::after,
:root[data-theme="dark"] .popover.help-popover.bs-popover-auto[data-popper-placement^="bottom"] > .popover-arrow::after {
  border-bottom-color: #18252b;
}

:root[data-theme="dark"] .popover.help-popover.bs-popover-start > .popover-arrow::before,
:root[data-theme="dark"] .popover.help-popover.bs-popover-auto[data-popper-placement^="left"] > .popover-arrow::before {
  border-left-color: rgba(121, 185, 202, 0.24);
}

:root[data-theme="dark"] .popover.help-popover.bs-popover-start > .popover-arrow::after,
:root[data-theme="dark"] .popover.help-popover.bs-popover-auto[data-popper-placement^="left"] > .popover-arrow::after {
  border-left-color: #18252b;
}

:root[data-theme="dark"] .popover.help-popover.bs-popover-end > .popover-arrow::before,
:root[data-theme="dark"] .popover.help-popover.bs-popover-auto[data-popper-placement^="right"] > .popover-arrow::before {
  border-right-color: rgba(121, 185, 202, 0.24);
}

:root[data-theme="dark"] .popover.help-popover.bs-popover-end > .popover-arrow::after,
:root[data-theme="dark"] .popover.help-popover.bs-popover-auto[data-popper-placement^="right"] > .popover-arrow::after {
  border-right-color: #18252b;
}

:root[data-theme="dark"] .super-admin-nav-link {
  background: rgba(19, 42, 51, 0.72);
  border-color: rgba(121, 185, 202, 0.24);
  color: #e4ebf2;
}

:root[data-theme="dark"] .super-admin-nav-link strong {
  color: #e4ebf2;
}

:root[data-theme="dark"] .super-admin-nav-link span {
  color: rgba(228, 235, 242, 0.72);
}

:root[data-theme="dark"] .super-admin-nav-link:hover,
:root[data-theme="dark"] .super-admin-nav-link:focus {
  border-color: rgba(121, 185, 202, 0.38);
  box-shadow: none;
  color: #e4ebf2;
}

:root[data-theme="dark"] .super-admin-nav-link.is-active {
  border-color: rgba(121, 185, 202, 0.44);
  box-shadow: none;
  background: rgba(19, 42, 51, 0.94);
}

:root[data-theme="dark"] .super-admin-nav-link i {
  background: rgba(121, 185, 202, 0.14);
  color: #9ed8e5;
}

:root[data-theme="dark"] .table-fit tbody tr:nth-child(odd) {
  background: rgba(228, 235, 242, 0.04);
}

:root[data-theme="dark"] .table-fit.table-hover tbody tr:hover {
  background: rgba(91, 209, 215, 0.1);
}

:root[data-theme="dark"] .notification-policy-input {
  background: #1d3640;
  border-color: #395d68;
  color: #e4ebf2;
}

:root[data-theme="dark"] .notification-policy-input:focus {
  background: #213d48;
  border-color: #4f7c89;
  box-shadow: 0 0 0 0.15rem rgba(91, 209, 215, 0.12);
}

:root[data-theme="dark"] .super-admin-email-panel {
  background: #22292d;
  border-color: #47545b;
}

:root[data-theme="dark"] .super-admin-email-panel-head,
:root[data-theme="dark"] .super-admin-email-sender-row {
  border-color: #3d4a50;
}

:root[data-theme="dark"] .super-admin-email-toggle {
  background: #273036;
  border-color: #45535a;
}

:root[data-theme="dark"] .super-admin-email-label,
:root[data-theme="dark"] .super-admin-email-recipient-title,
:root[data-theme="dark"] .super-admin-email-panel h6,
:root[data-theme="dark"] .super-admin-email-panel .fw-semibold {
  color: #eef7f7;
}

:root[data-theme="dark"] .backup-summary-card {
  background: rgba(91, 209, 215, 0.09);
  border-color: rgba(111, 187, 201, 0.24);
}

:root[data-theme="dark"] .backup-summary-card strong {
  color: rgba(228, 235, 242, 0.76);
}

:root[data-theme="dark"] .backup-summary-card span,
:root[data-theme="dark"] .backup-note {
  color: #e4ebf2;
}

:root[data-theme="dark"] .backup-history-wrap thead th {
  background: #102a33;
}

@media (max-width: 768px) {
  .settings-form-card {
    position: static;
  }

  .resource-table-actions,
  .resource-filter-group,
  .resource-filter-group.compact {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .accountability-summary-grid {
    grid-template-columns: 1fr;
  }

  .backup-summary-grid,
  .accountability-item-meta,
  .accountability-item-fields {
    grid-template-columns: 1fr;
  }

  .super-admin-form-grid {
    grid-template-columns: 1fr;
  }

  .super-admin-form-span-3,
  .super-admin-form-span-4,
  .super-admin-form-span-6,
  .super-admin-form-span-8,
  .super-admin-form-span-12 {
    grid-column: auto;
  }

  .super-admin-email-sender-row,
  .super-admin-email-recipient-grid {
    grid-template-columns: 1fr;
  }

  .super-admin-email-actions {
    justify-content: flex-start;
  }

  .super-admin-email-actions .btn {
    width: 100%;
  }

  .super-admin-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------------------------------------------------
# Dark Mode Consistency Pass
--------------------------------------------------------------*/
:root[data-theme="dark"] {
  --bg-main: #0f1a1a;
  --bg-card: #262b2f;
  --bg-input: #343b40;
  --text-main: #e4f0ef;
  --text-muted: #9bb3b3;
  --text-soft: #6f8f8f;
  --border: #424a4f;
  --accent: #4caf50;
}

:root[data-theme="dark"] #main,
:root[data-theme="dark"] main,
:root[data-theme="dark"] .main,
:root[data-theme="dark"] #main,
:root[data-theme="dark"] main,
:root[data-theme="dark"] .main {
  background: transparent;
}

:root[data-theme="dark"] .header,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .header,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .footer {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .header,
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .header,
:root[data-theme="dark"] .footer {
  border-bottom: 1px solid var(--border);
}

:root[data-theme="dark"] .logo span,
:root[data-theme="dark"] .pagetitle h1,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .table,
:root[data-theme="dark"] .table td,
:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .datatable-table,
:root[data-theme="dark"] .datatable-table td,
:root[data-theme="dark"] .datatable-table th,
:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .card-body p,
:root[data-theme="dark"] .card-body span:not(.badge),
:root[data-theme="dark"] .card-body li,
:root[data-theme="dark"] .logo span,
:root[data-theme="dark"] .pagetitle h1,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .table,
:root[data-theme="dark"] .table td,
:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .datatable-table,
:root[data-theme="dark"] .datatable-table td,
:root[data-theme="dark"] .datatable-table th,
:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .card-body p,
:root[data-theme="dark"] .card-body span:not(.badge),
:root[data-theme="dark"] .card-body li {
  color: var(--text-main) !important;
}

:root[data-theme="dark"] label,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .col-form-label,
:root[data-theme="dark"] .form-check-label,
:root[data-theme="dark"] legend,
:root[data-theme="dark"] label,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .col-form-label,
:root[data-theme="dark"] .form-check-label,
:root[data-theme="dark"] legend {
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .pagetitle .page-scope-label,
:root[data-theme="dark"] .small,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .pagetitle .page-scope-label,
:root[data-theme="dark"] .small,
:root[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}

:root[data-theme="dark"] .form-text,
:root[data-theme="dark"] small.form-text,
:root[data-theme="dark"] .kpi-summary-note,
:root[data-theme="dark"] .overview-stat span,
:root[data-theme="dark"] .signature-meta,
:root[data-theme="dark"] .agreement-history-meta,
:root[data-theme="dark"] .backup-note,
:root[data-theme="dark"] .form-text,
:root[data-theme="dark"] small.form-text,
:root[data-theme="dark"] .kpi-summary-note,
:root[data-theme="dark"] .overview-stat span,
:root[data-theme="dark"] .signature-meta,
:root[data-theme="dark"] .agreement-history-meta,
:root[data-theme="dark"] .backup-note {
  color: var(--text-soft) !important;
}

:root[data-theme="dark"] a,
:root[data-theme="dark"] a {
  color: #9ccfcb;
}

:root[data-theme="dark"] a:hover,
:root[data-theme="dark"] a:hover {
  color: #c4e6e3;
}

:root[data-theme="dark"] .sidebar-nav .nav-link,
:root[data-theme="dark"] .sidebar-nav .nav-content a,
:root[data-theme="dark"] .sidebar-nav .nav-link,
:root[data-theme="dark"] .sidebar-nav .nav-content a {
  color: var(--text-main) !important;
  background: transparent !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-link i,
:root[data-theme="dark"] .sidebar-nav .nav-content a i,
:root[data-theme="dark"] .sidebar-nav .nav-link i,
:root[data-theme="dark"] .sidebar-nav .nav-content a i {
  color: var(--text-muted) !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-link:hover,
:root[data-theme="dark"] .sidebar-nav .nav-content a:hover,
:root[data-theme="dark"] .sidebar-nav .nav-content a.active,
:root[data-theme="dark"] .sidebar-nav .nav-link:not(.collapsed),
:root[data-theme="dark"] .sidebar-nav .nav-link:hover,
:root[data-theme="dark"] .sidebar-nav .nav-content a:hover,
:root[data-theme="dark"] .sidebar-nav .nav-content a.active,
:root[data-theme="dark"] .sidebar-nav .nav-link:not(.collapsed) {
  background: var(--bg-input) !important;
  color: var(--text-main) !important;
}

@media (min-width: 1200px) {
  body.sidebar-icon-only .sidebar {
    width: 92px;
    padding: 18px 10px;
    overflow-x: hidden;
  }

  body.sidebar-icon-only #main,
  body.sidebar-icon-only #footer {
    margin-left: 92px !important;
  }

  body.sidebar-icon-only .sidebar-nav .nav-heading,
  body.sidebar-icon-only .sidebar-nav .nav-link span,
  body.sidebar-icon-only .sidebar-nav .nav-link .bi-chevron-down,
  body.sidebar-icon-only .sidebar-nav .nav-content {
    display: none !important;
  }

  body.sidebar-icon-only .sidebar-nav .nav-link {
    justify-content: center;
    padding: 14px 0;
    border-radius: 14px;
  }

  body.sidebar-icon-only .sidebar-nav .nav-link i {
    margin-right: 0;
    font-size: 1.15rem;
  }
}

@media (min-width: 992px) {
  .split-panel-layout {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    align-items: flex-start;
    --panel-hide-duration: 0.52s;
    --panel-show-duration: 0.68s;
    --panel-active-duration: var(--panel-show-duration);
    --editor-height-duration: 0.34s;
  }

  .split-panel-layout.panel-layout-hiding {
    --panel-active-duration: var(--panel-hide-duration);
    --editor-height-duration: 0.2s;
  }

  .split-panel-layout.panel-layout-expanding {
    --panel-active-duration: var(--panel-show-duration);
    --editor-height-duration: 0.34s;
  }

  /* Only the editor column animates its width.
     The content column snaps instantly — animating it is what caused the
     card-stretch because the browser was squishing it for the full duration. */
  .split-panel-layout>.content-panel-col {
    transition: none;
  }

  .split-panel-layout>.editor-panel-col {
    transition:
      flex-basis var(--panel-active-duration) var(--ui-ease-standard),
      max-width var(--panel-active-duration) var(--ui-ease-standard),
      width var(--panel-active-duration) var(--ui-ease-standard),
      padding var(--panel-active-duration) var(--ui-ease-standard),
      margin var(--panel-active-duration) var(--ui-ease-standard);
  }

  .split-panel-layout.panel-layout-hidden .content-panel-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .split-panel-layout .editor-panel-col {
    position: relative;
    overflow: hidden;
    max-height: 4000px;
    min-width: 0;
    transition:
      flex-basis var(--panel-active-duration) var(--ui-ease-standard),
      max-width var(--panel-active-duration) var(--ui-ease-standard),
      width var(--panel-active-duration) var(--ui-ease-standard),
      max-height var(--editor-height-duration) var(--ui-ease-standard),
      padding var(--panel-active-duration) var(--ui-ease-standard),
      margin var(--panel-active-duration) var(--ui-ease-standard);
  }

  .split-panel-layout.panel-layout-hidden .editor-panel-col {
    flex: 0 0 0 !important;
    max-width: 0 !important;
    width: 0 !important;
    max-height: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    pointer-events: none;
  }

  .split-panel-layout .editor-panel-col.panel-is-hidden {
    display: none !important;
  }

  .split-panel-layout .content-panel-col {
    min-width: 0;
    transform: translateZ(0);
  }

  .split-panel-layout .content-panel-col>.card,
  .split-panel-layout .content-panel-col .table-responsive {
    min-width: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .split-panel-layout .content-panel-col>.card {
    width: 100%;
  }

  .card-collapse-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .card-collapse-head .card-title {
    margin-bottom: 0;
  }

  .panel-toggle-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  /* Pin the toggle button to the top-right corner of the card,
     matching the Assignees layout. Bootstrap's .card already has
     position:relative so we just yank the button out of the flex row. */
  .settings-form-card .panel-toggle-btn,
  .accountability-editor-card .panel-toggle-btn {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
  }

  /* Prevent long titles from sliding under the now-absolute button */
  .settings-form-card .card-collapse-head,
  .accountability-editor-card .card-collapse-head {
    padding-right: 2.75rem;
  }

  /* FIX 3: removed scale(0.985) — scaling inner content while the parent column
     is reflowing its width amplified the stretch effect visually. */
  .collapse-smooth {
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    transition:
      opacity calc(var(--panel-active-duration) * 0.58) ease-in-out,
      transform calc(var(--panel-active-duration) * 0.9) var(--ui-ease-standard);
    will-change: opacity, transform;
    transform-origin: left center;
  }

  .collapse-smooth.open {
    opacity: 1;
    transform: translateX(0);
  }

  .card.panel-collapsed .card-collapse-head {
    margin-bottom: 0;
  }

  .panel-reopen-handle {
    position: absolute;
    left: 0;
    top: 1rem;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-8px);
    transition:
      opacity 0.28s var(--ui-ease-standard),
      transform 0.28s var(--ui-ease-standard),
      visibility 0.28s var(--ui-ease-standard);
  }

  .split-panel-layout.panel-layout-hidden .panel-reopen-handle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .panel-reopen-handle .btn {
    width: 34px;
    height: 46px;
    padding: 0;
    border-radius: 0 12px 12px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .dropdown-menu,
:root[data-theme="dark"] .accountability-summary,
:root[data-theme="dark"] .accountability-summary.empty,
:root[data-theme="dark"] .accountability-item-card,
:root[data-theme="dark"] .terms-card,
:root[data-theme="dark"] .agreement-history-entry,
:root[data-theme="dark"] .backup-summary-card,
:root[data-theme="dark"] .status-rules-editor,
:root[data-theme="dark"] .status-rule-row,
:root[data-theme="dark"] .signature-pad-wrap,
:root[data-theme="dark"] .signature-preview-wrap,
:root[data-theme="dark"] #scanResultPanel,
:root[data-theme="dark"] .scan-result-panel,
:root[data-theme="dark"] .status-option,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .dropdown-menu,
:root[data-theme="dark"] .accountability-summary,
:root[data-theme="dark"] .accountability-summary.empty,
:root[data-theme="dark"] .accountability-item-card,
:root[data-theme="dark"] .terms-card,
:root[data-theme="dark"] .agreement-history-entry,
:root[data-theme="dark"] .backup-summary-card,
:root[data-theme="dark"] .status-rules-editor,
:root[data-theme="dark"] .status-rule-row,
:root[data-theme="dark"] .signature-pad-wrap,
:root[data-theme="dark"] .signature-preview-wrap,
:root[data-theme="dark"] #scanResultPanel,
:root[data-theme="dark"] .scan-result-panel,
:root[data-theme="dark"] .status-option {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .header,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .dropdown-menu,
:root[data-theme="dark"] .accountability-summary,
:root[data-theme="dark"] .accountability-item-card,
:root[data-theme="dark"] .terms-card,
:root[data-theme="dark"] .agreement-history-entry,
:root[data-theme="dark"] .backup-summary-card,
:root[data-theme="dark"] .status-rules-editor,
:root[data-theme="dark"] .status-rule-row,
:root[data-theme="dark"] .signature-pad-wrap,
:root[data-theme="dark"] .signature-preview-wrap,
:root[data-theme="dark"] #scanResultPanel,
:root[data-theme="dark"] .scan-result-panel,
:root[data-theme="dark"] .status-option {
  background: #262b2f !important;
  border-color: #424a4f !important;
  color: #e4f0ef !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select {
  background: #343b40 !important;
  color: #e4f0ef !important;
  border-color: #424a4f !important;
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .search-select .search-select-input,
:root[data-theme="dark"] .search-select .search-select-input input,
:root[data-theme="dark"] .notification-policy-input,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .search-select .search-select-input,
:root[data-theme="dark"] .search-select .search-select-input input,
:root[data-theme="dark"] .notification-policy-input {
  background: var(--bg-input) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus,
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] .notification-policy-input:focus,
:root[data-theme="dark"] .search-select.is-open .search-select-input,
:root[data-theme="dark"] .search-select .search-select-input:focus-within,
:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus,
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] .notification-policy-input:focus,
:root[data-theme="dark"] .search-select.is-open .search-select-input,
:root[data-theme="dark"] .search-select .search-select-input:focus-within {
  background: var(--bg-input) !important;
  color: var(--text-main) !important;
  border-color: rgba(76, 175, 80, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.16) !important;
}

:root[data-theme="dark"] .form-control:disabled,
:root[data-theme="dark"] .form-select:disabled,
:root[data-theme="dark"] .form-control[readonly],
:root[data-theme="dark"] .form-control:disabled,
:root[data-theme="dark"] .form-select:disabled,
:root[data-theme="dark"] .form-control[readonly] {
  background: color-mix(in srgb, var(--bg-input), var(--bg-card) 28%) !important;
  color: var(--text-muted) !important;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder,
:root[data-theme="dark"] .form-control::placeholder,
:root[data-theme="dark"] .search-select .search-select-input input::placeholder,
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder,
:root[data-theme="dark"] .form-control::placeholder,
:root[data-theme="dark"] .search-select .search-select-input input::placeholder {
  color: var(--text-soft) !important;
  opacity: 1 !important;
}

:root[data-theme="dark"] option,
:root[data-theme="dark"] optgroup,
:root[data-theme="dark"] option,
:root[data-theme="dark"] optgroup {
  background: var(--bg-input);
  color: var(--text-main);
}

:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e4f0ef' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
}

:root[data-theme="dark"] .search-select .search-select-input .dropdown-icon,
:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="week"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] .search-select .search-select-input .dropdown-icon,
:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="week"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  color: var(--text-main) !important;
  filter: invert(1) brightness(1.6);
}

:root[data-theme="dark"] .search-select .search-select-menu,
:root[data-theme="dark"] .search-select .search-select-menu {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .search-select .search-select-item,
:root[data-theme="dark"] .search-select .search-select-item {
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .search-select .search-select-item:hover,
:root[data-theme="dark"] .search-select .search-select-item.is-active,
:root[data-theme="dark"] .search-select .search-select-item:hover,
:root[data-theme="dark"] .search-select .search-select-item.is-active {
  background: #3a4348 !important;
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .table,
:root[data-theme="dark"] .datatable-table,
:root[data-theme="dark"] .table,
:root[data-theme="dark"] .datatable-table {
  --bs-table-bg: transparent;
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .table thead th,
:root[data-theme="dark"] .datatable-table thead th,
:root[data-theme="dark"] .backup-history-wrap thead th,
:root[data-theme="dark"] .table thead th,
:root[data-theme="dark"] .datatable-table thead th,
:root[data-theme="dark"] .backup-history-wrap thead th {
  background: #2d3438 !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border) !important;
}

:root[data-theme="dark"] .table tbody tr,
:root[data-theme="dark"] .datatable-table tbody tr,
:root[data-theme="dark"] .table tbody tr,
:root[data-theme="dark"] .datatable-table tbody tr {
  background: var(--bg-card) !important;
}

:root[data-theme="dark"] .table tbody tr:nth-child(even),
:root[data-theme="dark"] .datatable-table tbody tr:nth-child(even),
:root[data-theme="dark"] .table tbody tr:nth-child(even),
:root[data-theme="dark"] .datatable-table tbody tr:nth-child(even) {
  background: #2b3135 !important;
}

:root[data-theme="dark"] .table> :not(caption)>*>*,
:root[data-theme="dark"] .datatable-table> :not(caption)>*>*,
:root[data-theme="dark"] .table> :not(caption)>*>*,
:root[data-theme="dark"] .datatable-table> :not(caption)>*>* {
  border-bottom: 1px solid var(--border) !important;
}

:root[data-theme="dark"] .table-hover tbody tr:hover,
:root[data-theme="dark"] .datatable-table tbody tr:hover,
:root[data-theme="dark"] .table tbody tr:hover,
:root[data-theme="dark"] .table-hover tbody tr:hover,
:root[data-theme="dark"] .datatable-table tbody tr:hover,
:root[data-theme="dark"] .table tbody tr:hover {
  background: #3a4348 !important;
}

:root[data-theme="dark"] .dropdown-menu .dropdown-item,
:root[data-theme="dark"] .dropdown-menu .dropdown-header,
:root[data-theme="dark"] .dropdown-menu .dropdown-footer a,
:root[data-theme="dark"] .dropdown-menu .dropdown-item,
:root[data-theme="dark"] .dropdown-menu .dropdown-header,
:root[data-theme="dark"] .dropdown-menu .dropdown-footer a {
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
:root[data-theme="dark"] .dropdown-menu .dropdown-item:hover {
  background: #3a4348 !important;
}

:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .bg-primary,
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .bg-primary {
  background: #2f7f7f !important;
  border-color: #2f7f7f !important;
  color: #eef7f7 !important;
}

:root[data-theme="dark"] .btn-success,
:root[data-theme="dark"] .bg-success,
:root[data-theme="dark"] .btn-success,
:root[data-theme="dark"] .bg-success {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

:root[data-theme="dark"] .badge.bg-success,
:root[data-theme="dark"] .badge.bg-success {
  background: var(--accent) !important;
  color: #10201a !important;
}

:root[data-theme="dark"] .badge.bg-warning,
:root[data-theme="dark"] .badge.bg-warning.text-dark {
  background: #f0b90b !important;
  border-color: #f0b90b !important;
  color: #1b1606 !important;
}

:root[data-theme="dark"] .asset-unassigned-badge,
:root[data-theme="dark"] .badge.bg-light,
:root[data-theme="dark"] .badge.bg-light.text-muted,
:root[data-theme="dark"] .asset-unassigned-badge,
:root[data-theme="dark"] .badge.bg-light,
:root[data-theme="dark"] .badge.bg-light.text-muted {
  background: color-mix(in srgb, var(--bg-input), #f3e1a4 12%) !important;
  color: #f2d78a !important;
  border-color: rgba(242, 215, 138, 0.2) !important;
}

:root[data-theme="dark"] .dashboard .kpi-card,
:root[data-theme="dark"] .dashboard .kpi-cyan,
:root[data-theme="dark"] .dashboard .kpi-lime,
:root[data-theme="dark"] .dashboard .kpi-ocean,
:root[data-theme="dark"] .dashboard .kpi-amber,
:root[data-theme="dark"] .dashboard .kpi-red,
:root[data-theme="dark"] .dashboard .kpi-violet,
:root[data-theme="dark"] .dashboard .kpi-slate,
:root[data-theme="dark"] .dashboard .kpi-card,
:root[data-theme="dark"] .dashboard .kpi-cyan,
:root[data-theme="dark"] .dashboard .kpi-lime,
:root[data-theme="dark"] .dashboard .kpi-ocean,
:root[data-theme="dark"] .dashboard .kpi-amber,
:root[data-theme="dark"] .dashboard .kpi-red,
:root[data-theme="dark"] .dashboard .kpi-violet,
:root[data-theme="dark"] .dashboard .kpi-slate {
  background: var(--bg-card) !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .dashboard .kpi-card::after,
:root[data-theme="dark"] .dashboard .kpi-card::after {
  display: none !important;
}

:root[data-theme="dark"] .dashboard .kpi-icon,
:root[data-theme="dark"] .dashboard .kpi-icon {
  background: #343b40 !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}

/* Final dark-mode readability overrides */
:root[data-theme="dark"] label,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .col-form-label,
:root[data-theme="dark"] .form-check-label,
:root[data-theme="dark"] legend {
  color: #d8e7e6 !important;
  font-weight: 600 !important;
}

:root[data-theme="dark"] .form-text,
:root[data-theme="dark"] small.form-text,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .small,
:root[data-theme="dark"] .pagetitle .page-scope-label {
  color: #9fb6b5 !important;
}

:root[data-theme="dark"] #authRoleBadge,
:root[data-theme="dark"] .header-nav .nav-profile .auth-role-badge,
:root[data-theme="dark"] .header-nav .nav-profile .badge.bg-dark {
  background: #d8e8ef !important;
  color: #142126 !important;
  border: 1px solid rgba(216, 232, 239, 0.65) !important;
  font-weight: 700 !important;
}


/*--------------------------------------------------------------
# Footer Fix – eliminate dark gap below footer
# Root cause: html/body paint their background past the footer's
# bottom edge because footer is not anchored to the viewport bottom.
# Fix: flex-column body + flex:1 on #main so footer always sits flush.
--------------------------------------------------------------*/

html,
body {
  height: 100%;
  background: var(--bg) !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main {
  flex: 1 0 auto;
}

#footer {
  flex-shrink: 0;
  margin-left: 300px;
  transition: margin-left 0.3s;
  background: var(--card) !important;
  border-top: 1px solid var(--border) !important;
}

.toggle-sidebar #footer {
  margin-left: 0;
}

@media (max-width: 1199px) {
  #footer {
    margin-left: 0;
  }

  .toggle-sidebar #footer {
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  body.sidebar-icon-only #footer {
    margin-left: 92px;
  }
}

:root[data-theme="dark"] #footer {
  background: var(--bg-card) !important;
  border-top-color: var(--border) !important;
}

:root[data-theme="dark"] #footer .copyright,
:root[data-theme="dark"] #footer .credits {
  color: var(--text-muted) !important;
}


/*--------------------------------------------------------------
# Super Admin Controls – expanded shortcut-card grid
# Mirrors the Operational Management grid with a restricted
# red tint to visually signal elevated access.
--------------------------------------------------------------*/

.super-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.super-admin-grid .settings-shortcut-card {
  border-color: rgba(47, 127, 127, 0.18);
  background: linear-gradient(180deg, #f4f9f8 0%, #edf7f6 100%);
}

.super-admin-grid .settings-shortcut-card:hover,
.super-admin-grid .settings-shortcut-card:focus {
  transform: translateY(-2px);
  border-color: rgba(47, 127, 127, 0.34);
  box-shadow: 0 12px 28px rgba(47, 127, 127, 0.10);
  color: #012970;
}

.super-admin-grid .settings-shortcut-card i {
  background: rgba(47, 127, 127, 0.12);
  color: #2f7f7f;
}

:root[data-theme="dark"] .super-admin-grid .settings-shortcut-card {
  background: linear-gradient(180deg, #243236 0%, #202d31 100%) !important;
  border-color: rgba(118, 210, 210, 0.24) !important;
  color: var(--text-main);
}

:root[data-theme="dark"] .super-admin-grid .settings-shortcut-card strong {
  color: var(--text-main);
}

:root[data-theme="dark"] .super-admin-grid .settings-shortcut-card span {
  color: var(--text-muted);
}

:root[data-theme="dark"] .super-admin-grid .settings-shortcut-card:hover,
:root[data-theme="dark"] .super-admin-grid .settings-shortcut-card:focus {
  border-color: rgba(118, 210, 210, 0.40) !important;
  box-shadow: 0 12px 28px rgba(9, 20, 24, 0.20) !important;
  color: var(--text-main);
}

:root[data-theme="dark"] .super-admin-grid .settings-shortcut-card i {
  background: rgba(118, 210, 210, 0.18) !important;
  color: #b8eeee !important;
}

:root[data-theme="dark"] .form-check-input,
:root[data-theme="dark"] #employeeTermsAccepted {
  background-color: rgba(228, 235, 242, 0.08) !important;
  background-image: none !important;
  border: 1px solid rgba(228, 235, 242, 0.58) !important;
  box-shadow: 0 0 0 1px rgba(16, 32, 40, 0.35) !important;
}

:root[data-theme="dark"] .form-check-input:checked,
:root[data-theme="dark"] #employeeTermsAccepted:checked {
  background-color: #5bd1d7 !important;
  border-color: #5bd1d7 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4.5 10.5l3.5 3.5 7-7'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 0.9rem 0.9rem !important;
}

:root[data-theme="dark"] .form-check-input:focus,
:root[data-theme="dark"] #employeeTermsAccepted:focus {
  border-color: #7ce5ea !important;
  box-shadow: 0 0 0 0.2rem rgba(91, 209, 215, 0.2) !important;
}
