@media (max-width: 320px) {
	.messages {
		 min-width: unset;
	}
}

/* @media (max-width: 768px) { */
@media (max-width: 1024px) {

    .rightbar-wrapper{
		display: none;
		position: absolute;
		transition: all 0.5s ease-in;
    }

	body.sb-rightnav-toggled #wrapper .rightbar-wrapper{
		display: block;
		right: 0rem;
		margin-right: 0rem;
	}

	.rtl body.sb-rightnav-toggled #wrapper .rightbar-wrapper{
		left: 0rem;
		margin-left: 0rem;
		margin-right: auto;
    	right: auto;
	}

	.main-block-padding {
		padding: 0.5rem;
	}
	
}

.sb-sidenav-toggled .room-bar {
	display: none;
}

.sb-sidenav-toggled .sidebar-wrapper{
	margin-left: -19.5rem;
}

.rtl .sb-sidenav-toggled .sidebar-wrapper{
	margin-right: -19.5rem;
	margin-left: 0rem;
}

@media (max-width: 425px) {
	body:not(.sb-sidenav-toggled) .channel-bar {
	  width: calc(100vw - 4.2rem);
	}
}

@media (max-width: 320px) {
	.notifications-panel-card {
		min-width: 250px;
	}
}



/* ESTILO PARA O FORMULARIO DE ENVIO DE IMAGEM DE COMPROVANTE PARA A IA */
textarea {
    width: 100%;
    height: 200px;
}

#preview {
    max-width: 300px;
    max-height: 300px;
    margin-top: 10px;
    display: none;
    border: 1px solid #ccc;
    overflow: hidden;
}

#dropzone {
    border: 2px dashed #aaa;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s;

    width: 100%;
    height: 100%;
    z-index: 99999;
    position: relative;
}

#dropzone.dragover {
    background-color: #eef;
}


#dropzone.dragover {
    background-color: #eef;
    border-color: #00f;
}

.error-msg-ia-resposta,
.success {
    border: 1px solid;
    padding: 10px;
    margin-top: 20px;
    font-size: small;
}

.error-msg-ia-resposta {
    border-color: red;
    color: red;
}

.success {
    border-color: green;
    color: green;
}

.texto-small-aviso-caixa-drop-down-imagem {
    font-size: small;
}


/* .quick-actions-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 998;
} */

.quick-actions-overlay----------------------- {
    position: absolute;
    top: 48px;
    /* left: 0; */
    width: 100%;
    height: 101%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 998;
}

.quick-actions-popup {
    position: relative;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 999;
    animation: fadeIn 0.3s ease-in-out;
    text-align: center;
}

@media screen and (max-width: 1440px) {
    .quick-actions-popup {
        left: 45%;
    }
}
@media screen and (max-width: 1366px) {
    .quick-actions-popup {
        left: 40%;
    }
}
@media screen and (max-width: 1280px) {
    .quick-actions-popup {
        left: 33%;
    }
}
@media screen and (max-width: 1024px) {
    .quick-actions-popup {
        left: 50%;
    }
}
@media screen and (max-width: 768px) {
    .quick-actions-popup {
        left: 50%;
    }
}

.quick-actions-header h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}

.quick-actions-header p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
}

.quick-actions-buttons button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
}

.quick-actions-buttons button:hover {
    background-color: #0056b3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
