* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --primary: #4361ee; --success: #10b981; --warning: #f59e0b; --danger: #ef4444; --dark: #1e293b; --gray: #64748b; --light: #f8fafc; --border: #e2e8f0; --shadow: 0 1px 3px rgba(0,0,0,0.1); --radius: 8px; }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
body.login header { display: none; }
body.index { background-position: left top; }
body.leaves { padding-bottom: 65px; }
textarea { height: 100px; }
.message-box { margin: 4px 0; text-transform: uppercase; padding: 12px; background: #fff3cd; border: 1px solid #e7b8b3; color: #856404; }
.message-box.red { background: #ffccc9; border: 1px solid #f0a8a1; color: #e00; }
.message-box.norecord { margin: 20px 0; padding: 15px; background: #fff3cd; border: 1px solid #ffeeba; color: #856404; }
.Inactive { text-decoration: line-through; color: red; }
.toggle-option input[type="radio"] { padding: 10px; width: auto; }
.selected-data-list { max-height: 250px; padding: 20px; overflow: scroll; margin: 20px; }
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.6); z-index: 10000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(3px); }
.loader { border: 4px solid #f3f3f3; border-top: 4px solid var(--primary); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin: 0 auto 15px; position: absolute;
  top: 50%;
  left: 50%;}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.filters-container { background: white; margin: 15px 20px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.filters-header { padding: 12px 15px; background: white; }
.filters-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.date-range-compact { display: flex; align-items: center; gap: 8px; background: var(--light); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); }
.date-range-compact i { font-size: 14px; color: var(--primary); }
.compact-date { border: none; background: transparent; padding: 6px 0; font-size: 13px; outline: none; width: 125px; }
.date-range-compact span { color: var(--gray); font-size: 12px; }
.search-compact { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: var(--light); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); }
.search-compact i { font-size: 14px; color: var(--gray); }
.search-compact input { flex: 1; border: none; background: transparent; outline: none; font-size: 13px; }
.search-compact input::placeholder { color: #aaa; }
.btn-primary-compact { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
.btn-primary-compact:hover { background: #3730a3; transform: translateY(-1px); }
.btn-advance { background: transparent; border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--gray); transition: all 0.2s; }
.btn-advance:hover { background: var(--light); border-color: var(--primary); color: var(--primary); }
.btn-advance.active { background: var(--primary); color: white; border-color: var(--primary); }
.btn-advance.active i { color: white; }
.btn-reset { background: var(--gray); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 12px; display: flex; align-items: center; gap: 6px; transition: all 0.2s; width: 100%; justify-content: center; }
.btn-reset:hover { background: #475569; }
.advanced-filters-compact { display: none; border-top: 1px solid var(--border); background: #fafbfc; padding: 15px; }
.advanced-filters-compact.show { display: block; animation: slideDown 0.2s ease; }
.adv-filter-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adv-filter-item { flex: 1; min-width: 140px; }
.compact-select, .compact-input { width: 90%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; background: white; outline: none; transition: all 0.2s; }
.compact-select:focus, .compact-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.page-header-section { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 0 5px; }
.page-title { margin: 0; font-size: 1.2em; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.page-title i { color: var(--primary); font-size: 22px; }
.download-buttons-wrapper { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-excel, .btn-gst { border: none; padding: 8px 20px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
.btn-excel { background: #10b981; color: white; }
.btn-excel:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-gst { background: #3b82f6; color: white; }
.btn-gst:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.results-container { margin: 20px; }
.no-data { text-align: center; padding: 50px; background: white; border-radius: var(--radius); color: var(--gray); }
.salary-koksamlai-wrapper { background: #ffffff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 20px; margin: 10px; }
.koksamlai-title-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; border-bottom: 2px solid #e8e8e8; }
.koksamlai-title-bar h3 { margin: 0; color: #2c3e50; font-size: 20px; }
.action-btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 500; transition: all 0.3s ease; display: inline-block; }
.action-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.filters-bar { display: flex; flex-wrap: wrap; gap: 16px; padding: 20px 24px; background: #ffffff; align-items: flex-end; }
.filter-field { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 6px; }
.filter-field label { font-size: 13px; font-weight: 600; color: #334155; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.filter-field select, .filter-field input[type="text"], .filter-field input[type="date"] { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; color: #1e293b; background: #ffffff; transition: all 0.2s ease; font-family: inherit; cursor: pointer; }
.filter-field select:hover, .filter-field input[type="text"]:hover { border-color: #94a3b8; }
.filter-field select:focus, .filter-field input[type="text"]:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.btn-filter { background: #3b82f6; color: white; border: none; padding: 10px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.2s ease; width: 100%; text-transform: uppercase; letter-spacing: 0.5px; width: 80px; }
.btn-filter:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); opacity: 0.8; background: #000; }
.btn-filter:active { transform: translateY(0); }
.apply-filters { background: #667eea; color: white; }
.apply-filters:hover { background: #5a67d8; }
.reset-filters { background: #e2e8f0; color: #4a5568; }
.reset-filters:hover { background: #cbd5e0; }
.koksamlai-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.koksamlai-table th { background: #494343; padding: 12px; text-align: left; font-weight: 600; color: #fff; border-bottom: 2px solid #e9ecef; }
.koksamlai-table td { padding: 12px; vertical-align: top; border-bottom: 1px solid #f1f3f5; }
.koksamlai-table tr:hover { background: #f8f9fa; }
.role-badge { background: #e9ecef; padding: 2px 6px; border-radius: 3px; font-size: 10px; color: #495057; }
.date-badge { font-weight: 500; color: #2c3e50; }
.payroll-period { font-weight: 500; color: #667eea; margin-bottom: 5px; }
.disbursed-amount { color: #28a745; font-size: 12px; }
.requested-amount { color: #fd7e14; margin-bottom: 5px; }
.difference { font-size: 12px; margin: 5px 0; padding: 3px 6px; border-radius: 3px; display: inline-block; }
.diff-positive { color: #dc3545; background: #ffeaea; }
.diff-negative { color: #28a745; background: #e8f5e9; }
.diff-neutral { color: #6c757d; background: #f8f9fa; }
.query-comment { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #dee2e6; }
.comment-label { font-weight: 600; color: #6c757d; font-size: 11px; }
.activity-timeline { max-height: 180px; overflow-y: auto; }
.log-item { padding: 6px; margin-bottom: 8px; background: #f8f9fa; border-left: 3px solid; border-radius: 4px; }
.log-approved { border-left-color: #28a745; }
.log-rejected { border-left-color: #dc3545; }
.log-closed { border-left-color: #6c757d; }
.log-commented { border-left-color: #17a2b8; }
.log-raised { border-left-color: #ffc107; }
.log-status { font-weight: 600; font-size: 10px; display: inline-block; padding: 2px 6px; border-radius: 3px; background: #e9ecef; }
.log-date { font-size: 10px; color: #6c757d; float: right; }
.log-user { font-size: 11px; color: #495057; margin: 4px 0; }
.log-comment { font-size: 11px; color: #6c757d; margin-top: 4px; }
.status-badge { display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.status-new { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-closed { background: #e2e3e5; color: #383d41; }
.status-disbursed { background: #d1ecf1; color: #0c5460; }
.action-buttons { white-space: nowrap; }
.action-btn { margin: 0 4px 4px 0; }
.action-btn.approve { background: #28a745; color: white; }
.action-btn.reject { background: #dc3545; color: white; }
.action-btn.comment, .action-btn.commentonly { background: #17a2b8; color: white; }
.action-btn.confirme { background: #6c757d; color: white; }
.action-btn:hover { opacity: 0.8; transform: translateY(-1px); }
.button-small { background-color: #17a2b8; color: white; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; font-size: 12px; margin-right: 5px; transition: background-color 0.3s; }
.button-small:hover { opacity: 0.8; transform: translateY(-1px); background-color: #545b62; }
.pagination-container { margin-top: 20px; text-align: center; }
.pagination { display: inline-flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-top: 24px; padding: 16px 0; }
.pagination a { padding: 6px 12px; border: 1px solid #dee2e6; color: #495057; text-decoration: none; cursor: pointer; border-radius: 4px; transition: all 0.2s; background: #ffffff; font-size: 13px; font-weight: 500; }
.pagination a:hover { background: #667eea; color: white; border-color: #667eea; transform: translateY(-1px); }
.pagination a.on { background: #3b82f6; color: white; border-color: #3b82f6; }
.form_container input, .form_container select, .form_container textarea { font-family: 'abel', sans-serif; padding: 8px 1%; border: solid 1px #fff; background: rgba(255,255,255,0.8); width: 100%; }
.tabular table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tabular table thead { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.tabular table th { padding: 14px 12px; text-align: left; font-weight: 600; color: #334155; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.tabular table td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #1e293b; }
.tabular table tbody tr { transition: all 0.2s ease; }
.tabular table tbody tr:hover { background: #fefce8; transform: scale(1.01); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.tabular table tbody tr.Inactive { background: #fef2f2; opacity: 0.8; }
.tabular table tbody tr.inprob { background: #fffbeb; border-left: 3px solid #f59e0b; }
.name { font-weight: 400; color: #3b82f6; text-decoration: none; transition: color 0.2s; }
.name:hover { color: #1d4ed8; }
.name.Inactive { color: #94a3b8; text-decoration: line-through; }
.role { font-size: 12px; color: #64748b; font-weight: normal; background: #f1f5f9; padding: 2px 8px; border-radius: 12px; margin-left: 6px; }
.tabular table td img { height: 45px; border-radius: 1%; object-fit: cover; border: 2px solid #e2e8f0; transition: all 0.2s ease; }
div[style*="background-color:#fc9"] { background: #fee2e2 !important; border: 1px solid #fecaca !important; color: #991b1b !important; border-radius: 12px !important; padding: 20px !important; text-align: center; font-weight: 500; }
.page_title { margin: 10px; padding: 0 4px; }
.title-section { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.title-section h1 { font-weight: 700; color: #1a2c3e; margin: 0; padding: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.title-section h1 span { font-weight: 500; color: #64748b; background: #f1f5f9; padding: 4px 12px; border-radius: 20px; letter-spacing: normal; }
.action-wrapper { flex-shrink: 0; }
button { font-family: roboto_cr; }
.staff-relation-card { background: #ffffff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); padding: 10px; margin: 10px 0; }
.relation-title { font-size: 18px; font-weight: 600; color: #1a1a2e; margin: 0 0 20px 0; padding-bottom: 12px; border-bottom: 2px solid #e0e0e0; }
.relation-grid { display: flex; flex-direction: column; gap: 16px; }
.relation-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px; background: #f8f9fa; border-radius: 8px; transition: all 0.2s ease; border-left: 3px solid; animation: fadeInUp 0.3s ease forwards; opacity: 0; }
.relation-item:hover { background: #f1f3f5; transform: translateX(4px); }
.relation-icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: white; border-radius: 8px; color: #4a5568; font-size: 18px; }
.relation-content { flex: 1; }
.relation-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: #718096; margin-bottom: 6px; }
.relation-value { font-size: 15px; color: #2d3748; }
.relation-value strong { color: #1a1a2e; font-weight: 600; }
.relation-names { display: flex; flex-wrap: wrap; gap: 8px; }
.name-tag { display: inline-block; padding: 4px 12px; background: #e2e8f0; color: #2d3748; border-radius: 6px; font-size: 11px; font-weight: 500; transition: all 0.2s ease; }
.name-tag:hover { background: #cbd5e0; transform: scale(1.02); }
.team-tag { display: inline-block; padding: 6px 14px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 20px; font-size: 13px; font-weight: 500; transition: all 0.2s ease; }
.team-tag:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3); }
.reporting-to { border-left-color: #4299e1; }
.reporting-for { border-left-color: #48bb78; }
.approver1 { border-left-color: #ed8936; }
.approver2 { border-left-color: #9f7aea; }
.team-leader { border-left-color: #f56565; }
.roster-manager { border-left-color: #38b2ac; }
.reporting-to .relation-icon { color: #4299e1; }
.reporting-for .relation-icon { color: #48bb78; }
.approver1 .relation-icon { color: #ed8936; }
.approver2 .relation-icon { color: #9f7aea; }
.team-leader .relation-icon { color: #f56565; }
.roster-manager .relation-icon { color: #38b2ac; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.relation-item:nth-child(1) { animation-delay: 0.05s; }
.relation-item:nth-child(2) { animation-delay: 0.1s; }
.relation-item:nth-child(3) { animation-delay: 0.15s; }
.relation-item:nth-child(4) { animation-delay: 0.2s; }
.relation-item:nth-child(5) { animation-delay: 0.25s; }
.relation-item:nth-child(6) { animation-delay: 0.3s; }
@media (max-width: 1024px) { .filter-field { min-width: 200px; } }
@media (max-width: 768px) { .filters-row { flex-direction: column; align-items: stretch; } .date-range-compact { justify-content: space-between; } .compact-date { width: auto; flex: 1; } .search-compact { width: 100%; } .btn-primary-compact, .btn-advance { justify-content: center; } .adv-filter-grid { flex-direction: column; } .adv-filter-item { width: 100%; } .page-header-section { flex-direction: column; align-items: flex-start; } .page-title { font-size: 20px; } .download-buttons-wrapper { width: 100%; } .btn-excel, .btn-gst { flex: 1; justify-content: center; padding: 8px 16px; font-size: 13px; } .filters-bar { flex-direction: column; gap: 12px; padding: 16px; } .filter-field { width: 100%; } .btn-filter { margin-top: 8px; } .koksamlai-table thead { display: none; } .koksamlai-table td { display: block; padding: 10px; } .koksamlai-table td:before { content: attr(data-label); font-weight: 600; display: inline-block; width: 120px; } .koksamlai-table tr { display: block; margin-bottom: 15px; border: 1px solid #dee2e6; border-radius: 8px; } .staff-relation-card { padding: 15px; } .relation-item { flex-direction: column; align-items: flex-start; } .relation-icon { width: 32px; height: 32px; font-size: 16px; } .name-tag, .team-tag { font-size: 12px; padding: 3px 10px; } }
@media (max-width: 480px) { .download-buttons-wrapper { flex-direction: column; width: 100%; } .btn-excel, .btn-gst { width: 100%; justify-content: center; } .page-title { font-size: 18px; } }