Files
zibo-dashboard/public/userarea/include/worksheets-linked-modals.php
T
2026-10-20 08:59:38 +02:00

366 lines
8.8 KiB
PHP

<style>
.ws-tabs {
display: flex;
gap: 8px;
border-bottom: 2px solid #dbeafe;
margin-bottom: 16px;
flex-wrap: wrap;
}
.ws-tab {
border: 0;
background: #f1f5f9;
color: #475569;
font-weight: 700;
padding: 10px 18px;
border-radius: 12px 12px 0 0;
cursor: pointer;
font-size: 1rem;
}
.ws-tab.active {
background: #0d6efd;
color: #fff;
}
.ws-tab[data-tab="disegni"].active {
background: #6f42c1;
}
.ws-tab[data-tab="strumenti"].active {
background: #fd7e14;
}
.ws-tab[data-tab="cicli"].active {
background: #0f9d77;
}
.ws-tab-count {
display: inline-block;
min-width: 24px;
padding: 1px 7px;
margin-left: 6px;
border-radius: 999px;
background: rgba(0, 0, 0, .12);
font-size: .8rem;
}
.ws-tab-pane {
display: none;
}
.ws-tab-pane.active {
display: block;
}
.ws-disegni-list {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 12px;
}
.ws-disegno-item {
border: 2px solid #6f42c1;
background: #fff;
color: #6f42c1;
font-weight: 700;
padding: 8px 14px;
border-radius: 10px;
cursor: pointer;
}
.ws-disegno-item.active {
background: #6f42c1;
color: #fff;
}
.ws-disegno-item[data-kind="strumenti"] {
border-color: #fd7e14;
color: #fd7e14;
}
.ws-disegno-item[data-kind="strumenti"].active {
background: #fd7e14;
color: #fff;
}
.ws-disegno-item[data-kind="cicli"] {
border-color: #0f9d77;
color: #0f9d77;
}
.ws-disegno-item[data-kind="cicli"].active {
background: #0f9d77;
color: #fff;
}
.ws-disegno-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
margin-bottom: 8px;
flex-wrap: wrap;
}
.ws-disegno-viewer {
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden;
background: #f8fafc;
height: 70vh;
}
.ws-disegno-viewer iframe {
width: 100%;
height: 100%;
border: 0;
background: #fff;
display: block;
}
.ws-disegno-viewer .img-wrap {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: #111;
}
.ws-disegno-viewer img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
/* ================================================================
Dettaglio foglio in sola lettura (stesse sezioni e colori
di manage-worksheet.php)
================================================================ */
.wsd-summary {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 10px;
}
.wsd-sum-item {
background: #fff;
border: 1px solid #e5edf6;
border-radius: 14px;
padding: 10px 14px;
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
min-width: 0;
}
.wsd-sum-value {
font-size: 1.05rem;
font-weight: 800;
color: #111827;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.wsd-section {
border: 1px solid #e7edf5;
border-radius: 16px;
background: #fff;
overflow: hidden;
height: 100%;
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.wsd-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
padding: 10px 16px;
font-weight: 800;
font-size: 1rem;
}
.wsd-head-badge {
background: rgba(255, 255, 255, .7);
border-radius: 999px;
padding: 3px 10px;
font-size: .78rem;
font-weight: 700;
}
.wsd-body {
padding: 14px 16px;
}
.wsd-blue .wsd-head {
background: linear-gradient(135deg, #dbeafe, #bfdbfe);
color: #123b7a;
}
.wsd-green .wsd-head {
background: linear-gradient(135deg, #dcfce7, #bbf7d0);
color: #14532d;
}
.wsd-orange .wsd-head {
background: linear-gradient(135deg, #ffedd5, #fed7aa);
color: #9a3412;
}
.wsd-purple .wsd-head {
background: linear-gradient(135deg, #ede9fe, #ddd6fe);
color: #5b21b6;
}
.wsd-gray .wsd-head {
background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
color: #374151;
}
.wsd-cyan .wsd-head {
background: linear-gradient(135deg, #cffafe, #a5f3fc);
color: #155e75;
}
.wsd-fields {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
gap: 12px 16px;
}
.wsd-label {
font-size: .75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .03em;
color: #6b7280;
margin-bottom: 2px;
}
.wsd-value {
font-size: 1.02rem;
font-weight: 700;
color: #111827;
word-break: break-word;
}
.wsd-empty {
color: #b6bec9 !important;
font-weight: 400 !important;
font-style: italic;
}
.wsd-text-block {
margin-top: 14px;
}
.wsd-text {
background: #f8fafc;
border: 1px solid #e9eef5;
border-radius: 10px;
padding: 10px 12px;
white-space: pre-wrap;
word-break: break-word;
color: #1f2937;
}
.wsd-meta {
margin-top: 14px;
padding-top: 10px;
border-top: 1px dashed #e5e7eb;
font-size: .82rem;
color: #6b7280;
}
.wsd-table thead th {
background: #eef4fb !important;
color: #163a63;
font-weight: 800;
font-size: .88rem;
}
.wsd-speed {
width: 100%;
border-collapse: separate;
border-spacing: 0 6px;
}
.wsd-speed thead th {
font-size: .75rem;
font-weight: 700;
text-transform: uppercase;
color: #6b7280;
text-align: center;
}
.wsd-speed tbody th {
width: 70px;
color: #5b21b6;
font-weight: 800;
}
.wsd-speed td {
text-align: center;
font-size: 1.15rem;
font-weight: 800;
color: #111827;
background: #f8f7ff;
border-radius: 10px;
padding: 8px;
}
@media (max-width: 992px) {
.wsd-summary {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
</style>
<!-- MODALE LISTA FOGLI DI LAVORO -->
<div class="modal fade" id="worksheetsListModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-worksheet-list">
<div class="modal-content">
<div class="modal-header" style="background:linear-gradient(135deg,#e7f1ff,#d6e9ff);">
<div>
<h5 class="modal-title mb-0">
<i class="fa-solid fa-clipboard-list me-2"></i>Fogli di lavoro collegati
</h5>
<small class="text-muted">Elenco fogli associati al profilo selezionato</small>
</div>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<input type="hidden" id="wl_idmatrice">
<div class="fw-semibold mb-3" id="wl_matrice_name" style="color:#0b3d91;"></div>
<div id="worksheetsListContainer">
<div class="text-muted">Caricamento fogli di lavoro...</div>
</div>
</div>
</div>
</div>
</div>
<!-- MODALE DETTAGLIO FOGLIO DI LAVORO -->
<div class="modal fade" id="worksheetDetailModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-worksheet-view">
<div class="modal-content" style="min-height:92vh;">
<div class="modal-header" style="background:linear-gradient(135deg,#e7f1ff,#d6e9ff);">
<div>
<h5 class="modal-title mb-0">
<i class="fa-solid fa-file-lines me-2"></i>Dettaglio foglio di lavoro
</h5>
<small class="text-muted">Sola lettura · per modificare usa "Apri foglio completo"</small>
</div>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body" id="worksheetDetailContainer">
<div class="text-muted">Caricamento dettaglio foglio...</div>
</div>
</div>
</div>
</div>