html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}
.clearfix::after {
    clear: both;
    content: '';
    display: table;
}
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body.login-page {
    background-color: #f8f9fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.fixed {
    overflow: hidden;
}

a {
    outline:none;
    text-decoration:none;
}

a:active {
    outline: none;
}

img, img a {
    border: none;
}
img {
    display: block;
    max-width: 100%;
}

.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #fff;
}
.nav-link, .dropdown-item {
    font-weight: 500;
}
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}
.dropdown-menu {
    border-radius: 8px;
    min-width: 220px;
}
.dropdown-item:hover, .dropdown-item.active {
    background-color: #f8f9fa;
    color: #ef492d;
}
.navbar-nav .nav-item {
    margin-right: 16px;
}
.user-info {
    display: flex;
    align-items: center;
    font-weight: 500;
}
.user-info .bi {
    margin-right: 8px;
}
.bi-currency-dollar {color: #fff}
.user-info .nav-item {
    list-style: none;
}
.user-info .dropdown-menu {
    right: 0;
    left: auto;
}
@media screen and (max-width: 991px) {
    .user-info {
        display: block;
    }
    .user-info .dropdown-menu {
        position: relative !important;
        right: auto;
        left: 0;
        margin-top: 8px !important;
        width: 100%;
    }
}
.navbar-toggler {
    position: relative;
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    font-size: 32px;
    color: #ef492d;
    transition: opacity 0.2s;
}

.navbar-toggler-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #ef492d;
    transition: opacity 0.2s;
    pointer-events: none;
}

.heading {
    background: #fff;
    padding: 32px 0 16px 0;
}

.heading h1 {
    font-size: 28px;
    color: #ef492d;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.heading {
    border-bottom: 2px solid #ef492d;
    margin-bottom: 32px;
}

.filters-tabs-container {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 3;
}
.filters {
    background: #fff;
    padding: 24px 24px 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@media screen and (max-width: 767px) {
    .filters {
        display: none;
        padding: 0;
    }
}
.btn-show-filters {
    margin-bottom: 1rem;
    font-size: 1rem;
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s;
}
.btn-show-filters .bi {
    font-size: 1.2em;
}
@media (min-width: 768px) {
    .btn-show-filters {
        display: none;
    }
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.filter-input {
    max-width: 180px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 16px;
    padding: 8px 12px;
}
.filter-input:focus {
    border-color: #eee;
    box-shadow: none;
}

.filter-select {
    max-width: 230px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 16px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    transition: border-color 0.2s;
}

.filter-select:focus {
    border-color: #eee;
    box-shadow: none;
}

.filter-btn {
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn.btn-danger {
    background-color: #ef492d;
    border-color: #ef492d;
    color: #fff;
    padding: 0;
    border-radius: 8px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border 0.2s;
}

.filter-btn.btn-danger:hover, .filter-btn.btn-danger:focus {
    background-color: #d13c22;
    border-color: #d13c22;
    color: #fff;
}

.filter-btn .bi {
    font-size: 22px;
    vertical-align: middle;
}

input[type=checkbox] {
    width: 18px;
    height: 18px;
    border: 1px solid #aaa;
    border-radius: 3px;
    background-color: white;
    cursor: pointer;
    position: relative;
}

@media (max-width: 767px) {
    .filters-form {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .filter-input,
    .filter-select,
    .filter-btn {
        max-width: 100%;
        width: 100%;
    }
}

.custom-tabs {
    border-bottom: 2px solid #eee;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #ef492d #eee;
    padding-bottom: 2px;
    background: #fff;
}

.custom-tabs .nav-link {
    color: #ef492d;
    background: #fff;
    border: 1px solid #eee;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-bottom: -2px;
    font-weight: 500;
    padding: 10px 24px;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.custom-tabs .nav-link.active,
.custom-tabs .nav-link:focus,
.custom-tabs .nav-link:hover {
    background: #ef492d;
    color: #fff;
    border-color: #ef492d #ef492d #fff #ef492d;
    z-index: 2;
}
/* .custom-tabs::-webkit-scrollbar {
    height: 6px;
}

.custom-tabs::-webkit-scrollbar-thumb {
    background: #ef492d;
    border-radius: 4px;
}

.custom-tabs::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
} */

.custom-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    min-width: 1200px;
    position: relative;
}

.sticky-table-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    display: none;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: auto;
    pointer-events: none;
}

.custom-table th, .custom-table td {
    vertical-align: middle;
    text-align: center;
    font-size: 12px;
    padding: 8px;
    white-space: nowrap;
}

.custom-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.tr-captured td, .tr-preadvised td { color: #198754; }
.tr-cancelled td { color: #dc3545; }
.tr-running td {color: #231F20; }
.tr-invoiced td {color: #909090;}

.custom-table .badge.bg-success {
    background-color: #28a745;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    padding: 6px 12px;
}

.custom-table .badge.bg-danger {
    background-color: #ef492d;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    padding: 6px 12px;
}

.custom-table .btn-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.custom-table .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.custom-table .btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.custom-table tbody tr.alter1 td { background-color: #e0ffff !important; }
.custom-table tbody tr.cn-neg td { color: #C9252B !important; }
.custom-table tbody tr.cn-ann td { color: #909090 !important; }

.btn-location {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}
.btn-location:hover, .btn-location:focus {
    background-color: #138496;
    border-color: #138496;
    color: #fff;
}

.modal-header.bg-info {
    background-color: #17a2b8 !important;
}

.btn-document {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}
.btn-document:hover, .btn-document:focus {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

.btn-edit {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}
.btn-edit:hover, .btn-edit:focus {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529;
}

.custom-table .btn-location {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

.custom-table .btn-location:hover {
    background-color: #138496;
    border-color: #138496;
    color: #fff;
}

.form-signin {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="email"],
.form-signin input[type="password"] {
    margin-bottom: 10px;
}
