*{box-sizing:border-box}body{margin:0;font-family:system-ui,Segoe UI,Roboto,sans-serif;background:#f4f6f9;color:#1f2937}.app{min-height:100vh;display:flex}.content{flex:1;min-width:0;max-width:1300px;margin:0 auto;padding:24px}.sidebar{display:flex;flex-direction:column;gap:4px;width:220px;flex-shrink:0;background:#1e293b;color:#fff;padding:16px 12px;min-height:100vh}.sidebar-brand{font-weight:700;padding:8px 12px 16px}.sidebar-link{color:#cbd5e1;text-decoration:none;padding:10px 12px;border-radius:6px;font-size:14px}.sidebar-link:hover{color:#fff;background:#ffffff0f}.sidebar-link.active{color:#fff;background:#2563eb;font-weight:600}.sidebar-spacer{flex:1}.sidebar-user{font-size:13px;color:#94a3b8;padding:0 12px 8px;line-height:1.4}.sidebar-logout{background:#ef4444;color:#fff;border:0;padding:8px 12px;border-radius:6px;cursor:pointer;margin:0 12px}.card{background:#fff;border-radius:10px;padding:24px;box-shadow:0 1px 3px #00000014}.card h2,.card h3{margin-top:0}.report-tabs{display:flex;gap:4px;margin-bottom:20px;border-bottom:1px solid #e5e7eb}.report-tab{padding:10px 18px;font-size:14px;font-weight:600;color:#64748b;text-decoration:none;border-bottom:2px solid transparent}.report-tab:hover{color:#1f2937}.report-tab.active{color:#2563eb;border-bottom-color:#2563eb}.stat-cards{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap}.stat-card{background:#fff;border-radius:10px;padding:18px 22px;box-shadow:0 1px 3px #00000014;flex:1;min-width:180px}.stat-card-label{font-size:13px;color:#64748b;margin-bottom:6px}.stat-card-value{font-size:26px;font-weight:700;color:#1f2937}.stat-card-sub{font-size:12px;color:#94a3b8;margin-top:2px}.searchable-select{position:relative;flex:1}.searchable-select-list{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:20;background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 4px 16px #0000001f;max-height:220px;overflow-y:auto}.searchable-select-option{padding:8px 10px;font-size:14px;cursor:pointer}.searchable-select-option:hover{background:#f1f5f9}.searchable-select-option.selected{background:#eff6ff;font-weight:600}.searchable-select-empty{padding:8px 10px;font-size:13px;color:#94a3b8}.multi-select-option{display:flex;align-items:center;gap:8px}.multi-select-option input[type=checkbox]{margin:0}.form-row{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.form-row label{font-weight:600;font-size:14px}.form-row .with-btn{display:flex;gap:8px}select,input,textarea{padding:8px 10px;border:1px solid #cbd5e1;border-radius:6px;font-size:14px;width:100%}select:disabled{background:#f1f5f9;color:#94a3b8}textarea{min-height:70px;resize:vertical}.btn{background:#2563eb;color:#fff;border:0;padding:10px 16px;border-radius:6px;cursor:pointer;font-size:14px}.btn:disabled{background:#93c5fd;cursor:not-allowed}.btn-sm{padding:8px 12px;white-space:nowrap}.btn-secondary{background:#64748b}.btn-danger{background:#ef4444}.error{color:#b91c1c;background:#fee2e2;padding:10px;border-radius:6px;margin-bottom:12px}.success{color:#166534;background:#dcfce7;padding:10px;border-radius:6px;margin-bottom:12px}.notice{color:#92400e;background:#fef3c7;padding:10px;border-radius:6px;margin-bottom:12px;font-size:13px}.hint{font-size:13px;color:#64748b}table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden}.table-scroll{overflow-x:auto;border-radius:10px}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:12px;flex-wrap:wrap;gap:8px}.pagination-controls{display:flex;align-items:center;gap:8px}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid #e5e7eb;font-size:14px}th{background:#f8fafc}.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;background:#fff;padding:16px;border-radius:10px;box-shadow:0 1px 3px #00000014;margin-bottom:16px}.filters-item{min-width:150px;margin-bottom:0}.client-tag{padding-left:8px;border-left:3px solid transparent;font-weight:700}.issue-type-badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}.issue-type-missing{background:#f1f5f9;color:#64748b}.issue-type-overlap{background:#fee2e2;color:#b91c1c}.issue-type-holiday{background:#fef3c7;color:#92400e}.approval-badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:600}.approval-badge-none{background:#f1f5f9;color:#64748b}.approval-badge-pending{background:#fef3c7;color:#92400e}.approval-badge-approved{background:#dcfce7;color:#166534}.approval-badge-rejected{background:#fee2e2;color:#b91c1c}.calendar-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:12px}.calendar-range{font-weight:600;margin-left:8px}.calendar-week-total{color:#64748b;font-size:14px;margin-left:16px}.calendar{background:#fff;border-radius:10px;box-shadow:0 1px 3px #00000014;overflow:hidden}.calendar-header,.calendar-body{display:grid;grid-template-columns:56px repeat(7,1fr)}.calendar-header{border-bottom:1px solid #e5e7eb;position:sticky;top:0;background:#fff;z-index:1}.calendar-day-head{padding:8px 6px;text-align:center;border-left:1px solid #f1f5f9}.calendar-day-name{font-size:13px;font-weight:600}.calendar-day-total{font-size:12px;color:#64748b;margin-top:2px}.calendar-day-holiday-name{font-size:11px;color:#b45309;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-day-head-weekend{background:#f8fafc}.calendar-day-head-holiday{background:#fde68a}.calendar-day-head-half-holiday{background:#fef3c7}.calendar-day-col-weekend{background:#f8fafc}.calendar-day-col-holiday{background:#fef9e0}.calendar-day-col-half-holiday{background:#fffbeb}.calendar-scroll{max-height:620px;overflow-y:auto}.calendar-time-col{border-right:1px solid #f1f5f9}.calendar-hour-label{font-size:11px;color:#94a3b8;text-align:right;padding-right:6px;transform:translateY(-6px)}.calendar-hour-cell{position:relative;border-bottom:1px solid #f1f5f9}.calendar-hour-cell:after{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px dashed #eef1f5}.calendar-day-col{position:relative;border-left:1px solid #f1f5f9;cursor:pointer}.calendar-entry{position:absolute;left:4px;right:4px;overflow:hidden;background:#eff6ff;border-left:3px solid #2563eb;border-radius:4px;padding:4px 6px;cursor:pointer;box-shadow:0 1px 2px #00000014}.calendar-entry:hover{filter:brightness(.97)}.calendar-entry-dragging{opacity:.4}.calendar-entry-resizing{z-index:5;box-shadow:0 2px 10px #00000040}.calendar-entry-spills-bottom{border-bottom-left-radius:0;border-bottom-right-radius:0}.calendar-entry-continuation{border-top-left-radius:0;border-top-right-radius:0;opacity:.85}.calendar-entry-continuation-indicator{font-size:10px;color:#64748b;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-entry-pending{outline:2px dashed #f59e0b;outline-offset:-2px}.calendar-entry-rejected{outline:2px dashed #ef4444;outline-offset:-2px}.calendar-entry-approval-tag{font-size:10px;font-weight:700;text-transform:uppercase;color:#92400e;background:#fef3c7;display:inline-block;padding:0 4px;border-radius:3px;margin-bottom:2px}.calendar-entry-rejected .calendar-entry-approval-tag{color:#b91c1c;background:#fee2e2}.calendar-entry-title{font-size:12px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.calendar-entry-sub{font-size:11px;color:#64748b;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.calendar-entry-desc{font-size:11px;color:#475569;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.calendar-entry-duration{position:absolute;bottom:2px;right:6px;font-size:11px;font-weight:700;color:#1f2937;background:#ffffffd9;padding:0 4px;border-radius:3px;cursor:text}.calendar-entry-duration:hover{background:#fff;box-shadow:0 0 0 1px #93c5fd}.calendar-entry-duration-input{position:absolute;bottom:2px;right:6px;width:46px;font-size:11px;font-weight:700;padding:0 4px;border-radius:3px;border:1px solid #2563eb}.calendar-entry-resize-handle{position:absolute;left:0;right:0;height:6px;cursor:ns-resize}.calendar-entry-resize-top{top:0}.calendar-entry-resize-bottom{bottom:0}.calendar-entry-resize-handle:hover{background:#00000014}.calendar-context-menu{position:fixed;z-index:30;background:#fff;border-radius:6px;box-shadow:0 4px 16px #0003;padding:4px;min-width:120px}.calendar-context-menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:8px 12px;font-size:14px;cursor:pointer;border-radius:4px;color:#1f2937}.calendar-context-menu button:hover{background:#f1f5f9}.drp{position:relative;display:inline-block}.drp-trigger{padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;cursor:pointer;font-size:14px;min-width:220px;text-align:left}.drp-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:20;background:#fff;border-radius:10px;box-shadow:0 8px 24px #00000026;display:flex;overflow:hidden}.drp-presets{display:flex;flex-direction:column;padding:8px 0;border-right:1px solid #e5e7eb;min-width:150px}.drp-preset{background:none;border:0;text-align:left;padding:8px 16px;cursor:pointer;font-size:14px;color:#1f2937}.drp-preset:hover{background:#f1f5f9}.drp-calendars{display:flex;align-items:flex-start;padding:16px;gap:4px}.drp-nav{background:none;border:0;cursor:pointer;font-size:18px;padding:0 4px;color:#475569;align-self:center}.drp-month{width:210px}.drp-month-title{text-align:center;font-weight:700;margin-bottom:8px;font-size:14px}.drp-weekdays{display:grid;grid-template-columns:repeat(7,1fr);font-size:12px;color:#64748b;margin-bottom:4px}.drp-weekday{text-align:center;font-weight:600}.drp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.drp-day{border:0;background:none;padding:6px 0;font-size:13px;cursor:pointer;border-radius:4px}.drp-day:hover{background:#f1f5f9}.drp-day-out{color:#cbd5e1}.drp-day-in-range{background:#dbeafe;border-radius:0}.drp-day-selected{background:#2563eb;color:#fff}.login-wrap{display:flex;justify-content:center;align-items:center;min-height:80vh}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;justify-content:center;align-items:center}.modal{background:#fff;padding:24px;border-radius:10px;width:360px}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}
