.container-custom {
    max-width: 728px;
    margin: 0 auto;
}
body {
    background: #ecf2e9;
}
.top-border-bar {
    background-color: rgb(62, 120, 34);
    color: rgba(255, 255, 255, 1);
    height: 10px;
    position: absolute;
    top: 0;
    width: 100%;
    padding: 0;
    left: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.border-btm-gray {
    border-bottom: 1px solid lightgray;
}
form label {
    font-size: 16px;
    font-weight: 600;
}
.form-label .fa-asterisk {
    color: red;
    font-size: 7px;
    vertical-align: text-top;
    margin-left: 3px;
}
.font-normal {
    font-weight: normal;
}
input[type="radio"] {
    margin-right: 5px;
}
.hidden {
    display: none;
}
.dataTable tr th {
    background-color: #0b88d7 !important;
    color: white;
}

/* Action Button Icon Alignment Fixes */
.table .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    vertical-align: middle;
}

.table .btn-sm i {
    margin: 0;
    line-height: 1;
    display: inline-block;
}

/* Ensure consistent spacing between action buttons */
.table td .btn-sm {
    margin-right: 0.25rem;
}

.table td .btn-sm:last-child {
    margin-right: 0;
}

/* Maintain alignment on hover */
.table .btn-sm:hover i {
    margin: 0;
}



/* Table Column Width Optimization */
#vendorsTable {
    width: 100% !important;
    table-layout: auto;
}

/* Prevent text overflow in table cells */
#vendorsTable td,
#vendorsTable th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Actions column should be narrower and fixed width */
#vendorsTable th:last-child,
#vendorsTable td:last-child {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    white-space: nowrap;
    position: sticky;
    right: 0;
    background-color: #fff;
    z-index: 10;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    border-left: 2px solid #dee2e6;
}

/* Header background for sticky actions column */
#vendorsTable th:last-child {
    background-color: #0b88d7 !important;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.15);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

/* Add stronger shadow to sticky column for better visual separation */
#vendorsTable th:last-child::before,
#vendorsTable td:last-child::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 15px;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.15));
    pointer-events: none;
}

/* Allow email and name columns to be slightly wider */
#vendorsTable td:nth-child(5),
#vendorsTable td:nth-child(6) {
    max-width: 250px;
}

/* Company name can be wider */
#vendorsTable td:first-child {
    max-width: 300px;
}

/* Match striped row background for sticky column - fully opaque */
#vendorsTable tbody tr:nth-of-type(odd) td:last-child {
    background-color: #f2f2f2 !important;
}

#vendorsTable tbody tr:nth-of-type(even) td:last-child {
    background-color: #ffffff !important;
}

/* Hover state for sticky column - fully opaque */
#vendorsTable tbody tr:hover td:last-child {
    background-color: #e9ecef !important;
}

/* Ensure proper text wrapping on very small screens */
@media (max-width: 575.98px) {
    #vendorsTable td,
    #vendorsTable th {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    #vendorsTable th:last-child,
    #vendorsTable td:last-child {
        width: 120px;
        min-width: 120px;
    }
}

/* Fix DataTables Controls Position */
/* Wrapper for DataTables */
#vendorsTable_wrapper {
    width: 100%;
}

/* Only the table container should scroll horizontally */
#vendorsTable_wrapper .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}

/* Top controls row (length and filter) */
#vendorsTable_wrapper .row:first-child {
    margin-bottom: 1rem;
}

/* Bottom controls row (info and pagination) */
#vendorsTable_wrapper .row:last-child {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Ensure pagination and info don't scroll */
#vendorsTable_wrapper .dataTables_info,
#vendorsTable_wrapper .dataTables_paginate,
#vendorsTable_wrapper .dataTables_length,
#vendorsTable_wrapper .dataTables_filter {
    overflow: visible;
}

/* Info text on the left */
#vendorsTable_wrapper .dataTables_info {
    text-align: left;
    margin: 0;
}

/* Pagination on the right */
#vendorsTable_wrapper .dataTables_paginate {
    text-align: right;
    margin: 0;
    margin-left: auto;
}

/* Fix Bootstrap column widths interfering */
#vendorsTable_wrapper .row:last-child .col-sm-12 {
    width: auto !important;
    flex: 0 0 auto;
}

#vendorsTable_wrapper .row:last-child .col-md-5 {
    width: auto !important;
    flex: 0 0 auto;
}

#vendorsTable_wrapper .row:last-child .col-md-7 {
    width: auto !important;
    flex: 1 1 auto;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #vendorsTable_wrapper .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
    }
    
    /* Stack controls on mobile */
    #vendorsTable_wrapper .row:last-child {
        flex-direction: column;
        align-items: center;
    }
    
    #vendorsTable_wrapper .dataTables_info {
        text-align: center;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    #vendorsTable_wrapper .dataTables_paginate {
        text-align: center;
        margin-left: 0;
        width: 100%;
    }
    
    #vendorsTable_wrapper .dataTables_length,
    #vendorsTable_wrapper .dataTables_filter {
        text-align: center;
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

/* Fix Footer Position */
html, body {
    height: 100%;
    margin: 0;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto !important;
}
