/* Shopify-inspired Theme for PingPrepay POS
   Based on modern, lightweight design principles */

:root {
  /* Color System - Shopify-inspired palette */
  --shopify-primary: #008060;
  --shopify-primary-dark: #006c51;
  --shopify-primary-light: #e3f1ec;
  --shopify-secondary: #5c6ac4;
  --shopify-secondary-dark: #4959bd;
  --shopify-secondary-light: #ebeefb;
  --shopify-success: #008060;
  --shopify-warning: #ffc453;
  --shopify-error: #d82c0d;
  --shopify-info: #00848e;

  /* Neutrals */
  --shopify-text: #202223;
  --shopify-text-secondary: #6d7175;
  --shopify-text-disabled: #8c9196;
  --shopify-divider: #e1e3e5;
  --shopify-background: #ffffff;
  --shopify-background-secondary: #f6f6f7;
  --shopify-surface: #ffffff;
  --shopify-surface-secondary: #f6f6f7;
  --shopify-surface-tertiary: #f6f6f7;
  --shopify-icon: #5c5f62;

  /* Specific overrides */
  --bs-primary: var(--shopify-primary);
  --bs-success: var(--shopify-success);
  --bs-info: var(--shopify-info);
  --bs-warning: var(--shopify-warning);
  --bs-danger: var(--shopify-error);

  /* Border radius */
  --shopify-border-radius-base: 6px;
  --shopify-border-radius-large: 8px;
  --shopify-border-radius-small: 4px;

  /* Shadows */
  --shopify-shadow-sm: 0px 1px 0px rgba(0, 0, 0, 0.05);
  --shopify-shadow-md: 0px 2px 5px rgba(0, 0, 0, 0.05);
  --shopify-shadow-lg: 0px 4px 8px rgba(0, 0, 0, 0.08);
  --shopify-shadow-xl: 0px 8px 16px rgba(0, 0, 0, 0.1);
}

/* Typography */
body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--shopify-text);
  background-color: var(--shopify-background);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--shopify-text);
}

h1,
.h1 {
  font-size: 28px;
}
h2,
.h2 {
  font-size: 24px;
}
h3,
.h3 {
  font-size: 20px;
  font-weight: 500;
}
h4,
.h4 {
  font-size: 16px;
}
h5,
.h5 {
  font-size: 14px;
}
h6,
.h6 {
  font-size: 12px;
}

/* Metronic theme override for aside */
#kt_aside {
  background-color: var(--shopify-surface) !important;
  /* border-right: 1px solid var(--shopify-divider) !important; */
  box-shadow: var(--shopify-shadow-md) !important;
}

/* Override for both aside-dark and regular aside */
.aside .menu .menu-item .menu-link,
.aside-dark .menu .menu-item .menu-link {
  color: var(--shopify-text) !important;
}
/* .menu-item.menu-accordion:first-child a.menu-link {
    background: var(--shopify-surface-secondary) !important;
} */
.aside .menu .menu-item .menu-link .menu-title,
.aside-dark .menu .menu-item .menu-link .menu-title {
  color: var(--shopify-text) !important;
}
.d-flex.justify-content-between.pt-5.location .next_btn button:hover {
  background: rgba(48, 48, 48, 1) !important;
}
.d-flex.justify-content-between.pt-5.location .next_btn button:active {
  background: rgba(48, 48, 48, 1) !important;
}
.d-flex.justify-content-between.pt-5.location .next_btn button:focus {
  background: rgba(48, 48, 48, 1) !important;
}
/* div#kt_profile_details_view\ nw .form-check.form-switch.mt-5 {
    padding-right: 25px;
} */
.aside .menu .menu-item .menu-link .menu-icon,
.aside .menu .menu-item .menu-link .menu-icon .svg-icon,
.aside .menu .menu-item .menu-link .menu-icon i,
.aside-dark .menu .menu-item .menu-link .menu-icon,
.aside-dark .menu .menu-item .menu-link .menu-icon .svg-icon,
.aside-dark .menu .menu-item .menu-link .menu-icon i {
  color: var(--shopify-icon) !important;
}

.aside
  .menu
  .menu-item.hover:not(.here)
  > .menu-link:not(.disabled):not(.active):not(.here),
.aside
  .menu
  .menu-item:not(.here)
  .menu-link:hover:not(.disabled):not(.active):not(.here),
.aside-dark
  .menu
  .menu-item.hover:not(.here)
  > .menu-link:not(.disabled):not(.active):not(.here),
.aside-dark
  .menu
  .menu-item:not(.here)
  .menu-link:hover:not(.disabled):not(.active):not(.here) {
  color: var(--shopify-primary) !important;
}

.aside .menu .menu-item.show > .menu-link,
.aside .menu .menu-item .menu-link.active,
.aside-dark .menu .menu-item.show > .menu-link,
.aside-dark .menu .menu-item .menu-link.active {
  color: var(--shopify-primary) !important;
}

/* Header styling */
#kt_header {
  background-color: #1a1a1a;
  box-shadow: var(--shopify-shadow-sm);
  /* border-bottom: 1px solid var(--shopify-divider); */
}

/* Base button styling */
.btn {
  font-weight: 500;
  border-radius: var(--shopify-border-radius-base);
  padding: 0.5rem 1rem !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
}

.btn:focus,
.btn.focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 128, 96, 0.25);
}

.btn-primary {
  background-color: var(--shopify-primary);
  border-color: var(--shopify-primary);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--shopify-primary-dark);
  border-color: var(--shopify-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-light {
  background-color: var(--shopify-surface-secondary);
  border-color: var(--shopify-divider);
  color: var(--shopify-text);
}

.btn-light:hover {
  background-color: var(--shopify-divider);
  border-color: var(--shopify-text-disabled);
  color: var(--shopify-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Card styling */
.card {
  border-radius: var(--shopify-border-radius-large);
  border: 1px solid var(--shopify-divider);
  box-shadow: var(--shopify-shadow-md);
  background-color: var(--shopify-surface);
}

.card-header {
  background-color: var(--shopify-surface);
  border-bottom: 1px solid var(--shopify-divider);
  padding: 1.25rem 1.5rem;
}

.card-footer {
  background-color: var(--shopify-surface);
  border-top: 1px solid var(--shopify-divider);
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Form controls */
.form-control {
  border: 1px solid var(--shopify-divider);
  border-radius: var(--shopify-border-radius-base);
  padding: 0.5rem 0.75rem;
  /* font-size: 14px; */
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--shopify-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 128, 96, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--shopify-text);
}

/* Tables */
.table {
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: var(--shopify-text);
  --bs-table-striped-bg: var(--shopify-surface-secondary);
  --bs-table-active-color: var(--shopify-text);
  --bs-table-active-bg: var(--shopify-divider);
  --bs-table-hover-color: var(--shopify-text);
  --bs-table-hover-bg: var(--shopify-surface-tertiary);
  color: var(--shopify-text);
  border-color: var(--shopify-divider);
}

.table thead th {
  font-weight: 600;
  color: var(--shopify-text-secondary) !important;
  border-bottom: 1px solid var(--shopify-divider);
  background-color: var(--shopify-surface-secondary);
}
.qr-section {
  display: flex;
  gap: 30px;
}
.qr-section img {
  width: 230px;
  height: 210px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: var(--shopify-border-radius-large);
}
.form-section label {
  font-weight: bold;
  font-size: 16px;
  width: 100%;
  float: left;
  margin-bottom: 5px;
}
.form-section input[type="email"] {
  width: 74%;
  padding: 8px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  margin-right: 10px;
}
.form-section button {
  background-color: #5bab98;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.line-info {
  margin-top: 20px;
  font-size: 15px;
  color: #333;
}
.line-info p {
  margin: 2px 0;
  width: 100%;
  float: left;
}
.line-info span {
  text-align: left;
  width: 70%;
  float: right;
}

/* Badge styling */
.badge {
  font-weight: 500;
  padding: 0.25em 0.5em;
  border-radius: var(--shopify-border-radius-small);
}

.badge-primary {
  background-color: var(--shopify-primary-light);
  color: var(--shopify-primary);
}

.badge-success {
  background-color: var(--shopify-primary-light);
  color: var(--shopify-success);
}

.badge-warning {
  background-color: #fff4e0;
  color: #b98900;
}

.badge-danger {
  background-color: #fdecec;
  color: var(--shopify-error);
}

/* Alerts */
.alert {
  border-radius: var(--shopify-border-radius-base);
  padding: 1rem;
  border-width: 1px;
}

.alert-primary {
  background-color: var(--shopify-primary-light);
  border-color: var(--shopify-primary);
  color: var(--shopify-primary-dark);
}

.alert-success {
  background-color: var(--shopify-primary-light);
  border-color: var(--shopify-success);
  color: var(--shopify-primary-dark);
}

.alert-warning {
  background-color: #fff4e0;
  border-color: var(--shopify-warning);
  color: #b98900;
}

.alert-danger {
  background-color: #fdecec;
  border-color: var(--shopify-error);
  color: var(--shopify-error);
}

/* Modal styling */
.modal-content {
  border: none;
  border-radius: var(--shopify-border-radius-large);
  box-shadow: var(--shopify-shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--shopify-divider);
  padding: 1.25rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--shopify-divider);
  padding: 1.25rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
}

.breadcrumb-item a {
  color: var(--shopify-text-secondary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--shopify-text);
}

/* Pagination */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
}

.page-link {
  position: relative;
  display: block;
  color: var(--shopify-text);
  text-decoration: none;
  background-color: var(--shopify-surface);
  border: 1px solid var(--shopify-divider);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.page-link:hover {
  z-index: 2;
  color: var(--shopify-primary);
  background-color: var(--shopify-surface-secondary);
  border-color: var(--shopify-divider);
}

.page-link:focus {
  z-index: 3;
  color: var(--shopify-primary);
  background-color: var(--shopify-primary-light);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 128, 96, 0.25);
}
div#kt_accordion_2_item_1 {
  padding-right: 2.5rem !important;
}
button#save-button {
  margin-bottom: 10px;
  margin-left: 33px !important;
  background: rgba(48, 48, 48, 1);
  float: none;
  display: inline-block;
  text-align: center;
  width: 7%;
}
.page-item.active .page-link {
  z-index: 3;
  color: #5e6278;
  background-color: #f5f8fa;
  border: 1px solid var(--shopify-divider);
}

.page-item.disabled .page-link {
  color: var(--shopify-text-disabled);
  pointer-events: none;
  background-color: var(--shopify-surface);
  border-color: var(--shopify-divider);
}

/* Product box overrides */
.product-box {
  border-radius: var(--shopify-border-radius-large);
  border: 1px solid var(--shopify-divider);
  box-shadow: var(--shopify-shadow-md);
  transition: box-shadow 0.2s ease;
}

.product-box:hover {
  box-shadow: var(--shopify-shadow-lg);
}

.btn-cart {
  background-color: var(--shopify-primary) !important;
  border-color: var(--shopify-primary) !important;
  border-radius: var(--shopify-border-radius-base);
}

.category-box.selected {
  border: 2px solid var(--shopify-primary) !important;
  background-color: var(--shopify-primary-light);
}

/* Navbar and menu overrides */
.menu {
  padding: 0.5rem 0;
}

.menu-item {
  margin-bottom: 0.25rem;
}

/* Switch to light header/menu theme */
.aside,
.aside.aside-dark {
  background-color: var(--shopify-surface) !important;
}

.aside .menu .menu-item .menu-link .menu-title,
.aside-dark .menu .menu-item .menu-link .menu-title {
  color: var(--shopify-text) !important;
}

/* Additional overrides for menu items */
.menu-state-title-primary .menu-item .menu-link .menu-title {
  color: var(--shopify-text) !important;
}

.menu-state-icon-primary .menu-item .menu-link .menu-icon {
  color: var(--shopify-icon) !important;
}

/* Main content area */
.content {
  background-color: var(--shopify-background-secondary);
}

/* Toolbar overrides */
.toolbar {
  background-color: var(--shopify-background);
  border-bottom: 1px solid var(--shopify-divider);
  box-shadow: var(--shopify-shadow-sm);
}

/* Footer styling */
.footer {
  background-color: var(--shopify-background);
  border-top: 1px solid var(--shopify-divider);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--shopify-surface-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--shopify-text-disabled);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--shopify-text-secondary);
}

/* Input group styling */
.input-group-text {
  background-color: var(--shopify-surface-secondary);
  border: 1px solid var(--shopify-divider);
  color: var(--shopify-text-secondary);
}

/* Custom toggle switch */
.form-check-input:checked {
  background-color: var(--shopify-primary);
  border-color: var(--shopify-primary);
}

/* Tabs */
.nav-tabs {
  border-bottom: 1px solid var(--shopify-divider);
}

.nav-tabs .nav-link {
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-top-left-radius: var(--shopify-border-radius-base);
  border-top-right-radius: var(--shopify-border-radius-base);
  color: var(--shopify-text-secondary);
  font-weight: 500;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: var(--shopify-divider) var(--shopify-divider)
    var(--shopify-divider);
  color: var(--shopify-text);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--shopify-primary);
  background-color: var(--shopify-surface);
  border-color: var(--shopify-divider) var(--shopify-divider)
    var(--shopify-surface);
  border-bottom: 2px solid var(--shopify-primary);
}

/* Transitions */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Specific overrides for Metronic elements */
.aside-fixed {
  left: 0;
}

/* Custom checkbox */
.form-check-input {
  border: 1px solid var(--shopify-divider);
}

.bg-transparent {
  background-color: transparent !important;
}

.menu-item.menu-accordion a.menu-link .menu-title.text-white {
  color: #6a6a6a !important;
}

.aside-menu .menu-light .menu-item.here > .menu-link {
  background-color: var(--shopify-surface-secondary) !important;
  color: var(--shopify-primary) !important;
}

.aside-menu .menu-link:hover {
  background-color: var(--shopify-surface-secondary) !important;
  color: var(--shopify-primary) !important;
}

.aside-menu .menu .menu-item .menu-content {
  display: flex !important;
  align-items: center;
  padding: 0.65rem 1rem;
  transition: none;
  outline: 0 !important;
}

.aside-menu .menu .menu-item .menu-content .menu-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  margin-right: 0.5rem;
  justify-content: flex-start;
}

.menu-light .menu-item .menu-section {
  width: 100%;
}

/* Mobile responsiveness improvements */

@media (max-width: 991.98px) {
  .aside {
    box-shadow: var(--shopify-shadow-lg);
  }

  .card {
    margin-bottom: 1rem;
  }
  button#save-button {
    width: 10% !important;
  }
}

@media (max-width: 768px) {
  div#kt_content_container {
    margin-top: 15px;
  }
  button#save-button {
    width: 10% !important;
  }
  div#DataTables_Table_0_paginate {
    padding: 0;
  }
}

@media (max-width: 600px) {
  div#kt_content_container .col-md-6 {
    padding-left: 0px !important;
    text-align: center;
    align-items: center;
    justify-content: center !important;
    display: flex !important;
    padding: 5px 0px;
  }
  div#kt_content_container form.form.p-5 .col-md-6 {
    display: unset !important;
    text-align: left;
  }
  div#kt_content_container .card .card-body.pt-6 form.form.p-8 .col-md-6 {
    display: unset !important;
    text-align: left;
  }
  div#kt_content_container .row.w-100.align-items-center.mb-5.main-tb {
    justify-content: space-between;
  }
  .row {
    margin-left: 0;
  }
  div#TotalNewStores {
    text-align: right;
  }
  .text-light.fw-bolder.fs-2.mb-2 {
    text-align: right;
  }
  div#totalTransaction {
    text-align: right;
  }
  div#kt_accordion_2_item_1 a.btn.btn-sm.btn-light-primary {
    margin: 0 !important;
  }

  div#kt_post form.form.p-8 .col-md-6 {
    width: 100%;
  }
  div#kt_post form.form.p-5 .col-md-6 {
    width: 100%;
  }
  button.select-all-permissions.btn.btn-sm.btn-light-primary.py-2.w-25 {
    width: 49% !important;
  }
  button.deselect-all-permissions.btn.btn-sm.btn-light-primary.py-2.w-25 {
    width: 49% !important;
  }
  .modal-content form#brandForm .col-md-6 {
    width: 100%;
  }
  .modal-content form#trainingForm .col-md-6 {
    width: 100%;
    float: left;
    display: unset !important;
    text-align: left;
    padding: 0 !important;
  }
  ul.pagination {
    padding-right: 0px !important;
    padding-bottom: 20px;
  }
  button#save-button {
    width: 20% !important;
    margin-bottom: 20px;
    position: relative;
    bottom: -10px;
    left: 30%;
  }
  div#kt_accordion_2_item_1 .col-md-3 {
    margin-bottom: 10px;
  }
  button#save-button {
    margin-bottom: 20px;
  }
  .row > * {
    padding-left: 0px !important;
  }
  div#kt_accordion_2_item_1 .col-md-2.mt-9.align-items-center {
    margin-top: 0px !important;
  }
  div#kt_accordion_2_item_1
    .col-md-2.mt-9.align-items-center
    button.btn.btn-sm.btn-light-primary.show.menu-dropdown {
    width: 100%;
    margin-top: 8px;
  }

  div#kt_accordion_2_item_1 .col-md-2 {
    margin-bottom: 10px !important;
  }
  div#kt_accordion_2_item_1 .col-md-2:last-child {
    margin-bottom: 0px !important;
  }
  div#kt_content_container form.form.p-8 .input-group.input-group-sm.w-50 {
    width: 100% !important;
  }
}

@media (max-width: 400.98px) {
  h1.text-dark.mb-3 {
    font-size: 22px !important;
  }
}
#fullscreen-loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.8);
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
  }
  #fullscreen-loader .spinner {
      border: 8px solid #f3f3f3;
      border-top: 8px solid  #008060;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      animation: spin 1s linear infinite;
  }
  @keyframes spin {
      0%   { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
  }