@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

body{    
    background-color: #d9dfdc;
    font-family: Poppins;
}
.navbar {
    background-color: #d9dfdc;
}
.navbar-brand {
    font-weight: bold;
}
.nav-link.active {
    background-color: #2fab38;
    border-radius: 5px;
    color: #fff!important;
}
.card {
    border-radius: 0.375rem;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    border: 1px solid #22222240;
}
.rating {
    font-weight: bold;
}
.rating.bad {
    color: #fff;
    background-color: #dc3545;
    padding: 8px;
    border-radius: 15px;
    font-weight:400;
    display: inline-grid;
}
.rating.good {
    color: #fff;
    background-color: #28a745;
    padding: 8px;
    border-radius: 15px;
    font-weight:400;
    display: inline-grid;
}
.rating.average {
    color: #fff;
    background-color: #e98721;
    padding: 8px;
    border-radius: 15px;
    font-weight:400;
    display: inline-grid;
}
.status-online {
    color: #28a745;
    font-size: xx-large;
}
.status-offline {
    color: #dc3545;
    font-size: xx-large;
}
.status-rating {
    display:inline!important;
    font-size: 0.8rem;
}
.employee-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-primary {
    background-color: #2fab38;
    border-color: #2fab38;
    color: #fff;
}

.btn-warning {
    background-color: #e98721!important;
    border-color: #e98721!important;
    color: #fff!important;
}

.btn-primary:hover {
    background-color: #1b9a2a!important;
    border-color: #1b9a2a!important;
    color:#fff!important;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 95%!important;
    }
}

.max-widths {
    width:100%!important;
}

.title {
    border-bottom: 1px solid #22222240;
    margin-bottom: 2rem;
    border-width: thin;
    margin-left:5px;
    margin-right:5px;
    display: flex;
    margin-right: 5px;
    align-content: center;
    align-items: center;
    padding-bottom: 30px;
}

.statistics .row {
    border-bottom: 1px solid #22222240;
    margin-bottom: 1rem;
}

.pb-stat {
    padding-bottom: 25px;
}

.statistics .row .col-3 i {
    padding: 10px;
    height: 50px;
    margin-bottom: 0px;
    display: inline-flex;
    border-radius: 12px;
    background-color: #885bed;
    width: 50px;
    color: #fff;
    font-size: 1.5rem;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.statistics .row .col-3 i.last {
    padding: 10px;
    height: 50px;
    display: inline-flex;
    border-radius: 12px;
    background-color: transparent;
    width: 50px;
    color: #000;
    font-size: 1.5rem;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.statistics .row .col-4 i {
    font-size: 1.8rem;
    
}

.statistics .row .col-4 {
    text-align: right!important;
}

.statistics .row .col-5 h5 {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 0;
}

.statistics .row .col-5 p {
    font-size:12px;
}

.statistics .row .col-9 h6 {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 0;
}

.statistics .row .col-9 p {
    font-size:12px;
}

.statistics .row .col-6 h5 {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 0;
}

.statistics .row .col-6 p {
    font-size:12px;
}

.statistics .row .col-6 {
    display: inline-grid;
    align-items: center;
    align-content: center;
}

.statistics .row .col-9 {
    display: inline-grid;
    align-items: center;
    align-content: center;
}

.statistics .row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    text-align: center;
}

.statistics .row:last-child p.sub {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 0;
}

.statistics .row:last-child p.stat {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.statistics .row:last-child .col:first-child {
    border-right: 1px solid #22222240;
}

.container.my-4 {
    padding: 50px;
    background-color: #fff;
    border-radius: 20px;
}

a.more {
    color: #2fab38;
    text-decoration: none;
    font-weight: 700;
}

.table>thead {
    background-color: #dee7ed;
    color: #535760;
}

th {
    font-weight: 500;
}

table {
    border: 1px solid #dee7ed;
}

table thead tr {
    line-height: 43px;
}

#orderInvoiceItemsBody table thead tr td {
    line-height: 20px!important;
}

table tbody tr {
    line-height: 60px;
}

.rounded-table {
    border-collapse: separate; /* Ensures border radius works */
    border-spacing: 0;        /* Removes spacing between table cells */
    width: 100%;
    border: 1px solid #ddd;   /* Adds a border to the table */
    border-radius: 0.375rem;      /* Rounds the corners */
    overflow: hidden;         /* Clips overflowing content to match the border radius */
}

.rounded-table th,
.rounded-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Adds borders to cells */
    vertical-align: middle;
}

.item-section {
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

.item-section h6 {
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.rounded-table thead tr:first-child th {
    border-top: none; /* Removes top border for headers */
}

.rounded-table tbody tr:last-child td {
    border-bottom: none; /* Removes bottom border for the last row */
}

.list-group-item:first-child, .list-group-item+.list-group-item {
    line-height: 60px;
}

h1 {
        font-size: 1.5rem!important;
    }
    
input.form-control {
    background-color: #e9e9e9!important;
    margin-right:0px!important;
    padding-right:0px!important;
}
.login-page {
    border-top: 6px solid #1b9a2a;
    display: block;
    position: absolute;
    height: 6px;
    top: 0;
    width: 100%;
}
.login-container {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #22222220;
}
.login-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.login-container input.form-control {
    font-weight: 300;
    border-radius: 2px;
    border: 3px solid #c8d2cc;
    padding: 2.5%;
}
.login-container .form-control {
    margin-bottom: 30px;
}

.login-container label {
    font-size:20px;
}

.login-container .brand {
    max-width: 300px;
    margin-bottom: 30px;
}

.login-container .btn {
    padding: 15px;
    font: 16px Poppins;
    color: #fff;
    cursor: pointer;
    text-align: center;
    background: #2fab38;
    border-radius: 5px !important;
}

.login-container .btn:hover, .login-container .btn:active, .login-container .btn:focus {
    background: #222;
    border-color:#222;
}

.btn:hover, .btn:active, .btn:focus {
    background: #222;
    border-color:#222;
}

.active>.page-link, .page-link.active {
    background: #2fab38;
    border-color: #2fab38;
}

.page-link {
    color: #2fab38; 
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #2fab38;
}

.dropdown-item {
    display: flex;
    height: 50px;
    align-items: center;
}

.dropdown-menu {
    padding:0px;
}

a {
    text-decoration: none;
}

.navbar-expand-lg {
    height: 80px;
}

.navbar-expand-lg .navbar-nav {
        flex-direction: row;
        display: flex;
        margin-left: auto !important;
        margin-right: auto;
    }

    .list-group-item+.list-group-item,.list-group-item:first-child {
    line-height: 80px!important;
}

.force-left {
    text-align: left!important;
}

.profile {
    width: 40px;
    margin-right: 5px;
}

.mb-zero {
    margin-bottom: 0px!important;
}

.catalog-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.catalog-item:hover {
    transform: scale(1.05);
}

.catalog-item img {
    height: 200px;
    object-fit: cover;
}

.catalog-item .card-body {
    text-align: center;
}

.nav-tabs {
    width: 100%!important;
    font-weight: 500!important;
}

.nav-tabs .nav-link {
    border: none;
    font-weight: bold;
    color: #333;
    padding:20px;
}

.nav-tabs .nav-link.active {
    border-bottom: 2px solid #e98721;
    color: #fff;
    background: #e98721;
}

.card-text:last-child {
    margin-bottom: 0;
    color: #222;
    background: #d0c51a;
    width: fit-content;
    padding: 10px 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

img.table-product {
    border-radius: 10px; padding: 10px; border: 1px solid #22222230; background: #fbfbfb; width:100px;
}

.rating.none {
    color: #fff;
    background-color: #2fab38;
    padding: 4px 15px;
    border-radius: 15px;
    font-weight: 400;
}

.navbar > .container {
    padding: 10px 50px;
    background: #fff;
    border-radius: 0 0 20px 20px;
}

.button-main {
    background-color: #2fab38;
    border-radius: 5px;
    color: #fff;
    padding: 10px;
    text-align:center;
    margin-right: 15px;
    width: 230px;
}

.brand {
    max-width:200px;
}

.supplier-logo {
    width: 70%;
    text-align: center;
    align-items: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.supplier-logo-holder {
    background:transparent;
}

.supplier-info span {
    font-size:.8rem;
}

.float-left {
    float: left;
    text-align: left;
}

.contact-icon {
    width:30px;
}

.supplier-picture {
    width: 100%;
    border-radius: 104px;
    max-width: 70px;
}

.no-padding {
    padding-left:0;
    padding-right:0;
}

.small-font {
    font-size:.8rem;
    top: -5px;
    position: relative;
}

.logout {
    font-size: 16px;
    font-weight: 500;
    margin-left: 20px;
    padding-left: 20px;
    height: 34px;
    color:#222;
    border-left: 1px solid grey;
    display: flex;
    align-items: center;
}

.logout>.bi::before {
    font-weight: 600 !important;
    margin-left: 10px;
    font-size:28px!important;
}

.no-margin {
    margin-bottom:0px!important;
}

.box-height {
    padding: 2rem 1rem !important;
    height: 145px;
    display: flex;
    justify-content: center;
}

.h6, h6 {
    font-size: 1.2rem;
}

.left-align {
    text-align:left!important;
}

.action-icons {
    margin-top:20px;
}

.action-icons img {
    width: 20px;
    float: left;
    position: relative;
    margin-top: -12px;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    padding: 35px;
    border-radius: 5px;
    max-height: 500px; /* Changed from height to max-height */
    width: 1160px;
    text-align: center;
    overflow-y: auto; /* Adds vertical scroll when content exceeds max-height */
    box-sizing: border-box; /* Ensures padding is included in width/height calculations */
}
.group-space {
    padding:10px!important;
}
.dropdown-list {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    left: -1px;
    top: 120px;
    text-align: left;
    width: 100.5%;
}
.dropdown-list div {
    padding: 20px;
    cursor: pointer;
}
.dropdown-list div:hover {
    background: #f0f0f0;
}

.dropdown-list img {
    width: 40px;
    float: left;
    position: relative;
    margin-top: 0;
    margin-right: 20px;
    top: -6px;
    border-radius: 50px;
}

.tag {
    display: inline-block;
    background-color: #e98721;
    color: #fff;
    padding: 5px 10px;
    margin: 5px;
    margin-left: 0;
    border-radius: 5px;
    font-size: 0.9rem;
}

.left-aligned {
    text-align:left!important;
}

.float-right {
    float: right;
}

tr:hover {
    background-color:#22222220;
}

.auto-height {
    height:auto!important;
}

.modal-title {
    display: flow-root;
    margin-bottom: 20px;
    margin-top: -20px;
    padding-bottom: 5px !important;
    border-bottom: 1px solid grey;
    margin-left: -70px;
    margin-right: -70px;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.modal-title .close {
    text-align: right;
    float: right;
    font-size: 25px;
    position: relative;
    top: -5px;
}

.full-width {
    width:100%!important;
    text-align:center;
}

.login-container .btn {
    background-color: #2fab38;
    border-color: #2fab38;
}

.supplier-left {
    text-align:left!important;
}

.rating-criteria {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.criterion {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stars {
    display: inline-block;
    font-size: 24px;
    cursor: pointer;
}

.star {
    color: #ddd;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #2fab38!important;
}

.finish-order {
    background: #fd0df6;
    color: #fff;
    border-radius: 5px;
    padding: 8px;
}

.supplier-logo-holder {
        position: relative;
        display: flex;
    }
    .edit-icon {
        position: absolute;
        bottom: 10px;
        width: 40px;
        text-align: center;
        height: 40px;
        right: 10px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border-radius: 50%;
        padding: 7px;
        cursor: pointer;
    }
    .edit-icon:hover {
        background: rgba(0, 0, 0, 0.8);
    }
    .hidden-input {
        display: none;
    }
    
    .select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 38px!important;
    padding: 3px!important;
    user-select: none;
    -webkit-user-select: none;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Makes sure the preloader stays on top */
}

.loader {
  border: 8px solid #f3f3f3; /* Light gray border */
  border-top: 8px solid #2fab38; /* Green border (the color you requested) */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1.5s linear infinite;
}

/* Keyframe for the spinning animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hide preloader once the page has loaded */
body.loaded #preloader {
  display: none;
}

/* Main content styles */
.content {
  display: none;
  padding: 20px;
}

.circled-number {
    background: #2fab38;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    width: 35px;
    border-radius: 50px;
    height: 35px;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
    margin-right: 15px;
}

.specific-supplier-name {
    font-size: 22px;
    position: relative;
    top: 5px;
}

/* Enhanced autocomplete styling */
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1060 !important; /* Above modals */
}

.ui-autocomplete li {
    padding: 8px 12px;
    list-style: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.ui-autocomplete li:hover, 
.ui-autocomplete li.ui-state-focus {
    background-color: #f5f5f5;
    color: #28a745;
}

.ui-autocomplete li:last-child {
    border-bottom: none;
}

/* Client input field states */
#clientName:disabled {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
    cursor: not-allowed;
}

#clientName.ui-autocomplete-loading {
    background-image: url('assets/loading.gif');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.btn:focus, .btn:hover {
    background-color: #2fab38;
    border-color: #2fab38;
    color: #fff;
}

/* Add to your existing styles */
#clientName:disabled {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
    cursor: not-allowed;
}

/* Order Success Modal Styles */
#orderSuccessModal .modal-content {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

#countdown {
    font-weight: bold;
    color: #28a745;
}

#orderSuccessModal .bi-check-circle-fill {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0); }
    40% {transform: translateY(-20px); }
    60% {transform: translateY(-10px); }
}

td {
    line-height: normal!important;
}

tr {
    height: 77px!important;
    vertical-align: middle!important;
}

.rounded-table thead tr:first-child th {
    line-height: normal!important;
}

table {
    font-size: 14px!important;
}

.title h1 {
    font-size: 18px !important;
}