/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --teal:         #1A97A8;
  --teal-dark:    #0E7A88;
  --teal-deeper:  #0a5a68;
  --teal-light:   #E3F6F9;
  --teal-border:  #B8E2EA;
  --orange:       #F59400;
  --orange-light: #FFF3D0;
  --orange-border:#FFD87A;
  --bg:           #FFFFFF;
  --bg2:          #F2F5F8;
  --bg3:          #E6E9EE;
  --border:       #DDE1E8;
  --text:         #1C1F26;
  --text2:        #555C6E;
  --text3:        #96A0B0;
  --accent:       var(--teal);
  --accent-dark:  var(--teal-dark);
  --accent-bg:    var(--teal);
  --accent-fg:    #ffffff;
  --accent-light: var(--teal-light);
  --accent-border:var(--teal-border);
  --success:      #16A34A;
  --warning:      #CA8A04;
  --radius:       16px;
  --radius-sm:    11px;
  --shadow:       0 1px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.09);
  --hero-pad-top: 20px;
  --font-display: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Screen system ────────────────────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  flex-direction: column;
  animation: fadeIn 0.18s ease;
}
.screen.active { display: flex; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Loading ──────────────────────────────────────────────────────────────── */
.loader-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; gap: 16px; color: var(--text2);
}
.loader {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Center wrap ─────────────────────────────────────────────────────────── */
.center-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 32px 24px; gap: 12px;
}
.center-wrap h2 { font-family: var(--font-body); font-size: 1.5rem; font-weight: 800; letter-spacing: 0; }
.center-wrap p  { color: var(--text2); font-size: 0.95rem; max-width: 280px; }
.status-icon { font-size: 3rem; line-height: 1; }

/* ── App Header ───────────────────────────────────────────────────────────── */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 8px;
}
.app-header h1 {
  font-family: var(--font-body);
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0; color: var(--teal);
}
.btn-icon {
  background: none; border: 1.5px solid var(--border); border-radius: 8px;
  width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.btn-icon:hover { background: var(--bg2); }

/* ── Page Header ──────────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 2px solid var(--bg2);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.page-header h2 {
  font-family: var(--font-body);
  font-size: 1.1rem; font-weight: 800; letter-spacing: 0;
  flex: 1; color: var(--text);
}
.page-header { position: relative; }
.page-header .btn-icon {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--teal); color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.btn-back {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none;
  font-size: 0.88rem; font-weight: 700; color: var(--teal); cursor: pointer;
  padding: 4px 0; white-space: nowrap; font-family: var(--font-body);
}
.btn-back:hover { color: var(--teal-dark); }

/* ═══════════════════════════════════════════════════════════════
   ЛИЧНЫЙ КАБИНЕТ СОТРУДНИКА
   ═══════════════════════════════════════════════════════════════ */

/* Hero — фирменный тёмно-бирюзовый Master Coffee */
.cab-hero {
  background: linear-gradient(155deg, #1E9BAC 0%, #157989 50%, #0E6474 100%);
  padding: var(--hero-pad-top, 24px) 20px 28px;
  position: relative;
  border-radius: 0 0 24px 24px;
  z-index: 1;
}
.cab-hero::before { display: none; }
.cab-hero::after  { display: none; }

/* Полоска снизу скрыта — используем border-radius */
.cab-hero .hero-stripe { display: none; }
.cab-hero-content {
  display: flex; align-items: center; gap: 14px;
}
.cab-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.55);
  font-family: var(--font-body);
  font-size: 1.1rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cab-hero-text { flex: 1; min-width: 0; }
.cab-name {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 800; line-height: 1.35; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cab-pos {
  font-size: 0.77rem; color: rgba(255,255,255,0.76); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 500;
}
.cab-hero-chips { display: flex; gap: 5px; margin-top: 12px; flex-wrap: wrap; }
.cab-hero-chip {
  display: inline-flex; align-items: center;
  padding: 3px 9px; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26); border-radius: 20px;
  font-size: 10px; color: rgba(255,255,255,0.90); font-weight: 600;
}

/* Виджет баланса отпуска */
.cab-vac-widget {
  margin: 14px 14px 0;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(14,100,116,0.10);
}
.cab-vac-title {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 1px; color: #7A9BAB;
  margin-bottom: 12px; text-transform: uppercase;
}
.cab-vac-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cab-vac-card {
  border-radius: 12px; padding: 12px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cab-vac-earned  { background: #E8F8F5; }
.cab-vac-used    { background: #EEF5F8; }
.cab-vac-rem     { background: #E4F1F9; }
.cab-vac-num     { font-size: 22px; font-weight: 700; color: #1C1F26; font-variant-numeric: tabular-nums; line-height: 1; }
.cab-vac-label   { font-size: 9px; font-weight: 600; color: #7A9BAB; text-align: center; text-transform: uppercase; letter-spacing: 0.3px; }

/* ── Employee cabinet menu — Master Coffee style ──────── */
.cab-menu {
  flex: 1;
  background: #EAF3F7;
  padding-bottom: 48px;
}

.cab-section-label {
  font-size: 0.63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #7A9BAB;
  padding: 18px 16px 8px;
}

/* 2-col grid */
.cab-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 0 14px 4px;
}
.cab-grid-card {
  background: #fff; border: none; border-radius: 18px;
  padding: 17px 14px 15px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  cursor: pointer; text-align: left; width: 100%;
  box-shadow: 0 2px 12px rgba(14,100,116,0.10), 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  min-height: 110px;
}
.cab-grid-card:hover  { box-shadow: 0 6px 20px rgba(14,100,116,0.16); }
.cab-grid-card:active { transform: scale(0.96); }
.cab-grid-ico {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.cab-grid-title {
  font-size: 0.88rem; font-weight: 700; color: #1C1F26; line-height: 1.2;
}
.cab-grid-desc {
  font-size: 0.68rem; color: #7A9BAB; font-weight: 500;
  margin-top: -6px; line-height: 1.3;
}

/* List section */
.cab-list {
  padding: 4px 14px 0;
  display: flex; flex-direction: column; gap: 8px;
}
#screen-my-cabinet .menu-card {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  padding: 14px 16px; background: #fff; border: none; border-radius: 16px;
  box-shadow: 0 2px 10px rgba(14,100,116,0.08), 0 1px 3px rgba(0,0,0,0.03);
  cursor: pointer; text-align: left; width: 100%;
  transition: box-shadow 0.15s, transform 0.12s;
}
#screen-my-cabinet .menu-card:hover  { box-shadow: 0 4px 18px rgba(14,100,116,0.13); }
#screen-my-cabinet .menu-card:active { transform: scale(0.99); }
#screen-my-cabinet .menu-icon,
#screen-my-cabinet .menu-label,
#screen-my-cabinet .menu-sub { display: none; }
.cab-ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.cab-ico-blue   { background: #E4EFFF; }
.cab-ico-teal   { background: #DDF2F5; }
.cab-ico-orange { background: #FFF4E0; }
.cab-ico-purple { background: #EEE9FF; }
.cab-ico-green  { background: #DFF5E8; }
.cab-text { flex: 1; min-width: 0; }
.cab-title { font-size: 0.93rem; font-weight: 700; color: var(--text); }
.cab-desc  { font-size: 0.74rem; color: var(--text3); margin-top: 2px; font-weight: 500; }
.cab-arrow { color: #CFD5DD; font-size: 1.25rem; flex-shrink: 0; }

/* ── Main menu (old HR screen) ───────────────────────────────────────────── */
.menu-grid {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 8px;
}
.menu-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 20px; background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; text-align: left;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: var(--shadow);
}
.menu-card:hover  { background: var(--bg3); box-shadow: var(--shadow-md); }
.menu-card:active { transform: scale(0.98); }
.menu-icon  { font-size: 1.8rem; margin-bottom: 4px; }
.menu-label { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.menu-sub   { font-size: 0.82rem; color: var(--text3); font-weight: 600; }

/* ── Section label ────────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.5px;
  color: var(--text3);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; font-weight: 700;
}
.section-label::after {
  content: '';
  flex: 1; height: 1.5px;
  background: linear-gradient(90deg, var(--teal-border), transparent);
  border-radius: 2px;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */
.form-wrap { flex: 1; padding: 16px; overflow-y: auto; }
.form-step { display: none; animation: fadeIn 0.2s ease; }
.form-step.active { display: block; }
.step-header { margin-bottom: 20px; }
.step-num { font-size: 0.78rem; color: var(--text3); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.step-header h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 800; margin-top: 4px; letter-spacing: 0; }

/* Fields */
.field-wrap { margin-bottom: 18px; }
.field-wrap input[type="text"],
.field-wrap input[type="email"],
.field-wrap input[type="number"],
.field-wrap input[type="date"],
.field-wrap input[type="tel"] {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; color: var(--text); background: #fff;
  outline: none; transition: border-color 0.15s;
  font-family: var(--font-body); font-weight: 600;
  -webkit-appearance: none;
}
.field-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,151,168,0.1); }
.field-wrap label.field-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); margin-bottom: 6px;
}
.field-wrap textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; resize: vertical; outline: none;
  transition: border-color .15s; font-family: var(--font-body); font-weight: 600;
  background: #fff;
}
.field-wrap textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,151,168,0.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-hint { display: block; font-size: 0.78rem; color: var(--text3); margin-top: 4px; font-weight: 600; }

/* ── Choice list ──────────────────────────────────────────────────────────── */
.choice-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.choice-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  font-size: 0.95rem; font-weight: 700; background: #fff;
}
.choice-item:hover { background: var(--bg2); }
.choice-item input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%;
  flex-shrink: 0; transition: border-color 0.15s; position: relative;
}
.choice-item input[type="radio"]:checked {
  border-color: var(--teal); background: var(--teal);
  box-shadow: inset 0 0 0 4px #fff;
}
.choice-item:has(input:checked) {
  border-color: var(--teal); background: var(--teal-light);
}
.choice-list.choice-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px;
}
.choice-list.choice-row .choice-item {
  flex-direction: column; padding: 10px 6px; text-align: center;
  gap: 3px; justify-content: center;
}
.choice-list.choice-row .choice-item span { font-size: 0.76rem; line-height: 1.3; }

/* ── Application type card ────────────────────────────────────────────────── */
.app-type-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.app-type-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
}
.app-type-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.app-type-card:hover { border-color: var(--teal); box-shadow: 0 2px 12px rgba(26,151,168,0.12); }
.app-type-card:has(input:checked) {
  border-color: var(--teal); background: var(--teal-light);
  box-shadow: 0 3px 14px rgba(26,151,168,0.16);
}
.app-type-card--vac {
  border-color: var(--teal-border);
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f7fa 100%);
}
.app-type-card--vac:has(input:checked) {
  background: linear-gradient(135deg, #ccfbf1 0%, #b2ebf2 100%);
}
.atc-icon {
  font-size: 28px; flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.8); border-radius: 12px;
}
.atc-body { flex: 1; min-width: 0; }
.atc-title { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.3; }
.atc-desc  { font-size: 11px; color: var(--text2); margin-top: 2px; font-weight: 600; }
.atc-check { font-size: 16px; font-weight: 900; color: var(--teal); opacity: 0; flex-shrink: 0; transition: opacity 0.15s; }
.app-type-card:has(input:checked) .atc-check { opacity: 1; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-next, .btn-submit, .btn-primary {
  display: block; width: 100%; padding: 15px;
  background: var(--teal);
  color: #fff; border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  font-family: var(--font-body); letter-spacing: 0.3px;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(26,151,168,0.30);
}
.btn-next:hover, .btn-submit:hover, .btn-primary:hover { opacity: 0.88; }
.btn-next:active, .btn-submit:active, .btn-primary:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(26,151,168,0.25); }
.btn-row { display: flex; gap: 10px; align-items: center; }
.btn-row .btn-next, .btn-row .btn-submit { flex: 1; }
.btn-back-step {
  flex-shrink: 0; background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 13px 16px; font-size: 0.9rem; font-weight: 700;
  color: var(--text2); cursor: pointer; transition: background 0.15s; font-family: var(--font-body);
}
.btn-back-step:hover { background: var(--bg2); }
.btn-outline {
  display: block; width: 100%; padding: 12px; background: none;
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 700; color: var(--text2);
  cursor: pointer; margin: 4px 0 12px; transition: background .15s, border-color .15s;
  font-family: var(--font-body);
}
.btn-outline:hover { background: var(--bg2); border-color: var(--teal); }
.btn-copy {
  background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  width: 100%; margin-top: 10px; transition: background 0.15s; font-family: var(--font-body);
}
.btn-copy:hover { background: var(--bg3); }
.btn-secondary {
  background: none; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 16px; font-size: 0.9rem; font-weight: 700; color: var(--text2);
  cursor: pointer; font-family: var(--font-body);
}

/* ── Step indicator ──────────────────────────────────────────────────────── */
.step-indicator { display: flex; gap: 6px; padding: 0 0 16px; }
.step-dot { flex: 1; height: 3px; border-radius: 3px; background: var(--border); transition: background 0.2s; }
.step-dot.done { background: var(--teal); }

/* ── Step 6 fields ───────────────────────────────────────────────────────── */
#step6-content .field-wrap { margin-bottom: 16px; }
#step6-content .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Vacation preview ────────────────────────────────────────────────────── */
.vacation-preview {
  background: var(--teal-light); border: 1px solid var(--teal-border);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; font-size: 0.88rem;
}
.vp-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.vp-row:last-child { margin-bottom: 0; }
.vp-label { color: var(--text2); font-weight: 600; }
.vp-val   { font-weight: 800; }
.vp-holiday { color: var(--text3); font-size: 0.8rem; margin-top: 6px; }

/* ── Result ───────────────────────────────────────────────────────────────── */
.result-wrap { flex: 1; display: flex; flex-direction: column; padding: 24px 16px; gap: 14px; }
.result-icon { font-size: 3rem; text-align: center; }
#result-title { font-family: var(--font-body); font-size: 1.3rem; text-align: center; letter-spacing: 0.5px; }
.result-sub { text-align: center; font-size: 0.9rem; color: var(--text2); font-weight: 600; }
.result-details {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.9rem;
}
.result-details .detail-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.result-details .detail-row:last-child { margin-bottom: 0; }
.result-details .dl { color: var(--text2); font-weight: 600; }
.result-details .dv { font-weight: 800; text-align: right; max-width: 60%; }
.result-warning {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.85rem; color: #856404;
}

/* ── Admin Panel ──────────────────────────────────────────────────────────── */
.admin-tabs { display: flex; border-bottom: 2px solid var(--bg2); padding: 0 16px; }
.tab-btn {
  flex: 1; padding: 12px; background: none; border: none;
  border-bottom: 3px solid transparent; font-size: 0.92rem; font-weight: 800;
  color: var(--text2); cursor: pointer; transition: color 0.15s, border-color 0.15s; margin-bottom: -2px;
  font-family: var(--font-body);
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--teal); }
.tab-content { display: none; padding: 14px 16px; overflow-y: auto; }
.tab-content.active { display: block; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-user-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px;
}
.auc-name { font-weight: 800; font-size: 0.95rem; }
.auc-meta { font-size: 0.8rem; color: var(--text3); margin-top: 2px; font-weight: 600; }
.auc-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.role-btn {
  padding: 6px 12px; border-radius: 6px; border: 1.5px solid var(--border);
  font-size: 0.8rem; font-weight: 800; cursor: pointer; transition: background 0.15s; background: var(--bg);
  font-family: var(--font-body);
}
.role-btn:hover { background: var(--bg3); }
.role-btn.active-role { background: var(--teal); color: #fff; border-color: var(--teal); }
.role-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 900;
  padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px;
}
.role-badge.admin   { background: #111; color: #fff; }
.role-badge.user    { background: var(--bg3); color: var(--text2); }
.role-badge.pending { background: #fff3cd; color: #856404; }
.role-badge.blocked { background: #f8d7da; color: #721c24; }
.admin-app-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 0.88rem;
}
.aac-title { font-weight: 800; margin-bottom: 4px; }
.aac-meta  { color: var(--text3); font-size: 0.8rem; font-weight: 600; }
.aac-data  { margin-top: 8px; font-size: 0.82rem; color: var(--text2); font-weight: 600; }

/* ── На сотрудника ────────────────────────────────────────────────────────── */
.menu-list { display: flex; flex-direction: column; padding: 12px 16px; gap: 2px; }
.menu-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 14px; background: none; border: none;
  border-bottom: 1.5px solid var(--bg2); cursor: pointer; text-align: left;
  transition: background .12s; border-radius: 0; width: 100%;
}
.menu-list-item:first-child { border-top: 1.5px solid var(--bg2); }
.menu-list-item:hover { background: var(--bg2); }
.mli-left  { display: flex; align-items: center; gap: 12px; }
.mli-icon  { font-size: 1.25rem; }
.mli-label { font-size: 0.97rem; font-weight: 800; color: var(--text); }
.mli-arrow { color: var(--text3); font-size: 1.3rem; line-height: 1; }

/* ═══════════════════════════════════════════════════════════════
   EMPLOYEES MODULE
   ═══════════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 16px;
  background: var(--bg2); border-bottom: 1.5px solid var(--border);
}
.filter-input {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; background: #fff;
  outline: none; font-weight: 600; font-family: var(--font-body);
}
.filter-select {
  padding: 8px 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; background: #fff;
  color: var(--text); font-weight: 700; font-family: var(--font-body);
}
.filter-row { display: flex; gap: 6px; }
.emp-stats { padding: 8px 16px; font-size: 13px; color: var(--text3); font-weight: 700; }
.emp-list { overflow-y: auto; flex: 1; }
.emp-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1.5px solid var(--bg2); cursor: pointer; transition: background 0.15s;
}
.emp-item:active { background: var(--bg2); }
.emp-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 14px; flex-shrink: 0;
}
.emp-info { flex: 1; min-width: 0; }
.emp-name  { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-meta  { font-size: 12px; color: var(--text3); margin-top: 2px; font-weight: 600; }
.emp-badge { font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: 800; flex-shrink: 0; }
.badge-active   { background: #d4edda; color: #155724; }
.badge-fired    { background: #f8d7da; color: #721c24; }
.badge-maternity{ background: #cce5ff; color: #004085; }
.badge-vacation { background: var(--orange-light); color: #7a5800; }
.entity-tag {
  display: inline-block; font-size: 11px; background: var(--bg3); color: var(--text2);
  border-radius: 4px; padding: 1px 6px; margin-top: 2px; font-weight: 700;
}
.emp-tabs {
  display: flex; border-bottom: 1.5px solid var(--border);
  background: var(--bg); overflow-x: auto;
}
.emp-tab {
  flex: 1; padding: 10px 8px; border: none; background: none;
  font-size: 13px; font-weight: 800; color: var(--text3);
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: all 0.15s; font-family: var(--font-body);
}
.emp-tab.active { color: var(--text); border-bottom-color: var(--teal); }
.emp-tab-content { display: none; padding: 16px; }
.emp-tab-content.active { display: block; }
.card-section { background: var(--bg2); border-radius: var(--radius); padding: 12px; }
.card-badge { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 700; margin-bottom: 12px; }
.card-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--bg3);
}
.card-row:last-child { border-bottom: none; }
.card-label { font-size: 12px; color: var(--text3); flex-shrink: 0; margin-right: 8px; font-weight: 700; }
.card-val   { font-size: 14px; text-align: right; word-break: break-all; font-weight: 700; }
.quick-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.qa-btn {
  padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; transition: background 0.15s; font-family: var(--font-body);
}
.qa-btn:active { background: var(--bg2); }
.qa-red { color: #c0392b; border-color: #f5c6cb; }

/* Docs */
.docs-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  background: #fff; border-radius: var(--radius); padding: 14px 14px 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06); border: 1.5px solid var(--border);
  border-left: 4px solid var(--doc-accent, var(--border)); transition: box-shadow 0.15s;
}
.doc-item:active { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.doc-item[data-status="signed"]       { --doc-accent: #22c55e; }
.doc-item[data-status="generated"]    { --doc-accent: var(--teal); }
.doc-item[data-status="pending_sign"] { --doc-accent: var(--orange); }
.doc-item[data-status="completed"]    { --doc-accent: #22c55e; }
.doc-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.doc-date { font-size: 11px; color: var(--text3); font-weight: 700; }
.doc-status-badge {
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-signed, .badge-completed  { background: #dcfce7; color: #15803d; }
.badge-generated { background: var(--teal-light); color: var(--teal-dark); }
.badge-pending_sign { background: var(--orange-light); color: #7a5800; }
.doc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.doc-btn {
  font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 8px;
  cursor: pointer; border: none; transition: opacity 0.15s, transform 0.1s;
  font-family: var(--font-body);
}
.doc-btn:active { opacity: 0.8; transform: scale(0.97); }
.doc-btn-pdf  { background: var(--teal); color: #fff; }
.doc-btn-docx { background: var(--bg2); color: var(--text2); border: 1px solid var(--border); }

/* Checklist */
.checklist-header { margin-bottom: 12px; }
.enbek-block {
  margin-top: 8px; padding: 8px 12px; background: var(--orange-light);
  border-radius: var(--radius-sm); font-size: 13px; color: #7a5800; font-weight: 700;
}
.checklist-wrap { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--bg2); border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s;
}
.check-item:active { background: var(--bg3); }
.check-box {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  flex-shrink: 0; transition: all 0.15s;
}
.check-item.done .check-box { background: #28a745; border-color: #28a745; color: #fff; }
.check-label { font-size: 14px; font-weight: 700; }
.check-item.done .check-label { color: var(--text3); text-decoration: line-through; }

/* Vacation summary */
.vac-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.vac-card { text-align: center; padding: 16px 8px; border-radius: var(--radius); background: var(--bg2); }
.vac-num   { display: block; font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; }
.vac-label { display: block; font-size: 10px; color: var(--text3); margin-top: 4px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.vac-earned { background: var(--teal-light); border: 1px solid var(--teal-border); }
.vac-earned .vac-num  { color: var(--teal-dark); }
.vac-used .vac-num    { color: #856404; }
.vac-rem   { background: var(--teal-light); border: 1px solid var(--teal-border); }
.vac-rem .vac-num     { color: var(--teal-dark); }
.vac-unoff { background: var(--orange-light); border: 1px solid var(--orange-border); }
.vac-unoff .vac-num   { color: #7a5800; }
.vac-year-selector { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.vac-year-selector select { padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 6px; font-family: var(--font-body); }

/* Vacation requests list */
.vreq-list { display: flex; flex-direction: column; }
.vreq-item {
  padding: 14px 16px; border-bottom: 1.5px solid var(--bg2);
  cursor: pointer; transition: background 0.15s;
}
.vreq-item:active { background: var(--bg2); }
.vreq-header { display: flex; justify-content: space-between; align-items: flex-start; }
.vreq-name   { font-size: 15px; font-weight: 800; }
.vreq-type   { font-size: 13px; color: var(--text3); margin-top: 2px; font-weight: 700; }
.vreq-dates  { font-size: 12px; color: var(--text2); margin-top: 5px; font-weight: 700; }
.vreq-days   {
  font-size: 11px; font-weight: 800; background: var(--teal-light);
  color: var(--teal-dark); border-radius: 10px; padding: 2px 8px; display: inline-block; margin-left: 6px;
}
.status-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 20px; }
.status-pending  { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }

/* ── Smart hire ──────────────────────────────────────────────────────────── */
.btn-smart-hire {
  display: block; width: 100%; padding: 14px 16px; margin-bottom: 4px;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff; border: none; border-radius: var(--radius); font-size: 15px;
  font-weight: 900; cursor: pointer; text-align: center; transition: opacity 0.15s;
  font-family: var(--font-body); letter-spacing: 0.5px;
}
.btn-smart-hire:active { opacity: 0.85; }
.smart-hire-hint { text-align: center; font-size: 12px; color: var(--text3); margin-bottom: 16px; font-weight: 700; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; }
.modal.hidden { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-box {
  position: relative; z-index: 1; width: 100%; max-height: 90vh;
  background: #fff; border-radius: 20px 20px 0 0;
  overflow-y: auto; animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1.5px solid var(--bg2);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.modal-header h3 { font-family: var(--font-body); font-size: 1.1rem; letter-spacing: 0.5px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--bg2); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.modal-body { padding: 16px 20px 32px; }
.modal-hint { font-size: 13px; color: var(--text3); margin-bottom: 16px; line-height: 1.5; font-weight: 600; }

/* ── Prefill info ───────────────────────────────────────────────────────── */
.prefill-info {
  background: #e8f5e9; border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 12px; font-weight: 700;
  color: #2e7d32; margin-bottom: 12px; line-height: 1.6;
}
.prefill-info:empty { display: none; }

/* ── Hire result ────────────────────────────────────────────────────────── */
.hire-result { background: var(--bg2); border-radius: var(--radius); padding: 12px; margin-top: 12px; }
.hire-result-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; font-weight: 700; }
.hire-result-icon { font-size: 16px; }

/* ── Enbek badges ───────────────────────────────────────────────────────── */
.enbek-urgent {
  display: inline-block; padding: 2px 8px; background: var(--orange-light);
  color: #7a5800; border-radius: 20px; font-size: 11px; font-weight: 800; margin-left: 6px;
}
.enbek-overdue { background: #f8d7da; color: #721c24; }

/* ── Timesheet ──────────────────────────────────────────────────────────── */
.ts-legend {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px;
  font-size: 12px; font-weight: 700; color: var(--text3);
  border-bottom: 1.5px solid var(--border); align-items: center;
}
.ts-leg-item {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px; border-radius: 4px; font-size: 11px; font-weight: 800;
}
.ts-wrap { overflow: auto; flex: 1; }
.ts-table { border-collapse: collapse; font-size: 11px; min-width: max-content; }
.ts-table th, .ts-table td { border: 1px solid var(--border); padding: 4px 3px; text-align: center; white-space: nowrap; font-weight: 700; }
.ts-table th { background: var(--bg2); font-weight: 900; position: sticky; top: 0; z-index: 1; }
.ts-name-col { min-width: 140px; text-align: left !important; padding-left: 8px !important; position: sticky; left: 0; background: #fff; z-index: 2; }
.ts-total-col { background: var(--bg2) !important; font-weight: 900; }
.ts-cell { cursor: pointer; transition: background 0.1s; user-select: none; }
.ts-cell:active { opacity: 0.7; }
.ts-Я  { background: #fff; }
.ts-О  { background: #cce5ff; color: #004085; }
.ts-ОБ { background: #e2d9f3; color: #4a235a; }
.ts-Б  { background: #fff3cd; color: #856404; }
.ts-К  { background: #d1ecf1; color: #0c5460; }
.ts-В  { background: #f8f9fa; color: #aaa; }
.ts-П  { background: #f8d7da; color: #721c24; }
.ts-ОЖ { background: #d4edda; color: #155724; }
.ts-Р  { background: #fce4ec; color: #880e4f; }
.ts-weekend { background: #f8f9fa !important; color: #ccc !important; }
.ts-totals-row { background: var(--bg2) !important; font-weight: 900; }

/* ═══════════════════════════════════════════════════════════════
   МОЙ ОТПУСК
   ═══════════════════════════════════════════════════════════════ */
#screen-my-vacation { flex-direction: column; background: var(--bg2); min-height: 100%; }

.mvac-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 16px 16px 20px; color: #fff; position: relative; overflow: hidden;
}
.mvac-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), #FFBE00);
}
.mvac-hero-title {
  font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 1px;
  opacity: 0.85; margin-bottom: 14px; text-transform: uppercase;
}
.mvac-bal-row { display: flex; flex-direction: column; gap: 10px; }
.mvac-bal-block { background: rgba(255,255,255,0.13); border-radius: 12px; padding: 12px 14px; }
.mvac-bal-label {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.8px; opacity: 0.7; margin-bottom: 10px;
}
.mvac-bal-nums { display: flex; align-items: center; gap: 4px; }
.mvac-bal-cell { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mvac-bal-sep  { color: rgba(255,255,255,0.3); font-size: 18px; flex-shrink: 0; }
.mvac-num { font-size: 26px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.mvac-cell-label { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 800; }
.mvac-cell-rem .mvac-num  { color: #a7f3d0; }
.mvac-cell-unoff .mvac-num{ color: #fde68a; }
.mvac-bal-divider { height: 1px; background: rgba(255,255,255,0.15); }
.mvac-warn { font-size: 12px; color: #fde68a; margin-top: 8px; font-weight: 700; }
.mvac-as-of { font-size: 11px; opacity: 0.6; margin: 12px 0 0; text-align: center; font-weight: 700; }

.mvac-section { background: #fff; border-radius: 16px 16px 0 0; margin-top: -8px; padding: 16px 16px 8px; flex: 1; }
.mvac-section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mvac-section-title { font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.5px; }
.mvac-new-btn {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff; border: none; border-radius: 20px; padding: 7px 16px;
  font-size: 13px; font-weight: 900; cursor: pointer;
  box-shadow: 0 3px 10px rgba(26,151,168,0.3); font-family: var(--font-body);
}

.mvac-form-sheet {
  background: #fff; border-top: 2px solid var(--teal-border); padding: 16px 16px 32px;
}
.mvac-form-title { font-family: var(--font-body); font-size: 1rem; color: var(--text); margin-bottom: 16px; letter-spacing: 0.5px; }
.mvac-form-label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text2); margin: 0 0 10px; }
.mvac-end-preview {
  margin-top: 8px; padding: 10px 12px; background: var(--teal-light);
  border: 1px solid var(--teal-border); border-radius: 10px; font-size: 14px; font-weight: 700;
}

/* ─── My requests ─────────────────────────────────────────────────────────── */
#screen-my-requests { background: var(--bg2); }
#screen-my-requests .page-header { background: #fff; }
#my-requests-list { padding: 12px 14px 32px; }
.req-item {
  background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  border: 1.5px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  border-left: 4px solid var(--teal);
}
.req-item[data-status="approved"],
.req-item[data-status="completed"],
.req-item[data-status="consent_signed"] { border-left-color: #22c55e; }
.req-item[data-status="rejected"]        { border-left-color: #ef4444; }
.req-item[data-status="pending_manager"] { border-left-color: var(--orange); }
.req-type { font-size: 14px; font-weight: 800; color: var(--text); }
.req-date { font-size: 11px; color: var(--text3); margin-top: 3px; font-weight: 700; }
.req-status-badge {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 20px;
}
.status-signed  { background: #dcfce7; color: #15803d; }
.status-default { background: var(--teal-light); color: var(--teal-dark); }

/* ─── Ask HR ──────────────────────────────────────────────────────────────── */
#screen-ask-hr { background: var(--bg2); }
#screen-ask-hr .page-header { background: #fff; }
#screen-ask-hr > div { padding: 16px 14px 32px; }
.question-item {
  background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  border: 1.5px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.question-text { font-size: 14px; font-weight: 700; color: var(--text); }
.question-date { font-size: 11px; color: var(--text3); margin-top: 4px; font-weight: 700; }
.question-answer {
  margin-top: 10px; padding: 10px 12px; background: var(--teal-light);
  border-radius: 8px; font-size: 13px; color: var(--teal-dark);
  border-left: 3px solid var(--teal); font-weight: 700;
}

/* ─── Avans ───────────────────────────────────────────────────────────────── */
#screen-avans { background: var(--bg2); }
#screen-avans .page-header { background: #fff; }

/* ─── Questionnaire ───────────────────────────────────────────────────────── */
#screen-questionnaire { background: var(--bg2); }
#screen-questionnaire .page-header { background: #fff; }
.q-block { display: none; }
.q-block.active { display: block; }
.q-block-title {
  font-family: var(--font-body); font-size: 1.1rem; letter-spacing: 0.5px;
  margin-bottom: 14px; color: var(--text); padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
}
.q-field { margin-bottom: 14px; }
.q-field label {
  display: block; font-size: 12px; font-weight: 900;
  color: var(--text2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px;
}
.q-field input, .q-field select {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text); font-size: 15px; font-weight: 700; font-family: var(--font-body);
}
.q-field input:focus, .q-field select:focus { outline: none; border-color: var(--teal); }
.q-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--border);
  color: var(--text2); font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.q-step-dot.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.q-step-dot.done   { background: #22c55e; color: #fff; border-color: #22c55e; }

/* Динамические таблицы анкеты */
.q-subtit {
  font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text2); margin: 16px 0 10px; padding-bottom: 6px;
  border-bottom: 1.5px solid var(--border);
}
.q-dyn-row {
  background: var(--bg2, #f5f7fa); border-radius: 12px;
  padding: 12px 12px 6px; margin-bottom: 10px;
  border: 1.5px solid var(--border);
}
.q-dyn-row-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.q-dyn-row-num { font-size: 12px; font-weight: 900; color: var(--text2); }
.q-dyn-row-del {
  background: none; border: none; color: var(--text2); font-size: 16px;
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.q-dyn-row-del:hover { color: var(--danger, #ef4444); }
.q-add-row-btn {
  width: 100%; padding: 10px; border-radius: 10px;
  border: 1.5px dashed var(--border); background: none;
  color: var(--teal); font-size: 14px; font-weight: 700;
  cursor: pointer; margin-bottom: 14px; font-family: var(--font-body);
}
.q-add-row-btn:hover { background: var(--bg2); }
.q-field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Просмотр анкеты */
.qv-section { margin-bottom: 20px; }
.qv-section-title {
  font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text2); margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--teal);
}
.qv-row {
  display: flex; gap: 8px; padding: 7px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.qv-row:last-child { border-bottom: none; }
.qv-label { color: var(--text2); min-width: 130px; flex-shrink: 0; }
.qv-val { color: var(--text); font-weight: 600; flex: 1; word-break: break-word; }
.qv-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.qv-table th {
  text-align: left; font-size: 11px; font-weight: 900; text-transform: uppercase;
  color: var(--text2); padding: 6px 8px; background: var(--bg2);
  border-bottom: 1.5px solid var(--border);
}
.qv-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); color: var(--text); }
.qv-table tr:last-child td { border-bottom: none; }

/* ─── Step 5 hero ─────────────────────────────────────────────────────────── */
.ls5-hero {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #e0f7fa 0%, #f0fdfa 100%);
  border: 1.5px solid var(--teal-border); border-radius: 16px;
  padding: 16px; margin-bottom: 20px;
}
.ls5-hero-icon {
  font-size: 32px; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.7); border-radius: 14px; flex-shrink: 0;
}
.ls5-hero-title { font-family: var(--font-body); font-size: 1.1rem; color: var(--teal-dark); line-height: 1.2; letter-spacing: 0.5px; }
.ls5-hero-sub   { font-size: 12px; color: var(--text2); margin-top: 3px; font-weight: 700; }

/* ── Doc Viewer ─────────────────────────────────────────────────────────── */
.doc-viewer-box { position: fixed; inset: 0; z-index: 1001; display: flex; flex-direction: column; background: #f0f0f0; }
.doc-viewer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; min-height: 56px; gap: 8px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
}
.doc-viewer-header #doc-viewer-title { color: #fff; font-weight: 800; font-size: 15px; }
.doc-viewer-header #doc-viewer-download {
  background: rgba(255,255,255,0.22); color: #fff;
  border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(4px);
}
.doc-viewer-header #doc-viewer-close { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-1  { margin-top: 16px; }
.mt-2  { margin-top: 8px; }
.mb-0  { margin-bottom: 0; }
.text-muted { color: var(--text3); font-size: .9rem; font-weight: 700; }
.req { color: #ef4444; }

/* ── Screen-specific docs bg ──────────────────────────────────────────────── */
#screen-my-docs { background: var(--bg2); }
#screen-my-docs .page-header { background: var(--bg); }

/* ── My apps section ──────────────────────────────────────────────────────── */
.my-apps { padding: 8px 16px 24px; }
.my-apps h3 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.5px; margin-bottom: 10px; color: var(--text2); text-transform: uppercase; }
.app-item {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; font-size: 0.88rem;
}
.app-item .app-type { font-weight: 800; }
.app-item .app-date { color: var(--text3); font-size: 0.8rem; margin-top: 2px; font-weight: 700; }
.app-item-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.btn-del-app {
  background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: 0.5;
  padding: 4px 6px; border-radius: 6px; transition: opacity .2s, background .2s; flex-shrink: 0;
}
.btn-del-app:hover { opacity: 1; background: rgba(220,50,50,.1); }
.app-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  padding: 1px 7px; border-radius: 10px; vertical-align: middle; margin-left: 4px;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-ok      { background: #d1eddc; color: #1a6b3a; }
.badge-err     { background: #fde8e8; color: #922; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Vacation form wrap ─────────────────────────────────────────────────── */
#my-vac-form { background: #fff; border-radius: 14px; padding: 16px; border: 1.5px solid var(--border); }

/* Vacancy candidate status */
.choice-item-vac { border-color: var(--teal-border) !important; background: var(--teal-light) !important; }
.choice-item-vac span { font-weight: 800; color: var(--teal-dark); }

/* Vacation form balance info */
.vf-calc-block { margin-bottom: 16px; }
#vf-balance-info {
  background: var(--teal-light); border: 1px solid var(--teal-border);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px;
  font-weight: 700; color: var(--teal-dark); margin-bottom: 12px; line-height: 1.6;
}
#vf-balance-info:empty { display: none; }
#vf-end-preview { margin-top: 8px; padding: 9px 12px; background: var(--bg2); border-radius: 8px; font-size: 14px; font-weight: 700; }

/* Screen backgrounds */
#screen-my-vacation,
#screen-my-application { background: var(--bg2); }
#screen-my-vacation .page-header,
#screen-my-application .page-header { background: #fff; }
