﻿* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #333; overflow-x: hidden; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #fff; border-right: 1px solid #e1e4e8; padding: 0 0 20px; flex-shrink: 0; }
.admin-sidebar h4 { color: #888; font-size: 11px; text-transform: uppercase; font-weight: 600; padding: 12px 20px; margin: 0; }
/* Sidebar company brand block */
.sidebar-brand { display: flex; align-items: center; justify-content: center; padding: 18px 20px 14px; border-bottom: 1px solid #f0f2f5; min-height: 64px; }
.sidebar-brand-logo { max-height: 48px; max-width: 140px; width: auto; object-fit: contain; display: block; }
.sidebar-brand-text { font-size: 17px; font-weight: 700; color: #1a1a2e; letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
/* Rebrand settings form */
.trk-wrap { padding: 24px 28px 40px; max-width: 580px; }
.trk-section { margin-bottom: 24px; }
.trk-section-title { font-size: 11.5px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 12px; padding-bottom: 7px; border-bottom: 1px solid #e5e7eb; }
.trk-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.trk-label { font-size: 13px; font-weight: 600; color: #374151; }
.trk-hint { font-size: 11.5px; color: #9ca3af; line-height: 1.4; }
.trk-select, .trk-input { display: block; width: 100%; box-sizing: border-box; padding: 8px 11px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; color: #111827; background: #fff; outline: none; appearance: auto; }
.trk-select:focus, .trk-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px #eef2ff; }
.trk-days { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; align-items: center; }
.trk-day-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #d1d5db; background: #fff; font-size: 11px; font-weight: 700; color: #6b7280; cursor: pointer; transition: background .12s, color .12s, border-color .12s; flex-shrink: 0; }
.trk-day-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; }
.trk-day-btn:hover:not(.active) { border-color: #6366f1; color: #6366f1; }
.trk-save-btn { margin-top: 8px; padding: 9px 26px; background: #6366f1; color: #fff; border: none; border-radius: 7px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s; }
.trk-save-btn:hover { background: #4f46e5; }
.trk-save-btn:disabled { opacity: .6; cursor: default; }
.trk-msg { font-size: 13px; padding: 8px 13px; border-radius: 6px; margin-bottom: 14px; }
.trk-msg.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.trk-msg.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.rebrand-wrap { padding: 28px 32px 40px; max-width: 560px; }
.rebrand-hint { font-size: 14px; color: #6b7280; margin: 0 0 28px; line-height: 1.5; }
.rebrand-form { display: flex; flex-direction: column; gap: 24px; }
.rebrand-field { display: flex; flex-direction: column; gap: 6px; }
.rebrand-label { font-size: 13px; font-weight: 600; color: #374151; }
.rebrand-required { color: #dc2626; }
.rebrand-input { border: 1px solid #d1d5db; border-radius: 6px; padding: 9px 12px; font-size: 14px; color: #111827; outline: none; transition: border-color .15s; }
.rebrand-input:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15); }
.rebrand-input-err { border-color: #dc2626; }
.rebrand-err-msg { font-size: 12px; color: #dc2626; margin-top: 2px; }
.rebrand-logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rebrand-upload-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px dashed #9ca3af; border-radius: 6px; font-size: 13px; font-weight: 500; color: #4b5563; cursor: pointer; background: #f9fafb; transition: border-color .15s, background .15s; }
.rebrand-upload-btn:hover { border-color: #6366f1; background: #eef2ff; color: #4338ca; }
.rebrand-remove-btn { font-size: 12px; color: #dc2626; background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 4px; font-weight: 500; }
.rebrand-remove-btn:hover { background: #fef2f2; }
.rebrand-logo-hint { font-size: 12px; color: #9ca3af; margin: 4px 0 0; }
.rebrand-preview-box { margin-top: 14px; display: inline-flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rebrand-preview-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #9ca3af; letter-spacing: .5px; }
.rebrand-preview-img { max-height: 80px; max-width: 260px; object-fit: contain; border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px; background: #fff; }
.rebrand-msg { padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.rebrand-msg-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.rebrand-msg-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.rebrand-save-btn { align-self: flex-start; background: #6366f1; color: #fff; border: none; border-radius: 6px; padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.rebrand-save-btn:hover:not(:disabled) { background: #4f46e5; }
.rebrand-save-btn:disabled { opacity: .6; cursor: default; }
.admin-sidebar a { display: flex; align-items: center; gap: 9px; padding: 10px 20px; color: #444; text-decoration: none; font-size: 14px; font-weight: 500; }
.admin-sidebar a:hover { background: #f9f9f9; }
.admin-sidebar a.active { background: #eef5fc; color: #007bff; font-weight: 600; border-left: 3px solid #007bff; padding-left: 17px; }
.admin-sidebar a svg { flex-shrink: 0; opacity: 0.55; }
.admin-sidebar a.active svg { opacity: 1; color: #007bff; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fafafa; }
.admin-header { background: #fff; padding: 15px 30px; border-bottom: 1px solid #e1e4e8; display: flex; justify-content: space-between; align-items: center; }
.admin-header-title { font-size: 22px; font-weight: 700; color: #222; }
.admin-header-actions { display: flex; align-items: center; gap: 15px; }

.release-notes { font-size: 14px; color: #555; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.badge-red { background: #ff4d4f; color: white; border-radius: 50%; font-size: 11px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.add-users-btn { background: #007bff; color: white; padding: 8px 16px; border: none; border-radius: 20px; font-weight: 600; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 5px; text-transform: uppercase; }

.top-select { border: 1px solid #ddd; padding: 8px 12px; border-radius: 6px; background: #fff; font-size: 13px; color: #333; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.profile-avatar { width: 36px; height: 36px; border-radius: 50%; background: #6366f1; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; }

.admin-content { padding: 30px; flex: 1; background: transparent; }

.top-stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.stat-title { font-size: 12px; font-weight: 600; color: #666; margin-bottom: 8px; }
.stat-value { font-size: 22px; font-weight: 700; color: #222; }
.stat-count-wrap { position: relative; display: inline-block; cursor: default; }

/* Stat card name tooltip */
.stat-names-popover { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,0.14); z-index: 9999; min-width: 200px; max-width: 260px; padding: 6px 0 8px; }
.stat-count-wrap:hover .stat-names-popover { display: block; }
.stat-names-popover-title { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 14px 7px; border-bottom: 1px solid #f3f4f6; margin-bottom: 2px; }
.stat-names-list { max-height: 240px; overflow-y: auto; }
.stat-names-list::-webkit-scrollbar { width: 4px; }
.stat-names-list::-webkit-scrollbar-track { background: transparent; }
.stat-names-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.stat-names-item { padding: 5px 16px; font-size: 13px; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.stat-names-item:hover { background: #f9fafb; color: #111827; }
.stat-names-empty { padding: 14px; font-size: 13px; color: #9ca3af; text-align: center; }

.grid-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-row-3 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 20px; }

.card-panel { background: #fff; border: 1px solid #eee; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); min-height: 250px; }
.card-header { padding: 15px 20px; border-bottom: 1px solid transparent; font-size: 15px; font-weight: 600; color: #444; }
.card-body { padding: 20px; height: 100%; display: flex; flex-direction: column; }

/* Bar chart */
.chart-container { display: flex; align-items: flex-end; justify-content: center; height: 150px; gap: 40px; border-left: 1px solid #eee; border-bottom: 1px solid #eee; padding-left: 10px; padding-bottom: 10px; margin: 0 20px 20px 40px; position: relative; }
.y-axis { position: absolute; left: -30px; top: -10px; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: #888; }
.y-axis-label { position: absolute; left: -50px; top: 50%; transform: translateY(-50%) rotate(-90deg); font-size: 10px; color: #888; }
.chart-group { display: flex; align-items: flex-end; gap: 2px; }
.chart-bar { width: 20px; border-top-left-radius: 2px; border-top-right-radius: 2px; }
.x-axis-labels { display: flex; justify-content: center; gap: 50px; font-size: 10px; color: #888; margin-left: 40px; }
.chart-legend { display: flex; justify-content: center; gap: 15px; font-size: 11px; margin-top: 15px; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-color { width: 12px; height: 8px; border-radius: 2px; }

/* Donut chart layout */
.top-apps-container { display: flex; height: 100%; align-items: center; gap: 30px; justify-content: space-around; }
.apps-list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.app-pill { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }

.empty-state { text-align: left; padding-top: 10px; }
.empty-title { font-weight: 500; font-size: 13px; color: #333; margin-bottom: 15px; }
.empty-desc { font-size: 12px; color: #666; margin-bottom: 15px; line-height: 1.6; }
.empty-link { color: #007bff; text-decoration: none; }

/* Summary Table */
.summary-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.summary-table th { text-align: left; background: #f8f9fa; padding: 10px; border-bottom: 1px solid #eee; color: #666; font-weight: 500; }
.summary-table td { padding: 10px; border-bottom: 1px solid #f8f9fa; color: #333; }
.summary-table tr:nth-child(even) { background: #fafbfc; }

/* Two-Panel Sidebar Layout (used by /screenshots) */
.members-sidebar-layout { display: flex; gap: 20px; align-items: flex-start; }
.members-sidebar { width: 260px; flex-shrink: 0; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; position: sticky; top: 0; }
.members-sidebar-search { padding: 10px 12px; border-bottom: 1px solid #eee; position: relative; display: flex; align-items: center; }
.members-sidebar-search input { width: 100%; padding: 7px 32px 7px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; color: #333; background: #fafafa; }
.members-sidebar-search input:focus { border-color: #007bff; background: #fff; }
.members-search-icon { position: absolute; right: 22px; color: #aaa; pointer-events: none; }
.members-list { overflow-y: auto; max-height: calc(100vh - 160px); }
.member-list-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.15s; }
.member-list-item:hover { background: #f9f9f9; }
.member-list-avatar { width: 30px; height: 30px; border-radius: 50%; background: #6366f1; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.member-list-name { flex: 1; font-size: 13px; font-weight: 500; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.member-status-dot.working { background: #31c48d; }
.member-status-dot.break { background: #e3a008; }
.member-status-dot.stopped { background: #f05252; }
.members-main { flex: 1; min-width: 0; }
.app-search-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 9px 14px; margin-bottom: 16px; }
.app-search-box input { flex: 1; border: none; outline: none; font-size: 13px; color: #333; background: transparent; }
.app-search-box input::placeholder { color: #bbb; }
.app-search-box svg { color: #aaa; flex-shrink: 0; }

/* My Team Grid and Card Skins */
.employee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1400px) { .employee-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .employee-grid { grid-template-columns: repeat(2, 1fr); } }
.employee-card { border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; border: none; transition: transform 0.12s, box-shadow 0.12s; }
.employee-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important; }
.employee-card-header { display: flex; align-items: flex-start; gap: 10px; position: relative; }
.employee-card-avatar { width: 40px; height: 40px; border-radius: 50%; background: #E5E5E5; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #6B7280; flex-shrink: 0; overflow: hidden; }
.employee-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.employee-card-name { font-weight: 700; font-size: 16px; color: #1F1F1F; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.employee-card-name-role { flex: 1; min-width: 0; }
.employee-card-active-time { flex-shrink: 0; text-align: right; }
.active-pct { font-size: 22px; font-weight: 700; color: #16A34A; line-height: 1; }
.active-label { font-size: 10px; color: #6B7280; text-transform: uppercase; font-weight: 600; margin-top: 2px; }

.status-text { font-size: 13px; color: #4A4A4A; font-weight: 400; }
.yet-to-start-badge { display: inline-flex; align-items: center; justify-content: center; background: #F59E0B; color: #fff; font-weight: 700; font-size: 12px; border-radius: 20px; padding: 6px 20px; align-self: center; }

.app-usage-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 11.5px; font-weight: 500; color: #222; max-width: 100%; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.app-usage-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.app-usage-pill img { width: 15px; height: 15px; flex-shrink: 0; border-radius: 2px; }
.app-letter-icon { width: 15px; height: 15px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; color: #fff; flex-shrink: 0; line-height: 1; }
.app-pill-placeholder { height: 30px; }

.card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.footer-stat { display: flex; flex-direction: column; gap: 2px; }
.footer-val { font-size: 12px; font-weight: 600; color: #6B7280; }
.footer-lbl { font-size: 10px; color: #9CA3AF; font-weight: 600; text-transform: uppercase; }

.progress-bar-container { flex: 1; height: 5px; background: rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.progress-bar-fill { height: 100%; border-radius: 10px; }

/* Status Colors */
.card-started { background-color: #DCF5DC; }
.card-started .progress-bar-fill { background-color: #16A34A; }
.card-started .active-pct { color: #16A34A; }

.card-stopped { background-color: #FADCDC; }
.card-stopped .progress-bar-fill { background-color: #f43f5e; }
.card-stopped .active-pct { color: #B91C1C; }

.card-break { background-color: #E5E5E5; }
.card-break .progress-bar-fill { background-color: #9CA3AF; }
.card-break .active-pct { color: #9CA3AF; }

.card-yet { background-color: #FBF6D9; }
.card-yet .progress-bar-fill { background-color: #F59E0B; }
.card-yet .active-pct { color: #9CA3AF; }

.card-not-installed { background-color: #FBF6D9; }
.card-not-installed .progress-bar-fill { background-color: #F59E0B; }
.card-not-installed .active-pct { color: #9CA3AF; }
.card-no-activity { background-color: #E5E5E5; }
.card-no-activity .progress-bar-fill { background-color: #d1d5db; }
.card-no-activity .active-pct { color: #9CA3AF; }
.card-holiday { background-color: #ede9fe; }
.card-holiday .progress-bar-fill { background-color: #7c3aed; }
.card-holiday .active-pct { color: #7c3aed; }
.cal-day.selected { background: #4361ee; color: #fff; border-radius: 50%; }

/* My Team header search */
.my-team-search-wrap { position: relative; display: flex; align-items: center; }
.my-team-search-wrap svg { position: absolute; left: 10px; color: #aaa; pointer-events: none; }
.my-team-search-input { padding: 7px 12px 7px 32px; border: 1px solid #ddd; border-radius: 20px; font-size: 13px; width: 200px; outline: none; background: #fafafa; color: #333; }
.my-team-search-input:focus { border-color: #007bff; background: #fff; }

/* Date picker popover */
.date-picker-wrap { position: relative; }
.date-picker-popover { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid #e1e4e8; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 999; display: flex; flex-direction: column; min-width: 520px; }
.date-picker-body { display: flex; gap: 0; }
.date-picker-calendar { padding: 20px; flex: 1; border-right: 1px solid #f0f0f0; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month-label { font-weight: 700; font-size: 14px; color: #1a1a1b; }
.cal-nav { background: none; border: 1px solid #e1e4e8; border-radius: 6px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; color: #555; }
.cal-nav:hover { background: #f5f5f5; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-header { text-align: center; font-size: 11px; font-weight: 600; color: #888; padding: 4px 0; }
.cal-day { text-align: center; padding: 5px 2px; font-size: 12px; border-radius: 50%; cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; margin: 1px auto; color: #333; }
.cal-day:hover { background: #f0f0f0; }
.cal-day.today { background: #007bff; color: white; font-weight: 700; }
.cal-day.selected { background: #007bff; color: white; font-weight: 700; }
.cal-day.other-month { color: #ccc; }
.date-picker-periods { padding: 20px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.period-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.period-btn { padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 500; color: #444; cursor: pointer; text-align: center; }
.period-btn:hover { background: #f5f5f5; }
.period-btn.active { background: #eef5fc; color: #007bff; border-color: #007bff; font-weight: 600; }
.date-picker-footer { padding: 12px 16px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 10px; }
.dp-cancel-btn { padding: 8px 20px; border: 1px solid #ddd; border-radius: 6px; background: #fff; font-size: 13px; font-weight: 500; color: #444; cursor: pointer; }
.dp-cancel-btn:hover { background: #f5f5f5; }
.dp-apply-btn { padding: 8px 20px; border: none; border-radius: 6px; background: #007bff; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; }
.dp-apply-btn:hover { background: #0056b3; }

/* Screenshots Section */
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.screenshot-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,0.06); cursor: pointer; display: flex; flex-direction: column; }
.screenshot-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.10); }
.screenshot-card-header { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #f3f4f6; min-width: 0; }
.screenshot-site-name { flex: 1; font-size: 12px; font-weight: 600; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.screenshot-card-checkbox { width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; accent-color: #4361ee; }
.screenshot-card.selected { outline: 2px solid #4361ee; }
.screenshot-thumb-container { width: 100%; height: 155px; background: #f8f9fa; overflow: hidden; flex-shrink: 0; }
.screenshot-thumb { width: 100%; height: 100%; object-fit: cover; }
.screenshot-card-footer { padding: 8px 10px; border-top: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.screenshot-username { font-size: 12px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.screenshot-time { font-size: 11px; color: #6b7280; display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.ss-delete-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff3f3; border: 1px solid #fca5a5; border-radius: 8px; margin-bottom: 12px; }
.ss-select-all-label { font-size: 13px; color: #374151; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ss-delete-btn { margin-left: auto; background: #ef4444; color: #fff; border: none; border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.ss-delete-btn:hover { background: #dc2626; }
.ss-trash-btn { background: none; border: none; cursor: pointer; color: #ef4444; display: flex; align-items: center; padding: 2px 4px; border-radius: 4px; }
.ss-trash-btn:hover { background: #fee2e2; }
.ss-export-btn { margin-left: auto; background: #16a34a; color: #fff; border: none; border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ss-export-btn:hover:not(:disabled) { background: #15803d; }
.ss-export-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.ss-toast { position: fixed; bottom: 28px; right: 28px; background: #16a34a; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 18px rgba(0,0,0,0.18); z-index: 9999; display: flex; align-items: center; gap: 8px; animation: ssToastIn .22s ease; }
@keyframes ssToastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ss-modal-delete-btn { background: #ef4444; color: #fff; border: none; border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ss-modal-delete-btn:hover { background: #dc2626; }

.center-msg { display: flex; align-items: center; justify-content: center; height: 100px; color: #666; font-size: 13px; }
.seen-all { text-align: center; color: #aaa; font-size: 12px; margin-top: 15px; }

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); display: flex; justify-content: center; align-items: center; z-index: 9999; cursor: pointer; }
.modal-content { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); cursor: default; }
.modal-close { position: absolute; top: 20px; right: 20px; color: white; background: rgba(0,0,0,0.5); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 24px; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.modal-close:hover { background: rgba(255,255,255,0.2); }
/* Screenshot preview modal */
.ss-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.ss-modal { background: #fff; border-radius: 14px; width: min(1100px, 93vw); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,0.45); overflow: hidden; }
.ss-modal-header { display: flex; align-items: center; gap: 14px; padding: 18px 22px 16px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.ss-app-icon-circle { width: 52px; height: 52px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.ss-app-icon-circle img { width: 30px; height: 30px; object-fit: contain; border-radius: 4px; }
.ss-app-icon-letter { width: 30px; height: 30px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.ss-header-info { flex: 1; min-width: 0; }
.ss-app-name { font-size: 22px; font-weight: 700; color: #111; line-height: 1.2; }
.ss-user-tag { font-size: 14px; color: #d63384; font-weight: 500; margin-top: 3px; }
.ss-header-datetime { display: flex; align-items: center; gap: 6px; color: #9ca3af; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.ss-modal-close-btn { background: none; border: none; font-size: 26px; color: #9ca3af; cursor: pointer; padding: 2px 6px; border-radius: 6px; line-height: 1; margin-left: 10px; flex-shrink: 0; }
.ss-modal-close-btn:hover { background: #f3f4f6; color: #374151; }
.ss-image-wrap { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; background: #f8f9fa; padding: 20px 56px; min-height: 0; }
.ss-modal-img { width: 100%; height: 500px; object-fit: contain; display: block; border-radius: 4px; background: #000; }
.ss-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 1px solid #e5e7eb; box-shadow: 0 2px 10px rgba(0,0,0,0.14); cursor: pointer; font-size: 22px; color: #374151; display: flex; align-items: center; justify-content: center; z-index: 2; transition: box-shadow 0.15s, background 0.15s; }
.ss-nav-btn:hover:not(:disabled) { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.22); }
.ss-nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.ss-nav-left { left: 10px; }
.ss-nav-right { right: 10px; }

/* My Work Report */
.mwr-container { max-width: 900px; margin: 0 auto; padding: 0 4px; }
.mwr-date-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.mwr-date-nav-btn { border: 1px solid #e5e7eb; background: #fff; color: #374151; border-radius: 7px; padding: 6px 16px; font-size: 13px; cursor: pointer; font-weight: 500; transition: background 0.12s, border-color 0.12s; }
.mwr-date-nav-btn:hover:not(:disabled) { background: #f3f4f6; border-color: #d1d5db; }
.mwr-date-nav-btn:disabled { opacity: 0.38; cursor: default; }
.mwr-date-nav-btn.mwr-today-active { background: #4f46e5; color: #fff; border-color: #4f46e5; font-weight: 600; }
.mwr-date-nav-btn.mwr-today-active:hover { background: #4338ca; border-color: #4338ca; }
.mwr-date-nav-label { font-size: 14px; font-weight: 600; color: #374151; padding: 0 6px; }
.mwr-date-input { border: 1px solid #e5e7eb; border-radius: 7px; padding: 5px 10px; font-size: 12px; color: #374151; margin-left: auto; cursor: pointer; }
.mwr-profile-card { background: #fff; border-radius: 14px; padding: 26px 32px; display: flex; align-items: center; gap: 24px; margin-bottom: 22px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; }
.mwr-avatar { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: 700; color: #fff; flex-shrink: 0; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.mwr-profile-info { flex: 1; }
.mwr-name { font-size: 19px; font-weight: 700; color: #111827; margin: 0 0 3px; }
.mwr-email { font-size: 13px; color: #6b7280; margin: 0 0 7px; }
.mwr-emp-id { display: inline-block; font-size: 11.5px; font-weight: 600; color: #4f46e5; background: #eef2ff; border-radius: 20px; padding: 3px 12px; }
.mwr-date-label { font-size: 13px; color: #9ca3af; text-align: right; white-space: nowrap; }
.mwr-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 600px) { .mwr-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.mwr-stat-card { background: #fff; border-radius: 13px; padding: 22px 24px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.055); border: 1px solid #f0f0f0; position: relative; overflow: hidden; }
.mwr-stat-card::after { content: ''; position: absolute; right: -12px; bottom: -12px; width: 56px; height: 56px; border-radius: 50%; opacity: 0.07; }
.mwr-stat-value { font-size: 30px; font-weight: 800; color: #111827; line-height: 1.1; margin-bottom: 5px; }
.mwr-stat-label { font-size: 11.5px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.mwr-stat-desc { font-size: 11.5px; color: #9ca3af; }
.mwr-stat-card.accent-green { border-top: 4px solid #10b981; } .mwr-stat-card.accent-green::after { background: #10b981; }
.mwr-stat-card.accent-blue { border-top: 4px solid #3b82f6; } .mwr-stat-card.accent-blue::after { background: #3b82f6; }
.mwr-stat-card.accent-purple { border-top: 4px solid #8b5cf6; } .mwr-stat-card.accent-purple::after { background: #8b5cf6; }
.mwr-stat-card.accent-amber { border-top: 4px solid #f59e0b; } .mwr-stat-card.accent-amber::after { background: #f59e0b; }
.mwr-stat-card.accent-red { border-top: 4px solid #ef4444; } .mwr-stat-card.accent-red::after { background: #ef4444; }
.mwr-stat-card.accent-teal { border-top: 4px solid #14b8a6; } .mwr-stat-card.accent-teal::after { background: #14b8a6; }
.mwr-section { background: #fff; border-radius: 14px; padding: 22px 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.055); border: 1px solid #f0f0f0; margin-bottom: 24px; }
.mwr-section-title { font-size: 14.5px; font-weight: 700; color: #374151; margin: 0 0 16px; }
.mwr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mwr-table th { text-align: left; padding: 9px 14px; color: #6b7280; font-weight: 600; border-bottom: 2px solid #f3f4f6; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; background: #fafafa; }
.mwr-table th:first-child { border-radius: 6px 0 0 0; } .mwr-table th:last-child { border-radius: 0 6px 0 0; }
.mwr-table td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: middle; }
.mwr-table tbody tr:last-child td { border-bottom: none; }
.mwr-table tbody tr:hover td { background: #fafafa; }
.mwr-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 3px 11px; font-size: 11.5px; font-weight: 600; }
.mwr-badge-pending { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.mwr-badge-approved { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.mwr-badge-rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.mwr-badge-cancelled { background: #f3f4f6; color: #4b5563; border: 1px solid #d1d5db; }
.mwr-empty { color: #9ca3af; font-size: 14px; text-align: center; padding: 28px 0; }
.mwr-loading { color: #9ca3af; text-align: center; padding: 48px 0; font-size: 15px; }

/* Login page */
.lp-page { min-height: 100vh; background: #f3f4f6; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 40px 36px 36px; width: 100%; max-width: 380px; box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.lp-header { text-align: center; margin-bottom: 30px; }
.lp-shield { width: 56px; height: 56px; background: #eff6ff; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lp-title { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 5px; }
.lp-subtitle { font-size: 12.5px; color: #9ca3af; margin: 0; letter-spacing: 0.3px; }
.lp-form { display: flex; flex-direction: column; gap: 18px; }
.lp-field { display: flex; flex-direction: column; gap: 6px; }
.lp-label { font-size: 13px; font-weight: 600; color: #374151; }
.lp-input-wrap { position: relative; }
.lp-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.lp-input { width: 100%; padding: 10px 12px 10px 38px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 14px; color: #111827; background: #fafafa; outline: none; box-sizing: border-box; transition: border-color 0.15s, background 0.15s; }
.lp-input:focus { border-color: #1a56db; background: #fff; box-shadow: 0 0 0 3px rgba(26,86,219,0.08); }
.lp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #1a56db; color: #fff; border: none; border-radius: 8px; padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 4px; transition: background 0.15s; width: 100%; }
.lp-btn:hover { background: #1648c0; }

/* Timeline Styles */
.timeline-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.timeline-legend-productive { background: #22c55e; }
.timeline-legend-unproductive { background: #ef4444; }
.timeline-legend-neutral { background: #3b82f6; }
.timeline-legend-idle { background: #f97316; }
.timeline-legend-not-in-work { background: #eab308; }
.timeline-legend-untracked { background: #9ca3af; }

/* Timeline layout — matches reference */
.tl-container { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 22px 24px; }
.tl-date-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.tl-date-btn { border: 1px solid #e5e7eb; background: #fff; color: #374151; border-radius: 6px; padding: 5px 13px; font-size: 12px; cursor: pointer; font-weight: 500; }
.tl-date-btn:hover { background: #f9fafb; }
.tl-date-btn.tl-today-active { background: #2563eb; color: #fff; border-color: #2563eb; }
.tl-date-label { font-size: 12px; color: #6b7280; margin-left: 2px; }
.tl-date-input { border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px 10px; font-size: 12px; color: #374151; }
.tl-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.tl-section-title { font-size: 15px; font-weight: 700; color: #111827; }
.tl-legend-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.tl-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #4b5563; white-space: nowrap; }
.tl-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.tl-grid { display: flex; flex-direction: column; }
.tl-row { display: flex; align-items: center; padding: 4px 0; border-bottom: 1px solid #f3f4f6; min-height: 44px; gap: 0; }
.tl-row:last-child { border-bottom: none; }
.tl-name-col { width: 190px; flex-shrink: 0; padding-right: 14px; }
.tl-name-text { font-size: 12.5px; font-weight: 400; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 180px; cursor: pointer; line-height: 1.3; }
.tl-name-text:hover { color: #2563eb; }
.tl-bar-wrap { flex: 1; position: relative; height: 45px; background: transparent; overflow: hidden; }
.tl-segment { position: absolute; top: 0; height: 100%; cursor: pointer; }
.tl-segment:hover { filter: brightness(0.88); z-index: 5; }

.tl-axis-wrap { margin-left: 190px; margin-top: 4px; position: relative; height: 22px; }
.tl-axis-tick { position: absolute; transform: translateX(-50%); text-align: center; line-height: 1; }
.tl-axis-tick-label { font-size: 11px; color: #9ca3af; display: block; }
.tl-axis-tick-label.tl-tick-full { font-size: 11px; color: #6b7280; font-weight: 600; }
.tl-axis-tick-label.tl-tick-half { font-size: 10px; color: #b0b7c3; }

.tl-tooltip { position: fixed; background: #1e1e2e; color: #fff; padding: 10px 14px; border-radius: 9px; font-size: 12px; z-index: 9999; pointer-events: none; max-width: 260px; box-shadow: 0 6px 24px rgba(0,0,0,0.3); line-height: 1.6; }
.tl-tooltip-app { font-weight: 700; font-size: 13px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-tooltip-row { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.tl-tooltip-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 10px; font-weight: 700; }

.tl-loading { text-align: center; padding: 48px; color: #9ca3af; font-size: 13px; }
.tl-footer-note { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f0f0; }

.timeline-controls { display: flex; gap: 10px; align-items: center; }
.timeline-date-btn { padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; }
.timeline-date-btn:hover { background: #f5f5f5; }

.timeline-employees { display: flex; flex-direction: column; gap: 12px; }
.timeline-row { display: flex; align-items: center; gap: 15px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.timeline-row:last-child { border-bottom: none; }
.timeline-employee-info { width: 200px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.timeline-employee-avatar { width: 32px; height: 32px; border-radius: 50%; background: #6366f1; color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }
.timeline-employee-name { font-size: 13px; font-weight: 600; color: #333; }

.timeline-bar-container { flex: 1; height: 24px; position: relative; display: flex; }
.timeline-bar { height: 100%; display: flex; }
.timeline-segment { height: 100%; }
.timeline-segment-productive { background: #2ecc71; }
.timeline-segment-unproductive { background: #e74c3c; }
.timeline-segment-neutral { background: #3498db; }
.timeline-segment-idle { background: #64748b; }
.timeline-segment-not-in-work { background: #f1c40f; }
.timeline-segment-untracked { background: #bdc3c7; }

.timeline-total-time { width: 80px; text-align: right; font-size: 12px; font-weight: 600; color: #333; flex-shrink: 0; }

.timeline-axis { display: flex; justify-content: space-between; margin-left: 215px; margin-top: 8px; font-size: 11px; color: #888; padding-right: 95px; }

.timeline-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.timeline-page-btn { width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.timeline-page-btn:hover { background: #f5f5f5; }
.timeline-page-btn.active { background: #007bff; color: white; border-color: #007bff; }
.timeline-page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Leave Management Styles */
.leave-balance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.leave-balance-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; text-align: center; }
.leave-balance-card-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; }
.leave-balance-code { font-size: 32px; font-weight: 700; color: #10b981; margin-bottom: 16px; }
.leave-balance-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.leave-balance-row:last-child { border-bottom: none; }
.leave-balance-label { color: #6b7280; }
.leave-balance-value { font-weight: 600; color: #111; }

.leave-details-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 24px; }
.leave-details-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.leave-details-title { font-size: 20px; font-weight: 600; color: #111; }
.leave-tabs { display: flex; gap: 20px; }
.leave-tab { font-size: 14px; font-weight: 500; color: #6b7280; cursor: pointer; padding-bottom: 8px; border-bottom: 2px solid transparent; }
.leave-tab:hover { color: #333; }
.leave-tab.active { color: #007bff; border-bottom-color: #007bff; }
.leave-actions { display: flex; gap: 10px; }
.leave-action-btn { padding: 8px 16px; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.leave-action-btn.short { background: #20B2AA; color: white; }
.leave-action-btn.full { background: #20B2AA; color: white; }
.leave-action-btn:hover { opacity: 0.9; }

.leave-filters { display: flex; gap: 15px; margin-bottom: 20px; }
.leave-filter-select { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; min-width: 150px; }
.leave-empty-state { text-align: center; padding: 60px 20px; color: #9ca3af; font-size: 15px; }

.leave-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.leave-modal { background: #fff; border-radius: 12px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; }
.leave-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e5e7eb; }
.leave-modal-title { font-size: 18px; font-weight: 600; color: #111; }
.leave-modal-close { background: none; border: none; font-size: 24px; color: #6b7280; cursor: pointer; padding: 0; line-height: 1; }
.leave-modal-close:hover { color: #111; }
.leave-modal-body { padding: 24px; }
.leave-modal-footer { padding: 20px 24px; border-top: 1px solid #e5e7eb; text-align: center; }

.leave-form-group { margin-bottom: 20px; }
.leave-form-label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 8px; }
.leave-form-label .required { color: #dc2626; }
.leave-form-input, .leave-form-select, .leave-form-textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
.leave-form-textarea { min-height: 100px; resize: vertical; }
.leave-form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.leave-details-box { background: #E6F3FF; border-radius: 8px; padding: 16px; margin-top: 16px; }
.leave-details-box-title { font-size: 14px; font-weight: 600; color: #1e40af; margin-bottom: 12px; }
.leave-details-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.leave-details-row:last-child { margin-bottom: 0; }
.leave-details-label { color: #6b7280; }
.leave-details-value { font-weight: 600; color: #111; }

.leave-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.leave-summary-box { background: #E6F3FF; border-radius: 8px; padding: 20px; }
.leave-summary-title { font-size: 14px; font-weight: 600; color: #1e40af; margin-bottom: 16px; }
.leave-summary-placeholder { color: #6b7280; font-size: 13px; text-align: center; padding: 20px 0; }
.leave-summary-total { font-size: 16px; font-weight: 700; color: #111; text-align: center; padding-top: 16px; border-top: 1px solid #cbd5e1; margin-top: 16px; }

.leave-submit-btn { background: #1E90FF; color: white; padding: 12px 32px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.leave-submit-btn:hover { background: #1976d2; }

.leave-time-input { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }

.status-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.status-filter { padding: 6px 12px; border: 1px solid #e1e4e8; border-radius: 20px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 500; color: #444; }
.status-filter:hover { background: #f9f9f9; }
.status-filter.active { background: #eef5fc; color: #007bff; border-color: #007bff; }

.user-avatar-small { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; }
.user-block { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.user-name { font-size: 13px; font-weight: 600; color: #333; }
.user-sub { font-size: 11px; color: #666; margin-top: 2px; }
.risky-block { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.risky-left { display: flex; align-items: center; gap: 10px; }
.text-red { color: #dc2626; }
.ss-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ss-item { text-align: center; }
.ss-img { width: 100%; height: 50px; border-radius: 4px; object-fit: cover; }
.ss-name { font-size: 10px; color: #666; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header { background: #fff; padding: 15px 30px; border-bottom: 1px solid #e1e4e8; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 20px; font-weight: 600; color: #333; }
.header-right { display: flex; align-items: center; gap: 15px; }
.profile-info { display: flex; align-items: center; gap: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-bottom: 20px; }

.timer-display { margin: 30px 0; }
.timer-time { font-size: 56px; font-weight: bold; color: #0366d6; font-family: monospace; }
.clock-buttons { display: flex; gap: 15px; justify-content: center; margin: 20px 0; }
.clock-btn { padding: 12px 30px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }

.logout-btn { background: #f0f0f0; color: #333; padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; }
.logout-btn:hover { background: #e0e0e0; }

.loading { text-align: center; padding: 40px; color: #666; font-size: 14px; }

/* Thin scrollbar for scrollable card lists */
.card-body div[style*="overflowY"]::-webkit-scrollbar { width: 4px; }
.card-body div[style*="overflowY"]::-webkit-scrollbar-track { background: transparent; }
.card-body div[style*="overflowY"]::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.card-body div[style*="overflowY"]::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Settings page */
.settings-shell { display: flex; min-height: calc(100vh - 110px); background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.settings-sidebar { width: 240px; border-right: 1px solid #e5e7eb; background: #fff; padding: 0 0 14px; flex-shrink: 0; }
.settings-sidebar-title { font-size: 30px; font-weight: 700; color: #1f2937; padding: 20px 22px 14px; border-bottom: 1px solid #f0f2f5; }
.settings-nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: #374151; text-decoration: none; font-size: 16px; font-weight: 500; border-left: 3px solid transparent; }
.settings-nav-item:hover { background: #f9fafb; }
.settings-nav-item.active { background: #eff6ff; color: #2563eb; border-left-color: #2563eb; font-weight: 600; }
.settings-nav-icon { width: 16px; text-align: center; color: #6b7280; font-size: 14px; }
.settings-nav-item.active .settings-nav-icon { color: #2563eb; }
.settings-main { flex: 1; min-width: 0; background: #fff; }
.settings-main-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #f0f2f5; }
.settings-main-title { font-size: 34px; font-weight: 700; color: #111827; }
.settings-main-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.settings-add-users-btn { background: #177bf6; color: #fff; border: none; border-radius: 999px; padding: 9px 16px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.settings-add-users-btn:hover { background: #0f6de1; }
.settings-create-team-btn { background: #177bf6; color: #fff; border: none; border-radius: 6px; padding: 12px 20px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 10px rgba(23, 123, 246, 0.25); }
.settings-create-team-btn:hover { background: #0f6de1; }
.settings-table-wrap { padding: 18px 22px 24px; overflow-x: auto; }
.settings-teams-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.settings-teams-table th { text-align: left; padding: 12px 14px; color: #4b5563; font-size: 14px; font-weight: 700; border-bottom: 1px solid #e5e7eb; }
.settings-teams-table td { padding: 14px; border-bottom: 1px solid #edf0f2; font-size: 16px; color: #111827; vertical-align: middle; }
.settings-team-cell { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.settings-team-avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-actions-cell { width: 48px; text-align: right; }
.settings-kebab-btn { background: transparent; border: none; color: #6b7280; font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.settings-kebab-btn:hover { background: #f3f4f6; color: #374151; }
.settings-empty-view { margin: 22px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 22px; color: #475569; font-size: 15px; }
.settings-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 16px; }
.settings-modal { width: 100%; max-width: 520px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 8px 32px rgba(0,0,0,0.14); overflow: hidden; }
.settings-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.settings-modal-title { font-size: 15px; font-weight: 700; color: #111827; letter-spacing: -0.01em; }
.settings-modal-close { border: none; background: none; color: #9ca3af; font-size: 20px; cursor: pointer; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.settings-modal-close:hover { color: #374151; background: #f3f4f6; }
.settings-modal-body { padding: 16px 18px; max-height: calc(100vh - 160px); overflow-y: auto; }
.settings-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.settings-form-grid .settings-form-group { margin-bottom: 11px; }
.settings-form-grid .settings-form-group.full { grid-column: 1 / -1; }
.settings-form-label { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.settings-form-input { width: 100%; border: 1px solid #e2e8f0; border-radius: 7px; padding: 8px 11px; font-size: 13.5px; color: #111827; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box; }
.settings-form-input:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,0.1); }
.settings-form-input::placeholder { color: #c0c9d8; }
.settings-form-group { margin-bottom: 11px; }
.settings-modal-footer { padding: 12px 18px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 8px; background: #fafafa; }
.settings-submit-btn { background: #4361ee; color: #fff; border: none; border-radius: 7px; padding: 8px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.settings-submit-btn:hover { background: #3451db; }
.settings-submit-btn:disabled { background: #a5b4fc; cursor: not-allowed; }
.settings-cancel-btn { background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 7px; padding: 8px 16px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background 0.15s; }
.settings-cancel-btn:hover { background: #f3f4f6; }
.settings-cancel-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.settings-search-wrap { position: relative; width: 260px; }
.settings-search-input { width: 100%; border: 1px solid #d1d5db; border-radius: 999px; padding: 9px 14px 9px 36px; font-size: 13px; color: #111827; }
.settings-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 13px; pointer-events: none; }
.employees-header { font-size: 34px; font-weight: 700; color: #111827; margin-bottom: 18px; }
.employees-card { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.employees-card-head { padding: 18px 20px; border-bottom: 1px solid #edf0f2; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.employees-count { font-size: 34px; font-weight: 700; color: #111827; }
.employees-filter-row { padding: 18px 20px; border-bottom: 1px solid #edf0f2; display: flex; gap: 12px; flex-wrap: wrap; }
.employees-filter { min-width: 160px; }
.employees-filter label { display: block; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 6px; }
.employees-filter select { width: 100%; border: 1px solid #d1d5db; border-radius: 4px; padding: 8px 10px; font-size: 14px; color: #374151; background: #fff; }
.employees-table-wrap { overflow-x: auto; }
.employees-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.employees-table th { text-align: left; font-size: 13px; color: #6b7280; font-weight: 700; padding: 14px 16px; border-bottom: 1px solid #edf0f2; }
.employees-table td { padding: 14px 16px; border-bottom: 1px solid #edf0f2; vertical-align: middle; font-size: 14px; color: #111827; }
.employee-account { display: flex; align-items: flex-start; gap: 12px; }
.employee-avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.employee-name { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.employee-email, .employee-id { font-size: 13px; color: #4b5563; }
.employee-track-link { font-size: 12px; color: #2563eb; text-decoration: none; font-weight: 500; }
.employee-track-link:hover { text-decoration: underline; }
.employee-version { display: inline-flex; align-items: center; gap: 6px; color: #4b5563; font-size: 13px; }
.employee-team-select { border: none; background: transparent; font-size: 14px; color: #111827; min-width: 220px; }
.employee-actions { display: inline-flex; align-items: center; gap: 4px; }
.emp-status-toggle { border: none; cursor: pointer; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.emp-status-toggle.active { background: #dcfce7; color: #15803d; }
.emp-status-toggle.active:hover { background: #bbf7d0; color: #166534; }
.emp-status-toggle.inactive { background: #f3f4f6; color: #6b7280; }
.emp-status-toggle.inactive:hover { background: #fee2e2; color: #dc2626; }
.employee-action-btn { border: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.employee-action-btn.edit-btn { color: #3b82f6; }
.employee-action-btn.edit-btn:hover { background: #eff6ff; color: #1d4ed8; }
.employee-action-btn.delete-btn { color: #ef4444; }
.employee-action-btn.delete-btn:hover { background: #fef2f2; color: #b91c1c; }
.employee-menu-btn { border: none; background: transparent; color: #6b7280; font-size: 18px; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.employee-menu-btn:hover { background: #f3f4f6; color: #111827; }
.employee-invite-modal { width: 100%; max-width: 900px; background: #fff; border-radius: 8px; border: 1px solid #d1d5db; box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22); overflow: hidden; }
.employee-invite-head { padding: 14px 18px; border-bottom: 1px solid #edf0f2; display: flex; justify-content: space-between; align-items: center; }
.employee-invite-title { font-size: 24px; font-weight: 700; color: #111827; }
.employee-invite-body { padding: 18px; text-align: center; }
.employee-invite-subtitle { font-size: 34px; font-weight: 700; color: #111827; margin-bottom: 18px; }
.employee-invite-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.employee-invite-card { border: 1px solid #e5e7eb; border-radius: 6px; padding: 18px; text-align: center; }
.employee-invite-icon { font-size: 26px; color: #9ca3af; margin-bottom: 8px; }
.employee-invite-link { color: #2563eb; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.employee-invite-desc { font-size: 14px; color: #4b5563; }
.employee-invite-warning { color: #dc2626; font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.employee-invite-info { color: #4b5563; font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.employee-invite-contact { color: #4b5563; font-size: 15px; line-height: 1.5; }
.billing-wrap { padding: 14px 20px 26px; }
.billing-toggle { margin: 6px auto 22px; border: 2px solid #2081f3; border-radius: 999px; display: flex; width: fit-content; overflow: hidden; background: #fff; }
.billing-toggle-btn { border: none; background: #fff; color: #2081f3; font-size: 13px; font-weight: 600; padding: 8px 16px; cursor: pointer; }
.billing-toggle-btn.active { background: #2081f3; color: #fff; }
.billing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.billing-card { border: 1px solid #dbe1e8; border-radius: 4px; background: #fff; padding: 18px 18px 14px; min-height: 680px; display: flex; flex-direction: column; }
.billing-card-pro { background: #243e63; border-color: #243e63; color: #fff; position: relative; }
.billing-plan { font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.billing-price { font-size: 50px; font-weight: 700; line-height: 1; color: #111827; margin-bottom: 8px; }
.billing-card-pro .billing-price { color: #fff; }
.billing-unit { font-size: 18px; font-weight: 600; color: #6b7280; }
.billing-card-pro .billing-unit { color: #b8c7da; }
.billing-text { font-size: 13px; color: #4b5563; line-height: 1.45; margin-bottom: 12px; }
.billing-card-pro .billing-text { color: #d7e0ef; }
.billing-popular { position: absolute; right: 16px; top: 16px; background: #1db8d5; color: #fff; border-radius: 3px; font-size: 11px; font-weight: 700; padding: 4px 7px; }
.billing-pro-banner { color: #ffb347; font-size: 18px; font-weight: 700; margin: 4px 0; }
.billing-pro-note { color: #ffb347; font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.billing-features { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.billing-features li { font-size: 16px; color: #1f2937; display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.billing-card-pro .billing-features li { color: #fff; }
.billing-check { font-weight: 700; color: #111827; font-size: 15px; }
.billing-card-pro .billing-check { color: #fff; }
.billing-no-check { margin-left: 22px; }
.billing-btn { margin-top: auto; border: none; border-radius: 4px; padding: 12px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.billing-btn-free { background: #6b7280; color: #fff; }
.billing-btn-pro { background: #f4c430; color: #111827; }
.billing-btn-premium { background: #eb5e4f; color: #fff; }
.manual-time-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.manual-time-tabs { display: flex; gap: 28px; padding: 0 16px; border-bottom: 1px solid #e5e7eb; background: #fafafa; }
.manual-time-tab { border: none; background: transparent; padding: 14px 0 10px; font-size: 24px; color: #374151; cursor: pointer; font-weight: 600; border-bottom: 3px solid transparent; }
.manual-time-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.manual-time-body { padding: 16px; }
.manual-time-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.manual-time-stat-card { border: 1px solid #e5e7eb; border-radius: 6px; padding: 12px; background: #fff; }
.manual-time-stat-label { font-size: 14px; color: #374151; margin-bottom: 6px; }
.manual-time-stat-value { font-size: 38px; font-weight: 700; color: #111827; line-height: 1; }
.manual-time-form { border: 1px solid #e5e7eb; border-radius: 6px; padding: 12px; margin-bottom: 12px; display: grid; grid-template-columns: 2.2fr 1fr 1fr 0.8fr auto; gap: 10px; align-items: center; }
.manual-time-input { width: 100%; border: 1px solid #d1d5db; border-radius: 4px; padding: 10px 12px; font-size: 14px; color: #111827; background: #fff; }
.manual-time-date-wrap { position: relative; }
.manual-time-date-wrap .manual-time-input { padding-left: 30px; }
.manual-time-date-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #6b7280; font-size: 13px; pointer-events: none; }
.manual-time-add-btn { border: none; border-radius: 4px; background: #177bf6; color: #fff; font-size: 14px; font-weight: 700; padding: 11px 16px; cursor: pointer; }
.manual-time-add-btn:hover { background: #0f6de1; }
.manual-time-table-wrap { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.manual-time-table { width: 100%; border-collapse: collapse; }
.manual-time-table th { text-align: left; font-size: 13px; color: #6b7280; font-weight: 700; padding: 10px 12px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.manual-time-table td { font-size: 14px; color: #111827; padding: 10px 12px; border-bottom: 1px solid #eef2f7; }
.manual-row-approved { background: #edf7ee; }
.manual-row-pending { background: #f5edf9; }
.manual-status-approved { color: #18803a; font-weight: 600; }
.manual-status-pending { color: #7e22ce; font-weight: 600; }
.manual-status-rejected { color: #dc2626; font-weight: 600; }
.manual-delete-btn { border: none; background: transparent; color: #111827; text-decoration: underline; cursor: pointer; font-size: 14px; padding: 0; }
/* Multi-team select */
.team-multiselect-trigger { display: flex; flex-wrap: wrap; gap: 4px; min-height: 38px; align-items: center; cursor: pointer; padding-top: 5px !important; padding-bottom: 5px !important; user-select: none; }
.team-multiselect-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 10001; max-height: 200px; overflow-y: auto; }
.team-multiselect-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; color: #333; }
.team-multiselect-option:hover { background: #f3f4f6; }
.team-multiselect-option input[type="checkbox"] { cursor: pointer; accent-color: #2563eb; }
.team-chip { display: inline-flex; align-items: center; gap: 3px; background: #dbeafe; color: #1d4ed8; border-radius: 12px; padding: 2px 8px 2px 10px; font-size: 11.5px; font-weight: 500; line-height: 1.4; }
.team-chip-remove { background: none; border: none; cursor: pointer; color: #1d4ed8; font-size: 15px; padding: 0; line-height: 1; display: inline-flex; align-items: center; margin-left: 1px; }
.team-chip-remove:hover { color: #dc2626; }
.review-subtabs { display: flex; gap: 22px; padding: 0 10px; border-bottom: 1px solid #e5e7eb; margin-bottom: 12px; }
.review-subtab-btn { border: none; background: transparent; padding: 12px 2px 10px; font-size: 14px; color: #374151; cursor: pointer; border-bottom: 3px solid transparent; font-weight: 500; }
.review-subtab-btn.active { color: #2563eb; border-bottom-color: #2563eb; }
.review-table-head { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 10px; padding: 0 6px; }
.review-date-btn { border: 1px solid #d1d5db; background: #fff; border-radius: 4px; font-size: 13px; color: #374151; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.review-date-btn:hover { background: #f9fafb; }
.review-action-group { display: inline-flex; gap: 8px; }
.review-approve-btn { border: 1px solid #22a75a; color: #22a75a; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.review-reject-btn { border: 1px solid #d1455b; color: #d1455b; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.review-approve-btn:hover, .review-reject-btn:hover { opacity: 0.92; }

@media (max-width: 1024px) {
    .settings-main-title { font-size: 26px; }
    .billing-grid { grid-template-columns: 1fr; }
    .billing-card { min-height: auto; }
    .manual-time-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .manual-time-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .settings-shell { flex-direction: column; min-height: auto; }
    .settings-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid #e5e7eb; }
    .settings-main-header { flex-wrap: wrap; }
    .settings-main-actions { width: 100%; justify-content: flex-end; }
    .settings-search-wrap { width: 100%; }
    .employee-invite-cards { grid-template-columns: 1fr; }
}

/* ── Reports shell ── */
.rpt-tabs { display: flex; border-bottom: 1px solid #e5e7eb; padding: 0 22px; overflow-x: auto; }
.rpt-tab { padding: 13px 18px; font-size: 14px; font-weight: 500; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; }
.rpt-tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }
.rpt-tab:hover:not(.active) { color: #374151; background: #f9fafb; }
.rpt-filters { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid #f0f2f5; flex-wrap: wrap; }
.rpt-filter-select { border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px 30px 8px 12px; font-size: 14px; color: #374151; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; appearance: none; cursor: pointer; min-width: 160px; }
.rpt-filter-date { border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px 12px; font-size: 14px; color: #374151; background: #fff; min-width: 140px; }
.rpt-export-btn { margin-left: auto; background: #2563eb; color: #fff; border: none; border-radius: 6px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rpt-export-btn:hover { background: #1d4ed8; }
.rpt-body { padding: 22px; }
.rpt-no-data { text-align: center; color: #6b7280; font-size: 15px; padding: 80px 20px; }
.rpt-table-wrap { overflow-x: auto; width: 100%; padding: 0 22px 22px; }
.rpt-table { width: max-content; min-width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.rpt-table th { text-align: center; padding: 11px 8px; color: #4b5563; font-size: 11.5px; font-weight: 600; border-bottom: 2px solid #e5e7eb; border-right: 1px solid #e5e7eb; border-top: 1px solid #e5e7eb; background: #f9fafb; white-space: nowrap; }
.rpt-table td { padding: 12px 8px; border-bottom: 1px solid #edf0f2; border-right: 1px solid #edf0f2; font-size: 12.5px; color: #111827; text-align: center; vertical-align: middle; }
.rpt-table thead tr:first-child th { border-top: none; }
.rpt-table th:first-child, .rpt-table td:first-child { text-align: left; border-left: 1px solid #e5e7eb; }
.rpt-table th:last-child, .rpt-table td:last-child { border-right: none; }
.rpt-table th.sticky-col { position: sticky !important; left: 0 !important; z-index: 3 !important; background: #f9fafb !important; min-width: 220px; border-right: 2px solid #d1d5db !important; box-shadow: 3px 0 6px rgba(0,0,0,0.06); }
.rpt-table td.sticky-col { position: sticky !important; left: 0 !important; z-index: 3 !important; background: #ffffff !important; min-width: 220px; border-right: 2px solid #e5e7eb !important; box-shadow: 3px 0 6px rgba(0,0,0,0.06); }
.rpt-table th.day-wknd { background: #fef3cd; }
.rpt-table td.day-wknd { background: #fef9e7; color: #92400e; }
.rpt-table th.day-group { border-left: 2px solid #d1d5db; }
.rpt-table td.day-first { border-left: 2px solid #e5e7eb; }
.rpt-emp-cell { display: flex; align-items: center; gap: 10px; }
.rpt-emp-avatar { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rpt-load-more { display: flex; justify-content: center; padding: 16px; }
.rpt-load-more-btn { background: #2563eb; color: #fff; border: none; border-radius: 6px; padding: 10px 28px; font-size: 14px; font-weight: 600; cursor: pointer; }
.rpt-load-more-btn:hover { background: #1d4ed8; }

/* ── Custom Report builder ── */
.cr-builder { padding: 18px 22px; border-bottom: 1px solid #f0f2f5; display: flex; flex-direction: column; gap: 16px; background: #fafbfc; }
.cr-builder-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.cr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cr-field-label { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.cr-seg { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; background: #fff; }
.cr-seg button { border: none; background: #fff; padding: 8px 16px; font-size: 13px; font-weight: 500; color: #6b7280; cursor: pointer; white-space: nowrap; }
.cr-seg button + button { border-left: 1px solid #e5e7eb; }
.cr-seg button.active { background: #2563eb; color: #fff; font-weight: 600; }
.cr-seg button:hover:not(.active) { background: #f3f4f6; }
.cr-quick { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cr-quick button { border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 12px; color: #374151; cursor: pointer; white-space: nowrap; }
.cr-quick button:hover { border-color: #2563eb; color: #2563eb; }
.cr-metrics { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-chip { border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 500; color: #374151; cursor: pointer; transition: all .12s; white-space: nowrap; }
.cr-chip:hover:not(:disabled):not(.active) { border-color: #93c5fd; background: #eff6ff; }
.cr-chip.active { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; font-weight: 600; }
.cr-chip:disabled { opacity: .4; cursor: not-allowed; }
.cr-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-generate-btn { background: #2563eb; color: #fff; border: none; border-radius: 6px; padding: 10px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.cr-generate-btn:hover:not(:disabled) { background: #1d4ed8; }
.cr-generate-btn:disabled { opacity: .5; cursor: not-allowed; }
.cr-export-btn { background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cr-export-btn:hover:not(:disabled) { background: #f9fafb; border-color: #9ca3af; }
.cr-export-btn:disabled { opacity: .45; cursor: not-allowed; }
.cr-range-note { font-size: 12px; color: #6b7280; margin-left: 2px; }
.cr-range-warn { color: #dc2626; font-weight: 600; }
.cr-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 8px; padding: 12px 16px; font-size: 13px; font-weight: 500; }
.cr-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 18px 22px 4px; }
.cr-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; }
.cr-card-value { font-size: 20px; font-weight: 700; color: #111827; line-height: 1.2; }
.cr-card-label { font-size: 11.5px; color: #6b7280; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .03em; }

@media (max-width: 700px) {
    .cr-builder-row { flex-direction: column; align-items: stretch; }
    .cr-builder-row .rpt-filter-select, .cr-builder-row .rpt-filter-date { width: 100%; }
    .cr-seg { width: 100%; }
    .cr-seg button { flex: 1; }
    .cr-actions { flex-direction: column; align-items: stretch; }
    .cr-generate-btn, .cr-export-btn { justify-content: center; }
    .cr-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Leave type assignment multi-select ── */
.lt-assign-box { margin-top: 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.lt-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-chip { display: inline-flex; align-items: center; gap: 5px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; border-radius: 999px; padding: 3px 6px 3px 10px; font-size: 12px; font-weight: 600; }
.lt-chip-x { background: none; border: none; color: #1d4ed8; font-size: 14px; line-height: 1; cursor: pointer; padding: 0 3px; border-radius: 50%; }
.lt-chip-x:hover { color: #dc2626; }
.lt-search { width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; outline: none; color: #374151; background: #fff; box-sizing: border-box; }
.lt-search:focus { border-color: #3b82f6; }
.lt-options { max-height: 180px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; }
.lt-option { display: flex; align-items: center; gap: 9px; padding: 8px 12px; font-size: 13px; color: #374151; cursor: pointer; border-bottom: 1px solid #f3f4f6; }
.lt-option:last-child { border-bottom: none; }
.lt-option:hover { background: #f9fafb; }
.lt-option input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; accent-color: #2563eb; flex-shrink: 0; }
.lt-option-name { font-weight: 500; color: #1f2937; }
.lt-option-sub { margin-left: auto; font-size: 11.5px; color: #9ca3af; white-space: nowrap; }
.lt-empty { padding: 16px 12px; font-size: 13px; color: #9ca3af; text-align: center; }
.lt-count { font-size: 11.5px; color: #6b7280; }

@media (max-width: 700px) {
    .lt-options { max-height: 150px; }
    .lt-option-sub { display: none; }
}

/* ── Team member detail: Leave History ── */
.lh-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.lh-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; }
.lh-card-value { font-size: 22px; font-weight: 800; line-height: 1.2; }
.lh-card-label { font-size: 11.5px; color: #6b7280; font-weight: 600; margin-top: 3px; text-transform: uppercase; letter-spacing: .03em; }
.lh-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lh-filter { border: 1px solid #e5e7eb; border-radius: 6px; padding: 7px 10px; font-size: 13px; color: #374151; background: #fff; outline: none; cursor: pointer; }
select.lh-filter { min-width: 140px; }
.lh-daterange { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.lh-filter-label { font-size: 12px; color: #6b7280; font-weight: 600; }
.lh-clear-btn { border: none; background: none; color: #dc2626; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px 4px; white-space: nowrap; }
.lh-clear-btn:hover { text-decoration: underline; }
.lh-table { min-width: 860px; }
.lh-row { cursor: pointer; transition: background .12s; }
.lh-row:hover { background: #f8fafc; }
.lh-short-tag { display: inline-block; margin-left: 7px; background: #ede9fe; color: #6d28d9; font-size: 10px; font-weight: 700; border-radius: 8px; padding: 1px 7px; vertical-align: middle; }
.lh-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 4px; flex-wrap: wrap; }
.lh-pg-btn { border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; padding: 6px 14px; font-size: 13px; color: #374151; cursor: pointer; }
.lh-pg-btn:hover:not(:disabled) { background: #f3f4f6; }
.lh-pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.lh-pg-info { font-size: 12.5px; color: #6b7280; }

@media (max-width: 700px) {
    .lh-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lh-filters { flex-direction: column; align-items: stretch; }
    select.lh-filter, .lh-daterange input.lh-filter { width: 100%; }
    .lh-daterange { display: grid; grid-template-columns: auto 1fr; }
}

/* ── Manage Teams: row action menu ── */
.tm-menu { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 120; min-width: 160px; padding: 5px; }
.tm-menu-item { display: flex; align-items: center; width: 100%; padding: 8px 12px; border: none; background: none; font-size: 13px; color: #374151; cursor: pointer; border-radius: 6px; text-align: left; white-space: nowrap; }
.tm-menu-item:hover { background: #f3f4f6; }
.tm-menu-item.danger { color: #dc2626; }
.tm-menu-item.danger:hover { background: #fef2f2; }

/* ── Apply Leave: admin employee filter combobox ── */
.lv-emp-filter { position: relative; display: inline-flex; align-items: center; min-width: 230px; }
.lv-emp-icon { position: absolute; left: 11px; pointer-events: none; }
.lv-emp-input { width: 100%; padding: 8px 30px 8px 32px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; color: #334155; background: #fff; outline: none; box-sizing: border-box; }
.lv-emp-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.lv-emp-x { position: absolute; right: 8px; background: none; border: none; color: #9ca3af; font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 4px; border-radius: 50%; }
.lv-emp-x:hover { color: #dc2626; }
.lv-emp-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 300; max-height: 260px; overflow-y: auto; }
.lv-emp-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; font-size: 13px; color: #374151; cursor: pointer; border-bottom: 1px solid #f8fafc; }
.lv-emp-option:last-child { border-bottom: none; }
.lv-emp-option:hover { background: #f1f5f9; }
.lv-emp-option.selected { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.lv-emp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-emp-sub { font-size: 11px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; }
.lv-emp-none { padding: 14px 12px; font-size: 13px; color: #9ca3af; text-align: center; }
.lv-clear-btn { border: none; background: none; color: #dc2626; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px 2px; white-space: nowrap; }
.lv-clear-btn:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .lv-emp-filter { width: 100%; min-width: 0; }
}

/* ── Timesheet ── */
.ts-wrap { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ts-team-select { border: 1px solid #ddd; border-radius: 6px; padding: 7px 10px; font-size: 13px; color: #374151; background: #fff; cursor: pointer; }
.ts-col-filter-wrap { position: relative; }
.ts-col-filter-btn { border: 1px solid #d1d5db; border-radius: 6px; background: #fff; padding: 7px 12px; font-size: 13px; cursor: pointer; color: #374151; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ts-col-filter-dropdown { position: absolute; top: 110%; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); z-index: 200; min-width: 180px; padding: 8px 0; }
.ts-col-filter-item { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 13px; color: #374151; cursor: pointer; }
.ts-col-filter-item:hover { background: #f3f4f6; }
.ts-col-filter-item input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; }
.ts-export-btn { border: none; border-radius: 6px; background: #2563eb; padding: 7px 14px; font-size: 13px; cursor: pointer; color: #fff; font-weight: 600; white-space: nowrap; }
.ts-export-btn:hover { background: #1d4ed8; }
.ts-note-row { padding: 8px 16px; font-size: 12px; color: #6b7280; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ts-note-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ts-grid { overflow-x: auto; }
.ts-grid-head { display: grid; grid-template-columns: 240px 1fr 280px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; }
.ts-grid-head-cell { padding: 10px 14px; font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.ts-grid-head-day { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.ts-day-nav-btn { border: none; background: #e5e7eb; border-radius: 4px; width: 26px; height: 26px; cursor: pointer; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; color: #374151; }
.ts-day-nav-btn:hover { background: #d1d5db; }
.ts-day-nav-btn:disabled { opacity: .35; cursor: default; }
.ts-day-label { font-size: 13px; font-weight: 700; color: #111827; }
.ts-row { display: grid; grid-template-columns: 240px 1fr 280px; border-bottom: 1px solid #eef2f7; }
.ts-row:last-child { border-bottom: none; }
.ts-emp-cell { padding: 12px 14px; display: flex; flex-direction: row; align-items: center; gap: 10px; border-right: 1px solid #eef2f7; }
.ts-emp-avatar { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.ts-emp-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ts-emp-name { font-size: 14px; font-weight: 600; color: #111827; }
.ts-emp-id { font-size: 12px; color: #9ca3af; }
.ts-emp-team { font-size: 12px; color: #6b7280; }
.ts-day-cell { padding: 10px 14px; border-right: 1px solid #eef2f7; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.ts-no-data { color: #9ca3af; font-size: 13px; text-align: center; padding: 16px 0; }
.ts-time-row { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; font-size: 13px; color: #374151; flex-wrap: wrap; }
.ts-clock-in { font-weight: 600; color: #16a34a; }
.ts-working-on { font-weight: 600; color: #d97706; }
.ts-clock-out { font-weight: 600; color: #dc2626; }
.ts-stat-rows { display: flex; flex-direction: column; gap: 3px; }
.ts-stat-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ts-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; min-width: 52px; text-align: center; flex-shrink: 0; }
.ts-tag-work { background: #dbeafe; color: #1d4ed8; }
.ts-tag-active { background: #dcfce7; color: #15803d; }
.ts-tag-break { background: #fef9c3; color: #a16207; }
.ts-tag-idle { background: #fee2e2; color: #b91c1c; }
.ts-tag-prod { background: #d1fae5; color: #065f46; }
.ts-tag-unprod { background: #ffe4e6; color: #9f1239; }
.ts-tag-neutral { background: #e0e7ff; color: #4338ca; }
.ts-tag-uncateg { background: #fef3c7; color: #92400e; }
.ts-tag-untrack { background: #f3f4f6; color: #4b5563; }
.ts-tag-manual { background: #fce7f3; color: #9d174d; }
.ts-tag-days { background: #f3f4f6; color: #374151; }
.ts-pagination { display: flex; align-items: center; gap: 6px; padding: 16px 0 4px; justify-content: center; flex-wrap: wrap; }
.ts-pg-btn { padding: 5px 13px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; color: #374151; transition: background .15s; }
.ts-pg-btn:hover:not(:disabled) { background: #f3f4f6; }
.ts-pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ts-pg-btn.ts-pg-active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.ts-stat-val { font-size: 13px; font-weight: 600; color: #111827; }
.ts-summary-cell { padding: 10px 14px; background: #fffbeb; }
.ts-summary-inner { display: flex; flex-direction: column; gap: 4px; }
.ts-summary-title { font-size: 11px; font-weight: 700; color: #78716c; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ts-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 1px 0; }
.ts-summary-label { font-size: 12px; color: #78716c; }
.ts-summary-val { font-size: 13px; font-weight: 600; color: #374151; }
/* Date picker in header */
.ts-datepicker { position: absolute; top: 110%; right: 0; left: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.14); z-index: 300; min-width: 200px; padding: 16px; }
.ts-presets { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.ts-preset-btn { border: none; background: transparent; text-align: left; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #374151; }
.ts-preset-btn:hover, .ts-preset-btn.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.ts-custom-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-direction: column; }
.ts-custom-input { border: 1px solid #d1d5db; border-radius: 5px; padding: 6px 8px; font-size: 13px; width: 100%; box-sizing: border-box; }
.ts-picker-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.ts-picker-cancel { border: 1px solid #d1d5db; background: #fff; border-radius: 6px; padding: 6px 16px; font-size: 13px; cursor: pointer; }
.ts-picker-apply { border: none; background: #2563eb; color: #fff; border-radius: 6px; padding: 6px 16px; font-size: 13px; cursor: pointer; font-weight: 600; }
.ts-empty { text-align: center; padding: 48px 0; color: #9ca3af; font-size: 14px; }
@media (max-width: 900px) {
    .ts-grid-head, .ts-row { grid-template-columns: 160px 1fr 200px; }
}

/* Profile dropdown */
.profile-dropdown-wrap { position: relative; }
.profile-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); min-width: 230px;
    z-index: 9999; overflow: hidden;
}
.profile-dropdown-section { padding: 12px 16px; border-bottom: 1px solid #f1f1f1; }
.profile-dropdown-label { font-size: 11px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.profile-dropdown-org { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #111; }
.profile-dropdown-org svg { color: #6b7280; flex-shrink: 0; }
.profile-dropdown-org-chevron { margin-left: auto; color: #9ca3af; }
.profile-dropdown-links { padding: 6px 0; }
.profile-dropdown-link {
    display: block; width: 100%; text-align: left; background: none; border: none;
    padding: 10px 16px; font-size: 13px; color: #2563eb; cursor: pointer;
    font-weight: 500; transition: background 0.12s;
}
.profile-dropdown-link:hover { background: #f5f8ff; }
.profile-dropdown-link.danger { color: #ef4444; }
.profile-dropdown-link.danger:hover { background: #fff5f5; }

/* Account Settings page */
.acct-wrap { max-width: 640px; }
.acct-tabs { display: flex; border-bottom: 2px solid #e5e7eb; margin-bottom: 28px; gap: 0; }
.acct-tab {
    padding: 10px 24px; font-size: 14px; font-weight: 600; color: #6b7280;
    background: none; border: none; border-bottom: 2px solid transparent;
    cursor: pointer; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s;
}
.acct-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.acct-section-title { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 20px; }
.acct-field { margin-bottom: 18px; }
.acct-label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.acct-input {
    width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 7px;
    font-size: 14px; color: #111; background: #fff; outline: none;
    transition: border-color 0.15s;
}
.acct-input:focus { border-color: #2563eb; }
.acct-input:disabled { background: #f3f4f6; color: #6b7280; cursor: not-allowed; }
.acct-avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.acct-avatar-preview {
    width: 72px; height: 72px; border-radius: 50%; background: #6366f1;
    color: #fff; font-size: 26px; font-weight: 700; display: flex;
    align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.acct-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.acct-avatar-actions { display: flex; flex-direction: column; gap: 6px; }
.acct-avatar-upload { color: #2563eb; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
.acct-avatar-remove { color: #ef4444; font-size: 13px; font-weight: 500; cursor: pointer; background: none; border: none; padding: 0; text-align: left; }
.acct-avatar-hint { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.acct-save-btn {
    background: #2563eb; color: #fff; border: none; border-radius: 7px;
    padding: 9px 22px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background 0.15s; margin-top: 6px;
}
.acct-save-btn:hover { background: #1d4ed8; }
.acct-save-btn:disabled { background: #93c5fd; cursor: not-allowed; }
.acct-msg { margin-top: 10px; font-size: 13px; }
.acct-msg.ok { color: #16a34a; }
.acct-msg.err { color: #dc2626; }

/* Review Apps */
.review-apps-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.review-apps-header { padding: 14px 18px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-apps-tabs { display: flex; gap: 0; border-bottom: 1px solid #e5e7eb; background: #fafafa; }
.review-apps-tab { padding: 11px 18px; font-size: 13px; font-weight: 500; color: #6b7280; border: none; background: none; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.review-apps-tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; background: #fff; }
.review-apps-tab:hover { color: #374151; }
.review-app-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f3f4f6; }
.review-app-row:hover { background: #fafafa; }
.review-app-favicon { width: 18px; height: 18px; flex-shrink: 0; border-radius: 3px; }
.review-app-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-app-duration { font-size: 12px; color: #6b7280; white-space: nowrap; width: 72px; text-align: right; flex-shrink: 0; }
.review-cat-btns { display: flex; gap: 5px; flex-shrink: 0; }
.review-cat-btn { padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; cursor: pointer; border: 1px solid; transition: background 0.1s, color 0.1s; }

/* ── Email Reports ── */
.er-wrap { padding: 4px 0 24px; position: relative; }
.er-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.er-head-title { font-size: 17px; font-weight: 700; color: #1f2937; }
.er-head-sub { font-size: 13px; color: #6b7280; margin-top: 3px; max-width: 560px; }
.er-add-btn { background: #2563eb; color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.er-add-btn:hover { background: #1d4ed8; }
.er-empty { text-align: center; padding: 70px 20px; color: #6b7280; font-size: 15px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.er-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.er-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.er-card-off { opacity: .68; background: #fafafa; }
.er-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.er-card-name { font-size: 15px; font-weight: 700; color: #111827; }
.er-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.er-chip { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.er-chip-type { background: #eef2ff; color: #4338ca; }
.er-meta-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.er-meta-k { color: #9ca3af; flex-shrink: 0; }
.er-meta-v { color: #374151; font-weight: 500; text-align: right; }
.er-card-actions { display: flex; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.er-btn { border-radius: 7px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.er-btn-ghost { background: #fff; color: #374151; border-color: #d1d5db; }
.er-btn-ghost:hover { background: #f3f4f6; }
.er-btn-del { background: #fff; color: #dc2626; border-color: #fecaca; margin-left: auto; }
.er-btn-del:hover { background: #fef2f2; }
.er-btn-primary { background: #2563eb; color: #fff; }
.er-btn-primary:hover { background: #1d4ed8; }
.er-btn-primary:disabled { background: #93c5fd; cursor: default; }
/* switch */
.er-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.er-switch input { display: none; }
.er-switch-slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 22px; cursor: pointer; transition: .2s; }
.er-switch-slider:before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.er-switch input:checked + .er-switch-slider { background: #16a34a; }
.er-switch input:checked + .er-switch-slider:before { transform: translateX(18px); }
/* modal */
.er-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.er-modal { background: #fff; border-radius: 14px; width: 640px; max-width: 100%; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.er-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #e5e7eb; font-size: 16px; font-weight: 700; color: #1f2937; }
.er-modal-x { background: none; border: none; font-size: 22px; color: #9ca3af; cursor: pointer; line-height: 1; }
.er-modal-x:hover { color: #1f2937; }
.er-modal-body { padding: 20px 22px; overflow-y: auto; }
.er-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #e5e7eb; }
.er-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.er-label { display: block; font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 7px; }
.er-label:first-child { margin-top: 0; }
.er-req { color: #ef4444; }
.er-input { width: 100%; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13.5px; color: #374151; background: #fff; outline: none; box-sizing: border-box; }
.er-input:focus { border-color: #3b82f6; }
.er-input-sm { padding: 7px 10px; font-size: 13px; }
.er-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.er-check { border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 500; color: #374151; cursor: pointer; }
.er-check:hover { border-color: #93c5fd; }
.er-check.active { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; font-weight: 600; }
.er-recip-box { border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; padding: 12px; display: flex; flex-direction: column; gap: 14px; }
.er-recip-section { display: flex; flex-direction: column; gap: 7px; }
.er-recip-title { font-size: 12px; font-weight: 700; color: #6b7280; }
.er-muted { color: #9ca3af; font-size: 12.5px; }
.er-team-chips, .er-email-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.er-chip-btn { border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; color: #374151; cursor: pointer; }
.er-chip-btn:hover { border-color: #93c5fd; }
.er-chip-btn.active { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; font-weight: 600; }
.er-user-list { max-height: 160px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.er-user-row { display: flex; align-items: center; gap: 9px; padding: 7px 11px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f8fafc; }
.er-user-row:last-child { border-bottom: none; }
.er-user-row:hover { background: #f9fafb; }
.er-user-row input { accent-color: #2563eb; width: 14px; height: 14px; flex-shrink: 0; }
.er-user-name { font-weight: 500; color: #1f2937; }
.er-user-email { margin-left: auto; font-size: 11.5px; color: #9ca3af; white-space: nowrap; }
.er-email-add { display: flex; gap: 8px; }
.er-email-chip { display: inline-flex; align-items: center; gap: 5px; background: #eef2ff; color: #4338ca; border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 12px; font-weight: 600; }
.er-email-chip button { background: none; border: none; color: #4338ca; font-size: 14px; cursor: pointer; padding: 0 2px; line-height: 1; }
.er-email-chip button:hover { color: #dc2626; }
.er-row2, .er-row3 { display: grid; gap: 14px; margin-top: 4px; }
.er-row3 { grid-template-columns: 1fr 1.4fr 1fr; }
.er-seg { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; width: 100%; }
.er-seg button { flex: 1; border: none; background: #fff; padding: 8px 6px; font-size: 12.5px; font-weight: 500; color: #6b7280; cursor: pointer; white-space: nowrap; }
.er-seg button + button { border-left: 1px solid #e5e7eb; }
.er-seg button.active { background: #2563eb; color: #fff; font-weight: 600; }
.er-day-picker { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.er-day { border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; width: 46px; padding: 8px 0; font-size: 12.5px; font-weight: 500; color: #374151; cursor: pointer; text-align: center; }
.er-day.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.er-toggle-line { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 13px; color: #374151; cursor: pointer; }
.er-toggle-line input { accent-color: #16a34a; width: 15px; height: 15px; }
.er-toast { position: fixed; bottom: 26px; right: 26px; z-index: 1100; padding: 12px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.er-toast.success { background: #16a34a; }
.er-toast.error { background: #dc2626; }

@media (max-width: 720px) {
    .er-grid { grid-template-columns: 1fr; }
    .er-row3 { grid-template-columns: 1fr; }
    .er-modal { width: 100%; }
}
.review-cat-btn.productive { border-color: #22a75a; color: #22a75a; background: #fff; }
.review-cat-btn.productive.ractive { background: #22a75a; color: #fff; }
.review-cat-btn.neutral { border-color: #3b82f6; color: #3b82f6; background: #fff; }
.review-cat-btn.neutral.ractive { background: #3b82f6; color: #fff; }
.review-cat-btn.unproductive { border-color: #ef4444; color: #ef4444; background: #fff; }
.review-cat-btn.unproductive.ractive { background: #ef4444; color: #fff; }
.review-app-search { display: flex; align-items: center; gap: 8px; border: 1px solid #d1d5db; border-radius: 6px; padding: 7px 12px; background: #fff; }
.review-app-search input { border: none; outline: none; font-size: 13px; color: #374151; background: transparent; width: 220px; }
.review-export-btn { border: none; border-radius: 6px; background: #2563eb; padding: 7px 14px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer; white-space: nowrap; }
.review-export-btn:hover { background: #1d4ed8; }

/* ── Mobile sidebar toggle ── */
.sidebar-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 6px; color: #374151; align-items: center; flex-shrink: 0; margin-right: 6px; }
.sidebar-hamburger:hover { background: #f3f4f6; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 199; }
.sidebar-overlay.open { display: block; }

/* ── Responsive layout ── */
@media (max-width: 768px) {
    .sidebar-hamburger { display: flex; }
    .admin-sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 200; overflow-y: auto; transition: left 0.25s ease; width: 240px; }
    .admin-sidebar.open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,0.18); }
    .admin-header { padding: 12px 16px; }
    .admin-header-title { font-size: 17px; }
    .admin-content { padding: 16px; }
    .top-stats-row { grid-template-columns: repeat(2, 1fr); }
    .grid-row-2 { grid-template-columns: 1fr; }
    .grid-row-3 { grid-template-columns: 1fr; }
    .leave-balance-grid { grid-template-columns: repeat(2, 1fr); }
    .leave-summary-grid { grid-template-columns: 1fr; }
    .leave-filters { flex-wrap: wrap; }
    .date-picker-popover { min-width: unset; width: calc(100vw - 32px); right: 0; left: auto; }
    .date-picker-body { flex-direction: column; }
    .date-picker-periods { min-width: unset; }
    .members-sidebar-layout { flex-direction: column; }
    .members-sidebar { width: 100%; position: static; }
    .members-list { max-height: 260px; }
    .admin-header-actions { gap: 8px; flex-wrap: nowrap; }
    .manual-time-form { grid-template-columns: 1fr 1fr; }
    .employee-invite-cards { grid-template-columns: 1fr; }
    .mwr-profile-card { flex-direction: column; text-align: center; }
    .mwr-date-label { text-align: center; }
    .my-team-search-input { width: 140px; }
    .tl-name-col { width: 140px; }
    .tl-axis-wrap { margin-left: 140px; }
    .tl-name-text { max-width: 128px; }
}
@media (max-width: 520px) {
    .top-stats-row { grid-template-columns: 1fr 1fr; }
    .admin-header-actions .release-notes { display: none; }
    .add-users-btn { padding: 7px 10px; font-size: 11px; }
    .leave-balance-grid { grid-template-columns: 1fr 1fr; }
    .manual-time-stats { grid-template-columns: 1fr 1fr; }
    .admin-content { padding: 12px; }
    .manual-time-form { grid-template-columns: 1fr; }
    .my-team-search-input { width: 120px; }
    .tl-name-col { width: 110px; }
    .tl-axis-wrap { margin-left: 110px; }
    .tl-name-text { max-width: 98px; }
}
@media (max-width: 480px) {
    .employee-grid { grid-template-columns: 1fr; }
    .top-stats-row { grid-template-columns: 1fr 1fr; }
    .billing-grid { grid-template-columns: 1fr; }
    .mwr-stats-grid { grid-template-columns: 1fr; }
    .manual-time-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive hardening: wide content scrolls inside its container, never the page ── */
@media (max-width: 768px) {
    /* tables and table-like content get horizontal scroll containment */
    .settings-table-wrap, .manual-time-table-wrap, .leave-details-section,
    .employees-card, .mwr-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .settings-teams-table { min-width: 640px; }
    .mwr-table { min-width: 560px; }
    /* settings shell: header + actions stack cleanly */
    .settings-main { padding: 16px 14px; }
    .settings-main-title { font-size: 22px; }
    .settings-main-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .settings-main-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    /* modals: fit the viewport with internal scrolling */
    .settings-modal, .leave-modal { width: calc(100vw - 28px) !important; max-width: calc(100vw - 28px) !important; max-height: 90vh; overflow-y: auto; }
    /* leave page: header/action rows wrap instead of overflowing */
    .leave-details-header { flex-wrap: wrap; gap: 10px; }
    .leave-actions { width: 100%; display: flex; gap: 8px; }
    .leave-action-btn { flex: 1; }
    /* report filter bars already wrap; tighten paddings */
    .rpt-filters { padding: 12px 14px; }
    .rpt-table-wrap { padding: 0 14px 16px; }
    .cr-builder { padding: 14px; }
    .cr-summary-grid { padding: 14px 14px 4px; }
    .lh-table { min-width: 720px; }
}
@media (max-width: 520px) {
    .settings-sidebar { padding: 10px 8px; display: flex; overflow-x: auto; gap: 4px; }
    .settings-sidebar-title { display: none; }
    .settings-nav-item { white-space: nowrap; padding: 8px 10px; font-size: 12.5px; }
    .leave-balance-card { padding: 12px; }
    .mwr-stat-card { padding: 12px 14px; }
    .mwr-stat-value { font-size: 20px; }
}

/* ── Apps History ── */
.ah-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #f3f4f6; }
.ah-row:hover { background: #fafafa; }
.ah-favicon { width: 18px; height: 18px; flex-shrink: 0; border-radius: 3px; }
.ah-app-name { flex: 1; min-width: 0; }
.ah-app-title { font-size: 13px; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-app-url { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-duration { font-size: 12px; color: #374151; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.ah-time { font-size: 11px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; }
.ah-header { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e7eb; }
.ah-date-input { border: 1px solid #d1d5db; border-radius: 6px; padding: 6px 10px; font-size: 13px; color: #374151; }

