@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body,
form,
input,
form-control,
textarea,
select,
button,
a,
div,
html,
span,
h1,
h2,
h3,
h4,
h5,
p,
li {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
}

html {
    background-color: #f8f9fa;
}

body {
    background-color: #f8f9fa;
    overflow-x: hidden;
}

#main-content {
    padding: 4.5rem 0.5rem 2rem 0.5rem;
}

/* --- LOADER --- */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    z-index: 99999;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Optional: center it inside a container */
.loader-container {
    display: none;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* === Refined Xero-style Company Button === */
.company-btn {
    min-width: 200px;
    /* Minimum width */
    border-radius: 30px !important;
    /* Rounded pill edges */
    border: 1px solid #ddd !important;
    /* Light subtle border */
    background-color: #fff !important;
    /* Clean light background */
    color: #333 !important;
    /* Neutral text color */
    padding: 5px 18px !important;
    /* Balanced padding */
    font-size: 15px !important;
    font-weight: 500;
    justify-content: center;
    /* Center-align icon + text */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease-in-out;
}

.company-btn:hover,
.company-btn:focus {
    background-color: #f8f9fa !important;
    /* Soft hover */
    border-color: #ccc !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.company-btn i {
    font-size: 16px;
    color: #0d6efd;
    /* Soft blue accent */
    opacity: 0.9;
}

/* === Round user button === */
.user-btn {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    /* Fully round */
    border: 1px solid #ddd !important;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease-in-out;
}

.user-btn:hover,
.user-btn:focus {
    background-color: #f8f9fa !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* === Dropdown header (user name) === */
.dropdown-header {
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
    color: #333;
}

#titleDropdown {
    left: 8px !important;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
}

/* TABULATOR ADJUST */
.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input,
.tabulator .tabulator-header .tabulator-col .tabulator-header-filter select {
    transition: border-color 0.2s ease;
}

.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input:not(:placeholder-shown) {
    border: 2px solid var(--bs-danger) !important;
}

.tabulator .tabulator-row {
    /*height: 30px !important;*/
}

.tabulator .tabulator-cell {
    /*line-height: 30px !important;*/
    padding: 2px 4px !important;
    font-size: 10pt;
}

.tabulator .tabulator-col-content {
    font-size: 10pt !important;
}

.tabulator-cell.tabulator-row-header.tabulator-frozen.tabulator-frozen-left {
    background-color: transparent !important;
}

.tabulator-footer-contents {
    padding: 0 !important;
}
@media screen and (max-width: 640px) {
    footer {
        font-size: 2.5vw;
    }
    #ordersTable .tabulator-header-contents::before {
        content: "Orders";
    }
    #deliveryTable .tabulator-header-contents::before {
        content: "Deliveries";
    }
    
}