/* Vihan People — employee workspace and mobile attendance */
.employee-page .portal-login { min-height: 620px; }
.wf-app { border: 1px solid var(--m-line); border-radius: 20px; background: #07111f; overflow: hidden; color: var(--m-text); display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 720px; }
.wf-sidebar { min-width: 0; padding: 17px 11px; border-right: 1px solid var(--m-line); background: #050d19; display: flex; flex-direction: column; }
.wf-brand { display: flex; align-items: center; gap: 8px; padding: 2px 7px 15px; border-bottom: 1px solid var(--m-line); margin-bottom: 12px; }
.wf-brand span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #e9f3ff; color: #0a2a5c; font-size: .54rem; font-weight: 800; }
.wf-brand strong { display: block; color: #f2f7ff; font-size: .72rem; }
.wf-brand small { display: block; margin-top: 2px; color: #8fa4c3; font-size: .5rem; }
.wf-nav { display: flex; flex-direction: column; gap: 2px; }
.wf-tab { display: flex; align-items: center; gap: 8px; min-height: 33px; padding: 6px 9px; border: 0; border-radius: 7px; background: transparent; color: #8fa4c3; font: inherit; font-size: .66rem; text-align: left; cursor: pointer; }
.wf-tab:hover, .wf-tab.is-active { background: rgba(80, 143, 255, .12); color: #dceaff; }
.wf-tab.is-active { color: #6ce2ff; }
.wf-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--m-line); }
.wf-side-foot small { display: block; color: #7189a7; font-size: .5rem; line-height: 1.45; padding: 8px; }
.wf-main { min-width: 0; width: 100%; padding: 18px; }
.wf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--m-line); margin-bottom: 16px; }
.wf-kicker { margin: 0 0 4px; color: #6ce2ff; font-size: .52rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wf-top h2 { margin: 0; color: #f2f7ff; font-size: 1.45rem; font-weight: 560; letter-spacing: -.04em; }
.wf-user { display: flex; align-items: center; gap: 8px; color: #a8bbd5; font-size: .58rem; text-align: right; }
.wf-user strong { display: block; color: #edf5ff; font-size: .65rem; }
.wf-user button { margin-left: 4px; }
.wf-panel[hidden] { display: none; }
.wf-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 11px; }
.wf-stat { padding: 13px; border: 1px solid var(--m-line); border-radius: 11px; background: rgba(255,255,255,.035); }
.wf-stat span { display: block; color: #8fa4c3; font-size: .53rem; }
.wf-stat strong { display: block; margin-top: 4px; color: #edf5ff; font-size: 1.35rem; font-weight: 560; letter-spacing: -.04em; }
.wf-stat small { display: block; margin-top: 4px; color: #7189a7; font-size: .5rem; }
.wf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wf-card { padding: 16px; border: 1px solid var(--m-line); border-radius: 12px; background: rgba(255,255,255,.032); }
.wf-card h3 { margin: 0 0 7px; color: #edf5ff; font-size: .85rem; font-weight: 580; }
.wf-card p { color: #8fa4c3; font-size: .65rem; line-height: 1.55; }
.wf-list { display: flex; flex-direction: column; }
.wf-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--m-line); }
.wf-row:last-child { border-bottom: 0; }
.wf-row strong { display: block; color: #e8f1fd; font-size: .66rem; font-weight: 550; }
.wf-row small { display: block; margin-top: 2px; color: #839ab8; font-size: .53rem; }
.wf-badge { display: inline-flex; padding: 3px 6px; border-radius: 4px; background: rgba(108,226,255,.1); color: #6ce2ff; font-size: .49rem; font-weight: 650; }
.wf-badge.green { background: rgba(113,226,181,.1); color: #71e2b5; }
.wf-badge.amber { background: rgba(224,176,103,.11); color: #e0b067; }
.wf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px; padding: 4px 9px; border: 1px solid var(--m-line); border-radius: 6px; background: transparent; color: #e6f0fc; font: inherit; font-size: .58rem; cursor: pointer; text-decoration: none; }
.wf-btn.primary { border-color: #2d78f0; background: #2d78f0; color: #fff; }
.wf-btn:disabled { opacity: .5; }
.wf-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.wf-field label { color: #a6bad5; font-size: .56rem; }
.wf-field input, .wf-field select, .wf-field textarea { width: 100%; padding: 7px 8px; border: 1px solid var(--m-line); border-radius: 6px; background: rgba(255,255,255,.04); color: #eff6ff; font: inherit; font-size: .63rem; }
.wf-field input:focus, .wf-field select:focus, .wf-field textarea:focus { outline: 0; border-color: #6ce2ff; box-shadow: 0 0 0 3px rgba(108,226,255,.09); }
.wf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.wf-form-grid .wide { grid-column: 1 / -1; }
.wf-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wf-empty { padding: 16px; border: 1px dashed var(--m-line); border-radius: 8px; color: #8198b8; font-size: .62rem; text-align: center; }
.wf-attend { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(108,226,255,.18); border-radius: 9px; background: rgba(42,120,240,.07); margin-bottom: 10px; }
.wf-attend strong { display: block; color: #dff0ff; font-size: .7rem; }
.wf-attend small { display: block; margin-top: 2px; color: #8fa4c3; font-size: .53rem; }
.wf-table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: .58rem; }
.wf-table th { padding: 7px 6px; color: #8198b8; font-size: .5rem; text-align: left; border-bottom: 1px solid var(--m-line); text-transform: uppercase; letter-spacing: .05em; }
.wf-table td { padding: 8px 6px; border-bottom: 1px solid var(--m-line); color: #dce8f8; }
.wf-table img { width: 30px; height: 30px; border-radius: 5px; object-fit: cover; }
.wf-table-wrap { overflow-x: auto; }
.wf-chat { display: flex; flex-direction: column; gap: 7px; max-height: 340px; overflow-y: auto; padding: 4px; }
.wf-msg { max-width: 82%; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.06); color: #dce8f8; font-size: .65rem; line-height: 1.5; }
.wf-msg.mine { align-self: flex-end; background: #2168e8; color: #fff; }
.wf-msg small { display: block; margin-bottom: 2px; opacity: .65; font-size: .48rem; }
.wf-chat-form { display: flex; gap: 4px; margin-top: 8px; }
.wf-chat-form input { flex: 1; }
.wf-camera-modal { position: fixed; inset: 0; z-index: 260; display: none; place-items: center; padding: 16px; background: rgba(0, 5, 14, .78); backdrop-filter: blur(7px); }
.wf-camera-modal.is-open { display: grid; }
.wf-camera { width: min(480px, 100%); padding: 15px; border: 1px solid var(--m-line); border-radius: 14px; background: #071425; color: #eef6ff; box-shadow: 0 25px 70px rgba(0,0,0,.5); }
.wf-camera h3 { margin: 0 0 4px; font-size: .95rem; }
.wf-camera p { color: #8fa4c3; font-size: .59rem; line-height: 1.5; }
.wf-video-wrap { position: relative; margin-top: 10px; border-radius: 9px; overflow: hidden; background: #02060e; aspect-ratio: 4 / 3; }
.wf-video-wrap video, .wf-video-wrap canvas, .wf-video-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-geo { margin-top: 8px; padding: 7px 9px; border-radius: 6px; background: rgba(255,255,255,.04); color: #9fb4d1; font-size: .55rem; line-height: 1.45; }
.wf-geo.ok { color: #91e9c4; }
.wf-geo.warn { color: #e5bd78; }
.wf-camera-actions { display: flex; gap: 5px; margin-top: 9px; }
.wf-camera-actions .wf-btn { flex: 1; }
.wf-payslip { padding: 14px; border: 1px solid var(--m-line); border-radius: 9px; background: rgba(255,255,255,.03); }
.wf-payslip-line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: #a9bdd8; font-size: .62rem; border-bottom: 1px dashed var(--m-line); }
.wf-payslip-line strong { color: #e9f3ff; }
.wf-check { display: flex; align-items: flex-start; gap: 6px; padding: 4px 0; color: #a9bdd8; font-size: .61rem; }
.wf-check input { accent-color: #6ce2ff; margin-top: 2px; }
@media (max-width: 900px) {
  .wf-app { grid-template-columns: 1fr; }
  .wf-sidebar { display: block; width: 100%; min-width: 0; border-right: 0; border-bottom: 1px solid var(--m-line); padding: 8px; }
  .wf-brand { display: none; }
  .wf-nav { width: 100%; min-width: 0; flex-direction: row; overflow-x: auto; gap: 3px; }
  .wf-tab { flex: 0 0 auto; min-height: 27px; padding: 4px 7px; font-size: .55rem; }
  .wf-side-foot { display: none; }
  .wf-main { padding: 12px; }
  .wf-grid-4 { grid-template-columns: 1fr 1fr; }
  .wf-grid-2, .wf-form-grid { grid-template-columns: 1fr; }
  .wf-form-grid .wide { grid-column: auto; }
  .wf-top { display: block; }
  .wf-user { margin-top: 9px; text-align: left; }
  .wf-user button { margin-left: auto; }
}
@media (max-width: 560px) {
  .wf-grid-4 { grid-template-columns: 1fr 1fr; }
  .wf-stat { padding: 10px; }
  .wf-stat strong { font-size: 1.15rem; }
  .wf-field input, .wf-field select, .wf-field textarea { font-size: 16px; }
  .employee-page .portal-login { min-height: 0; }
}
