.calendar-wrapper {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.calendar-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
}

.calendar-table {
    border-collapse: collapse;
    table-layout: fixed;
    width: max-content; /* importantissimo per far lavorare lo scroll orizzontale */
    min-width: 100%;
}

/* larghezze: devono combaciare con il tuo mock */
.calendar-table th,
.calendar-table td {
    border: 1px solid #e3e3e3;
    width: 120px;
    min-width: 120px;
    padding: 8px;
    vertical-align: top;
    background: #fff;
}

/* Colonna sticky (lavorazioni) */
.sticky-col {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 250px !important;
    min-width: 250px !important;
    background: #fff;
}

/* header sticky in alto */
thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f5f5f5;
    font-weight: 600;
}

/* incrocio sticky (top + left) */
thead .sticky-col {
    z-index: 6;
    background: #f5f5f5;
}

.month-row th {
    text-align: center;
    font-size: 12px;
    letter-spacing: .5px;
}

.week-row th {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.row-title {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    padding-top: 18px;
}

.data-cell {
    background: #fff;
}

.calendar-card {
    background: #f7f7f7;
    border-radius: 6px;
    padding: 8px;
    box-shadow: inset 0 0 0 1px #dedede;
}

.card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.status {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    line-height: 1.1;
}

.card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.card-body .sub {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

.card-body .small {
    font-size: 10px;
    color: #888;
}