/* ─── TABLE ─────────────────────────────────────────────────────── */
.uf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.uf-table th,
.uf-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.uf-table th {
    background-color: #f2f2f2;
    text-align: left;
}

/* ─── DATE-FILTER FORM ──────────────────────────────────────────── */
.date-form {
    display: flex;           /* puts children on one line */
    align-items: flex-end;   /* button aligns with inputs */
    gap: 16px;               /* space between From, To, and button */
    margin-bottom: 1.5rem;
}

.date-group {
    display: flex;
    flex-direction: column;  /* label above its input */
}

.date-group label {
    font-weight: 600;
    margin-bottom: 4px;
}

.date-group input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.date-form button {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

.date-form button:hover,
.date-form button:focus {
    background: #0056b3;
}
/* ─── TABLE ─────────────────────────────────────────────────────── */
.uf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.uf-table th,
.uf-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.uf-table th {
    background-color: #f2f2f2;
    text-align: left;
}

/* ─── DATE-FILTER FORM ──────────────────────────────────────────── */
.date-form {
    display: flex;           /* puts children on one line */
    align-items: flex-end;   /* button aligns with inputs */
    gap: 16px;               /* space between From, To, and button */
    margin-bottom: 1.5rem;
}

.date-group {
    display: flex;
    flex-direction: column;  /* label above its input */
}

.date-group label {
    font-weight: 600;
    margin-bottom: 4px;
}

.date-group input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.date-form button {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

.date-form button:hover,
.date-form button:focus {
    background: #0056b3;
}

/* ─── TABLE ─────────────────────────────────────────────────────── */
.uf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.uf-table th,
.uf-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.uf-table th {
    background-color: #f2f2f2;
    text-align: left;
}

/* ─── DATE-FILTER FORM ──────────────────────────────────────────── */
.date-form {
    display: flex;           /* puts children on one line */
    align-items: flex-end;   /* button aligns with inputs */
    gap: 16px;               /* space between From, To, and button */
    margin-bottom: 1.5rem;
}

.date-group {
    display: flex;
    flex-direction: column;  /* label above its input */
}

.date-group label {
    font-weight: 600;
    margin-bottom: 4px;
}

.date-group input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.date-form button {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

.date-form button:hover,
.date-form button:focus {
    background: #0056b3;
}
/* ─── UPDATED UF-TABLE STYLES ───────────────────────────────────── */
.uf-table {
    background: #f5f5f5 !important;
    color: #222 !important;
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
}

.uf-table th {
    background: #e0e0e0 !important;
    color: #222 !important;
    font-weight: bold !important;
    border: 1px solid #cccccc !important;
    text-align: left !important;
}

.uf-table td {
    background: #f8f8f8 !important;
    color: #222 !important;
    border: 1px solid #dddddd !important;
    padding: 8px !important;
}

.uf-table tr:nth-child(even) td {
    background: #ededed !important;
}

.uf-table tr:hover td {
    background: #cccccc !important;
    color: #111 !important;
}

.uf-table th,
.uf-table td {
    transition: background 0.2s, color 0.2s !important;
}

/* ─── ICONS ─────────────────────────────────────────────────────── */
.check-icon {
    color: green;
    font-size: 1.2rem;
    vertical-align: middle;
}

.x-icon {
    color: red;
    font-size: 1.2rem;
    vertical-align: middle;
}

/* ─── TRUNCATION CLASSES ────────────────────────────────────────── */
.truncate-customer,
.truncate-memo,
.truncate-reference {
    display: inline-block;
    max-width: 140px;         /* adjust as desired */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* ─── PAGINATION ───────────────────────────────────────────────── */
.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 0;
    list-style: none;
}

.pagination li {
    display: inline;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 12px;
    color: #007bff;
    background: #e0e0e0;
    border: 1px solid #cccccc;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.16s, color 0.16s;
}

.pagination a:hover,
.pagination a:focus {
    background: #d1e9ff;
    color: #0056b3;
    border-color: #b6daff;
}

.pagination .active span,
.pagination .active a {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    cursor: default;
}

/* Checkbox column width */
.checkbox-col {
    width: 40px; /* or adjust as needed */
    text-align: center;
}

/* Checkbox styling (optional) */
.checkbox-col input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
    accent-color: #007bff; /* modern browsers */
    /* fallback for older browsers: background + appearance hacks */
}

.checkbox-col input[type="checkbox"] {
    transform: scale(1.5);    /* Adjust 1.5 to desired size */
    cursor: pointer;
    accent-color: #007bff;    /* Optional: checkbox color (modern browsers) */
    margin: 2px;
}




/* Filter icon and dropdown */
.filter-dropdown {
    position: relative;
}
.filter-icon {
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}
.upload-icon {
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}
.filter-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #343a40;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 100;
    display: none;
}
.filter-menu a {
    display: block;
    padding: 0.25rem 1rem;
    color: #fff !important;
    text-decoration: none;
}
.filter-menu a:hover {
    background: #495057;
}
.filter-menu.show {
    display: block;
}

/* Active filter chips */
.mbd-filters {
    margin: 0.5rem 0;
}
.mbd-filters .filter-item {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}
.mbd-filters label {
    margin-right: 0.25rem;
    margin-bottom: 0;
}
.remove-filter {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background-color: #dc3545;
    color: #fff;
    font-size: 12px;
    margin-left: 4px;
    cursor: pointer;
}

/* Bulk upload form */
.bulk-find-wrapper {
    background: #343a40;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.bulk-find-wrapper textarea {
    width: 100%;
}

/* Bulk find results */
.bulk-find-results {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.bulk-find-results textarea {
    width: 100%;
    height: 100px;
    overflow-y: auto;
    resize: none;
}
.bulk-find-results .no-match textarea {
    background: #f8d7da;
}
.bulk-find-results .match textarea {
    background: #d4edda;
}

/* Selected deposits list in left pane */
#selectedDepositsList {
    list-style: none;
    padding-left: 0;
}
#selectedDepositsList li {
    margin-bottom: 4px;
}
