:root{--color-primary: #2563eb;--color-primary-dark: #1d4ed8;--color-success: #16a34a;--color-warning: #ca8a04;--color-danger: #dc2626;--color-gray-50: #f9fafb;--color-gray-100: #f3f4f6;--color-gray-200: #e5e7eb;--color-gray-300: #d1d5db;--color-gray-500: #6b7280;--color-gray-700: #374151;--color-gray-900: #111827;--border-radius: 8px;--shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.6;color:var(--color-gray-900);background:var(--color-gray-100);min-height:100vh}#app{max-width:900px;margin:0 auto;padding:2rem 1rem}header{text-align:center;margin-bottom:2rem}header h1{font-size:2rem;color:var(--color-primary);margin-bottom:.5rem}header .subtitle{color:var(--color-gray-500);font-size:1rem}.card{background:#fff;border-radius:var(--border-radius);box-shadow:var(--shadow);padding:1.5rem;margin-bottom:1.5rem}.card h2{font-size:1.25rem;color:var(--color-gray-700);margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid var(--color-gray-200)}.form-group{margin-bottom:1rem}.form-group label{display:block;font-weight:500;margin-bottom:.25rem;color:var(--color-gray-700)}.contract-input-group{display:flex;gap:.5rem;align-items:center}input[type=number],input[type=date],select{width:100%;max-width:200px;padding:.5rem .75rem;border:1px solid var(--color-gray-300);border-radius:var(--border-radius);font-size:1rem;transition:border-color .2s,box-shadow .2s}input:focus,select:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #2563eb1a}button{padding:.5rem 1rem;border:none;border-radius:var(--border-radius);font-size:.875rem;font-weight:500;cursor:pointer;transition:background-color .2s,transform .1s}button:active{transform:scale(.98)}button.primary{background:var(--color-primary);color:#fff}button.primary:hover{background:var(--color-primary-dark)}button.secondary{background:var(--color-gray-300);color:var(--color-gray-700);border:1px solid var(--color-gray-400)}button.secondary:hover{background:var(--color-gray-400);border-color:var(--color-gray-500)}.week-table{width:100%;border-collapse:collapse;font-size:.875rem}.week-table th,.week-table td{padding:.5rem;text-align:left;border-bottom:1px solid var(--color-gray-200)}.week-table th{background:var(--color-gray-50);font-weight:600;color:var(--color-gray-700)}.week-table input{width:80px}.week-table .row-number{font-weight:600;color:var(--color-gray-400);text-align:center;width:40px}.week-table .week-number{font-weight:600;color:var(--color-gray-500)}.week-label{display:flex;flex-direction:column;gap:.125rem}.week-main{font-weight:600;color:var(--color-gray-500)}.week-dates{font-size:.7rem;color:var(--color-gray-400);font-weight:400}.week-table tr.zero-hours{background:var(--color-gray-100)}.week-table tr.nov-dec{background:#fef3c7}.week-actions{display:flex;flex-wrap:wrap;gap:.5rem}.week-actions-top{margin-bottom:1rem;justify-content:space-between}.week-actions-bottom{margin-top:1rem}.unit{font-size:.75rem;color:var(--color-gray-500);margin-left:.25rem}.badge{display:inline-block;background:#fbbf24;color:var(--color-gray-900);font-size:.625rem;font-weight:600;padding:.125rem .375rem;border-radius:9999px;margin-left:.25rem}.btn-remove-week{width:28px;height:28px;padding:0;font-size:1.25rem;line-height:1;display:flex;align-items:center;justify-content:center;border-radius:50%}.btn-remove-week:hover{background:var(--color-danger);color:#fff}.hint-cell{min-width:160px}.hint{font-size:.75rem;padding:.125rem .375rem;border-radius:4px}.hint-novdec{background:#fef3c7;color:#92400e}.hint-zero{background:var(--color-gray-200);color:var(--color-gray-700)}.hint-excess{background:#dcfce7;color:var(--color-success)}.hint-over{background:#dbeafe;color:var(--color-primary)}.help-text{margin-top:1rem;padding:.75rem;background:var(--color-gray-50);border-radius:var(--border-radius);font-size:.875rem;color:var(--color-gray-500)}#result-container{min-height:100px}.placeholder{color:var(--color-gray-500);font-style:italic}.result-positive{background:#dcfce7;border:2px solid var(--color-success);border-radius:var(--border-radius);padding:1rem}.result-negative{background:#fef2f2;border:2px solid var(--color-danger);border-radius:var(--border-radius);padding:1rem}.result-title{font-size:1.25rem;font-weight:700;margin-bottom:.5rem}.result-positive .result-title{color:var(--color-success)}.result-negative .result-title{color:var(--color-danger)}.result-details{margin-top:1rem;padding-top:1rem;border-top:1px solid currentColor;opacity:.3}.result-details dt{font-weight:600;color:var(--color-gray-700)}.result-details dd{margin-bottom:.5rem;margin-left:0}.warnings{margin-top:1rem}.warning{padding:.75rem;background:#fef3c7;border-left:4px solid var(--color-warning);border-radius:0 var(--border-radius) var(--border-radius) 0;margin-bottom:.5rem;font-size:.875rem}.deadline-warning{margin-top:1rem;padding:.75rem;background:#fef3c7;border-left:4px solid var(--color-warning);border-radius:0 var(--border-radius) var(--border-radius) 0}#timeline-container{overflow-x:auto}.timeline{display:flex;gap:2px;min-width:min-content;padding:1rem 0}.timeline-week{width:40px;height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:4px;font-size:.75rem;cursor:pointer;transition:transform .1s}.timeline-week:hover{transform:scale(1.1)}.timeline-week.normal{background:var(--color-primary);color:#fff}.timeline-week.has-absence{background:repeating-linear-gradient(45deg,var(--color-primary),var(--color-primary) 4px,rgba(37,99,235,.7) 4px,rgba(37,99,235,.7) 8px)}.timeline-week.excluded{background:var(--color-gray-300);color:var(--color-gray-700)}.timeline-week.nov-dec{background:#fbbf24;color:var(--color-gray-900)}.timeline-week.selected{outline:3px solid var(--color-success);outline-offset:2px}.timeline-week .kw{font-weight:600}.timeline-week .hours{font-size:.625rem;opacity:.8}.intro-section{margin-bottom:2rem}.intro-content h2{font-size:1.5rem;color:var(--color-primary);margin-bottom:1rem;border-bottom:2px solid var(--color-primary)}.intro-content h3{font-size:1.125rem;color:var(--color-gray-700);margin-top:1.75rem;margin-bottom:.75rem}.intro-content p{margin-bottom:1rem;line-height:1.7;color:var(--color-gray-700)}.intro-content ul{margin:1rem 0 1.5rem 1.5rem;list-style-type:none}.intro-content ul li{margin-bottom:.75rem;padding-left:.5rem;position:relative;line-height:1.6}.intro-content ul li:before{content:"✓";position:absolute;left:-1.25rem;color:var(--color-success);font-weight:700;font-size:1.1rem}.info-box{background:linear-gradient(135deg,#eff6ff,#dbeafe);border-left:4px solid var(--color-primary);padding:1rem 1.25rem;margin:1.5rem 0;border-radius:4px;font-size:.95rem;line-height:1.6}.info-box strong{color:var(--color-primary-dark)}footer{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--color-gray-200);font-size:.875rem;color:var(--color-gray-500)}footer .legal-ref{font-style:italic;margin-top:.5rem}footer .legal-links{margin-top:.75rem;text-align:center}footer .legal-links a{color:var(--color-primary);text-decoration:none;transition:color .2s}footer .legal-links a:hover{color:var(--color-primary-dark);text-decoration:underline}.confirm-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;border:none;border-radius:8px;padding:0;box-shadow:var(--shadow-xl);max-width:420px;width:90%}.confirm-dialog::backdrop{background:#00000080;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.dialog-content{padding:1.5rem}.dialog-content h3{margin:0 0 1rem;font-size:1.25rem;color:var(--color-gray-900)}.dialog-content p{margin:0 0 1.5rem;color:var(--color-gray-700);line-height:1.5}.dialog-actions{display:flex;gap:.5rem;justify-content:flex-end}.dialog-actions button{min-width:100px}button.danger{background:var(--color-danger);color:#fff}button.danger:hover{background:#dc2626}@media(max-width:640px){#app{padding:1rem}header h1{font-size:1.5rem}.card{padding:1rem}.week-table{font-size:.75rem}.week-table input{width:60px}.hint-cell{min-width:100px}.hint{font-size:.625rem}}.sr-only{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
