@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&amp;display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&amp;display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

/* Fonts in use */
/* @import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=LINE+Seed+JP&display=swap'); */

/* ----------------------------------------------------
   Figtree
---------------------------------------------------- */
@font-face {
    font-family: 'Figtree Medium';
    src: url('../fonts/Figtree-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../fonts/Figtree-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree Bold';
    src: url('../fonts/Figtree-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------
   DM Sans
---------------------------------------------------- */
@font-face {
    font-family: 'DM Sans Medium';
    src: url('..fonts/DMSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans Bold';
    src: url('../fonts/DMSans-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------
   LINE Seed JP
---------------------------------------------------- */
@font-face {
    font-family: 'LINE Seed JP Thin';
    src: url('../fonts/LINESeedJP-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP';
    src: url('../fonts/LINESeedJP-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP Bold';
    src: url('../fonts/LINESeedJP-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP ExtraBold';
    src: url('../fonts/LINESeedJP-ExtraBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------
   Debug: Form Boundaries
---------------------------------------------------- */
/* form {
  outline: 2px dashed red !important;
}

form * {
  outline: 1px dashed rgba(255, 0, 0, 0.25);
} */

/* ----------------------------------------------------
   Disable Text Selection & Dragging (Optional)
---------------------------------------------------- */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.no-link {
  pointer-events: none;
}

/* ----------------------------------------------------
   Typography
---------------------------------------------------- */
:root {
  --page-bg: #eef2f5;
  --gray-bg: #f8f9fb !important;
  --dark: #111 !important;
  --dark-gray: #333 !important;
  --light-gray: #666 !important;
  --lighter-gray: #999 !important;
  --lightest-gray: #F1F2F6 !important;
  --white: #fff !important;
  --gray: #333 !important;
  --text: #0f1720 !important;
  --text-dark: #222 !important;
  --maincolor: #825de6 !important;
  --maincolor2: #6336e3 !important;
  --text-white: #fff !important;
  --shadow: 0 12px 30px rgba(18, 28, 40, 0.06);
  --radius: 14px;
  --gap: 22px;
  --max-w: 500px;
  --orange: #ec9b49 !important;
  --red: #dc2626 !important;
  --green: #1ab54d !important;
  --light-green: #76d294 !important;
  --light-yellow: #fff5e9 !important;
  --yellow: #ffdaae !important;
  --gray-f5: #f5f5f5 !important;
  --light-purple-bg: rgba(108, 92, 231, 0.06);
  --card-hr-color: rgba(255, 255, 255, .8);
  --card-hr-color-2: rgba(255, 255, 255, .2);
}

input[type="password"],
input[type="email"],
input[type="text"],
input[type="file"],
input[type="num"],
input[type="number"],
textarea,
button,
body, p, ul li,
.form-control {
font-family: 'Figtree', sans-serif !important;
font-weight: 200 !important;
font-size: 13px !important;
font-optical-sizing: auto;
letter-spacing: .5;
font-style: normal;
color: var(--text);
}

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

.fs-16 {
    font-size: 16px !important;
}

.fs-18 {
    font-size: 18px !important;
}

.fs-20 {
    font-size: 20px !important;
}

.fs-25 {
    font-size: 25px !important;
}

.fs-30 {
    font-size: 30px !important;
}

/* Global Select Styling */
/* ----------------------------------------------------
   Custom Select (App Scoped)
---------------------------------------------------- */

.custom-select {
  background-color: #fff !important;
  font-size: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 42px 10px 12px; /* space for arrow */
  height: 50px;
  line-height: 1.8;
  color: #111827;
  box-shadow: none;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  transition: all .2s ease;

  /* custom arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

/* Hover */
.custom-select:hover {
  border-color: #c7d2fe;
}

/* Focus */
.custom-select:focus {
  border-color: #6336e3;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(99, 54, 227, 0.15);
}

/* Disabled */
.custom-select:disabled {
  background-color: #f3f4f6 !important;
  cursor: not-allowed;
  opacity: .9;
}

/* Small variant */
.custom-select.custom-select-sm {
  height: 40px;
  font-size: 12px;
}

/* Option font size */
.custom-select option {
  font-size: 13px;
  line-height: 1.8;
}

.custom-select option:hover {
  font-size: 13px;
  background: var(--maincolor) !important;
  color: var(--white);
}

/* Global Select Styling End */

h1, h2, h3, h4, h5, h6, .widget_title {
/* font-size: 14px !important; */
font-family: 'Figtree', sans-serif !important;
font-weight: 600 !important;
letter-spacing: .5;
}

.bulleted-list {
list-style: disc;
margin-left: 10px;
}

.text-lg {
font-family: 'LINE Seed JP', sans-serif !important;
font-size: 35px !important;
font-weight: 400 !important;
}

.money,
.text-money,
.product-desc-price,
.product-price {
font-family: 'LINE Seed JP', sans-serif !important;
}

.input-label {
font-family: 'Figtree Medium', sans-serif !important;
font-size: 12px !important;
color: #666 !important;
margin: 1px;
color: var(--text);
}

a {
font-size: 13px !important;
color: var(--maincolor);
font-weight: 500 !important;
}

a:hover {
color: var(--maincolor2);
}

.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-xs { font-size: 11px !important; letter-spacing: 0.3px }
.text-xxs { font-size: 10px !important; letter-spacing: 0.3px}
.text-sm { font-size: 12px !important; letter-spacing: 0.3px }
.text-md { font-size: 13px !important; letter-spacing: 0.3px }
.text-uppercase { text-transform: uppercase !important; }
.ls-1 { letter-spacing: 1px !important; }
.ls-sm { letter-spacing: 0.5px !important; }
.lh-1 { line-height: 20px !important; }
.text-md { font-size: 13px !important; letter-spacing: 0.3px }
.text-bold { font-weight: 700 !important; letter-spacing: 0.3px }
.text-semibold { font-weight: 600 !important; letter-spacing: 0.3px }
.text {color: var(--text) !important; }
.text-gray {color: var(--dark-gray) !important; }
.text-light-gray {color: var(--lighter-gray) !important; }
.text-green {color: var(--green) !important; }
.text-red {color: var(--red) !important; }
.text-light-green {color: var(--light-green) !important; }
.text-dark { color: var(--dark) !important; }
.maincolor { color: var(--maincolor); }
.maincolor2 { color: var(--maincolor2); }Figtree
.muted { color: var(--text); opacity: .05 !important; }
.text-muted { color: var(--text); opacity: .8 !important; }
.underline { text-decoration: underline !important; }
.-mt-5 { margin-top: -5px !important; }
.-mt-10 { margin-top: -10px !important; }
.-mt-15 { margin-top: -15px !important; }
.-mt-20 { margin-top: -20px  !important; }
.-mb-0 { margin-bottom: -0px  !important; }
.-mb-5 { margin-bottom: -5px  !important; }
.-mb-10 { margin-bottom: -10px  !important; }
.-mb-15 { margin-bottom: -15px  !important; }
.-mb-20 { margin-bottom: -20px  !important; }
.-mb-25 { margin-bottom: -25px  !important; }
.-mb-30 { margin-bottom: -30px  !important; }
.mb-5 { margin-bottom: 5px !important; }
.mb-10 { margin-bottom: 10px !important; }
.ls-1 { letter-spacing: 1px; }
.ls-sm { letter-spacing: 0.5px; }

.btn-primary {
color: var(--text-white);
}

select option {
  text-transform: none !important;
}

/* ----------------------------------------------------
   Ui/uX (Visuals)
---------------------------------------------------- */
.breadcrumb-action .active { 
  font-size: 13px !important;
  font-weight: 600;
  color: var(--maincolor);
}

.fondz-check {
    margin: 0;
    cursor: pointer;
}

.fondz-check input {
    display: none;
}

.fondz-check span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .9rem;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #f1f1f1;
    color: #6c757d;
    font-size: 13px;
    transition: .2s ease;
    user-select: none;
}

.fondz-check span:hover {
    border-color: var(--light-gray);
    color: var(--light-gray);
}

.fondz-check input:checked + span {
    background: var(--text);
    border-color: var(--text);
    color: var(--text-white);
    /* box-shadow: 0 4px 12px rgba(130, 93, 230, .25); */
}

.fondz-check input:focus + span {
    /* box-shadow: 0 0 0 .2rem rgba(130, 93, 230, .2); */
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #888;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--maincolor2);
}

.w-md-50,
.w-md-60,
.w-md-80,
.w-md-100 {
    width: 100% !important;
}

.product-title-truncate {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-box {
    position: relative;
    width:50px;
    height:60px;
    min-width:50px;
    overflow:visible; /* allow badge to extend outside */
    border-radius:8px;
    display:block;
    background:#f5f5f5;
}

.img-box img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:8px;
}

.img-box .quantity {
    position:absolute;
    top:-6px;
    right:-6px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:var(--dark-gray);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:600;
    z-index:2;
}

/* ----------------------------------------------------
   Custom Toggle Slider
---------------------------------------------------- */
.form-switch .form-check-input {
    width: 36px;
    height: 20px;
    border-radius: 4px !important;
    border: 1px solid #d1d5db !important;
    background-color: #e5e7eb !important;

    /* Knob */
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3crect x='-3' y='-3' width='6' height='6' rx='1.5' fill='%23fff'/%3e%3c/svg%3e");

    /* White square thumb */
    background-image: linear-gradient(#ffffff, #ffffff) !important;
    background-size: 14px 14px !important;
    background-position: 2px center !important;
    background-repeat: no-repeat !important;

    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Checked */
.form-switch .form-check-input:checked {
    background-color: #825de6 !important;
    border-color: #825de6 !important;

    /* Move white thumb to the right */
    background-image: linear-gradient(#ffffff, #ffffff) !important;
    background-size: 14px 14px !important;
    background-position: right 2px center !important;
    background-repeat: no-repeat !important;
}

/* Focus */
.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(130, 93, 230, 0.15) !important;
}

/* Hide default checkbox */
.toggle-slider {
    appearance:none;
    -webkit-appearance:none;
    position:relative;
    width:46px;
    height:26px;
    border-radius: 4px !important;
    background:#d6dbe3;
    cursor:pointer;
    transition:all .25s ease;
    outline:none;
    flex-shrink:0;
}

/* Knob */
.toggle-slider::before {
    content:"";
    position:absolute;
    top:3px;
    left:3px;
    width:20px;
    height:20px;
    border-radius: 2px;
    background:#fff;
    transition:all .25s ease;
    /* box-shadow:0 2px 5px rgba(0,0,0,.18); */
}

/* ON */
.toggle-slider:checked {
    background:var(--maincolor);
}

.toggle-slider:checked::before {
    left:23px;
}

/* OFF */
.toggle-slider:not(:checked) {
    background:#d1d5db;
}

/* Focus */
/* .toggle-slider:focus{
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
} */

/* ----------------------------------------------------
   KYC Upload (Bank-Grade Minimal)
---------------------------------------------------- */
.dropzone-upload {
  position: relative;
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 14px 14px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .08s ease;
  background: rgba(0,0,0,0.01);
}

.dropzone-upload:hover {
  border-color: rgba(0,0,0,0.22);
  background: rgba(0,0,0,0.02);
}

.dropzone-upload.dragover {
  border-color: rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.03);
}

/* Keep dropzone text clean */
.dropzone-upload p,
.dropzone-upload span {
  margin: 0;
}

/* ----------------------------------------------------
   KYC Thumbnail Preview
---------------------------------------------------- */
.kyc-preview {
  width: 100%;
  height: 110px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  position: relative; /* needed for badges + X */
  overflow: hidden;
}

.kyc-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
}

/* PDF preview state (no image) */
.kyc-preview.has-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  color: rgba(0,0,0,0.65);
}

/* Optional: subtle focus ring when populated */
.kyc-preview.has-file {
  border-color: rgba(0,0,0,0.12);
  background-color: rgba(0,0,0,0.015);
}

/* ----------------------------------------------------
   KYC Badges (Uploaded + File Type) - On Preview Box
---------------------------------------------------- */
.kyc-preview.has-file::before {
  /* content: "✓ Uploaded"; */
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.70);
  letter-spacing: .2px;
}

.kyc-preview.has-file::after {
  content: attr(data-badge);
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.70);
  letter-spacing: .2px;
}

/* ----------------------------------------------------
   KYC Preview Layering Fix (Show Reset Button)
---------------------------------------------------- */
.kyc-preview.has-file::before,
.kyc-preview.has-file::after {
  pointer-events: none;
  z-index: 2;
}

/* ----------------------------------------------------
   KYC PDF Inline Preview
---------------------------------------------------- */
.kyc-preview embed,
.kyc-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.kyc-preview iframe::-webkit-scrollbar,
.kyc-preview::-webkit-scrollbar {
  display: none;
}

/* ----------------------------------------------------
   KYC Reset Button (X) - On Preview Box
---------------------------------------------------- */
.kyc-remove { display: none; }
.kyc-preview.has-file ~ .col-sm-1 .kyc-remove { display: inline-block; }

.kyc-remove {
  color: var(--red);
}

.kyc-remove:hover {
  color: var(--dark-gray);
  transform: scale(1.05);
}

.kyc-remove {
  display: block;
}

/* ----------------------------------------------------
   KYC Preview Fade (All Uploaders)
---------------------------------------------------- */
.kyc-preview-row {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  display: none; /* default hidden */
}

.kyc-preview-row.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------
   Optional: Tight meta spacing under preview
---------------------------------------------------- */
.image-meta,
#addressMeta {
  line-height: 1.25;
}
/* ----------------------------------------------------
   KYC UX End
---------------------------------------------------- */
.custom-upload {
  background: var(--light-yellow);
  color: var(--dark);
  border-radius: 12px;
}

.checkout-shipping-form [class^="step-"] { display: none; }
.checkout-shipping-form .step-1 { display: block; }

.merchant-name {
  display: inline-flex;
  align-items: center;
}

.verification-badge {
  width: 16px;
  height: 16px;
  /* object-fit: contain; */
  /* gap: 6px; */
  display: inline-flex;
  vertical-align: middle;
  margin: -2px 0 0 3px;
  transform: translateY(2px);
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;

  /* display: flex;
  align-items: center;
  justify-content: center; */

  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.user-avatar-square {
  width: 60px;
  height: 60px;
  border-radius: 8px;

  box-sizing: border-box;
  padding: 3px;

  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.user-avatar-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;       /* optional: inner rounding */
}

.logo-box{
    width:60px;
    height:60px;
    overflow:hidden;
    border-radius:8px;
    padding:3px;
    box-sizing:border-box;
}

.logo-box img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    border-radius:5px;
}

.store-logo{
    height:45px;
    width: auto;
}

.store-logo img{
    display:block;
    height:100%;
    width: auto;
}

select optgroup {
  font-weight: 600 !important;
  margin-left: 10px !important;
}

.squared {
  border-radius: 0 !important;
}

.dropdown-section {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  color: #222;
  pointer-events: none;
  padding: 10px 0 0 0;
  letter-spacing: 0.5px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.dropdown-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-text span {
  font-weight: 500;
}

.dropdown-text small {
  display: block;
  font-size: 12px;
}

.variation-row {
  cursor: pointer;
}

.variation-row:hover {
  background: #f8f9fa;
}

.variation-row input[type="radio"] {
  transform: scale(1.1);
}

#addEventModal .modal-dialog {
  max-height: calc(100vh - 2rem);
}

#addEventModal .modal-content {
  max-height: calc(100vh - 2rem);
}

#addEventModal .modal-body {
  overflow-y: auto;
}

#previewFlier {
  width: 100%;
  height: 80px;
  border-radius: 6px;
  margin-top: 20px;

  /* IMPORTANT: correct relative path */
  background-image: url('../images/placeholder.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  background-color: #f5f6fa;
  transition: all 0.2s ease;
}

#previewFlier.has-image {
  border: none;
}

#previewLogo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  margin-top: 10px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  background-color: #f5f6fa;
  transition: all 0.2s ease;
}

#previewLogo.has-image {
  border: none;
}

.card-dark, .bg-dark {
  background: var(--dark);
  color: var(--text-white);
  border-radius: 12px;
  /* box-shadow: var(--shadow); */
  padding: 20px;
  margin-bottom: 10px;
  /* width: 100%; */
}

.card-purple {
  background: var(--maincolor);
  color: var(--text-white);
  /* border-radius: 8px; */
  box-shadow: var(--shadow);
  padding: 15px;
  margin-bottom: 10px;
  /* width: 100%; */
}

.card-light-gray {
  background: var(--gray-bg);
  color: var(--text);
  /* border-radius: 8px; */
  box-shadow: var(--shadow);
  /* width: 100%; */
}

.card-light-gray hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, .7);
}

.card-gray .link-line {
  border-top: 1px solid var(--card-hr-color-2) !important;
}

.card-gray {
  background: var(--dark-gray);
  color: var(--text-white);
  /* border-radius: 8px; */
  /* box-shadow: var(--shadow); */
  padding: 15px;
  margin-bottom: 10px;
  text-align: center;
  /* width: 100%; */
}

.card-gray hr, .card-dark hr {
  border: none;
  height: 1px;
  background: var(--card-hr-color);
}
.card-gray .link-line {
  border-top: 1px solid var(--card-hr-color-2) !important;
}

.card-white {
  background: var(--text-white);
  color: var(--text);
  /* border-radius: 8px; */
  /* box-shadow: var(--shadow); */
  padding: 15px;
  margin-bottom: 10px;
  /* width: 100%; */
}

.modal-title {
  font-size: 16px !important;
}

#liveClock {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
}

.rounded { border-radius: 6px !important; }
.rounded-2 { border-radius: 12px !important; }

.parent-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .parent-center img {
    display: block;
    max-width: 100%;
    height: auto;
} */

.parent-center img {
    display: block;
    margin: 0 auto;
}

input:focus {
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}

input.disabled {
  background: var(--gray-f5);
  cursor: not-allowed;
  opacity: 0.8;
}

select.disabled {
  background: var(--gray-f5);
  cursor: not-allowed;
  opacity: 0.8;
}

/* Delete row animation */
.fade-out-row {
  opacity: 0;
  filter: blur(2px);
  transform: scale(0.98);
  transition: all 0.35s ease;
}

.fade-collapse-row {
  opacity: 0;
  height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  transition: opacity 0.25s ease, height 0.25s ease;
}

/* ----------------------------------------------------
   Inline Job Rename
---------------------------------------------------- */
.job-title {
  padding: 4px 6px;
  border-radius: 4px;
  background: #fff;
  cursor: text;
}

/* Editing state */
.job-title[contenteditable="true"] {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 0 1px var(--primary-color);
  outline: none;
}

.job-title[contenteditable="true"]:focus {
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

/* ----------------------------------------------------
   Payment Link
---------------------------------------------------- */
.preview-img {
  border-radius: 10px;
  height: 425px;
  width: 100%;
  overflow: hidden;
}

/* Base rule */
.preview-img img {
  width: 100%;
  height: 100%;          /* ← REQUIRED */
  object-fit: cover;    /* ← DOES THE CROPPING */
  object-position: center;
  display: block;
}

/* Optional semantic class (safe to keep) */
.preview-crop {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------
   Live Search
---------------------------------------------------- */
.customer-drop.customer-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
}

.customer-item {
    padding: 12px 15px;
    cursor: pointer;
}

.customer-item:hover {
    background: var(--gray-f5);
}

.add-customer {
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ----------------------------------------------------
   Side Navbar
---------------------------------------------------- */

/* --------------------
   Base
-------------------- */
/* .sidebar_nav {
    background: #111;
} */

.sidebar_nav li {
    list-style: none;
}

/* .sidebar_nav a:hover,
.sidebar_nav span:hover,
.sidebar_nav li:hover {
    color: #fff;
    text-decoration: none;
} */

/* --------------------
   Hover (default items)
-------------------- */
.sidebar_nav > li:hover:not(.has-child):not(.active):not(.purple-li),
.sidebar_nav > li.has-child:hover {
    background-color: #222;
    color: var(--lighter-gray) !important;
}

.sidebar_nav > li:hover > a,
.sidebar_nav > li:hover {
    color: var(--lighter-gray);
}

/* --------------------
   Active (non has-child)
-------------------- */
.sidebar_nav > li.active {
    background-color: #444;
}

.sidebar_nav > li.active > a,
.sidebar_nav > li.active > a span {
    color: var(--text-white);
}

/* --------------------
   Purple Highlight
-------------------- */
.sidebar_nav .purple-li {
    background: var(--maincolor2);
}

.sidebar_nav .purple-li > a,
.sidebar_nav .purple-li > a span {
    color: var(--text-white);
}

/* --------------------
   Has-Child (closed)
-------------------- */
.sidebar_nav .has-child > a {
    color: #ccc;
}

/* --------------------
   Has-Child (open / active)
-------------------- */
.sidebar_nav .has-child.open,
.sidebar_nav .has-child.active {
    background-color: #222;
}

/* Parent link */
.sidebar_nav .has-child.open > a,
.sidebar_nav .has-child.active > a,
.sidebar_nav .has-child.open > a span,
.sidebar_nav .has-child.active > a span {
    color: var(--text-white);
}

/* Child links */
.sidebar_nav .has-child.open ul li a {
    color: var(--text-white);
}

/* Hover inside open menu */
.sidebar_nav .has-child.open a:hover {
    color: #999 !important;
}


/* Active child (background only) */
.sidebar_nav .has-child.open ul li.active {
    background-color: #444;
    color: var(--text-white);
    border-radius: 4px !important;
    width: 108%;
    margin-left: -3px;
}

/* Active child (sub links) */
.sidebar_nav .has-child.open ul li.active .sub-link {
    background-color: var(--dark);
    color: #f1f1f1;
    border-radius: 0 !important;
    width: 108%;
    margin-left: -3px;
}

.sidebar_nav .has-child.open ul li.active a {
    color: var(--text-white);
}

/* ----------------------------------------------------
   (WebKit browsers)
---------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f2eafb;
}

::-webkit-scrollbar-thumb {
    background: #a485fb;
    border-radius: 10px;
    border: 2px solid #f2eafb;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== Scrollbar (Firefox) ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: #a485fb #f2eafb;
}

/* ----------------------------------------------------
   Logo (Responsive)
---------------------------------------------------- */
/* Desktop */
.navbar-left .logo-area {
  margin-left: -48px;
}

.banner-feature__shape {
  width: 225px;
}

/* ----------------------------------------------------
   Input Field Tooltip
---------------------------------------------------- */
.inline-tooltip {
    position: relative;
}

.info-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);

    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #999;
    color: #666;
    font-size: 11px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    background: #fff;
    z-index: 2;
}

/* Tooltip bubble */
.tooltip-text {
    visibility: hidden;
    opacity: 0;

    position: absolute;
    right: 0;
    top: -8px;
    transform: translateY(-100%);

    width: 250px;
    background: #333;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;

    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Arrow */
.tooltip-text::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 12px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-dark) transparent transparent transparent;
}

/* Show tooltip */
.info-icon:hover .tooltip-text,
.info-icon:focus .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip {
    padding-right: 40px;
}

/* ----------------------------------------------------
   Badges
---------------------------------------------------- */
.yellow-bg {
  background-color: var(--yellow);
  color: var(--text);
  border-radius: 6px;
  text-align: center;
}

.green-bg {
  background-color: #20b66b;
  color: var(--white);
  border-radius: 6px;
  text-align: center;
}

.d-badge {
  display: inline-block;
  background: #34c97e;
  color: var(--text-white);
  padding: 1px 5px 1px 5px;
  margin-right: 3px;
  border-radius: 5px;
  text-align: center;
}

.badge-green {
  display: inline-block;
  background: var(--green);
  color: hsl(0, 0%, 100%) !important;
  padding: 5px 10px 4px 10px;
  border-radius: 4px;
  text-align: center;
}

.badge-orange {
  display: inline-block;
  background: var(--orange);
  color: hsl(0, 0%, 100%) !important;
  padding: 5px 10px 4px 10px;
  border-radius: 4px;
  text-align: center;
}

.badge-red {
  display: inline-block;
  background: var(--red);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  border-radius: 4px;
  text-align: center;
}

.badge-purple {
  display: inline-block;
  background: var(--maincolor);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  border-radius: 4px;
  text-align: center;
}

.badge-purple-2 {
  display: inline-block;
  background: var(--maincolor2);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  border-radius: 4px;
  text-align: center;
}

.badge-dark:hover,
.badge-gray:hover,
.badge-green:hover,
.badge-orange:hover,
.badge-red:hover,
.badge-purple:hover,
.badge-purple-2:hover {
  background: var(--dark);
  color: var(--white);
}

.badge-label {
  display: inline-block;
  background: var(--gray);
  color: var(--text-white);
  padding: 2px 5px 2px 5px;
  margin-top: -5px 0 0 5px;
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
}

.badge-count {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  padding: 2px 5px 2px 4px;
  margin: -1px 0 0 10px;
  font-size: 10px;
  border-radius: 4px;
  text-align: center;
}

.badge-black {
  display: inline-block;
  background: var(--dark);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  border-radius: 4px;
  text-align: center;
}

.badge-blue {
  display: inline-block;
  background: rgb(52, 165, 215);
  color: #fff;
  padding: 4px 10px 4px 10px;
  font-size: 11px;
  border-radius: 5px;
  text-align: center;
}

.badge-dark {
  display: inline-block;
  background: var(--dark-gray);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  border-radius: 4px;
  text-align: center;
}

.badge-white {
  display: inline-block;
  background: var(--white);
  color: var(--text);
  padding: 5px 10px 4px 10px;
  border-radius: 4px;
  text-align: center;
}

.badge-white:hover {
  background: var(--dark);
  color:var(--white);
}

.badge-gray {
  display: inline-block;
  background: var(--gray);
  color: var(--text-white);
  padding: 5px 10px 4px 10px;
  font-size: 9px;
  border-radius: 4px;
  text-align: center;
}

.badge-light-gray {
  display: inline-block;
  background: var(--lightest-gray);
  color: var(--dark);
  padding: 5px 10px 4px 10px;
  font-size: 9px;
  border-radius: 4px;
  text-align: center;
}

.bg-white {
  background: var(--white);
  padding-top: 20px;
  /* border-radius: 12px 12px 0 0; */
}

.gray-bg {
  background: var(--gray-bg);
  color: var(--text);
  padding: 6px 10px 5px 10px;
  font-size: 9px;
  border-radius: 4px;
  /* text-align: center; */
}

.gray-bg-2 {
  background: #f1f1f1;
  color: var(--text);
  padding: 30px;
  margin-top: 5px;
  font-size: 12px;
  border-radius: 8px;
  /* text-align: center; */
}

.gray-bg-3 {
  background: #f3f3f3;
  border: 1px solid #ddd;
  color: var(--dark);
  padding: 15px;
  font-size: 11px;
  border-radius: 6px;
  /* text-align: center; */
}

.badge-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--light-gray);
  color: var(--text-white);

  width: 20px;
  height: 17px;

  font-size: 10px !important;
  border-radius: 4px;
}

.badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lightest-gray);
  color: var(--text);
  padding: 8px 5px 8px 5px;
  margin-left: 5px;
  letter-spacing: 0.5px;
  font-size: 8px !important;
  border-radius: 4px;
}

.badge-hover:hover, .badge-hover:active {
  background: var(--maincolor);
  color: var(--text-white);
}

.dark-btn {
  display: inline-block;
  background: var(--dark);
  border: 1px solid var(--dark);
  color: var(--text-white);
  padding: 10px 18px 10px 18px;
  font-size: 13px !important;
  border-radius: 6px;
  text-align: center;
}

.dark-btn-2 {
  display: inline-block;
  background: var(--dark);
  border: 1px solid var(--dark);
  color: var(--text-white);
  padding: 10px 18px 10px 18px;
  border-radius: 6px;
  text-align: center;
}

.gray-btn {
  display: inline-block;
  background: var(--lightest-gray);
  border: 1px solid var(--lightest-gray);
  color: var(--dark);
  padding: 10px 18px 10px 18px;
  border-radius: 6px;
  text-align: center;
}

.gray-btn-2 {
  display: inline-block;
  background: var(--gray);
  border: 1px solid var(--gray);
  color: var(--white);
  padding: 10px 18px 10px 18px;
  border-radius: 6px;
  text-align: center;
}

.purple-btn {
  display: inline-block;
  background: var(--maincolor2);
  border: 1px solid var(--maincolor2);
  color: var(--white);
  padding: 10px 18px 10px 18px;
  border-radius: 6px;
  text-align: center;
}

.dark-btn:hover,
.dark-btn:active,
.dark-btn-2:hover,
.dark-btn-2:active {
  background: var(--dark-gray);
  border: 1px solid var(--dark-gray);
  color: var(--text-white);
}

.purple-btn:hover, .purple-btn:active,
.gray-btn-2:hover, .gray-btn-2:active,
.gray-btn:hover, .gray-btn:active {
  background: var(--dark);
  border: 1px solid var(--dark);
  color: var(--white);
}

.btn-dark i,
.dark-btn i,
.dark-btn-2 i {
  color: var(--light-green);
}

.gray-btn i {
  color: var(--dark);
}

.purple-btn:hover i,
.gray-btn-2:hover i,
.gray-btn:hover i {
  color: var(--light-green);
}

.rounded-circle {
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------------------
   Confirm Dialog
---------------------------------------------------- */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirm-overlay.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.confirm-dialog {
    background: #fff;
    width: 92%;
    max-width: 520px;
    padding: 32px 28px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: scaleIn .18s ease-out;
}

.confirm-dialog h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.confirm-dialog p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 26px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-actions button {
    flex: 1;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.confirm-actions .btn-secondary {
    background: var(--dark);
    color: #fff;
}

.confirm-actions .btn-secondary:hover {
    background: var(--gray);
    color: var(--text-white);
}

.btn { font-size: 13px important}

.btn-primary {
    background: #6336e3;
    color: #fff;
}

.btn-primary:hover {
    background: var(--text-dark) !important;
}

/* animation */
@keyframes scaleIn {
    from {
        transform: scale(.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ----------------------------------------------------
   Modal Dialog
---------------------------------------------------- */
#taskModal2 .modal-dialog {
    max-width: 70vw;
    width: 70vw;
    height: 70vh;
    margin: 10vh auto 0;
    border-radius: 26px;
}

#taskModal2 .modal-content {
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
}

#taskModal2 .modal-body {
    height: calc(100% - 56px); /* header/footer safe */
    overflow-y: auto;
}

/* Site-wide */
.modal-content {
    border-radius: 24px;
    overflow: hidden;
}

/* ----------------------------------------------------
   Datepicker Override
---------------------------------------------------- */
.datepicker table td,
.datepicker table th {
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    vertical-align: middle !important;
}

.datepicker table td.active,
.datepicker table td.active:hover,
.datepicker table td.active:focus {
    border-radius: 50%;
}

/* ----------------------------------------------------
   Tables (Global)
---------------------------------------------------- */
.table tbody tr {
  transition: background-color 0.15s ease-in-out;
  padding-left: 10px !important;
}

/* soft purple */
/* .table tbody tr:hover {
  background-color: rgba(108, 92, 231, 0.06);
  cursor: pointer;
} */

.light-purple-bg {
  background-color: var(--light-purple-bg);
}

.td-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* .td_title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
} */

.table-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip container */
.table-actions .tooltip {
    transition: opacity 0.15s ease, transform 0.15s ease;
  --bs-tooltip-bg: var(--maincolor);
  --bs-tooltip-color: #ffffff;
  --bs-tooltip-padding-x: 10px;
  --bs-tooltip-padding-y: 6px;
  --bs-tooltip-border-radius: 6px;
  --bs-tooltip-font-size: 12px;
  --bs-tooltip-opacity: 1;
}

/* Tooltip arrow */
.table-actions .tooltip .tooltip-arrow::before {
  border-top-color: #815de6;
}

.table-actions .tooltip.show {
  transform: translateY(-2px);
}

/* ----------------------------------------------------
   Tables (Custom 1)
---------------------------------------------------- */
.custom-table .col-service {
vertical-align: top;
}

.custom-table table {
  table-layout: fixed;
  width: 100%;
}

.custom-table table tr {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.invoice-table tr {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.invoice-table .col-item {
  vertical-align: top;
  width: 80%;
}

.invoice-table th.text-center,
.invoice-table td.text-center {
  text-align: center !important;
  vertical-align: top;
  width: 10%;
}

.invoice-table th.text-end,
.invoice-table td.text-end {
  text-align: right !important;
  vertical-align: top;
  width: 10%;
}

.custom-table table td, .invoice-table td {
  padding: 12px 2px;
}

.custom-table .input-table {
  width: 100% !important;
}

.custom-table th,
.table-responsive th {
    text-align: left !important;
    font-size: 12px !important;
    /* font-weight: 600 !important; */
    color: var(--dark);
    background: var(--white);
    text-transform: capitalize !important;
    padding: 0 !important;
    width: 115px;
}

.custom-table td {
    text-align: left !important;
    font-size: 12px !important;
    width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* title column is wider */
.custom-table .col-title-lg {
  width: 225px;
  max-width: 225px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-table .col-item {
  width: 250px;
  max-width: 250px;
}

.custom-table .td-100 {
  width: 100px;
  max-width: 100px;
}

.custom-table .td-150 {
  width: 150px;
  max-width: 150px;
}

.custom-table .td-175 {
  width: 175px;
  max-width: 175px;
}


.custom-table .td-200 {
  width: 200px;
  max-width: 200px;
}

.custom-table .col-store {
  width: 150px;
  max-width: 150px;
}

.custom-table .col-qty {
  width: 35px;
  max-width: 35px;
}

.border-none {
  border: 0;
}

/* Single line truncation */
.custom-table .col-title {
  width: 180px;
  max-width: 180px;
  align-items: top;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Single line truncation */
.custom-table .col-title-2 {
  width: 140px;
  max-width: 140px;
  align-items: top;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-table .col-service {
  width: 220px;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-table .col-description {
  width: 280px;
  max-width: 280px;
  overflow: hidden;
  white-space: normal;
}

.custom-table .col-actions {
  width: 110px;
  max-width: 110px;
}

.custom-table .col-actions-2 {
  width: 40px;
  max-width: 40px;
}

.custom-table-2 .col-actions {
  width: 30px;
  max-width: 30px;
}

.custom-table .col-total,
.custom-table .col-date {
  width: 100px;
  max-width: 100px;
}

.custom-table .col-status {
  width: auto;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.custom-table .col-thumb {
  width: 60px;
  /* display: flex; */
  /* align-items: center; */
}

.custom-table .col-thumbs::after {
  content: "";
  display: inline-block;
  width: 12px; /* right spacing */
}

.custom-table .col-thumb-sm {
  width: 55px;
  /* display: flex; */
  align-items: center;
}

.custom-table .td_thumb {
  flex: 0 0 50px; /* critical: stop flex stretching */
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
}

.custom-table .td_thumb {
  flex: 0 0 50px; /* critical: stop flex stretching */
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
}

.custom-table .td-thumb {
  width: 0px;
}

.custom-table .td_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 3px;
  border: 1px solid rgba(0,0,0,.2);
}

.custom-table .td_thumb_sm {
  flex: 0 0 45px; /* critical: stop flex stretching */
  width: 45px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
}

.custom-table .td_thumb_sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 3px;
  border: 1px solid rgba(0,0,0,.2);
}

/* ----------------------------------------------------
   Tables (Custom 2)
---------------------------------------------------- */
.custom-table-2 table {
  table-layout: fixed;
  width: 100%;
}

.custom-table-2 table tr {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.custom-table-2 table td {
  padding: 12px 8px;
}

.custom-table-2 .input-table {
  width: 60px !important;
}

.custom-table-2 th {
    text-align: left !important;
    font-size: 12px !important;
    color: var(--dark);
    text-transform: capitalize !important;
    padding: 0 !important;
    width: 70px;
}

.custom-table-2 td {
    text-align: left !important;
    font-size: 12px !important;
    width: 70px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* title column is wider */
.custom-table-2 .col-title {
  width: 170px;
  max-width: 170px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-table-2 .col-qty {
  width: 50px;
  max-width: 50px;
}

/* ----------------------------------------------------
   Dropzone Drag & Drop Upload
---------------------------------------------------- */
.dropzone-upload {
    border: 2px dashed #ccc;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.dropzone-upload.dragover {
    border-color: #815de6;
    background: rgba(98, 44, 253, 0.05);
}

.preview-area {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.preview-area img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.progress-wrap {
    margin-top: 15px;
    background: #eee;
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #815de6;
    transition: width 0.2s ease;
}

/* ----------------------------------------------------
   Drag & Re-order UX
---------------------------------------------------- */
.preview-area {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    cursor: grab;
}

.preview-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4d4f;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}

.preview-item.main {
    outline: 2px solid #815de6;
    border-radius: 8px;
}

.main-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #815de6;
    opacity: .9;
    color: #fff;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 4px;
    display: none;
    z-index: 2;
}

.preview-item.main .main-badge {
    display: inline-block;
}

.preview-item.no-delete .delete-btn {
    opacity: 0;
    pointer-events: none;
    cursor: not-allowed;
}

/* ----------------------------------------------------
   Highlight Search Keywords (Animated)
---------------------------------------------------- */
.product-item__body mark {
    background: linear-gradient(
        120deg,
        rgba(145, 58, 255, 0.25),
        rgba(145, 58, 255, 0.12)
    );
    /* color: #fff; */
    /* box-shadow: inset 0 -1px 0 rgba(145, 58, 255, 0.35); */
}

@keyframes markFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----------------------------------------------------
   Lazy Loading
---------------------------------------------------- */
.bkg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .3s ease;
}

.bkg-image.img-loaded {
    opacity: 1;
}

.bkg-image.img-error {
    background-image: url("img/no-image.jpg");
    opacity: 1;
}

/* ------------------------------------------------
   Lazy Image Fade-In (Clean & Smooth)
------------------------------------------------ */
img.lazy-img {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity .45s ease, transform .45s ease;
}

img.lazy-img.img-loaded {
    opacity: 1;
    transform: scale(1);
}

img.lazy-img.img-error {
    opacity: 1;
    filter: grayscale(1);
}

/* Optional grid fade while searching */
.product-page-list.is-loading {
    opacity: 0.4;
    transition: opacity .25s ease;
}

/* ------------------------------------------------
   Product Thumbnail Uniform Height
------------------------------------------------ */
.product-item__image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.product-item__image .like-icon {
    z-index: 99;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.draft-badge {
    background: #ffc107;
    color: #fff;
}

/* Image behavior */
.product-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* fills box, crops nicely */
    object-position: center;
    display: block;
}

/* ----------------------------------------------------
   Toast
---------------------------------------------------- */
#toast-container {
  position: fixed;
  top: 50px;             /* distance from bottom */
  left: 50%;                /* center horizontally */
  transform: translateX(-50%);  /* perfect left-right centering */
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px !important;
  text-align: center;

  animation: toastIn 0.45s cubic-bezier(.21,1.02,.73,1),
             toastOut 0.35s ease-in forwards;
  animation-delay: 0s, 3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* slide UP from below */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px); /* slide DOWN */
  }
}

@media (max-width: 768px) {
#toast-container {
  width: 80%;
}
}

/* ----------------------------------------------------
   Products Drop-Down (Custom)
---------------------------------------------------- */
.product-select {
    position: relative;
    width: 100%;
}

.product-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    background: #fff;
}

.product-selected img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}

.product-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 99;
}

.product-options li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, .06)
}

.product-options li:hover {
    background: var(--gray-f5);
}

.product-options img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}

/* ----------------------------------------------------
   Soft HR line
---------------------------------------------------- */
/* Extra soft (Modern UI) */
/* hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.6),
    transparent
  );
  margin: 28px 0;
} */

/* Dark & friendly */
/* hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 24px 0;
} */

/* Simple and soft */
hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, .4);
  margin: 10px 0;
}

/* ---------------------------------
    Tracking Bar
--------------------------------- */
.order-tracker{
    display:flex;
    justify-content:space-between;
    position:relative;
    margin:30px 0 20px;
    --line-start: 12%;
    --line-end: 12%;
    --progress: 0%;
}

/* Grey line */
.order-tracker::before{
    content:'';
    position:absolute;
    top:15px;
    left:var(--line-start);
    right:var(--line-end);
    height:2px;
    background:#e5e7eb;
    z-index:1;
}

/* Purple progress */
.order-tracker::after{
    content:'';
    position:absolute;
    top:15px;
    left:12%;
    right:12%;
    height:2px;
    background:#825de6;
    transform-origin:left center;
    transform:scaleX(var(--progress));
    z-index:2;
}

.tracker-step{
    position:relative;
    z-index:3;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    flex:1;
}

.tracker-icon{
    width:30px;
    height:30px;
    border-radius:5px;
    border:2px solid #e5e7eb;
    background:#e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:500;
    color:#999;
    transition:.3s ease;
}

.tracker-label{
    margin-top:10px;
    font-size:12px;
    color:#666;
    max-width:140px;
    line-height:1.4;
}

/* Completed */
.tracker-step.completed .tracker-icon{
    background:#825de6;
    border:none;
    color:#fff;
    /* box-shadow:0 8px 20px rgba(0, 0, 0, .25); */
}

/* Current */
.tracker-step.active .tracker-icon{
    /* border:3px dashed #825de6; */
    border:2px solid #825de6;
    color:#fff;
    background:#825de6;
}

.tracker-step.active .tracker-label{
    color:#825de6;
    font-weight:600;
}

/* ----------------------------------------------------
   Cart
---------------------------------------------------- */
.link-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  /* font-size: 14px; */
}

.link-line .label {
  font-weight: normal;
  opacity: .6;
}

.link-line .value {
  font-weight: 600 !important;
}

.link-line:first-of-type {
  border-top: 0;
}

.faint-bar {
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg,#f4f6f8,#f0f3f6);
  margin: 12px 0;
}

.billing-wrap {
    max-width: 480px;
}

.opacity-full {
    opacity: 1 !important;
}

.for-mobile {
  display: none;
}

.for-desktop {
  display: block;
}

/* ----------------------------------------------------
   Mobile (Responsive)
---------------------------------------------------- */
/* @media (max-width: 576px) { */
@media (max-width: 768px) {

.-mb-25 { margin-bottom: 5px  !important; }

.for-mobile {
  display: block;
}
 
.for-desktop {
  display: none;
}

#previewLogo {
  width: 225px;
  height: 225px;
  margin-top: -15px;
}

.product-item__image {
  height: 180px;
}

.preview-img {
  border-radius: 10px;
  height: 300px;
  width: 100%;
  overflow: hidden;
}

.navbar-left .logo-area {
  margin-left: -24px;
}

.banner-feature__shape {
  display: none;
}

.mobile-bottom {
margin-bottom: 15px;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* .order-tracker{
    flex-wrap:wrap;
    gap:30px;
} */

.order-tracker::before,
.order-tracker::after{
    display:none;
}

/* .tracker-step{
    flex:0 0 48%;
} */

.tracker-icon{
    width:30px;
    height:30px;
    font-size:13px;
}

.tracker-label{
    font-size:11px;
}

.w-md-50 {
    width: 50% !important;
}

.w-md-60 {
    width: 60% !important;
}

.w-md-80 {
    width: 80% !important;
}

.w-md-100 {
    width: 100% !important;
}
}

/* ----------------------------------------------------
   Tablets (Responsive)
---------------------------------------------------- */

@media (max-width: 992px) {
.navbar-left .logo-area {
  margin-left: -24px;
}

.product-item__image {
  height: 260px;
}

.product-item__image {
  height: 220px;
}
}
/* ----------------------------------------------------
   Category Edit-in-Place (products.php / inventory.php)
---------------------------------------------------- */
.category-edit-input {
    display: inline-block;
    width: 130px;
    padding: 2px 6px;
    height: auto;
    font-size: 12px;
    vertical-align: middle;
}

/* ----------------------------------------------------
   Login: "Keep me logged in" / "Forgot Password?" row
   style.css forces .admin-condition into flex-flow:column
   below 375px (see its @media only screen and (max-width:375px)
   block), which is what breaks justify-content-between here —
   space-between still applies, just along the vertical axis of
   an auto-height stack, so there's no space left to distribute.
   Restoring row + wrap keeps the two ends pinned apart down to
   very narrow widths, and only drops to a stacked look if the
   two elements genuinely can't fit on one line.
---------------------------------------------------- */
@media only screen and (max-width: 375px) {
    .admin-condition {
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .admin-condition a {
        margin-top: 0;
    }
}