.is-hidden { display: none !important; }

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/*.card {
    flex: 1 1 calc(33.333% - 40px);
    background-color: #fff;
    margin: 10px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}*/

#tabeladash{
	/*font-size: 0.8rem;*/
}

canvas {
    width: 100% !important;
    height: 200px !important;
}

table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background-color: #fff;
}

table, th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.form-group {
    display: grid;
    align-items: center;
    margin-bottom: 20px;
	width: 100%;
}

.form-group label {
    /*margin-right: 10px;*/
}

.form-group input,
.form-group select,
.form-group button {
    /*margin-right: 20px;*/
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.form-group button:hover {
    background-color: #45a049;
}

.card h2 {
    margin-bottom: 10px;
}

.card p {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.card p.saida {
    color: #F44336;
}

.receita {
    background-color: #E0FFFF;
}

.despesa {
    background-color: #FFEBCD;
}

.transferencia-receita {
    background-color: #D3FFD3; /* Cor para transferência de receita (TR) */
}

.transferencia-despesa {
    background-color: #FFDDDD; /* Cor para transferência de despesa (TD) */
}

/* Estilos para o modal lateral */
.modal-lateral {
	display: none;
    position: fixed;
    top: 0;
    right: 0;
    /*width: 400px;*/
    height: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.modal-lateral.is-active {
    transform: translateX(0);
}

.modal-lateral .modal-content {
    padding: 20px;
    overflow-y: auto;
}

.modal-lateral .modal-background {
    display: none;
}

.modal-lateral .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
}

.overlay-lateral {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay-lateral.is-active {
    display: block;
}

/* Estilos para o modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 50px;
}

/*.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}*/

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form label {
    font-weight: bold;
}

.modal-form input,
.modal-form select,
.modal-form button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.modal-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.modal-form button:hover {
    background-color: #45a049;
}

.form-horizontal {
    display: grid;
    align-items: center;
    /*gap: 20px;
    margin-bottom: 20px;*/
}

.form-horizontal label {
    margin-right: 10px;
    font-weight: bold;
}

.form-horizontal input,
.form-horizontal select,
.form-horizontal button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-horizontal button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.form-horizontal button:hover {
    background-color: #45a049;
}

.editBtn {
    background: none;
    border: none;
    cursor: pointer;
	color: blue;
}
.trashBtn {
    background: none;
    border: none;
    cursor: pointer;
	color: red;
}
.addSubBtn {
    background: none;
    border: none;
    cursor: pointer;
	color: black;
}

.subcat {
	padding: 40px;
	font-size: large;
	color: green;
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.modal.is-active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*@media (max-width: 768px) {
    .modal-content {
    width: 100%;
}*/

.modal-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.86);
}

.modal.is-active .modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 20px;
    border-radius: 0;
    overflow: auto;
}
/*@media (max-width: 768px) {
    .modal.is-active .modal-content {
    width: 100%;
}*/

#oriban-options {
    display: none;
    max-height: 200px; /* Limite de altura para a lista */
    overflow-y: auto; /* Barra de rolagem se necessário */
    border: 1px solid #ccc;
    background-color: white;
    position: absolute;
    z-index: 1000;
    width: 100%;
}

.select-option {
    padding: 10px;
    cursor: pointer;
}

.select-option:hover {
    background-color: #f0f0f0;
}

/* Esconder colunas específicas em dispositivos móveis */
@media screen and (max-width: 768px) {
    /*.table th:nth-child(2), .table td:nth-child(2), /* Origem */
    /*.table th:nth-child(3), .table td:nth-child(3), /* Valor */
    /*.table th:nth-child(4), .table td:nth-child(4), /* Parcela */
    .table th:nth-child(5), .table td:nth-child(5), /* Data Trans. */
    /*.table th:nth-child(6), .table td:nth-child(6), /* Pago */
    /*.table th:nth-child(7), .table td:nth-child(7), /* Data Pag. */
    .table th:nth-child(8), .table td:nth-child(8) { /* Tipo */
        display: none;
    }

    .table th:first-child, .table td:first-child,
    .table th:last-child, .table td:last-child {
        width: 50%;
    }
}


/* Estilos adicionais para responsividade */
        @media (max-width: 768px) {
            .hide-mobile {
                display: none;
            }
        }


@media (max-width: 768px) {
    .field.is-grouped-multiline .control {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .field.is-grouped-multiline .control {
        flex: 1 1 auto;
        max-width: auto;
    }
}

.field {
    margin-bottom: 20px;
}

.field .control {
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
}

.card-content {
    display: flex;
    flex-direction: column;
}

/*body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
}*/

.modal-card-custom {
    max-width: 90%;
    width: 800px;
}

.card-container {
	display: flex;
	flex-wrap: wrap;
	/*gap: 20px;*/
}	

@media screen and (max-width: 768px) {

	.card-container {
		display: grid;
		flex-wrap: wrap;
		/*gap: 20px;*/
	}
	.modal-card-title {
		font-size: 1rem;
	}
}
#card-res-dia {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 80%;
    text-align: center;
    padding: 10px;
    transition: transform 0.2s;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    text-align: center;
    padding: 10px;
    transition: transform 0.2s;
}

.card:hover {
    /*transform: scale(1.05);*/
}
#card-expand:hover {
	transform: scale(1.05);
}

.icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.up {
    color: #20c997;
}

.down {
    color: #fd7e14;
}

.thumb-up {
    color: #28a745;
}

.amount {
    font-size: 1.5em;
    font-weight: bold;
}

.description {
    color: #6c757d;
    margin: 10px 0;
}

.details-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.details-link a:hover {
    text-decoration: underline;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}
.inactive-select {
    pointer-events: none;
    background-color: #e9ecef;
    color: #6c757d;
}


/*.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-trigger {
    color: #007bff;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.tooltip-content {
    visibility: hidden;
    width: 200px;
    background-color: #17a2b8;
    color: white;
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 100%; /* Posiciona a dica acima do elemento */
    /*left: 100%;
    margin-left: -100px; /* Centraliza a dica horizontalmente */
   /* opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%; /* Posiciona a seta abaixo do conteúdo */
    /*left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #17a2b8 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}*/
/* Estilo personalizado para tooltip com HTML */
.tooltip-trigger {
    color: #007bff;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-content {
    visibility: hidden;
    width: 200px;
    /*background-color: #555;	
    color: #fff;*/
	background-color: #17a2b8;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1000;
    bottom: 125%; /* Posiciona o tooltip acima do texto */
    left: 50%;
    margin-left: -80px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Transição suave para a opacidade */
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .modal-form .field .control,
    .form-horizontal .field .control,
    .form-group .control {
        width: 100%;
    }

    .modal-form .field .input,
    .modal-form .field .select select,
    .form-horizontal .field .input,
    .form-horizontal .field .select select,
    .form-group select, 
    .form-group input {
        width: 100%;
        box-sizing: border-box;
        font-size: 1.2rem; /* Aumenta o tamanho da fonte */
        padding: 12px; /* Aumenta o padding para inputs mais largos */
    }
    
    .modal-form label,
    .form-horizontal label,
    .form-group label {
        font-size: 1rem; /* Opcional: Aumenta o tamanho da fonte do label */
    }
}
