body {
    font-size: 14px;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #1f2937;
}

.sidebar .nav-link {
    color: #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
}

.sidebar .nav-group-toggle {
    background: transparent;
    border: 0;
    display: flex;
    justify-content: space-between;
    text-align: left;
    width: 100%;
}

.sidebar .nav-group-toggle::after {
    content: "\25B8";
}

.sidebar .nav-group-toggle[aria-expanded="true"]::after {
    content: "\25BE";
}

.sidebar .nav-sub-link {
    font-size: 13px;
    margin-left: 12px;
    padding-left: 16px;
}

.sidebar .nav-link:hover {
    background-color: #374151;
    color: white;
}

.sidebar .nav-link.active {
    background-color: #2563eb;
    color: white;
}

.content-area {
    background-color: #f3f4f6;
    min-height: 100vh;
    min-width: 0;
}

.table th {
    background-color: #f9fafb;
}

.purchase-orders-list-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #f9fafb;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

.card {
    border: none;
    border-radius: 12px;
}

.form-control {
    font-size: 14px;
}

.table td,
.table th {
    vertical-align: middle;
}

input[type="number"],
.number-format,
.local-shipping-output,
.intl-shipping-output,
.total-cny-output,
.modal-item-output {
    text-align: right;
}

tfoot td {
    position: sticky;
    bottom: 0;
    background-color: #e5e7eb !important;
    z-index: 2;
}

.hidden-column {
    display: none;
}

/* =========================
AUTOCOMPLETE
========================= */

.autocomplete-dropdown {

    position: absolute;

    z-index: 999999 !important;

    max-height: 300px;

    overflow-y: auto;

    background: white;

    border: 1px solid #dee2e6;

    border-radius: 0.5rem;

    box-shadow:
        0 0.5rem 1rem rgba(0, 0, 0, .15);
}

/* IMPORTANT */

.table-responsive {

    overflow-x: auto !important;

    overflow-y: visible !important;
}

.card {

    overflow: visible !important;
}

.content-area {

    overflow: visible !important;
}

.autocomplete-results {

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    background: white;

    border: 1px solid #ced4da;

    border-radius: 8px;

    z-index: 9999;

    max-height: 300px;

    overflow-y: auto;

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

}


.autocomplete-item:hover {

    background-color: #f3f4f6;

}

.jubelio-sync-actions {
    display: grid;
    gap: 16px 20px;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    justify-items: stretch;
    width: 100%;
    max-width: 980px;
}

.jubelio-sync-action {
    min-height: 92px;
}

.jubelio-sync-action .btn {
    width: 100%;
}

.jubelio-sync-action small {
    line-height: 1.2;
}

.sales-orders-table {
    min-width: 1320px;
}

.catalogue-table {
    min-width: 1680px;
}

.profit-summary-card {
    min-height: 132px;
}

.profit-summary-card h3 {
    font-size: 2rem;
    margin-bottom: 0;
}

.profit-best-stores-scroll {
    display: grid;
    gap: 16px;
    grid-auto-columns: minmax(260px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 8px;
}

.profit-store-card {
    min-width: 260px;
    background: #fff;
}

@media (max-width: 1199.98px) {
    .jubelio-sync-actions {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .jubelio-sync-actions {
        grid-template-columns: 1fr;
    }
}
