/* ============================================================
   AOSDESK v2 — Clean Unified Theme
   No !important wars. Progressive enhancement over Bootstrap 3.
   Palette: Teal primary (#1ABC9C), clean light surfaces.
   ============================================================ */

:root {
  --aos-primary: #1ABC9C;
  --aos-primary-dark: #16A085;
  --aos-primary-light: #E8F8F5;
  --aos-primary-soft: rgba(26,188,156,0.08);
  --aos-bg: #F5F7FA;
  --aos-surface: #FFFFFF;
  --aos-surface-hover: #F8FAFB;
  --aos-text: #2C3E50;
  --aos-text-muted: #7F8C8D;
  --aos-border: #E5E8E8;
  --aos-border-light: #F0F2F5;
  --aos-shadow: 0 1px 3px rgba(0,0,0,0.06);
  --aos-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --aos-radius: 10px;
  --aos-radius-sm: 6px;
}

/* ── BASE ── */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--aos-bg);
  color: var(--aos-text);
}

/* ── LAYOUT ── */
.wrapper {
  display: flex;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .wrapper.mini-bar .left-bar { width: 64px; }
  .wrapper.mini-bar .left-bar .text { opacity: 0; pointer-events: none; width: 0; }
  .wrapper.mini-bar .content { margin-left: 64px; }
}
@media (min-width: 769px) {
  .wrapper.mini-bar .left-bar { width: 220px; }
  .wrapper.mini-bar .content { margin-left: 220px; }
}

/* ── SIDEBAR ── */
.left-bar {
  width: 220px;
  background: var(--aos-surface);
  border-right: 1px solid var(--aos-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 1040;
  box-shadow: 1px 0 3px rgba(0,0,0,0.04);
}
.left-bar .admin-logo {
  padding: 16px;
  border-bottom: 1px solid var(--aos-border);
  text-align: center;
  flex-shrink: 0;
}
.left-bar .admin-logo img {
  max-height: 32px;
  width: auto;
}

#mainMenu {
  list-style: none;
  padding: 10px 12px;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}
#mainMenu::-webkit-scrollbar { width: 4px; }
#mainMenu::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }
#mainMenu:hover::-webkit-scrollbar-thumb { background: #d1d5db; }

#mainMenu li { margin-bottom: 2px; }
#mainMenu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--aos-radius-sm);
  color: var(--aos-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}
#mainMenu li a:hover {
  background: var(--aos-surface-hover);
  color: var(--aos-text);
}
#mainMenu li.active a,
#mainMenu li.open a {
  background: var(--aos-primary-light);
  color: var(--aos-primary);
  font-weight: 600;
}
#mainMenu li a i,
#mainMenu li a .icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* ── TOP BAR ── */
.top-bar {
  height: 56px;
  background: var(--aos-surface);
  border-bottom: 1px solid var(--aos-border);
  box-shadow: var(--aos-shadow);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.top-bar nav.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  margin: 0;
}
.top-bar .menu-bar-mobile {
  display: none;
  color: var(--aos-text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}
.top-bar .navbar-breadcrumb {
  color: var(--aos-text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar .navbar-breadcrumb a { color: var(--aos-text-muted); text-decoration: none; }
.top-bar .navbar-breadcrumb .active { color: var(--aos-text); }

/* Right side elements */
.top-bar .navbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-bar .navbar-right > li { position: relative; }
.top-bar .navbar-right > li > a {
  color: var(--aos-text-muted);
  padding: 6px 10px;
  border-radius: var(--aos-radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
}
.top-bar .navbar-right > li > a:hover,
.top-bar .navbar-right > li > a:focus {
  color: var(--aos-text);
  background: var(--aos-border-light);
}
.top-bar .navbar-right .icon-notification { font-size: 18px; }
.top-bar .navbar-right .badge.info-number {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--aos-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.top-bar .avatar-holder {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  border: 2px solid var(--aos-border);
}
.top-bar .avatar-holder img { width: 100%; height: 100%; object-fit: cover; }
.top-bar .avatar_info {
  color: var(--aos-text);
  font-weight: 500;
  font-size: 13px;
}

/* Dropdowns */
.top-bar .dropdown-menu {
  background: var(--aos-surface);
  border: 1px solid var(--aos-border);
  border-radius: var(--aos-radius);
  box-shadow: var(--aos-shadow-md);
  padding: 6px 0;
  min-width: 220px;
  margin-top: 8px;
}
.top-bar .dropdown-menu > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--aos-text);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s;
}
.top-bar .dropdown-menu > li > a:hover {
  background: var(--aos-surface-hover);
  color: var(--aos-primary);
}
.top-bar .dropdown-menu .bottom-links {
  border-top: 1px solid var(--aos-border-light);
  margin-top: 4px;
  padding-top: 4px;
}
.message-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #c9d6e5;
  vertical-align: middle;
}
.message-status-dot.online {
  background: #19b26b;
}

/* ── CONTENT ── */
.content {
  flex: 1;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--aos-bg);
}
.main-content {
  flex: 1;
  padding: 24px;
}

/* ── BUTTONS ── */
.btn-primary {
  background-color: var(--aos-primary);
  border-color: var(--aos-primary);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--aos-primary-dark);
  border-color: var(--aos-primary-dark);
}

/* ── MANAGE TABLES ──
   Keep back-office list screens compact so right-side actions remain visible
   without forcing disproportionate horizontal overflow. */
.manage-table .panel-piluku {
  overflow: hidden;
}
.manage-table .table-responsive {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.manage-table .table {
  width: 100%;
  min-width: 760px;
  table-layout: auto;
}
.manage-table .table > thead > tr > th,
.manage-table .table > tbody > tr > td {
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.35;
}
.manage-table .table > thead > tr > th {
  white-space: nowrap;
}
.manage-table .table > tbody > tr > td {
  word-break: break-word;
}
.manage-table .table > thead > tr > th:first-child,
.manage-table .table > tbody > tr > td:first-child {
  width: 42px;
}
.manage-table .table > thead > tr > th:last-child,
.manage-table .table > tbody > tr > td:last-child {
  width: 1%;
  white-space: nowrap;
}
.manage-table .table .btn,
.manage-table .table .btn-more,
.manage-table .table .edit_action,
.manage-table .table .btn-pay,
.manage-table .table_buttons .dropdown-toggle,
.manage-table .pagination-top a,
.manage-table .pagination-top strong {
  white-space: nowrap;
}
.manage-table .table .btn,
.manage-table .table .btn-more,
.manage-table .table .edit_action,
.manage-table .table .btn-pay {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 9px;
}
.manage-table .table span.badge,
.manage-table .table .label {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
}
.manage-table .panel-heading .table_buttons,
.manage-table .pagination-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1200px) {
  .manage-table .table {
    min-width: 700px;
  }
  .manage-table .table > thead > tr > th,
  .manage-table .table > tbody > tr > td {
    padding: 9px 10px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .manage-table .table {
    min-width: 620px;
  }
}
.btn-success {
  background-color: var(--aos-primary);
  border-color: var(--aos-primary);
  color: #fff;
}
.btn-success:hover,
.btn-success:focus {
  background-color: var(--aos-primary-dark);
  border-color: var(--aos-primary-dark);
}

/* ── PANELS ── */
.panel {
  background: var(--aos-surface);
  border-radius: var(--aos-radius);
  border: 1px solid var(--aos-border);
  box-shadow: var(--aos-shadow);
  margin-bottom: 20px;
}
.panel-heading {
  padding: 16px 20px 0;
  border-bottom: none;
  background: transparent;
}
.panel-heading h3, .panel-heading h4, .panel-heading h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--aos-text);
}
.panel-body { padding: 20px; }

/* ── TABS ── */
.nav-tabs {
  border-bottom: 1px solid var(--aos-border);
  margin-bottom: 16px;
}
.nav-tabs > li > a {
  color: var(--aos-text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-right: 4px;
  background: transparent;
}
.nav-tabs > li > a:hover {
  color: var(--aos-text);
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--aos-border);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  color: var(--aos-primary);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--aos-primary);
  font-weight: 600;
}

/* ── TABLES ── */
.table thead th {
  background: var(--aos-surface-hover);
  color: var(--aos-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--aos-border);
  padding: 12px 16px;
}
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--aos-border-light);
  color: var(--aos-text);
  font-size: 13px;
}
.table tbody tr:hover td {
  background: var(--aos-surface-hover);
}

/* ── FORM ELEMENTS ── */
.form-control {
  border: 1px solid var(--aos-border);
  border-radius: var(--aos-radius-sm);
  box-shadow: none;
  font-size: 13px;
  padding: 8px 12px;
  color: var(--aos-text);
}
.form-control:focus {
  border-color: var(--aos-primary);
  box-shadow: 0 0 0 3px var(--aos-primary-soft);
}
.input-group-addon {
  background: var(--aos-surface-hover);
  border: 1px solid var(--aos-border);
  color: var(--aos-text-muted);
}

/* ── DASHBOARD STATS ── */
.dashboard-stats {
  background: var(--aos-surface);
  border-radius: var(--aos-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--aos-shadow);
  border: 1px solid var(--aos-border);
  text-decoration: none;
  transition: box-shadow 0.2s;
  margin-bottom: 20px;
}
.dashboard-stats:hover {
  box-shadow: var(--aos-shadow-md);
}
.dashboard-stats .left h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--aos-text);
  margin: 0 0 4px;
}
.dashboard-stats .left h4 {
  font-size: 12px;
  color: var(--aos-text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dashboard-stats .right {
  width: 44px;
  height: 44px;
  border-radius: var(--aos-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.flatBlue  { background: #3B82F6; color: #fff; }
.flatGreen { background: #10B981; color: #fff; }
.flatRed   { background: #EF4444; color: #fff; }
.flatOrange{ background: #F97316; color: #fff; }
.flatBluec  { color: #3B82F6; }
.flatGreenc { color: #10B981; }
.flatRedc   { color: #EF4444; }
.flatOrangec{ color: #F97316; }

/* ── QUICK ACTIONS ── */

/* ── WIZARD CARDS ── */
#setup_wizard .col-md-2 {
  background: var(--aos-surface);
  border: 1px solid var(--aos-border);
  border-radius: var(--aos-radius);
  padding: 24px 12px;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
  display: block;
}
#setup_wizard .col-md-2:hover {
  box-shadow: var(--aos-shadow-md);
  transform: translateY(-3px);
  border-color: var(--aos-primary);
}
.wizard-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--aos-radius-sm);
  background: var(--aos-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(26,188,156,0.3);
}
.wizard_step_done .wizard-icon {
  background: #9ca3af;
  box-shadow: none;
  opacity: 0.7;
}
#setup_wizard h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--aos-text);
  margin: 8px 0 4px;
}
#setup_wizard p {
  font-size: 12px;
  color: var(--aos-text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
  height: auto !important;
}
#setup_wizard .btn-info {
  background: var(--aos-primary);
  border-color: var(--aos-primary);
  border-radius: var(--aos-radius-sm);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border: none;
}
#setup_wizard .btn-info:hover {
  background: var(--aos-primary-dark);
  border-color: var(--aos-primary-dark);
}
.wizard_step_done .btn-info {
  background: #6b7280;
  border-color: #6b7280;
}

/* ── SALES REGISTER ── */
.register-box .btn-success,
.register-box .btn-primary {
  background: var(--aos-primary);
  border-color: var(--aos-primary);
}
.register-box .btn-success:hover,
.register-box .btn-primary:hover {
  background: var(--aos-primary-dark);
  border-color: var(--aos-primary-dark);
}
.register-box .customer-actions .btn {
  background: var(--aos-primary);
  border-color: var(--aos-primary);
  color: #fff;
}
.register-box .customer-actions .btn:hover {
  background: var(--aos-primary-dark);
}
.register-items-header {
  background: var(--aos-surface-hover);
  border-bottom: 1px solid var(--aos-border);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--aos-text-muted);
}
.register-item-content {
  border-bottom: 1px solid var(--aos-border-light);
  padding: 12px 16px;
}
.register-item-content:hover {
  background: var(--aos-surface-hover);
}
.sale-register-totals .amount {
  color: var(--aos-primary);
  font-weight: 700;
  font-size: 18px;
}

/* ── FOOTER ── */
.footer {
  padding: 16px 24px;
  text-align: center;
  color: var(--aos-text-muted);
  font-size: 12px;
  border-top: 1px solid var(--aos-border);
  background: var(--aos-surface);
}
.footer a { color: var(--aos-primary); }

/* Hide verbose legacy footer text; keep only version */
.footer .legacy-text,
.footer p:first-child {
  display: none;
}

/* ── LOGIN ── */
.login-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f8f5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-page .panel {
  border-radius: var(--aos-radius);
  box-shadow: var(--aos-shadow-md);
  border: none;
  max-width: 420px;
  width: 100%;
}
.login-page .panel-heading {
  text-align: center;
  padding: 32px 24px 16px;
}
.login-page .panel-heading img {
  max-height: 48px;
  margin-bottom: 12px;
}
.login-page .btn-primary {
  background: var(--aos-primary);
  border-color: var(--aos-primary);
  border-radius: var(--aos-radius-sm);
  padding: 10px;
  font-weight: 600;
  width: 100%;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .left-bar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .left-bar.open {
    transform: translateX(0);
  }
  .content {
    margin-left: 0 !important;
  }
  .top-bar { left: 0; }
  .menu-bar-mobile { display: block; }
}

/* ── BOOTSTRAP OVERRIDES (minimal) ── */
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
  background-color: var(--aos-primary);
  border-color: var(--aos-primary);
}
.badge-primary {
  background-color: var(--aos-primary);
}
.alert-success {
  background-color: var(--aos-primary-light);
  border-color: var(--aos-primary);
  color: var(--aos-primary-dark);
}
.progress-bar-success {
  background-color: var(--aos-primary);
}

/* Promo panels hide */
#reseller_container,
#feedback_container,
#mercury_container,
#bluejay_container,
#test_mode_container,
.promo-panel,
.reseller-panel,
.feedback-panel,
.credit-card-panel,
.bluejay-panel,
.test-mode-panel,
.setup-wizard-promo {
  display: none !important;
}

/* ── DASHBOARD FIXES ── */
#setup_wizard .btn-info,
#setup_wizard .btn-info:focus {
  background-color: var(--aos-primary) !important;
  border-color: var(--aos-primary) !important;
  color: #fff !important;
}
#setup_wizard .btn-info:hover {
  background-color: var(--aos-primary-dark) !important;
  border-color: var(--aos-primary-dark) !important;
}
.dashboard-stats .right.flatBlue,
.dashboard-stats .right.flatGreen,
.dashboard-stats .right.flatRed,
.dashboard-stats .right.flatOrange {
  color: #fff !important;
}


/* ── SALES REGISTER FIXES ── */
.register-box .input-group-addon {
  background-color: var(--aos-surface-hover) !important;
  color: var(--aos-text-muted) !important;
  border-color: var(--aos-border) !important;
}
.register-box .input-group-addon a {
  color: var(--aos-text-muted) !important;
}
.register-box .input-group-addon a:hover {
  color: var(--aos-primary) !important;
}
.register-box .register-mode a {
  color: var(--aos-primary) !important;
}
.register-box h3 {
  color: var(--aos-text-muted) !important;
}
.register-box .flatGreenc {
  color: var(--aos-primary) !important;
}
.sale-register-totals .amount,
#subtotal,
#total,
.total-amount,
.amount-total {
  color: var(--aos-primary) !important;
}
.btn-grid.active,
.btn-grid.active:hover {
  background-color: var(--aos-primary) !important;
  border-color: var(--aos-primary) !important;
  color: #fff !important;
}


/* ── DASHBOARD FIXES ── */
#setup_wizard .btn-info,
#setup_wizard .btn-info:focus {
  background-color: var(--aos-primary) !important;
  border-color: var(--aos-primary) !important;
  color: #fff !important;
}
#setup_wizard .btn-info:hover {
  background-color: var(--aos-primary-dark) !important;
  border-color: var(--aos-primary-dark) !important;
}
.dashboard-stats .right.flatBlue,
.dashboard-stats .right.flatGreen,
.dashboard-stats .right.flatRed,
.dashboard-stats .right.flatOrange {
  color: #fff !important;
}


/* ── SALES REGISTER FIXES ── */
.register-box .input-group-addon {
  background-color: var(--aos-surface-hover) !important;
  color: var(--aos-text-muted) !important;
  border-color: var(--aos-border) !important;
}
.register-box .input-group-addon a {
  color: var(--aos-text-muted) !important;
}
.register-box .input-group-addon a:hover {
  color: var(--aos-primary) !important;
}
.register-box .register-mode a {
  color: var(--aos-primary) !important;
}
.register-box h3 {
  color: var(--aos-text-muted) !important;
}
.register-box .flatGreenc {
  color: var(--aos-primary) !important;
}
.sale-register-totals .amount,
#subtotal,
#total,
.total-amount,
.amount-total {
  color: var(--aos-primary) !important;
}
.btn-grid.active,
.btn-grid.active:hover {
  background-color: var(--aos-primary) !important;
  border-color: var(--aos-primary) !important;
  color: #fff !important;
}


/* ── OVERRIDE all.css !important wars ── */

/* Register customer addon pink fix */
.register .register-right .customer-form .input-group .input-group-addon,
.register .register-right .customer-form .input-group .input-group-addon a {
  background-color: var(--aos-surface-hover) !important;
  color: var(--aos-text-muted) !important;
  border-color: var(--aos-border) !important;
}
.register .register-right .customer-form .input-group .input-group-addon a:hover {
  color: var(--aos-primary) !important;
}

/* Input group addon global fix */
.input-group-addon {
  background-color: var(--aos-surface-hover) !important;
  border-color: var(--aos-border) !important;
}

/* Dropdown hover fix */
.dropdown-menu > li > a:hover,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover {
  background-color: var(--aos-primary-light) !important;
  color: var(--aos-primary) !important;
}

/* Nav pills active */
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background-color: var(--aos-primary) !important;
}

/* Pagination */
.pagination > li > a:hover,
.pagination > .active > a,
.pagination > .active > span {
  background-color: var(--aos-primary) !important;
  border-color: var(--aos-primary) !important;
  color: #fff !important;
}

/* Progress bar */
.progress-bar {
  background-color: var(--aos-primary) !important;
}

/* Labels and badges */
.label-primary,
.badge.bg-primary {
  background-color: var(--aos-primary) !important;
}

/* Table hover */
.table-hover > tbody > tr:hover {
  background-color: var(--aos-primary-light) !important;
}

/* List group active */
a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
  background-color: var(--aos-primary) !important;
  border-color: var(--aos-primary) !important;
}

/* Tooltip */
.tooltip-inner {
  background-color: var(--aos-text) !important;
}

/* Datepicker active */
.datepicker .datepicker-days table tbody tr .day.active,
.datepicker .datepicker-days table tbody tr .selected:hover,
.datepicker .datepicker-days table tbody tr td.today {
  background-color: var(--aos-primary) !important;
  color: #fff !important;
}

/* Select2 highlighted */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-results .select2-result-selectable.select2-highlighted {
  background-color: var(--aos-primary) !important;
}

/* Toast colors */
.toast-success {
  background-color: var(--aos-primary) !important;
}
.toast-error {
  background-color: #e9322d !important;
}
.toast-info {
  background-color: var(--aos-primary) !important;
}
.toast-warning {
  background-color: #eca700 !important;
}

/* Gritter success */
.success .gritter-item,
.success .gritter-top,
.success .gritter-bottom {
  background-color: var(--aos-primary) !important;
}

/* Manage buttons dropdown */
.manage_buttons .buttons_list .dropdown-toggle,
.manage_buttons .buttons-list .btn-more {
  background-color: var(--aos-surface-hover) !important;
  color: var(--aos-text) !important;
}

/* Admin logo */
.admin-logo {
  background-color: var(--aos-surface) !important;
}

/* Subtotal / amount links in register */
.register-box .xeditable,
.register-box .xeditable-price,
.register-box .amount,
.register-box #subtotal,
.register-box #total {
  color: var(--aos-primary) !important;
}


/* ── FORM FOCUS FIXES ── */
.form-control:focus,
input:focus,
textarea:focus,
select:focus,
.add-item-input:focus,
.add-customer-input:focus,
.keyboardTop:focus {
  border-color: var(--aos-primary) !important;
  box-shadow: 0 0 0 3px var(--aos-primary-soft) !important;
  outline: none !important;
}

/* Select2 focus */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
  border-color: var(--aos-primary) !important;
}

/* Login form focus */
.login-page .form-control:focus {
  border-color: var(--aos-primary) !important;
  box-shadow: 0 0 0 3px var(--aos-primary-soft) !important;
}


/* ── LOGIN PAGE ── */
.cloud-login {
  background: linear-gradient(135deg, #e8f8f5 0%, #d1f2eb 50%, #a9dfbf 100%) !important;
}
.cloud-login .flip-container .front,
.cloud-login .panel {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}
.cloud-login .btn-primary {
  background: var(--aos-primary) !important;
  border-color: var(--aos-primary) !important;
  border-radius: 10px !important;
  padding: 12px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(26,188,156,0.3) !important;
}
.cloud-login .btn-primary:hover {
  background: var(--aos-primary-dark) !important;
  border-color: var(--aos-primary-dark) !important;
}
.cloud-login .form-control {
  background: #f8fafb !important;
  border-color: var(--aos-border) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
}
.cloud-login .form-control:focus {
  border-color: var(--aos-primary) !important;
  box-shadow: 0 0 0 3px var(--aos-primary-soft) !important;
}
.cloud-login .badge {
  background: var(--aos-primary) !important;
  color: #fff !important;
}
.cloud-login a {
  color: var(--aos-primary) !important;
}

/* Login button override */
.cloud-login .btn-login,
.btn-login {
  background: var(--aos-primary) !important;
  background-image: none !important;
  border-color: var(--aos-primary) !important;
  box-shadow: 0 4px 12px rgba(26,188,156,0.3) !important;
}
.cloud-login .btn-login:hover,
.btn-login:hover {
  background: var(--aos-primary-dark) !important;
  background-image: none !important;
  border-color: var(--aos-primary-dark) !important;
}


/* ── NAV TABS OVERRIDE ── */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  color: var(--aos-primary) !important;
  border-bottom-color: var(--aos-primary) !important;
}
.nav-tabs > li > a:hover {
  color: var(--aos-text) !important;
  border-bottom-color: var(--aos-border) !important;
}




/* ── TOP BAR CENTER LOGO ── */
.top-bar {
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.top-bar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.top-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.top-bar-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.top-bar-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--aos-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.top-bar-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--aos-text);
  letter-spacing: 0.5px;
}
.top-bar-brand-subtext {
  display: none;
}

body.storefront-home-pilot {
  --aos-primary: #0b8fe9;
  --aos-primary-dark: #0a7fd0;
  --aos-primary-light: #e8f4fc;
  --aos-primary-soft: rgba(11,143,233,0.08);
  --aos-bg: #eef4fa;
  --aos-surface: #ffffff;
  --aos-surface-hover: #f6f9fc;
  --aos-text: #1f3045;
  --aos-text-muted: #708198;
  --aos-border: #dce6f0;
  --aos-border-light: #ecf2f7;
  --aos-shadow: 0 6px 16px rgba(21,41,64,0.06);
  --aos-shadow-md: 0 18px 40px rgba(21,41,64,0.12);
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fa 100%);
}
body.storefront-home-pilot .top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 78px;
  padding: 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  border-bottom: 1px solid #dce6f0;
  box-shadow: 0 10px 28px rgba(21,41,64,0.06);
  overflow: visible;
}
body.storefront-home-pilot .top-bar-center {
  position: static;
  transform: none;
  left: auto;
  width: auto;
  flex: 0 0 auto;
}
body.storefront-home-pilot .top-bar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
body.storefront-home-pilot .top-bar-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b8fe9 0%, #4aaeff 100%);
  box-shadow: 0 10px 24px rgba(11,143,233,0.22);
  font-size: 18px;
}
body.storefront-home-pilot .top-bar-brand-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  color: #22364d;
  line-height: 1.05;
}
body.storefront-home-pilot .top-bar-brand-subtext {
  display: block;
  margin-top: 2px;
  color: #7d8da1;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}
body.storefront-home-pilot .top-bar .menu-bar-mobile {
  display: none;
  color: #6f8197;
}
body.storefront-home-pilot .storefront-home-top-nav-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none;
  position: relative;
  z-index: 50;
}
body.storefront-home-pilot .storefront-home-top-nav-wrap::-webkit-scrollbar {
  display: none;
}
body.storefront-home-pilot .storefront-home-top-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
body.storefront-home-pilot .storefront-home-top-nav > li {
  margin: 0;
  padding: 0;
  position: relative;
}
body.storefront-home-pilot .storefront-home-top-nav > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d7e2ee;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  color: #2f4055;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(21,41,64,0.04);
}
body.storefront-home-pilot .storefront-home-top-nav > li > a:hover,
body.storefront-home-pilot .storefront-home-top-nav > li > a:focus {
  color: #0b8fe9;
  border-color: #bfdcf7;
  background: #edf6fd;
}
body.storefront-home-pilot .storefront-home-top-nav > li.active > a {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #2f86f6 0%, #5ab2ff 100%);
  box-shadow: 0 12px 26px rgba(47,134,246,0.22);
}
body.storefront-home-pilot .storefront-home-nav-group .group-caret {
  margin-left: 5px;
  font-size: 11px;
  opacity: 0.65;
}
body.storefront-home-pilot .storefront-home-nav-group {
  position: relative;
}
body.storefront-home-pilot .storefront-home-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d7e2ee;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  color: #2f4055;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(21,41,64,0.04);
  cursor: pointer;
}
body.storefront-home-pilot .storefront-home-nav-trigger:hover,
body.storefront-home-pilot .storefront-home-nav-trigger:focus {
  color: #0b8fe9;
  border-color: #bfdcf7;
  background: #edf6fd;
  outline: none;
}
body.storefront-home-pilot .storefront-home-nav-group.active .storefront-home-nav-trigger,
body.storefront-home-pilot .storefront-home-nav-group.is-open .storefront-home-nav-trigger {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #2f86f6 0%, #5ab2ff 100%);
  box-shadow: 0 12px 26px rgba(47,134,246,0.22);
}
body.storefront-home-pilot .storefront-home-nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  padding: 8px;
  border: 1px solid #dce6f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(21,41,64,0.12);
  z-index: 3000;
}
body.storefront-home-pilot .storefront-home-nav-group.is-open .storefront-home-nav-submenu {
  display: block;
}
body.storefront-home-pilot .storefront-home-nav-submenu > a {
  display: block;
  min-height: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: transparent;
  color: #2f4055;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
}
body.storefront-home-pilot .storefront-home-nav-submenu > a:hover,
body.storefront-home-pilot .storefront-home-nav-submenu > a:focus,
body.storefront-home-pilot .storefront-home-nav-submenu > a.active {
  color: #0b8fe9;
  background: #edf6fd;
}
body.storefront-home-pilot .top-bar .navbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  flex: 0 0 auto;
}
body.storefront-home-pilot .top-bar .navbar-right > li {
  margin: 0;
}
body.storefront-home-pilot .top-bar .navbar-right > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dce6f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  color: #314760;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(21,41,64,0.04);
}
body.storefront-home-pilot .top-bar .navbar-right > li > a:hover,
body.storefront-home-pilot .top-bar .navbar-right > li > a:focus {
  color: #0b8fe9;
  background: #edf6fd;
  border-color: #bfdcf7;
}
body.storefront-home-pilot .top-bar .navbar-right .icon-notification {
  font-size: 20px;
}
body.storefront-home-pilot .top-bar .navbar-right .badge.info-number {
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fff;
  background: #0b8fe9;
  box-shadow: 0 4px 10px rgba(11,143,233,0.2);
  font-size: 11px;
}
body.storefront-home-pilot .top-bar .navbar-right .avatar_width {
  min-width: 245px;
  justify-content: flex-start;
  gap: 11px;
  padding-right: 14px;
}
body.storefront-home-pilot .top-bar .avatar-holder {
  width: 31px;
  height: 31px;
  border: 2px solid #dbe5ef;
}
body.storefront-home-pilot .top-bar .avatar_info {
  color: #22364d;
  font-weight: 700;
  font-size: 14px;
}
body.storefront-home-pilot .top-bar .dropdown-menu {
  margin-top: 10px;
  border: 1px solid #dce6f0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(21,41,64,0.12);
  padding: 8px;
}
body.storefront-home-pilot .top-bar .dropdown-menu > li > a {
  border-radius: 12px;
  min-height: 44px;
  font-weight: 600;
}
body.storefront-home-pilot .main-content {
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fa 100%);
}
body.storefront-home-pilot .wrapper {
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fa 100%);
}
body.storefront-home-pilot .left-bar {
  display: none !important;
}
body.storefront-home-pilot .content {
  margin-left: 0;
}

@media (max-width: 1200px) {
  body.storefront-home-pilot .top-bar {
    gap: 8px;
    padding: 0 14px;
  }
  body.storefront-home-pilot .top-bar .navbar-right .avatar_width {
    min-width: 205px;
  }
}

@media (max-width: 768px) {
  body.storefront-home-pilot .top-bar {
    height: auto;
    padding: 12px 14px;
    flex-wrap: wrap;
  }
  body.storefront-home-pilot .top-bar-center {
    flex: 1 1 auto;
  }
  body.storefront-home-pilot .storefront-home-top-nav-wrap {
    order: 3;
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    overflow-y: visible;
  }
  body.storefront-home-pilot .storefront-home-top-nav > li > a {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }
  body.storefront-home-pilot .top-bar .navbar-right {
    width: 100%;
    justify-content: flex-end;
  }
  body.storefront-home-pilot .top-bar .navbar-right .avatar_width {
    min-width: 0;
    width: auto;
  }
  body.storefront-home-pilot .content {
    margin-left: 0;
  }
}

#mainMenu .menu-group > .menu-group-toggle {
  position: relative;
}
#mainMenu .menu-group > .menu-group-toggle .menu-group-caret {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.2s ease;
}
#mainMenu .menu-group.open > .menu-group-toggle .menu-group-caret {
  transform: rotate(180deg);
}
#mainMenu .menu-group-children {
  display: none;
  list-style: none;
  padding: 6px 0 0;
  margin: 0;
}
#mainMenu .menu-group.open > .menu-group-children {
  display: block;
}
#mainMenu .menu-group-children > li {
  margin-bottom: 2px;
}
#mainMenu .menu-group-children > li > a {
  min-height: 40px;
  padding-left: 46px !important;
  padding-right: 14px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #6d7c92 !important;
}
#mainMenu .menu-group-children > li > a:hover,
#mainMenu .menu-group-children > li.active > a {
  background: rgba(11,143,233,0.08) !important;
  color: #1f3045 !important;
}
#mainMenu .menu-group-children > li > a i {
  width: 18px;
  font-size: 14px;
}

/* Sidebar logo - clean image only */
.left-bar .admin-logo {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--aos-border) !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  background-color: var(--aos-surface) !important;
  position: relative !important;
  width: 100% !important;
  display: block !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
}
.left-bar .admin-logo img {
  max-height: 32px !important;
  width: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* ── HIDE SIDEBAR LOGO COMPLETELY ── */
.left-bar .admin-logo {
  display: none !important;
}

/* ── SIDEBAR V2 ENHANCED ── */

/* Smooth background gradient */
.left-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%) !important;
  box-shadow: 2px 0 12px rgba(0,0,0,0.06) !important;
}

/* Better spacing */
#mainMenu {
  padding: 20px 10px !important;
}
#mainMenu li {
  margin-bottom: 6px !important;
  position: relative;
}

/* Item base */
#mainMenu li a {
  padding: 12px 16px !important;
  border-radius: 12px !important;
  color: #64748b !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  gap: 14px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

/* Hover: subtle lift + background tint */
#mainMenu li a:hover {
  background: rgba(26, 188, 156, 0.07) !important;
  color: #2c3e50 !important;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(26,188,156,0.08);
}

/* Focus ring */
#mainMenu li a:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(26,188,156,0.25) !important;
  background: rgba(26, 188, 156, 0.07) !important;
}

/* Active item: gradient background + left indicator */
#mainMenu li.active a,
#mainMenu li.open a {
  background: linear-gradient(135deg, rgba(26,188,156,0.14) 0%, rgba(26,188,156,0.04) 100%) !important;
  color: var(--aos-primary) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 12px rgba(26,188,156,0.15) !important;
}

/* Animated left green indicator bar */
#mainMenu li.active::before,
#mainMenu li.open::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 28px;
  background: var(--aos-primary);
  border-radius: 0 4px 4px 0;
  animation: slideInIndicator 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInIndicator {
  from { transform: translateY(-50%) scaleY(0); opacity: 0; }
  to   { transform: translateY(-50%) scaleY(1); opacity: 1; }
}

/* Icon enhancements */
#mainMenu li a i,
#mainMenu li a .icon {
  font-size: 20px !important;
  width: 26px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#mainMenu li.active a i,
#mainMenu li.active a .icon,
#mainMenu li.open a i,
#mainMenu li.open a .icon {
  color: var(--aos-primary) !important;
  transform: scale(1.15);
}

/* Logout separator */
#mainMenu li:last-child {
  margin-top: 12px !important;
  padding-top: 8px !important;
  border-top: 1px solid var(--aos-border) !important;
}

/* Better scrollbar */
#mainMenu::-webkit-scrollbar { width: 5px !important; }
#mainMenu::-webkit-scrollbar-thumb { 
  background: #e2e8f0 !important; 
  border-radius: 10px !important; 
}
#mainMenu:hover::-webkit-scrollbar-thumb { 
  background: #94a3b8 !important; 
}

/* ── SIDEBAR ACTIVE ITEM FIX ── */

/* Force correct active background over all.css */
.left-bar .menu-parent > li.active a,
.left-bar .menu-parent > li.open a,
.wrapper.mini-bar.sales-bar .left-bar .menu-parent > li.active a,
.wrapper .left-bar #mainMenu li.active a,
body .left-bar .menu-parent li.active a {
  background: linear-gradient(135deg, rgba(26,188,156,0.14) 0%, rgba(26,188,156,0.04) 100%) !important;
  background-color: transparent !important;
  color: var(--aos-primary) !important;
}

/* Ensure hover doesn't override active */
.left-bar .menu-parent > li.active a:hover,
.left-bar .menu-parent > li.open a:hover {
  background: linear-gradient(135deg, rgba(26,188,156,0.18) 0%, rgba(26,188,156,0.06) 100%) !important;
  color: var(--aos-primary-dark) !important;
}

/* Dark mode / sales-bar override fix */
.wrapper.mini-bar.sales-bar .left-bar .menu-parent li.active,
.wrapper .left-bar .menu-parent li.active {
  background: transparent !important;
}

/* Ensure indicator is visible */
.left-bar .menu-parent > li.active::before,
.left-bar .menu-parent > li.open::before {
  z-index: 10;
}

/* ── SIDEBAR TEXT VISIBILITY FIX ── */

/* Force all menu text to be clearly visible */
#mainMenu li a {
  color: #475569 !important;
}

#mainMenu li a:hover {
  color: #1e293b !important;
}

#mainMenu li.active a,
#mainMenu li.open a {
  color: var(--aos-primary) !important;
}

/* Ensure text elements are never hidden */
#mainMenu li a .text {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline !important;
}

/* Mini-bar text visibility override */
.wrapper.mini-bar .left-bar .menu-parent li a .text,
.wrapper.mini-bar.sales-bar .left-bar .menu-parent li a .text {
  opacity: 1 !important;
  visibility: visible !important;
  width: auto !important;
  display: inline !important;
}

/* Override any all.css text hiding */
.left-bar .menu-parent > li a span.text,
.side-bar .menu-parent > li a span.text {
  opacity: 1 !important;
  display: inline !important;
  visibility: visible !important;
}

/* ── FORCE SIDEBAR TEXT ALWAYS VISIBLE ── */

/* Override all.css mini-bar text hiding completely */
.wrapper.mini-bar .left-bar .menu-parent li span.text,
.wrapper .left-bar .menu-parent li span.text,
.left-bar .menu-parent li span.text,
#mainMenu li a span.text,
.menu-parent li a .text {
  display: inline !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  line-height: inherit !important;
  animation: none !important;
  -webkit-animation: none !important;
  transform: none !important;
}

/* Override hover text hiding from all.css */
.wrapper.mini-bar .left-bar .menu-parent li:hover span.text,
.wrapper.mini-bar .left-bar .menu-parent li span.text,
.wrapper .left-bar .menu-parent li:hover span.text {
  display: inline !important;
  opacity: 1 !important;
}

/* Ensure items are always full width */
.wrapper.mini-bar .left-bar .menu-parent li a,
.wrapper .left-bar .menu-parent li a {
  width: auto !important;
  text-align: left !important;
  display: flex !important;
}

/* Remove mini-bar item height restriction */
.wrapper.mini-bar .left-bar .menu-parent li,
.wrapper .left-bar .menu-parent li {
  height: auto !important;
}

/* ── SIDEBAR ACTIVE ITEM — GRAY INSTEAD OF DARK ── */

/* Active item: light gray background */
#mainMenu li.active a,
#mainMenu li.open a,
.left-bar .menu-parent > li.active a,
.left-bar .menu-parent > li.open a,
.wrapper .left-bar #mainMenu li.active a,
body .left-bar .menu-parent li.active a {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  color: var(--aos-primary) !important;
  box-shadow: none !important;
}

/* Active item hover: slightly darker gray */
#mainMenu li.active a:hover,
#mainMenu li.open a:hover,
.left-bar .menu-parent > li.active a:hover,
.left-bar .menu-parent > li.open a:hover {
  background: #e2e8f0 !important;
  background-color: #e2e8f0 !important;
  color: var(--aos-primary-dark) !important;
}

/* Keep the green left indicator */
#mainMenu li.active::before,
#mainMenu li.open::before {
  background: var(--aos-primary) !important;
}

/* Keep icon green and scaled */
#mainMenu li.active a i,
#mainMenu li.active a .icon,
#mainMenu li.open a i,
#mainMenu li.open a .icon {
  color: var(--aos-primary) !important;
}

/* ── OVERRIDE all.css DARK HOVER/ACTIVE ── */

/* Kill the black background on hover/active */
.left-bar .menu-parent > li:hover,
.left-bar .menu-parent > li.active,
.side-bar .menu-parent > li:hover,
.side-bar .menu-parent > li.active {
  background-color: #f1f5f9 !important;
  background: #f1f5f9 !important;
  border-left: 4px solid var(--aos-primary) !important;
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Specific module border colors → all green */
.left-bar .menu-parent > li:hover.home,
.left-bar .menu-parent > li.active.home,
.left-bar .menu-parent > li:hover.customers,
.left-bar .menu-parent > li.active.customers,
.left-bar .menu-parent > li:hover.items,
.left-bar .menu-parent > li.active.items,
.left-bar .menu-parent > li:hover.reports,
.left-bar .menu-parent > li.active.reports,
.left-bar .menu-parent > li:hover.sales,
.left-bar .menu-parent > li.active.sales {
  border-left: 4px solid var(--aos-primary) !important;
}

/* Ensure text is visible on hover/active li */
.left-bar .menu-parent > li:hover a,
.left-bar .menu-parent > li.active a {
  color: var(--aos-primary) !important;
}

.left-bar .menu-parent > li:hover a i,
.left-bar .menu-parent > li.active a i {
  color: var(--aos-primary) !important;
}

/* ── DASHBOARD V2 ENHANCED ── */

/* Stat cards: more modern */
.dashboard-stats {
  border-radius: 14px !important;
  padding: 24px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  border: 1px solid var(--aos-border) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.dashboard-stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--aos-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.dashboard-stats:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
}

.dashboard-stats:hover::before {
  opacity: 1;
}

.dashboard-stats .left h3 {
  font-size: 32px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.dashboard-stats .left h4 {
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
}

.dashboard-stats .right {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  font-size: 24px !important;
}

/* Wizard: cleaner spacing */
#setup_wizard_container {
  margin-bottom: 24px;
}

#setup_wizard_container .panel {
  border-radius: var(--aos-radius) !important;
  border: 1px solid var(--aos-border) !important;
}

#setup_wizard {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#setup_wizard .col-md-2 {
  flex: 1 1 150px;
  min-width: 150px;
  max-width: 200px;
  padding: 20px 12px !important;
}

.wizard-icon {
  width: 48px !important;
  height: 48px !important;
  font-size: 22px !important;
  border-radius: 12px !important;
}

#setup_wizard h4 {
  font-size: 13px !important;
  margin-top: 12px !important;
}

#setup_wizard p {
  font-size: 11px !important;
  color: var(--aos-text-muted) !important;
  margin-bottom: 12px !important;
}

/* Quick actions: modern cards */




/* Chart tabs: pill style */
.nav-tabs.piluku-tabs {
  border-bottom: none !important;
  display: inline-flex;
  background: var(--aos-surface-hover);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px !important;
}

.nav-tabs.piluku-tabs > li {
  margin: 0 !important;
}

.nav-tabs.piluku-tabs > li > a {
  border: none !important;
  border-bottom: none !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--aos-text-muted) !important;
  background: transparent !important;
}

.nav-tabs.piluku-tabs > li > a:hover {
  color: var(--aos-text) !important;
  background: transparent !important;
}

.nav-tabs.piluku-tabs > li.active > a,
.nav-tabs.piluku-tabs > li.active > a:focus,
.nav-tabs.piluku-tabs > li.active > a:hover {
  background: var(--aos-surface) !important;
  color: var(--aos-primary) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  border: none !important;
}

/* Chart container */
.tab-content.piluku-tab-content {
  background: var(--aos-surface);
  border-radius: var(--aos-radius);
  padding: 20px;
  border: 1px solid var(--aos-border);
}

/* Welcome message */
h5.text-center {
  color: var(--aos-text-muted);
  font-size: 14px;
  font-weight: 500;
  margin: 24px 0 16px;
}

/* ═══════════════════════════════════════════════
   DASHBOARD TRANSFORMATION — Premium Edition
   ═══════════════════════════════════════════════ */

/* ── STAT CARDS: Premium gradient cards ── */
.dashboard-stats {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border-radius: 16px !important;
  padding: 28px 24px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02) !important;
  border: 1px solid rgba(226,232,240,0.6) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

/* Top accent line per card */
.dashboard-stats::after {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  opacity: 0.6;
  transition: all 0.4s ease;
}

/* Card 1 (Sales) — blue accent */
.dashboard-stats:nth-child(1)::after,
.col-lg-3:nth-child(1) .dashboard-stats::after {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Card 2 (Customers) — green accent */
.col-lg-3:nth-child(2) .dashboard-stats::after {
  background: linear-gradient(90deg, var(--aos-primary), #34d399);
}

/* Card 3 (Items) — red accent */
.col-lg-3:nth-child(3) .dashboard-stats::after {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Card 4 (Item Kits) — orange accent */
.col-lg-3:nth-child(4) .dashboard-stats::after {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.dashboard-stats:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04) !important;
}

.dashboard-stats:hover::after {
  opacity: 1;
  left: 16px; right: 16px;
}

/* Big numbers */
.dashboard-stats .left h3 {
  font-size: 36px !important;
  font-weight: 800 !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.02em;
}

/* Labels */
.dashboard-stats .left h4 {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em !important;
  color: #94a3b8 !important;
}

/* Icon containers with soft backgrounds */
.dashboard-stats .right {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  font-size: 26px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* Soft icon backgrounds */
.dashboard-stats .right.flatBlue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
}
.dashboard-stats .right.flatGreen {
  background: linear-gradient(135deg, var(--aos-primary), #34d399) !important;
}
.dashboard-stats .right.flatRed {
  background: linear-gradient(135deg, #ef4444, #f87171) !important;
}
.dashboard-stats .right.flatOrange {
  background: linear-gradient(135deg, #f97316, #fb923c) !important;
}

/* Text colors matching icons */
.dashboard-stats .left h3.flatBluec { color: #3b82f6 !important; }
.dashboard-stats .left h3.flatGreenc { color: var(--aos-primary) !important; }
.dashboard-stats .left h3.flatRedc { color: #ef4444 !important; }
.dashboard-stats .left h3.flatOrangec { color: #f97316 !important; }

/* ── QUICK ACTIONS: Modern buttons ── */






/* ── WELCOME MESSAGE ── */
h5.text-center {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin: 32px 0 20px !important;
  letter-spacing: 0.02em;
}

/* ── SETUP WIZARD ── */
#setup_wizard_container {
  margin-bottom: 28px;
}

#setup_wizard_container .panel {
  border: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

#setup_wizard_container .panel-body {
  padding: 24px !important;
}

#setup_wizard_container h4 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 16px !important;
}

#setup_wizard_container hr {
  border-color: #e2e8f0 !important;
  margin: 16px 0 20px !important;
}

#setup_wizard {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#setup_wizard .col-md-2 {
  flex: 1 1 150px;
  max-width: 180px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 20px 12px !important;
  text-align: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  transition: all 0.3s ease !important;
}

#setup_wizard .col-md-2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06) !important;
  border-color: var(--aos-primary) !important;
}

.wizard-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  font-size: 22px !important;
  box-shadow: 0 4px 12px rgba(26,188,156,0.2) !important;
}

.wizard_step_done .wizard-icon {
  background: #cbd5e1 !important;
  box-shadow: none !important;
  opacity: 0.5 !important;
}

#setup_wizard h4 {
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 12px 0 6px !important;
  color: #1e293b !important;
}

#setup_wizard p {
  font-size: 11px !important;
  color: #94a3b8 !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
}

#setup_wizard .btn-info {
  border-radius: 10px !important;
  padding: 6px 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* ── CHART SECTION ── */
.panel:has(.piluku-tabs) {
  border: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
  border-radius: 16px !important;
}

.panel:has(.piluku-tabs) .panel-body {
  padding: 28px !important;
}

.panel:has(.piluku-tabs) .panel-heading {
  padding: 0 0 16px !important;
  background: transparent !important;
  border: none !important;
}

.panel:has(.piluku-tabs) .panel-heading h4 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

/* Pill tabs */
.nav-tabs.piluku-tabs {
  border-bottom: none !important;
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
  margin-bottom: 24px !important;
}

.nav-tabs.piluku-tabs > li {
  margin: 0 !important;
}

.nav-tabs.piluku-tabs > li > a {
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 28px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background: transparent !important;
  transition: all 0.25s ease !important;
}

.nav-tabs.piluku-tabs > li > a:hover {
  color: #334155 !important;
  background: rgba(255,255,255,0.5) !important;
}

.nav-tabs.piluku-tabs > li.active > a,
.nav-tabs.piluku-tabs > li.active > a:focus,
.nav-tabs.piluku-tabs > li.active > a:hover {
  background: #ffffff !important;
  color: var(--aos-primary) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  border: none !important;
}

/* Chart container */
.tab-content.piluku-tab-content {
  background: #f8fafc;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}

/* Canvas chart styling */
canvas#charts {
  border-radius: 10px;
}

/* ── TABLE: Items expiring ── */
.panel.panel-piluku {
  border: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.panel.panel-piluku .panel-body {
  padding: 0 !important;
}

.panel.panel-piluku .table {
  margin: 0 !important;
}

.panel.panel-piluku .table thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.panel.panel-piluku .table tbody td {
  padding: 14px 20px !important;
  color: #334155 !important;
  font-size: 13px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.panel.panel-piluku .table tbody tr:hover td {
  background: #f8fafc !important;
}

/* ── ALERTS ── */
.alert-success {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
}

.alert-danger {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
}

/* ── PROGRESS BARS ── */
.progress {
  height: 8px !important;
  border-radius: 100px !important;
  background: #e2e8f0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.progress-bar {
  background: var(--aos-primary) !important;
  border-radius: 100px !important;
  box-shadow: none !important;
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent) !important;
}

/* ── FIX: Stat cards spacing ── */
.dashboard-stats {
  padding: 20px 20px !important;
  min-height: 110px !important;
}

.dashboard-stats .left h3 {
  font-size: 28px !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
  line-height: 1.2 !important;
}

.dashboard-stats .left h4 {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  margin: 0 !important;
}

/* ── FIX: Quick actions grid ── */




/* ── FIX: Welcome message spacing ── */
h5.text-center {
  margin: 24px 0 16px !important;
  font-size: 14px !important;
}

/* ── FIX: Stat cards layout ── */
.dashboard-stats {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.dashboard-stats .left {
  flex: 1;
}

.dashboard-stats .right {
  width: 48px !important;
  height: 48px !important;
  font-size: 22px !important;
  border-radius: 14px !important;
  flex-shrink: 0 !important;
  margin-left: 12px !important;
}

/* ── FIX: Wizard icons bigger ── */
.wizard-icon {
  width: 56px !important;
  height: 56px !important;
  font-size: 26px !important;
  border-radius: 16px !important;
  margin-bottom: 12px !important;
}

#setup_wizard .col-md-2 {
  padding: 24px 14px !important;
}

#setup_wizard h4 {
  font-size: 14px !important;
  margin: 8px 0 6px !important;
}

#setup_wizard p {
  font-size: 12px !important;
  margin-bottom: 14px !important;
  min-height: 36px !important;
}

/* ── FIX: Quick action hover persistent green ── */


/* Remove any green bg from list-group-item */
.list-group-item {
  background: #ffffff !important;
}

/* ── FIX: Quick actions spacing ── */


@media (max-width: 768px) {
}






/* ── FIX: Quick actions — visual only, keep Bootstrap grid ── */

/* Kill flexbox override on the row */








/* ── REMOVE persistent green hover on quick actions ── */




/* ── FIX: Quick actions — prevent overlap ── */




/* Ensure row clears properly */

/* ============================================
   QUICK ACTIONS — clean unified styles
   ============================================ */
.quick-actions {
  margin-top: 8px;
}

.quick-actions > div[class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 12px;
}

.quick-actions .list-group {
  margin-bottom: 0;
}

.quick-actions .list-group-item {
  background: #FFFFFF;
  border: 1px solid #E5E8E8;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #2C3E50;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.quick-actions .list-group-item:hover {
  border-color: #1ABC9C;
  color: #1ABC9C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26,188,156,.15);
  text-decoration: none;
}

.quick-actions .list-group-item i,
.quick-actions .list-group-item .icon {
  font-size: 20px;
  color: #1ABC9C;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,188,156,.08);
  border-radius: 8px;
  flex-shrink: 0;
}

.quick-actions .list-group-item:hover i,
.quick-actions .list-group-item:hover .icon {
  background: rgba(26,188,156,.15);
  color: #16A085;
}
.text-info { color: #1ABC9C !important; }
