body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.traffic-light-dot {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background-color: #dc3545;
}

.dot-orange {
    background-color: #fd7e14;
}

.dot-yellow {
    background-color: #ffc107;
}

.dot-green {
    background-color: #198754;
}

.dot-suspended {
    background-color: #6c757d;
}

.dot-en-liquidacion,
.dot-terminado {
    background-color: #6f42c1;
    /* Purple */
}

.dot-liquidated {
    background-color: #000000;
}

.dot-blue {
    background-color: #0d6efd;
}

/* Custom background classes for cards/badges */
.bg-blue {
    background-color: #0d6efd !important;
    color: white;
}

.bg-orange {
    background-color: #fd7e14 !important;
    color: white;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: white;
}

.bg-yellow {
    background-color: #ffc107 !important;
    color: #212529;
    /* Dark text for readability */
}

.bg-black {
    background-color: #000000 !important;
    color: white;
}

.table th {
    background-color: #f8f9fa;
}

/* Increased Contrast for Inputs and Labels */
.form-control,
.form-select,
.input-group-text {
    border-color: #6c757d !important;
    /* Dark grey border */
}

.form-control:focus,
.form-select:focus {
    border-color: #212529 !important;
    /* Black on focus */
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

.form-label,
label,
.input-group-text {
    font-weight: bold !important;
    color: #212529;
    /* Ensure high contrast text */
}

/* Detailed lines in tables */
.table input.form-control-sm,
.table select.form-select-sm {
    border-color: #6c757d !important;
    font-weight: 500;
}

/* ── Choices.js Integration ─────────────────────────────────────── */

/* Base container */
.choices {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Inner element matches Bootstrap form-select look */
.choices__inner {
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    border-color: #6c757d !important;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

/* Selected item pill */
.choices__item--selectable {
    font-size: 0.8rem;
}

/* Input field inside Choices */
.choices__input {
    font-size: 0.875rem;
    padding: 0;
    margin: 0;
    background: transparent;
}

/* Dropdown container - must appear above modal overlay */
.choices__list--dropdown {
    z-index: 9999 !important;
    border-color: #6c757d;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
}

/* Dropdown options */
.choices__list--dropdown .choices__item {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

/* Highlighted option */
.choices__list--dropdown .choices__item--highlighted {
    background-color: #0d6efd;
    color: #fff;
}

/* Search input inside dropdown */
.choices__list--dropdown .choices__input {
    border-bottom: 1px solid #dee2e6;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Small-variant Choices (inside table rows) */
.apu-row .choices__inner,
.acta-item-row .choices__inner {
    min-height: 30px;
    padding: 0.15rem 0.4rem;
    font-size: 0.8rem;
}

/* Prevent Choices from making the column too wide */
.apu-row .choices,
.acta-item-row .choices {
    min-width: 120px;
    max-width: 220px;
}

/* Keep modal select full-width */
#addContractModal .choices,
#actaModal .choices,
#addendumModal .choices {
    width: 100%;
}

/* Prevent clipping of Choices.js dropdown inside responsive tables in modals */
.modal-body .table-responsive,
.modal-body .table-responsive table,
.modal-body .table-responsive tbody,
.modal-body .table-responsive tr,
.modal-body .table-responsive td {
    overflow: visible !important;
}

/* Estilos globales para campos no editables (disabled y readonly) - Texto Negro */
input:disabled, 
select:disabled, 
textarea:disabled,
input[readonly], 
textarea[readonly],
.form-control:disabled,
.form-control[readonly],
.form-select:disabled,
.choices.is-disabled .choices__inner,
.choices.is-disabled .choices__input,
.choices.is-disabled .choices__item {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important; /* Safari/iOS */
    opacity: 1 !important;
}

.choices.is-disabled .choices__inner {
    background-color: #e9ecef !important;
    border-color: #6c757d !important;
}
/* ────────────────────────────────────────────────────────────────── */