@media (max-width: 576px) {
    .card-body {
        padding: 10px !important;
    }
    .card-header {
        padding: 10px !important;
    }
}

/* ADMIN INTERFACE */
.admin-interface .sidebar {
    background-color: #1f2937; /* cinza escuro */
    color: #ffffff;
}
.admin-interface .sidebar a {
    color: #d1d5db;
}
.admin-interface .sidebar a:hover {
    color: #ffffff;
}
body.admin-interface .sidebar {
    background-color: #1f2937 !important; /* cinza escuro */
}
body.admin-interface .sidebar .nav-link {
    color: #d1d5db !important;
}
body.admin-interface .sidebar .nav-link:hover {
    color: #ffffff !important;
}

/* USER INTERFACE */
.user-interface .sidebar {
    background-color: #0d6efd; /* azul bootstrap */
    color: #ffffff;
}
.user-interface .sidebar a {
    color: #e7f1ff;
}
.user-interface .sidebar a:hover {
    color: #ffffff;
}
body.user-interface .sidebar {
    background-color: #0d6efd !important; /* azul bootstrap */
}
body.user-interface .sidebar .nav-link {
    color: #e7f1ff !important;
}
body.user-interface .sidebar .nav-link:hover {
    color: #ffffff !important;
}
.actions-col {
    width: 110px !important;
    white-space: nowrap;
}
.actions-col .btn {
    padding: 2px 6px !important;
}

/* GENERAL */
.password-wrapper {
    position: relative;
    width: 100%;
}
.password-wrapper input {
    padding-right: 40px;
}
.password-wrapper .toggle-password {
    position: absolute;
    right: 6px !important;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
}
.password-wrapper .toggle-password:hover {
    color: #000;
}
.form-control {
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
}
.btn-header {
    padding: 4px 10px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
}


/* DATATABLES*/
.dataTables_info {
    font-size: 0.8rem;
    padding-top: 4px !important;
}
.dataTables_length,
.dataTables_filter {
    font-size: 0.8rem;
}


/* MODAL */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    display: none; /* importante */
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow-y: auto;
}
.qr-modal-content {
    background: #fff;
    width: 95%;
    max-width: 500px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}
.qr-video-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}
.qr-box {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events:none;
}

#qrVideo {
    width: 100%;
    height: auto;
    display: block;
}

.chart-wrapper {
    width: 100%;
    height: 200px; /* ajusta como quiseres */
    position: relative;
}
.chart-wrapper canvas {
    height: 100% !important;
}
#chartGeral {
    height: 100% !important;
}

#linesWrapper {
	max-height: 55vh;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 6px;
}
thead.sticky-header th {
	position: sticky;
	top: 0;
	background: #f8f9fa;
	z-index: 10;
}
.floating-add-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999;
}
.invalid-field {
	border: 2px solid #dc3545 !important;
	background: #ffe6e6;
}