html {
  font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    table.table th,
    table.table td {
        padding: 0.3rem;
        font-size: 0.8rem;
    }

    table.table thead th {
        font-size: 0.85rem;
    }

    .dataTables_filter {
        display: flex;
        justify-content: flex-end;
        margin-bottom: .5rem;
        margin-top: .5rem;
        margin-right: .5rem;
        width: auto;
    }

    .dataTables_filter label {
        display: flex;
        align-items: center;
    }

    .dataTables_filter input {
        margin-left: 0.5rem;
        border-radius: 0.5rem;
        border: 1px solid #ced4da;
        padding: 0.375rem 0.75rem;
        box-shadow: none;
        background-color: #fff;
    }

    .dataTables_filter input[type="search"] {
        width: 100%;
        max-width: 300px;
        padding: 0.5rem 1rem;
        border: 1px solid #ccc;
        border-radius: 0.5rem !important;
        outline: none;
        box-shadow: none;
        font-size: 1rem;
        transition: all 0.3s ease;
        background-color: #fff !important;
    }

    .dataTables_filter input[type="search"]:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25); /* Add focus ring */
    }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


.dataTables_info {
    font-size: 9pt;
    font-style:italic;
}

.navbar-nav .nav-link:hover {
    color: #e0e0e0; 
    text-decoration: none;
}

.navbar-toggler {
    background-color: #fff;
    border-radius: 10%; 
}

.navbar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sr-table-row {
    cursor: pointer;
}


table.dataTable {
    width: 100% !important;
    border-collapse: collapse;
}

table.dataTable {
    width: 100% !important;  
    border-collapse: collapse;
}

table.table {
    word-wrap: break-word;
    white-space: normal;
    font-size: 0.9rem; 
}

.card-search {
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
    font-size: 1rem;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sr-data-card, .quote-data-card{
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.sr-data-card.hidden, .quote-data-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.sr-data-card.removed, .quote-data-card.removed{
    display: none;
}

.sticky-search {
    position: sticky;
    top: 0; 
    z-index: 10;
    background: white;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.srd-card strong,
.srd-card span {
    font-size: 0.9rem;
}

.srd-card row {
    margin-top: 0;
}

.srd-card hr {
    margin-bottom: 0.5rem;
}

.right-aligned-content {
    display: flex;
    justify-content: end;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    flex-grow: 1;
}

.left-aligned-content {
    white-space: nowrap;
    margin-right: .5rem;
}

.equipment-list {
    max-height: 200px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

#pdfListContainer {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

    #pdfListContainer a {
        text-decoration: underline;
        color: #007bff;
    }

        #pdfListContainer a:hover {
            text-decoration: none;
            color: #0056b3;
        }

.remove-btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.card-danger {
    background-color: #f8d7da; /* Match table-danger color for cards */
}

#equipmentTable_wrapper {

    width: 100%;
    margin: 0 auto;
}

#equipmentTable {
    width: 100%;
    margin: 0 auto;
    table-layout: auto;
}

#equipmentTable_length label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
}

#equipmentTable_length select {
    margin: 0;
    padding: 2px;
    width: auto;
    min-width: 55px;
}

#equipmentTable_paginate .paginate_button {
    min-width: auto;
    padding: 0;
}

/* Remove the "+"/expand icon completely */
#srTable tbody tr td.dtr-control:before {
    display: none !important;
}

/* Prevent rows from being expandable */
#srTable tbody tr td.dtr-control {
    pointer-events: none; /* Disable pointer events */
    cursor: default; /* Change cursor to default */
}

/* Ensure proper table layout */
#srTable #quoteTable {
    table-layout: auto; /* Allow columns to resize automatically */
    width: 100%; /* Ensure table fits its container */
}

/* Basic styling for all tabs (active or inactive) */
.nav-tabs .nav-link {
    background-color: #f8f9fa; /* Light background for inactive tabs */
    color: #495057; /* Dark text */
    border: 1px solid #dee2e6;
    margin-right: 0.5rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    /* Hover effect for inactive tabs */
    .nav-tabs .nav-link:hover {
        background-color: #dee2e6; /* Slightly darker gray on hover */
        color: #495057;
    }

    /* Active tab styling */
    .nav-tabs .nav-link.active {
        background-color: var(--bs-blue);
        color: #fff;
        border: 1px solid #0d6efd;
        border-bottom-color: transparent;
    }

.nav-tabs.nav-justified .nav-link {
    margin-right: 0;
}

.tab-header {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

/* Raise the z-index for the stacked modal */
.modal.stacked-modal {
    z-index: 1060;
}

/* Raise the z-index for its backdrop */
.modal-backdrop.stacked-backdrop {
    z-index: 1055;
}