/*******GLOBALS*******************************/
*{
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}


/*******ROOT VARIABLES*************/
:root{
--color_blue : #3f93f1;
--color_primary: #007bff;
--color_darkblue1: #1e1e2f;
--color_darkblue2: #2c2c3a;
--color_dark1: #1e1e1e;
--color_dark2: #2c2c2c;
--color_white: #ffffff;
--color_light1: #dfdfdf;
--color_light2: #c4c4c4;
--color_darkgray: #444444;
--color_darkgreen: #06402B;
--color_lightgreen: #007958;
}


/*-----------login style--------*/
.login-container{
   display: flex;
   flex-direction: column;
   justify-content: center; 
   align-items: center;
   min-height: 100vh;
   background-color: var(--color_darkblue1);
}

.login-container img{
    height: 150px;
    width: 150px;
    margin-bottom: 20px;
}


.login-container .login-wrapper{
    width: 420px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.205);
    color: var(--color_white);
    border-radius: 10px;
    padding: 30px 40px;
}


.login-container .login-wrapper h1{
    font-size: 36px;
    text-align: center;
}


.login-container .login-wrapper .input-box{
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    font-size: 36px;
    text-align: center;
    margin: 30px 0;
}


.login-container .login-wrapper .input-box input{
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    font-size: 16px;
    color: var(--color_white);
    padding: 20px 45px 20px 20px;
}



.login-container .login-wrapper .input-box input::placeholder{
    color: var(--color_white);
}



.login-container .login-wrapper .input-box i{
    position: absolute;
    right: 20px;
    font-size: 20px;
}


.login-container .login-wrapper .remember-forgot{
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;
}


.login-container .login-wrapper .remember-forgot label input{
    accent-color: var(--color_white);
    margin-right: 3px;

}


.login-container .login-wrapper .remember-forgot a{
    color: var(--color_white);
    
}


.login-container .login-wrapper .remember-forgot a:hover{
    text-decoration: underline;
    
}



.login-container .login-wrapper .btn{
    width: 100%;
    height: 45px;
    background-color: var(--color_white);
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}


/*******sidebar*************/
.sidebar{
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 260px;
background-color: var(--color_darkblue1); 
transition: all 0.5s ease;
z-index: 100;
}


.sidebar.close{
    width: 78px;
}



/*******logo*************/
.logo-box{
height: 60px;
width: 100%;
display: flex;
align-items: center;
color: var(--color_light1);
transition: all .5s ease;
}

.logo-box:hover{
    color: var(--color_blue);
}


.logo-box i{
    font-size: 30px;
    text-align: center;
    height: 50px;
    min-width: 60px;
    line-height: 50px;
    transition: all .5s ease;
}


.sidebar.close .logo-box i{
    transform: rotate(360deg);
}


.logo-name{
    font-size: 25px;
    font-weight: 600;
}




/*******sidebar list*************/
.sidebar-list{
    height: 100%;
    padding: 10px 0 140px 0;
    overflow: auto;
}

.sidebar-list::-webkit-scrollbar{
    display: none;
}


.sidebar-list li{
    transition: all .5s ease;
   
}

.sidebar-list li:hover{
    background-color: var(--color_darkblue2);
}



.sidebar-list li .title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all .5s ease;
}

.sidebar-list li.active .title{
    background-color: var(--color_blue);
}


.sidebar-list li.active .bx-chevron-down{
    transition: all .5s ease;
    transform: rotate(180deg);
}



.sidebar-list li .title i{
    height: 50px;
    min-width: 60px;
    text-align: center;
    line-height: 50px;
    color: var(--color_light1);
    font-size: 20px;
}


.sidebar-list li .title .name{
    font-size: 18px;
    font-weight: 400;
    color: var(--color_light1);

}


.sidebar-list li .sub-menu{
    display: none;
    transition: all .5s ease;
}

.sidebar-list li.dropdown.active .sub-menu{
    width: 100%;
    height: unset;
    display: flex;
    flex-direction: column;
    padding: 6px 6px 14px 80px;
    background-color: var(--color_darkblue2);
}


.sub-menu .link{
    color: var(--color_light2);
    font-size: 15px;
    padding: 5px 0;
    transition: all .5s ease;
}


.sub-menu .link:hover{
    color: #fff;
}


.submenu-title{
    display: none;
}


/*******submenu close*************/
.sidebar.close .logo-name,
.sidebar.close .title .name,
.sidebar.close .title .bx-chevron-down
{
    display: none;
}



.sidebar.close .sidebar-list{
    overflow: visible;
}

.sidebar.close .sidebar-list li{
    position: relative;
}


.sidebar.close .sidebar-list li .sub-menu{
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    height: max-content;
    width: max-content;
    display: none;
    transition: all .5s ease;
    pointer-events: none;
}


.sidebar.close .sidebar-list li:hover .sub-menu{
    display: flex;
    flex-direction: column;
    top: 0;
    pointer-events: initial;
    background-color: var(--color_darkblue2);
}


.sidebar.close .submenu-title{
    display: block;
    font-size: 18px;
    color: var(--color_light1);
}










/*-------------home section----------------------*/
.home{
    position: relative;
    background-color: #f5f5f5;
    left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    transition: all .5s ease;
}


/*------- navbar section ----------------*/
.home .header{
    display: flex;
    height: 60px;
    padding: 0 15px 0 10px;
    background-color: var(--color_white);
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
}



.home .header .toggle-sidebar{
    height: 60px;
    padding: 8px 0;
    display: flex;
    align-content: center;
    width: fit-content;
    cursor: pointer;
}

.home .header .toggle-sidebar i{
    font-size: 35px;
    color: var(--color_dark1);
    
}


.sidebar.close ~ .home, .footer{
    left: 78px;
    width: calc(100% - 78px);
}



.home .header .header-icons{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    cursor: pointer;

}


.icon-badge {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: red;
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
}

.icon-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 5px;
  height: 60px;
}

.icon-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* slightly below the icon */
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
  width: 150px;
  color: #333;
}

.icon-dropdown:hover .dropdown-menu {
  display: block;
}

.notification-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.notification-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: min(340px, calc(100vw - 24px));
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
  z-index: 1100;
  cursor: default;
  font-size: 14px;
}

.notification-dropdown.is-open .notification-menu,
.notification-dropdown:hover .notification-menu {
  display: block;
}

.notification-menu-title,
.notification-empty {
  display: block;
  padding: 12px 14px;
  margin: 0;
}

.notification-menu-title {
  border-bottom: 1px solid #eee;
}

.notification-group {
  display: block;
  padding: 11px 14px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.notification-group:hover {
  background: #f6f8fb;
}

.notification-group-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.notification-group-heading b {
  color: #c62828;
}

.notification-group-items {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.email-dropdown .dropdown-menu,
.nav-profile ul {
  width: 220px;
  padding: 6px 0;
  margin: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
  color: #333;
  z-index: 1100;
  overflow: hidden;
}

.dropdown-menu li {
  padding: 0;
  font-size: 14px;
}

.email-dropdown .dropdown-menu li a,
.nav-profile ul li a {
  display: block;
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

.email-dropdown .dropdown-menu li:hover,
.nav-profile ul li:hover {
  background: #f6f8fb;
}

.nav-profile{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 50px;
}

.nav-profile .user-profile{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    height: 35px;
    width: 35px;
    color: white;
    background-color: var(--color_darkblue1);
    border-radius: 50%;
}


.nav-profile:hover > ul{
    display: inline-block;
}


.nav-profile ul{
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  transition: var(--transition);
}

/*-------------------Main container------------------------*/
.main-container{
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.main-container .main-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    margin: 10px 0;
}

.main-container .main-title a{
    color: teal;
    border: 1px solid teal;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    transition: all 1s ease;
}

.main-container .main-title a:hover{
    background-color: teal;
    color: white;
}

.main-container .card-widgets{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 15px 0px;
}


.main-container .card-widgets .card{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 25px;
    background-color: var(--color_white);
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.3);
}


.card-widgets .card:first-child{
    border-left: 7px solid #246dec;
}

.card-widgets .card:nth-child(2){
    border-left: 7px solid #367952;
}

.card-widgets .card:nth-child(3){
    border-left: 7px solid #f5b74f;
}

.card-widgets .card:nth-child(4){
    border-left: 7px solid #cc3c43;
}

.card-widgets .card:nth-child(5){
  border-left: 7px solid #800080;
}

.card-widgets .card:nth-child(6){
  border-left: 7px solid #bab86c;
}

.card-widgets .card:nth-child(7){
  border-left: 7px solid #367952;
}

.card-widgets .card:nth-child(8){
  border-left: 7px solid var(--color_dark2);
}


.card-widgets .card .card-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-widgets .card .card-inner .card-text{
    font-size: 18px;
}

.card-widgets .card .card-inner > i{
    font-size: 35px;
}

.card-widgets .card .card-counter{
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
    color: #333;
}


.text-red{
    color:#cc3c43;
}
.text-blue{
    color:#246dec;
}
.text-orange{
    color:#f5b74f;
}
.text-green{
    color:#367952;
}
.text-purple{
  color: #800080;
}
.text-olive{
  color: #bab86c;
}





/*-----------------charts section----------------------*/
.charts{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    margin-top: 10px;
    gap: 20px;
}

.charts .chart-card{
    background-color: var(--color_white);
    margin-bottom: 20px;
    padding: 25px;
    box-sizing: border-box;
    -webkit-column-break-inside: avoid;
    border-radius: 5px;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
}

.charts .chart-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 22px;
    color: darkgray;
}



/*------------------------table section--------------------*/
.table-container {
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
    margin: 20px 0;
    overflow-x: auto;
    background-color: var(--color_white);
  }


  .table-description {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
  }
  
  .table-wrapper {
    width: 100%;
    overflow-x: auto; /* Important: this handles responsiveness */
  }

  .responsive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 🛠️ This is critical: fix the table layout */
    min-width: 600px; /* Enforces a minimum table width */
  }
  
  .responsive-table th, .responsive-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    overflow: hidden;
    text-overflow: ellipsis; /* For clean text overflow */
    white-space: nowrap;      /* Keep content in one line */
  }
  
  .responsive-table th {
    background-color: #f4f4f4;
  }
  

 


  
/* =========================================
   TABLE CONTROL
========================================= */

.table-control {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}


/* =========================================
   SEARCH
========================================= */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
    min-width: 220px;
}

.search-box input {
    width: 100%;
    height: 38px;
    padding: 0 40px 0 12px;

    border: 1px solid #d9d9d9;
    border-radius: 6px;

    background: #fff;
    color: #333;

    font-size: 14px;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-box input::placeholder {
    color: #999;
}

.search-box input:focus {
    border-color: var(--color_primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.08);
}

.search-box i {
    position: absolute;
    right: 12px;
    font-size: 19px;
    color: #888;
    pointer-events: none;
}


/* =========================================
   FILTER BOX
========================================= */

.filter-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.date-picker {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}


/* =========================================
   FILTER GROUP
========================================= */

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label {
    color: #555;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}


/* =========================================
   INPUTS / SELECT
========================================= */

.filter-box select,
.filter-group input {
    height: 38px;
    padding: 0 10px;

    border: 1px solid #d9d9d9;
    border-radius: 6px;

    background: #fff;
    color: #333;

    font-size: 14px;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.filter-box select {
    min-width: 140px;
    cursor: pointer;
}

.filter-group input {
    width: 155px;
}

.filter-box select:focus,
.filter-group input:focus {
    border-color: var(--color_primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.08);
}


/* =========================================
   BUTTONS
========================================= */

.date-picker button {
    height: 38px;
    padding: 0 16px;

    border: 1px solid var(--color_primary);
    border-radius: 6px;

    background: var(--color_primary);
    color: var(--color_white);

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

.date-picker button:hover {
    background: #0056b3;
}

.date-picker button:active {
    transform: translateY(1px);
}


/* =========================================
   CLEAR BUTTON
========================================= */

.clear-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 38px;
    gap: 5px;

    padding: 0 12px;

    border: 1px solid #d9d9d9;
    border-radius: 6px;

    color: #666;
    background: #fff;

    font-size: 14px;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.clear-filter-btn i {
    font-size: 17px;
}

.clear-filter-btn:hover {
    border-color: #bbb;
    color: #333;
    background: #f7f7f7;
}

.table-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 20px;
}

.table-action-btn .btn-icon {
    width: 38px;
    height: 38px;

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

    border: 1px solid #d9d9d9;
    border-radius: 6px;

    background: #fff;
    color: #666;

    cursor: pointer;

    transition: all 0.2s ease;
}

.table-action-btn .btn-icon i {
    font-size: 18px;
}

.table-action-btn .btn-icon:hover {
    background: #f7f7f7;
    border-color: #bbb;
    color: #333;
}
/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .table-control {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-box {
        width: 100%;
    }

    .filter-box {
        width: 100%;
        justify-content: flex-start;
    }

    .date-picker {
        width: 100%;
        justify-content: flex-start;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .date-picker {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-box select,
    .filter-group input {
        width: 100%;
        min-width: 0;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .date-picker button,
    .clear-filter-btn {
        width: 100%;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 450px) {

    .date-picker {
        grid-template-columns: 1fr;
    }
}



  

  /*-----------------------Reports Style ----------------------------------*/

  .table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
  }

  .table-container thead {
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
  }

  .table-container th, td {
    text-align: left;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
  }

  .table-container tbody tr:hover {
    background-color: #f1f1f1;
  }

  .table-container.dataTable{
    padding: 10px;
    background-color: var(--color_white);
  }


  .table-container.dataTable td a {
    margin-right: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }

  .table-container.dataTable td a i {
    font-size: 18px;
  }

  .table-container.dataTable tr {
    height: 50px;
  }

  .dataTable td .table-action-control{
    display: flex;
   
    align-items: center;
  }

  .dataTable td .table-action-control.attendance-actions {
    gap: 5px;
  }

  .dataTable td .table-action-control a{
    padding: 10px;
  }

  .dataTable td .table-action-control .clock-out-form {
    margin: 0;
  }

  .dataTable td .table-action-control .clock-out-action {
    padding: 10px;
    border: 0;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
  }

  .dataTable td .table-action-control .clock-out-action i {
    font-size: 18px;
  }

  .dataTable td .table-action-control .clock-out-action:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.65;
  }
  
  .table-container.dataTable td a:hover {
    opacity: 0.85;
  }
  
  .table-container.dataTable td a:last-child {
    background-color: #f44336;
    color: white;
  }

  .table-container.dataTable td a:first-child {
    background-color: #4CAF50;
    color: white;
  }
  
  .table-container.dataTable td .table-action-control a:nth-child(2):nth-last-child(2) {
    background-color: orange;
    color: white;
  }


 


  .pagination {
    margin-top: 15px;
    text-align: center;
  }


  .pagination button {
    padding: 10px 15px;
    font-size: 14px;
    margin: 0 3px;
    border: none;
    background-color: #eee;
    cursor: pointer;
    border-radius: 4px;
  }

  .pagination button.active {
    background-color: #2196F3;
    color: white;
  }

  .pagination button:hover {
    background-color: #ddd;
    color: #333;
  }

  /*----------------------------basic form style --------------------*/
  .form-container {
    min-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
   
  }




  .form-container .form-header-actions{
    display: flex;
    padding: 10px 0;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
  }

  .form-container .form-header-actions .action-group{
    display: flex;
    gap: 10px;
  }


  .form-container .form-header-actions .header-action{
   padding: 10px;
   background-color: var(--color_darkblue1);  
   color: var(--color_light1);
   font-size: 1.2rem;
   border-radius: 12px;
   cursor: pointer;
  }


   .form-container .form-header-actions .header-action:hover{
    background-color: var(--color_darkblue2);
   }



  .form-title{
    font-size: 18px;
    padding: 10px;
    background-color: #eee;
    color: #333;
    font-weight: bold;
    margin: 20px 0;
    border-bottom: 1px solid #ccc;
  }

  .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .customer-form-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.8fr);
    gap: 34px;
    align-items: start;
  }

  .customer-photo-panel,
  .customer-details-panel {
    min-width: 0;
  }

  .customer-photo-panel {
    padding: 24px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #f7f9fc;
    text-align: center;
  }

  .customer-photo-heading,
  .customer-details-heading {
    margin-bottom: 20px;
  }

  .customer-photo-heading h4,
  .customer-details-heading h4 {
    margin: 0;
    color: var(--color_dark1);
    font-size: 20px;
  }

  .customer-photo-frame {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 2px dashed #c9d3df;
    border-radius: 8px;
    background: #e9eef4;
  }

  .customer-photo-frame img,
  .customer-photo-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .customer-camera-status {
    min-height: 20px;
    margin: 0 0 14px;
    color: var(--color_darkgray);
    font-size: 13px;
  }

  .customer-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .photo-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 5px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
  }

  .photo-action-button:hover {
    background: #0056b3;
  }

  .photo-action-button.secondary {
    background: #425466;
  }

  .photo-action-button.secondary:hover {
    background: #2f3d4a;
  }

  .photo-action-button.capture {
    background: #198754;
  }

  .photo-action-button.capture:hover {
    background: #146c43;
  }

  .form-group {
    display: flex;
    flex-direction: column;
  }

  .form-group label {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color_darkgray)
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
  }

  .form-group input[type="checkbox"] {
    margin-right: 6px;
    margin-bottom: 5px;
  }
  .form-group label input[type="checkbox"] {
    margin-right: 4px;
  }

  .form-actions {
    text-align: center;
    margin-top: 30px;
  }

  .form-actions button {
    padding: 0.75rem 2rem;
    font-size: 16px;
    background: #007bff;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
  }

  .form-actions button:hover {
    background: #0056b3;
  }

  .context-label{
    margin-bottom: 7px;
    color: var(--color_darkgray);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .recipe-context-value{
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-left: 3px solid var(--color_primary);
    background: #f5f8fc;
    color: var(--color_dark1);
    font-size: 15px;
  }

  .ingredient-add-action{
    display: flex;
    align-items: end;
    justify-content: flex-start;
    margin-top: 0;
    align-self: end;
  }

  .ingredient-entry-grid{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px;
    align-items: end;
  }

  .form-actions .ingredient-add-button{
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
  }

  .ingredient-table-section{
    width: 100%;
    margin-top: 28px;
    border-top: 1px solid #e3e8ef;
    padding-top: 18px;
  }

  .ingredient-table-heading{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
  }

  .ingredient-table-heading h4{
    color: var(--color_dark1);
    font-size: 17px;
  }

  .ingredient-table-heading span{
    color: var(--color_darkgray);
    font-size: 13px;
  }

  .ingredient-table{
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
  }

  .ingredient-table th{
    padding: 13px 15px;
    background: var(--color_darkblue2);
    color: var(--color_white);
    font-size: 13px;
    text-align: left;
  }

  .ingredient-table td{
    padding: 13px 15px;
    border-top: 1px solid #e8edf2;
    color: var(--color_darkgray);
  }

  .ingredient-table tbody tr:nth-child(even){
    background: #f8fafc;
  }

  .ingredient-table tbody tr:hover{
    background: #eef5fc;
  }

  .ingredient-table th:first-child,
  .ingredient-table td:first-child{
    width: 70px;
  }

  .ingredient-table th:last-child,
  .ingredient-table td:last-child{
    width: 90px;
    text-align: center;
  }

  .remove-ingredient{
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: #fff0ef;
    color: #d9362b;
    cursor: pointer;
  }

  .remove-ingredient:hover{
    background: #d9362b;
    color: var(--color_white);
  }

  .recipe-edit-form{
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .recipe-edit-section{
    padding-bottom: 28px;
    border-bottom: 1px solid #e3e8ef;
  }

  .recipe-section-heading{
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
  }

  .recipe-section-heading h4{
    margin-top: 3px;
    color: var(--color_dark1);
    font-size: 20px;
  }

  .recipe-section-heading > span{
    color: var(--color_darkgray);
    font-size: 13px;
  }

  .recipe-status-field{
    justify-content: center;
  }

  .recipe-edit-actions{
    margin-top: 0;
    text-align: right;
  }



  
  
  /*-----------------------Settings Style ----------------------------------*/
  .tabs {
    display: flex;
    gap: 5px 0;
    flex-wrap: wrap;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    box-shadow: 0 .5rem .5rem rgba(0, 0, 0, 0.2);
  }

  .tab {
    padding: 10px 20px;
    cursor: pointer;
    background: #eee;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
  }

  .tab.active {
    background: white;
    border-bottom: 2px solid white;
    font-weight: bold;
  }

  .tab-content {
    display: none;
  }

  .tab-content .about-content p{
    padding: 10px;
  }

  .tab-content.active {
    display: block;
  }

  .form-group {
    margin-bottom: 15px;
  }

  label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
  }

  input[type="text"], select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

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

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

   .form-group .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }

  input:checked + .slider {
    background-color: #4CAF50;
  }

  input:checked + .slider:before {
    transform: translateX(26px);
  }

  .settings-buttons {
    margin-top: 20px;
  }

  .settings-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
    margin-right: 10px;
  }

  .settings-buttons button.reset {
    background: #dc3545;
  }


.message{
  padding: 20px;
  width: 100%;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
}

.fade-out{
  opacity: 0;
  transition: opacity 1s ease-out;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#alert{
  padding: 20px;
  width: 100%;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  display: none;
}

#alert.success{
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#alert.error{
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


.about-content{
  display: grid;
  grid-template-columns: 1fr 3fr; 
}

.about-content .app-logo img{
  width: 80%;
}


/* Add this to your main CSS file */
.spinner{
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  animation: spin 0.8s linear infinite;
}


.logo-preview img {
  max-width: 30%;
  max-height: 30%;
  border: 1px solid lightgray;
  object-fit: contain;
}



@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

  /*---------------- Modal styles ----------------------*/
  .modal {
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .modal-content {
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
    max-width: 600px;
    width: 90%;
  }
  
  .modal-content h3{
    margin-bottom: 30px;
  }

  .modal-content .icon {
    font-size: 48px;
    color: #f39c12;
    margin-bottom: 15px;
  }
  
  .modal-content p {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .modal-content .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .modal-content .btn {
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .modal-content .btn-primary {
    background-color: #007bff;
    color: white;
  }

  .modal-content .btn-primary:hover {
    background-color: #0056b3;
  }
  
  .modal-content .btn-danger {
    background-color: #e74c3c;
    color: white;
  }
  .modal-content .btn-danger:hover {
    background-color: #c0392b;
  }
  
  .modal-content .btn-secondary {
    background-color: #bdc3c7;
    color: #2c3e50;
  }

  .modal-content .btn-secondary:hover {
    background-color: #95a5a6;
  }


    .modal-content .btn-dark {
    background-color: #383838;
    color: white;
  }

  .modal-content .btn-dark:hover {
    background-color: #131313;
  }


  /*-----------------------------single page design----------------------*/

  .single-page{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--color_white);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .single-page .slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .single-page .profile-image{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 50%;
  }

  .single-page .profile-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .single-page .slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
  }

  .single-page .slider img.active {
    opacity: 1;
    z-index: 1;
  }

  .single-page .info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .single-page .info h2 {
    margin-top: 0;
  }

  .single-page .info p {
    margin: 8px 0;
  }

  .single-page .info .availability {
    margin: 10px 0;
    font-weight: bold;
    color: green;
  }

  .single-page .info .finished {
    margin: 10px 0;
    font-weight: bold;
    color: red;
  }

  .single-page .info .book-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .print-btn{
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    background-color: var(--color_darkblue1);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .single-page .info .book-btn:hover {
    background-color: #0056b3;
  }

  .print-btn:hover{
    background-color: var(--color_darkblue2);
  }

  .single-page .slider-controls {
    position: absolute;
    top: 40%;
    width: 100%;
    display: flex;
    z-index: 2;
    justify-content: space-between;
    transform: translateY(-50%);
  }

  .slider-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    border: none;
    padding: 10px;
    cursor: pointer;
  }


  /*------------print card---------------*/
  .id-card { display: none; }

@media print {
  @page {
      size: 3.375in 2.125in;
      margin: 0;
  }

  body {
      margin: 0;
      padding: 0;
  }

  body > *:not(#customer-print-card):not(:has(.payroll-slip)) {
      display: none !important;
  }

  #customer-print-card {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: static;
      width: 3.375in;
      height: 2.125in;
      padding: 10px 12px;
      box-sizing: border-box;
      border-radius: 14px;
      font-family: 'Segoe UI', Arial, sans-serif;

      /* Gradient background */
      background: linear-gradient(135deg, #1e3a5f 0%, #16324a 55%, #0f2436 100%);
      color: #ffffff;

      /* Force browsers to actually print the gradient */
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;

      /* Layered shadow for depth (visible on screen; some printers ignore it) */
      box-shadow:
          0 6px 14px rgba(0,0,0,0.25),
          0 1px 3px rgba(0,0,0,0.3),
          inset 0 1px 0 rgba(255,255,255,0.08);

      position: relative;
      overflow: hidden;
  }

  /* Soft decorative glow in the corner — subtle, doesn't touch QR or text */
  #customer-print-card::before {
      content: "";
      position: absolute;
      top: -30px;
      right: -30px;
      width: 100px;
      height: 100px;
      background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 70%);
      border-radius: 50%;
      pointer-events: none;
  }

  .id-card-header {
      display: flex;
      align-items: center;
      gap: 6px;
      border-bottom: 1.5px solid rgba(255,255,255,0.3);
      padding-bottom: 5px;
      position: relative;
      z-index: 1;
  }

  .id-card-logo {
      width: 20px;
      height: 20px;
      object-fit: contain;
      filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
  }
  .id-card-company {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: #ffffff;
  }

  .id-card-body {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
      margin-top: 6px;
      position: relative;
      z-index: 1;
  }

  .id-card-photo-wrap {
      width: 55px;
      height: 55px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid #ffffff;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }
  .id-card-photo {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
  .id-card-details {
      flex: 1;
      min-width: 0;
  }
  .id-card-name {
      font-size: 12px;
      font-weight: 700;
      margin: 0 0 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  }
  .id-card-phone {
      font-size: 8.5px;
      margin: 2px 0;
      color: #cbd5e1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  .id-card-phone strong {
      color: #e2e8f0;
  }

  /* White padded box behind QR — clean scan zone + soft lift */
  .id-card-qr-box {
      width: 80px;
      height: 80px;
      background: #ffffff;
      border-radius: 8px;
      padding: 4px;
      box-sizing: border-box;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  .id-card-qr {
      width: 100%;
      height: 100%;
  }
  .id-card-qr canvas, .id-card-qr img {
      width: 100% !important;
      height: 100% !important;
  }

  .id-card-footer {
      border-top: 1px solid rgba(255,255,255,0.2);
      padding-top: 4px;
      font-size: 7px;
      color: #94a3b8;
      text-align: right;
      position: relative;
      z-index: 1;
  }
}

/*-------------------floor section--------------------------------------*/
.floor-header{
  display: flex;
  position: fixed;
  top: 0;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color_darkblue2);
  height: 60px;
  padding: 0 15px 0 10px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.floor-header .nav-btn-group{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-btn.danger{
  background-color: #e63946;
  color: white
}


 .nav-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 5px;
  height: 40px;
  width: 40px;
  font-size: 20px;
  gap: 10px;
  background-color: var(--color_darkblue1);
 

  color: var(--color_light1);
}


.floor-selector {
  display: flex;
  position: fixed;
  top: 60px;
  gap: 0.8rem;
  width: 100%;
  height: 80px;
  max-width: 100vw;
  overflow-x: auto;
  padding: .5rem;
  background-color: #f4f4f4;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
}

.floor-selector::-webkit-scrollbar{
    display: none;
}

.floor-btn {
  padding: 1.5rem 1rem;
  background: #fff;
  width: 120px;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}


.floor-btn.selected-floor {
  background-color: var(--color_darkblue1);
  color: white;
}


.floor-btn:hover {
  border: 1px solid var(--color_dark1);
}

.floor-table-container {
  margin-top: 140px;
  height: calc(100vh - 140px);
  overflow-y: auto;
 
}

.floor-table-container .floor-tables{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}


.table-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 2px solid #4caf50;
  height: 120px;
  width: 180px;
  padding: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.table-card p {
  margin: 0.2rem 0;
}

.table-card strong {
  color: #333;
}

.table-card:hover {
  border-color: #388e3c;
  background-color: #f9f9f9;
}


.table-card.available {
  background-color: #e8f5e9;
  border: 2px solid #4caf50;
}

.table-card.occupied {
  background-color: #ffebee;
  border: 2px solid #f44336;
}

.table-card.reserved {
  background-color: #fff3e0;
  border: 2px solid #ff9800;
}


/*---------------update product slide---------------------*/
/* =========================================================
   PRODUCT IMAGE SLIDER
   ========================================================= */

.product-image-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 20px auto;

    overflow: hidden;
    border-radius: 16px;

    background: #f5f5f5;

    /* Gives the slider some depth */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   SLIDER WRAPPER
   ========================================================= */

.slider-wrapper {
    position: relative;

    width: 100%;
    height: 100%;
}


/* =========================================================
   SLIDES
   ========================================================= */

.slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

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

    /* Hidden, but still capable of animation */
    opacity: 0;
    visibility: hidden;

    transform: scale(1.04) translateY(8px);

    transition:
        opacity 0.45s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.45s ease;

    pointer-events: none;
}


/* Active slide */

.slide.active {
    opacity: 1;
    visibility: visible;

    transform: scale(1) translateY(0);

    pointer-events: auto;

    z-index: 2;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.slide img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 20px;

    /* Slight image animation */
    transform: scale(0.97);

    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}


.slide.active img {
    transform: scale(1);
}


/* =========================================================
   DELETE BUTTON
   ========================================================= */

.delete-image-btn {
    position: absolute;

    left: 50%;
    bottom: 20px;

    transform: translateX(-50%);

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

    gap: 6px;

    border: none;
    border-radius: 8px;

    padding: 10px 18px;

    background: rgba(220, 53, 69, 0.92);
    color: white;

    cursor: pointer;

    z-index: 10;

    font-size: 14px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.delete-image-btn:hover {
    background: #b02a37;

    transform: translateX(-50%) translateY(-2px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}


.delete-image-btn:active {
    transform: translateX(-50%) translateY(0);
}


/* =========================================================
   NAVIGATION BUTTONS
   ========================================================= */

.slider-btn {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);

    color: white;

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

    cursor: pointer;

    z-index: 5;

    backdrop-filter: blur(5px);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.slider-btn i {
    font-size: 24px;

    transition:
        transform 0.25s ease;
}


.slider-btn:hover {
    background: rgba(0, 0, 0, 0.78);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


.slider-prev {
    left: 15px;
}


.slider-next {
    right: 15px;
}


/* Arrow movement */

.slider-prev:hover {
    transform: translateY(-50%) translateX(-2px);
}


.slider-next:hover {
    transform: translateY(-50%) translateX(2px);
}


/* =========================================================
   COUNTER
   ========================================================= */

.slider-counter {
    position: absolute;

    top: 15px;
    left: 50%;

    transform: translateX(-50%);

    padding: 6px 12px;

    background: rgba(0, 0, 0, 0.55);

    color: white;

    border-radius: 20px;

    font-size: 14px;

    z-index: 5;

    backdrop-filter: blur(5px);

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


/* =========================================================
   NO PRODUCT IMAGES
   ========================================================= */

.no-product-images {
    width: 100%;
    max-width: 600px;

    height: 250px;

    margin: 20px auto;

    border: 2px dashed #ccc;

    border-radius: 10px;

    display: flex;
    flex-direction: column;

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

    color: #777;
}


.no-product-images i {
    font-size: 50px;
}


.no-product-images p {
    margin-top: 10px;
}

/*-------------------error page-----------------------------*/
 .error-container {
            width: 100%;
            background: #ffffff;
            padding: 45px 35px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        }

        .error-icon {
            width: 75px;
            height: 75px;
            margin: 0 auto 20px;
            border-radius: 50%;
            background: #fff0f0;
            color: #dc3545;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 38px;
            font-weight: bold;
        }

        .error-container h1 {
            margin: 0 0 12px;
            font-size: 26px;
            color: #222;
        }

        .error-container p {
            margin: 0 auto 28px;
            color: #666;
            line-height: 1.6;
            font-size: 18px;
            word-break: break-word;
        }

        .error-button {
            display: inline-block;
            padding: 12px 25px;
            border-radius: 6px;
            background: #222;
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            transition: 0.2s;
        }

        .error-button:hover {
            background: #444;
        }



/*-----------------------------Customer Display-------------------------------------*/
.customer-display-page{
  --display-ink: #172434;
  --display-muted: #718096;
  --display-accent: #00a98f;
  --display-line: #e8edf2;
  min-height: 100vh;
  margin: 0;
  color: var(--display-ink);
  background: #f3f6f8;
  font-family: "Montserrat", sans-serif;
}

.customer-display-page [hidden]{
  display: none !important;
}

.customer-display-header{
  display: flex;
  height: 82px;
  padding: 0 clamp(20px, 5vw, 72px);
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background: var(--color_darkblue1);
  color: #fff;
}

.customer-display-brand{
  display: flex;
  align-items: center;
  gap: 13px;
}

.customer-display-mark{
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 4px;
}

.customer-display-brand p,
.customer-display-brand span{
  display: block;
  margin: 0;
}

.customer-display-brand p{
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
}

.customer-display-brand div > span{
  margin-top: 4px;
  color: #a9bacb;
  font-size: 11px;
}

.customer-display-live{
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d4e0e8;
  font-size: 12px;
  font-weight: 600;
}

.customer-display-live span{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37d7a1;
  box-shadow: 0 0 0 4px rgba(55, 215, 161, .14);
}

.customer-display-body{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px;
  width: min(1440px, calc(100% - 64px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 34px 0;
  box-sizing: border-box;
}

.customer-display-order,
.customer-display-summary{
  border: 1px solid #e8edf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(26, 48, 67, .06);
}

.customer-display-order{
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.customer-display-order-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 22px;
}

.customer-display-eyebrow,
.customer-display-summary-top p{
  margin: 0 0 8px;
  color: var(--display-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.customer-display-order-heading h1{
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
}

.customer-display-customer{
  margin: 8px 0 0;
  color: var(--display-muted);
  font-size: 13px;
}

.customer-display-date{
  margin: 0;
  color: var(--display-muted);
  font-size: 12px;
}

.customer-display-table-wrap{
  position: relative;
  flex: 1;
  min-height: 260px;
  border-top: 1px solid var(--display-line);
}

.customer-display-table{
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.customer-display-table th{
  padding: 15px 18px;
  background: #f8fafb;
  color: var(--display-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-display-table th:first-child,
.customer-display-table td:first-child{
  padding-left: 32px;
}

.customer-display-table th:last-child,
.customer-display-table td:last-child{
  padding-right: 32px;
  text-align: right;
}

.customer-display-table td{
  padding: 17px 18px;
  border-bottom: 1px solid #edf1f4;
  color: #405166;
  font-size: 13px;
}

.customer-display-table td:nth-child(2){
  color: var(--display-muted);
}

.customer-display-table td:last-child{
  color: var(--display-ink);
  font-weight: 700;
}

.customer-display-empty{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.customer-display-empty > span{
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 20px;
  background: #eaf8f5;
  color: var(--display-accent);
  font-size: 32px;
}

.customer-display-empty strong{
  font-size: 15px;
}

.customer-display-empty p{
  margin: 8px 0 0;
  color: var(--display-muted);
  font-size: 12px;
}

.customer-display-summary{
  align-self: start;
  padding: 25px;
}

.customer-display-summary-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-display-summary-top p{
  margin: 0;
}

.customer-display-summary-top span{
  color: var(--display-muted);
  font-size: 11px;
}

.customer-display-totals{
  display: grid;
  gap: 15px;
  padding: 24px 0;
  border-bottom: 1px solid var(--display-line);
}

.customer-display-totals > div,
.customer-display-payment > div{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--display-muted);
  font-size: 12px;
}

.customer-display-totals strong,
.customer-display-payment strong{
  color: var(--display-ink);
  font-weight: 600;
}

.customer-display-grand-total{
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 0;
}

.customer-display-grand-total span{
  color: var(--display-muted);
  font-size: 12px;
}

.customer-display-grand-total strong{
  color: var(--display-ink);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.04em;
}

.customer-display-payment{
  display: grid;
  gap: 13px;
  padding: 17px;
  border-radius: 12px;
  background: #f5f8fa;
}

.customer-display-thanks{
  margin: 22px 0 0;
  color: var(--display-muted);
  font-size: 11px;
  text-align: center;
}

.customer-display-thanks i{
  margin-right: 4px;
  color: var(--display-accent);
}

@media (max-width: 820px){
  .customer-display-body{
    grid-template-columns: 1fr;
    width: min(100% - 32px, 620px);
  }

  .customer-display-summary{
    align-self: stretch;
  }
}

@media (max-width: 520px){
  .customer-display-header{
    height: 70px;
    padding: 0 16px;
  }

  .customer-display-body{
    width: calc(100% - 20px);
    padding: 14px 0;
    gap: 14px;
  }

  .customer-display-order-heading{
    align-items: flex-start;
    padding: 22px 18px 17px;
  }

  .customer-display-date{
    max-width: 90px;
    text-align: right;
  }

  .customer-display-table th{
    padding: 12px 8px;
    font-size: 9px;
  }

  .customer-display-table td{
    padding: 14px 8px;
    font-size: 11px;
  }

  .customer-display-table th:first-child,
  .customer-display-table td:first-child{
    padding-left: 14px;
  }

  .customer-display-table th:last-child,
  .customer-display-table td:last-child{
    padding-right: 14px;
  }

  .customer-display-summary{
    padding: 20px;
  }
}



/*--------------------------POS section----------------------------------*/

.pos-header{
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background-color: var(--color_darkblue2);
  height: 60px;
  padding: 0 18px 0 14px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
  z-index: 1000;
}

.pos-header .pos-logo-side{
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.pos-header .pos-logo-side .pos-nav-title{
  margin: 0;
  color: var(--color_white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}


.pos-header .pos-logo-side .pos-table-name{
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(0, 198, 169, 0.35);
  border-radius: 999px;
  background-color: rgba(0, 198, 169, 0.12);
  color: #7debd8;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.pos-header .table-control{
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 12px;
  margin: 0;
}
  

.pos-header .table-control .search-box{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  max-width: 640px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background-color: rgba(12, 19, 31, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pos-header .table-control .search-box:focus-within{
  border-color: #00c6a9;
  background-color: rgba(12, 19, 31, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 198, 169, 0.16);
}

.pos-header .table-control .search-box input{
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 10px 12px;
  background-color: transparent;
  color: var(--color_white);
  font-size: 0.95rem;
}

.pos-header .table-control .search-box input::placeholder{
  color: rgba(223, 223, 223, 0.62);
}

.pos-header .table-control .search-box i{
  flex: 0 0 auto;
  color: #9aa9bb;
  font-size: 1.2rem;
  margin: 0 12px 0 8px;
}
 
.pos-header .nav-btn-group{
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
}

.pos-header .nav-btn{
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.07);
  color: #e8edf4;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pos-header .nav-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0, 198, 169, 0.5);
  background-color: rgba(0, 198, 169, 0.16);
  color: #7debd8;
}

.pos-header .nav-btn:focus-visible{
  outline: 2px solid #00c6a9;
  outline-offset: 2px;
}

.pos-header .nav-btn.danger{
  border-color: rgba(230, 57, 70, 0.45);
  background-color: rgba(230, 57, 70, 0.16);
  color: #ff9ba3;
}

.pos-header .nav-btn.danger:hover{
  background-color: #e63946;
  color: var(--color_white);
}

  
.pos-container{
  margin-top: 60px; /* Make space for fixed header */
  display: grid;
  grid-template-columns: 10% 65% 25%; /* 3 columns: category | POS | order */
  height: calc(100vh - 60px); /* Full height minus header */
  width: 100%;
  overflow: hidden;
  background-color: var(--color_darkblue1);
}

.pos-container .category-panel{
 display: flex;
 flex-direction: column;
 min-height: 0;
 background-color: var(--color_darkblue2);
 margin-top: 5px;
 padding: 5px;
}

.pos-container .category-panel .categories{
 display: flex;
 flex-direction: column;
 gap: 5px;
 flex: 1 1 auto;
 min-height: 0;
 overflow-y: auto;
 scrollbar-width: none; /* Firefox */
 -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.pos-container .category-panel .close-cashier-shift{
 flex: 0 0 auto;
 width: 100%;
 margin-top: 8px;
 padding: 12px 8px;
 border: 1px solid rgba(255, 255, 255, 0.12);
 border-radius: 6px;
 background-color: #e63946;
 color: #fff;
 font-size: 0.9rem;
 font-weight: 600;
 cursor: pointer;
}

.pos-container .category-panel .close-cashier-shift:hover{
 background-color: #c92f3b;
}

.category-panel .categories::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.pos-container .category-panel .categories button{
 background-color: var(--color_darkblue1);
 border: 2px solid transparent;
 padding: 20px 10px;
 align-items: center;
 width: 100%;
 cursor: pointer;
 color: var(--color_light1);
 font-size: 1rem;
 transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pos-container .category-panel .categories .active{
  background-color: #00c6a9;;
  color: var(--color_darkblue1);;
}

.pos-container .category-panel .categories button:hover{
  background-color: var(--color_darkblue2);
  border-color: #00c6a9;
}

.pos-container .category-panel .categories .active:hover {
  background-color: #00c6a9;
  color: #1e1e2f;
  border-color: #00c6a9;
}


.pos-container .pos-panel{
 margin: 5px 5px 0 5px;

}

.pos-container .pos-panel .products{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
 -ms-overflow-style: none;  /* Internet Explorer 10+ */
}


.category-panel .products::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.pos-container .pos-panel .products .product{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  border: 2px solid transparent;
  box-sizing: border-box;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-width: 180px;
  height: 100px;
  cursor: pointer;
  background-color: var(--color_darkblue2);
  color: var(--color_light1);
  transition: border-color 0.2s ease;
}

.pos-container .pos-panel .products .product:hover{
  border-color: #00c6a9;
}


.pos-container .pos-panel .products .product .item-image{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
}

.pos-container .pos-panel .products .product .item-description{
  background-color: var(--color_darkblue1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50%;
}

.pos-container .pos-panel .products .product .item-image img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}




.pos-container .pos-panel .products .product .item-price{
  font-weight: bold;
  font-size: 1.2rem;
}

.pos-container .order-panel{
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

body.tablet-mode-on .pos-container .order-items-area,
body.tablet-mode-on .pos-container .order-checkout-sidebar{
  display: contents;
}

.pos-container .order-panel .order-list{
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  background-color: var(--color_darkblue2);
  overflow-y: auto;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none; /* Firefox */
 -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.category-panel .order-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


.pos-container .order-panel .order-list .order-item{
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #cccccc4b;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.pos-container .order-panel .order-list .order-item-content {
  width: calc(100% - 20px);
  margin: 0 10px;
}


.pos-container .saved-item {
  background-color: rgba(0, 198, 169, 0.14);
  border-left: 3px solid #00c6a9;
}
.pos-container .saved-item .item-controls .delete-item {
  pointer-events: auto;
}


.pos-container .order-panel .order-list .empty-cart-msg{
  text-align: center; 
  padding: 1em; 
  color: #999;
  margin: 120px auto;
}

.pos-order-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #cccccc4b;
  background-color: var(--color_darkblue2);
  color: var(--color_light1);
}

.pos-order-date label {
  font-size: 0.9rem;
  font-weight: 600;
}

.pos-order-date input {
  min-height: 38px;
  max-width: 180px;
  border: 1px solid #cccccc4b;
  border-radius: 6px;
  background: var(--color_darkblue1);
  color: var(--color_light1);
  padding: 6px 9px;
}

.pos-order-date input:focus {
  border-color: var(--color_blue);
  outline: none;
}

.pos-order-date input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.pos-container .order-panel .order-list .order-item.saved{
  background-color: rgba(0, 128, 128, 0.26);
}


.pos-container .order-panel .order-list .item-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--color_light1);
}

.pos-container .order-panel .order-list .item-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pos-container .order-panel .order-list .item-controls .qty-btn {
  background-color: var(--color_darkblue1);
  color: white;
  border: none;
  padding: 5px 15px;
  font-size: 1.4rem;
  border-radius: 4px;
  cursor: pointer;
}

.pos-container .order-panel .order-list .item-controls .qty-btn:hover {
  background-color: #2d2d46;
}

.pos-container .order-panel .order-list .item-controls .item-qty {
  outline: none;
  border: none;
  width: 50px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 6px;
  border: 1px solid #cccccc4b;
  border-radius: 4px;
  color: var(--color_light1);
  background-color: transparent;
  cursor: pointer;
}

.pos-container .order-panel .order-list .item-controls .item-subtotal {
  margin-left: auto;
  font-weight: bold;
  color: #00c6a9;
}

.pos-container .order-panel .order-list .item-controls .delete-item {
  background-color: var(--color_darkblue1);
  color: #e74c3c;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 1.4rem;
  border-radius: 4px;
}

.pos-container .order-panel .order-list .item-controls .delete-item:hover {
  color: #c0392b;
}


.pos-container .order-panel .order-summary{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
  column-gap: 10px;
  font-size: 16px;
  color: var(--color_light1);
}

.pos-container .order-panel .order-summary > div {
  display: flex;
  flex: 0 0 calc(50% - 5px);
  min-width: 0;
  gap: 5px;
  align-items: center;
  margin: 7px 0;
}

.pos-container .order-panel .order-summary > [hidden] {
  display: none;
}

.pos-container .order-panel .order-summary .pos-summary-total {
  font-weight: bold;
}

  .pos-container .order-panel .order-action{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--color_darkblue2);
    gap: 5px;
    padding: 10px;
  }

  
   .pos-container .order-panel .order-action button {
      padding: 18px 0;
      border: none;
      color: white;
      border-radius: 4px;
      font-size: 14px;
      font-weight: 400;
      cursor: pointer;
    }

    .order-action .save { background: teal }
    .order-action .checkout { background: #0077b6; }
    .order-action .void { background: #e63946; }
    .order-action .draft { background: orange; }
    .order-action .newSale { background: purple; }
    .order-action .preview { background: #00c6a9; }

    /* Toggle button visible on all screens */
.toggle-order-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background-color: #007f79;
  color: white;
  border: 2px solid #ffffff;
  border-radius: 50%;
  width: 66px;
  height: 66px;
  padding: 5px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}



/* =========================================================
   MEMBERSHIP PAGE
========================================================= */

.membership-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.membership-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================================
   CARD
========================================================= */

.membership-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}


.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-heading h4 {
    margin: 0 0 5px;
    font-size: 17px;
    color: #222;
}

.card-heading p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

.card-heading > i {
    font-size: 23px;
    color: #666;
}


/* =========================================================
   MEMBER SEARCH
========================================================= */

.member-search {
    position: relative;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
}

.search-input-wrapper input {
    width: 100%;
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px 0 43px;
    font-size: 14px;
    outline: none;
    transition: .2s;
}

.search-input-wrapper input:focus {
    border-color: #777;
}


/* Search results */

.member-results {
    position: absolute;
    z-index: 20;
    top: 52px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    max-height: 260px;
    overflow-y: auto;
    display: none;
}

.member-results.show {
    display: block;
}

.member-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: .15s;
}

.member-result:hover {
    background: #f7f7f7;
}

.member-result-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.member-result-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.member-result-info strong {
    font-size: 14px;
}

.member-result-info span {
    font-size: 12px;
    color: #888;
}


/* Selected member */

.selected-member {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 9px;
}

.selected-member.show {
    display: flex;
}

.selected-member-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.selected-member-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.selected-member-info strong {
    font-size: 14px;
}

.selected-member-info span {
    font-size: 12px;
    color: #888;
}

.remove-member {
    border: 0;
    background: transparent;
    font-size: 21px;
    cursor: pointer;
    color: #999;
}


/* =========================================================
   PLANS
========================================================= */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.plan-card {
    border: 1px solid #ddd;
    border-radius: 11px;
    padding: 17px;
    cursor: pointer;
    transition: .2s;
    position: relative;
}

.plan-card:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.plan-card.selected {
    border: 2px solid #222;
    background: #fafafa;
}

.plan-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.plan-select-icon {
    width: 23px;
    height: 23px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}

.plan-card.selected .plan-select-icon {
    background: #222;
    border-color: #222;
    color: #fff;
}

.plan-card h4 {
    margin: 15px 0 8px;
    font-size: 15px;
}

.plan-price {
    font-size: 21px;
    font-weight: 700;
}

.plan-price span {
    font-size: 12px;
    font-weight: 500;
}

.plan-duration {
    margin-top: 7px;
    color: #777;
    font-size: 12px;
}

.plan-duration i {
    margin-right: 3px;
}

.plan-description {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

.select-plan-btn {
    width: 100%;
    margin-top: 15px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 7px;
    cursor: pointer;
}

.plan-card.selected .select-plan-btn {
    background: #222;
    color: #fff;
    border-color: #222;
}


/* =========================================================
   DATES
========================================================= */

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-icon input {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px 0 40px;
    outline: none;
}

.input-icon input:read-only {
    background: #f7f7f7;
}


/* =========================================================
   PAYMENTS
========================================================= */

.payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.payment-method {
    height: 70px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #555;
}

.payment-method i {
    font-size: 21px;
}

.payment-method span {
    font-size: 11px;
}

.payment-method.active {
    border-color: #222;
    background: #222;
    color: #fff;
}


.payment-entry {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.payment-entry input {
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
}

.add-payment-btn {
    height: 44px;
    padding: 0 17px;
    border: none;
    border-radius: 8px;
    background: var(--color_darkblue1);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.add-payment-btn:hover{
   background: var(--color_darkblue2);
}


/* Payment table */

.payment-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th,
.payment-table td {
    padding: 11px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.payment-table th {
    color: #888;
    font-weight: 500;
}

.remove-payment {
    border: none;
    background: transparent;
    color: #d33;
    cursor: pointer;
    font-size: 19px;
}


/* =========================================================
   STICKY SUMMARY
========================================================= */

.membership-right {
    position: sticky;
    top: 20px;
    align-self: start;
}

.membership-summary {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.summary-header h4 {
    margin: 0 0 4px;
    font-size: 17px;
}

.summary-header span {
    color: #888;
    font-size: 12px;
}

.summary-header > i {
    font-size: 24px;
}


.summary-member {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.summary-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.summary-member div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.summary-member strong {
    font-size: 14px;
}

.summary-member span {
    font-size: 12px;
    color: #888;
}


.summary-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}


.summary-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-label {
    color: #888;
    font-size: 12px;
}

.summary-section strong {
    font-size: 15px;
}


.summary-dates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.summary-dates div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-dates span {
    font-size: 11px;
    color: #888;
}

.summary-dates strong {
    font-size: 13px;
}

.summary-dates > i {
    color: #aaa;
}


.summary-amounts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.summary-amounts > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-amounts span {
    color: #777;
    font-size: 13px;
}

.summary-amounts strong {
    font-size: 14px;
}


.discount-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.discount-input span {
    padding-left: 8px;
    font-size: 11px;
}

.discount-input input {
    width: 80px;
    border: none;
    height: 32px;
    text-align: right;
    padding-right: 8px;
    outline: none;
}


.summary-total {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 3px;
}

.summary-total span {
    color: #222;
    font-weight: 600;
}

.summary-total strong {
    font-size: 20px;
}


.payment-summary {
    margin-top: 20px;
    padding: 13px;
    background: #f7f7f7;
    border-radius: 8px;
}

.payment-summary div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.payment-summary span {
    font-size: 12px;
    color: #777;
}

.payment-summary strong {
    font-size: 13px;
}


.save-membership-btn {
    width: 100%;
    height: 48px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    background: var(--color_darkblue1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.save-membership-btn:hover {
    background: var(--color_darkblue2);
}

.save-membership-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}


.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.expired {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.suspended {
    background-color: #fef3c7;
    color: #92400e;
}
.status-badge.pending {
   background-color: #fff3cd;
    color: #856404;
}

.status-badge.assigned {
    background-color: #cfe2ff;
    color: #084298;
}

.status-badge.in-transit {
    background-color: #cff4fc;
    color: #055160;
}

.status-badge.delivered {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-badge.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.draft {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.received {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-badge.paid {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.partial {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.unpaid {
    background-color: #fee2e2;
    color: #991b1b;
}

.order-payment-action:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.order-payment-modal {
    padding: 18px;
    overflow-y: auto;
}

.order-payment-modal-content {
    width: min(680px, 100%);
    max-width: 680px;
    max-height: min(88vh, 780px);
    overflow-y: auto;
    padding: 0;
    border-radius: 14px;
    text-align: left;
}

.order-payment-modal-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    border-bottom: 1px solid #eaecf0;
}

.order-payment-modal-heading > div { flex: 1; min-width: 0; }
.order-payment-modal-heading h3 { margin: 0 0 4px; color: #172b4d; font-size: 1.15rem; }
.order-payment-modal-heading p { margin: 0; color: #667085; font-size: .9rem; }

.order-payment-modal-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #eaf2ff;
    color: #2457a7;
    font-size: 23px;
}

.order-payment-modal-icon.payment { background: #e8f7ef; color: #18794e; }
.order-payment-modal-close { border: 0; background: transparent; color: #667085; font-size: 24px; cursor: pointer; }
.payment-history-content { padding: 20px 26px; overflow-x: auto; }
.payment-history-table { width: 100%; border-collapse: collapse; min-width: 490px; }
.payment-history-table th, .payment-history-table td { padding: 12px 10px; border-bottom: 1px solid #eaecf0; text-align: left; }
.payment-history-table th { color: #475467; background: #f8fafc; font-size: .8rem; }
.payment-history-table td { color: #344054; font-size: .9rem; }
.make-payment-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 20px 26px 4px; padding: 15px 17px; border: 1px solid #e4e7ec; border-radius: 10px; background: #f8fafc; }
.make-payment-summary span { color: #667085; font-size: .86rem; }
.make-payment-summary strong { color: #344054; text-align: right; }
.make-payment-summary strong:last-child { color: #18794e; }
.make-purchase-payment-form { display: grid; gap: 17px; padding: 20px 26px 0; }
.order-payment-form-group { display: grid; gap: 7px; }
.order-payment-form-group label { color: #344054; font-size: .9rem; font-weight: 600; }
.order-payment-form-group select, .order-payment-input-wrap input { box-sizing: border-box; width: 100%; min-height: 44px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; padding: 10px 12px; color: #344054; font: inherit; }
.order-payment-form-group select:focus, .order-payment-input-wrap input:focus { outline: 3px solid rgba(36, 87, 167, .14); border-color: #3973c6; }
.order-payment-input-wrap { position: relative; }
.order-payment-input-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #667085; font-size: 19px; }
.order-payment-input-wrap input { padding-left: 40px; }
.order-payment-form-error { color: #b42318; font-size: .88rem; }
.order-payment-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px 22px; border-top: 1px solid #eaecf0; }

@media (max-width: 560px) {
    .order-payment-modal { padding: 10px; }
    .order-payment-modal-content { max-height: 92vh; }
    .order-payment-modal-heading { padding: 17px; gap: 11px; }
    .order-payment-modal-icon { flex-basis: 38px; width: 38px; height: 38px; }
    .payment-history-content { padding: 14px 17px; }
    .make-payment-summary { margin: 16px 17px 0; }
    .make-purchase-payment-form { padding: 17px 17px 0; }
    .order-payment-modal-footer { padding: 15px 17px 18px; }
    .order-payment-modal-footer .btn { flex: 1; }
}


.member-info-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 180px;
}

.member-info-box .label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.member-info-box strong {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.member-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.plan-card {
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.plan-card:hover {
    border-color: #9ca3af;
}

.plan-card.active {
    border-color: var(--color_darkblue1);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10);
}

.plan-card .select-plan-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: all 0.2s ease;
}

.plan-card.active .select-plan-btn {
    background: var(--color_darkblue1);
    border-color: var(--color_darkblue1);
    color: #fff;
}

.plan-select-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;

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

    background: #f3f4f6;
    color: #9ca3af;

    border: 1px solid #d1d5db;
}

.plan-select-icon i {
    font-size: 20px;
    display: none;
}

.plan-card.active .plan-select-icon {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.plan-card.active .plan-select-icon i {
    display: block;
}

.plan-select-icon i {
    font-size: 20px;
    display: flex;
}


/* Selected plan */

.plan-card.active .plan-select-icon {
    background: var(--color_darkblue1);
    color: #fff;
    border-color: var(--color_darkblue1);
}


/* ============================================================
   MAKE PAYMENT PAGE
============================================================ */

.content-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.card-header p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
}


/* ============================================================
   SEARCH
============================================================ */

.invoice-search-form {
    max-width: 650px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group .form-control {
    flex: 1;
}


/* ============================================================
   FORM CONTROLS
============================================================ */

.form-control {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}


/* ============================================================
   ALERT
============================================================ */

.alert {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}


/* ============================================================
   INVOICE MODULE
============================================================ */

.invoice-module {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 20px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}


/* ============================================================
   INVOICE INFORMATION
============================================================ */

.invoice-info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.info-box {
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.info-label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
}

.info-box strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}


/* ============================================================
   INVOICE SUMMARY
============================================================ */

.invoice-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.summary-box {
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.summary-box span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 7px;
}

.summary-box strong {
    display: block;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.summary-box.balance {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.summary-box.balance strong {
    color: #2563eb;
}


/* ============================================================
   CREDIT INFORMATION
============================================================ */

.text-danger {
    color: #dc2626 !important;
}


/* ============================================================
   PAYMENT METHODS
============================================================ */

.payment-method-section {
    margin-bottom: 25px;
}

.payment-method-section h4 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.payment-method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.payment-method-card {
    position: relative;
    min-height: 105px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    box-sizing: border-box;
}

.payment-method-card:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.payment-method-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}

.payment-method-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    margin-bottom: 10px;
}

.payment-method-card.active .payment-method-icon {
    background: #2563eb;
    color: #fff;
}

.payment-method-icon i {
    font-size: 21px;
}

.payment-method-name {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.payment-method-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    opacity: 0;
    transform: scale(.7);
    transition: all .2s ease;
}

.payment-method-card.active .payment-method-check {
    opacity: 1;
    transform: scale(1);
}

.payment-method-check i {
    font-size: 14px;
}


/* ============================================================
   PAYMENT TABLE
============================================================ */

.payment-entry-section {
    margin-top: 10px;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th,
.payment-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.payment-table th {
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.payment-table td {
    color: #4b5563;
    font-size: 14px;
}

.payment-table tfoot td {
    background: #f9fafb;
    color: #374151;
}

.payment-table tfoot tr:last-child td {
    border-bottom: 0;
}

.payment-amount {
    max-width: 220px;
}


/* ============================================================
   PAYMENT ACTIONS
============================================================ */

.payment-actions {
    margin-top: 15px;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}


/* ============================================================
   BUTTONS
============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    box-sizing: border-box;
}

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-secondary {
    background: #fff;
    border-color: #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-danger:hover {
    background: #fecaca;
}

.btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}


/* ============================================================
   TOAST
============================================================ */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 280px;
    max-width: 400px;
    padding: 13px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .10);
    font-size: 14px;
    animation: toastSlideIn .25s ease;
}

.toast.success {
    border-left: 4px solid #16a34a;
}

.toast.error {
    border-left: 4px solid #dc2626;
}

.toast.info {
    border-left: 4px solid #2563eb;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {

    .invoice-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 800px) {

    .invoice-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .invoice-summary {
        grid-template-columns: 1fr;
    }

    .payment-method-cards {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .content-card {
        padding: 15px;
    }

    .invoice-info-grid {
        grid-template-columns: 1fr;
    }

    .payment-method-cards {
        grid-template-columns: 1fr;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-input-group .btn {
        width: 100%;
    }

    .form-footer {
        justify-content: stretch;
    }

    .form-footer .btn {
        width: 100%;
    }

    #toast-container {
        left: 15px;
        right: 15px;
        top: 15px;
    }

    .toast {
        min-width: auto;
        width: 100%;
        box-sizing: border-box;
    }

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .membership-page {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 850px) {

    .membership-page {
        grid-template-columns: 1fr;
    }

    .membership-right {
        position: static;
    }

    .membership-summary {
        position: sticky;
        bottom: 10px;
        z-index: 10;
    }

}


@media (max-width: 600px) {

    .membership-card {
        padding: 16px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .date-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-entry {
        grid-template-columns: 1fr;
    }

    .add-payment-btn {
        width: 100%;
    }

    .membership-summary {
        padding: 17px;
    }

    .main-title h3 {
        font-size: 20px;
    }

}


@media (max-width: 600px) {
    .member-info-grid {
        grid-template-columns: 1fr;
    }
}


/*--------------------booking section-----------------------*/
.booking-payment{
  display: flex;
  gap: 20px;
}

.booking-payment .booking-payment-left{
  flex: 1;
  box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 10px 20px;
}


.booking-payment .booking-payment-right{
  flex: 1;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
}

.booking-payment .booking-payment-right h2{
  color: #333;
  font-size: 1.8rem;
  padding: 10px 0;
}

.booking-payment .booking-payment-right .booking-summary{
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #ccc;
  color: #333;
  font-size: 1rem;
}



/*-----------table action menu---------------*/
.action-menu {
    position: relative;
    display: inline-block;
}

.action-menu-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-menu-btn:hover {
    background: #f1f1f1;
}

.action-menu-btn:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.action-menu-btn:disabled:hover {
    background: transparent;
}

.action-dropdown {
    position: fixed;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 99999;
    max-height: calc(100vh - 10px);
    overflow-y: auto;

    display: none;
}

.action-dropdown.show {
    display: block;
}

.action-dropdown a,
.action-dropdown button {
    width: 100%;
    border: none;
    background: transparent;
    text-decoration: none;
    color: #333;
    padding: 10px 12px;
    border-radius: 6px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.action-dropdown a:hover,
.action-dropdown button:hover {
    background: #f5f5f5;
}

.action-dropdown button.delivery-action-assign {
    color: #fff;
    background-color: #2563eb !important;
}

.action-dropdown button.delivery-action-assign:hover {
    background-color: #1d4ed8 !important;
}

.action-dropdown button.delivery-action-transit {
    color: #422006;
    background-color: #fbbf24 !important;
}

.action-dropdown button.delivery-action-transit:hover {
    background-color: #f59e0b !important;
}

.action-dropdown button.delivery-action-delivered {
    color: #fff;
    background-color: #16a34a !important;
}

.action-dropdown button.delivery-action-delivered:hover {
    background-color: #15803d !important;
}

.action-dropdown button.purchase-action-receive {
    color: #fff;
    background-color: #16a34a !important;
}

.action-dropdown button.purchase-action-receive:hover {
    background-color: #15803d !important;
}

.purchase-form-container {
    max-width: 1180px;
    margin: 0 auto;
}

.purchase-form-section {
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.purchase-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.purchase-section-heading h4 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 1.05rem;
}

.purchase-section-heading p {
    margin: 0;
    color: #667085;
    font-size: .9rem;
}

.purchase-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.purchase-lines-wrapper {
    overflow-x: auto;
}

.purchase-lines-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.purchase-lines-table th,
.purchase-lines-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    vertical-align: middle;
}

.purchase-lines-table th {
    color: #475467;
    font-size: .82rem;
    white-space: nowrap;
}

.purchase-lines-table input,
.purchase-lines-table select {
    width: 100%;
    min-width: 90px;
    padding: 9px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
}

.purchase-lines-table td:first-child select {
    min-width: 210px;
}

.purchase-line-total {
    min-width: 90px;
    font-weight: 600;
    white-space: nowrap;
}

.purchase-remove-line {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: #fff1f2;
    color: #be123c;
    cursor: pointer;
}

.purchase-total-summary {
    width: min(100%, 360px);
    margin: 20px 0 0 auto;
    display: grid;
    gap: 10px;
}

.purchase-total-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #475467;
}

.purchase-total-summary strong {
    color: #172033;
    font-variant-numeric: tabular-nums;
}

.purchase-total-summary .purchase-grand-total {
    border-top: 1px solid #e4e7ec;
    padding-top: 12px;
    color: #172033;
    font-size: 1.05rem;
    font-weight: 700;
}

.purchase-notes-section {
    padding-bottom: 8px;
}

.purchase-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 4px 0 18px;
}

.purchase-form-actions .btn,
.purchase-add-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
}

@media (max-width: 700px) {
    .purchase-form-section {
        padding: 16px 12px;
    }

    .purchase-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .purchase-details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .purchase-form-actions {
        flex-wrap: wrap;
    }
}

/* Keep the supplier purchase list inside the page width at every breakpoint. */
.purchase-list-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 15px;
    box-sizing: border-box;
}

.purchase-list-layout > .main-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
    color: #333;
}

.purchase-list-layout > .main-title a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 10px;
    border: 1px solid teal;
    border-radius: 10px;
    color: teal;
    font-weight: 600;
    white-space: nowrap;
}

.purchase-list-layout > .main-title a:hover {
    background: teal;
    color: #fff;
}

.order-purchases-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.order-purchases-table-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.order-purchases-page .table-control,
.order-purchases-page .filter-box,
.order-purchases-page .table-wrapper {
    min-width: 0;
    max-width: 100%;
}

.order-purchases-page .table-control {
    flex-wrap: wrap;
}

.order-purchases-page .table-wrapper {
    display: block;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.order-purchases-page #dataTable {
    min-width: 1080px;
}

@media (max-width: 760px) {
    .order-purchases-page {
        padding: 10px;
    }

    .order-purchases-page .main-title {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .order-purchases-page .main-title h3 {
        font-size: 1.25rem;
    }

    .order-purchases-page .table-container {
        padding: 10px;
    }

    .purchase-list-layout > .main-title {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .order-purchases-page .table-control,
    .order-purchases-page .filter-box,
    .order-purchases-page .filter-box form,
    .order-purchases-page .filter-box .date-picker {
        width: 100%;
    }

    .order-purchases-page .filter-box .date-picker {
        justify-content: flex-start;
        gap: 8px;
    }

    .order-purchases-page .table-wrapper {
        overflow: visible;
    }

    .order-purchases-page #dataTable {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .order-purchases-page #dataTable thead {
        display: none;
    }

    .order-purchases-page #dataTable tbody {
        display: grid;
        gap: 12px;
        width: 100%;
    }

    .order-purchases-page #dataTable tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        border: 1px solid #e4e7ec;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(16, 24, 40, .05);
    }

    .order-purchases-page #dataTable tbody td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        padding: 10px;
        border: 0;
        border-bottom: 1px solid #f0f1f3;
        overflow-wrap: anywhere;
        font-size: 13px;
    }

    .order-purchases-page #dataTable tbody td::before {
        content: attr(data-label);
        color: #667085;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .order-purchases-page #dataTable tbody td.no-data {
        grid-column: 1 / -1;
        align-items: center;
    }

    .order-purchases-page #dataTable tbody td.no-data::before {
        content: none;
    }

    .order-purchases-page #dataTable tbody td[data-label="Actions"] {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .order-purchases-page .table-action-control {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .order-purchases-page #dataTable tbody tr {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-purchases-page #dataTable tbody td[data-label="Actions"] {
        grid-column: 1;
    }
}

.action-dropdown .danger {
    color: #dc3545;
}

.action-dropdown .danger:hover {
    background: #fff0f0;
}

.action-dropdown i {
    font-size: 18px;
}


/*--------------toast style section ------------------------*/
#toast-container {
  position: fixed;
  top: 1.5em;
  right: 1.5em;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.toast {
  background-color: #333;
  color: #fff;
  padding: 0.75em 1.2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  animation: fadeInOut 4s forwards;
  font-size: 0.95em;
  max-width: 250px;
}

/* Type styles */
.toast.success { background-color: #28a745; } /* green */
.toast.error   { background-color: #dc3545; } /* red */
.toast.info    { background-color: #007bff; } /* blue */


@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(20px); }
}



/* Close button inside the order panel */
.close-order-panel {
  width: 100%;
  background-color: #e74c3c;
  color: white;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

    .close-order-panel, .toggle-order-panel{
      display: none;
    }

  .cart-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #e74c3c;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  min-width: 22px;
  min-height: 22px;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}









/*-------------------------------pos modals ---------------------------------*/
.pos-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.pos-modal {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.2s ease-in-out;
}

.pos-modal-header {
  background: var(--color_darkblue2);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pos-modal-body {
  padding: 1rem;
}

.pos-modal.pos-orders-search {
  width: min(1080px, 94vw);
  max-width: 1080px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.pos-modal.pos-orders-search .pos-modal-body {
  min-height: 0;
  overflow: auto;
}

.pos-orders-filter-fields {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(145px, 1fr)) auto auto;
  align-items: end;
  gap: 12px;
}

.pos-orders-filter-fields .modal-form-group input { margin-bottom: 0; }
.pos-orders-filter-fields .modal-btn { min-height: 41px; cursor: pointer; }
.pos-orders-filter-fields .pos-orders-clear { background: #526477; }
.pos-orders-results-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid #e3e8ef; border-radius: 8px; }
.pos-orders-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.pos-orders-table th, .pos-orders-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #edf0f4; }
.pos-orders-table th { background: #f5f7fa; color: #344054; font-size: 0.85rem; white-space: nowrap; }
.pos-orders-table td { color: #344054; font-size: 0.9rem; }
.pos-orders-table tbody tr:last-child td { border-bottom: 0; }
.pos-orders-table tbody tr:hover { background: #fafbfd; }
.pos-orders-table .pos-order-reprint { padding: 8px 11px; font-size: 0.88rem; white-space: nowrap; cursor: pointer; }
.pos-orders-state { padding: 24px !important; text-align: center !important; color: #667085 !important; }
.pos-orders-error { min-height: 20px; margin: 8px 0 0; color: #c0392b; font-size: 0.9rem; }
.pos-orders-count { margin: 9px 0 0; color: #667085; font-size: 0.82rem; }

@media (max-width: 760px) {
  .pos-orders-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-orders-filter-fields .pos-orders-query { grid-column: 1 / -1; }
  .pos-orders-filter-fields .modal-btn { width: 100%; }
}

.modal-form-group {
    display: flex;
    flex-direction: column;
  }

  .modal-form-group label {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color_darkgray)
  }

  .modal-form-group input,
  .modal-form-group select,
  .modal-form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 5px;
  }

  .modal-form-group input[type="checkbox"] {
    margin-right: 6px;
    margin-bottom: 5px;
  }
  .modal-form-group label input[type="checkbox"] {
    margin-right: 4px;
  }

  

.pos-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 1rem;
  border-top: 1px solid #eee;
  text-align: right;
}

.modal-btn{
  padding: 10px;
  background-color: teal;
  color: var(--color_light1);
  border: none;
  outline: none;
  font-size: 1rem;
  transition: 1s ease all;
}

.modal-btn:hover{
  background-color: rgba(0, 128, 128, 0.788);
}

.modal-btn.danger{
  background-color: #e63946;
}

.modal-btn.danger:hover{
  background-color: #c92f3b;
}

.modal-btn:disabled{
  cursor: not-allowed;
  opacity: 0.6;
}

.shift-close-error{
  color: #c0392b;
  margin-bottom: 0;
}

.shift-close-progress{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 110px;
  color: var(--color_darkblue2);
  font-weight: 600;
}

.shift-close-spinner{
  width: 26px;
  height: 26px;
  border: 3px solid rgba(0, 128, 128, 0.2);
  border-top-color: teal;
  border-radius: 50%;
  animation: shift-close-spin 0.8s linear infinite;
}

@keyframes shift-close-spin{
  to { transform: rotate(360deg); }
}

.shift-close-summary{
  color: var(--color_darkblue2);
  max-height: 65vh;
  overflow-y: auto;
}

.shift-close-summary > p{
  margin: 0 0 10px;
}

.shift-close-summary .shift-close-period,
.shift-close-summary .shift-close-note{
  color: #64748b;
  font-size: 0.9rem;
}

.shift-close-metrics{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.shift-close-metrics > div{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: #f1f5f9;
}

.shift-close-metrics span{
  color: #64748b;
  font-size: 0.82rem;
}

.shift-close-metrics strong{
  color: #1e293b;
}

.shift-close-metrics .shift-closing-total{
  grid-column: 1 / -1;
  background: rgba(0, 128, 128, 0.12);
}

.shift-close-metrics .shift-closing-total strong{
  color: #006b66;
  font-size: 1.15rem;
}

.shift-close-summary h4{
  margin: 14px 0 8px;
  color: #1e293b;
}

.shift-payment-row{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.shift-close-summary .shift-close-note{
  margin-top: 14px;
}

.modal-btn.close:hover{
  background-color: #ce3f30;
}

.modal-btn.prev{
  background-color: rgb(219, 143, 0);
}

.modal-btn.prev:hover{
  background-color: rgb(236, 154, 1);
}

.modal-btn.close{
  background-color: #e74c3c;
}

.customer-picker {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.customer-picker > label {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-picker-select-wrap {
  position: relative;
}

.customer-picker-select-wrap > i {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #667085;
  font-size: 1.2rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.customer-picker-select {
  width: 100%;
  min-height: 50px;
  appearance: none;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0 42px 0 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.customer-picker-select[role="combobox"] {
  appearance: none;
}

.customer-picker-select:hover {
  border-color: #98a2b3;
}

.customer-picker-select:focus {
  border-color: #168b80;
  box-shadow: 0 0 0 3px rgba(22, 139, 128, 0.15);
  outline: none;
}

.customer-picker-hint {
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.4;
}

.customer-picker-selection {
  display: flex;
  min-height: 56px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #f9fafb;
  color: #667085;
  font-size: 0.82rem;
  padding: 9px 12px;
}

.customer-picker-selection.has-customer {
  border-color: #b7e4dc;
  background: #effaf7;
  color: #475467;
}

.customer-picker-selection strong {
  color: #166b61;
  font-size: 0.93rem;
}

.customer-add-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #168b80;
  border-radius: 10px;
  background: #f3fbf9;
  color: #11776d;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.customer-add-button:hover {
  border-color: #0f6f66;
  background: #e4f6f2;
}

.customer-add-button i {
  font-size: 1.2rem;
}

.customer-suggestions {
  display: flex;
  max-height: 220px;
  flex-direction: column;
  overflow-y: auto;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.customer-suggestions[hidden] {
  display: none;
}

.customer-suggestion {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 0;
  border-bottom: 1px solid #f2f4f7;
  background: #fff;
  color: #475467;
  cursor: pointer;
  padding: 11px 13px;
  text-align: left;
  transition: background-color 0.15s ease;
}

.customer-suggestion:last-child {
  border-bottom: 0;
}

.customer-suggestion:hover,
.customer-suggestion:focus-visible {
  background: #effaf7;
  outline: none;
}

.customer-suggestion strong {
  color: #101828;
  font-size: 0.9rem;
}

.customer-suggestion span,
.customer-suggestion-empty {
  color: #667085;
  font-size: 0.8rem;
}

.customer-suggestion-empty {
  padding: 12px;
}

.pos-modal-customer-form {
  width: min(92vw, 760px);
}

.pos-modal-customer-form .pos-modal-body {
  max-height: 68vh;
  overflow-y: auto;
}

.pos-customer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.customer-form-intro {
  color: #667085;
  font-size: 0.85rem;
}

.customer-form-intro span,
.customer-form-grid label > span {
  color: #d92d20;
}

.customer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.customer-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 650;
}

.customer-form-grid input,
.customer-form-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 0.9rem;
  padding: 9px 11px;
}

.customer-form-grid input:focus,
.customer-form-grid select:focus {
  border-color: #168b80;
  box-shadow: 0 0 0 3px rgba(22, 139, 128, 0.14);
  outline: none;
}

.customer-form-error {
  min-height: 1.2em;
  color: #b42318;
  font-size: 0.84rem;
}

@media (max-width: 560px) {
  .customer-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pos-modal-footer {
    flex-wrap: wrap;
  }
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}


.qty-dialer {
  text-align: center;
}

.qty-display {
  font-size: 2em;
  margin-bottom: 0.5em;
  padding: 0.5em;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
}

.dialer-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5em;
  margin-top: 1em;
}

.dial-btn {
  font-size: 1.5em;
  padding: 0.8em;
  border-radius: 10px;
  border: none;
  background-color: #e0e0e0;
  transition: 0.2s;
}

.dial-btn:hover {
  background-color: #ccc;
}

.pos-checkout-modal {
  position: relative;
  width: min(1180px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
}

.pos-checkout-modal .pos-modal-body {
  min-height: 0;
  overflow-y: auto;
}

.pos-checkout-modal .pos-modal-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.checkout-step-heading > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f2ef;
  color: #176b58;
  font-weight: 700;
}

.checkout-step-heading h4,
.checkout-step-heading p {
  margin: 0;
}

.checkout-step-heading p,
.checkout-empty-state,
.checkout-deferred-note {
  margin-top: 4px;
  color: #64706e;
  font-size: 13px;
}

.checkout-field-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.checkout-route-select,
#checkoutTenderInput {
  width: 100%;
  min-height: 54px;
  padding: 12px;
  border: 1px solid #cbd5d2;
  border-radius: 7px;
  background: #fff;
  color: #24312e;
  font: inherit;
}

.checkout-route-summary,
.checkout-total-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 7px;
  background: #f0f5f3;
  color: #263b35;
}

.checkout-total-strip strong {
  font-size: 22px;
}

.checkout-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  align-items: start;
  gap: 20px;
}

.checkout-payment-layout.without-keypad {
  grid-template-columns: minmax(0, 1fr);
}

.checkout-payment-details {
  min-width: 0;
}

.checkout-keypad-panel {
  position: sticky;
  top: 0;
  padding: 12px;
  border: 1px solid #e0e7e4;
  border-radius: 7px;
  background: #f8faf9;
}

.checkout-method-cards {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.checkout-payment-method {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: #273631;
  text-align: left;
  font: inherit;
}

.checkout-payment-method .payment-method-icon {
  flex: 0 0 38px;
  margin: 0;
}

.checkout-payment-method .payment-method-name {
  flex: 1;
  overflow-wrap: anywhere;
}

.checkout-tender-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 1fr);
  gap: 16px;
  margin-top: 18px;
}

#checkoutTenderInput {
  min-height: 64px;
  font-size: 25px;
  font-weight: 700;
  text-align: right;
}

.checkout-balance-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e0e7e4;
  border-radius: 7px;
}

.checkout-balance-panel > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.checkout-balance-panel strong {
  color: #1f5c4c;
  font-variant-numeric: tabular-nums;
}

.checkout-dialer {
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 8px;
}

.checkout-dialer .dial-btn {
  min-height: 58px;
  border: 1px solid #d6dfdc;
  border-radius: 7px;
  background: #f4f7f6;
  color: #22312d;
  cursor: pointer;
  touch-action: manipulation;
}

.checkout-dialer .dial-btn:hover {
  background: #e6efeb;
}

.checkout-dialer .checkout-clear-key {
  font-size: 16px;
}

.checkout-dialer .checkout-add-payment {
  grid-column: span 2;
  background: #176b58;
  color: #fff;
  font-size: 16px;
}

.checkout-dialer .checkout-add-payment:hover {
  background: #105543;
}

.checkout-dialer button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.checkout-payment-table {
  margin-top: 14px;
}

.checkout-payment-table td:last-child,
.checkout-payment-table th:last-child {
  width: 70px;
  text-align: center;
}

.checkout-payment-delete {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b42318;
  cursor: pointer;
  font-size: 20px;
}

.checkout-payment-delete:hover {
  background: #fff0ed;
}

.checkout-no-payments {
  text-align: center !important;
  color: #64706e !important;
}

.checkout-review-list {
  display: grid;
  gap: 0;
  margin: 16px 0;
  border-top: 1px solid #e3e8e6;
}

.checkout-review-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e3e8e6;
}

.checkout-deferred-note {
  padding: 10px 12px;
  background: #fff8e6;
  border-radius: 6px;
}

.checkout-print-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #d8e2de;
  border-radius: 7px;
  background: #f8faf9;
  cursor: pointer;
}

.checkout-print-toggle input {
  width: 22px;
  height: 22px;
  accent-color: #176b58;
}

.checkout-print-toggle span {
  display: grid;
  gap: 3px;
}

.checkout-print-toggle small {
  color: #64706e;
}

.checkout-print-toggle.unavailable {
  cursor: not-allowed;
  opacity: .65;
}

.checkout-saving-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, .94);
}

.checkout-saving-card {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(26, 52, 44, .12);
  text-align: center;
}

.checkout-saving-card > span:last-of-type {
  color: #64706e;
  font-size: 13px;
}

.checkout-saving-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #dce8e3;
  border-top-color: #176b58;
  border-radius: 50%;
  animation: checkout-spin .8s linear infinite;
}

.checkout-progress-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7efeb;
}

.checkout-progress-track span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: #176b58;
  animation: checkout-progress 1.2s ease-in-out infinite alternate;
}

@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}

@keyframes checkout-progress {
  from { transform: translateX(-15%); }
  to { transform: translateX(180%); }
}

@media (max-width: 600px) {
  .pos-checkout-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .checkout-payment-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-keypad-panel {
    position: static;
  }

  .checkout-tender-grid {
    grid-template-columns: 1fr;
  }

  .checkout-method-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-checkout-modal .pos-modal-footer {
    align-items: stretch;
  }

  .pos-checkout-modal .pos-modal-footer > div {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
}

.changeDue{
  font-size: 1.2rem;
}


.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


/*---------------footer section----------------------------*/
.footer {
    position: relative;
    font-size: 12px;
    width: calc(100% - 260px);
    left: 260px;
    padding: 1rem 0;
    text-align: center;
    background-color: var(--color_white); /* light background, you can change */
    position: relative; /* you can set fixed or absolute if needed */
    bottom: 0;
}

.footer-link {
    color: #333; /* dark text color */
    font-weight: 600;
    
}





























/******************* RESPONSIVE / BREAKPOINTS *******/
@media (max-width: 1080px){

  .customer-form-layout {
    grid-template-columns: 1fr;
  }

  .customer-photo-panel {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

    /*-------cards----------*/
    .main-container .card-widgets{
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /*-------charts responsive----------*/
    .charts{
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
    }


    /*---------------basic form reponsive---------*/
    .form-grid {
        grid-template-columns: 1fr 1fr;
      }

      /*-------------table control responsive --------------------*/
    .table-control .filter-box .search-box{
    min-width: 100%
    }
    
    .table-control .filter-box .report-dropdown{
        min-width: 100%
        }
        
    
    .table-control .filter-box .date-picker{
        width: 100%;
      }
    
      .table-control .filter-box .date-picker button{
        width: 100%;
        margin-bottom: 5px;
      }

      .table-control .filter-box .date-picker .clear-filter-btn{
        width: 100%;
        margin-bottom: 5px;
      }
    
      .table-control .filter-box .filter-group input, .report-dropdown select{
        min-width: 100%
      }
    
    .table-control .filter-box .date-picker .filter-group{
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
      }

        .ingredient-table-heading{
          align-items: flex-start;
          flex-direction: column;
          gap: 5px;
        }

        .ingredient-add-action{
          align-items: flex-start;
        }

        .ingredient-table-section .table-wrapper{
          width: 100%;
          overflow-x: auto;
        }

 

      .single-page{
        grid-template-columns: 1fr;
      }

      /*--------------POS Section ------------------------*/
      .pos-header .pos-logo-side .pos-table-name{
        font-size: 1rem;
      }

      .pos-container{
        grid-template-columns: 20% 80%;
      }

      .pos-container .order-panel{
        display: none;
        position: fixed;
        top: 60px; /* Adjust based on your header height */
        right: 0;
        height: calc(100vh - 60px);
        width: 400px;
        background-color: #2c2c3e;
        z-index: 1000;
        padding: 15px;
        overflow-y: auto;
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease;
      }

      /* Show the panel */
        .order-panel.show {
          transform: translateX(0);
          display: block;
        }


      .toggle-order-panel{
        display: block;
      }



}



/******************* for small devices *******/
@media screen and (max-width: 768px){
  .form-grid.ingredient-entry-grid{
    grid-template-columns: 1fr;
  }

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

  .ingredient-table th,
  .ingredient-table td{
    padding: 10px 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .ingredient-table th:first-child,
  .ingredient-table td:first-child{
    width: 38px;
  }

  .ingredient-table th:last-child,
  .ingredient-table td:last-child{
    width: 54px;
  }

    .sidebar {
        width: 78px;
    }

    .home {
        left: 78px;
        width: calc(100% - 78px);
    }

    .home .header .toggle-sidebar{
        display: none;
    }

    .home .header{
        justify-content: flex-end;
    }

    .sidebar .logo-name,
    .sidebar .title .name,
    .sidebar .title .bx-chevron-down
    {
        display: none;
    }



.sidebar .sidebar-list{
    overflow: visible;
}

.sidebar .sidebar-list li{
    position: relative;
}


.sidebar .sidebar-list li .sub-menu{
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    height: max-content;
    width: max-content;
    display: none;
    transition: all .5s ease;
    pointer-events: none;
}


.sidebar.close .sidebar-list li:hover .sub-menu{
    display: flex;
    flex-direction: column;
    top: 0;
    pointer-events: initial;
    
}



.sidebar .submenu-title{
    display: block;
    font-size: 18px;
    color: var(--color_light1);
}


 /*-------cards----------*/
 .main-container .card-widgets{
    grid-template-columns: 1fr;
    gap: 10px;
}

/*-------charts responsive----------*/
.charts{
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}


/*---------------basic form reponsive---------*/
.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }



  .about-content{
    grid-template-columns: 1fr;
  }

  .floor-table-container .floor-tables {
  display: flex;
  align-items: stretch;
}

  .footer{
    left: 78px;
    width: calc(100% - 78px);
  }



  /*--------------POS Section ------------------------*/
      .pos-header {
        display: flex;
        flex-direction: column;
        height: 150px;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
      
      }

      .pos-header .table-control .search-box{
        display: flex;
        width: min(100%, 500px);
        min-width: 0;
      }

      .pos-header .table-control{
        flex: 0 1 auto;
        width: 100%;
        padding: 0;
      }

      .pos-header .nav-btn-group{
        gap: 6px;
      }

      .pos-header .nav-btn{
        width: 36px;
        height: 36px;
        padding: 4px;
        font-size: 18px;
      }


      .pos-container{
        display: flex;
        flex-direction: column;
      }

     
      .pos-container .category-panel .categories{
        margin-top: 90px;
        display: grid;
        flex: 0 0 auto;
        height: 180px;
        grid-template-columns: repeat(2, 1fr);
      }

      .pos-container .category-panel{
        flex: 0 0 auto;
      }

      .pos-container .order-panel {
        width: 100%;
        top: 0;
      }
}

.custom-tooltip{
  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--color_dark1);
  color: var(--color_white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.custom-tooltip.visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Non-tablet POS uses search results instead of the browsable product grid. */
body.tablet-mode-off .pos-header{
  overflow: visible;
}

body.tablet-mode-off .pos-header .table-control .search-box{
  position: relative;
}

body.tablet-mode-off .pos-search-results{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  border: 1px solid rgba(0, 198, 169, 0.35);
  border-radius: 8px;
  background: var(--color_darkblue2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

body.tablet-mode-off .pos-search-results[hidden]{
  display: none;
}

body.tablet-mode-off .pos-search-result{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--color_light1);
  text-align: left;
  cursor: pointer;
}

body.tablet-mode-off .pos-search-result:hover,
body.tablet-mode-off .pos-search-result:focus-visible{
  outline: none;
  background: rgba(0, 198, 169, 0.14);
}

body.tablet-mode-off .pos-search-result-name{
  min-width: 0;
  overflow-wrap: anywhere;
}

body.tablet-mode-off .pos-search-result-price{
  flex: 0 0 auto;
  color: #7debd8;
  font-weight: 700;
}

body.tablet-mode-off .pos-search-empty{
  padding: 14px;
  color: #b8c2cf;
}

body.tablet-mode-off .pos-container{
  grid-template-columns: minmax(0, 1fr);
}

body.tablet-mode-off .pos-container .category-panel,
body.tablet-mode-off .pos-container .pos-panel,
body.tablet-mode-off .toggle-order-panel,
body.tablet-mode-off .close-order-panel{
  display: none;
}

body.tablet-mode-off .pos-container .order-panel{
  position: relative;
  top: auto;
  right: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 30%);
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  width: auto;
  height: 100%;
  padding: 0;
  overflow: hidden;
  transform: none;
  box-shadow: none;
}

body.tablet-mode-off .pos-container .order-items-area{
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--color_darkblue2);
}

body.tablet-mode-off .pos-container .order-items-area .order-list{
  min-height: 0;
}

body.tablet-mode-off .pos-container .order-checkout-sidebar{
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: stretch;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color_darkblue2);
}

body.tablet-mode-off .pos-container .order-checkout-sidebar .order-summary{
  display: block;
  padding: 14px;
}

body.tablet-mode-off .pos-container .order-checkout-sidebar .order-summary > div{
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 10px 0;
}

body.tablet-mode-off .pos-container .order-checkout-sidebar .order-summary .pos-summary-total{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.15rem;
}

body.tablet-mode-off .pos-container .order-checkout-sidebar .order-action{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
}

body.tablet-mode-off .pos-container .order-checkout-sidebar .order-action .checkout{
  grid-column: 1 / -1;
}

body.tablet-mode-off .pos-container .order-checkout-sidebar .order-action .save{
  grid-column: 1 / -1;
}

body.tablet-mode-off .pos-container .order-panel.show{
  display: grid;
  transform: none;
}

body.tablet-mode-off .pos-header .close-cashier-shift{
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(230, 57, 70, 0.45);
  border-radius: 10px;
  background: rgba(230, 57, 70, 0.16);
  color: #ff9ba3;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

body.tablet-mode-off .pos-header .close-cashier-shift:hover{
  background: #e63946;
  color: var(--color_white);
}

body.tablet-mode-off .pos-header .close-cashier-shift[hidden]{
  display: none;
}

@media screen and (max-width: 768px){
  body.tablet-mode-off .pos-header{
    height: 150px;
  }

  body.tablet-mode-off .pos-header .nav-btn-group{
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body.tablet-mode-off .pos-container{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: calc(100vh - 150px);
    margin-top: 150px;
  }

  body.tablet-mode-off .pos-container .order-panel{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
  }

  body.tablet-mode-off .pos-container .order-panel.show{
    display: flex;
  }

  body.tablet-mode-off .pos-container .order-items-area{
    flex: 1 0 auto;
    min-height: 0;
  }

  body.tablet-mode-off .pos-container .order-items-area .order-list{
    min-height: 180px;
    max-height: 45vh;
  }

  body.tablet-mode-off .pos-container .order-checkout-sidebar{
    flex: 0 0 auto;
    overflow-y: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }
}

/* Sales returns */
.return-page {
  --return-ink: #17212b;
  --return-muted: #718096;
  --return-line: #e6ebf0;
  --return-blue: #3157d5;
  color: var(--return-ink);
}

.return-page [hidden] { display: none !important; }
.return-page .return-intro { color: var(--return-muted); margin: -8px 0 22px; }
.return-page .return-search,
.return-page .return-panel {
  background: #fff;
  border: 1px solid var(--return-line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(24, 39, 75, .06);
}
.return-page .return-search { display: flex; align-items: end; gap: 12px; padding: 20px; margin-bottom: 18px; }
.return-page .return-search label,
.return-page .reason-field label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 7px; }
.return-page .return-search .search-field { flex: 1; max-width: 520px; }
.return-page input[type="text"],
.return-page input[type="number"],
.return-page textarea,
.return-page select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8e0e8;
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--return-ink);
  background: #fff;
  outline: none;
}
.return-page input:focus,
.return-page textarea:focus,
.return-page select:focus { border-color: #7b91ed; box-shadow: 0 0 0 3px rgba(49, 87, 213, .12); }
.return-page .return-search button,
.return-page .save-return {
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--return-blue);
  font-weight: 650;
  padding: 12px 18px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.return-page .return-search button:hover,
.return-page .save-return:hover { background: #2446b8; transform: translateY(-1px); }
.return-page .return-search button:disabled,
.return-page .save-return:disabled { opacity: .65; cursor: wait; transform: none; }
.return-page .return-alert { border-radius: 10px; padding: 12px 15px; margin: 0 0 16px; }
.return-page .return-alert.error { color: #9d2525; background: #fff0f0; border: 1px solid #ffd5d5; }
.return-page .return-alert.success { color: #176b45; background: #eaf8f0; border: 1px solid #c8ebd7; }
.return-page .order-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0 15px; }
.return-page .order-heading h4 { margin: 0 0 4px; font-size: 1.18rem; }
.return-page .order-heading p { margin: 0; color: var(--return-muted); }
.return-page .order-status { background: #edf2ff; color: #3157d5; padding: 7px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.return-page .return-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr); gap: 18px; align-items: start; }
.return-page .return-panel { overflow: hidden; }
.return-page .panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--return-line); }
.return-page .panel-title h4 { margin: 0; font-size: 1rem; }
.return-page .panel-title span { color: var(--return-muted); font-size: .82rem; }
.return-page .return-table-wrap { overflow-x: auto; }
.return-page table { width: 100%; border-collapse: collapse; min-width: 620px; }
.return-page th,
.return-page td { text-align: left; padding: 13px 14px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.return-page th { color: #778395; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; background: #fafbfd; }
.return-page td small { display: block; color: var(--return-muted); margin-top: 3px; }
.return-page .qty-input { width: 96px !important; padding: 9px !important; }
.return-page .unavailable { color: #8490a0; font-size: .88rem; }
.return-page .return-summary { padding: 12px 20px 4px; }
.return-page .summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; color: #657184; }
.return-page .summary-row strong { color: var(--return-ink); text-align: right; }
.return-page .summary-row.total { border-top: 1px solid var(--return-line); margin-top: 5px; padding-top: 15px; font-size: 1.05rem; color: var(--return-ink); font-weight: 700; }
.return-page .summary-foot { color: var(--return-muted); font-size: .82rem; line-height: 1.5; margin: 14px 0 10px; }
.return-page .reason-field { padding: 4px 20px 18px; }
.return-page .reason-field select { min-height: 44px; cursor: pointer; }
.return-page .save-return { width: calc(100% - 40px); margin: 0 20px 20px; }
.return-page .return-empty { text-align: center; padding: 42px 20px; color: var(--return-muted); }
.return-page .return-empty > i { font-size: 2rem; color: var(--return-blue); }
.return-page .return-empty h4 { color: var(--return-ink); margin: 9px 0 5px; }
.return-page .return-empty p { margin: 0; }
.return-page .return-no-items { text-align: center; padding: 30px; color: var(--return-muted); }

@media (max-width: 900px) {
  .return-page .return-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .return-page .return-search { align-items: stretch; flex-direction: column; }
  .return-page .return-search button { width: 100%; }
  .return-page .order-heading { align-items: start; flex-direction: column; }
  .return-page .panel-title { align-items: start; flex-direction: column; }
}

/* Order purchases use card rows at every width to avoid a wide, scrolling table. */
.order-purchases-page,
.order-purchases-page * {
  box-sizing: border-box;
  min-width: 0;
}

.order-purchases-page {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.home:has(.order-purchases-page) {
  box-sizing: border-box;
  min-width: 0;
  width: calc(100vw - 260px);
  left: 260px;
  overflow-x: clip;
}

.home:has(.purchase-entry-page) {
  box-sizing: border-box;
  min-width: 0;
  width: calc(100vw - 260px);
  left: 260px;
  overflow-x: clip;
}

.sidebar.close ~ .home:has(.order-purchases-page) {
  width: calc(100vw - 78px);
  left: 78px;
}

.sidebar.close ~ .home:has(.purchase-entry-page) {
  width: calc(100vw - 78px);
  left: 78px;
}

body:has(.order-purchases-page),
body:has(.purchase-entry-page) {
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .home:has(.order-purchases-page),
  .home:has(.purchase-entry-page) {
    width: calc(100vw - 78px);
    left: 78px;
  }
}

.order-purchases-page .main-title,
.order-purchases-page .table-container,
.order-purchases-page .table-control,
.order-purchases-page .filter-box,
.order-purchases-page .table-wrapper {
  width: 100%;
  max-width: 100%;
}

.order-purchases-page .table-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.order-purchases-page .filter-box form,
.order-purchases-page .filter-box .date-picker {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.order-purchases-page .table-wrapper {
  overflow: visible;
}

.order-purchases-page #dataTable {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: separate;
}

.order-purchases-page #dataTable thead {
  display: none;
}

.order-purchases-page #dataTable tbody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.order-purchases-page #dataTable tbody tr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 14px;
  overflow: visible;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(25, 42, 70, .06);
}

.order-purchases-page #dataTable tbody td {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 5px;
  overflow-wrap: anywhere;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  text-align: right;
}

.order-purchases-page #dataTable tbody td::before {
  content: attr(data-label);
  flex: 0 0 auto;
  color: #687587;
  font-size: .78rem;
  font-weight: 600;
  text-align: left;
}

.order-purchases-page #dataTable tbody td[data-label="Supplier"],
.order-purchases-page #dataTable tbody td[data-label="Purchase ID"],
.order-purchases-page #dataTable tbody td[data-label="Actions"] {
  grid-column: 1 / -1;
}

.order-purchases-page #dataTable tbody td[data-label="Actions"] {
  align-items: center;
  justify-content: flex-end;
}

.order-purchases-page #dataTable tbody td.no-data {
  display: block;
  grid-column: 1 / -1;
  padding: 22px 12px;
  text-align: center !important;
}

.order-purchases-page #dataTable tbody td.no-data::before {
  content: none;
}

.order-purchases-page .pagination {
  max-width: 100%;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .home:has(.order-purchases-page) {
    width: calc(100vw - 78px);
    left: 78px;
  }

  .home:has(.purchase-entry-page) {
    width: calc(100vw - 78px);
    left: 78px;
  }

  .home:has(.order-purchases-page) .header {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .home:has(.order-purchases-page) .header-icons {
    min-width: 0;
    gap: 2px;
    font-size: 19px;
  }

  .home:has(.order-purchases-page) .icon-dropdown {
    margin: 0 2px;
  }

  .home:has(.purchase-entry-page) .header {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .home:has(.purchase-entry-page) .header-icons {
    min-width: 0;
    gap: 2px;
    font-size: 19px;
  }

  .home:has(.purchase-entry-page) .icon-dropdown {
    margin: 0 2px;
  }

  .order-purchases-page {
    padding: 12px;
  }

  .order-purchases-page .main-title {
    align-items: flex-start;
    gap: 10px;
  }

  .order-purchases-page .table-control,
  .order-purchases-page .filter-box form,
  .order-purchases-page .filter-box .date-picker {
    align-items: stretch;
    flex-direction: column;
  }

  .order-purchases-page .search-box,
  .order-purchases-page .filter-box,
  .order-purchases-page .filter-box .date-picker,
  .order-purchases-page .filter-group,
  .order-purchases-page .filter-box button,
  .order-purchases-page .clear-filter-btn {
    width: 100%;
  }

  .order-purchases-page #dataTable tbody {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-purchases-page #dataTable tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-purchases-page #dataTable tbody td[data-label="Supplier"],
  .order-purchases-page #dataTable tbody td[data-label="Purchase ID"],
  .order-purchases-page #dataTable tbody td[data-label="Actions"] {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .order-purchases-page .main-title h3 {
    font-size: 1.05rem;
  }

  .order-purchases-page #dataTable tbody tr {
    padding: 10px;
  }

  .order-purchases-page #dataTable tbody td {
    gap: 6px;
    font-size: .88rem;
  }
}

/* Supplier purchase entry: constrain the line-item table and its form parents. */
.purchase-entry-page,
.purchase-entry-page * {
  box-sizing: border-box;
  min-width: 0;
}

.purchase-entry-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.purchase-entry-page > .main-title,
.purchase-entry-page > .message,
.purchase-entry-page > .purchase-form-container {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

.purchase-entry-page .main-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.purchase-entry-page .main-title h3,
.purchase-entry-page .main-title a {
  overflow-wrap: anywhere;
}

.purchase-entry-page .purchase-form-container {
  padding: 22px;
}

.purchase-entry-page #purchase-form,
.purchase-entry-page .purchase-form-section,
.purchase-entry-page .purchase-details-grid,
.purchase-entry-page .purchase-lines-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.purchase-entry-page .purchase-lines-wrapper {
  overflow-x: hidden;
}

.purchase-entry-page .purchase-lines-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.purchase-entry-page .purchase-lines-table th,
.purchase-entry-page .purchase-lines-table td {
  min-width: 0;
  overflow-wrap: anywhere;
}

.purchase-entry-page .purchase-lines-table input,
.purchase-entry-page .purchase-lines-table select,
.purchase-entry-page .purchase-lines-table td:first-child select {
  width: 100%;
  min-width: 0;
}

.purchase-entry-page .purchase-total-summary {
  width: min(100%, 360px);
  max-width: 100%;
}

@media (max-width: 900px) {
  .purchase-entry-page .purchase-form-container {
    padding: 16px;
  }

  .purchase-entry-page .purchase-lines-wrapper {
    overflow: visible;
  }

  .purchase-entry-page .purchase-lines-table,
  .purchase-entry-page .purchase-lines-table tbody {
    display: block;
  }

  .purchase-entry-page .purchase-lines-table {
    border: 0;
  }

  .purchase-entry-page .purchase-lines-table thead {
    display: none;
  }

  .purchase-entry-page .purchase-lines-table tr.purchase-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e4e9ef;
    border-radius: 10px;
    background: #fff;
  }

  .purchase-entry-page .purchase-lines-table tr.purchase-line td {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 0;
    border: 0;
  }

  .purchase-entry-page .purchase-lines-table tr.purchase-line td::before {
    content: attr(data-label);
    color: #667085;
    font-size: .76rem;
    font-weight: 600;
  }

  .purchase-entry-page .purchase-lines-table tr.purchase-line td:first-child,
  .purchase-entry-page .purchase-lines-table tr.purchase-line td[data-label="Remove"] {
    grid-column: 1 / -1;
  }

  .purchase-entry-page .purchase-lines-table tr.purchase-line td[data-label="Remove"] {
    align-items: flex-end;
  }

  .purchase-entry-page .purchase-lines-table .purchase-line-total {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .purchase-entry-page {
    padding: 12px;
  }

  .purchase-entry-page .purchase-form-container {
    padding: 12px;
  }

  .purchase-entry-page .purchase-form-section {
    padding: 14px 10px;
  }

  .purchase-entry-page .purchase-section-heading {
    align-items: stretch;
  }

  .purchase-entry-page .purchase-add-line {
    width: 100%;
  }

  .purchase-entry-page .purchase-form-actions {
    justify-content: stretch;
  }

  .purchase-entry-page .purchase-form-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 380px) {
  .purchase-entry-page .purchase-lines-table tr.purchase-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .purchase-entry-page .purchase-lines-table tr.purchase-line td:first-child,
  .purchase-entry-page .purchase-lines-table tr.purchase-line td[data-label="Remove"] {
    grid-column: auto;
  }
}

/* Keep the purchases listing consistent with the other management tables. */
.order-purchases-page .order-purchases-table-container {
  overflow: visible;
}

.order-purchases-page .table-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.order-purchases-page #dataTable {
  display: table;
  width: 100%;
  min-width: 1080px !important;
  max-width: none;
  table-layout: auto;
  border-collapse: collapse;
}

.order-purchases-page #dataTable thead {
  display: table-header-group;
}

.order-purchases-page #dataTable tbody {
  display: table-row-group;
  width: auto;
}

.order-purchases-page #dataTable tbody tr {
  display: table-row;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.order-purchases-page #dataTable tbody td {
  display: table-cell;
  width: auto;
  min-height: 0;
  padding: 10px;
  border: 1px solid #ddd;
  overflow-wrap: normal;
  text-align: left;
  vertical-align: middle;
}

.order-purchases-page #dataTable tbody td::before {
  content: none;
}

.order-purchases-page #dataTable tbody td.no-data {
  display: table-cell;
  text-align: center !important;
}

.order-purchases-page #dataTable tbody td[data-label="Actions"] {
  border-bottom: 1px solid #ddd;
}

.dashboard-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr);
  gap: 20px;
  align-items: stretch;
  margin: 20px 0;
}

.dashboard-orders-panel,
.recent-customers-panel {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 39, 75, .08);
}

.dashboard-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-panel-heading h3 {
  margin: 0;
  color: #263247;
  font-size: 18px;
  font-weight: 700;
}

.dashboard-panel-heading p {
  margin: 4px 0 0;
  color: #8490a3;
  font-size: 12px;
}

.dashboard-panel-heading > a {
  flex: 0 0 auto;
  color: #246dec;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-panel-heading > a:hover {
  text-decoration: underline;
}

.recent-customers-list {
  display: flex;
  flex-direction: column;
}

.recent-customer-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 4px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #edf0f5;
  transition: background-color .18s ease, transform .18s ease;
}

.recent-customer-item:last-child {
  border-bottom: 0;
}

.recent-customer-item:hover {
  background: #f8faff;
  transform: translateX(2px);
}

.recent-customer-avatar {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #4d83ee, #7256c9);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.recent-customer-item:nth-child(3n + 2) .recent-customer-avatar {
  background: linear-gradient(145deg, #29a889, #167c82);
}

.recent-customer-item:nth-child(3n) .recent-customer-avatar {
  background: linear-gradient(145deg, #ee9c53, #d45f71);
}

.recent-customer-details {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.recent-customer-details strong {
  overflow: hidden;
  color: #29364a;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-customer-details > span {
  overflow: hidden;
  color: #8792a4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-customer-date {
  flex: 0 0 auto;
  color: #7d899b;
  font-size: 11px;
  white-space: nowrap;
}

.recent-customers-empty {
  margin: 0;
  padding: 28px 8px;
  color: #8792a4;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1000px) {
  .dashboard-activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-orders-panel,
  .recent-customers-panel {
    padding: 14px;
  }

  .recent-customer-date {
    max-width: 76px;
    white-space: normal;
    text-align: right;
  }
}
/* Employee profile */
.employee-profile-card {
  max-width: 1120px;
  margin: 0 auto 32px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(29, 48, 78, 0.08);
}

.employee-profile-card,
.product-profile-card,
.customer-profile-card {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.employee-profile-hero {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 32px;
  color: #fff;
  background: linear-gradient(120deg, #172b4d 0%, #244b78 58%, #347b9e 100%);
}

.employee-profile-photo {
  width: 136px;
  height: 136px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(6, 20, 43, 0.25);
}

.employee-profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-eyebrow {
  color: #b8dff2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.employee-profile-identity h1 {
  margin: 7px 0 4px;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.employee-role-line {
  margin: 0;
  color: #d8e7f1;
  font-size: 15px;
}

.employee-role-line span {
  margin: 0 5px;
  color: #9bc7dc;
}

.employee-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
}

.employee-profile-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e4eff6;
  font-size: 13px;
}

.employee-profile-meta > span:first-child i {
  font-size: 17px;
}

.employee-status {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.employee-status.is-active {
  color: #d8fbe5;
  background: rgba(33, 151, 88, 0.3);
}

.employee-status.is-inactive {
  color: #ffe4e4;
  background: rgba(180, 58, 58, 0.3);
}

.employee-profile-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 145px;
}

.employee-profile-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.employee-profile-actions button {
  font-family: inherit;
  cursor: pointer;
}

.employee-profile-actions a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.13);
}

.employee-profile-actions button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.13);
}

.employee-profile-actions .employee-edit-link {
  border-color: #fff;
  color: #183351;
  background: #fff;
}

.employee-profile-actions .employee-edit-link:hover {
  background: #eaf5fb;
}

.product-profile-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 34px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(120deg, #172b4d 0%, #244b78 58%, #347b9e 100%);
}

.product-profile-card .product-image-slider {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: #f4f7fa;
  box-shadow: 0 12px 28px rgba(6, 20, 43, 0.2);
}

.product-profile-card .product-image-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 180ms ease;
}

.product-profile-card .product-image-slider img.active {
  z-index: 1;
  opacity: 1;
}

.product-profile-card .product-image-slider .slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 50%;
  z-index: 2;
  width: 100%;
  transform: translateY(-50%);
  padding: 0 10px;
  pointer-events: none;
}

.product-profile-card .product-image-slider .slider-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 43, 77, 0.78);
  pointer-events: auto;
}

.product-profile-card .product-image-slider .slider-controls i {
  font-size: 22px;
}

.product-profile-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 8px 0;
}

.product-profile-labels {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-profile-identity h1 {
  margin: 14px 0 5px;
  color: #fff;
  font-size: clamp(27px, 3.5vw, 40px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.product-category-line {
  margin: 0;
  color: #d5e6f2;
  font-size: 16px;
}

.product-barcode {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #e4eff6;
  font-size: 13px;
}

.product-barcode i {
  font-size: 18px;
}

.product-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #eef6fa;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.product-stock-pill > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #61d394;
}

.product-stock-pill.low-stock > span { background: #ffd166; }
.product-stock-pill.out-of-stock > span { background: #ff8585; }

.product-edit-link {
  margin-top: 24px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #183351;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.product-edit-link:hover { background: #eaf5fb; }

.product-profile-content .product-description-section {
  grid-column: 1 / -1;
}

.product-description-text {
  margin: 0;
  color: #536477;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.customer-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  color: #fff;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.employee-profile-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.employee-detail-section {
  min-width: 0;
  padding: 21px;
  border: 1px solid #e8edf3;
  border-radius: 15px;
  background: #fff;
}

.employee-payroll-section {
  grid-column: 1 / -1;
}

.employee-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.employee-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  color: #28618a;
  background: #eaf4fb;
}

.employee-section-icon.employment {
  color: #6956a6;
  background: #f0edfb;
}

.employee-section-icon.payroll {
  color: #21845d;
  background: #e9f7ef;
}

.employee-section-icon i {
  font-size: 21px;
}

.employee-section-heading h2 {
  margin: 0;
  color: #23364e;
  font-size: 16px;
}

.employee-section-heading p {
  margin: 3px 0 0;
  color: #8290a2;
  font-size: 12px;
}

.employee-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.employee-detail {
  min-width: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid #eef1f5;
}

.employee-detail span,
.employee-detail strong,
.employee-detail small {
  display: block;
  overflow-wrap: anywhere;
}

.employee-detail span {
  margin-bottom: 5px;
  color: #8390a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employee-detail strong {
  color: #293b52;
  font-size: 14px;
  font-weight: 650;
}

.employee-detail small {
  margin-top: 3px;
  color: #6f7e90;
  font-size: 12px;
}

@media (max-width: 820px) {
  .employee-profile-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 20px;
    padding: 25px;
  }

  .employee-profile-photo {
    width: 112px;
    height: 112px;
    border-radius: 20px;
  }

  .employee-profile-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }

  .product-profile-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .product-profile-card .product-image-slider {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .employee-profile-card {
    border-radius: 14px;
  }

  .employee-profile-hero {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 16px;
  }

  .employee-profile-photo {
    width: 76px;
    height: 76px;
    border-width: 3px;
    border-radius: 16px;
  }

  .employee-profile-identity h1 {
    font-size: 22px;
  }

  .employee-role-line {
    font-size: 13px;
  }

  .employee-profile-actions {
    justify-content: stretch;
  }

  .employee-profile-actions a {
    flex: 1;
  }

  .employee-profile-actions button {
    flex: 1;
  }

  .product-profile-hero {
    gap: 20px;
    padding: 18px 16px;
  }

  .product-profile-card .product-image-slider {
    min-height: 235px;
  }

  .employee-profile-content {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 14px;
  }

  .employee-payroll-section {
    grid-column: auto;
  }

  .employee-detail-section {
    padding: 16px;
  }

  .employee-detail-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
}
/* Payroll registry and payslip */
.payroll-editor-page,
.payroll-list-page,
.payroll-slip-page {
  --payroll-ink: #17243b;
  --payroll-muted: #748197;
  --payroll-line: #e5eaf1;
  --payroll-primary: #2356d8;
  --payroll-soft: #f5f7fb;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.payroll-editor-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 24px;
  padding: 30px 34px;
  color: #fff;
  background: linear-gradient(120deg, #16294a 0%, #2356d8 100%);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(31, 69, 150, .18);
}

.payroll-editor-hero h1 {
  margin: 7px 0 6px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.7px;
}

.payroll-editor-hero p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.payroll-eyebrow {
  display: inline-block;
  color: #81a9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.payroll-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.payroll-form {
  display: grid;
  gap: 20px;
}

.payroll-card,
.payroll-list-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--payroll-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(24, 42, 75, .045);
}

.payroll-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.payroll-section-number {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--payroll-primary);
  background: #edf2ff;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
}

.payroll-section-heading h2 {
  margin: 0 0 4px;
  color: var(--payroll-ink);
  font-size: 18px;
}

.payroll-section-heading p {
  margin: 0;
  color: var(--payroll-muted);
  font-size: 13px;
}

.payroll-period-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(160px, .7fr));
  gap: 16px;
  align-items: start;
}

.payroll-field {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.payroll-field label {
  color: #36445b;
  font-size: 12px;
  font-weight: 750;
}

.payroll-field label span {
  color: #dd4965;
}

.payroll-field input,
.payroll-field select,
.payroll-line-name,
.payroll-line-type,
.payroll-line-amount {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  color: var(--payroll-ink);
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  outline: none;
  font: inherit;
}

.payroll-field input:focus,
.payroll-field select:focus,
.payroll-line-name:focus,
.payroll-line-type:focus,
.payroll-line-amount:focus {
  border-color: #7093ec;
  box-shadow: 0 0 0 3px rgba(35, 86, 216, .1);
}

.payroll-field small {
  color: var(--payroll-muted);
  font-size: 11px;
}

.payroll-search-input {
  position: relative;
}

.payroll-search-input > i {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #8a96a9;
  transform: translateY(-50%);
}

.payroll-search-input input {
  padding-left: 38px;
}

.payroll-employee-results {
  position: absolute;
  z-index: 20;
  top: calc(100% - 25px);
  right: 0;
  left: 0;
  max-height: 270px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--payroll-line);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(21, 39, 72, .16);
}

.payroll-employee-option {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 12px 14px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  cursor: pointer;
}

.payroll-employee-option:hover,
.payroll-employee-option:focus {
  background: #f3f6ff;
}

.payroll-employee-option strong {
  color: var(--payroll-ink);
  font-size: 13px;
}

.payroll-employee-option span,
.payroll-no-results {
  color: var(--payroll-muted);
  font-size: 11px;
}

.payroll-no-results {
  margin: 0;
  padding: 14px;
}

.payroll-employee-profile {
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(120deg, #f8faff, #f4f7fc);
  border: 1px solid #e6ecf6;
  border-radius: 15px;
}

.payroll-profile-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.payroll-profile-avatar {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4777e6, #263eb1);
  border-radius: 16px;
  font-weight: 800;
}

.payroll-profile-heading h3 {
  margin: 4px 0;
  color: var(--payroll-ink);
  font-size: 16px;
}

.payroll-profile-heading p {
  margin: 0;
  color: var(--payroll-muted);
  font-size: 12px;
}

.payroll-profile-heading .payroll-eyebrow {
  color: var(--payroll-primary);
  font-size: 9px;
}

.payroll-profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.payroll-profile-facts > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 11px;
}

.payroll-profile-facts span,
.payroll-summary-card span {
  color: var(--payroll-muted);
  font-size: 11px;
}

.payroll-profile-facts strong {
  overflow-wrap: anywhere;
  color: var(--payroll-ink);
  font-size: 12px;
}

.payroll-profile-facts .payroll-base-fact strong {
  color: var(--payroll-primary);
}

.payroll-item-tools {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.payroll-item-tools > .payroll-field {
  flex: 1 1 300px;
}

.payroll-tools-divider {
  padding-bottom: 13px;
  color: #9aa4b4;
  font-size: 12px;
}

.payroll-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.payroll-button:hover {
  transform: translateY(-1px);
}

.payroll-button:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
}

.payroll-button-primary {
  color: #fff;
  background: var(--payroll-primary);
  box-shadow: 0 6px 15px rgba(35, 86, 216, .18);
}

.payroll-button-primary:hover {
  background: #1948c2;
}

.payroll-button-secondary {
  color: #284b9c;
  background: #eef3ff;
  border-color: #dce6ff;
}

.payroll-button-custom {
  color: #087c68;
  background: #e9f8f4;
  border-color: #d2f0e8;
}

.payroll-button-quiet {
  color: #56647a;
  background: #fff;
  border-color: #dce3ed;
}

.payroll-custom-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(140px, .8fr) minmax(140px, .8fr) auto;
  gap: 12px;
  align-items: end;
  margin: -2px 0 18px;
  padding: 15px;
  background: #f6fbfa;
  border: 1px dashed #b6e2d7;
  border-radius: 13px;
}

.payroll-add-custom {
  min-height: 44px;
}

.payroll-items-table-wrap,
.payroll-register-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.payroll-items-table,
.payroll-register-table {
  width: 100%;
  border-collapse: collapse;
}

.payroll-items-table th,
.payroll-register-table th {
  padding: 12px;
  color: #66748a;
  background: #f7f9fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .55px;
  text-align: left;
  text-transform: uppercase;
}

.payroll-items-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #edf0f5;
}

.payroll-items-table th:first-child {
  border-radius: 9px 0 0 9px;
}

.payroll-items-table th:last-child {
  border-radius: 0 9px 9px 0;
}

.payroll-line-name,
.payroll-line-type,
.payroll-line-amount {
  height: 38px;
  font-size: 12px;
}

.payroll-line-name[readonly] {
  color: #526179;
  background: #f8f9fb;
}

.payroll-line-amount {
  max-width: 190px;
  text-align: right;
}

.payroll-line-actions {
  width: 48px;
  text-align: right;
}

.payroll-remove-item {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #cf4861;
  background: #fff2f4;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.payroll-empty-row td {
  padding: 25px 12px;
  color: #8a96a9;
  font-size: 12px;
  text-align: center;
}

.payroll-item-hint {
  margin: 12px 0 0;
  color: var(--payroll-muted);
  font-size: 11px;
}

.payroll-item-hint i {
  margin-right: 4px;
  color: var(--payroll-primary);
}

.payroll-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.payroll-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--payroll-soft);
  border: 1px solid #edf0f5;
  border-radius: 13px;
}

.payroll-summary-card strong {
  overflow-wrap: anywhere;
  color: var(--payroll-ink);
  font-size: clamp(15px, 2vw, 20px);
}

.payroll-summary-card.allowance strong {
  color: #078169;
}

.payroll-summary-card.deduction strong {
  color: #c1495e;
}

.payroll-summary-card.net {
  background: #edf3ff;
  border-color: #d8e4ff;
}

.payroll-summary-card.net strong {
  color: var(--payroll-primary);
}

.payroll-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 700px;
  margin-top: 20px;
}

.payroll-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--payroll-line);
}

.payroll-alert {
  margin-bottom: 18px;
  padding: 13px 16px;
  color: #9b2f45;
  background: #fff0f2;
  border: 1px solid #ffd8df;
  border-radius: 11px;
  font-size: 13px;
}

.payroll-list-card {
  padding: 20px;
}

.payroll-list-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(130px, .8fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

.payroll-list-filters .payroll-field input,
.payroll-list-filters .payroll-field select {
  height: 40px;
  font-size: 12px;
}

.payroll-filter-actions {
  display: flex;
  gap: 7px;
}

.payroll-filter-actions .payroll-button {
  min-height: 40px;
  padding: 0 11px;
}

.payroll-register-table {
  min-width: 930px;
}

.payroll-register-table td {
  padding: 14px 12px;
  color: #4b5a70;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
  white-space: nowrap;
}

.payroll-register-table td strong {
  color: var(--payroll-ink);
}

.payroll-register-net {
  color: var(--payroll-primary) !important;
  font-weight: 800;
}

.payroll-register-empty {
  padding: 35px !important;
  color: var(--payroll-muted) !important;
  text-align: center;
}

.payroll-status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #9b6424;
  background: #fff4dc;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .5px;
}

.payroll-status-badge.paid {
  color: #08745f;
  background: #e2f6ef;
}

.payroll-statement-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--payroll-primary);
  font-weight: 750;
  text-decoration: none;
}

.payroll-slip-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 18px;
}

.payroll-slip {
  max-width: 900px;
  min-height: 780px;
  margin: 0 auto;
  padding: 48px;
  color: #243248;
  background: #fff;
  border: 1px solid var(--payroll-line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(24, 42, 75, .08);
}

.payroll-slip-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #243b65;
}

.payroll-slip-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.payroll-slip-logo {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: contain;
}

.payroll-slip-header h1 {
  margin: 8px 0 4px;
  color: #17243b;
  font-size: 25px;
}

.payroll-slip-header p {
  margin: 0;
  color: #748197;
  font-size: 12px;
}

.payroll-slip-period {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 7px;
}

.payroll-slip-period > span:first-child,
.payroll-slip-employee span,
.payroll-slip-net span {
  color: #7d899b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.payroll-slip-period strong {
  color: #1c3155;
  font-size: 17px;
}

.payroll-slip-employee {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid #e7ebf1;
}

.payroll-slip-employee > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.payroll-slip-employee strong {
  color: #243248;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.payroll-slip-employee small,
.payroll-slip-table-wrap small {
  color: #7d899b;
  font-size: 10px;
}

.payroll-slip-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.payroll-slip-table-wrap h2 {
  margin: 0 0 10px;
  color: #243248;
  font-size: 14px;
}

.payroll-slip-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.payroll-slip-table-wrap th,
.payroll-slip-table-wrap td {
  padding: 10px 8px;
  border-bottom: 1px solid #edf0f4;
  font-size: 11px;
  text-align: left;
}

.payroll-slip-table-wrap th:last-child,
.payroll-slip-table-wrap td:last-child {
  text-align: right;
  white-space: nowrap;
}

.payroll-slip-table-wrap thead th {
  color: #778499;
  background: #f7f9fc;
  font-size: 9px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.payroll-slip-table-wrap tfoot th {
  color: #243248;
  background: #f7f9fc;
}

.payroll-slip-empty {
  color: #7d899b;
  text-align: center !important;
}

.payroll-slip-net {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding: 18px 20px;
  color: #fff;
  background: #1d3765;
  border-radius: 10px;
}

.payroll-slip-net span {
  color: rgba(255,255,255,.75);
}

.payroll-slip-net strong {
  font-size: 23px;
}

.payroll-slip-footer {
  display: grid;
  gap: 48px;
  margin-top: 60px;
  color: #78859a;
  font-size: 10px;
}

.payroll-slip-footer > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payroll-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.payroll-signatures span {
  padding-top: 10px;
  border-top: 1px solid #8792a3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .payroll-period-grid {
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(130px, .8fr));
  }

  .payroll-list-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .payroll-editor-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px;
    border-radius: 15px;
  }

  .payroll-card,
  .payroll-list-card {
    padding: 18px;
    border-radius: 14px;
  }

  .payroll-period-grid,
  .payroll-payment-grid {
    grid-template-columns: 1fr;
  }

  .payroll-item-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .payroll-item-tools > .payroll-field {
    grid-column: 1 / -1;
  }

  .payroll-tools-divider {
    display: none;
  }

  .payroll-custom-item {
    grid-template-columns: 1fr 1fr;
  }

  .payroll-custom-item .payroll-field:first-child {
    grid-column: 1 / -1;
  }

  .payroll-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-form-actions {
    flex-direction: column-reverse;
  }

  .payroll-form-actions .payroll-button {
    width: 100%;
  }

  .payroll-slip {
    min-height: 0;
    padding: 24px;
  }

  .payroll-slip-employee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-slip-breakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .payroll-profile-facts {
    grid-template-columns: 1fr;
  }

  .payroll-list-filters {
    grid-template-columns: 1fr;
  }

  .payroll-filter-actions {
    flex-wrap: wrap;
  }

  .payroll-slip-header {
    flex-direction: column;
  }

  .payroll-slip-period {
    justify-items: start;
  }

  .payroll-slip-footer > div:first-child {
    flex-direction: column;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  body > .sidebar {
    display: none !important;
  }

  body > .home:has(.payroll-slip) {
    display: block !important;
    position: static !important;
    left: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .home:has(.payroll-slip) > .header {
    display: none !important;
  }

  body * {
    visibility: hidden !important;
  }

  .payroll-slip,
  .payroll-slip * {
    visibility: visible !important;
  }

  .payroll-slip-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .payroll-slip {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: none !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 16mm !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .payroll-slip-actions,
  .payroll-screen-message {
    display: none !important;
  }

  .payroll-slip-logo {
    width: 24mm;
    height: 24mm;
    flex-basis: 24mm;
  }
}

.home:has(.payroll-editor-page),
.home:has(.payroll-list-page),
.payroll-editor-page,
.payroll-list-page {
  min-width: 0;
  box-sizing: border-box;
}

.payroll-editor-page,
.payroll-list-page {
  width: 100%;
}

.payroll-list-page .table-container,
.payroll-list-page .table-wrapper {
  min-width: 0;
  box-sizing: border-box;
}

.payroll-list-page .table-wrapper {
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.payroll-list-page .search-box {
  min-width: 0;
}

@media (max-width: 768px) {
  .home:has(.payroll-editor-page),
  .home:has(.payroll-list-page) {
    left: 78px;
    width: calc(100vw - 78px);
  }
}

@media (max-width: 650px) {
  .payroll-editor-page,
  .payroll-list-page {
    padding: 10px 10px 32px;
  }

  .payroll-editor-page > .main-title,
  .payroll-list-page > .main-title {
    gap: 10px;
    margin: 4px 0 14px;
  }

  .payroll-editor-page > .main-title h3,
  .payroll-list-page > .main-title h3 {
    min-width: 0;
    font-size: 19px;
  }

  .payroll-editor-page > .main-title a,
  .payroll-list-page > .main-title a {
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 12px;
  }

  .payroll-card {
    min-width: 0;
    padding: 14px;
  }

  .payroll-section-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 17px;
  }

  .payroll-section-number {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .payroll-section-heading h2 {
    font-size: 16px;
  }

  .payroll-section-heading p {
    font-size: 11px;
    line-height: 1.5;
  }

  .payroll-item-tools,
  .payroll-custom-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .payroll-item-tools > .payroll-field,
  .payroll-custom-item .payroll-field:first-child {
    grid-column: auto;
  }

  .payroll-item-tools > .payroll-button {
    width: 100%;
  }

  .payroll-summary-card {
    min-width: 0;
    padding: 12px;
  }

  .payroll-summary-card strong {
    font-size: clamp(13px, 4vw, 17px);
  }

  .payroll-list-page .table-container {
    padding: 10px;
  }

  .payroll-list-page .table-control,
  .payroll-list-page .filter-box,
  .payroll-list-page .date-picker {
    width: 100%;
    min-width: 0;
  }

  .payroll-list-page .date-picker {
    justify-content: stretch;
  }

  .payroll-list-page .date-picker .filter-group {
    min-width: 0;
  }

  .payroll-list-page .date-picker .filter-group input,
  .payroll-list-page .date-picker select {
    width: 100%;
    min-width: 0;
  }

  .payroll-list-page .table-wrapper {
    margin-right: -2px;
  }
}

@media (max-width: 420px) {
  .payroll-editor-page,
  .payroll-list-page {
    padding: 8px;
  }

  .payroll-card {
    padding: 12px;
    border-radius: 12px;
  }

  .payroll-employee-profile {
    padding: 12px;
  }

  .payroll-profile-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .payroll-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .payroll-list-page .date-picker {
    grid-template-columns: minmax(0, 1fr);
  }
}

.reports-table {
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.reports-table .empty-state {
  padding: 24px 12px;
  text-align: center;
  vertical-align: middle;
}

.reports-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  background: #f8fafc;
}

.reports-controls .search-box {
  width: 100%;
  min-width: 0;
}

.reports-controls .search-box input,
.reports-filter-form select,
.reports-filter-form input {
  height: 42px;
  border-color: #d7dee8;
  border-radius: 8px;
  background-color: #fff;
}

.reports-filter-box {
  width: 100%;
  grid-column: 1 / -1;
}

.reports-filter-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(155px, 1.2fr) repeat(2, minmax(125px, 0.9fr)) auto auto;
  align-items: end;
  justify-content: stretch;
  gap: 10px;
  width: 100%;
}

.reports-filter-form .filter-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.reports-filter-form .filter-group label {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.reports-filter-form select,
.reports-filter-form .filter-group input {
  width: 100%;
  min-width: 0;
}

.reports-filter-form select:focus,
.reports-filter-form .filter-group input:focus,
.reports-controls .search-box input:focus {
  border-color: #3f93f1;
  box-shadow: 0 0 0 3px rgba(63, 147, 241, 0.14);
}

.reports-filter-form .reports-apply-button,
.reports-filter-form .reports-clear-button {
  height: 42px;
  white-space: nowrap;
}

.reports-filter-form .reports-apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #2563eb;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.18);
  font-weight: 600;
}

.reports-filter-form .reports-apply-button:hover {
  background: #1d4ed8;
}

.reports-filter-form .reports-clear-button {
  padding: 0 10px;
  border-color: #d7dee8;
  border-radius: 8px;
  color: #475569;
}

.reports-export-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  gap: 8px;
  margin-left: 0;
  padding-left: 14px;
  border-left: 1px solid #e2e8f0;
}

.reports-export-actions .btn-icon {
  width: 42px;
  height: 42px;
  border-color: #d7dee8;
  border-radius: 8px;
  color: #475569;
}

.reports-export-actions .btn-icon:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .reports-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reports-controls .search-box {
    grid-column: 1;
  }

  .reports-filter-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reports-filter-form .reports-apply-button,
  .reports-filter-form .reports-clear-button {
    width: 100%;
  }

  .reports-export-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 650px) {
  .reports-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .reports-controls .search-box {
    grid-column: auto;
  }

  .reports-filter-box,
  .reports-export-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .reports-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .reports-export-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .reports-filter-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
