.pct-app { max-width: 1100px; margin: 0 auto; font-size: 15px; }
.pct-app * { box-sizing: border-box; }

.pct-controlli { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 12px; }
.pct-campo-form { display: flex; flex-direction: column; gap: 4px; }
.pct-campo-form > span { font-weight: 600; font-size: 14px; }
.pct-campo-form select,
.pct-campo-form input[type="date"] { padding: 8px 10px; font-size: 16px; border: 1px solid #b0b7c0; border-radius: 6px; background: #fff; min-height: 42px; }
.pct-campo-form select { min-width: 240px; }
.pct-data-riga { display: flex; gap: 6px; align-items: center; }
.pct-nav { width: 42px; height: 42px; font-size: 22px; line-height: 1; border: 1px solid #b0b7c0; border-radius: 6px; background: #f4f5f7; cursor: pointer; }
.pct-nav:hover { background: #e7e9ec; }

.pct-legenda { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.pct-chip { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; }

.pct-msg { min-height: 1.5em; margin: 6px 0 10px; font-weight: 600; }
.pct-msg-ok { color: #1e7e34; }
.pct-msg-errore { color: #b32d2e; }

.pct-titolo-giorno { margin: 10px 0 6px; }
.pct-gruppo { margin-bottom: 22px; }
.pct-gruppo h4 { margin: 10px 0 6px; font-size: 15px; }
.pct-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pct-tabella { border-collapse: collapse; width: 100%; min-width: 560px; table-layout: fixed; }
.pct-tabella th,
.pct-tabella td { border: 1px solid #d5d9de; padding: 0; text-align: center; height: 40px; font-size: 13px; }
.pct-tabella thead th { background: #2c3e50; color: #fff; padding: 6px 4px; }
.pct-tabella th.pct-ora { background: #f4f5f7; width: 110px; font-weight: 600; white-space: nowrap; padding: 0 6px; }
.pct-tabella thead th:first-child { width: 110px; }

.pct-libero { width: 100%; height: 100%; min-height: 40px; border: 0; background: #eef7ee; color: #2e7d32; font-size: 13px; cursor: pointer; }
.pct-libero:hover,
.pct-libero:focus { background: #c8e6c9; outline: none; }
.pct-libero:disabled { opacity: .5; cursor: wait; }
.pct-occupato { font-weight: 600; padding: 0 4px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pct-passato { background: #f0f0f0; color: #aaa; }
.pct-pausa td { background: repeating-linear-gradient(45deg, #f7f7f7, #f7f7f7 8px, #eeeeee 8px, #eeeeee 16px); color: #666; font-style: italic; height: 32px; }

.pct-caricamento { opacity: .5; pointer-events: none; }

/* Planning (sola lettura) */
.pct-vuoto { background: #fff; }
.pct-conteggio { font-size: 14px; font-weight: 400; color: #555; text-transform: none; }
.pct-oggi { height: 42px; padding: 0 14px; border: 1px solid #b0b7c0; border-radius: 6px; background: #f4f5f7; cursor: pointer; font-size: 14px; }
.pct-oggi:hover { background: #e7e9ec; }
.pct-aggiornato { font-size: 13px; color: #666; padding-bottom: 10px; }
.pct-modo-planning .pct-tabella { min-width: 720px; }

/* Riquadro export Excel nel planning (solo segreteria) */
.pct-export{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0 14px;padding:10px 12px;border:1px solid #c3c4c7;border-radius:6px;background:#f6f7f7}
.pct-export form{margin:0}
.pct-export label{display:inline-flex;align-items:center;gap:4px}
.pct-export .pct-btn-export{cursor:pointer;padding:6px 12px;border-radius:4px;border:1px solid #2271b1;background:#fff;color:#2271b1;font:inherit;line-height:1.3}
.pct-export .pct-btn-export.button-primary{background:#2271b1;color:#fff}
.pct-export .pct-btn-export:hover{filter:brightness(.95)}

/* Inserimento blocchi da pagina pubblica protetta da password ([blocchi_segreteria]) */
.pct-blocchi-front { max-width: 1100px; margin: 0 auto; font-size: 15px; }
.pct-blocchi-front * { box-sizing: border-box; }
.pct-blocchi-front .notice { margin: 10px 0; padding: 8px 12px; border-left: 4px solid #72aee6; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pct-blocchi-front .notice p { margin: 4px 0; }
.pct-blocchi-front .notice-success { border-left-color: #00a32a; background: #f0f8f1; }
.pct-blocchi-front .notice-error { border-left-color: #d63638; background: #fcf0f1; }
.pct-blocchi-front .notice-warning { border-left-color: #dba617; background: #fcf9e8; }
.pct-blocchi-front .form-table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.pct-blocchi-front .form-table th,
.pct-blocchi-front .form-table td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid #e2e4e7; }
.pct-blocchi-front .form-table th { width: 190px; font-weight: 600; }
.pct-blocchi-front .description { color: #646970; font-size: 13px; margin: 6px 0 0; }
.pct-blocchi-front select,
.pct-blocchi-front input[type="date"] { padding: 6px 8px; font-size: 15px; border: 1px solid #b0b7c0; border-radius: 6px; background: #fff; }
.pct-blocchi-front .button { cursor: pointer; padding: 8px 14px; border-radius: 4px; border: 1px solid #2271b1; background: #fff; color: #2271b1; font: inherit; }
.pct-blocchi-front .button-primary { background: #2271b1; color: #fff; }
.pct-blocchi-front .button:hover { filter: brightness(.95); }
.pct-blocchi-front .widefat { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.pct-blocchi-front .widefat th,
.pct-blocchi-front .widefat td { text-align: left; padding: 7px 8px; border: 1px solid #e2e4e7; }
.pct-blocchi-front .widefat thead th { background: #2c3e50; color: #fff; }
.pct-blocchi-front .striped tbody tr:nth-child(odd) { background: #f6f7f7; }
@media (max-width: 700px) {
	.pct-blocchi-front .form-table th,
	.pct-blocchi-front .form-table td { display: block; width: 100%; border: 0; padding: 6px 0; }
	.pct-blocchi-front .form-table tr { display: block; border-bottom: 1px solid #e2e4e7; padding: 6px 0; }
	.pct-blocchi-front .widefat { display: block; overflow-x: auto; white-space: nowrap; }
}
