#split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

#list-container {
    min-width: 250px;
    overflow: hidden;
    background-color: #f8f9fa; /* Light gray */
}

#main-content {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #ffffff; /* White */
}

iframe {
    border: none;
}


#list-documents {
    flex-grow: 1;
}

/* Dashboard */
.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.dashboard-header {
    margin-bottom: 1.5rem;
}

.dashboard-header h2 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.dashboard-header .text-muted {
    font-size: 0.95rem;
}

.dashboard-alert {
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ffc107;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.2s, transform 0.15s;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.dashboard-card.card-highlight {
    border-left: 4px solid #0f3460;
    background: #f8fafd;
}

.dashboard-card .card-icon {
    font-size: 1.5rem;
    color: #0f3460;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    border-radius: 10px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.dashboard-card .card-body {
    flex: 1;
    padding: 0;
}

.dashboard-card .card-body h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #1a1a2e;
}

.dashboard-card .card-body p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
}

.dashboard-card .card-action {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.dashboard-card .btn-outline-primary {
    color: #0f3460;
    border-color: #0f3460;
}

.dashboard-card .btn-outline-primary:hover {
    background: #0f3460;
    color: #fff;
}

.dashboard-card .btn-primary {
    background: #0f3460 !important;
    border-color: #0f3460 !important;
}

.dashboard-card .btn-primary:hover {
    background: #1a4a8a !important;
    border-color: #1a4a8a !important;
}
body a:not(.btn):not(.alert-link) {
    color: #0f3460;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

/* Hover effect (except buttons) */
body a:not(.btn):not(.alert-link):hover {
    color: #1a4a8a;
    text-decoration: underline;
}

/* Visited links (except buttons) */
body a:not(.btn):not(.alert-link):visited {
    color: #0a2240;
}


.table-responsive {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.table {
    width: 100%;
    flex-grow: 0;
}

html, body {
    height: 100%;
    margin: 0;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
     display: flex;
    flex-direction: column;
}

.navbar {
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand, .navbar-nav .nav-link {
    color: #e0e0e0 !important;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.navbar-brand {
    font-weight: 600 !important;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

.table-wrapper {
  max-width: 80%;
  min-width: 60%;
  margin: 0 auto; /* center the div */
}


/* Sidebar Styling - Soft Beige */
#list-container {
    background-color: #FFF !important;
    color: #333;
    border-right: 2px solid #FF8C42;
}

/* Table Styling */
.table thead {
    background-color: #00A6A6 !important; /* Soft Teal */
    color: #FFFFFF !important;
}

.table tbody tr:hover {
    background-color: #D5DBDB !important; /* Subtle Hover */
}

/* Active/selected row highlighting - higher specificity to override Bootstrap */
.table.table-striped.table-bordered tbody tr.row-active,
.table.table-striped tbody tr.row-active,
.table-striped tbody tr.row-active,
.table tbody tr.row-active {
    background-color: #FFEAA7 !important; /* Warm yellow highlight */
    border-left: 4px solid #FF8C42 !important; /* Orange accent border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.table.table-striped.table-bordered tbody tr.row-active:hover,
.table.table-striped tbody tr.row-active:hover,
.table-striped tbody tr.row-active:hover,
.table tbody tr.row-active:hover {
    background-color: #FDDC8C !important; /* Slightly darker on hover */
}

/* Ensure all td cells in active row also get the background */
.table tbody tr.row-active td {
    background-color: inherit !important;
}

/* Unmatched rows - red left border to indicate missing booking */
.table.table-striped.table-bordered tbody tr.row-unmatched,
.table.table-striped tbody tr.row-unmatched,
.table tbody tr.row-unmatched {
    border-left: 4px solid #dc3545 !important;
}

/* Booking status column */
.col-booking {
    width: 110px;
    text-align: center;
}

.booking-status-cell {
    white-space: nowrap;
}

/* Buttons - Fresh Green */
.btn-primary {
    background-color: #4CAF50 !important; /* Green */
    border-color: #388E3C !important;
}

.btn-primary:hover {
    background-color: #388E3C !important; /* Darker Green */
}

/* Gutter Styling - Light Gray */
.gutter {
    background-color: #D9D9D9 !important;
}

/* Table Column Width Control - Class-based (robust against column reordering) */

/* Actions column (delete + edit buttons) */
.table .col-actions {
    width: 110px; /* Aktionen (Delete + Edit buttons) */
    text-align: center;
}

.table .col-skr04 {
    width: 200px; /* SKR04 dropdown */
    min-width: 200px;
}

/* Common columns */
.table .col-beleg-btn {
    width: 140px;
    text-align: center;
    white-space: nowrap;
}

.beleg-cell {
    white-space: nowrap;
}

.beleg-cell .btn-toggle-booking {
    padding: 1px 4px;
    font-size: 0.7rem;
    line-height: 1.2;
}

.table .col-index {
    width: 40px; /* Row index # */
    text-align: center;
}

.table .col-date {
    width: 100px; /* Date column */
}

.table .col-category {
    width: 120px; /* Category */
}

.table .col-brutto,
.table .col-netto,
.table .col-tax {
    width: 100px; /* Amount columns with input */
    text-align: right;
}


.table .col-marked {
    width: 80px; /* geprüft (marked) */
    text-align: center;
}

.table .col-filename {
    /* Beleg Name - no width constraint, let it grow */
}

.table .col-comment {
    width: 320px;
    min-width: 260px;
}

.comment-cell .comment-input {
    min-width: 220px;
}

/* SKR04 Autocomplete Dropdown Styling */
.autocomplete-dropdown {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.autocomplete-dropdown .list-group-item {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-left: none;
    border-right: none;
}

.autocomplete-dropdown .list-group-item:first-child {
    border-top: none;
}

.autocomplete-dropdown .list-group-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-dropdown .list-group-item.active {
    background-color: #00A6A6 !important; /* Match table header color */
    color: white !important;
    border-color: #00A6A6 !important;
}

/* Amount display and input styling */
.amount-cell {
    text-align: right;
}

.amount-cell .amount-display {
    display: inline;
}

.amount-cell .amount-input {
    width: 90px;
    text-align: right;
    font-size: 0.875rem;
}

/* Edit actions styling */
.actions-cell {
    white-space: nowrap;
}

.actions-cell .edit-actions {
    display: inline-flex;
    gap: 4px;
}

.actions-cell .btn {
    margin-right: 2px;
}

.edit-amounts-btn,
.save-amounts-btn,
.cancel-amounts-btn {
    transition: opacity 0.2s;
}

.save-amounts-btn:disabled,
.cancel-amounts-btn:disabled {
    opacity: 0.6;
}
