/* --------------------------------- Modals --------------------------------- */

/* ---------------------------------- Addon --------------------------------- */
td .iconFile {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

td .iconFile svg {
    width: 1.2rem;
    float: left;
    margin-right: 0.3rem;
}

/* -------------------------------------------------------------------------- */
/* -------------------------------- expenses -------------------------------- */
.tableExpense td .itemDetail {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.tableExpense td .itemDetail li {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.tableExpense td .itemDetail label {
    width: 10rem;
    word-wrap: break-word;
    flex-shrink: 0;
    font-weight: normal;
}

.tableExpense td .itemDetail span {
    flex: 1;
    text-align: right;
    display: block;
}

.tableExpense td.footer_expense_total,
.tableExpense td.footer_total_due {
    min-width: 5rem;
    white-space: nowrap;
}

/* Scrollable wrapper */
.modal .viewDocumentsCol {
    max-height: 20rem;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Responsive image styling */
.viewDocumentsCol img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Carousel spacing */
.viewDocumentsCol .carousel {
    margin-bottom: 1rem;
}

/* Bootstrap 3 carousel controls - refine look */
.carousel-control {
    background-image: none !important;
    color: #333;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control:hover {
    opacity: 1;
    color: #000;
}

.carousel-indicators li {
    background-color: #ccc;
}

.carousel-indicators .active {
    background-color: #333;
}

/* Document list */
ul.document-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

ul.document-list li {
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: background 0.2s;
}

ul.document-list li:hover {
    background: #f0f0f0;
}

ul.document-list a {
    text-decoration: none;
    color: #337ab7;
    word-break: break-word;
}

ul.document-list a:hover {
    text-decoration: underline;
}

/* Single image wrapper */
.viewDocumentsCol .single-image {
    margin-bottom: 1rem;
    text-align: center;
}

.viewDocumentsCol .single-image img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}