*{box-sizing:border-box}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}body{margin:0;font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;color:#0f172a;background:#f8fafc}.app{min-height:100vh;display:flex;flex-direction:column}.navbar{height:56px;background:#0f172a;color:#f8fafc;display:flex;align-items:center;padding:0 24px;gap:16px;justify-content:space-between;border-bottom:1px solid #1e293b}.navbar-left{display:flex;flex-direction:column}.navbar-right{display:flex;align-items:center;position:relative}.navbar-menu-desktop{display:flex}.navbar-mobile-toggle{display:none!important}@media (max-width: 768px){.navbar{padding:0 16px;flex-wrap:wrap;min-height:56px;height:auto}.navbar-left{flex:1;min-width:0}.navbar-title{font-size:14px}.navbar-subtitle{font-size:11px}.navbar-right{flex-wrap:wrap;gap:8px}.navbar-menu-desktop{display:none!important}.navbar-mobile-toggle{display:block!important}.navbar-sync-label{font-size:10px;order:-1;width:100%;text-align:right;margin-top:-8px;margin-left:0}}.navbar-sync-label{font-size:12px;color:#cbd5f5;margin-left:24px}.navbar-title{font-size:18px;font-weight:600}.navbar-subtitle{font-size:13px;opacity:.8}.content{padding:24px;display:flex;flex-direction:column;gap:24px}@media (max-width: 768px){.content{padding:16px;gap:16px}.card{min-height:auto;padding:12px 14px}}.page-title{margin:0;font-size:22px;font-weight:600;color:#0f172a}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}@media (max-width: 900px){.grid-2{grid-template-columns:1fr;gap:16px}}.employee-stats-grid{display:grid;gap:28px;align-items:stretch;grid-template-columns:1fr}@media (min-width: 720px){.employee-stats-grid{grid-template-columns:1fr 1fr}}.employee-stats-grid .employee-stats-card{min-height:180px}@media (min-width: 720px){.employee-stats-grid .employee-stats-card{min-height:320px;padding:22px 26px}.employee-stats-grid .employee-stats-card h2{font-size:22px!important}.employee-stats-grid .employee-stats-card p,.employee-stats-grid .employee-stats-card li{font-size:14px!important}.employee-stats-grid .employee-stats-card .es-val{font-size:21px!important}.employee-stats-grid .employee-stats-card .es-lbl{font-size:13px!important}.employee-stats-grid .employee-stats-card .es-kpi-big{font-size:28px!important}}.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px 18px;box-shadow:0 1px 2px #0f172a0f;min-height:240px;display:flex;flex-direction:column;gap:12px;transition:all .3s ease}.card:hover{transform:translateY(-4px);box-shadow:0 8px 16px #0f172a1f}.card h3{margin:0;font-size:16px;color:#0f172a}.card-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.card-header-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}@media (max-width: 768px){.card-header{flex-direction:column;align-items:stretch}.card-header h3{font-size:14px}.card-header-actions input,.card-header-actions select{max-width:100%}}.table{width:100%;border-collapse:separate;border-spacing:0 10px;font-size:13px;table-layout:fixed;word-wrap:break-word}.table tbody tr{background:#fff;border-radius:10px;box-shadow:0 1px 2px #0f172a0f}.table th,.table td{text-align:left;padding:8px 6px;border-bottom:1px solid #e2e8f0}.table tbody td:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}.table tbody td:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}@media (max-width: 768px){.table{font-size:12px}.card{overflow-x:auto}}.card-footer{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0;font-weight:600;display:flex;justify-content:flex-end}.row-info{background:#dbeafe!important}.row-operation{background:#fed7aa!important}.tree-cell{display:flex;align-items:flex-start;gap:6px}.tree-toggle{border:0;background:transparent;color:#475569;font-size:16px;cursor:pointer;line-height:1;padding:2px;border-radius:4px;transition:background .15s,color .15s}.tree-toggle:hover{background:#0f172a14;color:#0f172a}.tree-spacer{display:inline-block;width:18px}.productions-card-wrap{border-radius:8px;background:#fff;overflow:hidden}.productions-card-table{width:100%;border-collapse:collapse;font-size:13px}.productions-card-table thead{background:#f8fafc}.productions-card-table th{text-align:left;padding:12px 14px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#64748b;white-space:nowrap;border-bottom:1px solid #e2e8f0}.productions-card-table th:nth-child(1){width:32%;min-width:140px}.productions-card-table th:nth-child(2){width:18%;min-width:80px}.productions-card-table th:nth-child(3){width:18%;min-width:80px}.productions-card-table th:nth-child(4){width:12%;min-width:56px}.productions-card-table th:nth-child(5){width:20%;min-width:90px}.productions-card-table tbody tr{border-bottom:1px solid #f1f5f9;transition:background .15s ease}.productions-card-table tbody tr:last-child{border-bottom:0}.productions-card-table tbody tr:hover{background:#f8fafc!important}.productions-card-table td{padding:12px 14px;vertical-align:top}.productions-card-table .tree-cell{min-width:0}.productions-card-table .progress-inline{display:flex;align-items:center;gap:8px;margin-top:6px}.productions-card-table .progress-inline .progress{flex:1;min-width:0;height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden}.productions-card-table .progress-inline .progress-bar{height:100%;background:linear-gradient(90deg,#22c55e,#16a34a);border-radius:999px}.productions-card-table .progress-inline .progress-pct{font-size:11px;font-weight:600;color:#166534;min-width:36px;text-align:right}.productions-card-table .badge-commessa{display:inline-block;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:500;background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.productions-card-table .op-label{font-size:11px;color:#c2410c;font-weight:600;text-transform:uppercase;letter-spacing:.03em;margin-bottom:2px}@media (max-width: 768px){.productions-card-table th:nth-child(n){width:auto;min-width:0}}.progress-wrap{margin-top:6px;display:grid;gap:4px}.progress{height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden}.progress-bar{height:100%;background:#22c55e;border-radius:999px}.progress-label{font-size:11px;color:#64748b}.table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}.badge{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;background:#e2e8f0;color:#0f172a}.badge-success{background:#dcfce7;color:#166534}.badge-info{background:#dbeafe;color:#1e40af}.badge-warning{background:#fef3c7;color:#92400e}.row-warning{background:#fef3c7!important}.toast{position:fixed;right:20px;top:20px;background:#fef3c7;color:#78350f;padding:14px 16px;border-radius:12px;box-shadow:0 10px 25px #0f172a26;display:flex;align-items:flex-start;gap:12px;max-width:360px;z-index:1000;border:1px solid #fcd34d}.alert-triangle{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#f59e0b;color:#111827;font-weight:700;font-size:14px;line-height:1}.toast-title{font-weight:600;margin-bottom:4px}.toast-body{font-size:13px;color:#92400e}.toast-actions{margin-left:auto}.toast-close{background:transparent;border:0;color:#92400e;font-size:18px;cursor:pointer;line-height:1}.toast-warning-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#f59e0b;color:#111827;font-weight:700;font-size:14px;line-height:1}.muted{color:#94a3b8}.card-logic{font-size:11px;line-height:1.35;margin:2px 0 8px;color:#64748b}@media (max-width: 1024px){.grid-2{grid-template-columns:1fr}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f8fafc;padding:24px}.login-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:32px;box-shadow:0 4px 6px #0f172a1a;width:100%;max-width:400px}.login-header{text-align:center;margin-bottom:32px}.login-logo{display:block;max-width:220px;max-height:80px;width:auto;height:auto;margin:0 auto;object-fit:contain}.login-header p{margin:0;font-size:14px;color:#64748b}.login-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:500;color:#0f172a}.form-group input{padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;color:#0f172a;background:#fff;transition:border-color .2s}.form-group input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-group input:disabled{background:#f1f5f9;cursor:not-allowed}.form-hint{font-size:12px;color:#64748b}.error-message{padding:12px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#dc2626;font-size:14px}.login-button{padding:12px 24px;background:#3b82f6;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:background-color .2s}.login-button:hover:not(:disabled){background:#2563eb}.login-button:disabled{background:#94a3b8;cursor:not-allowed}.logout-button{padding:6px 12px;background:transparent;color:#cbd5f5;border:1px solid rgba(203,213,245,.3);border-radius:6px;font-size:13px;cursor:pointer;transition:all .2s}.logout-button:hover{background:#cbd5f51a;color:#fff;border-color:#cbd5f580}@media (max-width: 640px){.navbar{height:auto;padding:12px 16px;flex-direction:column;align-items:flex-start}.navbar-right{margin-top:6px}.content{padding:16px}.card{padding:12px 14px}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px 8px}.badge{font-size:11px}.table thead{display:none}.table tr{display:block;border-bottom:1px solid #e2e8f0;padding:8px 0}.table td{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:0}.table td:before{content:attr(data-label);font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.03em;font-size:11px}}.production-detail-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.production-detail-table th,.production-detail-table td{padding:7px 10px;border:1px solid #cbd5e1}.production-detail-table thead tr{background:#e2e8f0}.production-detail-table th{font-weight:700;color:#1e293b;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.03em}.production-detail-table tbody tr:nth-child(odd){background:#fff}.production-detail-table tbody tr:nth-child(2n){background:#f8fafc}.production-detail-table tbody tr:hover{background:#e0f2fe}.production-detail-table .text-right{text-align:right}.production-detail-table .production-detail-cell-muted{color:#64748b;font-size:11px;display:block}.production-detail-total-row{background:#cbd5e1!important;font-weight:700}.production-detail-total-row td{border-top:2px solid #64748b!important;padding:10px!important}.production-detail-total-row .production-detail-total-value{font-size:14px;color:#0f172a}.production-detail-components{min-width:700px}.production-detail-components th:nth-child(1),.production-detail-components td:nth-child(1){width:22%}.production-detail-components th:nth-child(2),.production-detail-components td:nth-child(2){width:8%}.production-detail-components th:nth-child(3),.production-detail-components td:nth-child(3){width:6%}.production-detail-components th:nth-child(4),.production-detail-components td:nth-child(4){width:10%}.production-detail-components th:nth-child(5),.production-detail-components td:nth-child(5){width:12%}.production-detail-components th:nth-child(6),.production-detail-components td:nth-child(6){width:12%}.production-detail-components th:nth-child(7),.production-detail-components td:nth-child(7){width:14%}.production-detail-components th:nth-child(8),.production-detail-components td:nth-child(8){width:9%}.production-detail-cost-cell{font-weight:600;color:#0f172a;min-width:5rem}.production-detail-components-total-cost{font-size:15px!important;font-weight:700!important;color:#0f172a!important}.production-detail-components thead th:nth-child(4){color:#1e40af}.production-detail-operations{min-width:560px}.production-detail-operations th:nth-child(1),.production-detail-operations td:nth-child(1){width:14%}.production-detail-operations th:nth-child(2),.production-detail-operations td:nth-child(2){width:16%}.production-detail-operations th:nth-child(3),.production-detail-operations td:nth-child(3){width:12%}.production-detail-operations th:nth-child(4),.production-detail-operations td:nth-child(4){width:10%}.production-detail-operations th:nth-child(5),.production-detail-operations td:nth-child(5){width:12%}.production-detail-operations th:nth-child(6),.production-detail-operations td:nth-child(6){width:12%}.production-detail-operations th:nth-child(7),.production-detail-operations td:nth-child(7){width:12%}.production-detail-productivity th:nth-child(1),.production-detail-productivity td:nth-child(1){width:22%}.production-detail-productivity th:nth-child(2),.production-detail-productivity td:nth-child(2){width:22%}.production-detail-productivity th:nth-child(3),.production-detail-productivity td:nth-child(3){width:14%}.production-detail-productivity th:nth-child(4),.production-detail-productivity td:nth-child(4){width:20%}.production-detail-productivity th:nth-child(5),.production-detail-productivity td:nth-child(5){width:20%}.production-detail-cost-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.production-detail-cost-card{padding:14px 16px;border-radius:8px;border-width:1px;border-style:solid}.production-detail-cost-label{font-size:12px;margin-bottom:4px}.production-detail-cost-value{font-size:18px;font-weight:700}.production-detail-cost-card-time{background:#f1f5f9;border-color:#cbd5e1}.production-detail-cost-card-time .production-detail-cost-label{color:#475569}.production-detail-cost-card-time .production-detail-cost-value{color:#0f172a}.production-detail-cost-card-components{background:#fefce8;border-color:#fde047}.production-detail-cost-card-components .production-detail-cost-label{color:#854d0e}.production-detail-cost-card-components .production-detail-cost-value{color:#a16207}.production-detail-cost-card-center{background:#f0fdf4;border-color:#86efac}.production-detail-cost-card-center .production-detail-cost-label{color:#166534}.production-detail-cost-card-center .production-detail-cost-value{color:#15803d}.production-detail-cost-card-labor{background:#eff6ff;border-color:#93c5fd}.production-detail-cost-card-labor .production-detail-cost-label{color:#1e40af}.production-detail-cost-card-labor .production-detail-cost-value{color:#1d4ed8}.production-detail-cost-card-total{background:#f5f0ff;border:2px solid #a78bfa}.production-detail-cost-card-total .production-detail-cost-label{color:#6b21a8;font-weight:600}.production-detail-cost-value-total{font-size:20px!important;color:#6d28d9!important}.collapsible-header{margin:0 0 12px;font-size:14px;font-weight:600;color:#64748b;text-transform:uppercase;cursor:pointer;display:flex;align-items:center;gap:8px;-webkit-user-select:none;user-select:none;padding:8px 12px;border-radius:8px;background:#f1f5f9;border:1px solid #e2e8f0;transition:background .15s}.collapsible-header:hover{background:#e2e8f0;color:#334155}.collapsible-arrow{display:inline-block;font-size:11px;transition:transform .2s ease;color:#475569}.collapsible-arrow.open{transform:rotate(90deg)}.collapsible-count{font-size:12px;font-weight:400;color:#94a3b8;margin-left:4px}@media print{.navbar,.no-print{display:none!important}.app{min-height:auto}.content{padding-top:0}body{background:#fff}}.productions-table-wrap{border:1px solid #e2e8f0;border-radius:12px;overflow-x:auto;background:#fff}.productions-table{width:100%;border-collapse:collapse;font-size:13px}.productions-table thead th{position:sticky;top:0;background:#f1f5f9;padding:10px;font-weight:700;font-size:11px;color:#475569;text-transform:uppercase;letter-spacing:.03em;border-bottom:2px solid #cbd5e1;white-space:nowrap}.productions-table tbody td{padding:8px 10px;vertical-align:middle;border-bottom:1px solid #f1f5f9;font-size:12px;color:#334155}.productions-table tbody td:first-child{vertical-align:top}.productions-table .text-right{text-align:right;font-variant-numeric:tabular-nums}.productions-table .text-muted{color:#94a3b8}.productions-table tfoot td{padding:12px 10px;font-weight:700;font-size:13px;color:#0f172a;border-top:2px solid #cbd5e1}.prod-footer-label{text-align:left!important}.prod-cost-total-cell{font-weight:700;color:#1d4ed8!important}.productions-table .prod-cost-op-col,.productions-table .prod-cost-total-cell{min-width:130px}.productions-table .prod-note-cell-full{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.4;color:#334155;cursor:pointer;max-width:320px;vertical-align:top;padding-top:8px;padding-bottom:8px}.productions-table .prod-note-cell-full:hover{color:#0f172a;text-decoration:underline}.productions-table .prod-note-empty{vertical-align:middle}.productions-tree-table tbody td{line-height:1.35;vertical-align:middle}.prod-tree-row:hover td{background:#3b82f60f}.prod-expand-btn{display:inline-block;width:22px;height:22px;border:none;background:transparent;cursor:pointer;font-size:14px;padding:0;vertical-align:middle;color:#475569;border-radius:4px}.prod-expand-btn:hover{background:#0000000f}.prod-expand-spacer{display:inline-block;width:22px}.prod-name-badge{display:inline-block;padding:3px 8px;border-radius:5px;font-size:12px;font-weight:600;white-space:nowrap}.prod-name-badge small{font-weight:400;font-size:10px;color:#64748b;margin-left:3px}.prod-name-badge.level-0{background:#3b82f621;color:#1d4ed8;border:1px solid #93c5fd}.prod-name-badge.level-1{background:#22c55e21;color:#15803d;border:1px solid #86efac}.prod-name-badge.level-2{background:#eab30826;color:#a16207;border:1px solid #fde047}.prod-name-badge.level-3{background:#06b6d421;color:#0e7490;border:1px solid #67e8f9}.prod-name-badge.level-4{background:#8b5cf621;color:#6d28d9;border:1px solid #c4b5fd}.prod-state-badge{display:inline-block;font-size:11px;font-weight:500;padding:2px 8px;border-radius:5px;background:#f1f5f9;color:#475569;white-space:nowrap}.prod-state-badge.progress{background:#dbeafe;color:#1d4ed8}.prod-state-badge.done{background:#dcfce7;color:#16a34a}.prod-note-link{font-size:11px;color:#0f172a;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:middle;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.prod-note-empty{font-size:11px;color:#94a3b8;display:inline-block;vertical-align:middle}.prod-origin-cell{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prod-ops-row td{padding:4px 10px 10px!important;background:#fafbfc;border-bottom:1px solid #e2e8f0!important}.prod-ops-subtable{width:auto;min-width:280px;border-collapse:collapse;font-size:12px;border:1px solid #e2e8f0;border-radius:6px;overflow:hidden}.prod-ops-subtable th{padding:6px 10px;background:#f8fafc;font-weight:600;font-size:11px;color:#475569;text-align:left;border-bottom:1px solid #e2e8f0}.prod-ops-subtable td{padding:5px 10px;border-bottom:1px solid #f1f5f9}.daily-summary-wrap{pointer-events:auto}.daily-summary-table tbody tr.daily-summary-row{cursor:pointer;pointer-events:auto}.daily-summary-table tbody tr.daily-summary-row:hover{background:#f8fafc}
