body {
    background-image: url("/assets/e-warranty-bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 32% center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

.filter-toggle button.active,
.filter-toggle button:hover {
    background-color: #7eb0d5 !important;
    border-color: #7eb0d5 !important;
}

.pointer {
    cursor: pointer;
}

.bold {
    font-weight: bold;
}

.product-card-image {
    width: 100%;
}

/*
.pos-category {
    overflow-x: auto;
} */

.checkout-btn span {
    /* font-size: 1.rem !important; */
    font-weight: bold;
}

.pointer:hover {
    filter: brightness(97%);
}

/* .category-btn {
    margin: 20px;
} */

.quantity-show {
    border: 2px solid lightgrey;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: bold;
}

.plus-btn {
    border: 2px solid lightgrey;
    border-radius: 3px;
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
    font-weight: bold;
}

.minus-btn {
    border: 2px solid lightgrey;
    cursor: pointer;
    border-radius: 3px;
    padding: 5px;
    font-size: 1rem;
    font-weight: bold;
}

.file-uploader-preview-list {
    display: flex;
}
.file-uploader-preview-list img.preview-thumbnail {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    background-color: #fff;
}
.file-uploader-preview-list img.preview-thumbnail:hover {
    filter: brightness(70%);
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
    cursor: pointer;
}

.main-sidebar {
    background-color: #000000 !important;
}

.main-sidebar .nav-item a {
    color: white !important;
}

.btn-purple {
    background-color: rgb(58, 58, 58) !important;
    color: white !important;
    border: 0 !important;
}

.nav-link.active {
    background-color: rgb(58, 58, 58) !important;
}

.page-item.active .page-link {
    background-color: rgb(58, 58, 58) !important;
    border: 0 !important;
}

.action-btn {
    border: 1px solid rgb(58, 58, 58) !important;
    color: rgb(58, 58, 58) !important;
}

.action-btn:hover {
    background-color: rgb(58, 58, 58);
    color: white !important;
}

.login-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover;
}

.login-bg {
    background-color: #10000c !important;
    width: 100%;
    height: auto;
}

.form-responsive {
    margin-right: -655px;
}

/* -------------------------------------------------
   File upload preview
------------------------------------------------- */
.custum-file {
    margin-bottom: 40px;
}

.custum-file-upload {
    height: 220px;
    width: 320px;
    border: 2px dashed #cacaca;
    background: #fff;
    border-radius: 12px;
    transition: border-color 0.2s;
    cursor: pointer;
}
.custum-file-upload:hover {
    border-color: #7eb0d5;
}
.custum-file-upload .preview-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.custum-file-upload .icon,
.custum-file-upload .text {
    transition: opacity 0.25s;
}
.custum-file-upload.has-image .icon,
.custum-file-upload.has-image .text {
    opacity: 0;
}

/* -------------------------------------------------
   Table Design
------------------------------------------------- */
.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table-container tbody td {
    border-bottom: 1px solid #ddd;
}

.table-container tbody td img {
    width: 68px;
    height: auto;
    margin-left: -10px;
    min-width: 68px;
}

.table-container th,
.table-container td {
    padding: 12px 0 12px 10px;
    text-align: left;
}

.table-container th {
    background-color: #212529;
    color: white;
    font-weight: bold;
}

.table-container tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-container tr:hover {
    background-color: #e9e9e9;
}

.table-container tfoot td {
    border: none;
    font-weight: bold;
}

@media only screen and (max-width: 1100px) {
    .form-responsive {
        margin-right: 0;
    }
}

/* -------------------------------------------------
   Select2: shared styles to match .form-control and fix dropdown sizing
------------------------------------------------- */
.select2-container {
    position: relative;
}

.text-sm .select2-container--default .select2-selection--single,
select.form-control-sm
    ~ .select2-container--default
    .select2-selection--single {
    height: calc(2.25rem + 2px);
    border: 1px solid #ced4da;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 0.675rem 0.75rem;
}

.text-sm
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow,
select.form-control-sm
    ~ .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    top: 0.37rem;
}

.select2-results__options {
    max-height: 260px;
}

.select2-results__option {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.select2-results__options {
    max-height: 260px;
}

.select2-results__option {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: white;
}

.nav-tabs .nav-link {
    color: black;
}

/* -------------------------------------------------
   Window claim tables – fixed, consistent column widths
------------------------------------------------- */
.window-claim-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.window-claim-table th,
.window-claim-table td {
    vertical-align: top;
    word-wrap: break-word;
    white-space: normal;
}

.window-claim-table .col-product,
.window-claim-table td:nth-child(1) {
    width: 20% !important;
}

.window-claim-table .col-parts,
.window-claim-table td:nth-child(2) {
    width: 28% !important;
}

.window-claim-table .col-installation-date,
.window-claim-table td:nth-child(3) {
    width: 16% !important;
}

.window-claim-table .col-type,
.window-claim-table td:nth-child(4) {
    width: 10% !important;
}

.window-claim-table .col-support,
.window-claim-table td:nth-child(5) {
    width: 14% !important;
}

.window-claim-table .col-action,
.window-claim-table td:nth-child(6) {
    width: 12% !important;
}
