
.rs-login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.rs-login-container .form-group {
    margin-bottom: 15px;
}

.rs-login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.rs-login-container input[type="text"],
.rs-login-container input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.rs-login-container button {
    background: #0073aa;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.rs-lista-visite table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rs-lista-visite th,
.rs-lista-visite td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.rs-lista-visite th {
    background-color: #f2f2f2;
}

.rs-lista-visite tr.clickable-row:hover {
    background-color: #f5f5f5 !important;
}

.rs-table-container {
    width: 100%;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.rs-table-header {
    background-color: #f2f2f2;
    font-weight: bold;
    z-index: 10;
}

.rs-table-header.sticky-header {
    position: fixed;
    top: 0;
    width: calc(100% - 40px);
    max-width: 1200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.rs-table-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}

.rs-table-row:last-child {
    border-bottom: none;
}

.rs-table-cell {
    padding: 8px;
    flex: 1;
    min-width: 100px;
    box-sizing: border-box;
}

.rs-table-cell textarea {
    width: 100%;
    min-height: 40px;
}

.visita-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.riepilogo-totali {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.rs-navigazione {
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
}

.rs-azioni {
    margin-top: 20px;
}

.error {
    color: red;
    padding: 10px;
    background: #ffecec;
    border: 1px solid red;
    border-radius: 3px;
    margin-bottom: 15px;
}

.success {
    color: green;
    padding: 10px;
    background: #f0fff0;
    border: 1px solid green;
    border-radius: 3px;
    margin-bottom: 15px;
}

.rs-note-aggiuntive {
    margin-bottom: 20px;
}

.rs-note-aggiuntive textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .rs-table-row {
        flex-direction: column;
    }
    
    .rs-table-cell {
        min-width: 100%;
    }
    
    .rs-table-header.sticky-header {
        width: calc(100% - 20px);
    }
}
