body {
    font-family: 'Roboto', sans-serif;
    max-width: 1100px;
    min-width: 850px;
    margin: 16px auto;
    padding: 0 16px;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.4;
    font-size: 14px;
}

header, .container {
    background-color: #ffffff;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h3 {
    color: #0056b3;
    margin-top: 0px;
}

h1 {
    margin-top: 0;
    font-size: 1.8rem;
}

h3 {
    font-size: 1.2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

table, th, td {
    border: 1px solid #dee2e6;
}

th, td {
    padding: 10px;
    vertical-align: middle;
    text-align: center;
}
.svg {
    line-height: 0;
}
th {
    background-color: #e9ecef;
}

tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .3rem .6rem;
    font-size: .9rem;
    line-height: 1.3;
    border-radius: .2rem;
    text-decoration: none;
    margin-right: 8px;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    border-color: #ced4da !important;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    margin-bottom: .4rem;
}

.form-group input[type="date"],
.form-group input[type="number"] {
    display: block;
    width: 100%;
    padding: .3rem .6rem;
    font-size: .9rem;
    line-height: 1.3;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .2rem;
    box-sizing: border-box;
}

.box {
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 3px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

footer {
    text-align: center;
    margin-top: 32px;
    color: #6c757d;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1005;
}
.mobile-header {
    display: none;
}
.pagination-nav-mobile {
    display: none;
}
.show {
    display: none;
}
.action-modal {
    display: none; /* Hidden by default */
}
@media (max-width: 850px) {
    .records {
        padding:0;
    }
    body {
        font-family: 'Roboto', sans-serif;
        max-width: 95%;
        min-width: 95%;
        margin: 4px auto;
        padding: 50px 4px 70px;
        font-size: 12px;
    }
    .desktop-header {
        display: none;
    }
    .pagination-nav-desktop {
        display: none;
    }
    .pagination-nav-mobile {
        display: flex;
        position: fixed;
        bottom: 25px; /* Approx. height of footer */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        z-index: 1000;
        border-top: 1px solid black;
        border-bottom: 1px solid black;
    }
    .pagination-nav-mobile .btn {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        margin: 0;
        line-height: 1;
        border-radius: 0;
        border: none;
        border-right: 1px solid black;
        text-decoration: none;
        color: #fff;
        background-color: #6c757d;
        font-size: 12px;
    }
    .pagination-nav-mobile .page-info {
        flex: 2;
        background-color: #f8f9fa;
        color: #212529;
    }
    .pagination-nav-mobile .btn-disabled {
        background-color: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
    }
    .pagination-nav-mobile .btn:last-child {
        border-right: none;
    }
    .action-modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1020; /* Sit on top */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto; /* Enable scroll if needed */
        background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
        justify-content: center;
        align-items: center;
    }
    .action-modal.open {
        display: flex;
    }
    .action-modal-content {
        background-color: #fefefe;
        margin: auto;
        padding: 20px;
        border: 1px solid #888;
        border-radius: 6px;
        width: 85%;
        max-width: 320px;
        text-align: center;
    }
    .action-modal-content h4 {
        margin-top: 0;
        margin-bottom: 15px;
    }
    .action-modal-content .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
        box-sizing: border-box;
    }
    .action-modal-content .close-modal {
        margin-top: 15px;
    }
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #000;
        color: #fff;
        padding: 4px 0;
        margin: 0;
        z-index: 1000;
    }
    footer p {
        margin: 0;
    }
    footer a {
        color: #fff;
    }
    .mobile-header {
        display: flex;
        align-items: stretch;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        z-index: 1010;
        padding:0;
        border-bottom: 1px solid black;
        border-radius: 0;
    }
    .mobile-header .btn {
        flex: 1;
        text-align: center;
        padding: 6px 0;
        margin: 0;
        line-height: 1;
        border-radius: 0;
        border: none;
        border-right: 1px solid black;
    }
    .mobile-header .btn:last-child {
        border-right: none;
    }
    .mobile-header #mobile-settings-btn.active {
        background-color: #28a745;
        color: #fff;
    }
    .container.settings {
        position: fixed;
        top: 33px; /* Start below the mobile header (32px button + 1px border) */
        right: 0;
        width: 80%;
        max-width: 250px;
        height: calc(100% - 33px); /* Adjust height to fill remaining space */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1010;
        overflow-y: auto;
        margin-bottom: 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .container.settings.open {
        transform: translateX(0);
    }
    .overlay.open {
        display: block;
    }
    .mobile-header .btn svg {
        width: 20px;
        height: 20px;
        stroke-width: 1.5;
        vertical-align: middle;
    }
    th, td {
        padding: 4px;
    }
    .hide {
        display: none;
    }
    .show {
        display: block;
    }
}
