/* Self-hosted fonts bundled to avoid a separate stylesheet request. */
@font-face{font-family:Poppins;font-style:normal;font-weight:300;font-display:swap;src:url('/assets/fonts/poppins-300.woff2') format('woff2')}
@font-face{font-family:Poppins;font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/poppins-400.woff2') format('woff2')}
@font-face{font-family:Poppins;font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/poppins-500.woff2') format('woff2')}
@font-face{font-family:Poppins;font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/poppins-600.woff2') format('woff2')}
@font-face{font-family:Poppins;font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/poppins-700.woff2') format('woff2')}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/playfair-display.woff2') format('woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/dm-sans.woff2') format('woff2')}

/* Dashboard CSS based on Rafa.tn Style */
:root {
  --bg: #FAF7F2;
  --white: #FFFFFF;
  --primary: #C89D3C;
  --bs-primary: #C89D3C;
  --bs-primary-rgb: 200, 157, 60;
  --primary-light: #D9B45F;
  --primary-dark: #A77C20;
  --accent: #0D1B2A;
  --gray-50: #FAF7F2;
  --gray-100: #F6EDE1;
  --gray-200: #E6E6E6;
  --gray-500: #77716B;
  --gray-700: #44413E;
  --gray-800: #263746;
  --gray-900: #0D1B2A;
  --success: #2E7D65;
  --font-inter: 'Poppins', sans-serif;
  --font-cairo: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;
  
  --sidebar-width: 260px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: .4s cubic-bezier(.4, 0, .2, 1);
  --shadow-sm: 0 1px 3px rgba(42, 21, 15, 0.06), 0 1px 2px rgba(42, 24, 15, 0.04);
  --shadow-md: 0 4px 16px rgba(42, 24, 15, 0.08), 0 2px 6px rgba(42, 26, 15, 0.04);
  --shadow-lg: 0 10px 40px rgba(42, 23, 15, 0.1), 0 4px 12px rgba(42, 25, 15, 0.06);
  --shadow-xl: 0 20px 60px rgba(61, 40, 20, 0.12), 0 8px 20px rgba(42, 28, 15, 0.08);
  --shadow-primary: 0 8px 24px rgba(200, 157, 108, .24);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;


}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-800);
  margin: 0;
  overflow-x: hidden;
  display: flex;
}
.primary{background:var(--primary);color:var(--primary)}
.purple{background:#5b21b6;color:#5b21b6}
.yellow{background:#f5b400;color:#f5b400}
/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cairo);
  font-weight: 700;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
.text-primary { color: var(--primary) !important; }
.bg-primary-soft { background-color: rgba(229, 120, 70, 0.1); }
.bg-soft { background-color: rgba(229, 120, 70, 0.1); }
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1); }
.bg-warning-soft { background-color: rgba(245, 158, 11, 0.1); }
.bg-danger-soft { background-color: rgba(239, 68, 68, 0.1); }
.bg { background-color: var(--primary) !important; color: #fff !important; }
.card-header {
  background: #fff;
}

.form-control, .form-select { 
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus { 
  box-shadow: none !important;
  border: 1.5px solid var(--primary) !important;
}
.form-group {
  margin-bottom: 16px;
}
label { 
  font-weight: 700;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
label[req]::after {
    content: " *";
    color: red;
    font-weight: bold;
}
a {
    text-decoration: none !important;
}

@media (min-width: 992px) {
  .w-lg-10 { width: 10% !important; }
  .w-lg-25 { width: 25% !important; }
  .w-lg-35 { width: 35% !important; }
  .w-lg-50 { width: 50% !important; }
  .w-lg-75 { width: 75% !important; }
  .w-lg-100 { width: 100% !important; }
}

@media (min-width: 768px) {
  .w-md-25 { width: 25% !important; }
  .w-md-50 { width: 50% !important; }
  .w-md-75 { width: 75% !important; }
  .w-md-100 { width: 100% !important; }
}

@media (min-width: 576px) {
  .w-sm-25 { width: 25% !important; }
  .w-sm-50 { width: 50% !important; }
  .w-sm-75 { width: 75% !important; }
  .w-sm-100 { width: 100% !important; }
}
.div-input {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    min-height: calc(1.5em + .65rem + calc(var(--bs-border-width) * 2));
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background: var(--white) !important;
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s
}

.bg-input {
    background: var(--bg) !important;
}

.custom-checkbox {
  display: none;
}
.slider {
  width: 60px;
  height: 20px;
  background-color: rgb(175, 175, 175);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 4px solid transparent;
  transition: .3s;
  box-shadow: 0 0 10px 0 rgb(0, 0, 0, 0.25) inset;
  cursor: pointer;
}

.slider::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fafafa;
  transform: translateX(-30px);
  border-radius: 20px;
  transition: .3s;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.custom-checkbox:checked ~ .slider::before {
  transform: translateX(30px);
  box-shadow: 0 0 10px 3px rgba(36, 36, 36, 0.25);
}

.custom-checkbox:checked ~ .slider {
  background-color: #07c98b;
}

.custom-checkbox:active ~ .slider::before {
  transform: translate(0);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: #fff;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
}

.sidebar-brand {
  padding: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-900);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.accent-text {
  color: var(--accent);
}

.sidebar-nav {
  
  list-style: none;
  padding: 16px 0;
  margin: 0;
  flex: 1;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--gray-600);
  font-weight: bolder;
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(79, 70, 229, 0.05);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.sidebar-footer {
  padding: 16px 0;
  border-top: 1px solid var(--gray-100);
}
.sidebar-footer .nav-link {
  padding: 12px 24px;
  color: var(--gray-600);
  font-weight: 500;
  text-decoration: none;
  display: block;
}
.sidebar-footer .nav-link:hover {
  color: var(--primary);
}

/* Submenu */
.sidebar-nav .submenu-list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.02);
}
.sidebar-nav .submenu-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px 10px 48px;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav .submenu-list li.active a,
.sidebar-nav .submenu-list li a:hover {
  color: var(--primary);
  border-left: 3px solid var(--primary);
}
.sidebar-nav .submenu.active .submenu-list {
  display: block;
}
.sidebar-nav .subdrop {
  position: relative;
}
.sidebar-nav .subdrop::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 16px;
  height: 16px;
  background: center / 16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}
.sidebar-nav .submenu.active .subdrop::after {
  transform: translateY(-50%) rotate(180deg);
}
.sidebar-nav .submenu.active > .nav-link {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  border-left: 3px solid var(--primary);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: var(--transition);
  max-width: 100%;
  overflow-x: hidden!important
}

.topbar {
  background: #fff;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 999;
}

.page-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  font-size: clamp(1rem, 1.15vw, 1.3rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
  color: var(--gray-900);
  overflow-wrap: anywhere;
}

.page-title .svg-icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--primary);
}

.topbar-left {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.sidebar-toggle-control {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  color: var(--primary-dark, #A97842);
  background: #fff;
  box-shadow: 0 2px 7px rgba(29, 29, 29, .05);
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}

.sidebar-toggle-control:hover,
.sidebar-toggle-control:focus-visible {
  color: var(--primary-dark, #A97842);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, #fff);
  box-shadow: 0 3px 9px rgba(29, 29, 29, .07);
  transform: none;
  outline: none;
}

.sidebar-toggle-control .svg-icon {
  width: 19px;
  height: 19px;
}

.sidebar-toggle-control + .page-title {
  padding-left: 13px;
  border-left: 1px solid var(--gray-200);
}

.sidebar-toggle-control .sidebar-toggle-closed,
body.sidebar-collapsed .sidebar-toggle-control .sidebar-toggle-open {
  display: none;
}

body.sidebar-collapsed .sidebar-toggle-control .sidebar-toggle-closed {
  display: block;
}

@media (max-width: 767.98px) {
  .topbar {
    min-height: 64px;
    height: auto;
    padding: 9px 14px;
    gap: 10px;
  }

  .topbar-left {
    gap: 11px;
  }

  .topbar-left #sidebarToggle {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  body:not(.sidebar-collapsed) .sidebar-toggle-control .sidebar-toggle-open {
    display: none;
  }

  body:not(.sidebar-collapsed) .sidebar-toggle-control .sidebar-toggle-closed {
    display: block;
  }

  .sidebar.show ~ .main-content .sidebar-toggle-control .sidebar-toggle-open {
    display: block;
  }

  .sidebar.show ~ .main-content .sidebar-toggle-control .sidebar-toggle-closed {
    display: none;
  }

  .page-title {
    padding-left: 10px;
    font-size: clamp(.88rem, 3.8vw, 1.08rem);
    line-height: 1.2;
  }

  .page-title .svg-icon {
    width: 18px;
    height: 18px;
  }

  .topbar-right {
    flex: 0 0 auto;
  }
}

@media (max-width: 399.98px) {
  .topbar {
    padding-inline: 10px;
  }

  .topbar-left {
    gap: 8px;
  }

  .page-title {
    gap: 6px;
    padding-left: 10px;
    font-size: .82rem;
  }

  .page-title .svg-icon {
    display: none;
  }

  .topbar .avatar {
    width: 32px;
    height: 32px;
  }
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--gray-800);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.btn-ghost {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 8px;
}

/* Stat Cards */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.stat-card-info {
  flex: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-display);
  line-height: 1;
}

/* Panel Card */
.panel-card {
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  overflow: hidden;
}
.panel-card .card-header {
  border-bottom: 1px solid var(--gray-100);
  padding: 20px 24px;
}

/* Responsiveness & Collapsing */
body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}
body.sidebar-collapsed .main-content {
  margin-left: 0;
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }
  .main-content {
    margin-left: 0;
    width: 100vw;
  }
  body.sidebar-collapsed .sidebar {
    transform: translateX(0); /* On mobile, if logic applies differently, though usually handled by JS directly toggle class */
  }
}
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, .35);
  color: #fff;
}

.btn-primary-custom:active, .btn-primary-custom:focus {
  transform: translateY(0);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  font-family: var(--font-display);
  border: 1.5px solid var(--primary);
  transition: var(--transition);
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background: var(--primary) !important;
  border: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}
.btn-primary {
  background: var(--primary);
  border: var(--primary);
  color: #fff;
}

.btn-primary:disabled, .btn-primary[disabled] {
  background: var(--primary);
  border: var(--primary);
  color: #fff;
  opacity: 1;
}
.btn-primary:hover {
  background: var(--primary-light);
  border: var(--primary-light);
  color: #fff;
}
.btn-primary:checked, .btn-primary:focus {
  background: var(--primary-light) !important;
  border: var(--primary-light) !important;
  color: #fff;
}
.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border: 1.5px solid var(--primary);
  color: #fff;
}
.btn-outline-primary.active {
  background: var(--primary);
  border: 1.5px solid var(--primary);
  color: #fff;
}
.btn-outline-primary:checked, .btn-outline-primary:focus {
  background: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  color: #fff !important;
}

/* FilePond */

.filepond--item {
    width: 150px !important;
    height: 150px !important;
    overflow: hidden;
    border-radius: .45em;
}
.filepond--image-preview-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.filepond--list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
}
.filepond--credits { 
    display: none;
}
.file-uploader {
    margin-bottom: 0;
    border: 1px dashed #d5d2dc;
    border-radius: .75rem;
    font-family: "Noto Sans",sans-serif;
    cursor: pointer
}

.filepond--root .filepond--drop-label {
    min-height: 10rem
}

.filepond--root .filepond--drop-label>label {
    cursor: pointer
}

.filepond--panel,.filepond--panel-root {
    background-color: transparent !important
}

.filepond--image-preview {
    background-color: #1f1b2d !important
}

.filepond--credits {
    display: none
}

@media(min-width: 500px) {
    .file-uploader-grid .filepond--item {
        width:calc(50% - .5em)
    }
}

[data-filepond-item-state*=error] .filepond--item-panel,[data-filepond-item-state*=invalid] .filepond--item-panel {
    background-color: #f23c49
}

[data-filepond-item-state=processing-complete] .filepond--item-panel {
    background-color: #07c98b
}
.btn-primary-soft {
    background-color: #6365f117;
    color: #6366f1
}
.btn-primary-soft:focus,.btn-primary-soft:hover {
     background-color: #6365f13b;
    color: #6366f1
}

.dinar-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  background: currentColor;
  mask: url('../img/icons/dinar-icon.svg') no-repeat center;
  -webkit-mask: url('../img/icons/dinar-icon.svg') no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  vertical-align: -0.125em;
}

.input-groupicon {
    position: relative;
}

.input-groupicon .addonset-start {
    position: absolute;
    left: 12px;
    top: 50%;
    line-height: 0;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%)
}
.input-groupicon .addonset {
    position: absolute;
    right: 12px;
    top: 50%;
    line-height: 0;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%)
}

.cursor {
  cursor: pointer !important;
}

.strong {
  font-weight: bolder !important;
}

.select .dropdown-menu .dropdown-item:first-child,
.select .dropdown-menu .dropdown-item:last-child {
    border-radius: 0 !important;
}

.select { 
    width: 100% !important;
    background: var(--white) !important;
    border-radius: var(--bs-border-radius-lg)
}
.select .dropdown-menu { 
    background: var(--white) !important;
    border-radius: var(--bs-border-radius-lg) !important;
    box-shadow: none;
}
.select .btn.dropdown-toggle.form-control { 
    width: 100% !important;
    outline: none !important;
    outline: 0px auto none!important;
    outline-offset: -2px;
    border: 1px solid rgba(145, 158, 171, .32) !important;
    box-shadow: none;
}
.select .btn.dropdown-toggle.form-control.form-control-lg { 
    min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-radius: var(--bs-border-radius-lg)
}
.select .btn.dropdown-toggle.form-control.show { 
    background: var(--white) !important;
    border: 1px solid var(--primary)!important;
    box-shadow: none;
}
.select .btn.dropdown-toggle.form-control:focus { 
    background: var(--white) !important;
    border: 1px solid var(--primary)!important;
    box-shadow: none;
}
.select .dropdown-item:hover, .select .dropdown-item:focus { 
    background: var(--primary);
    color: #ffffff !important;
}
.select .dropdown-item.selected, .select .dropdown-item.active { 
    background: var(--primary);
    color: #fffdfd !important;
}
.select .dropdown-item:focus { 
    color: #ffffff !important;
}


/* ─── Product Cards ──────────────────────────── */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  /* aspect-ratio: 1 / 1; */
  background: var(--gray-50);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  max-height: 270px;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.badge-new {
  background: var(--primary);
  color: #fff;
}

.badge-sale {
  background: var(--danger);
  color: #fff;
}

.badge-hot {
  background: var(--warning);
  color: #fff;
}

.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(12px);
  transition: var(--transition);
  z-index: 2;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.action-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
  font-size: .875rem;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--primary);
  color: #fff;
}

.product-card-body {
  padding: 16px 18px 20px;
}

.product-category-tag {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars {
  color: var(--warning);
  font-size: .8rem;
  letter-spacing: 1px;
}

.rating-count {
  font-size: .75rem;
  color: var(--gray-400);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: .85rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 6px;
}



.btn-circle {
  width: 30px;
  height: 30px;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.428571429;
  border-radius: 15px;
}

.custom-radio-inputs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 1.5rem;
  background-color: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  width: auto;
  font-size: 14px;
}

.custom-radio-inputs .radio {
  flex: 1 1 auto;
  text-align: center;
  min-width: 100px;
  margin-bottom: 0;
}

.custom-radio-inputs .radio input {
  display: none;
}

.custom-radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  border: none;
  padding: 0.5rem 0;
  color: rgb(27, 27, 27);
  transition: all 0.15s ease-in-out;
}

.custom-radio-inputs .radio input:checked + .name {
  background-color:var(--primary);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--primary);
}

/* Hover effect */
.custom-radio-inputs .radio:hover .name {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Animation */
.custom-radio-inputs .radio input:checked + .name {
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: select 0.3s ease;
}

@keyframes select {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Particles */
.custom-radio-inputs .radio input:checked + .name::before,
.custom-radio-inputs .radio input:checked + .name::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: particles 0.5s ease forwards;
}

.custom-radio-inputs .radio input:checked + .name::before {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.custom-radio-inputs .radio input:checked + .name::after {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes particles {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(var(--direction));
  }
}

.custom-radio-inputs .radio input:checked + .name::before {
  --direction: -10px;
}

.custom-radio-inputs .radio input:checked + .name::after {
  --direction: 10px;
}

#notifications-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
}
.notification {
    min-width: 250px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: slideIn .3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notification.success { background: #16a34a; }
.notification.error   { background: #dc2626; }
.notification.info    { background: #2563eb; }
@keyframes slideIn {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ─── Promo Banner ───────────────────────────── */
.promo-section {
  padding: 60px 0;
}

.promo-banner {
  background: linear-gradient(135deg, #EEF2FF 0%, #F0F9FF 50%, #ECFDF5 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse at right, rgba(79, 70, 229, .08) 0%, transparent 70%);
}
.table-light {
  background-color: #F8FAFC !important;
}
.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, .1);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.promo-headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.promo-sub {
  color: var(--gray-500);
  max-width: 440px;
  margin-bottom: 28px;
}

.timer-row {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.timer-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 70px;
}

.timer-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.timer-lbl {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}



.chart-card h3{
  text-align:center;
  color:#0b0648;
  font-size:20px;
  font-weight:900;
  margin:0 0 18px;
}
.chart-card .chart-footer{
  height:55px;
  margin-top:10px;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  font-size:12px;
  font-weight:700;
  color:#374151;
  border-top:1px solid #eee;
}

.chart-card .chart-footer span{
  display:flex;
  align-items:center;
  gap:8px;
}

.chart-card .chart-footer b{
  margin-left:6px;
}

.chart-card .dot{
  width:13px;
  height:13px;
  border-radius:50%;
  display:inline-block;
}
.chart-card .dot.yellow {
  background: var(--primary-light);
  color: var(--primary-light);
}
.order-summary-card {
    display: grid;
    grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 0;
    border-radius: 1rem;
    background-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.order-summary-item {
    min-width: 0;
}

.order-summary-label {
    margin-bottom: .2rem;
    font-size: .82rem;
    line-height: 1.2;
    opacity: .82;
}

.order-summary-value {
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.order-summary-total .order-summary-value {
    font-size: 1.45rem;
}

.order-summary-card .badge {
    background: rgba(255, 255, 255, .92) !important;
    color: var(--primary) !important;
    font-size: .85rem;
}


@media (max-width: 767.98px) {
    .order-summary-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "total total"
            "reference date"
            "tracking tracking"
            "delivery price"
            "capital capital"
            "margin margin"
            "status carrier";
        gap: .15rem 1rem;
        padding: 1.25rem 1rem 1rem;
    }

    .order-summary-total {
        grid-area: total;
        text-align: center;
        padding: 0 0 1.1rem;
    }

    .order-summary-reference {
        grid-area: reference;
    }

    .order-summary-delivery {
        grid-area: delivery;
    }

    .order-summary-tracking {
        grid-area: tracking;
        padding: .75rem .45rem;
        border-top: 1px solid rgba(255,255,255,.2);
        border-bottom: 1px solid rgba(255,255,255,.2);
    }

    .order-summary-date {
        grid-area: date;
    }

    .order-summary-price {
        grid-area: price;
    }

    .order-summary-reference,
    .order-summary-date,
    .order-summary-delivery,
    .order-summary-price {
        padding: .9rem .45rem;
    }

    .order-summary-status {
        grid-area: status;
    }

    .order-summary-carrier-status {
        grid-area: carrier;
    }

    .order-summary-status,
    .order-summary-carrier-status {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: .4rem;
        padding: .9rem .45rem 0;
    }

    .order-summary-capital {
        grid-area: capital;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: .9rem .45rem;
        border-top: 1px solid rgba(255,255,255,.2);
        border-bottom: 1px solid rgba(255,255,255,.2);
    }

    .order-summary-margin {
        grid-area: margin;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: .8rem .45rem;
    }

    .order-summary-status .order-summary-label,
    .order-summary-carrier-status .order-summary-label,
    .order-summary-capital .order-summary-label,
    .order-summary-margin .order-summary-label {
        margin-bottom: 0;
    }

    .order-summary-card .badge {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .order-summary-date,
    .order-summary-price {
        text-align: end;
    }

    .order-summary-card .order-summary-value {
        font-size: .92rem;
    }

    .order-summary-card .order-summary-total .order-summary-value {
        font-size: 1.45rem;
    }
}

.order-product-color {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
}

.order-product-color-swatch {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 50%;
}

.call-choice-modal {
    background: rgba(0, 0, 0, .48);
}

.call-choice-modal .modal-content {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .2);
}

.call-choice-modal .modal-body {
    padding: 1.75rem;
}

.call-choice-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    color: var(--bs-body-color);
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.call-choice-card:hover {
    color: var(--bs-body-color);
    border-color: var(--bs-primary);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.call-choice-icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 1rem;
    place-items: center;
    font-size: 2rem;
    border-radius: 50%;
}

.call-choice-icon-phone {
    color: #5267d8;
    background: #f0f2ff;
}

.call-choice-icon-whatsapp {
    color: #20c76a;
    background: #edfff4;
}

/* Product list ---------------------------------------------------------- */
.product-list-card { overflow: hidden; min-height: 630px; border: 1px solid #dfe6f1; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(28, 39, 60, .04); }
.product-list-filters { display: grid; grid-template-columns: minmax(220px, 1.55fr) minmax(150px, .92fr) minmax(150px, .92fr) 1fr; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid #dfe6f1; }
.product-search { position: relative; }
.product-search .form-control { height: 44px; padding-right: 42px; border-color: #dfe6f1; }
.product-search > :is(i, .svg-icon) { position: absolute; top: 50%; right: 15px; width: 17px; height: 17px; color: #516078; transform: translateY(-50%); pointer-events: none; }
.product-list-filters .form-select { height: 44px; border-color: #dfe6f1; }
.product-add-btn { justify-self: end; height: 44px; display: inline-flex; align-items: center; gap: 10px; padding-inline: 18px; white-space: nowrap; font-size: .82rem; font-weight: 700; }
.product-table-wrap { overflow-x: auto; }
.product-list-table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: .78rem; color: #12213a; }
.product-list-table th { height: 44px; padding: 8px 12px; background: #f8fafc; white-space: nowrap; font-weight: 750; }
.product-list-table td { height: 52px; padding: 7px 12px; border-top: 1px solid #dfe6f1; vertical-align: middle; }
.product-list-table tbody tr:hover { background: #fafbff; }
.product-list-table tbody tr.is-selected { background: #fff7ef; }
.product-drag-col { width: 38px; padding-right: 2px !important; color: #9aa6b8; text-align: center; cursor: grab; touch-action: none; }
.product-select-col { width: 34px; text-align: center; padding-inline: 6px !important; }
.product-select-col .form-check-input { width: 17px; height: 17px; margin: 0; vertical-align: middle; appearance: none; -webkit-appearance: none; border: 1.5px solid #d6deea; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 2px #fff; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; cursor: pointer; }
.product-select-col .form-check-input:hover { border-color: var(--primary); box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent); }
.product-select-col .form-check-input:focus { outline: 0; border-color: var(--primary); box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.product-select-col .form-check-input:checked { border-color: var(--primary); background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M3.3 8.2 6.5 11.3 12.8 4.8'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 13px 13px; box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 24%, transparent); }
.product-select-col .form-check-input:indeterminate { border-color: var(--primary); background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-width='2.4' d='M4 8h8'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 13px 13px; }
.product-select-col .form-check-input:active { transform: scale(.92); }
.product-drag-col :is(i, .svg-icon) { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; transition: color .16s ease, background-color .16s ease; }
.product-drag-col:hover :is(i, .svg-icon) { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, white); }
.product-drag-col:active { cursor: grabbing; }
.meta-catalog-heading { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.meta-catalog-export-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 38px; height: 26px; padding: 0 7px; border: 1px solid #d8e0eb; border-radius: 5px; background: #fff; color: #1f7a45; font-size: 11px; font-weight: 800; line-height: 1; transition: .15s ease; }
.meta-catalog-export-btn .svg-icon { width: 14px; height: 14px; }
.meta-catalog-export-btn:not(:disabled):hover { border-color: #1f7a45; background: #1f7a45; color: #fff; }
.meta-catalog-export-btn:disabled { color: #a8b1c0; background: #f7f8fa; cursor: not-allowed; }
.product-sort-ghost td { opacity: .3; background: #eee9ff !important; }
.product-sort-chosen td { background: #faf8ff; box-shadow: inset 0 1px 0 var(--primary), inset 0 -1px 0 var(--primary); }
.product-list-image { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #eefcfb; }
.product-list-name { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-list-table small { display: block; color: #8a96aa; margin-top: 2px; }
.product-status { display: inline-flex; padding: 4px 10px; border-radius: 99px; font-size: .68rem; }
.product-status.is-active { color: #08773b; background: #c9f7d9; }
.product-status.is-inactive { color: #9a4d00; background: #ffedc4; }
.product-stock.is-empty { color: #d63b46; font-weight: 700; }
.product-icon-btn { display: inline-grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 6px; color: #27364e; background: transparent; text-decoration: none; }
.product-icon-btn:hover { color: var(--primary); background: #f0ebff; }
.product-actions { display: flex; justify-content: flex-end; gap: 9px; }
.product-empty-state { height: 300px !important; padding: 0 !important; color: #8490a3; }
.product-empty-content { display: flex; width: 100%; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.product-empty-content :is(i, .svg-icon) { width: 2rem; height: 2rem; font-size: 2rem; }
.product-list-footer { display: flex; min-height: 73px; gap: 20px; align-items: center; padding: 12px 16px; border-top: 1px solid #dfe6f1; }
.management-list-card { min-height: 0; }
.management-list-body { padding: 0; }
.management-list-toolbar { display: flex; justify-content: space-between; gap: 12px; }
.management-list-toolbar > :first-child { width: min(100%, 330px); }
.management-list-toolbar .form-control { height: 44px; }
.management-list-table { min-width: 680px; }
.management-list-card .dt-container .custom-table-bg { margin: 0 !important; overflow-x: auto; border: 0 !important; border-radius: 0 !important; }
.management-list-card .dt-container > .d-flex { min-height: 70px; margin: 0 !important; padding: 12px 16px; border-top: 1px solid #dfe6f1; }
.management-list-card .dt-length select { min-width: 72px; height: 38px; border-color: #dfe6f1; border-radius: 8px; }
.management-list-card .pagination { gap: 5px; margin: 0; }
.management-list-card .page-link { min-width: 34px; min-height: 34px; display: grid; place-items: center; border-color: #dfe6f1; border-radius: 8px !important; color: #516078; }
.management-list-card .active > .page-link { border-color: var(--primary); color: #fff; background: var(--primary); }
.management-list-card .empty-state { min-height: 360px; border: 0; border-radius: 0; box-shadow: none; }
.product-icon-btn.is-danger { color: #d63b46; }
.product-icon-btn.is-danger:hover { color: #fff; background: #d63b46; }
@media(max-width:767.98px){.management-list-toolbar{align-items:stretch;flex-direction:column}.management-list-toolbar>:first-child,.management-list-toolbar .product-add-btn{width:100%;max-width:none}.management-list-card .dt-container>.d-flex{align-items:stretch!important;flex-direction:column;gap:12px}.management-list-card .dt-paging{align-self:center}}
.product-list-footer label { display: flex; gap: 8px; align-items: center; margin: 0; font-size: .78rem; }
.product-list-footer select { border: 0; background: transparent; }
.product-result-count { color: #7a879b; font-size: .76rem; }
.product-pagination { display: flex; margin-left: auto; }
.product-pagination button, .product-pagination span { display: grid; min-width: 42px; height: 36px; place-items: center; border: 1px solid #d5ddea; background: #fff; }
.product-pagination button:first-child { border-radius: 7px 0 0 7px; }
.product-pagination button:last-child { border-radius: 0 7px 7px 0; }
.product-pagination span { color: var(--primary); font-weight: 700; background: #f6f3ff; }
.product-pagination button:disabled { color: #b8c0cd; cursor: not-allowed; }
.product-list-loading { display: grid; min-height: 520px; place-items: center; color: var(--primary); font-size: 1.5rem; }
@media (max-width: 1199.98px) { .product-list-filters { grid-template-columns: repeat(3, 1fr); } .product-add-btn { justify-self: stretch; justify-content: center; } }
@media (max-width: 767.98px) { .product-list-filters { grid-template-columns: 1fr 1fr; } .product-search, .product-add-btn { grid-column: 1 / -1; } .product-list-footer { flex-wrap: wrap; } .product-result-count { order: 3; width: 100%; } }

/* Category list --------------------------------------------------------- */
.category-list-filters { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid #dfe6f1; }
.category-list-table { min-width: 900px; }
.category-list-table .category-row-group + .category-row-group tr:first-child td { border-top-width: 1px; }
.category-name-cell { display: flex; gap: 10px; align-items: center; }
.category-expand-btn { display: inline-grid; width: 23px; height: 23px; flex: 0 0 23px; padding: 0; place-items: center; border: 1px solid color-mix(in srgb, var(--primary) 45%, #dfe6f1); border-radius: 7px; color: var(--primary); background: #fff; font-size: .65rem; }
.category-expand-btn:disabled { border-color: #dfe4ec; color: #b8c1ce; background: #f7f9fc; cursor: not-allowed; opacity: .75; }
.category-expand-placeholder { width: 23px; flex: 0 0 23px; }
.category-sub-name { padding-left: 33px; }
.category-tree-line { color: #94a0b2; }
.category-icon-preview { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, white); font-size: 1rem; }
.category-icon-preview svg, .category-svg-preview svg { display: block; width: 22px !important; height: 22px !important; color: inherit; }
.category-svg-preview { display: grid; width: 58px; height: 58px; margin-bottom: 8px; place-items: center; border: 1px solid #dfe6f1; border-radius: 9px; color: var(--primary); background: #fff; }
.subcategory-row td { background: #fcfdff; }
.category-sort-ghost { opacity: .35; }
.category-sort-ghost td { background: #eee9ff !important; }
.category-sort-chosen tr:first-child td { box-shadow: inset 0 1px 0 var(--primary), inset 0 -1px 0 var(--primary); }
@media (max-width: 767.98px) { .category-list-filters { grid-template-columns: 1fr; } .category-list-filters .product-add-btn { grid-column: auto; } }

/* Dashboard overview ---------------------------------------------------- */
.dashboard-overview { padding: 16px; }
.dashboard-stat-scroll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashboard-summary-card { display: flex; min-width: 0; min-height: 136px; flex-direction: column; justify-content: center; padding: 24px; border: 1px solid #dce3ec; border-radius: 13px; background: #fff; box-shadow: 0 2px 3px rgba(22, 34, 52, .08); }
.dashboard-summary-label { margin-bottom: 20px; color: #344156; font-size: .82rem; font-weight: 650; }
.dashboard-summary-value { color: #071326; font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.dashboard-summary-count { min-height: 18px; margin-top: 5px; color: #657084; font-size: .78rem; font-weight: 650; }
.dashboard-summary-card:first-child .dashboard-summary-count:empty { visibility: hidden; }
.dashboard-summary-card.is-featured { position: relative; overflow: hidden; border-color: var(--primary); color: #fff; background: var(--primary); }
.dashboard-summary-card.is-featured::after { content: ''; position: absolute; top: -80%; right: 10%; width: 58%; height: 220%; border-radius: 50%; background: rgba(255,255,255,.045); transform: rotate(18deg); }
.dashboard-summary-card.is-featured > * { position: relative; z-index: 1; color: #fff; }
.order-tracking-card { margin-top: 12px; padding: 25px 24px 24px; border: 1px solid #dce3ec; border-radius: 13px; background: #fff; box-shadow: 0 2px 3px rgba(22, 34, 52, .08); }
.order-tracking-header { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.order-tracking-title { display: flex; gap: 13px; align-items: center; }
.order-tracking-title h2 { margin: 0; color: #081326; font-size: 1rem; font-weight: 800; }
.order-tracking-info { display: inline-grid; width: 17px; height: 17px; place-items: center; border: 1.5px solid var(--primary); border-radius: 50%; color: var(--primary); font-size: .62rem; }
.order-tracking-legend { display: flex; gap: 28px; color: #344156; font-size: .7rem; font-weight: 650; }
.order-tracking-legend span { display: flex; gap: 7px; align-items: center; }
.order-tracking-legend strong { color: var(--primary); }
.tracking-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.tracking-dot.is-delivered, .tracking-segment.is-delivered { background: var(--primary); }
.tracking-dot.is-refunded, .tracking-segment.is-refunded { background: color-mix(in srgb, var(--primary) 38%, white); }
.order-tracking-progress { position: relative; display: flex; height: 53px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, white); }
.tracking-segment { height: 100%; transition: width .35s ease; }
.tracking-segment.is-empty { position: absolute; inset: 0; background: color-mix(in srgb, var(--primary) 12%, white); }
.tracking-progress-label { position: absolute; inset: 0 auto 0 12px; display: flex; gap: 11px; align-items: center; color: var(--primary); font-size: 1.3rem; }
.tracking-progress-icon { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 4px solid color-mix(in srgb, var(--primary) 16%, white); border-radius: 50%; background: #fff; font-size: 1rem; }
.dashboard-chart-row { margin-top: 0; padding-top: 12px; }
.dashboard-chart-panel { overflow: hidden; border-color: #dce3ec; border-radius: 13px; box-shadow: 0 2px 3px rgba(22, 34, 52, .08); }
.dashboard-chart-panel #salesChart { width: 100% !important; height: 340px !important; }
.sales-chart-canvas { position: relative; height: 340px; }
.sales-chart-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.dashboard-traffic-chart { position: relative; height: 280px; }
.dashboard-chart-panel .chart-footer { color: #344156; }
.dashboard-chart-panel .dot.primary { background: var(--primary); }
.dashboard-muted-dot { background: #dfe4ec; }
@media (max-width: 991.98px) {
  .dashboard-stat-scroll { grid-template-columns: repeat(4, minmax(210px, 1fr)); overflow-x: auto; margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .dashboard-summary-card { min-height: 120px; padding: 20px; scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
  .dashboard-overview { padding: 10px 8px; overflow: hidden; }
  .dashboard-stat-scroll { grid-template-columns: repeat(4, 190px); margin-inline: -8px; padding-inline: 8px; }
  .dashboard-summary-card { min-height: 120px; }
  .dashboard-summary-label { margin-bottom: 17px; font-size: .75rem; }
  .dashboard-summary-value { font-size: 1.25rem; }
  .order-tracking-card { margin-top: 4px; padding: 20px 14px; }
  .order-tracking-header { align-items: flex-start; margin-bottom: 18px; }
  .order-tracking-legend { gap: 10px; font-size: .62rem; }
  .order-tracking-legend span { gap: 4px; }
  .order-tracking-progress { height: 48px; }
  .tracking-progress-label { font-size: 1.1rem; }
  .dashboard-chart-panel #salesChart { height: 300px !important; }
  .sales-chart-canvas { width: 680px; height: 300px; }
  .dashboard-chart-panel .card-body { padding: 14px 10px; }
  .dashboard-chart-panel .chart-footer { padding-inline: 8px; font-size: .82rem; line-height: 1.45; }
  .dashboard-traffic-chart { height: 240px; }
}

.orders-stats { --stats-border: #dce3ec; --stats-muted: #667085; background: #f8fafc; min-height: calc(100vh - 70px); }
.stats-shell { border: 1px solid var(--stats-border); border-radius: 14px; background: #fff; overflow: hidden; }
.stats-toolbar { padding: 0 0 12px; }
.stats-filter { height: 44px; border-color: var(--stats-border); border-radius: 7px; font-size: .88rem; }
.stats-filter-product { min-width: 290px; }
.stats-filters-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.stats-filters-row .bootstrap-select { width: 290px !important; flex: 0 0 290px; }
.stats-filters-row .bootstrap-select > .dropdown-toggle { height: 44px; border: 1px solid var(--stats-border); border-radius: 7px; background: #fff; }
.stats-filters-row .bootstrap-select > .dropdown-toggle:focus { outline: 0 !important; border-color: var(--stats-border); box-shadow: none; }
.stats-filters-row .bootstrap-select .dropdown-menu { padding: 5px; border: 1px solid var(--stats-border); border-radius: 7px; box-shadow: 0 8px 20px rgba(16,24,40,.1); }
.stats-filters-row .bootstrap-select .bs-searchbox { position: relative; padding: 4px 3px 8px; }
.stats-filters-row .bootstrap-select .bs-searchbox::before { content: '⌕'; position: absolute; z-index: 2; top: 50%; left: 14px; color: #667085; font: inherit; transform: translateY(-60%); pointer-events: none; }
.stats-filters-row .bootstrap-select .bs-searchbox .form-control { height: 38px; padding-left: 34px; border-color: var(--stats-border); border-radius: 6px; font-size: .82rem; }
.stats-filters-row .bootstrap-select .bs-searchbox .form-control:focus { border-color: var(--stats-border); box-shadow: none; }
.stats-filters-row .bootstrap-select .dropdown-menu li a { min-height: 34px; padding: 7px 10px; border-radius: 5px; color: #344054; font-size: .82rem; }
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a { color: #101828; background: #f2f4f7; }
.stats-filters-row .bootstrap-select .dropdown-menu li.active a { color: #101828; background: #f2f4f7; }
.stats-filters-row .bootstrap-select .dropdown-menu li a,
.stats-filters-row .bootstrap-select .dropdown-menu li a *,
.stats-filters-row .bootstrap-select .dropdown-menu li.active a,
.stats-filters-row .bootstrap-select .dropdown-menu li.active a *,
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a,
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a * { color: #101828 !important; }
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a::after { content: '✓'; position: absolute; right: 10px; color: #101828; font: inherit; }
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a .text { margin-right: 24px; }
.stats-filters-row .bootstrap-select .bs-select-clear-selected { color: #101828; font-size: 1rem; }
.stats-product-option { display: inline-flex; align-items: center; gap: 9px; }
.stats-product-option img { width: 23px; height: 23px; border-radius: 5px; object-fit: cover; background: #f2f4f7; }
.stats-filters-row .range-picker { flex: 0 0 auto; }
.range-picker { position: relative; }
.range-trigger { height: 44px; min-width: 245px; padding: 0 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--stats-border); border-radius: 7px; background: #fff; color: #101828; font-size: .88rem; }
.range-trigger:hover, .range-trigger:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.range-popover { position: absolute; z-index: 1055; top: calc(100% + 8px); left: 0; width: 700px; border: 1px solid var(--stats-border); border-radius: 8px; background: #fff; box-shadow: 0 14px 35px rgba(16,24,40,.16); display: none; }
.range-popover.is-open { display: block; }
.range-main { display: grid; grid-template-columns: 208px 1fr; min-height: 315px; }
.range-presets { padding: 12px; border-right: 1px solid var(--stats-border); }
.range-preset { display: block; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; font-size: .82rem; }
.range-preset:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, white); }
.range-preset.is-active { border-color: #101828; }
.range-custom-label { margin: 8px; color: var(--stats-muted); font-size: .8rem; }
.range-custom-days { width: 100%; height: 38px; border: 1px solid var(--stats-border); border-radius: 7px; padding: 0 9px; }
.range-calendars-wrap { padding: 12px 14px; }
.range-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.range-nav-btn { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--stats-border); border-radius: 7px; background: #fff; }
.range-calendars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.range-month-title { margin: -25px 0 13px; text-align: center; font-size: .82rem; font-weight: 700; }
.range-weekdays, .range-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.range-weekdays span { padding: 5px 0; color: var(--stats-muted); font-size: .72rem; }
.range-day { height: 36px; border: 0; background: transparent; font-size: .8rem; position: relative; }
.range-day.is-outside { color: #98a2b3; }
.range-day.is-between { background: color-mix(in srgb, var(--primary) 10%, white); }
.range-day.is-start, .range-day.is-end { border-radius: 7px; background: var(--primary); color: #fff; font-weight: 700; }
.range-day:hover { color: #fff; background: var(--primary); border-radius: 7px; }
.range-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 11px 13px; border-top: 1px solid var(--stats-border); }
.range-reset { border: 0; background: transparent; font-weight: 600; }
.range-apply { border: 0; border-radius: 7px; padding: 9px 18px; color: #fff; background: var(--primary); font-weight: 700; }
.stats-caption { color: var(--stats-muted); font-size: .8rem; margin: 8px 0 0; }
.stats-content { padding: 16px; }
.order-stat-card { height: 100%; border: 1px solid var(--stats-border); border-radius: 12px; padding: 16px; box-shadow: 0 2px 2px rgba(16,24,40,.08); }
.order-stat-head { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.order-stat-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; }
.tone-purple { background: var(--primary); } .tone-blue { background: #3b82f6; } .tone-green { background: #568d2e; } .tone-red { background: #cf2930; }
.order-stat-count { font-size: 1.35rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.order-stat-label { font-size: .86rem; font-weight: 700; }
.order-stat-details { margin-top: 12px; padding: 8px 16px; border: 1px solid var(--stats-border); border-radius: 9px; background: #f9fafb; }
.order-stat-row { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--stats-muted); }
.order-stat-row + .order-stat-row { margin-top: 7px; }
.order-stat-row strong { color: #101828; }
.metric-card { height: 100%; min-height: 180px; border: 1px solid var(--stats-border); border-radius: 12px; padding: 22px 24px; background: #fff; box-shadow: 0 2px 2px rgba(16,24,40,.08); }
.metric-title { font-weight: 800; }
.metric-legend { font-size: .72rem; font-weight: 700; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.metric-bar { height: 52px; margin-top: 34px; border-radius: 30px; position: relative; overflow: hidden; background: #edf0f4; }
.metric-fill { height: 100%; min-width: 0; border-radius: inherit; display: flex; align-items: center; padding: 0 14px; color: #fff; font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.metric-fill.performance { background: #568d2e; } .metric-fill.delivery { background: var(--primary); }
.metric-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: inherit; margin-inline-end: 10px; }
.metric-fill.performance .metric-icon { color: #568d2e; }
.metric-fill.delivery .metric-icon { color: var(--primary); }
.stats-info { color: var(--primary); }
.stats-submit { color: #fff; background: var(--primary); border-color: var(--primary); }
.stats-submit:hover, .stats-submit:focus { color: #fff; background: var(--primary-light); border-color: var(--primary-light); }
.legend-confirmed { color: #16a34a; } .legend-rejected { color: #ef4444; }
.legend-delivered { color: var(--primary); } .legend-returned { color: #606061; }

/* Product statistics comparison */
.product-performance-card { overflow: hidden; border: 1px solid var(--stats-border); border-radius: 12px; background: #fff; box-shadow: 0 2px 2px rgba(16,24,40,.06); }
.product-performance-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--stats-border); }
.product-performance-head h2 { margin: 0 0 4px; color: #101828; font-size: 1rem; font-weight: 800; }
.product-performance-head p { margin: 0; color: var(--stats-muted); font-size: .78rem; }
.product-count-badge { flex: none; padding: 6px 10px; border-radius: 20px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, white); font-size: .72rem; font-weight: 700; }
.product-stats-table-wrap { overflow-x: auto; }
.product-stats-table { width: 100%; min-width: 1450px; border-collapse: collapse; color: #344054; font-size: .76rem; }
.product-stats-table th { padding: 11px 12px; color: #667085; background: #f8fafc; font-size: .68rem; font-weight: 700; text-align: center; white-space: nowrap; }
.product-stats-table th:first-child, .product-stats-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 225px; text-align: left; background: #fff; box-shadow: 1px 0 #e7ebf0; }
.product-stats-table th:first-child { z-index: 2; background: #f8fafc; }
.product-stats-table td { padding: 12px; border-top: 1px solid #edf0f4; text-align: center; white-space: nowrap; }
.product-stats-table tbody tr:hover td { background: #fcfcfd; }
.product-table-name { display: flex; align-items: center; gap: 10px; }
.product-table-name img, .product-image-placeholder { width: 38px; height: 38px; flex: none; border-radius: 8px; object-fit: cover; background: #f2f4f7; }
.product-image-placeholder { display: grid; place-items: center; color: #98a2b3; }
.product-image-placeholder .svg-icon { width: 17px; height: 17px; }
.product-table-name strong, .product-table-name small { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.product-table-name strong { color: #101828; font-size: .78rem; }
.product-table-name small { margin-top: 2px; color: #98a2b3; }
.status-number { display: inline-grid; min-width: 28px; height: 26px; padding: 0 7px; place-items: center; border-radius: 7px; font-weight: 700; }
.status-number.pending { color: #2563eb; background: #eff6ff; }
.status-number.confirmed { color: #287116; background: #edf7e8; }
.status-number.cancelled, .status-number.returned { color: #b42318; background: #fff1f0; }
.status-number.delivered { color: #027a48; background: #ecfdf3; }
.table-rate { min-width: 82px; text-align: left; }
.table-rate strong { display: block; margin-bottom: 5px; color: #101828; font-size: .7rem; }
.table-rate i { display: block; width: 100%; height: 5px; overflow: hidden; border-radius: 5px; background: #eaecf0; }
.table-rate b { display: block; height: 100%; border-radius: inherit; }
.table-rate b.confirmed { background: #568d2e; } .table-rate b.delivered { background: var(--primary); }
.money-cell { color: #101828; font-weight: 700; }.money-cell.is-positive { color: #027a48; }.money-cell.is-negative { color: #b42318; }
.product-stats-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #98a2b3; }
.product-stats-empty .svg-icon { width: 28px; height: 28px; }.product-stats-empty strong { color: #344054; }.product-stats-empty span { font-size: .78rem; }
@media (max-width: 575.98px) { .product-performance-head { align-items: flex-start; padding: 17px; }.product-performance-head p { max-width: 240px; } }
@media (max-width: 575.98px) { .stats-filters-row .bootstrap-select, .stats-filters-row .range-picker, .stats-filters-row .range-trigger { width: 100% !important; flex-basis: 100%; } .metric-card { padding: 18px; } }

/* Statistics page-specific styles */
/* Orders date range picker */
.orders-date-field { position: relative; display: flex; align-items: center; min-width: 227px; height: 44px; overflow: hidden; border: 1px solid #dce3ec; border-radius: 8px; background: #fff; transition: background-color .2s ease, box-shadow .2s ease; }
.orders-date-field:hover { border-color: #dce3ec; background: #f9fafb; box-shadow: none; }
.orders-date-field:focus-within { border-color: #dce3ec; box-shadow: none; }
.orders-date-field > :is(i, .svg-icon) { position: absolute; top: 50%; left: 15px; z-index: 1; width: 16px; height: 16px; color: #101828; transform: translateY(-50%); pointer-events: none; }
#ordersDateRange { width: 100%; min-width: 190px; height: 100%; padding: 0 14px 0 46px; cursor: pointer; border: 0; border-radius: inherit; outline: 0; background: transparent; box-shadow: none; }
#ordersDateRange:focus { border: 0; outline: 0; box-shadow: none; }
.daterangepicker { --stats-border: #dce3ec; --stats-muted: #667085; border: 1px solid var(--stats-border) !important; border-radius: 8px; box-shadow: 0 12px 30px rgba(16,24,40,.12); font-family: inherit; }
.daterangepicker::before, .daterangepicker::after { display: none; }
.daterangepicker.show-ranges.ltr .drp-calendar.left { border-left-color: var(--stats-border); }
.daterangepicker .ranges { width: 196px; padding: 10px; }
.daterangepicker .ranges ul { width: 100%; }
.daterangepicker .ranges li { margin: 0 0 2px; padding: 9px 8px; border: 1px solid transparent; border-radius: 7px; color: #101828; background: transparent; font-size: .82rem; }
.daterangepicker .ranges li:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, white); }
.daterangepicker .ranges li.active { color: var(--primary) !important; border-color: var(--primary) !important; background: color-mix(in srgb, var(--primary) 8%, white) !important; }
.daterangepicker .ranges .range-custom-days { width: auto; height: auto; margin-top: 5px; padding: 0; border: 0; }
.daterangepicker .ranges .range-custom-days label { display: block; margin: 0 8px 6px; color: #667085; font-size: .8rem; }
.daterangepicker .ranges .range-custom-days input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--stats-border) !important; border-radius: 6px; outline: 0; }
.daterangepicker .ranges .range-custom-days input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.daterangepicker .calendar-table { border: 0 !important; }
.daterangepicker .calendar-table th { color: #667085; font-weight: 500; }
.daterangepicker .calendar-table th.month { color: #101828; font-weight: 700; }
.daterangepicker .calendar-table .prev span, .daterangepicker .calendar-table .next span { border-color: #667085; }
.daterangepicker td { border-radius: 0; }
.daterangepicker td.available:hover, .daterangepicker th.available:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, white); }
.daterangepicker td.in-range { color: #101828; background: color-mix(in srgb, var(--primary) 13%, white); }
.daterangepicker td.active, .daterangepicker td.active:hover { color: #fff; background: var(--primary); }
.daterangepicker td.start-date { border-radius: 7px 0 0 7px; }
.daterangepicker td.end-date { border-radius: 0 7px 7px 0; }
.daterangepicker td.start-date.end-date { border-radius: 7px; }
.daterangepicker .drp-buttons { padding: 12px; border-top-color: var(--stats-border); }
.daterangepicker .drp-buttons .btn { padding: 8px 16px; border-radius: 7px; font-size: .82rem; }
.daterangepicker .drp-buttons .applyBtn { color: #fff; border-color: var(--primary); background: var(--primary); }
.daterangepicker .drp-buttons .applyBtn:hover { border-color: var(--primary-light); background: var(--primary-light); }
.daterangepicker .drp-buttons .cancelBtn { border-color: transparent; background: transparent; color: #101828; }
@media (min-width: 730px) { .daterangepicker { width: 700px; } .daterangepicker .drp-calendar { max-width: 250px; } }

/* Products statistics */
.products-stats { --stats-border:#dce3ec; --stats-muted:#667085; background:#f8fafc; min-height:calc(100vh - 70px); }
.products-date-field { position:relative; display:flex; align-items:center; min-width:228px; height:44px; border:1px solid var(--stats-border); border-radius:8px; background:#fff; }
.products-date-field :is(i, .svg-icon) { position:absolute; top:50%; left:15px; width:16px; height:16px; transform:translateY(-50%); pointer-events:none; }
#productsDateRange { width:100%; height:100%; padding:0 14px 0 45px; border:0; outline:0; background:transparent; cursor:pointer; }
.products-returned { background:#e5d6fa!important; color:var(--primary)!important; }
.products-returned .metric-icon { color:var(--primary)!important; }
.daterangepicker .applyBtn { border-color:var(--primary)!important; background:var(--primary)!important; }
@media(max-width:575.98px){.products-date-field,#productsDateRange{width:100%}.products-date-field{flex-basis:100%}}

/* Team statistics */
.team-stats { --stats-border:#dce3ec; --stats-muted:#667085; background:#f8fafc; min-height:calc(100vh - 70px); }
.team-date-field { position:relative; display:flex; flex:0 0 275px; align-items:center; width:275px; min-width:275px; height:44px; border:1px solid var(--stats-border); border-radius:8px; background:#fff; }
.team-date-field :is(i, .svg-icon) { position:absolute; top:50%; left:15px; width:16px; height:16px; transform:translateY(-50%); pointer-events:none; }
#teamDateRange { width:100%; min-width:0; height:100%; padding:0 14px 0 45px; border:0; outline:0; background:transparent; cursor:pointer; }
.team-card { height:100%; padding:16px; border:1px solid var(--stats-border); border-radius:12px; background:#fff; box-shadow:0 2px 2px rgba(16,24,40,.08); }
.team-card-head { display:flex; align-items:center; gap:16px; }
.team-card-icon { width:52px; height:52px; flex:0 0 52px; display:grid; place-items:center; border-radius:9px; color:#fff; font-size:1.2rem; }
.tone-orange { background:#f5a313; } .tone-blue { background:#3b82f6; } .tone-green { background:#568d2e; } .tone-red { background:#cf2930; }
.team-card-value { margin-bottom:6px; font-size:1.35rem; font-weight:800; line-height:1; }
.team-card-label { font-size:.86rem; font-weight:700; }
.team-table-card { border:1px solid var(--stats-border); border-radius:12px; background:#fff; overflow:hidden; box-shadow:0 2px 2px rgba(16,24,40,.08); }
.team-table-head { padding:16px 24px; border-bottom:1px solid var(--stats-border); }
.team-table-card table { margin:0; font-size:.8rem; }
.team-table-card thead th { padding:13px 12px; border-color:var(--stats-border); background:#f8fafc; white-space:nowrap; }
.team-table-card td { padding:12px; border-color:var(--stats-border); vertical-align:middle; }
.agent-avatar { width:32px; height:32px; display:inline-grid; place-items:center; margin-right:9px; border-radius:5px; background:#e8eef7; color:#667085; font-weight:700; }
.metric-fill.team-green { background:#568d2e; } .metric-fill.team-green .metric-icon { color:#568d2e; }
.tone-light-purple { background:#e5d6fa!important; color:var(--primary)!important; }
.metric-fill.team-returned { background:#e5d6fa; color:var(--primary); } .metric-fill.team-returned .metric-icon { color:var(--primary); }
.daterangepicker .applyBtn { border-color:var(--primary)!important; background:var(--primary)!important; }
@media(max-width:575.98px){.team-date-field,.team-date-field input{width:100%}.team-date-field{flex-basis:100%;min-width:100%}.team-table-head{padding:16px}.team-table-card{overflow-x:auto}}

/* Rafa admin identity — synchronized with storefront */
body { background: var(--bg); color: var(--gray-800); letter-spacing: -.01em; }
::selection { color: #fff; background: var(--primary); }
h1, h2, h3, h4, h5, h6, .page-title { font-family: var(--font-display); font-weight: 600; }

.sidebar { background: #fff; border-right-color: var(--gray-200); box-shadow: 4px 0 22px rgba(29,29,29,.025); }
.sidebar-brand { border-bottom-color: var(--gray-200); font-weight: 600; }
.logo-icon { background: var(--primary); border-radius: var(--radius-sm); }
.sidebar-nav .nav-link { color: var(--gray-600); font-weight: 500; border-left-width: 2px; }
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active,
.sidebar-nav .submenu.active > .nav-link {
  color: var(--primary-dark, #A97842); background: #FFF8F0; border-left-color: var(--primary);
}
.sidebar-nav .submenu-list { background: #FFFDFC; }
.sidebar-nav .submenu-list li.active a, .sidebar-nav .submenu-list li a:hover { color: var(--primary-dark, #A97842); }

.topbar { background: rgba(255,255,255,.96); border-bottom-color: var(--gray-200); backdrop-filter: blur(12px); }
.page-title { font-size: 1.35rem; }
.main-content { background: var(--bg); }

.card, .panel-card, .stat-card, .dashboard-summary-card, .order-tracking-card,
.dashboard-chart-panel, .product-list-card, .stats-shell, .order-stat-card,
.metric-card, .team-card, .team-table-card, .call-choice-card {
  border-color: var(--gray-200); border-radius: var(--radius-md); box-shadow: 0 2px 8px rgba(29,29,29,.045);
}
.card-header, .panel-card .card-header { background: #fff; border-bottom-color: var(--gray-200); }
.stat-card:hover { border-color: rgba(200,157,108,.55); box-shadow: var(--shadow-md); }
.stat-card-icon { border-radius: var(--radius-md); }
.stat-value, .dashboard-summary-value { font-family: var(--font-body); color: var(--gray-900); }
.dashboard-summary-card.is-featured { border-color: var(--accent); background: var(--accent); }

.btn-primary, .btn-primary-custom, .stats-submit, .range-apply {
  color: #fff; background: var(--accent); border-color: var(--accent); border-radius: var(--radius-sm); box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary-custom:hover, .btn-primary-custom:focus,
.stats-submit:hover, .stats-submit:focus, .range-apply:hover {
  color: #fff; background: #000; border-color: #000; box-shadow: 0 7px 18px rgba(29,29,29,.13);
}
.btn-outline-primary, .btn-outline-custom { color: var(--primary-dark, #A97842); border-color: var(--primary); border-radius: var(--radius-sm); }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-custom:hover, .btn-outline-custom:focus {
  color: #fff !important; background: var(--primary) !important; border-color: var(--primary) !important; box-shadow: none;
}
.bg-primary-soft, .bg-soft, .btn-primary-soft { background: #FAF0E5; color: var(--primary-dark, #A97842); }

.form-control, .form-select, .div-input, .bootstrap-select > .dropdown-toggle,
.orders-date-field, .products-date-field, .team-date-field, .range-trigger {
  border-color: var(--gray-200); border-radius: var(--radius-sm); background-color: #fff;
}
.form-control:focus, .form-select:focus, .bootstrap-select > .dropdown-toggle:focus {
  border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(200,157,108,.12) !important;
}
label { color: var(--gray-700); font-weight: 600; }

.table-light, .product-list-table th, .team-table-card thead th { background: var(--gray-50) !important; }
.table > :not(caption) > * > *, .product-list-table td, .team-table-card td { border-color: var(--gray-200); }
.product-list-table tbody tr:hover, .table-hover > tbody > tr:hover > * { background-color: #FFF9F3; }
.product-list-card, .product-list-filters, .product-list-footer { border-color: var(--gray-200); }
.product-pagination span { color: var(--primary-dark, #A97842); background: #FAF0E5; }
.product-icon-btn:hover { color: var(--primary-dark, #A97842); background: #FAF0E5; }

.orders-stats, .products-stats, .team-stats { --stats-border: var(--gray-200); --stats-muted: var(--gray-500); background: var(--bg); }
.tone-purple, .metric-fill.delivery { background: var(--primary); }
.daterangepicker td.in-range { background: #FAF0E5; }
.daterangepicker td.active, .daterangepicker td.active:hover,
.daterangepicker .applyBtn { color: #fff; background: var(--primary) !important; border-color: var(--primary) !important; }

.product-card { border-color: var(--gray-200); border-radius: var(--radius-md); box-shadow: none; }
.product-card:hover { border-color: rgba(200,157,108,.55); box-shadow: var(--shadow-md); }
.product-name { font-family: var(--font-display); font-weight: 500; }
.price-current { color: var(--gray-900); }

@media (max-width: 991.98px) {
  .sidebar.show { box-shadow: 12px 0 35px rgba(29,29,29,.12); }
}
#ordersControls {
    width: 100%;
    min-width: 0;
}
#ordersControls input[type="search"] {
    flex: 0 1 300px;
    min-width: 180px;
}
.order-status-filters {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}
.order-status-filters.is-dragging { cursor: grabbing; }
.order-status-filters::-webkit-scrollbar { display: none; width: 0; height: 0; }
.order-filter-btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--gray-200); border-radius: 9px; color: var(--gray-700); background: var(--white); font-size: .84rem; font-weight: 700; white-space: nowrap; transition: var(--transition); }
.order-filter-btn:first-child { margin-left: auto; }
.order-filter-btn:hover { color: var(--primary); border-color: var(--primary); }
.order-filter-btn.active { color: var(--white); border-color: var(--primary); background: var(--primary); box-shadow: var(--shadow-sm); }
.order-filter-count { display: inline-grid; min-width: 23px; height: 23px; padding: 0 6px; place-items: center; border-radius: 999px; color: var(--gray-700); background: var(--gray-100); font-size: .76rem; }
.order-filter-btn.active .order-filter-count { color: var(--primary); background: var(--white); }
.order-list-card {
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.order-list-card:hover { transform: translateY(-1px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.order-list-main { position: relative; padding: 14px 20px 10px; }
.order-list-number { color: var(--primary); font-size: 1.15rem; line-height: 1; font-weight: 800; }
.order-list-name { color: var(--gray-900); font-size: 1.1rem; line-height: 1.2; font-weight: 700; }
.order-list-phone { color: var(--gray-500); font-size: .9rem; font-weight: 600; }
.order-list-address { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: 3px; color: var(--gray-600); font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.order-list-city { color: var(--gray-800); font-weight: 700; }
.order-list-address-separator { color: var(--primary); }
.order-status { padding: 5px 11px; border-radius: 8px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.order-delivery-inline { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
.order-delivery-company { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--bs-secondary-border-subtle); border-radius: 7px; background: var(--bs-secondary-bg-subtle); color: var(--bs-secondary-text-emphasis); font-size: .75rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.order-delivery-status { display: inline-flex; align-items: center; max-width: 135px; padding: 4px 8px; overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: 7px; background: var(--bs-light-bg-subtle); color: var(--bs-body-color); font-size: .75rem; font-weight: 600; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.delivery-tooltip { --bs-tooltip-max-width: 310px; --bs-tooltip-opacity: 1; }
.delivery-tooltip .tooltip-inner { padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.delivery-tooltip-content { min-width: 245px; padding: 10px 12px; text-align: left; }
.delivery-tooltip-title { padding-bottom: 8px; margin-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.18); font-weight: 700; }
.delivery-tooltip-content > div:not(.delivery-tooltip-title) { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 3px 0; }
.delivery-tooltip-content span { color: rgba(255,255,255,.65); white-space: nowrap; }
.delivery-tooltip-content strong { text-align: right; overflow-wrap: anywhere; }
.order-status-pending { color: var(--bs-warning-text-emphasis); background: var(--bs-warning-bg-subtle); }
.order-status-confirmed { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }
.order-status-delivered { color: var(--bs-primary-text-emphasis); background: var(--bs-primary-bg-subtle); }
.order-status-refunded { color: var(--bs-secondary-text-emphasis); background: var(--bs-secondary-bg-subtle); }
.order-status-cancelled { color: var(--bs-danger-text-emphasis); background: var(--bs-danger-bg-subtle); }
.order-product-image { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.order-image-placeholder { display: grid; place-items: center; color: var(--gray-500); background: var(--gray-100); }
.order-list-footer { min-height: 50px; padding: 7px 20px; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.order-list-date { color: var(--gray-800); font-size: .9rem; }
.order-list-total { color: var(--primary); font-size: 1.3rem; line-height: 1; font-weight: 800; white-space: nowrap; }
.order-list-total span { margin-left: 2px; font-size: .78rem; }
@media (max-width: 575.98px) {
    #ordersControls { align-items: stretch !important; }
    #ordersControls input[type="search"] {
        flex: 0 0 auto;
        width: 100%;
        max-width: none !important;
    }
    .order-status-filters { flex-wrap: nowrap; justify-content: flex-start; width: 100%; padding-bottom: 4px; overflow-x: auto; }
    .order-filter-btn:first-child { margin-left: 0; }
    .order-filter-btn { flex: 0 0 auto; }
    .order-list-main { padding: 12px 15px 9px; }
    .order-list-header { flex-direction: column; gap: 10px !important; }
    .order-list-info { width: 100%; padding-right: 48px; }
    .order-list-aside { width: 100%; align-items: stretch !important; }
    .order-delivery-inline { justify-content: flex-start; flex-wrap: wrap; gap: 5px; }
    .order-status { padding: 4px 8px; font-size: .74rem; }
    .order-delivery-company,
    .order-delivery-status { max-width: 100%; padding: 4px 7px; font-size: .7rem; }
    .order-list-footer { padding: 7px 15px; }
    .order-list-name { font-size: 1rem; }
    .order-list-total { font-size: 1.15rem; }
    .order-product-image { position: absolute; top: 12px; right: 15px; width: 40px; height: 40px; border-radius: 8px; }
}

/* Product editor tabs and suggested-product settings */
.product-content-tabs{width:calc(100% - var(--bs-gutter-x));margin-inline:calc(var(--bs-gutter-x) * .5);padding:16px;border:1px solid #dfe3e8;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.product-content-tabs>.nav-tabs{gap:5px;border-bottom:1px solid #dfe3e8}
.product-content-tabs>.nav-tabs .nav-link{padding:12px 18px;border:0;border-bottom:3px solid transparent;color:#667085;font-weight:600}
.product-content-tabs>.nav-tabs .nav-link.active{border-bottom-color:var(--primary);color:var(--primary);background:color-mix(in srgb,var(--primary) 5%,#fff)}
.product-content-tabs .tab-pane>.row{margin:0}
.product-content-tabs .tab-pane>.row>[class*=col-]{padding-inline:0}
.product-content-tabs #product-meta-tab .col-lg-6:first-child{padding-right:8px}
.product-content-tabs #product-meta-tab .col-lg-6:last-child{padding-left:8px}
.suggested-product-settings{border:1px solid color-mix(in srgb,var(--primary) 28%,#dee2e6);background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 5%,#fff),#fff)}
.suggested-product-settings__icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 13%,#fff);color:var(--primary);font-size:22px}
.suggested-product-settings .form-control{height:45px}
.suggested-price-field{position:relative}
.suggested-price-field .form-control{padding-right:48px}
.suggested-price-field>span{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:#172033;pointer-events:none}
.suggested-product-browser{position:relative}
.suggested-product-search{padding:0 42px 0 13px}
.suggested-product-browser>:is(i,.svg-icon){position:absolute;z-index:2;right:15px;top:23px;width:17px;height:17px;transform:translateY(-50%);color:#667085;pointer-events:none}
.suggested-product-list{position:absolute;z-index:1060;left:0;right:0;top:44px;display:block;max-height:250px;overflow-y:auto;background:#fff;border:1px solid var(--primary);border-radius:0 0 7px 7px;box-shadow:0 10px 25px rgba(15,23,42,.12)}
.suggested-product-list:empty{display:none}
.suggested-product-list .order-product-option{width:100%;height:auto;min-height:49px;border:0;background:#fff;display:grid;grid-template-columns:25px 42px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 16px 7px 9px;text-align:left;color:#172033}
.suggested-product-list .order-product-option:hover{background:color-mix(in srgb,var(--primary) 5%,#fff)}
.suggested-product-list .order-product-option img,.suggested-product-list .no-image{width:32px;height:32px;border-radius:4px;object-fit:cover;background:#e6faf5;display:flex;align-items:center;justify-content:center}
.suggested-product-list .order-product-option>span:nth-child(3){min-width:0;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.suggested-product-list .order-product-status{font-size:11px;line-height:1;white-space:nowrap;padding:4px 10px;border-radius:13px;background:#c9f7dc;color:#167342}
.suggested-product-list .order-product-status.inactive{background:#f1f2f4;color:#667085}
@media(max-width:767px){.product-content-tabs>.nav-tabs{flex-wrap:nowrap;overflow-x:auto}.product-content-tabs>.nav-tabs .nav-link{white-space:nowrap;padding:10px 12px}.product-content-tabs #product-meta-tab .col-lg-6{padding:0!important;margin-bottom:12px}}
@media(max-width:575.98px){.suggested-product-list .order-product-option{grid-template-columns:22px 36px minmax(0,1fr) auto;gap:6px;padding:7px}.suggested-product-list .order-product-status{padding-inline:7px}}

/* Empty states */
.empty-state{display:flex;min-height:300px;padding:42px 20px;align-items:center;justify-content:center;flex-direction:column;text-align:center}.empty-state__illustration{display:block;width:min(240px,65%);height:auto}.empty-state__title{max-width:520px;margin:18px 0 0;color:#344054;font-size:1.05rem;font-weight:700;line-height:1.5}

/* Accounting */
.accounting-page{max-width:1600px;margin:auto}.accounting-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border:1px solid #e7e9ef;border-radius:16px;background:linear-gradient(120deg,#fff 50%,color-mix(in srgb,var(--primary) 8%,#fff));box-shadow:0 4px 18px rgba(15,23,42,.04)}.accounting-hero h2{margin:3px 0 6px;color:#172033;font-size:1.65rem;font-weight:800}.accounting-hero p{max-width:650px;margin:0;color:#667085}.accounting-eyebrow{color:var(--primary);font-size:.7rem;font-weight:800;letter-spacing:.13em}.accounting-tabs{display:flex;gap:8px;margin:20px 0 16px;padding-bottom:1px;overflow-x:auto}.accounting-tabs a{display:flex;align-items:center;gap:8px;padding:11px 16px;border:1px solid #e3e6ec;border-radius:10px;color:#667085;background:#fff;font-size:.86rem;font-weight:700;white-space:nowrap}.accounting-tabs a.active,.accounting-tabs a:hover{border-color:var(--primary);color:var(--primary);background:color-mix(in srgb,var(--primary) 5%,#fff)}.accounting-toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.accounting-periods{display:flex;padding:3px;border:1px solid #e3e6ec;border-radius:10px;background:#fff}.accounting-periods a{padding:7px 13px;border-radius:7px;color:#667085;font-size:.8rem;font-weight:700}.accounting-periods a.active{color:#fff;background:var(--primary)}.accounting-search{position:relative;min-width:280px}.accounting-search i{position:absolute;top:50%;left:13px;transform:translateY(-50%);color:#98a2b3}.accounting-search input{width:100%;height:40px;padding:0 12px 0 38px;border:1px solid #e3e6ec;border-radius:10px;outline:0}.accounting-search input:focus{border-color:var(--primary)}.accounting-stat{display:flex;align-items:center;gap:14px;height:100%;min-height:112px;padding:20px;border:1px solid #e6e8ed;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.035)}.accounting-stat>span{display:grid;flex:0 0 46px;width:46px;height:46px;place-items:center;border-radius:12px;font-size:1.25rem}.accounting-stat small{display:block;margin-bottom:7px;color:#7b8494;font-size:.77rem;font-weight:600}.accounting-stat strong{color:#172033;font-size:1.35rem;line-height:1;font-weight:800}.accounting-stat em{font-size:.7rem;font-style:normal}.accounting-stat.danger>span{color:#dc3545;background:#fff0f1}.accounting-stat.primary>span{color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,#fff)}.accounting-stat.warning>span{color:#d78b00;background:#fff8e5}.accounting-stat.success>span{color:#16865b;background:#eafaf3}.accounting-stat.purple>span{color:#7c4dca;background:#f4edff}.accounting-panel{overflow:hidden;border:1px solid #e4e7ec;border-radius:15px;background:#fff;box-shadow:0 3px 14px rgba(15,23,42,.035)}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #edf0f3}.panel-heading h3{margin:0 0 3px;color:#172033;font-size:1rem;font-weight:800}.panel-heading p{margin:0;color:#98a2b3;font-size:.78rem}.accounting-table thead th{padding:13px 18px;border:0;color:#8b94a4;background:#fafbfc;font-size:.71rem;text-transform:uppercase;letter-spacing:.04em}.accounting-table tbody td{padding:13px 18px;border-color:#f0f1f3;vertical-align:middle;color:#475467;font-size:.84rem}.accounting-table tbody td>strong{display:block;color:#253046}.accounting-table tbody td>small{display:block;max-width:260px;margin-top:3px;overflow:hidden;color:#98a2b3;text-overflow:ellipsis;white-space:nowrap}.date-chip{display:flex;align-items:baseline;gap:4px;color:#253046;font-weight:800}.date-chip small{color:#98a2b3;font-size:.68rem;font-weight:600}.category-badge,.reference-chip{display:inline-block;padding:5px 9px;border-radius:7px;color:#667085;background:#f2f4f7;font-size:.72rem;font-weight:700}.amount-negative{color:#d92d45!important;font-weight:800;white-space:nowrap}.amount-positive{color:#16865b!important;font-weight:800;white-space:nowrap}.category-chart{padding:22px}.category-line{margin-bottom:22px}.category-line>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:.8rem}.category-line span{color:#475467;font-weight:700}.category-line strong{color:#172033}.category-track{height:8px;overflow:hidden;border-radius:10px;background:#f0f2f5}.category-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary),color-mix(in srgb,var(--primary) 65%,#fff))}.category-line.green .category-track i{background:linear-gradient(90deg,#16865b,#54c59a)}.accounting-drawer{width:min(440px,100vw)!important}.accounting-drawer .offcanvas-header{padding:22px;border-bottom:1px solid #e8eaee}.accounting-drawer .offcanvas-header small{color:var(--primary);font-size:.67rem;font-weight:800;letter-spacing:.11em}.accounting-drawer .offcanvas-header h5{margin:3px 0 0;font-weight:800}.accounting-drawer .offcanvas-body{padding:24px}.accounting-drawer label{margin-bottom:7px;color:#475467;font-size:.8rem;font-weight:700}.accounting-drawer .form-control,.accounting-drawer .form-select{min-height:44px;border-color:#dfe3e8;border-radius:9px}.accounting-drawer textarea.form-control{min-height:105px}
@media(max-width:767px){.accounting-hero{align-items:flex-start;flex-direction:column;padding:22px}.accounting-hero .btn{width:100%}.accounting-toolbar{align-items:stretch;flex-direction:column}.accounting-search{min-width:0}.accounting-periods{align-self:flex-start}.accounting-table thead th,.accounting-table tbody td{padding-inline:12px}.accounting-stat{min-height:96px}}
.accounting-tabs-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.accounting-tabs-bar .accounting-tabs{margin:0}
@media(max-width:767px){.accounting-tabs-bar{align-items:stretch;flex-direction:column}.accounting-tabs-bar>.btn{width:100%}}
.accounting-definition{color:#7b8494;font-size:.75rem;font-weight:600}.accounting-definition i{margin-right:5px;color:var(--primary)}.accounting-stat-detail{min-height:128px}.accounting-stat-detail p{margin:7px 0 0;color:#98a2b3;font-size:.65rem;line-height:1.35}.cash-legend{display:flex;gap:14px;color:#667085;font-size:.7rem;font-weight:700}.cash-legend span:before{display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;content:""}.cash-legend .income:before{background:#2dad7f}.cash-legend .expense:before{background:#e25a68}.cash-chart{display:flex;height:260px;padding:28px 28px 20px;align-items:stretch;justify-content:space-around;gap:15px}.cash-month{display:flex;min-width:34px;align-items:center;flex-direction:column;justify-content:flex-end;gap:9px}.cash-bars{display:flex;height:190px;align-items:flex-end;gap:5px}.cash-bars i{display:block;width:13px;min-height:2px;border-radius:5px 5px 2px 2px}.cash-bars .income{background:linear-gradient(#65d6ad,#209b70)}.cash-bars .expense{background:linear-gradient(#f38b96,#db4052)}.cash-month>span{color:#7b8494;font-size:.7rem;font-weight:700}.finance-breakdown{padding:12px 22px 20px}.finance-breakdown>div{display:flex;padding:13px 2px;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px dashed #e6e9ee;color:#667085;font-size:.82rem}.finance-breakdown strong{color:#273349}.finance-breakdown .total{margin-top:8px;padding:17px 14px;border:0;border-radius:10px;color:var(--primary);background:color-mix(in srgb,var(--primary) 7%,#fff);font-weight:800}.finance-breakdown .total strong{color:var(--primary);font-size:1.05rem}.order-account-status{display:inline-block;padding:5px 9px;border-radius:7px;background:#f2f4f7;color:#667085;font-size:.72rem;font-weight:700}.order-account-status.delivered{color:#157a55;background:#e8f8f1}.order-account-status.refunded,.order-account-status.cancelled{color:#c93648;background:#fff0f2}.order-account-status.confirmed{color:#1670a5;background:#eaf6fd}.order-account-status.depot,.order-account-status.transit{color:#7453b7;background:#f3edff}.finance-kpis{padding:23px}.finance-kpis>div:not(.kpi-note){display:grid;margin-bottom:23px;grid-template-columns:1fr auto;gap:8px;color:#667085;font-size:.8rem;font-weight:700}.finance-kpis strong{color:#253046}.finance-kpis>div>i{display:block;height:7px;overflow:hidden;grid-column:1/-1;border-radius:10px;background:#edf0f3}.finance-kpis>div>i b{display:block;height:100%;border-radius:inherit;background:#2dad7f}.finance-kpis>div>i.danger b{background:#e25a68}.kpi-note{display:flex;margin-top:7px;padding:14px;gap:12px;border-radius:10px;color:#625640;background:#fbf7f0}.kpi-note>i{margin-top:3px;color:#c9985d}.kpi-note p{margin:0;font-size:.76rem;line-height:1.65}.kpi-note b{color:#342e24}
@media(max-width:767px){.accounting-definition{display:none}.cash-chart{height:220px;padding-inline:12px}.cash-bars{height:155px}.cash-bars i{width:9px}.cash-legend{display:none}}

/* Accounting overview: prioritize the final result and separate forecasts. */
.profit-summary{display:grid;grid-template-columns:minmax(280px,.8fr) 2fr;gap:26px;padding:26px;border:1px solid #bde8d7;border-radius:16px;background:linear-gradient(120deg,#f1fcf7,#fff 55%);box-shadow:0 6px 20px rgba(22,134,91,.07)}
.profit-summary.is-negative{border-color:#f1c4ca;background:linear-gradient(120deg,#fff4f5,#fff 55%)}
.profit-summary-main{display:flex;align-items:center;gap:16px}.profit-summary-icon{display:grid;width:56px;height:56px;flex:0 0 56px;place-items:center;border-radius:15px;color:#16865b;background:#dff7ec}.profit-summary.is-negative .profit-summary-icon{color:#c93648;background:#ffe5e8}.profit-summary-icon .svg-icon{width:25px;height:25px}.profit-summary-main small{display:block;color:#477063;font-size:.78rem;font-weight:800}.profit-summary-main h2{margin:5px 0;color:#116b49;font-family:var(--font-body);font-size:2rem;font-weight:900}.profit-summary.is-negative h2{color:#b42335}.profit-summary-main h2 em{font-size:.8rem;font-style:normal}.profit-summary-main p{margin:0;color:#667085;font-size:.75rem}
.profit-summary-formula{display:grid;grid-template-columns:repeat(9,auto);align-items:center;justify-content:space-between;gap:10px;padding:15px 18px;border:1px solid rgba(22,134,91,.12);border-radius:12px;background:rgba(255,255,255,.8)}.profit-summary-formula>div{min-width:0}.profit-summary-formula span{display:block;margin-bottom:5px;color:#7b8494;font-size:.65rem;font-weight:700}.profit-summary-formula strong{color:#253046;font-size:.82rem;white-space:nowrap}.profit-summary-formula>b{color:#98a2b3}.profit-summary-formula .formula-result{padding:10px 12px;border-radius:9px;background:#e7f8f0}.profit-summary.is-negative .formula-result{background:#ffe9ec}.profit-summary-formula .formula-result strong{color:#16865b}.profit-summary.is-negative .formula-result strong{color:#c93648}
.profit-summary-formula.cash-flow-formula{grid-template-columns:repeat(5,auto)}
.accounting-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 2px 12px}.accounting-section-title h3{margin:0 0 3px;color:#172033;font-size:1rem;font-weight:800}.accounting-section-title p{margin:0;color:#98a2b3;font-size:.75rem}.accounting-section-title>span{padding:6px 10px;border-radius:20px;color:#16865b;background:#eaf8f2;font-size:.72rem;font-weight:800}
.accounting-stat>span .svg-icon{display:block;width:22px;height:22px}
.forecast-strip{display:grid;grid-template-columns:1.35fr repeat(3,1fr);align-items:center;overflow:hidden;border:1px solid #e2e6ed;border-radius:14px;background:#fff}.forecast-strip>div{padding:17px 20px;border-inline-start:1px solid #edf0f3}.forecast-strip .forecast-title{display:flex;align-items:center;gap:14px;border:0}.forecast-strip .forecast-title>span{display:grid;width:46px;height:46px;flex:0 0 46px;margin:0;place-items:center;border-radius:12px;color:#7c4dca;background:#f4edff}.forecast-strip .forecast-title>span>.svg-icon{display:block;width:22px;height:22px;margin:0;align-self:center;justify-self:center;vertical-align:middle}.forecast-title strong,.forecast-title small{display:block}.forecast-title strong{color:#253046;font-size:.82rem}.forecast-title small{margin-top:3px;color:#98a2b3;font-size:.68rem}.forecast-strip>div>span{display:block;margin-bottom:4px;color:#7b8494;font-size:.7rem}.forecast-strip>div>strong{color:#253046;font-size:1rem}.forecast-strip .forecast-profit{background:#f8fafc}.forecast-strip .forecast-profit strong{color:#16865b}
@media(max-width:1199px){.profit-summary{grid-template-columns:1fr}.profit-summary-formula{justify-content:stretch}.forecast-strip{grid-template-columns:1fr 1fr}.forecast-strip>div:nth-child(3){border-top:1px solid #edf0f3}.forecast-strip>div:nth-child(odd){border-inline-start:0}}
@media(max-width:767px){.profit-summary{padding:19px}.profit-summary-main h2{font-size:1.7rem}.profit-summary-formula{grid-template-columns:1fr auto;gap:9px}.profit-summary-formula>b{display:none}.profit-summary-formula>div{display:flex;justify-content:space-between;gap:12px;grid-column:1/-1;padding-bottom:8px;border-bottom:1px dashed #e4e7ec}.profit-summary-formula>div:last-child{border:0}.profit-summary-formula span{margin:0}.forecast-strip{grid-template-columns:1fr}.forecast-strip>div{border-inline-start:0;border-top:1px solid #edf0f3!important}.forecast-strip .forecast-title{border-top:0!important}.accounting-section-title{align-items:flex-start;flex-direction:column}}
.accounting-date-range{display:flex;margin:-4px 0 18px;padding:10px 12px;align-items:flex-end;gap:10px;border:1px solid #e3e6ec;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.025)}.accounting-date-range.active{border-color:color-mix(in srgb,var(--primary) 55%,#e3e6ec);background:color-mix(in srgb,var(--primary) 2%,#fff)}.accounting-date-range>div{display:flex;min-width:155px;flex-direction:column;gap:4px}.accounting-date-range label{color:#7b8494;font-size:.68rem;font-weight:800;text-transform:uppercase}.accounting-date-range input{height:38px;padding:0 10px;border:1px solid #dfe3e8;border-radius:8px;color:#344054;background:#fff;font-size:.8rem;font-weight:600;outline:0}.accounting-date-range input:focus{border-color:var(--primary)}.accounting-date-range>span{display:grid;height:38px;place-items:center;color:#98a2b3}.accounting-date-range .btn{height:38px;margin-left:auto;padding-inline:17px;font-size:.78rem;font-weight:700}
@media(max-width:575.98px){.accounting-date-range{display:grid;grid-template-columns:1fr 20px 1fr}.accounting-date-range>div{min-width:0}.accounting-date-range .btn{width:100%;margin:2px 0 0;grid-column:1/-1}.accounting-date-range input{width:100%;padding-inline:6px;font-size:.72rem}}
.accounting-date-range{display:block;width:fit-content;margin:-4px 0 18px;padding:0;border:0;background:transparent;box-shadow:none}.accounting-date-range.active{border:0;background:transparent}.accounting-date-field{position:relative!important;display:block!important;width:300px;min-width:0!important}.accounting-date-field>i:first-child{position:absolute;z-index:2;top:50%;left:13px;transform:translateY(-50%);color:var(--primary);pointer-events:none}.accounting-date-field .accounting-date-chevron{position:absolute;z-index:2;top:50%;right:13px;transform:translateY(-50%);color:#98a2b3;font-size:.68rem;pointer-events:none}.accounting-date-field input{width:100%;height:42px;padding:0 38px!important;border:1px solid #dfe3e8;border-radius:10px;color:#344054;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.025);font-size:.8rem;font-weight:700;cursor:pointer}.accounting-date-range.active .accounting-date-field input{border-color:color-mix(in srgb,var(--primary) 65%,#dfe3e8);background:color-mix(in srgb,var(--primary) 2%,#fff)}
@media(max-width:575.98px){.accounting-date-range{display:block;width:100%}.accounting-date-field{width:100%}}
.accounting-filter-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.accounting-filter-group .accounting-date-range{margin:0}.accounting-filter-group .accounting-date-field{width:270px}.accounting-toolbar{align-items:center}
@media(max-width:767px){.accounting-filter-group{width:100%;flex-wrap:nowrap}.accounting-filter-group .accounting-periods{flex:0 0 auto}.accounting-filter-group .accounting-date-range{flex:1;min-width:210px}.accounting-filter-group .accounting-date-field{width:100%}}
@media(max-width:575.98px){.accounting-filter-group{align-items:stretch;flex-direction:column;overflow:visible;padding-bottom:0}.accounting-filter-group .accounting-periods{display:grid;width:100%;grid-template-columns:repeat(3,1fr)}.accounting-filter-group .accounting-periods a{justify-content:center;text-align:center}.accounting-filter-group .accounting-date-range{width:100%;min-width:0}.accounting-filter-group .accounting-date-field{width:100%}}
.delivery-company-name{display:flex;align-items:center;gap:10px;white-space:nowrap}.delivery-company-name>span{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,#fff)}.delivery-company-name strong{color:#253046}.company-remaining{color:#bd7b2e!important;font-size:.9rem!important;font-weight:800;white-space:nowrap}.company-settlement{display:inline-flex;padding:5px 9px;align-items:center;gap:5px;border-radius:7px;font-size:.7rem;font-weight:800;white-space:nowrap}.company-settlement.settled{color:#157a55;background:#e8f8f1}.company-settlement.pending{color:#aa6c22;background:#fff5e8}.company-account-table td{vertical-align:middle}
/* Inline SVG icons. */
.svg-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; overflow: visible; pointer-events: none; }
.svg-icon.is-spinning { animation: svg-icon-spin 1s linear infinite; }
@keyframes svg-icon-spin { to { transform: rotate(360deg); } }

/* Compact grouped sidebar pattern */
.sidebar {
  padding: 0 10px 10px;
}
.sidebar-brand {
  min-height: 72px;
  margin: 0 -10px;
  padding: 18px 20px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-nav > .nav-item {
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
}
.sidebar-nav .nav-link {
  min-height: 44px;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.2;
}
.sidebar-nav .nav-link > .svg-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  border: 0;
  background: color-mix(in srgb, var(--primary) 10%, #fff);
}
.sidebar-nav .submenu.active {
  padding: 2px 0 6px;
  background: color-mix(in srgb, var(--primary) 9%, #fff);
}
.sidebar-nav .submenu.active > .nav-link {
  border: 0;
  background: color-mix(in srgb, var(--primary) 13%, #fff);
}
.sidebar-nav .submenu-list,
.sidebar-nav .submenu.active .submenu-list {
  margin: 0;
  padding: 4px 0 2px;
  border: 0;
  background: transparent;
}
.sidebar-nav .submenu-list li a {
  min-height: 38px;
  padding: 9px 26px;
  border: 0;
  border-radius: 7px;
  font-size: .83rem;
  font-weight: 600;
}
.sidebar-nav .submenu-list li a > .svg-icon { display: none; }
.sidebar-nav .submenu-list li.active a,
.sidebar-nav .submenu-list li a:hover {
  border: 0;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
}
.sidebar-nav .subdrop { padding-right: 38px; }
.sidebar-nav .subdrop::after {
  right: 12px;
  width: 15px;
  height: 15px;
  background-size: 15px 15px;
}
.sidebar-footer {
  padding: 10px 0 0;
  border: 0;
}
.sidebar-footer .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 7%, #fff);
  font-size: .84rem;
  font-weight: 600;
}
.sidebar-footer .svg-icon { width: 18px; height: 18px; }

/* Direct-SVG field icons (Font Awesome compatibility cleanup). */
.accounting-search { position: relative; }
.accounting-search > .svg-icon,
.accounting-date-field > .svg-icon:first-child {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 13px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}
.accounting-search > .svg-icon { color: #98a2b3; }
.accounting-date-field > .svg-icon:first-child { color: var(--primary); }
.accounting-date-field > .accounting-date-chevron {
  right: 13px;
  left: auto;
}

/* Unified dashboard pagination */
.pagination {
  --bs-pagination-padding-x: 0;
  --bs-pagination-padding-y: 0;
  --bs-pagination-font-size: .7rem;
  --bs-pagination-color: #7d6b5b;
  --bs-pagination-bg: #fff;
  --bs-pagination-border-color: #e4e7ec;
  --bs-pagination-hover-color: var(--primary-dark, #8d6036);
  --bs-pagination-hover-bg: #faf0e5;
  --bs-pagination-hover-border-color: #dfc29f;
  --bs-pagination-focus-color: var(--primary-dark, #8d6036);
  --bs-pagination-focus-bg: #faf0e5;
  --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(169,120,66,.14);
  --bs-pagination-active-color: #8a5b2e;
  --bs-pagination-active-bg: #f5e7d6;
  --bs-pagination-active-border-color: #d9b68e;
  --bs-pagination-disabled-color: #c2c7d0;
  --bs-pagination-disabled-bg: #f8f9fb;
  --bs-pagination-disabled-border-color: #eaecf0;
  gap: 4px;
}
.pagination .page-link {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(79,55,32,.035);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.pagination .page-link:hover { transform: translateY(-1px); }
.pagination .page-item.active .page-link { box-shadow: 0 2px 6px rgba(169,120,66,.16); }
.pagination .page-item.disabled .page-link { pointer-events: none; box-shadow: none; }

.product-pagination { gap: 4px; }
.product-pagination button,
.product-pagination span {
  min-width: 28px;
  height: 28px;
  border-color: #e4e7ec;
  border-radius: 7px !important;
  box-shadow: 0 1px 2px rgba(79,55,32,.035);
}
.product-pagination span {
  border-color: #d9b68e;
  color: #8a5b2e;
  background: #f5e7d6;
  box-shadow: 0 2px 6px rgba(169,120,66,.16);
}
.product-pagination button:not(:disabled):hover {
  border-color: #dfc29f;
  color: var(--primary-dark, #8d6036);
  background: #faf0e5;
}

/* Keep the treasury chart balanced when the reconciliation card gains rows. */
.accounting-page .row.g-4.mb-4 > .col-xl-7 > .accounting-panel{display:flex;flex-direction:column}
.accounting-page .row.g-4.mb-4 > .col-xl-7 .cash-chart{flex:1;height:auto;min-height:260px}
.accounting-page .row.g-4.mb-4 > .col-xl-7 .cash-month{height:100%}
.accounting-page .row.g-4.mb-4 > .col-xl-7 .cash-bars{height:calc(100% - 25px)}
@media(max-width:767px){.accounting-page .row.g-4.mb-4 > .col-xl-7 .cash-chart{min-height:220px}}
.bootstrap-select>.dropdown-toggle{padding-right:38px;position:relative}.bootstrap-select>.dropdown-toggle:after{width:12px;height:8px;margin:0;position:absolute;right:13px;top:50%;transform:translateY(-50%) rotate(0deg);transform-origin:center;border:0!important;background:center/12px 8px no-repeat url("data:image/svg+xml,%3Csvg viewBox='0 -4.5 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M.292.366a1.035 1.035 0 0 0 0 1.464l8.264 8.563a2 2 0 0 0 2.827 0l8.325-8.625A1.035 1.035 0 0 0 18.294.303l-7.618 7.893a1 1 0 0 1-1.414 0L1.705.366a1 1 0 0 0-1.413 0Z'/%3E%3C/svg%3E");opacity:.72;transition:transform .2s ease}.bootstrap-select>.dropdown-toggle[aria-expanded="true"]:after,.bootstrap-select.show>.dropdown-toggle:after{transform:translateY(-50%) rotate(180deg)}
.bootstrap-select>.dropdown-toggle:after{width:14px!important;height:9px!important;background-size:14px 9px!important;opacity:.9!important}
@media(max-width:767px){.product-profit-responsive{overflow:visible}.product-profit-table,.product-profit-table tbody,.product-profit-table tfoot,.product-profit-table tr,.product-profit-table td,.product-profit-table th{display:block;width:100%}.product-profit-table thead{display:none}.product-profit-table tbody tr,.product-profit-table tfoot tr{width:calc(100% - 24px);margin:12px;overflow:hidden;border:1px solid #e4e7ec;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.04)}.product-profit-table tbody td,.product-profit-table tfoot th{display:flex!important;min-height:40px;padding:10px 13px!important;align-items:center;justify-content:space-between;gap:18px;border:0!important;border-bottom:1px dashed #edf0f3!important;text-align:right!important;white-space:normal}.product-profit-table tbody td:last-child,.product-profit-table tfoot th:last-child{border-bottom:0!important}.product-profit-table tbody td:before,.product-profit-table tfoot th:before{content:attr(data-label);flex:0 0 47%;color:#7b8494;font-size:.7rem;font-weight:700;text-align:left}.product-profit-table tbody td:first-child{padding:14px!important;background:#fafbfc}.product-profit-table tbody td:first-child:before{display:none}.product-profit-table tbody td:first-child strong{width:100%;color:#172033;font-size:.86rem;text-align:left}.product-profit-table tfoot{border:0}.product-profit-table tfoot tr{border-color:color-mix(in srgb,var(--primary) 35%,#e4e7ec);background:color-mix(in srgb,var(--primary) 4%,#fff)}.product-profit-table tfoot th:first-child{font-size:.9rem}}
