/**
 * 👥 GÖKÇEOS PLATFORM V2 — HUMAN RESOURCES & WORKFORCE MANAGEMENT (İK & PERSONEL)
 * Styling for Employee Directory, Personnel Dossier (Özlük), Payroll & Bank Orders,
 * Food Cards (Multinet/Sodexo), Leave/Vacation Requests, PDKS Shift Schedules, & HR Documents.
 */

.gkv2-hr-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #060a14;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

/* TOP COMMAND & METRIC STRIP */
.gkv2-hr-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 14px 18px 0 18px;
}

.gkv2-hr-stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.gkv2-hr-stat-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.gkv2-hr-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.gkv2-hr-stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gkv2-hr-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.gkv2-hr-stat-value {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.gkv2-hr-stat-sub {
  font-size: 10px;
  color: #38bdf8;
  margin-top: 1px;
}

/* MAIN SCROLLABLE CONTENT BODY */
.gkv2-hr-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* SECTION TABS SUBNAV */
.gkv2-hr-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  flex-shrink: 0;
}

.gkv2-hr-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gkv2-hr-tab-btn:hover {
  color: #e2e8f0;
}

.gkv2-hr-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  font-weight: 700;
}

.gkv2-hr-tab-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

/* TABLES & DATA GRIDS */
.gkv2-hr-table-wrap {
  background: #090f1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.gkv2-hr-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11.5px;
}

.gkv2-hr-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.gkv2-hr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  vertical-align: middle;
}

.gkv2-hr-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* STATUS BADGES */
.gkv2-hr-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.gkv2-hr-pill.active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.gkv2-hr-pill.leave {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.gkv2-hr-pill.shift {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.gkv2-hr-pill.passive {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* EMPLOYEE AVATAR & CELL */
.gkv2-hr-employee-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gkv2-hr-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #38bdf8;
  flex-shrink: 0;
}

/* SIDE DRAWER FOR DOSSIER & ACTIONS */
.gkv2-hr-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
  animation: gkv2FadeIn 0.15s ease-out;
}

.gkv2-hr-drawer {
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: #090f1e;
  border-left: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  animation: gkv2SlideLeft 0.2s ease-out;
}

.gkv2-hr-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.gkv2-hr-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gkv2-hr-drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.gkv2-hr-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@keyframes gkv2FadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gkv2SlideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
