*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans,Noto Sans JP,sans-serif;background:#f8fafc;color:#0f172a;font-size:14px;line-height:1.5}a{text-decoration:none;color:inherit}input,select,textarea,button{font-family:inherit}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eff6ff,#f8fafc);padding:1rem}.auth-card{background:#fff;border-radius:12px;box-shadow:0 4px 24px #00000014;padding:2.5rem;width:100%;max-width:420px}.auth-logo{display:flex;align-items:center;gap:.75rem;margin-bottom:2rem}.auth-logo-icon{width:36px;height:36px;background:#2563eb;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.auth-logo h1{font-size:1.0625rem;font-weight:700}.auth-title{font-size:1.375rem;font-weight:700;margin-bottom:.375rem}.auth-subtitle{color:#64748b;font-size:.875rem;margin-bottom:1.75rem}.auth-footer{text-align:center;margin-top:1.5rem;font-size:.875rem;color:#64748b}.auth-footer a{color:#2563eb;font-weight:500}.app-layout{display:flex;height:100vh;overflow:hidden}.sidebar{width:240px;background:#0f172a;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto}.main-content{flex:1;overflow-y:auto;background:#f8fafc}.sidebar-brand{padding:1.25rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.06);display:flex;align-items:center;gap:.75rem}.sidebar-brand-icon{width:30px;height:30px;background:#2563eb;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.sidebar-brand h2{color:#fff;font-size:.875rem;font-weight:700;line-height:1.3}.sidebar-brand p{color:#475569;font-size:.6875rem}.sidebar-nav{flex:1;padding:.625rem 0}.nav-item{display:flex;align-items:center;gap:.625rem;padding:.625rem 1.25rem;color:#94a3b8;font-size:.875rem;font-weight:500;transition:color .15s,background .15s;cursor:pointer}.nav-item:hover{color:#e2e8f0;background:#ffffff0a}.nav-item.active{color:#fff;background:#2563eb}.nav-item svg{width:16px;height:16px;flex-shrink:0}.sidebar-footer{padding:1rem 1.25rem;border-top:1px solid rgba(255,255,255,.06)}.user-info{display:flex;align-items:center;gap:.625rem;margin-bottom:.75rem}.user-avatar{width:30px;height:30px;border-radius:50%;background:#2563eb;display:flex;align-items:center;justify-content:center;color:#fff;font-size:.75rem;font-weight:700;flex-shrink:0}.user-name{color:#e2e8f0;font-size:.8125rem;font-weight:500}.user-plan{color:#475569;font-size:.6875rem}.page{padding:1.75rem 2rem;max-width:1100px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:1.5rem;gap:1rem}.page-title{font-size:1.375rem;font-weight:700}.page-subtitle{color:#64748b;font-size:.875rem;margin-top:.25rem}.card{background:#fff;border-radius:8px;border:1px solid #e2e8f0;padding:1.25rem}.card-title{font-size:.9375rem;font-weight:600;margin-bottom:1rem}.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;margin-bottom:1.5rem}.stat-card{background:#fff;border-radius:8px;border:1px solid #e2e8f0;padding:1.25rem}.stat-label{font-size:.6875rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem}.stat-value{font-size:2rem;font-weight:700;line-height:1}.stat-sub{font-size:.75rem;color:#64748b;margin-top:.375rem}.table-wrapper{background:#fff;border-radius:8px;border:1px solid #e2e8f0;overflow:hidden}table{width:100%;border-collapse:collapse}thead th{padding:.75rem 1rem;text-align:left;font-size:.6875rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.06em;background:#f8fafc;border-bottom:1px solid #e2e8f0}tbody td{padding:.875rem 1rem;font-size:.875rem;border-bottom:1px solid #f1f5f9}tbody tr:last-child td{border-bottom:none}tbody tr:hover td{background:#f8fafc;cursor:pointer}.table-actions{display:flex;gap:.5rem}.form{display:flex;flex-direction:column;gap:1rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-group{display:flex;flex-direction:column;gap:.375rem}.form-label{font-size:.8125rem;font-weight:500;color:#374151}.form-input,.form-select{padding:.5625rem .75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;background:#fff;color:#0f172a;transition:border-color .15s,box-shadow .15s;outline:none;width:100%}.form-input:focus,.form-select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.form-input::placeholder{color:#9ca3af}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;padding:.5625rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;border:none;cursor:pointer;transition:all .15s;white-space:nowrap;line-height:1}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:#2563eb;color:#fff}.btn-primary:hover:not(:disabled){background:#1d4ed8}.btn-secondary{background:#fff;color:#374151;border:1px solid #d1d5db}.btn-secondary:hover:not(:disabled){background:#f9fafb}.btn-danger{background:#ef4444;color:#fff}.btn-danger:hover:not(:disabled){background:#dc2626}.btn-ghost{background:transparent;color:#64748b}.btn-ghost:hover:not(:disabled){background:#f1f5f9;color:#374151}.btn-sm{padding:.375rem .625rem;font-size:.8125rem}.btn-block{width:100%}.btn svg{width:14px;height:14px}.badge{display:inline-flex;align-items:center;padding:.1875rem .5rem;border-radius:9999px;font-size:.6875rem;font-weight:600}.badge-blue{background:#dbeafe;color:#1d4ed8}.badge-green{background:#dcfce7;color:#15803d}.badge-gray{background:#f1f5f9;color:#475569}.badge-yellow{background:#fef9c3;color:#854d0e}.badge-red{background:#fee2e2;color:#b91c1c}.badge-purple{background:#f3e8ff;color:#7c3aed}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:#fff;border-radius:12px;width:100%;max-width:520px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #00000026}.modal-lg{max-width:680px}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid #e2e8f0}.modal-title{font-size:1rem;font-weight:600}.modal-body{padding:1.5rem}.modal-footer{display:flex;gap:.75rem;justify-content:flex-end;padding:1rem 1.5rem;border-top:1px solid #e2e8f0}.modal-close{background:none;border:none;cursor:pointer;color:#94a3b8;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:4px;transition:background .15s}.modal-close:hover{background:#f1f5f9;color:#374151}.alert{padding:.75rem 1rem;border-radius:6px;font-size:.875rem;margin-bottom:1rem}.alert-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.alert-success{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}.alert-info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;color:#64748b;text-align:center}.empty-state-icon{width:48px;height:48px;background:#f1f5f9;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;color:#94a3b8}.empty-state h3{font-size:.9375rem;font-weight:600;color:#374151;margin-bottom:.375rem}.empty-state p{font-size:.875rem;margin-bottom:1.25rem}.back-link{display:inline-flex;align-items:center;gap:.375rem;color:#64748b;font-size:.875rem;margin-bottom:1rem;cursor:pointer;transition:color .15s}.back-link:hover{color:#0f172a}.plan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1rem}.plan-card{border:2px solid #e2e8f0;border-radius:12px;padding:1.5rem;position:relative}.plan-card.current{border-color:#2563eb}.plan-card.popular{border-color:#7c3aed}.plan-name{font-size:1rem;font-weight:700;margin-bottom:.25rem}.plan-price{font-size:1.75rem;font-weight:700;margin:.75rem 0}.plan-price span{font-size:.875rem;font-weight:400;color:#64748b}.plan-features{list-style:none;margin:1rem 0;display:flex;flex-direction:column;gap:.5rem}.plan-features li{font-size:.875rem;color:#374151;display:flex;align-items:center;gap:.5rem}.plan-features li:before{content:"✓";color:#22c55e;font-weight:700;flex-shrink:0}.payroll-summary{background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:1.25rem;margin-top:1rem}.payroll-summary-title{font-size:.8125rem;font-weight:600;color:#1d4ed8;margin-bottom:.75rem}.payroll-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1.5rem}.payroll-summary-row{display:flex;justify-content:space-between;font-size:.875rem;padding:.25rem 0}.payroll-summary-label{color:#64748b}.payroll-summary-value{font-weight:600}.net-pay-row{grid-column:1 / -1;background:#2563eb;color:#fff;border-radius:6px;padding:.75rem 1rem;display:flex;justify-content:space-between;align-items:center;margin-top:.5rem;font-weight:600}.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.text-sm{font-size:.875rem}.text-muted{color:#64748b}.text-right{text-align:right}.fw-600{font-weight:600}.divider{border:none;border-top:1px solid #e2e8f0;margin:1rem 0}
