.headerLogin {
    margin-top: 20px;
}

.txt-r {
    text-align: right;
}

.card {
    margin: 3px;
}

.card-body {
    background-color: var(--temaprincipal_contra);
    padding: 8px;
}

.card-header {
    border: 1px solid var(--colorprincipal_contra);
    padding: 5px;
    border-radius: 3px;
    color: var(--temaprincipal_contra);
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-right: 18px;
    background-color: var(--colorprincipal_contra);
}

.card-header.in {
    transition: 0.5s;
    border-radius: 8px 8px 0px 0px;
    color: var(--colorgrisclaro);
    background-color: var(--temaprincipal);
    border: none;
}

.card-header.in button.btn-accordion {
    color: white;
}

.container-items {
    padding: 10px;
    background-color: var(--temaprincipal);
    border-radius: 0px 0px 8px 8px;
}

.ul-item-list {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    max-height: 200px;
    overflow: auto;
    width: 100%;
    padding-left: 10px;
}

.ul-item-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    margin-top: 10px;
    border: 1px solid var(--temaprincipal_contra);
    border-radius: 20px;
    padding: 4px 0px;
}

.ul-item-list li div.span,
.ul-item-list li button {
    background-color: var(--colorTableCell2);
    border-radius: 5px;
    display: inline-flex;
    height: 30px;
    min-width: 50px;
    align-items: center;
    justify-content: center;
    margin: 0px 4px;
    border-radius: 20px;
    box-sizing: border-box;
    padding: 8px;
}

.vehicles-list {
    display: inline-block;
    width: 100%;
}

.vehicles-list .item {
    display: inline-flex;
    width: 45%;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin: 5px 0px;
}

.vehicles-list .item label {
    margin: 0;
}

.vehicles-list .item input {
    border: none;
    background-color: var(--colorTableCell1);
    padding: 5px;
    border-radius: 5px;
    max-width: 86px;
    text-align: center;
    text-transform: uppercase;
    margin: 0px 10px;
}

.vehicles-list .item button {
    border-radius: 50%;
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-adapter canvas,
.qrcode-adapter img {
    width: 90%;
    height: auto;
    margin: auto;
}

.thumbnail.bg {
    border: none;
    background-color: var(--temaprincipal_contra);
}

.input-group .form-control {
    border-color: var(--colorprincipal);
}

.select2-container--default .select2-selection--single {
    border-color: var(--colorprincipal);
}

.select2-container--default .select2-selection--single {
    min-height: 35px;
    border-color: #ced4da !important;
}

.input-group .select2-container--default .select2-selection--single {
    border-color: var(--colorprincipal);
    border-radius: 0px;
    padding: 3px 0px;
    min-height: 38px;
}

.input-group .select2-container--default .select2-selection--single .select2-selection__clear {
    padding: 0px 5px;
}

.input-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px;
}

.input-group-btn>.btn {
    border-color: var(--colorprincipal);
}

.p-0 {
    padding: 0px !important;
}

button.bg-white:hover {
    background-color: var(--colorprincipal) !important;
}

.container-image-profile {
    height: 210px;
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    box-shadow: 3px 7px 6px 0px black !important;
}

.container-image-profile i {
    font-size: 3rem;
}

.container-image-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Semáforo (tablas) ===== */
.tl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
    vertical-align: middle;
}

.tl-green {
    background: #28a745;
}

.tl-yellow {
    background: #ffc107;
}

.tl-red {
    background: #dc3545;
}

.tl-gray {
    background: #adb5bd;
}

/* Centrar el punto dentro de la celda */
td .tl-dot {
    display: block;
    margin: 0 auto;
}

/* Si la tabla muestra "true/false" o "1/0" por default, fuerza vacío si hay semáforo */
td[data-semaforo="1"] {
    font-size: 0;
}

/* oculta texto sin romper ancho */
td[data-semaforo="1"] .tl-dot {
    font-size: initial;
}



.opt-vetoed {
    color: #dc3545;
    font-weight: 600;
}

.badge-vetoed {
    margin-left: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #dc3545;
    color: #fff;
}


.row-closed {
    opacity: .85;
}

.row-closed td {
    background: #fafafa;
}


.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

button:not(.is-disabled):hover {
    filter: brightness(0.95);
}


.wizard {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px;
}

.wizard-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.wizard-steps .step {
    border: 1px solid #ccc;
    background: #f7f7f7;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    opacity: .85;
}

.wizard-steps .step.active {
    background: #e9f2ff;
    border-color: #6aa7ff;
    opacity: 1;
    font-weight: 600;
}

.wizard-steps .step:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

.hint {
    background: #f6f6f6;
    border-left: 4px solid #6aa7ff;
    padding: 10px;
    border-radius: 6px;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.w-100 {
    width: 100%;
}

/* que los paneles no parpadeen */
[data-step-panel],
#step1,
#step2,
#step3 {
    display: none;
}

.btn-outline-secondary.active {
    background: #0d6efd;
    color: #fff;
}

.cg-users-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.cg-chip {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-weight: 500;
}

.badge-amarillo {
    background: #ffc107;
    /* amarillo Bootstrap */
    color: #212529;
    /* texto oscuro */
}


/* Columna Acciones fija y compacta */
#tbla-consultaEmployees th:first-child,
#tbla-consultaEmployees td:first-child {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    white-space: nowrap !important;
}

/* Botonera en una sola línea, sin expandir */
#tbla-consultaEmployees td:first-child .containerButtonTable {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    width: auto !important;
}

/* Quita el "d-block" visual en botones (si lo tienes en el HTML) */
#tbla-consultaEmployees td:first-child .containerButtonTable .btn {
    display: inline-flex !important;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
}


#idUsers {
    cursor: pointer;
    min-height: 140px;
}

#idUsers option {
    padding: 6px 8px;
}

#idUsers option:hover {
    background-color: #f2f8f9;
}



#modalFormCustomerGroups .select2-container {
    width: 100% !important;
}

#modalFormCustomerGroups .select2-container--default .select2-selection--multiple {
    min-height: 42px;
    max-height: 135px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 5px 8px 5px 34px;
    position: relative;
}

#modalFormCustomerGroups .select2-container--default .select2-selection--multiple::before {
    content: "🔎";
    position: absolute;
    left: 10px;
    top: 8px;
    font-size: 15px;
    opacity: .7;
    z-index: 2;
}

#modalFormCustomerGroups .select2-container--default .select2-selection__choice {
    max-width: 100%;
    white-space: normal;
    margin-top: 4px;
    border-radius: 14px;
    padding: 3px 8px;
    background: #f4f6f8;
    border: 1px solid #d8dde3;
    color: #333;
}

#modalFormCustomerGroups .select2-container--default .select2-selection__choice__remove {
    color: #c0392b;
    margin-right: 6px;
    font-weight: bold;
}

#modalFormCustomerGroups .select2-search__field {
    min-width: 180px !important;
}

.select2-dropdown .select2-search--dropdown {
    position: relative;
    padding: 8px;
}

.select2-dropdown .select2-search--dropdown::before {
    content: "🔎";
    position: absolute;
    left: 16px;
    top: 15px;
    opacity: .65;
    z-index: 2;
}

.select2-dropdown .select2-search__field {
    padding-left: 28px !important;
    height: 34px;
}

.select2-dropdown .select2-results__options {
    max-height: 280px;
}

.cg-select2-help {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
}


.cg-search-results {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 6px;
    max-height: 145px;
    overflow-y: auto;
    background: #fff;
    display: none;
    z-index: 9999;
}

.cg-result-item {
    padding: 7px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    font-size: 13px;
}

.cg-result-item:hover {
    background: #f5f5f5;
}

.cg-result-title {
    font-weight: 600;
}

.cg-selected-panel {
    min-height: 90px;
    max-height: 165px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    padding: 8px;
}

.cg-customer-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 3px;
    padding: 5px 9px;
    border-radius: 16px;
    background: #eef3f7;
    border: 1px solid #d5e0e8;
    font-size: 12px;
    color: #333;
}

.cg-customer-chip-text {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-customer-chip-remove {
    margin-left: 7px;
    color: #c0392b;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.cg-customer-chip-remove:hover {
    color: #922b21;
    text-decoration: none;
}

.cg-selected-users-panel {
    margin-top: 8px;
    min-height: 68px;
    max-height: 135px;
}

.cg-user-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 3px;
    padding: 5px 9px;
    border-radius: 16px;
    background: #eef7f7;
    border: 1px solid #cfe4e4;
    font-size: 12px;
    color: #333;
}

.cg-user-chip-text {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-user-chip-open {
    margin-left: 8px;
    color: #178c96;
    text-decoration: none;
    cursor: pointer;
}

.cg-user-chip-remove {
    margin-left: 8px;
    color: #c0392b;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.cg-user-chip-open:hover,
.cg-user-chip-remove:hover {
    text-decoration: none;
    filter: brightness(0.85);
}

.cg-result-meta {
    font-size: 11px;
    color: #777;
}

.cg-module-card {
    border-radius: 12px;
    overflow: hidden;
}

.cg-module-card .card-header {
    background: #f8f9fa;
}

.cg-permission-card {
    display: flex;
    gap: 10px;
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: all .15s ease-in-out;
}

.cg-permission-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.cg-permission-card.active {
    border-color: #1b8f9c;
    background: #eefbfd;
}

.cg-permission-card input {
    margin-top: 4px;
}

#profilesCards .card {
    border-radius: 12px;
}

#profilesCards .border-primary {
    box-shadow: 0 0 0 2px rgba(27, 143, 156, .15);
}

.cg-permission-card-wrap {
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    transition: all .15s ease-in-out;
}

.cg-permission-card-wrap:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

.cg-permission-card {
    display: flex;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 8px;
}

.cg-permission-card.active {
    color: #138496;
}

.cg-permission-card input {
    margin-top: 4px;
}

.cg-privileges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-left: 24px;
    font-size: 12px;
}

.cg-privileges-row label {
    margin: 0;
    font-weight: normal;
    color: #555;
}