body {
    font-family: 'Roboto', Arial, sans-serif;
    padding: 20px;
    max-width: 960px;
    margin: auto;
    background-color: #f1f3f4;
    color: #202124;
}

h1 {
    color: #1a73e8;
    text-align: center;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background-color: #e8eaed;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: bold;
    color: #202124;
    font-size: 16px;
}

.col-valor {
    word-break: normal!important;
}

.col-data {
   min-width: 35px;
}

.tab:hover {
    background-color: #d2e3fc;
}

.tab-content {
    display: block;
}

.hidden {
    display: none;
}

form {
    margin: 20px 0;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 16px;
}

form input,
form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    margin-top: 6px;
    margin-bottom: 14px;
    font-size: 16px;
    background-color: #f8f9fa;
}

form input {
	width: calc(100% - 24px);
}

form button {
    background-color: #1a73e8;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: bold;
    font-size: 16px;
}

form button:hover {
    background-color: #1558b0;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    word-break: break-word;
    min-width: 100%;
}

th,
td {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    padding: 12px 14px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 16px;
    text-align: left;
}

tr:last-child td {
    border-bottom: none;
}

button {
    padding: 8px 14px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: bold;
    font-size: 14px;
}

button:hover {
    opacity: 0.9;
}

button[onclick*="editItem"] {
    background-color: #fbbc04;
    color: #202124;
}

button[onclick*="deleteItem"] {
    background-color: #ea4335;
    color: white;
}

button[onclick^="showForm"] {
    background-color: #34a853;
    color: white;
}

p {
    font-size: 17px;
    font-weight: 500;
    margin-top: 20px;
}

/* Responsivo para celulares */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .tab {
        flex: 1 1 100%;
        font-size: 17px;
        padding: 14px;
    }

    form label {
        font-size: 17px;
    }

    form input,
    form select {
        font-size: 16px;
        padding: 12px;
    }

    form button,
    button {
        font-size: 16px;
        padding: 12px 18px;
    }

    table,
    th,
    td {
        font-size: 15px;
        padding: 12px 10px;
    }

    .col-local,
    .col-valor,
    .col-pago {
        display: none !important;
    }

    

    .details-card {
        background: #fff;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        font-size: 16px;
        margin-top: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .details-card p {
        margin: 6px 0;
    }
}

.details-card {
    display: block;
}
.action-buttons {
    gap: 4px;
    align-items: center;
    min-width: 96px;
}

.action-buttons button {
    background: none;
    border: none;
    padding: 5px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.action-buttons button:hover {
    background-color: #e0e0e0;
    color: #1a73e8;
}

/* Cores específicas para cada tipo de ação */

.action-buttons button[title="Editar"] {
    color: #fbbc04; /* Cor de destaque para editar */
}

.action-buttons button[title="Editar"]:hover {
    background-color: #fbbc04;
    color: white;
}

.action-buttons button[title="Excluir"] {
    color: #ea4335; /* Cor de alerta para excluir */
}

.action-buttons button[title="Excluir"]:hover {
    background-color: #ea4335;
    color: white;
}

.action-buttons button[title="Detalhes"] {
    color: #34a853; /* Cor para detalhes */
}

.action-buttons button[title="Detalhes"]:hover {
    background-color: #34a853;
    color: white;
}
