.bg-hr {
    background-color: black;
}

.select-readonly {
    background: #EEE;
    pointer-events: none;
    touch-action: none;
}

.fs-13 {
    font-size: 13px;
    vertical-align: middle;
}

.fixed-dropdown-menu {
    position: fixed !important;
}

.form-select {
    border: none !important;
}

.input-height-50 {
    height: 50px;
}

.value-color {
    color: #344767 !important;
}

.cursor_badge {
    cursor: pointer;
}

.toggle-cell {
    cursor: pointer;
}

td {
    max-width: 100%;
    white-space: normal !important;
    word-wrap: break-all !important;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(52, 71, 103, 0.25);
    backdrop-filter: blur(2px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.loading-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 45px rgba(52, 71, 103, 0.25);
    text-align: center;
}

.loading-overlay__spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 4px solid rgba(52, 71, 103, 0.2);
    border-top-color: #344767;
    animation: loading-overlay-spin 0.8s linear infinite;
}

.loading-overlay__message {
    margin: 0;
    font-weight: 600;
    color: #344767;
}

@keyframes loading-overlay-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- DataTable: Fonte padrão das células --- */
table.dataTable td,
table.dataTable td *:not(.material-icons) {
    font-size: 11px !important;
}

/* --- DataTable: Input de busca no cabeçalho --- */
th input {
    width: 100%;
}

/* --- DataTable: Linha expandida (child row) --- */
tr.shown {
    background-color: #f7f7f7;
}

.child-row-table th,
.child-row-table td {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* --- Animação de rotação (spin) --- */
.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Logo Upload Preview --- */
.ec-logo-preview {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    background: #f8f9fa;
}

/* --- Form Validation Error --- */
.error {
    display: block;
    padding-top: 5px;
    font-size: 14px;
    color: red;
}

/* --- Semantic Color Utilities --- */
.red {
    color: #dc2626;
}

.green {
    color: #16a34a;
}

/* --- Password Card --- */
.ec-password-card {
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fafcff;
    padding: 10px;
}

.ec-password-card td {
    padding: 3px 0;
}

/* --- Password Toggle --- */
.ec-password-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
    cursor: pointer;
}

/* --- Floating Actions Bar --- */
.page-with-floating-actions {
    padding-bottom: 110px;
}

.ec-floating-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 22px;
    border-top: 1px solid #dee2e6;
    background: #fff;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ec-floating-actions.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ec-floating-actions .btn {
    min-width: 140px;
}

@media (max-width: 576px) {
    .ec-floating-actions {
        padding: 10px 12px;
    }

    .ec-floating-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}