div.existing-documents-container{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}
.document-preview-card{
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-bottom: 16px;
    background: #fff;
    position: relative;
}
.document-preview-card button{
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    border-radius: 50%;
}
.document-preview-card button:hover{
    background-color: #d43f3a;
    border-color: #d43f3a;
}
.document-preview-card button:focus{
    background-color: #d43f3a;
    border-color: #d43f3a;
}

/* Trips Tab Styling - Default/Inactive State */
#sidebar .nav-tabs > li > a[href="#trips_tab"] {
    background-color: transparent !important;
    background-image: none !important;
    position: relative;
    color: white !important;
}

/* White icon for inactive trips tab */
#sidebar .nav-tabs > li > a[href="#trips_tab"]::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background-image: url(icons/routes.svg);
    background-repeat: no-repeat;
    background-size: 35px;
    background-position: center;
    filter: brightness(0) invert(1);
    z-index: 1;
}

/* Trips Tab Active State - Sidebar (Icon and Text WHITE) */
#sidebar .nav-tabs > li.active > a[href="#trips_tab"] {
    background-color: var(--inverso-base) !important;
    border: none !important;
    font-weight: 700;
    color: white !important;
    position: relative;
}

/* White icon for active trips tab using pseudo-element */
#sidebar .nav-tabs > li.active > a[href="#trips_tab"]::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background-image: url(icons/routes.svg);
    background-repeat: no-repeat;
    background-size: 35px;
    background-position: center;
    filter: brightness(0) invert(1);
}

/* Trips Tab Active State - Modal Body */
.modal-body .nav-tabs > li.active > a[href="#trips_tab"],
.modal-body .nav-tabs > li.active > a[href="#trips_tab"]:focus,
.modal-body .nav-tabs > li.active > a[href="#trips_tab"]:hover {
    background-color: var(--white) !important;
    background-image: url(icons/routes.svg) !important;
    background-repeat: no-repeat !important;
    background-size: 35px !important;
    background-position: center 15px !important;
    color: #000 !important;
    filter: invert(0);
}

/* Trips Tab Active State - General Nav Tabs */
.nav-tabs > li.active > a[href="#trips_tab"],
.nav-tabs > li.active > a[href="#trips_tab"]:focus,
.nav-tabs > li.active > a[href="#trips_tab"]:hover {
    color: rgb(32, 32, 32) !important;
    background-color: rgb(255, 255, 255) !important;
    background-image: url(icons/routes.svg) !important;
    background-repeat: no-repeat !important;
    background-size: 35px !important;
    background-position: center 15px !important;
    cursor: default;
    filter: invert(0);
}