*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f8fafc;color:#1e293b;min-width:1280px}button{cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit;font-size:inherit}.header{position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between;padding:10px 20px;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 3px #0000000f}.header-left{display:flex;align-items:center;gap:10px}.header-center{display:flex;align-items:center;gap:16px}.header-right{display:flex;align-items:center;gap:10px}.week-badge{background:#1e40af;color:#fff;font-weight:700;font-size:18px;padding:6px 14px;border-radius:8px;letter-spacing:1px}.nav-btn{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:6px;padding:6px 12px;font-size:16px;transition:background .15s}.nav-btn:hover{background:#e2e8f0}.today-btn{background:#eff6ff;border:1px solid #93c5fd;border-radius:6px;padding:6px 14px;color:#1e40af;font-weight:600;font-size:14px}.today-btn:hover{background:#dbeafe}.date-range{font-size:15px;font-weight:500;color:#334155}.view-switcher{display:flex;border:1px solid #cbd5e1;border-radius:6px;overflow:hidden}.view-btn{background:#fff;border:none;border-right:1px solid #cbd5e1;padding:6px 14px;font-size:13px;font-weight:500;color:#64748b;transition:all .15s}.view-btn:last-child{border-right:none}.view-btn:hover{background:#f8fafc}.view-btn.active{background:#1e40af;color:#fff}.user-info{font-size:14px;color:#64748b}.logout-btn{background:#fef2f2;border:1px solid #fca5a5;border-radius:6px;padding:6px 12px;color:#dc2626;font-size:13px;font-weight:500}.logout-btn:hover{background:#fee2e2}.admin-btn{background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;font-size:18px;line-height:1}.admin-btn:hover{background:#e2e8f0}.legend{display:flex;align-items:center;gap:16px;padding:8px 20px;background:#fff;border-bottom:1px solid #e2e8f0;font-size:13px}.legend-item{display:flex;align-items:center;gap:5px}.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.calendar-container{padding:16px 20px}.calendar-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #00000014}.calendar-table th,.calendar-table td{border:1px solid #e2e8f0;padding:0}.calendar-table th{padding:8px 10px;font-size:13px;font-weight:600;color:#475569;background:#f8fafc;text-align:center}.calendar-table th.today-header{background:#2563eb;color:#fff}.calendar-table th.employee-header{text-align:left;width:130px;min-width:130px;font-size:14px}.calendar-table td.employee-name{padding:8px 10px;font-weight:600;font-size:14px;color:#1e293b;background:#f8fafc;vertical-align:top;width:130px;min-width:130px}.calendar-table td.today-col{background:#eff6ff}.cell{position:relative;min-height:90px;padding:4px 6px;cursor:pointer;vertical-align:top;transition:background .1s}.cell:hover{background:#f1f5f9}.cell.today-col{background:#eff6ff}.cell.today-col:hover{background:#dbeafe}.cell.on-leave{cursor:default;background:#fef9c3}.cell-badges{display:flex;flex-wrap:wrap;gap:3px;margin-bottom:4px}.badge{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;border-radius:4px;font-size:11px;font-weight:600;line-height:1.3;white-space:nowrap}.badge-remove{background:none;border:none;font-size:11px;line-height:1;padding:0 0 0 2px;color:inherit;opacity:.6}.badge-remove:hover{opacity:1}.leave-badge{background:#fef3c7;color:#92400e;font-weight:700;font-size:12px;padding:4px 8px;border-radius:4px}.cell-extras{position:relative;height:24px;margin-top:4px}.extra-bar{position:absolute;top:0;height:20px;background:#f97316;border-radius:3px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:600;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 3px;min-width:16px;transition:opacity .15s}.extra-bar:hover{opacity:.85}.add-extra-btn{position:absolute;top:2px;right:2px;width:20px;height:20px;border-radius:50%;background:#e2e8f0;border:none;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;color:#475569;opacity:0;transition:opacity .15s}.cell:hover .add-extra-btn{opacity:1}.add-extra-btn:hover{background:#cbd5e1}.leave-row td{background:#fef9c3!important;padding:6px 10px;font-size:12px;color:#92400e;font-weight:500}.leave-row td.leave-label{font-weight:700;font-size:13px;background:#fef3c7!important}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:200}.modal{background:#fff;border-radius:12px;padding:24px;min-width:400px;max-width:520px;width:100%;box-shadow:0 20px 60px #00000026}.modal h3{font-size:18px;margin-bottom:16px;color:#1e293b}.modal-field{margin-bottom:12px}.modal-field label{display:block;font-size:13px;font-weight:600;color:#475569;margin-bottom:4px}.modal-field input,.modal-field select,.modal-field textarea{width:100%;padding:8px 10px;border:1px solid #cbd5e1;border-radius:6px;font-size:14px;background:#fff}.modal-field input:focus,.modal-field select:focus,.modal-field textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.modal-field textarea{min-height:60px;resize:vertical}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.btn-primary{background:#2563eb;color:#fff;border:none;border-radius:6px;padding:8px 20px;font-size:14px;font-weight:600;transition:background .15s}.btn-primary:hover{background:#1d4ed8}.btn-secondary{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;border-radius:6px;padding:8px 20px;font-size:14px;font-weight:500}.btn-secondary:hover{background:#e2e8f0}.btn-danger{background:#fef2f2;color:#dc2626;border:1px solid #fca5a5;border-radius:6px;padding:8px 20px;font-size:14px;font-weight:500}.btn-danger:hover{background:#fee2e2}.error-msg{background:#fef2f2;color:#dc2626;padding:8px 12px;border-radius:6px;font-size:13px;margin-bottom:12px}.activity-option{display:flex;align-items:center;gap:8px}.login-container{display:flex;align-items:center;justify-content:center;min-height:100vh;background:#f8fafc}.login-box{background:#fff;padding:40px;border-radius:16px;box-shadow:0 4px 24px #00000014;width:380px}.login-box h1{font-size:24px;color:#1e293b;margin-bottom:8px}.login-box p{color:#64748b;font-size:14px;margin-bottom:24px}.login-box .modal-field{margin-bottom:16px}.login-box .btn-primary{width:100%;padding:10px;font-size:15px}.admin-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:300}.admin-panel{position:fixed;top:0;right:0;bottom:0;width:560px;background:#fff;z-index:301;box-shadow:-4px 0 24px #0000001f;display:flex;flex-direction:column;overflow:hidden}.admin-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e2e8f0}.admin-header h2{font-size:18px;color:#1e293b}.admin-close{background:none;border:none;font-size:24px;color:#64748b;padding:4px}.admin-tabs{display:flex;border-bottom:1px solid #e2e8f0;padding:0 20px;overflow-x:auto}.admin-tab{background:none;border:none;padding:10px 14px;font-size:13px;font-weight:500;color:#64748b;border-bottom:2px solid transparent;white-space:nowrap}.admin-tab:hover{color:#334155}.admin-tab.active{color:#2563eb;border-bottom-color:#2563eb;font-weight:600}.admin-content{flex:1;overflow-y:auto;padding:20px}.admin-list{list-style:none}.admin-list-item{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:8px;background:#fafafa}.admin-list-item-info{display:flex;align-items:center;gap:10px;flex:1}.admin-form{border:1px solid #e2e8f0;border-radius:8px;padding:16px;margin-top:16px;background:#f8fafc}.admin-form h4{font-size:14px;margin-bottom:12px;color:#334155}.form-row{display:flex;gap:10px;margin-bottom:10px}.form-row .modal-field{flex:1;margin-bottom:0}.workdays-checkboxes{display:flex;gap:8px}.workdays-checkboxes label{display:flex;align-items:center;gap:4px;font-size:13px;cursor:pointer}.color-preview{width:20px;height:20px;border-radius:4px;border:1px solid #e2e8f0;display:inline-block}.report-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:12px}.report-table th,.report-table td{border:1px solid #e2e8f0;padding:6px 10px;text-align:left}.report-table th{background:#f1f5f9;font-weight:600;font-size:12px;color:#475569}.report-table td{color:#334155}.report-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin-bottom:16px}.job-sheet{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:16px;margin-top:12px}.job-sheet h4{font-size:14px;margin-bottom:10px;color:#334155}.job-sheet-row{display:flex;margin-bottom:6px;font-size:13px}.job-sheet-label{font-weight:600;color:#475569;width:120px;flex-shrink:0}.job-sheet-value{color:#1e293b}.modal-section{font-size:13px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.5px;margin:16px 0 8px;padding-bottom:4px;border-bottom:1px solid #e2e8f0}.loading{display:flex;align-items:center;justify-content:center;padding:40px;color:#64748b;font-size:15px}.day-view-cell{min-height:140px}.month-week-header{font-size:14px;font-weight:700;color:#1e40af;padding:10px 0 6px}.month-table .cell{min-height:50px;font-size:11px}.month-table .badge{font-size:9px;padding:1px 4px}.weekend-msg{text-align:center;padding:60px 20px;color:#64748b;font-size:18px}@media print{*{color:#000!important}body{background:#fff!important;min-width:auto}.no-print{display:none!important}table{border-collapse:collapse}th,td{border:1px solid #999;padding:6px 10px}th{background:#ddd!important;font-weight:700}header,.header,.admin-panel,.admin-overlay,.legend,.no-print,button:not(.print-keep){display:none!important}.admin-content{overflow:visible}.report-table{font-size:11px}}
