﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Form style */
form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"],
select {
    padding: 8px 14px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button */
button {
    padding: 8px 14px;
    font-size: 1rem;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

    button:hover {
        background-color: #0056b3;
    }

/* Table structure */
.table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ccc;
}

    .table-wrapper table {
        width: 100%;
        border-collapse: collapse;
    }

    .table-wrapper th,
    .table-wrapper td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
        background-color: white;
        text-align: left;
    }

    /* Sticky header */
    .table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: #f8f9fa;
        border-bottom: 2px solid #ccc;
        font-weight: bold;
    }

/* Responsive form controls */
@media (max-width: 768px) {
    form {
        flex-direction: column;
        align-items: stretch;
    }

    input, select, button {
        width: 100%;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    gap: 5px;
    margin-top: 20px;
}

.page-item {
    display: inline;
}

.page-link {
    display: block;
    padding: 6px 12px;
    font-size: 1rem;
    color: #007bff;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
}

    .page-link:hover {
        background-color: #e9ecef;
        text-decoration: none;
    }

.page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    pointer-events: none;
}
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Align price column to the right */
.table-wrapper td:last-child,
.table-wrapper th:last-child {
    text-align: right;
}
