/* Piero Sinergia - Public CSS */

.ps-area-dipendente {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ps-header {
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 30px;
}

.ps-header h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.ps-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ps-message {
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 3px;
}

.ps-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ps-form-evento {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.ps-form-evento h3 {
    margin-top: 0;
    font-size: 18px;
}

.ps-form-row {
    margin-bottom: 15px;
}

.ps-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.ps-form-row input[type="datetime-local"],
.ps-form-row select,
.ps-form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.ps-button {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.ps-button:hover {
    background: #555;
}

.ps-button.ps-disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ps-button.ps-secondary {
    background: #999;
}

.ps-button.ps-secondary:hover {
    background: #777;
}

.ps-button-small {
    padding: 5px 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.ps-button-small:hover {
    background: #555;
}

.ps-nav-mesi {
    text-align: center;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.ps-nav-mesi strong {
    margin: 0 20px;
    font-size: 16px;
}

.ps-contabilita-dipendente {
    background: #e8f5e9;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #c8e6c9;
    border-radius: 3px;
}

.ps-contabilita-dipendente h3 {
    margin-top: 0;
    font-size: 18px;
}

.ps-contabilita-dipendente h4 {
    margin: 10px 0 8px 0;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.ps-contabilita-dipendente p {
    margin: 5px 0;
    font-size: 13px;
}

.ps-pagamenti-accordion {
    margin-top: 10px;
}

.ps-pagamenti-header {
    background: #c8e6c9;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 3px;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ps-pagamenti-header:hover {
    background: #b8d6b9;
}

.ps-pagamenti-content {
    display: none;
    margin-top: 8px;
}

.ps-pagamenti-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 12px;
}

.ps-pagamenti-table thead {
    background: #e3f2fd;
}

.ps-pagamenti-table th,
.ps-pagamenti-table td {
    padding: 6px 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.ps-pagamenti-table th {
    font-weight: 600;
    font-size: 12px;
}

.ps-pagamenti-table td {
    font-size: 12px;
}

.ps-pagamenti-table td:last-child {
    text-align: right;
}

.ps-cronologia {
    margin: 30px 0;
}

.ps-cronologia h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.ps-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ps-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ps-table thead {
    background: #f5f5f5;
}

.ps-table th,
.ps-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 13px;
}

.ps-table th {
    font-weight: 600;
}

.ps-table tr.ps-evento-titolare {
    background: #fff3cd;
}

.ps-badge-pending {
    background: #f0ad4e;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 5px;
}

.ps-pagination {
    text-align: center;
    padding: 20px 0;
}

.ps-page {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.ps-page:hover {
    background: #f5f5f5;
}

.ps-page.ps-current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.ps-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.ps-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 3px;
    position: relative;
}

.ps-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.ps-modal-close:hover {
    color: #000;
}

.ps-modal-content h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .ps-table {
        font-size: 12px;
    }
    
    .ps-table th,
    .ps-table td {
        padding: 8px 5px;
    }
    
    .ps-nav-mesi strong {
        display: block;
        margin: 10px 0;
    }
}