﻿
tr.highlight > td {
    background-color: lightgray;
}
.table td {
    white-space: nowrap; /* Prevents wrapping of content */
    overflow: hidden; /* Hides the overflow */
    text-overflow: ellipsis; /* Adds "..." at the end if content overflows */
}
.pagination {
    text-align: center;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

    .pagination a, .pagination span {
        color: #007bff;
        padding: 8px 16px;
        text-decoration: none;
        border-radius: 5px;
        margin: 0 5px;
    }

        .pagination a:hover {
            background-color: #f0f0f0;
            color: #0056b3;
        }

    .pagination .disabled {
        color: #6c757d;
        cursor: not-allowed;
    }

    .pagination .page-info {
        font-weight: bold;
        color: #333;
    }

    .pagination a.prev, .pagination a.next {
        font-weight: bold;
    }

    .pagination .prev, .pagination .next {
        background-color: #f8f9fa;
    }

        .pagination .prev:hover, .pagination .next:hover {
            background-color: #e9ecef;
        }

    .pagination .disabled {
        background-color: #e9ecef;
    }

.custom-width {
    width: 200px; /* Adjust the width as needed */
}

.invoice-detail-container {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

    .invoice-detail-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30px;
        background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
        pointer-events: none;
    }
html {
    scroll-behavior: smooth;
}

/* Make the filter area stick to the top */

/* Make the table header stick inside the viewport */
.inventory-table thead th {
    position: sticky;
    top: 0px; /* navbar (60) + filter header height (~60) */
    background: #fff;
    z-index: 10;
}
.inventory-sticky-header {
    position: sticky;
    top: 0; /* stick to very top of viewport */
    z-index: 1000; /* above table header */
    background: #fff; /* so content behind doesn’t bleed through */
    padding-top: 5px;
    padding-bottom: 5px;
}
th.sortable {
    cursor: pointer;
}
.main-content {
    overflow: visible;
}
.total-row {
    background-color: #e7f3ff;
    font-weight: bold;
}

.scale-entry {
    font-size: 0.85rem;
}

.scale-entry .form-control,
.scale-entry .form-select {
    font-size: 0.85rem;
    padding: 0.3rem 0.3rem;
}

.scale-entry label {
    font-size: 0.65rem;
}

.scale-entry table th {
    font-size: 0.65rem;
}

.scale-entry table td {
    padding: 4px;
}

.app-sidebar {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    overflow-x: hidden;
    transition: flex-basis 160ms ease, max-width 160ms ease;
}

.sidebar-toggle-container {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem;
}

.sidebar-toggle {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.app-sidebar.is-compact {
    flex-basis: 3.75rem;
    max-width: 3.75rem;
}

.app-sidebar.is-compact .sidebar-brand,
.app-sidebar.is-compact .sidebar-navigation {
    display: none;
}

.app-sidebar.is-compact .sidebar-toggle-container {
    justify-content: center;
    padding-inline: 0.25rem;
}

.app-sidebar.is-compact .sidebar-toggle-label {
    display: none;
}
