/**
* Template Name: NiceAdmin
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Updated: Apr 20 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    scroll-behavior: smooth;
  }
  
  td, th {
    font-size: 14px !important;
    text-align: left !important;
  }
  
  /* Ensure all table cells are left-aligned */
  table td, table th {
    text-align: left !important;
  }
  
  .table td, .table th {
    text-align: left !important;
  }
  
  /* Content Manager Table Styles - Hide vertical lines, keep horizontal */
  .table {
    border: none !important;
  }
  
  .table th {
    text-align: left !important;
    font-weight: 600 !important;
    background-color: #f8f9fa !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid #dee2e6 !important;
  }
  
  .table td {
    vertical-align: middle !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid #dee2e6 !important;
  }
  
  /* Searchable Select Styles */
  .searchable-select-container {
    position: relative;
    width: 100%;
    z-index: 1;
  }
  
  .searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 100%;
    width: 100%;
    max-width: calc(100vw - 40px);
  }
  
  /* Specific z-index for franchisee dropdown to prevent overlap */
  #franchiseeDropdown {
    z-index: 1055;
  }
  
  /* Specific z-index for task dropdown to appear above franchisee dropdown */
  #taskDropdown {
    z-index: 1060;
  }
  
  /* Ensure modal dropdowns appear above modal content */
  .modal .searchable-select-container {
    position: relative;
    z-index: auto;
  }
  
  .modal .searchable-select-dropdown {
    z-index: 1070;
  }
  
  /* Specific higher z-index for task dropdown in modal */
  .modal #taskDropdown {
    z-index: 1075;
  }
  
  /* Lower z-index for franchisee dropdown in modal */
  .modal #franchiseeDropdown {
    z-index: 1070;
  }
  
  /* Voucher modal specific styles */
  #voucher-modal .searchable-select-container {
    position: relative;
    z-index: auto;
  }
  
  #voucher-modal .searchable-select-dropdown {
    position: absolute;
    z-index: 1070;
    background: white;
  }
  
  #voucher-modal #franchiseeDropdown {
    z-index: 1070;
  }
  
  #voucher-modal #taskDropdown {
    z-index: 1075;
  }
  
  /* Reset form group z-index to prevent stacking issues */
  #voucher-modal .form-group {
    position: relative;
    z-index: auto;
  }
  
  /* Reset column z-index */
  #voucher-modal .col-12 {
    position: relative;
    z-index: auto;
  }
  
  .searchable-select-dropdown.positioned-above {
    top: auto;
    bottom: 100%;
    border-top: 1px solid #ced4da;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    box-shadow: 0 -0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  }
  
  .searchable-select-options {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Ensure options are fully visible */
    padding: 0;
    margin: 0;
  }
  
  .searchable-select-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.15s ease-in-out;
  }
  
  .searchable-select-option:hover {
    background-color: #f8f9fa;
  }
  
  .searchable-select-option:last-child {
    border-bottom: none;
  }
  
  .searchable-select-option.selected {
    background-color: #e7f3ff;
    color: #0066cc;
  }
  
  .searchable-select-option.highlighted {
    background-color: #e9ecef;
  }
  
  .searchable-select-no-results {
    padding: 12px;
    color: #6c757d;
    text-align: center;
    font-style: italic;
  }
  
  /* Ensure dropdown is not clipped by parent containers */
  .card-body {
    overflow: visible !important;
  }
  
  .expandable-content {
    overflow: visible !important;
  }
  
  /* Fix for modal and form containers */
  .modal-body {
    overflow: visible !important;
  }
  
  .form-group {
    overflow: visible !important;
  }
  
  /* Ensure all parent containers allow dropdown overflow */
  .row {
    overflow: visible !important;
  }
  
  .col-12, .col-md-6, .col-lg-12 {
    overflow: visible !important;
  }
  
  .card {
    overflow: visible !important;
  }
  
  /* Additional container fixes */
  .section {
    overflow: visible !important;
  }
  
  #main {
    overflow: visible !important;
  }
  
  html {
    height: 100%;
    overflow-y: auto;
  }
  
  body {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    background: #f6f9ff;
    color: #444444;

    min-height: 100vh;
  }
  
  a {
    color: #4154f1;
    text-decoration: none;
  }
  
  a:hover {
    color: #717ff5;
    text-decoration: none;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Open Sans", sans-serif;
  }
  
  /*--------------------------------------------------------------
  # Main
  --------------------------------------------------------------*/
  #main {
    margin-top: 60px;
    padding: 20px 30px;
    transition: none;
  }
  
  @media (max-width: 1199px) {
    #main {
      padding: 20px;
    }
  }
  
  /*--------------------------------------------------------------
  # Page Title
  --------------------------------------------------------------*/
  .pagetitle {
    margin-bottom: 10px;
  }
  
  .pagetitle h1 {
    font-size: 18px;
    margin-bottom: 0;
    font-weight: 600;
    color: #012970;
  }
  
  /*--------------------------------------------------------------
  # Back to top button
  --------------------------------------------------------------*/
  .back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: #4154f1;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
  }
  
  .back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
  }
  
  .back-to-top:hover {
    background: #6776f4;
    color: #fff;
  }
  
  .back-to-top.active {
    visibility: visible;
    opacity: 1;
  }
  
  /*--------------------------------------------------------------
  # Override some default Bootstrap stylings
  --------------------------------------------------------------*/
  /* Dropdown menus */
  .dropdown-menu {
    border-radius: 4px;
    padding: 10px 0;
    animation-name: dropdown-animate;
    animation-duration: 0.2s;
    animation-fill-mode: both;
    border: 0;
    box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
  }
  
  .dropdown-menu .dropdown-header,
  .dropdown-menu .dropdown-footer {
    text-align: center;
    font-size: 15px;
    padding: 10px 25px;
  }
  
  .dropdown-menu .dropdown-footer a {
    color: #444444;
    text-decoration: underline;
  }
  
  .dropdown-menu .dropdown-footer a:hover {
    text-decoration: none;
  }
  
  .dropdown-menu .dropdown-divider {
    color: #a5c5fe;
    margin: 0;
  }
  
  .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
  }
  
  .dropdown-menu .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
  }
  
  .dropdown-menu .dropdown-item:hover {
    background-color: #f6f9ff;
  }
  
  @media (min-width: 768px) {
    .dropdown-menu-arrow::before {
      content: "";
      width: 13px;
      height: 13px;
      background: #fff;
      position: absolute;
      top: -7px;
      right: 20px;
      transform: rotate(45deg);
      border-top: 1px solid #eaedf1;
      border-left: 1px solid #eaedf1;
    }
  }
  
  @keyframes dropdown-animate {
    0% {
      opacity: 0;
    }
  
    100% {
      opacity: 1;
    }
  
    0% {
      opacity: 0;
    }
  }
  
  /* Light Backgrounds */
  .bg-primary-light {
    background-color: #cfe2ff;
    border-color: #cfe2ff;
  }
  
  .bg-secondary-light {
    background-color: #e2e3e5;
    border-color: #e2e3e5;
  }
  
  .bg-success-light {
    background-color: #d1e7dd;
    border-color: #d1e7dd;
  }
  
  .bg-danger-light {
    background-color: #f8d7da;
    border-color: #f8d7da;
  }
  
  .bg-warning-light {
    background-color: #fff3cd;
    border-color: #fff3cd;
  }
  
  .bg-info-light {
    background-color: #cff4fc;
    border-color: #cff4fc;
  }
  
  .bg-dark-light {
    background-color: #d3d3d4;
    border-color: #d3d3d4;
  }
  
  /* Card */
  .card {
    margin-bottom: 30px;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
  }
  
  .card-header,
  .card-footer {
    border-color: #ebeef4;
    background-color: #fff;
    color: #798eb3;
    padding: 15px;
  }
  
  .card-title {
    padding: 20px 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #012970;
    font-family: "Open Sans", sans-serif;
  }
  
  .card-title span {
    color: #899bbd;
    font-size: 14px;
    font-weight: 400;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .card-img-overlay {
    background-color: rgba(255, 255, 255, 0.6);
  }
  
  /* Alerts */
  .alert-heading {
    font-weight: 500;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
  }
  
  /* Close Button */
  .btn-close {
    background-size: 25%;
  }
  
  .btn-close:focus {
    outline: 0;
    box-shadow: none;
  }
  
  /* Accordion */
  .accordion-item {
    border: 1px solid #ebeef4;
  }
  
  .accordion-button:focus {
    outline: 0;
    box-shadow: none;
  }
  
  .accordion-button:not(.collapsed) {
    color: #012970;
    background-color: #f6f9ff;
  }
  
  .accordion-flush .accordion-button {
    padding: 15px 0;
    background: none;
    border: 0;
  }
  
  .accordion-flush .accordion-button:not(.collapsed) {
    box-shadow: none;
    color: #4154f1;
  }
  
  .accordion-flush .accordion-body {
    padding: 0 0 15px 0;
    color: #3e4f6f;
    font-size: 15px;
  }
  
  /* Breadcrumbs */
  .breadcrumb {
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    color: #899bbd;
    font-weight: 600;
  }
  
  .breadcrumb a {
    color: #899bbd;
    transition: 0.3s;
  }
  
  .breadcrumb a:hover {
    color: #51678f;
  }
  
  .breadcrumb .breadcrumb-item::before {
    color: #899bbd;
  }
  
  .breadcrumb .active {
    color: #51678f;
    font-weight: 600;
  }
  
  /* Bordered Tabs */
  .nav-tabs-bordered {
    border-bottom: 2px solid #ebeef4;
  }
  
  .nav-tabs-bordered .nav-link {
    margin-bottom: -2px;
    border: none;
    color: #2c384e;
  }
  
  .nav-tabs-bordered .nav-link:hover,
  .nav-tabs-bordered .nav-link:focus {
    color: #4154f1;
  }
  
  .nav-tabs-bordered .nav-link.active {
    background-color: #fff;
    color: #4154f1;
    border-bottom: 2px solid #4154f1;
  }
  
  /*--------------------------------------------------------------
  # Header
  --------------------------------------------------------------*/
  .logo {
    line-height: 1;
  }
  
  @media (min-width: 1200px) {
    .logo {
      width: 280px;
    }
  }
  
  .logo img {
    max-height: 26px;
    margin-right: 6px;
  }
  
  .logo span {
    font-size: 26px;
    font-weight: 700;
    color: #012970;
    font-family: "Open Sans", sans-serif;
  }
  
  .header {
    transition: all 0.5s;
    z-index: 997;
    height: 60px;
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
    padding-left: 20px;
    /* Toggle Sidebar Button */
    /* Search Bar */
  }
  
  .header .toggle-sidebar-btn {
    font-size: 32px;
    padding-left: 10px;
    cursor: pointer;
    color: #012970;
  }
  
  .header .search-bar {
    min-width: 360px;
    padding: 0 20px;
  }
  
  @media (max-width: 1199px) {
    .header .search-bar {
      position: fixed;
      top: 50px;
      left: 0;
      right: 0;
      padding: 20px;
      box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
      background: white;
      z-index: 9999;
      transition: 0.3s;
      visibility: hidden;
      opacity: 0;
    }
  
    .header .search-bar-show {
      top: 60px;
      visibility: visible;
      opacity: 1;
    }
  }
  
  .header .search-form {
    width: 100%;
  }
  
  .header .search-form input {
    border: 0;
    font-size: 14px;
    color: #012970;
    border: 1px solid rgba(1, 41, 112, 0.2);
    padding: 7px 38px 7px 8px;
    border-radius: 3px;
    transition: 0.3s;
    width: 100%;
  }
  
  .header .search-form input:focus,
  .header .search-form input:hover {
    outline: none;
    box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
    border: 1px solid rgba(1, 41, 112, 0.3);
  }
  
  .header .search-form button {
    border: 0;
    padding: 0;
    margin-left: -30px;
    background: none;
  }
  
  .header .search-form button i {
    color: #012970;
  }
  
  /*--------------------------------------------------------------
  # Header Nav
  --------------------------------------------------------------*/
  .header-nav ul {
    list-style: none;
  }
  
  .header-nav>ul {
    margin: 0;
    padding: 0;
  }
  
  .header-nav .nav-icon {
    font-size: 22px;
    color: #012970;
    margin-right: 25px;
    position: relative;
  }
  
  .header-nav .nav-profile {
    color: #012970;
  }
  
  .header-nav .nav-profile img {
    max-height: 36px;
  }
  
  .header-nav .nav-profile span {
    font-size: 14px;
    font-weight: 600;
  }
  
  .header-nav .badge-number {
    position: absolute;
    inset: -2px -5px auto auto;
    font-weight: normal;
    font-size: 12px;
    padding: 3px 6px;
  }
  
  .header-nav .notifications {
    inset: 8px -15px auto auto !important;
  }
  
  .header-nav .notifications .notification-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    transition: 0.3s;
  }
  
  .header-nav .notifications .notification-item i {
    margin: 0 20px 0 10px;
    font-size: 24px;
  }
  
  .header-nav .notifications .notification-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .header-nav .notifications .notification-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
  }
  
  .header-nav .notifications .notification-item:hover {
    background-color: #f6f9ff;
  }
  
  .header-nav .messages {
    inset: 8px -15px auto auto !important;
  }
  
  .header-nav .messages .message-item {
    padding: 15px 10px;
    transition: 0.3s;
  }
  
  .header-nav .messages .message-item a {
    display: flex;
  }
  
  .header-nav .messages .message-item img {
    margin: 0 20px 0 10px;
    max-height: 40px;
  }
  
  .header-nav .messages .message-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444444;
  }
  
  .header-nav .messages .message-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
  }
  
  .header-nav .messages .message-item:hover {
    background-color: #f6f9ff;
  }
  
  .header-nav .profile {
    min-width: 240px;
    padding-bottom: 0;
    top: 8px !important;
  }
  
  .header-nav .profile .dropdown-header h6 {
    font-size: 18px;
    margin-bottom: 0;
    font-weight: 600;
    color: #444444;
  }
  
  .header-nav .profile .dropdown-header span {
    font-size: 14px;
  }
  
  .header-nav .profile .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
  }
  
  .header-nav .profile .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
  }
  
  .header-nav .profile .dropdown-item:hover {
    background-color: #f6f9ff;
  }
  
  /*--------------------------------------------------------------
  # Sidebar
  --------------------------------------------------------------*/
  .sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 300px;
    z-index: 997;
    transition: left 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #C59B68 #F5E6D3;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, #FFF8E7 0%, #F5E6D3 100%);
    display: flex;
    flex-direction: column;
  }

  .sidebar::-webkit-scrollbar {
    width: 6px;
  }
  
  .sidebar::-webkit-scrollbar-track {
    background: #F5E6D3;
  }
  
  .sidebar::-webkit-scrollbar-thumb {
    background-color: #C59B68;
    border-radius: 3px;
  }

  /* Sidebar header */
  .sidebar-header {
    background-color: #FFF8E7;
    padding: 25px 20px;
    border-bottom: 2px solid #E6D5B8;
    text-align: center;
  }

  .sidebar-header h4 {
    color: #C59B68;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
  }

  /* Sidebar footer */
  .sidebar-footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #E6D5B8;
    background-color: rgba(255, 248, 231, 0.5);
  }

  .sidebar-footer p {
    color: #8B7355;
    font-size: 11px;
    line-height: 1.4;
  }

  .sidebar-footer small {
    font-size: 10px;
  }

  /* Show sidebar when not toggled */
  body:not(.toggle-sidebar) .sidebar {
    left: 0;
  }

  /* Sidebar backdrop */
  body.has-sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 996;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  body.has-sidebar:not(.toggle-sidebar)::before {
    opacity: 1;
    visibility: visible;
  }
  
  .sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
    flex: 1;
  }
  
  .sidebar-nav li {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .sidebar-nav .nav-item {
    margin-bottom: 0;
    border-bottom: 1px solid #E6D5B8;
  }
  
  .sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #5C4A3A;
    transition: all 0.3s;
    background: transparent;
    padding: 16px 20px;
    border-radius: 0;
    text-decoration: none;
  }
  
  .sidebar-nav .nav-link i {
    font-size: 18px;
    margin-right: 12px;
    color: #8B7355;
    width: 20px;
    text-align: center;
  }
  
  .sidebar-nav .nav-link.collapsed {
    color: #5C4A3A;
    background: transparent;
  }
  
  .sidebar-nav .nav-link.collapsed i {
    color: #8B7355;
  }
  
  .sidebar-nav .nav-link:hover {
    background: rgba(197, 157, 98, 0.15);
    color: #C59B68;
  }
  
  .sidebar-nav .nav-link:hover i {
    color: #C59B68;
  }

  /* Active link */
  .sidebar-nav .nav-link:not(.collapsed) {
    background: #C59B68;
    color: white;
  }

  .sidebar-nav .nav-link:not(.collapsed) i {
    color: white;
  }
  
  /*--------------------------------------------------------------
  # Dashboard
  --------------------------------------------------------------*/
  /* Filter dropdown */
  .dashboard .filter {
    position: absolute;
    right: 0px;
    top: 15px;
  }
  
  .dashboard .filter .icon {
    color: #aab7cf;
    padding-right: 20px;
    padding-bottom: 5px;
    transition: 0.3s;
    font-size: 16px;
  }
  
  .dashboard .filter .icon:hover,
  .dashboard .filter .icon:focus {
    color: #4154f1;
  }
  
  .dashboard .filter .dropdown-header {
    padding: 8px 15px;
  }
  
  .dashboard .filter .dropdown-header h6 {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #aab7cf;
    margin-bottom: 0;
    padding: 0;
  }
  
  .dashboard .filter .dropdown-item {
    padding: 8px 15px;
  }
  
  /* Info Cards */
  .dashboard .info-card {
    padding-bottom: 10px;
  }
  
  .dashboard .info-card h6 {
    font-size: 28px;
    color: #012970;
    font-weight: 700;
    margin: 0;
    padding: 0;
  }
  
  .dashboard .card-icon {
    font-size: 32px;
    line-height: 0;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  .dashboard .sales-card .card-icon {
    color: #4154f1;
    background: #f6f6fe;
  }
  
  .dashboard .revenue-card .card-icon {
    color: #2eca6a;
    background: #e0f8e9;
  }
  
  .dashboard .customers-card .card-icon {
    color: #ff771d;
    background: #ffecdf;
  }
  
  /* Activity */
  .dashboard .activity {
    font-size: 14px;
  }
  
  .dashboard .activity .activity-item .activite-label {
    color: #888;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 64px;
  }
  
  .dashboard .activity .activity-item .activite-label::before {
    content: "";
    position: absolute;
    right: -11px;
    width: 4px;
    top: 0;
    bottom: 0;
    background-color: #eceefe;
  }
  
  .dashboard .activity .activity-item .activity-badge {
    margin-top: 3px;
    z-index: 1;
    font-size: 11px;
    line-height: 0;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid #fff;
    flex-grow: 0;
  }
  
  .dashboard .activity .activity-item .activity-content {
    padding-left: 10px;
    padding-bottom: 20px;
  }
  
  .dashboard .activity .activity-item:first-child .activite-label::before {
    top: 5px;
  }
  
  .dashboard .activity .activity-item:last-child .activity-content {
    padding-bottom: 0;
  }
  
  /* News & Updates */
  .dashboard .news .post-item+.post-item {
    margin-top: 15px;
  }
  
  .dashboard .news img {
    width: 80px;
    float: left;
    border-radius: 5px;
  }
  
  .dashboard .news h4 {
    font-size: 15px;
    margin-left: 95px;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .dashboard .news h4 a {
    color: #012970;
    transition: 0.3s;
  }
  
  .dashboard .news h4 a:hover {
    color: #4154f1;
  }
  
  .dashboard .news p {
    font-size: 14px;
    color: #777777;
    margin-left: 95px;
  }
  
  /* Recent Sales */
  .dashboard .recent-sales {
    font-size: 14px;
  }
  
  .dashboard .recent-sales .table thead {
    background: #f6f6fe;
  }
  
  .dashboard .recent-sales .table thead th {
    border: 0;
  }
  
  .dashboard .recent-sales .dataTable-top {
    padding: 0 0 10px 0;
  }
  
  .dashboard .recent-sales .dataTable-bottom {
    padding: 10px 0 0 0;
  }
  
  /* Top Selling */
  .dashboard .top-selling {
    font-size: 14px;
  }
  
  .dashboard .top-selling .table thead {
    background: #f6f6fe;
  }
  
  .dashboard .top-selling .table thead th {
    border: 0;
  }
  
  .dashboard .top-selling .table tbody td {
    vertical-align: middle;
  }
  
  .dashboard .top-selling img {
    border-radius: 5px;
    max-width: 60px;
  }
  
  /*--------------------------------------------------------------
  # Icons list page
  --------------------------------------------------------------*/
  .iconslist {
    display: grid;
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    padding-top: 15px;
  }
  
  .iconslist .icon {
    background-color: #fff;
    border-radius: 0.25rem;
    text-align: center;
    color: #012970;
    padding: 15px 0;
  }
  
  .iconslist i {
    margin: 0.25rem;
    font-size: 2.5rem;
  }
  
  .iconslist .label {
    font-family: var(--bs-font-monospace);
    display: inline-block;
    width: 100%;
    overflow: hidden;
    padding: 0.25rem;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
  }
  
  /*--------------------------------------------------------------
  # Profie Page
  --------------------------------------------------------------*/
  .profile .profile-card img {
    max-width: 120px;
  }
  
  .profile .profile-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c384e;
    margin: 10px 0 0 0;
  }
  
  .profile .profile-card h3 {
    font-size: 18px;
  }
  
  .profile .profile-card .social-links a {
    font-size: 20px;
    display: inline-block;
    color: rgba(1, 41, 112, 0.5);
    line-height: 0;
    margin-right: 10px;
    transition: 0.3s;
  }
  
  .profile .profile-card .social-links a:hover {
    color: #012970;
  }
  
  .profile .profile-overview .row {
    margin-bottom: 20px;
    font-size: 15px;
  }
  
  .profile .profile-overview .card-title {
    color: #012970;
  }
  
  .profile .profile-overview .label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
  }
  
  .profile .profile-edit label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
  }
  
  .profile .profile-edit img {
    max-width: 120px;
  }
  
  /*--------------------------------------------------------------
  # F.A.Q Page
  --------------------------------------------------------------*/
  .faq .basic h6 {
    font-size: 18px;
    font-weight: 600;
    color: #4154f1;
  }
  
  .faq .basic p {
    color: #6980aa;
  }
  
  /*--------------------------------------------------------------
  # Contact
  --------------------------------------------------------------*/
  .contact .info-box {
    padding: 28px 30px;
  }
  
  .contact .info-box i {
    font-size: 38px;
    line-height: 0;
    color: #4154f1;
  }
  
  .contact .info-box h3 {
    font-size: 20px;
    color: #012970;
    font-weight: 700;
    margin: 20px 0 10px 0;
  }
  
  .contact .info-box p {
    padding: 0;
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
  }
  
  .contact .php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
  }
  
  .contact .php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
  }
  
  .contact .php-email-form .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
  }
  
  .contact .php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid #18d26e;
    border-top-color: #eee;
    animation: animate-loading 1s linear infinite;
  }
  
  .contact .php-email-form input,
  .contact .php-email-form textarea {
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    border-radius: 0;
  }
  
  .contact .php-email-form input:focus,
  .contact .php-email-form textarea:focus {
    border-color: #4154f1;
  }
  
  .contact .php-email-form input {
    padding: 10px 15px;
  }
  
  .contact .php-email-form textarea {
    padding: 12px 15px;
  }
  
  .contact .php-email-form button[type=submit] {
    background: #4154f1;
    border: 0;
    padding: 10px 30px;
    color: #fff;
    transition: 0.4s;
    border-radius: 4px;
  }
  
  .contact .php-email-form button[type=submit]:hover {
    background: #5969f3;
  }
  
  @keyframes animate-loading {
    0% {
      transform: rotate(0deg);
    }
  
    100% {
      transform: rotate(360deg);
    }
  }
  
  /*--------------------------------------------------------------
  # Error 404
  --------------------------------------------------------------*/
  .error-404 {
    padding: 30px;
  }
  
  .error-404 h1 {
    font-size: 180px;
    font-weight: 700;
    color: #4154f1;
    margin-bottom: 0;
    line-height: 150px;
  }
  
  .error-404 h2 {
    font-size: 24px;
    font-weight: 700;
    color: #012970;
    margin-bottom: 30px;
  }
  
  .error-404 .btn {
    background: #51678f;
    color: #fff;
    padding: 8px 30px;
  }
  
  .error-404 .btn:hover {
    background: #3e4f6f;
  }
  
  @media (min-width: 992px) {
    .error-404 img {
      max-width: 50%;
    }
  }
  
  /*--------------------------------------------------------------
  # Footer
  --------------------------------------------------------------*/
  .footer {
    padding: 20px 0;
    font-size: 14px;
    transition: all 0.3s;
    border-top: 1px solid #cddfff;
  }
  
  .footer .copyright {
    text-align: center;
    color: #012970;
  }
  
  .footer .credits {
    padding-top: 5px;
    text-align: center;
    font-size: 13px;
    color: #012970;
  }
  
  /*--------------------------------------------------------------
  # Branch Card Template Styles
  --------------------------------------------------------------*/
  .template {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .template:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(1, 41, 112, 0.15);
  }
  
  .img-container {
    position: relative;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .branch-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 20px;
  }
  
  .template:hover .img-container {
    filter: brightness(1.1);
  }
  
  .info-container {
    padding: 20px !important;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9ff 100%);
    border-top: 3px solid #4154f1;
  }
  
  .info-container p.fw-bold {
    font-size: 18px !important;
    color: #012970;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
  }
  
  .info-container p.text-muted {
    font-size: 13px !important;
    color: #6c757d !important;
    margin-bottom: 6px !important;
    display: flex;
    align-items: center;
    line-height: 1.6;
  }
  
  .info-container p.text-muted:last-child {
    margin-bottom: 12px !important;
  }
  
  .info-container p.text-muted small {
    position: relative;
    padding-left: 18px;
  }
  
  .info-container p.text-muted:nth-child(2) small::before {
    content: "🏷️";
    position: absolute;
    left: 0;
    font-size: 12px;
  }
  
  .info-container p.text-muted:nth-child(3) small::before {
    content: "📍";
    position: absolute;
    left: 0;
    font-size: 12px;
  }
  
  /* Card hover effect */
  .template .card {
    border: none;
    box-shadow: 0 2px 12px rgba(1, 41, 112, 0.08);
    transition: all 0.3s ease;
  }
  
  /*--------------------------------------------------------------
  # Profile Picture Styles
  --------------------------------------------------------------*/
  .profile-pic {
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .profile-pic:hover {
    transform: scale(1.05);
  }
  
  .profile-pic-placeholder {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .profile-pic-placeholder:hover {
    transform: scale(1.05);
    background-color: #5a6268 !important;
  }
  
  .profile-text-initials {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .profile-text-initials:hover {
    background-color: #5a6268 !important;
    color: white !important;
    transform: scale(1.05);
    border-color: #4154f1 !important;
  }
  
  /* Enhanced table row styling for franchisee list */
  #franchisee-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
  }
  
  #franchisee-table tbody tr:hover {
    background-color: #f8f9fa;
  }
  
  #franchisee-table tbody tr:hover .profile-pic {
    border-color: #4154f1;
  }
  
  #franchisee-table tbody tr:hover .profile-pic-placeholder {
    background-color: #4154f1 !important;
  }
  
  /* Performance optimizations */
  .profile-pic {
    will-change: transform;
    backface-visibility: hidden;
  }
  
  #franchisee-table {
    table-layout: fixed;
  }
  
  #franchisee-table td {
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Loading state animations */
  @keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
  }
  
  .loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
  }
  
  /*--------------------------------------------------------------
  # Expandable Box Styles
  --------------------------------------------------------------*/
  .expandable-box {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
  }
  
  .expandable-box:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .expandable-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.15s ease;
    user-select: none;
    will-change: background-color;
  }
  
  .expandable-header:hover {
    background-color: #e9ecef;
  }
  
  .expandable-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
  }
  
  .expandable-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 10px;
    color: #6c757d;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
  }
  
  .expandable-icon.rotated {
    transform: rotate(90deg) translateZ(0);
  }
  
  .expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    padding: 0 20px;
    opacity: 0;
  }
  
  .expandable-content.expanded {
    max-height: 2000px;
    padding: 20px;
    opacity: 1;
  }
  
  .info-item {
    margin-bottom: 15px;
  }
  
  .info-item label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .info-item p {
    color: #495057;
    margin: 0;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
  }
  
  /* Profile picture and initials styling */
  .profile-initials-placeholder {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .profile-initials-placeholder:hover {
    transform: scale(1.05);
    background-color: #5a6268 !important;
  }
  
  #profile-picture {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  #profile-picture:hover {
    transform: scale(1.05);
    border-color: #4154f1 !important;
  }
  
  /* DataTables sort icon positioning for Access Manager table - Consolidated */
  #access-table-datatable th.sorting,
  #access-table-datatable th.sorting_asc,
  #access-table-datatable th.sorting_desc {
    position: relative;
  }
  
  
  /* Hide all default DataTables sort icons for Access Manager */
  #access-table-datatable thead .sorting:after,
  #access-table-datatable thead .sorting_asc:after,
  #access-table-datatable thead .sorting_desc:after,
  #access-table-datatable thead .sorting_asc_disabled:after,
  #access-table-datatable thead .sorting_desc_disabled:after,
  table.dataTable#access-table-datatable thead .sorting:after,
  table.dataTable#access-table-datatable thead .sorting_asc:after,
  table.dataTable#access-table-datatable thead .sorting_desc:after,
  table.dataTable#access-table-datatable thead .sorting_asc_disabled:after,
  table.dataTable#access-table-datatable thead .sorting_desc_disabled:after,
  table#access-table-datatable thead th.sorting:after,
  table#access-table-datatable thead th.sorting_asc:after,
  table#access-table-datatable thead th.sorting_desc:after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Style our custom sort icons */
  #access-table-datatable .custom-sort-icon {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 12px !important;
    color: #999 !important;
    z-index: 1000 !important;
    display: block !important;
  }
  
  /* Override flex-direction row-reverse for Access Manager table */
  #access-table-datatable th.dt-type-date div.dt-column-header,
  #access-table-datatable th.dt-type-date div.dt-column-footer,
  #access-table-datatable th.dt-type-numeric div.dt-column-header,
  #access-table-datatable th.dt-type-numeric div.dt-column-footer,
  #access-table-datatable th div.dt-column-header,
  #access-table-datatable th div.dt-column-footer,
  table.dataTable#access-table-datatable th.dt-type-date div.dt-column-header,
  table.dataTable#access-table-datatable th.dt-type-date div.dt-column-footer,
  table.dataTable#access-table-datatable th.dt-type-numeric div.dt-column-header,
  table.dataTable#access-table-datatable th.dt-type-numeric div.dt-column-footer,
  table.dataTable#access-table-datatable th div.dt-column-header,
  table.dataTable#access-table-datatable th div.dt-column-footer {
    flex-direction: row !important;
  }
  
  
  /* Consistent styling for all Access Manager table columns */
  #access-table-datatable thead th {
    position: relative;
    text-align: left;
  }
  
  #access-table-datatable thead th .dt-column-title {
    display: inline-block;
    margin-right: 25px;
  }
  
  /* Consistent sort icons for all columns in Access Manager - Most aggressive targeting */
  #access-table-datatable thead th.sorting:after,
  #access-table-datatable thead th.sorting_asc:after,
  #access-table-datatable thead th.sorting_desc:after,
  #access-table-datatable thead th.sorting_asc_disabled:after,
  #access-table-datatable thead th.sorting_desc_disabled:after {
    position: absolute !important;
    right: 8px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    font-size: 12px;
    color: #999;
    display: block !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    z-index: 10 !important;
  }
  
  /* Additional targeting for DataTables structure */
  .dataTable#access-table-datatable thead th.sorting:after,
  .dataTable#access-table-datatable thead th.sorting_asc:after,
  .dataTable#access-table-datatable thead th.sorting_desc:after,
  .dataTable#access-table-datatable thead th.sorting_asc_disabled:after,
  .dataTable#access-table-datatable thead th.sorting_desc_disabled:after {
    right: 8px !important;
    left: auto !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    display: block !important;
  }

  /*--------------------------------------------------------------
  # Login Form Styles
  --------------------------------------------------------------*/
  
  /* Login form container */
  .login-form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }

  /* Login title */
  .login-title {
    font-size: 28px;
    font-weight: 700;
    color: #C59B68;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Open Sans', sans-serif;
  }

  /* Input group styling */
  .input-group {
    position: relative;
    margin-bottom: 20px;
  }

  .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #C59B68;
    font-size: 14px;
    z-index: 2;
  }

  /* Form input styling */
  .form-input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 1px solid #C59B68;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: #fefefe;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
  }

  .form-input:focus {
    outline: none;
    border-color: #C59B68;
    background: #ffffff;
  }

  .form-input::placeholder {
    color: #C59B68;
    font-weight: 400;
  }

  /* Sign in button */
  .signin-btn {
    width: 100%;
    padding: 8px;
    background: #C59B68;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
  }

  .signin-btn:hover {
    background: #B8905A;
  }

  .signin-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 157, 98, 0.2);
  }

  /* Helper text */
  .helper-text {
    text-align: center;
    color: #C59B68;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
  }

  /* Order Details Modal Styles */
  .order-modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
  }

  .order-modal-header {
    background: white;
    border-bottom: 2px dashed #E0E0E0;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .order-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #87CEEB, #87CEEB);
    border-radius: 15px 15px 0 0;
  }

  .order-number-circle {
    width: 50px;
    height: 50px;
    background: #E8E8E8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
  }

  .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }

  .customer-name {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
  }

  .asap-btn {
    background: #90EE90 !important;
    border: none;
    color: #333 !important;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
  }

  .asap-btn:hover {
    background: #7ED47E !important;
  }

  .btn-close {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    opacity: 1;
  }

  .order-modal-body {
    padding: 25px;
    background: white;
  }

  .general-instructions h6 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .instruction-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }

  .order-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
  }

  .order-item-card {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #E9ECEF;
  }

  .item-image {
    flex-shrink: 0;
  }

  .drink-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #E0E0E0;
  }

  .item-details {
    flex: 1;
  }

  .item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
  }

  .item-customization {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .item-instructions {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.4;
  }

  .order-modal-footer {
    background: white;
    border-top: 2px dashed #E0E0E0;
    padding: 20px 25px;
    border-radius: 0 0 15px 15px;
    position: relative;
  }

  .order-modal-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #87CEEB, #87CEEB);
    border-radius: 0 0 15px 15px;
  }

  .total-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .total-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }

  .total-amount {
    font-size: 20px;
    color: #FF6B35;
    font-weight: bold;
    margin-top: 2px;
  }

  .modal-actions {
    display: flex;
    gap: 10px;
  }

  .send-pos-btn {
    background: #28A745 !important;
    border: none;
    color: white !important;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
  }

  .send-pos-btn:hover {
    background: #218838 !important;
  }

  .prepare-order-btn {
    background: #C59B68 !important;
    border: none;
    color: white !important;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
  }

  .prepare-order-btn:hover {
    background: #B8905A !important;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .order-items-grid {
      grid-template-columns: 1fr;
    }
    
    .order-item-card {
      flex-direction: column;
      text-align: center;
    }
    
    .drink-image {
      width: 60px;
      height: 75px;
      margin: 0 auto;
    }
    
    .order-modal-footer {
      flex-direction: column;
    }
    
    .order-modal-footer .d-flex {
      flex-direction: column !important;
      gap: 20px;
    }
    
    .total-price {
      align-items: center;
      width: 100%;
      text-align: center;
    }
    
    .modal-actions {
      flex-direction: column;
      width: 100%;
    }
    
    .send-pos-btn,
    .prepare-order-btn {
      width: 100%;
      margin: 5px 0;
    }
    
    .order-modal-header .d-flex {
      flex-direction: column !important;
      gap: 15px;
      align-items: flex-start !important;
    }
    
    .order-modal-header .d-flex.align-items-center:last-child {
      flex-direction: row !important;
      justify-content: space-between;
      width: 100%;
    }
  }

  /* Order Card Styles */
  #pendingOrdersContainer .card-body,
  #preparingOrdersContainer .card-body,
  #readyForPickupOrdersContainer .card-body {
    padding: 0px;
  }