/* =============================================================
   Malina — Employee Detail
   Sourced from Malina screens.css (EMPLOYEE DETAIL section) +
   generic data-table pattern using Malina tokens
   ============================================================= */

/* ============================================================
   EMPLOYEE DETAIL
   ============================================================ */
.detail-head {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 32px 22px;
}
.detail-head .av-lg {
  width: 64px; height: 64px;
  background: var(--w-color, var(--accent));
  color: #FBF4E2;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.detail-head .info { flex: 1; min-width: 0; }
.detail-head h1 {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0; line-height: 1.05;
}
.detail-head .sub {
  font-size: 13px; color: var(--fg-muted);
  margin-top: 4px;
  display: flex; align-items: center; gap: 8px;
}
.detail-head .sub .sep { color: var(--fg-dim); }

.subtabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border-soft);
  padding: 0 32px;
  background: var(--bg-base);
  overflow-x: auto;
  scrollbar-width: none;
}
.subtabs::-webkit-scrollbar { display: none; }

.detail-body { padding: 22px 32px 40px; }

/* Personal information grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 56px;
  margin: 20px 0 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.info-pair .k {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.info-pair .v {
  font-size: 14px; color: var(--fg);
  font-weight: 500;
}
.info-pair.accent .v { color: var(--accent); }
.info-pair .v.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; }

/* Services list (employee detail) */
.svc-list { display: flex; flex-direction: column; }
.svc-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--dur-fast) var(--ease-out);
}
.svc-row:hover { background: var(--bg-elev-2); }
.svc-row:last-child { border-bottom: none; }
.svc-info .name { font-weight: 600; font-size: 14px; }
.svc-info .meta {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  letter-spacing: 0;
}
.svc-info .meta .price { color: var(--accent); font-weight: 600; }

/* Work schedule (per-day hours) */
.hours-list { display: flex; flex-direction: column; }
.hours-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.hours-row:last-child { border-bottom: none; }
.hours-day {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
}
.hours-row.is-closed .hours-day { color: var(--fg-muted); }
.hours-row.is-closed .input { opacity: 0.45; pointer-events: none; }
.hours-quickset {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.hours-quickset .label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Payroll grid */
.payroll-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 700px;
}

/* ============================================================
   DATA TABLE — generic employee list / roster
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.dt-head th {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  white-space: nowrap;
}

.dt-row td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
  color: var(--fg);
  vertical-align: middle;
}

.dt-row:hover td {
  background: var(--bg-elev-2);
}

.dt-row:last-child td {
  border-bottom: none;
}

/* Salary / payroll calc table */
.salary-table .progress {
  height: 6px;
  background: var(--bg-inset);
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: 80px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.salary-table .progress .fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

/* ============================================================
   EMP TABLE — div-based grid table (employees list)
   ============================================================ */
.emp-table {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.emp-table-head {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--border-soft);
}

.emp-table-head > div {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 10px 14px;
  white-space: nowrap;
}

.emp-table-head > div:nth-child(1) { flex: 0 0 280px; }
.emp-table-head > div:nth-child(2) { flex: 1; }
.emp-table-head > div:nth-child(3) { flex: 0 0 130px; }

.dt-row {
  display: flex;
  align-items: stretch;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  border-bottom: 1px solid var(--border-soft);
}

.dt-row:last-child { border-bottom: none; }

.dt-row:hover {
  background: var(--bg-elev-3);
}

.dt-cell {
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dt-cell:nth-child(1) { flex: 0 0 280px; }  /* avatar + name */
.dt-cell:nth-child(2) { flex: 1; color: var(--fg-muted); font-size: 13px; }  /* services */
.dt-cell:nth-child(3) { flex: 0 0 130px; }  /* access */

/* ============================================================
   EMP NOTICE BAR
   ============================================================ */
.emp-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

/* ============================================================
   EMP PROFILE HEADER & TABS
   ============================================================ */
.emp-profile-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elev-2);
  flex-shrink: 0;
}

.emp-profile-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.emp-profile-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink, #1a1200);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.emp-profile-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
}

.emp-profile-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 3px;
}

.emp-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-soft);
  padding: 0 28px;
  background: var(--bg-elev-1);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.emp-tabs::-webkit-scrollbar { display: none; }

.emp-tab {
  background: transparent; border: none;
  font: inherit; cursor: pointer;
  padding: 12px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--fg-muted);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.emp-tab:hover { color: var(--fg); }
.emp-tab.active { color: var(--accent); }
.emp-tab.active::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.emp-tab-num {
  font-size: 11px;
  background: var(--bg-elev-3);
  border-radius: var(--radius-pill);
  padding: 1px 6px;
  color: var(--fg-muted);
}

.emp-profile-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.btn-danger-sm {
  background: var(--danger-tint);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-danger-sm:hover {
  background: var(--danger);
  color: #fff;
}
