/* ============================================================
   Team Tessarin - global styles
   Mobile-first, design ispirato ai file originali di Silvia
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1f2937;
    --primary-light: #374151;
    --accent: #e63946;
    --accent-blue: #2563eb;
    --accent-orange: #f39c12;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --background: #f5f7fa;
    --card: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --text-soft: #6b7280;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* ====== Layout core ====== */
.view { display: none; min-height: 100vh; }
.view.active { display: block; }

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px;
}

.card {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* ====== Topbar ====== */
.topbar {
    position: sticky;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.topbar.shop-cucina { background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%); }
.topbar.shop-sala   { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); }
.topbar.shop-pizzeria { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); }
.topbar.shop-hotel  { background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%); }
.topbar.shop-produzione { background: linear-gradient(135deg, #047857 0%, #34d399 100%); }

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}
.topbar-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    flex: 1;
    text-align: center;
}
.topbar-sub {
    font-size: 13px;
    text-align: center;
    opacity: 0.85;
    margin-top: 2px;
}

/* ====== Buttons ====== */
.btn {
    display: inline-block;
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, opacity 0.2s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--accent); color: #fff; }

.btn-ghost {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

/* ====== Login ====== */
.login-card {
    max-width: 400px;
    margin: 60px auto 16px;
    background: var(--card);
    border-radius: 18px;
    padding: 32px 24px;
    box-shadow: var(--shadow);
}
.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    text-align: center;
    color: var(--primary);
    margin-bottom: 4px;
}
.login-subtitle {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 28px;
    font-size: 14px;
}
.input-group { margin-bottom: 12px; position: relative; }
.input-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fafbfc;
    transition: border-color 0.2s, background 0.2s;
}
.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}
.password-group input { padding-right: 48px; }
.toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 10px;
}
.login-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}
.login-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }
.login-error {
    color: var(--danger);
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 8px;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: #1f2937;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn-google:hover { background: #f8fafc; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.btn-google:active { transform: scale(0.99); }
.btn-google svg { flex-shrink: 0; }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 18px 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-sep {
    color: var(--text-soft);
    margin: 0 6px;
}

.forgot-intro {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
}

.mans-import-card {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border: 1px solid #c7d2fe;
}
.mans-import-hint {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.45;
    margin: 8px 0 0;
}
.btn-mini-secondary {
    background: var(--accent, #6366f1);
    color: #fff;
    border: none;
}
.btn-mini-secondary:hover { opacity: 0.9; }

.copy-progress {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 13px;
    color: #0c4a6e;
    line-height: 1.5;
}
.copy-progress.success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.copy-progress.error   { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }

/* Tasks view: barra azioni di ruolo (Il mio ruolo / Mansionari) */
.role-action-bar {
    display: flex;
    gap: 8px;
    padding: 8px 16px 0;
    flex-wrap: wrap;
}
.btn-role-action {
    background: rgba(255,255,255,0.15);
    color: inherit;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.btn-role-action:hover { background: rgba(255,255,255,0.25); }

/* Box "Il mio ruolo" */
.role-info-box {
    background: var(--card, #fff);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 16px;
    margin: 12px 0;
    border-left: 4px solid var(--primary, #1f2937);
}
.role-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--primary, #1f2937);
    font-size: 15px;
}
.role-info-content {
    color: var(--text, #1f2937);
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.role-info-content em {
    color: var(--text-soft, #6b7280);
    font-style: italic;
}

/* Task con foto richiesta */
.task-photo-section {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-photo {
    background: #fef3c7;
    border: 1.5px solid #fbbf24;
    color: #78350f;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-photo:hover { background: #fde68a; }
.btn-photo:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-photo.uploading {
    background: #e0e7ff;
    border-color: #6366f1;
    color: #312e81;
    cursor: wait;
}
.photo-taken-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.task-photo-required-hint {
    color: #92400e;
    font-size: 12px;
    font-style: italic;
}
.task.photo-blocked .task-checkbox {
    opacity: 0.4;
    pointer-events: none;
}

/* ====== Welcome / selector ====== */
.welcome {
    text-align: center;
    padding: 24px 16px 8px;
}
.welcome h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--primary);
}
.welcome-sub { color: var(--text-soft); margin-top: 4px; font-size: 14px; }

.manager-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #fff;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.manager-banner-title { font-weight: 700; font-size: 16px; }
.manager-banner-sub { font-size: 13px; opacity: 0.95; margin-top: 2px; }
.manager-banner button { width: auto; flex-shrink: 0; }

.filter-row {
    margin-bottom: 14px;
}
.filter-row label {
    display: block;
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 6px;
}
.filter-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
}
.filter-row select:disabled {
    background: #f3f4f6;
    color: var(--text-soft);
    cursor: not-allowed;
}

/* ====== Filter pills ====== */
.filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px 12px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: all 0.15s;
}
.pill.active {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

/* ====== Task list ====== */
.task {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--card);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--text-soft);
    transition: border-color 0.2s, opacity 0.2s, background 0.2s;
}
.task.completed {
    border-left-color: var(--success);
    opacity: 0.62;
    background: #ecfdf5;
}
.task-checkbox {
    appearance: none;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 2.5px solid var(--text-soft);
    border-radius: 8px;
    margin-top: 2px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.task-checkbox:checked {
    background: var(--success);
    border-color: var(--success);
}
.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 600; color: var(--text); line-height: 1.4; }
.task.completed .task-title { text-decoration: line-through; color: var(--text-soft); }
.task-desc { font-size: 13px; color: var(--text-soft); margin-top: 4px; line-height: 1.4; }
.task-meta { font-size: 11px; color: var(--text-soft); margin-top: 6px; }

/* ====== Empty state ====== */
.empty-state {
    text-align: center;
    color: var(--text-soft);
    padding: 60px 20px;
    font-size: 14px;
}

/* ====== Dashboard ====== */
.shop-stat-card {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.shop-stat-name {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.dept-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--border);
}
.dept-stat-row:last-child { border-bottom: none; }
.dept-stat-name { color: var(--text); }
.dept-stat-progress {
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
}
.dept-stat-progress.full { color: var(--success); font-weight: 600; }

/* ====== Section title (in tasks view) ====== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
    margin-top: 8px;
    padding-left: 4px;
}

/* ====== Toast ====== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

/* ====== Manager banner (multi action) ====== */
.manager-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.manager-banner-actions .btn { width: auto; padding: 10px 16px; font-size: 13px; }
@media (min-width: 540px) {
    .manager-banner-actions { flex-direction: row; }
}

/* ====== Pending assignment banner ====== */
.pending-banner {
    background: #fef3c7;
    border: 1.5px solid #fbbf24;
    color: #78350f;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.pending-banner-icon { font-size: 32px; flex-shrink: 0; }
.pending-banner-title { font-weight: 700; font-size: 16px; }
.pending-banner-sub { font-size: 13px; margin-top: 4px; line-height: 1.4; }

/* ====== Admin view ====== */
.admin-filters { padding: 14px; }
.admin-search {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fafbfc;
    margin-bottom: 12px;
}
.admin-search:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}
.admin-tabs {
    display: flex;
    gap: 6px;
}
.pill-tab {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.pill-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.user-card {
    background: var(--card);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.user-card:active { transform: scale(0.98); }
.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.user-name { font-weight: 600; color: var(--text); }
.user-email { font-size: 12px; color: var(--text-soft); }
.user-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.user-tag {
    background: #f3f4f6;
    color: var(--text-soft);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
}
.user-tag.pending { background: #fef3c7; color: #92400e; }
.user-tag.super { background: #fde68a; color: #78350f; font-weight: 700; }
.user-tag.manager { background: #dbeafe; color: #1e3a8a; }
.user-tag.shop { background: #e0e7ff; color: #3730a3; }

/* ====== Modal ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(2px);
}
.modal-card {
    background: var(--card);
    border-radius: 18px 18px 0 0;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.2);
    animation: slide-up 0.25s ease-out;
}
@media (min-width: 600px) {
    .modal-overlay { align-items: center; padding: 20px; }
    .modal-card { border-radius: 18px; }
}
@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.modal-title { font-weight: 700; font-size: 18px; color: var(--primary); }
.modal-subtitle { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.btn-close-modal {
    border: none;
    background: transparent;
    font-size: 22px;
    color: var(--text-soft);
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
}
.modal-body { display: flex; flex-direction: column; gap: 18px; }
.modal-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}
.assignment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}
.assignment-text { flex: 1; font-size: 14px; }
.assignment-text strong { color: var(--text); }
.assignment-text span { color: var(--text-soft); font-size: 12px; }
.btn-remove-assign {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}
.checkbox-label input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ====== Mansionari view ====== */
.mans-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.mans-section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--primary);
    margin: 0;
}
/* Selettore Giornaliere/Settimanali nel pannello Categorie e Task (P1.4, 2026-07-22) */
.mans-cad-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.mans-cad-tab {
    padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
    border: 1.5px solid var(--border); background: #fff; color: var(--text-soft); cursor: pointer;
}
.mans-cad-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-mini {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    transition: all 0.15s;
}
.btn-mini:hover { background: #f9fafb; }
.btn-mini-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-mini-primary:hover { background: var(--primary-light); }
.btn-mini-danger { color: var(--danger); border-color: var(--danger); }
.btn-mini-danger:hover { background: #fef2f2; }
.btn-mini-ghost { background: transparent; border-color: transparent; color: var(--text-soft); padding: 4px 8px; }

.mans-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid var(--border);
}
.mans-row.inactive { opacity: 0.5; }
/* 2026-08-26: stessa resa anche per le CATEGORIE disattivate (prima erano indistinguibili
   dalle attive nel pannello, pur essendo invisibili agli operatori) */
.mans-cat-block.inactive { opacity: 0.55; }
.mans-cat-off { font-size: 11px; font-weight: 700; color: #b00020; background: #fde2e2;
    border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.mans-row-text { flex: 1; min-width: 0; }
.mans-row-name { font-weight: 600; font-size: 14px; color: var(--text); }
.mans-row-sub { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.mans-row-actions { display: flex; gap: 4px; flex-shrink: 0; }

.mans-cat-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.mans-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f3f4f6;
    cursor: pointer;
    user-select: none;
}
.mans-cat-toggle { font-size: 12px; color: var(--text-soft); width: 14px; flex-shrink: 0; }
.mans-cat-name { flex: 1; font-weight: 600; color: var(--primary); }
.mans-cat-count { font-size: 12px; color: var(--text-soft); }
.mans-cat-tasks {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}
.mans-cat-tasks.collapsed { display: none; }
.mans-cat-add-task {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    text-align: center;
}

textarea.admin-search { resize: vertical; min-height: 80px; font-family: inherit; }

/* ===== Editor turno — timeline drag ===== */
/* Caselle "copia su altri giorni" (#7 editor turno, #8 copia giorno) */
.copy-days { display:flex; flex-wrap:wrap; gap:6px; }
.copy-days .copy-day { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:#333; background:#f4f6f8; border:1px solid #e2e5ea; border-radius:8px; padding:6px 10px; cursor:pointer; }
.copy-days .copy-day input { width:16px; height:16px; cursor:pointer; }
.shift-presenza-row { display:flex; align-items:center; gap:10px; font-size:15px; font-weight:600; padding:10px 12px; background:#f4f6f8; border:1px solid #e2e5ea; border-radius:10px; cursor:pointer; }
.shift-presenza-row input { width:20px; height:20px; cursor:pointer; }
.shift-hint { font-size:12px; color:#6b7280; line-height:1.5; margin:10px 0 4px; }
.shift-timeline { position:relative; height:78px; background:#f7f8fa; border:1px solid #e2e5ea; border-radius:10px; margin:6px 0 4px; user-select:none; touch-action:none; overflow:hidden; }
.shift-tick { position:absolute; top:0; bottom:0; width:1px; background:#e7e9ee; }
.shift-tick.major { background:#d3d7de; }
.shift-tick span { position:absolute; top:3px; left:3px; font-size:9px; color:#9aa1ac; font-weight:600; }
.shift-bar { position:absolute; top:26px; height:44px; border-radius:7px; box-shadow:0 1px 3px rgba(16,24,40,.18); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#1f2937; cursor:move; overflow:hidden; box-sizing:border-box; border:1px solid rgba(0,0,0,.06); }
.shift-bar .grip { position:absolute; top:0; bottom:0; width:10px; cursor:ew-resize; }
.shift-bar .grip.l { left:0; } .shift-bar .grip.r { right:0; }
.shift-bar .x { position:absolute; top:2px; right:3px; font-size:11px; color:#374151; cursor:pointer; background:rgba(255,255,255,.85); border-radius:4px; line-height:1.1; padding:0 4px; z-index:2; }
.shift-bar.sel { outline:2px solid var(--primary, #1f6f4a); outline-offset:-1px; }
.shift-summary { font-size:13px; color:#374151; min-height:20px; margin-top:6px; }
.shift-summary b { font-weight:800; }
#shift-tl-wrap.is-presenza { opacity:.4; pointer-events:none; filter:grayscale(.4); }
