.table {
    max-width: 100%;
}

.alert.alert-error {
    background-color: #FFDADA;
    color: #FF0000;
}

body {
    background: #f1f4f6;
}

.background-gray {
    background: #f1f4f6;
    padding: 10px 0;
}


#myfilter {
    display: none;
}

.padding {
    padding: 0.25rem;
}

#login {
    background-color: #ffffff;
    margin-top: 5%;
    padding: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.status-button {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
}



#login_form {
    margin-top: 20px;
}

@media (min-width: 768px) {
.voucher {
    margin-left: 10px;
}
.list {
    margin-left: 5px;
}
}


.transparent-btn {
    font-size: 16px; 
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    color: inherit; 
    cursor: pointer;
}

.transparent-btn:hover {
    text-decoration: underline; 
}



.add_margin {
    margin-bottom: 20px;
    margin-top: 20px;
}


.margin_voucher {
    margin-bottom: 10px;
    margin-top: 10px;
}

.second-card {
    padding-top: 1.25rem;
    padding-left: 15px; 
    padding-right: 15px; 
    padding-bottom: 20px; 
}


.wider-button {
    width: 200px; 
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
}


.center-bt {
    margin-top: 10px;
    text-align: center;
}

.left-text {
    text-align: left;
}

.open-status,
.completed-status {
    padding: 3px 8px; /* Adjust padding as needed */
    margin-top: -3px; /* Adjust margin-top to align with upper end of text */
    margin-bottom: 3px; /* Adjust margin-bottom to align with lower end of text */
    font-size: 12px; /* Adjust font size as needed */
}

.open-status {
    color: green;
  }

  .completed-status {
    color: red;
  }

  .max-height{
    min-height: -webkit-fill-available;
    height: 95vh;
  }

  #status {
    margin-bottom: 20px;
}


  .text_gray {
  color: #818181;
  }


  [data-toggle="collapse"] .fa2:before { 
    content: "\f077";
  }
  
  [data-toggle="collapse"].collapsed .fa2:before {
    content: "\f078";
  }
  



  .gray-circle {
    width: 30px !important;
    height: 30px !important;
    background-color: transparent; 
    border: 2px solid #818181; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .fix_bottom {
    bottom: 0;
    width: 100%;
    background-color: #f1f4f6; /* Optional: Set background color */
    border-top: 1px solid #ccc; /* Optional: Add border at the top */
    padding: 10px;
    text-align: center; /* Center-align the text */
}

.max-height {
    display: flex;
    flex-direction: column;
}

.item-information {
    font-size: 11px !important;
}


.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    background-color: transparent;
    box-shadow: none;
}

.close {
    position: fixed;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.card {
    border: none;
    border-radius: 1rem;
}

.card-header-transparent {
    background-color: transparent;
    border-bottom: none;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#login_form input[type="text"],
#login_form input[type="password"] {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#login_form input[type="text"]:focus,
#login_form input[type="password"]:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.article-image {
    max-width: 150px;
    cursor: pointer;
}

/* Add these styles at the end of your existing CSS file */

@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.background-gray {
    background: #f1f4f6;
    padding: 10px 0;
}

.transparent-btn {
    font-size: 16px;
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
}

.transparent-btn:hover {
    text-decoration: underline;
}

.card {
    border: none;
    border-radius: 1rem;
}

.card-body {
    padding: 1rem;
}

@media (min-width: 576px) {
    .card-body {
        padding: 3rem;
    }
}

.btn-block {
    display: block;
    width: 100%;
}

/* Styles for the dropdown in edit_user.html */
select.form-select {
    display: block !important;
    width: 100% !important;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

select.form-select:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

select.form-select::-ms-expand {
    display: none !important;
}

select.form-select option {
    font-weight: normal !important;
}


.article-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s ease-in-out;
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-image {
    max-width: 150px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.article-image:hover {
    transform: scale(1.05);
}

.upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background-color: #f8f9fa;
}

.upload-area.dragover {
    background-color: #e9ecef;
    border: 2px dashed #6c757d !important;
}

.image-preview {
    position: relative;
    height: 150px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
}

.carousel-item img {
    max-height: 500px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.upload-zone {
    cursor: pointer;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-zone .bi-cloud-upload {
    color: #6c757d;
}

.upload-zone:hover .bi-cloud-upload {
    color: #0d6efd;
}

.accordion-header {
    cursor: pointer;
}

.accordion-header:hover {
    background-color: rgba(0,0,0,.03);
}

.accordion-body {
    background-color: #f8f9fa;
    padding: 1rem;
}

.form-control[type="file"] {
    padding: 0.375rem;
}

/* Add these styles at the end of the file */

.border-separate {
    border-collapse: collapse;
}

.hover-row {
    transition: background-color 0.2s ease;
}

.hover-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.table > tbody > tr {
    border-bottom: 1px solid #dee2e6;
}

.table > thead > tr {
    border-bottom: 2px solid #dee2e6;
}

/* Details page styles */
.details-grid {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item strong {
    color: #6c757d;
    font-size: 0.875rem;
}

.image-container {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: scale(1.02);
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    background-color: transparent;
    box-shadow: none;
}

.close {
    position: fixed;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Upload zone styles */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard styles */
.hover-card {
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.125) !important;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    background-color: #f8f9fa;
}

.bi-chevron-right {
    font-size: 1.2rem;
    color: #6c757d;
}

.hover-card:hover .bi-chevron-right {
    color: #0d6efd;
}

/* Dashboard Tiles */
.dashboard-tile {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    border-color: #bc2e30;
}

.tile-icon {
    background: linear-gradient(45deg, #bc2e30, #9a2527);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tile-icon i {
    font-size: 2rem;
    color: white;
}

.tile-content {
    color: #212529;
}

.tile-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tile-content p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-tile {
        padding: 1rem;
    }
    
    .tile-icon {
        width: 60px;
        height: 60px;
    }
    
    .tile-icon i {
        font-size: 1.5rem;
    }
    
    .tile-content h4 {
        font-size: 1.2rem;
    }
}

/* Base styles */
:root {
    --primary-color: #bc2e30;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --background-color: #f1f4f6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Navbar styles */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #bc2e30 !important;  /* Using the exact red color */
}

.nav-link i {
    margin-right: 0.5rem;
}

/* Dropdown styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item i {
    margin-right: 0.5rem;
}

.dropdown-item:hover {
    background-color: rgba(188, 46, 48, 0.1);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
    }
}

/* Footer styles */
.footer {
    background-color: #fff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

/* Logo styles */
.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 32px; /* Slightly smaller on mobile */
    }
}

/* Table styles */
.table {
    margin-bottom: 0;
    width: 100%;
    background-color: #fff;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Form styles */
.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-select {
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(188, 46, 48, 0.25);
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-dismissible .btn-close {
    padding: 1.25rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-container {
    cursor: pointer;
}

.image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media only screen and (max-width: 700px) {
    .modal-content {
        max-width: 95%;
    }
    
    .close {
        right: 15px;
        top: 15px;
    }
}

.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    min-width: 300px;
}

.alert {
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert.fade {
    transition: opacity 0.15s linear;
}

.alert.fade.show {
    opacity: 1;
}

.tooltip-inner {
    font-size: 0.55rem; /* Adjust the font size as needed */
}

/* Travel Request Form Styles */
.btn-check:checked + .btn-outline-primary {
    background-color: #0d6efd;
    color: white;
}

.time-inputs input[type="time"] {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.time-inputs input[type="time"]:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.day-form {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}

.day-form .card-header {
    background-color: rgba(0,0,0,.03);
    padding: 0.75rem 1.25rem;
}

.vma-details {
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,.125);
    margin-top: 1rem;
}

/* Reisekosten Modal Styles */
.modal-backdrop {
    opacity: 0.25 !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
}

.modal-content {
    background-color: white !important;
    color: #212529 !important;
}



/* Reisekosten Step Navigation Styles */
.steps-navigation {
    padding: 20px 0;
}

.step-progress {
    position: relative;
    padding: 30px 0 0;
}

.progress {
    background-color: #e9ecef;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 4px;
}

.step-circle {
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

@media (max-width: 768px) {
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
}

/* Consistent Container Styles */
.travel-form-container {
    max-width: 800px;
    margin: 2rem auto;
}

.travel-form-card {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
}

.travel-form-card .card-body {
    padding: 2rem;
}

.back-navigation {
    margin-bottom: 1rem;
}

.back-navigation .transparent-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .travel-form-container {
        max-width: 100%;
        margin: 1rem;
    }
    
    .travel-form-card .card-body {
        padding: 1rem;
    }
}

/* Table Sorting Styles */
.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 18px !important;
}

.sortable:after {
    content: "⇅";  /* Alternative up-down arrow */
    position: absolute;
    right: 5px;
    color: #999;
    font-size: 12px;
}

.sort-asc:after {
    content: "▲";  /* Triangle up */
    color: #333;
}

.sort-desc:after {
    content: "▼";  /* Triangle down */
    color: #333;
}

/* Add these responsive table styles */
@media (max-width: 768px) {
    /* Make VAT details table responsive */
    #vatDetailsTable, #edit_vatDetailsTable {
        display: block;
        width: 100%;
    }
    
    #vatDetailsTable thead, #edit_vatDetailsTable thead {
        display: none; /* Hide headers on mobile */
    }
    
    #vatDetailsTable tbody, #vatDetailsTable tr, #vatDetailsTable td,
    #edit_vatDetailsTable tbody, #edit_vatDetailsTable tr, #edit_vatDetailsTable td {
        display: block;
        width: 100%;
    }
    
    #vatDetailsTable tr, #edit_vatDetailsTable tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        padding: 0.5rem;
        background-color: #f8f9fa;
    }
    
    #vatDetailsTable td, #edit_vatDetailsTable td {
        position: relative;
        padding-left: 40%;
        text-align: right;
        border: none;
        border-bottom: 1px solid #eee;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    #vatDetailsTable td:last-child, #edit_vatDetailsTable td:last-child {
        border-bottom: none;
        text-align: center;
        padding-left: 0.5rem;
    }
    
    /* Use pseudo-elements for labels instead of data-attributes */
    #vatDetailsTable td:nth-child(1)::before { content: "Steuersatz:"; }
    #vatDetailsTable td:nth-child(2)::before { content: "Nettobetrag:"; }
    #vatDetailsTable td:nth-child(3)::before { content: "MwSt.:"; }
    #vatDetailsTable td:nth-child(4)::before { content: "Brutto:"; }
    #vatDetailsTable td:nth-child(5)::before { content: "Aktionen:"; }
    
    #edit_vatDetailsTable td:nth-child(1)::before { content: "Steuersatz:"; }
    #edit_vatDetailsTable td:nth-child(2)::before { content: "Nettobetrag:"; }
    #edit_vatDetailsTable td:nth-child(3)::before { content: "MwSt.:"; }
    #edit_vatDetailsTable td:nth-child(4)::before { content: "Brutto:"; }
    #edit_vatDetailsTable td:nth-child(5)::before { content: "Aktionen:"; }
    
    #vatDetailsTable td::before, #edit_vatDetailsTable td::before {
        position: absolute;
        left: 0.5rem;
        width: 35%;
        padding-right: 0.5rem;
        text-align: left;
        font-weight: bold;
    }
    
    /* Fix input widths */
    #vatDetailsTable .form-control, #vatDetailsTable .form-select,
    #edit_vatDetailsTable .form-control, #edit_vatDetailsTable .form-select {
        width: 100%;
        display: inline-block;
    }
}

/* Add these styles for responsive button layout in travels list */
@media (max-width: 768px) {
    /* Make header layout more mobile-friendly */
    .travel-list-header .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .travel-list-header h2 {
        margin-bottom: 1rem !important;
        text-align: center;
    }
    
    .travel-list-header .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .travel-list-header .btn {
        margin: 0.25rem 0 !important;
        width: 100%;
    }
}