.cb-navbar-row {
    justify-content: center;
}

@media (max-width: 767.98px) {

    /* Stack everything vertically and give it breathing room */
    .cb-navbar-row {
        align-items: left;
        /* space between logo and nav  */
    }
}

/* order fetch */
/* Container Styling */
.selected-products-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* Heading */
h2 {
    color: #333;
    margin-bottom: 20px;
}


.product-btn-wrapper {
    margin: 15px 0;
    text-align: right;
}

.product-select-btn {
    background-color: #31708f;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-btn {
    background-color: #31708f;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-btn:hover {
    background-color: #012428;
}

/* Product Table */
#product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center;
}



/* Modal Background */
#quantity-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.no-products {
    text-align: left;
    color: #888;
    font-style: italic;
    padding: 16px;
}


/* Modal Content */
.modal-content {
    background-color: white;
    padding: 20px;
    margin: 10% auto;
    width: 50%;
    border-radius: 8px;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Close Button */
#close-quantity-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

#close-quantity-modal:hover {
    color: red;
}

/* Product List Container Styling */
#product-list-container {
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
    max-height: 200px;
}


/* Product List Items */
#product-list li {
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
}

#product-list li:last-child {
    border-bottom: none;
}

#product-list li:hover {
    background-color: #f0f0f0;
}



/* Error Message */
#quantity-error {
    color: red;
    font-size: 14px;
}

/* Submit Button */
#submit-quantity {
    width: 100%;
    padding: 10px;
    background-color: #31708f;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit-quantity:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

#submit-quantity:hover:enabled {
    background-color: #003338;
}

.shake {
    animation: shake 0.3s;
}

.dropdown-content div {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: normal;
    word-wrap: break-word;
}


@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.show-toast-error {
    text-align: center;
    padding: 16px;
    background-color: #f44336;
    /* red */
    color: white;
    border: 1px solid #d32f2f;
    /* darker red border */
    border-radius: 4px;
    opacity: 0.95;
    font-size: 14px;
    animation: fadeInOut 3s ease forwards;
}

.show-toast {
    text-align: center;
    padding: 16px;
    background-color: #28a745;
    color: #fff;
    border-radius: 4px;
    opacity: 0.95;
    font-size: 14px;
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.address-container {
    max-width: 800px;
    margin: auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.invoice-section,
.shipping-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.invoice-left,
.shipping-left {
    flex: 1;
}

.invoice-right,
.shipping-right {
    flex: 1;
}

h2 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.address-display {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    font-size: 1rem;
    border: 1px solid #ccc;
}


h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}


select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

select:focus {
    border-color: #007BFF;
    outline: none;
}

.remove-product-btn {
    padding: 5px 10px;
    background-color: #e74c3c;
    border: none;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
}

.remove-product-btn:hover {
    background-color: #c0392b;
}

.confirm-box {
    max-width: 800px;
    margin: auto;
    text-align: right;
    padding: 30px;
}

.confirm-box button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #28a745;
    color: #fff;
}

#confirm-box button:hover {
    background-color: #218838;
}

.dropdown-scrollable {
    max-height: 100%;
    overflow-y: auto;
}

.dropdown-menu {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

.btn.dropdown-toggle {
    background-color: white;
    border: 1px solid #ced4da;
    color: #495057;
    border-radius: 0.25rem;
}



.list-unstyled {
    text-decoration: none;
}

@media screen and (max-width: 768px) {

    .invoice-section,
    .shipping-section {
        flex-direction: column;
    }

    .invoice-left-content,
    .shipping-left,
    #invoice-address-wrap,
    #shipping-address-wrap {
        width: 100%;
    }

    .address-display {
        margin-top: 10px;
    }

    .modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        margin-top: 50px;
    }

    #product-list-container {
        max-height: 45%;
    }

}

/* order fetch */

/* order status / order approval */
.pagination>li>a,
.pagination>li>span {
    width: fit-content !important;
}

/* Not Applicable */
.status-919980000 {
    background-color: #000000;
    color: #ffffff;
    /* Added for text visibility */
}

/* Approval at Key Account Manager/Customer Service */
.status-919980001 {
    background-color: #b7e2b1;
}

/* Approved */
.status-919980002 {
    background-color: #5cb85c;
}

/* Approval at Sales Team */
.status-919980003 {
    background-color: #428bca;
}

/* Rejected */
.status-919980004 {
    background-color: #d9534f;
}

/* Submitted */
.status-919980005 {
    background-color: #ffffff;
    border: 1px solid #d9534f;
    color: #000000;
}

.modal-backdrop {
    display: none !important;
}

.modal-content {
    width: 100%;
    margin: 0;
}

/* order status / order approval */

/* home */

.create-button-home {
  background: linear-gradient(136deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 100%);
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.create-button-home:hover {
  filter: brightness(1.1); /* slightly brighter */
  transform: translateY(-2px); /* minimal lift */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* soft shadow */
  color: #fff;
}


.shadow-card {
    height: 100%;
    margin: auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* home */

/* Agree to terms-checkbox */
  .agree-to-terms {
    display: flex;            /* put checkbox + text on one line */
    align-items: center;
    gap: .5rem;               /* small space between box and text */
    padding: .5rem;
  }
  .agree-to-termst {
    float: none;              /* override Bootstrap's float in this one spot */
    margin: 0;                /* remove extra offsets so it centers nicely */
  }