/* Complete employees.css - Zoho Payroll Style - Self-contained */
* { box-sizing: border-box; }
/* Keep consistent with dashboard.css theme */
body.dash-page { line-height: 1.5; font-family: "Inter", Arial, sans-serif; background: var(--bg, #f4f6fb); color: var(--text, #1f2937); }

/* ── Employee List Header ── */
.emp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #dadce0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60,64,67,.3);
}
.emp-title-group { display: flex; align-items: center; gap: 8px; }
.emp-title { font-size: 24px; font-weight: 400; color: #1a73e8; margin: 0; }
.emp-title-btn { background: none; border: none; cursor: pointer; color: #5f6368; font-size: 18px; padding: 4px; border-radius: 50%; transition: background .2s; }
.emp-title-btn:hover { background: #f1f3f4; }
.emp-header-actions { display: flex; align-items: center; gap: 12px; }
.more-actions { position: relative; }
.actions-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(31, 38, 135, 0.15);
  padding: 6px;
  display: none;
  z-index: 999;
}
.actions-menu.open,
.more-actions.open .actions-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.more-actions:focus-within .actions-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.actions-menu button {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  border-radius: 8px;
  font-weight: 500;
  color: #1f2a44;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.actions-menu button:hover { background: #f3f6fb; }
.banner-warn { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #d93025; background: #fce8e6; border: 1px solid #fab8b6; border-radius: 8px; padding: 8px 12px; }
.banner-warn a { color: #1a73e8; font-weight: 500; text-decoration: none; }
.btn-add { display: inline-flex; align-items: center; gap: 8px; background: #1a73e8; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .2s; box-shadow: 0 1px 2px rgba(60,64,67,.3); }
.btn-add:hover { background: #1557b0; }
.btn-icon { background: #fff; border: 1px solid #dadce0; border-radius: 4px; padding: 8px 12px; cursor: pointer; color: #5f6368; font-size: 16px; transition: all .2s; box-shadow: 0 1px 2px rgba(60,64,67,.1); }
.btn-icon:hover { background: #f8f9fa; border-color: #1a73e8; color: #1a73e8; }
.btn-help { background: #4285f4; color: #fff; }
.btn-clear { background:#fff; border:1px solid #dadce0; border-radius:4px; padding:8px 12px; font-size:12px; font-weight:600; color:#5f6368; text-decoration:none; }
.btn-clear:hover { background:#f8f9fa; }

.emp-table-wrap { overflow-x: auto; margin: 20px 0; }
.bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60,64,67,.08);
}
.bulk-toolbar__left,
.bulk-toolbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bulk-dropdown {
  position: relative;
}
.bulk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.bulk-btn:hover,
.bulk-dropdown.open .bulk-btn {
  border-color: #c7d4eb;
  background: #f8fbff;
}
.bulk-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #5f6368;
}
.bulk-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(31, 38, 135, 0.15);
  padding: 6px;
  z-index: 25;
}
.bulk-menu__item {
  width: 100%;
  border: none;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  border-radius: 8px;
  color: #1f2a44;
  cursor: pointer;
  font: inherit;
}
.bulk-menu__item:hover { background: #e8f0fe; }
.bulk-selected-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f6368;
  font-size: 14px;
}
.bulk-selected-count__num {
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 700;
}
.bulk-esc {
  color: #5f6368;
  font-size: 14px;
}
.bulk-close {
  border: none;
  background: transparent;
  color: #ea4335;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.bulk-toolbar.is-hidden {
  display: none;
}
.emp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(60,64,67,.1); }
.emp-table th { text-align: left; padding: 16px 20px; font-size: 12px; font-weight: 500; color: #5f6368; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #dadce0; background: #f8f9fa; white-space: nowrap; }
.emp-table td { padding: 16px 20px; border-bottom: 1px solid #f1f3f4; vertical-align: middle; color: #202124; }
.emp-table tr:hover td { background: #f8f9fa; }
.emp-table tbody tr:last-child td { border-bottom: none; }
.emp-row { cursor: pointer; }
.emp-row td:first-child,
.emp-row a,
.emp-row input[type="checkbox"] { cursor: default; }

.emp-name-cell { display: flex; align-items: center; gap: 12px; }
.emp-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #4285f4, #34a853); color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.emp-avatar--teal { background: #c7f0f5; color: #0f4c5c; }
.emp-avatar--blue { background: #dff0ff; color: #1a73e8; }
.emp-avatar--rose { background: #fde7e3; color: #a8372d; }
.emp-name-link { color: #1a73e8; font-weight: 500; text-decoration: none; font-size: 14px; }
.emp-name-link:hover { text-decoration: underline; }
.emp-code { font-size: 11px; font-weight: 500; color: #5f6368; background: #e8f0fe; border: 1px solid #b7d6f2; border-radius: 4px; padding: 2px 8px; display: inline-block; margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 12px; border-radius: 16px; font-weight: 500; }
.badge-incomplete { background: #fef7e0; color: #f57c00; border: 1px solid #ffd54f; }
.badge-active { background: #e8f5e8; color: #137333; border: 1px solid #81c784; }
.badge-inactive { background: #f1f3f4; color: #5f6368; border: 1px solid #dadce0; }
.complete-link { color: #1a73e8; font-size: 12px; font-weight: 500; text-decoration: none; margin-left: 12px; }
.complete-link:hover { text-decoration: underline; }
.empty-state { text-align: center; padding: 80px 40px; color: #9aa0a6; }
.empty-state i { font-size: 64px; margin-bottom: 24px; opacity: .5; display: block; }
.empty-state p { font-size: 16px; margin-bottom: 24px; }

/* ── Add Employee Form ── */
.add-wrap { max-width: 900px; margin: 40px auto; padding: 0 24px 80px; }
.wizard-wrap { max-width: 940px; margin: 0 auto; padding: 26px 28px 70px; background: #fff; }
.add-title { text-align: center; font-size: 28px; font-weight: 400; color: #202124; margin-bottom: 32px; }
.step-bar { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; gap: 8px; flex-wrap: wrap; }
.step-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #5f6368; font-weight: 500; white-space: nowrap; }
.step-item.active { color: #1a73e8; }
.step-item.done { color: #202124; }
.step-item.disabled { opacity: .5; pointer-events: none; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: #f1f3f4; color: #5f6368; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; border: 2px solid #dadce0; }
.step-item.active .step-num { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.step-item.done .step-num { background: #137333; border-color: #137333; color: #fff; }
.step-num i { font-size: 14px; }
.step-line { width: 100px; height: 2px; background: #dadce0; flex-shrink: 0; }
.step-line.done { background: #81c784; }

.card { background: #fff; border: 1px solid #dadce0; border-radius: 12px; padding: 32px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(60,64,67,.1); }
.card-head { font-size: 18px; font-weight: 500; color: #202124; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #dadce0; display: flex; align-items: center; gap: 12px; }
.card-head i { color: #1a73e8; font-size: 20px; }
.card.z-basic { border: none; box-shadow: none; background: transparent; padding: 0; }
.card-sub { margin: -12px 0 20px; color: #5f6368; font-size: 13px; }
.muted { color: #9aa0a6; font-size: 13px; }
.card.disabled { opacity: .65; background: #f8f9fa; }

.frow { display: grid; gap: 20px; margin-bottom: 24px; }
.frow-3 { grid-template-columns: repeat(3, 1fr); }
.frow-2 { grid-template-columns: repeat(2, 1fr); }
.frow-1 { grid-template-columns: 1fr; }
.fgroup { display: flex; flex-direction: column; gap: 6px; }
.flabel { font-size: 14px; font-weight: 500; color: #3c4043; }
.flabel .req { color: #d93025; }
.finput { padding: 12px 16px; border: 1px solid #dadce0; border-radius: 8px; font-size: 14px; color: #202124; outline: none; transition: all .2s; background: #fff; width: 100%; }
.finput:focus { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.1); }
.finput.err { border-color: #d93025; }
select.finput { cursor: pointer; background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxTDYgNkwxMSAxaCIgc3Ryb2tlPSIjOTk5IiBzdHJva2Utd2lkdGg9IjEuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+'); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.combo-select { position: relative; }
.combo-trigger {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.combo-trigger:focus,
.combo-select.is-open .combo-trigger {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,.1);
  outline: none;
}
.combo-trigger__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  color: #202124;
}
.combo-select.is-empty .combo-trigger__text {
  color: #5f6368;
}
.combo-trigger__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #9aa0a6;
}
.combo-clear {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  visibility: hidden;
}
.combo-select.has-value .combo-clear {
  visibility: visible;
}
.combo-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(15,23,42,.14);
  padding: 10px;
}
.combo-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d9e1ee;
  border-radius: 8px;
  padding: 0 10px;
  margin-bottom: 10px;
}
.combo-search i { color: #9aa0a6; }
.combo-search input {
  width: 100%;
  border: none;
  outline: none;
  padding: 10px 0;
  font: inherit;
  color: #202124;
  background: transparent;
}
.combo-options {
  max-height: 210px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.combo-option {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #202124;
  text-align: left;
  font: inherit;
}
.combo-option:hover,
.combo-option.is-selected {
  background: #e8f0fe;
}
.combo-option i {
  color: #1a73e8;
  opacity: 0;
}
.combo-option.is-selected i {
  opacity: 1;
}
.combo-empty {
  padding: 14px 12px;
  color: #5f6368;
  font-size: 13px;
}
.combo-add {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border-top: 1px solid #edf1f7;
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
}
.combo-add:hover {
  background: #f8fbff;
  border-radius: 8px;
}
.field-hint { font-size: 12px; color: #5f6368; margin-top: 2px; }
.field-hint a { color: #1a73e8; text-decoration: none; font-weight: 500; }
.field-hint a:hover { text-decoration: underline; }
.master-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}
.master-modal.open { display: flex; }
.master-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.master-dialog {
  position: relative;
  width: 720px;
  max-width: 92vw;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
  padding: 0;
}
.master-dialog--narrow { width: 560px; }
.master-dialog--wide { width: 760px; }
.master-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.master-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #202124;
}
.master-form {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.master-textarea {
  min-height: 110px;
  resize: vertical;
}
.master-actions {
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
.vehicle-dialog {
  width: 640px;
  border-radius: 18px;
}
.vehicle-dialog .master-header {
  padding: 18px 24px 14px;
}
.vehicle-dialog .master-header h3 {
  font-size: 20px;
  font-weight: 500;
  color: #2f3136;
}
.vehicle-dialog .modal-close {
  background: #edf2f7;
  color: #6b7280;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
}
.vehicle-banner {
  background: #eaf3ff;
  color: #1f2937;
  padding: 22px 24px;
  font-size: 14px;
  line-height: 1.6;
}
.vehicle-form {
  gap: 18px;
  padding: 22px 24px 24px;
}
.vehicle-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vehicle-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vehicle-options--inline {
  flex-direction: row;
  gap: 28px;
  flex-wrap: wrap;
}
.vehicle-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #202124;
  font-size: 15px;
  cursor: pointer;
  line-height: 1.4;
}
.vehicle-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1a73e8;
}
.vehicle-form .master-actions {
  margin-top: 2px;
  padding-top: 18px;
}
.vehicle-form .btn-primary,
.vehicle-form .btn-cancel-lnk {
  min-width: 72px;
}
.fcheck { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #3c4043; margin-bottom: 20px; cursor: pointer; }
.fcheck input { margin-top: 2px; width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; accent-color: #1a73e8; }
.portal-hint { font-size: 13px; color: #5f6368; margin: 4px 0 0 28px; line-height: 1.5; }
.info-box { display: flex; gap: 12px; align-items: flex-start; background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px 20px; font-size: 14px; color: #374151; margin-top: 12px; }
.info-box i { color: #6b7280; }
.form-actions { display: flex; align-items: center; gap: 16px; padding: 24px 0 0; border-top: 1px solid #dadce0; margin-top: 16px; }
.btn-primary { background: #1a73e8; color: #fff; border: none; padding: 10px 22px; border-radius: 4px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s; font-family: inherit; box-shadow: 0 1px 2px rgba(26,115,232,.25); }
.btn-primary:hover { background: #1557b0; }
.btn-cancel-lnk { background: #fff; color: #3c4043; border: 1px solid #dadce0; padding: 10px 18px; border-radius: 4px; font-size: 14px; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; transition: all .2s; }
.btn-cancel-lnk:hover { background: #f1f3f4; border-color: #5f6368; }
.mand-note { margin-left: auto; font-size: 13px; color: #d93025; }
.mand-note span { color: #d93025; }
.alert-err { background: #fce8e6; border: 1px solid #f4b6b6; border-radius: 8px; padding: 16px 20px; margin-bottom: 24px; color: #d93025; font-size: 14px; }
.alert-err ul { margin: 8px 0 0 20px; line-height: 1.6; }
.alert-err-title { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.alert-close { background: transparent; border: none; font-size: 18px; line-height: 1; color: #d93025; cursor: pointer; }
.alert-ok { background: #e6f4ea; border: 1px solid #b2e7bb; border-radius: 8px; padding: 16px 24px; margin: 16px 24px 0; color: #137333; font-size: 14px; display: flex; align-items: center; gap: 12px; }

/* Wizard extras (Salary / Payment) */
.check-row { display:flex; align-items:center; gap:10px; font-size:14px; color:#202124; margin: 6px 0 0; }
.check-row input { width:16px; height:16px; accent-color:#1a73e8; }

/* Basic details (Zoho-ish) */
.zname-row { display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.z-director { margin-top: -6px; }
.z-info { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; border:1px solid #dadce0; color:#9aa0a6; font-size:12px; margin-left:6px; }
.preview-mail { margin-left: 8px; color:#1a73e8; font-weight:500; text-decoration:none; }
.preview-mail:hover { text-decoration: underline; }

.tool-wrap { position: relative; }
.tool-input { padding-right: 76px; }
.tool-clear { position:absolute; right: 36px; top: 50%; transform: translateY(-50%); border: none; background: transparent; color:#9aa0a6; width: 28px; height: 28px; border-radius: 50%; display:none; align-items:center; justify-content:center; cursor:pointer; }
.tool-clear:hover { background:#f1f3f4; color:#5f6368; }
.tool-caret { position:absolute; right: 14px; top: 50%; transform: translateY(-50%); color:#9aa0a6; pointer-events:none; }
.tool-caret i { font-size: 12px; }

.pay-methods { display:flex; flex-direction:column; gap: 0; margin-top: 14px; border-top: 1px solid #dadce0; }
.pay-opt { position: relative; display:grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 18px 6px; background:transparent; cursor:pointer; border-bottom: 1px solid #dadce0; }
.pay-opt:hover { background: rgba(248,249,250,.8); }
.pay-opt input[type="radio"] { position:absolute; opacity:0; pointer-events:none; }
.pay-ico { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #dadce0; display:flex; align-items:center; justify-content:center; color:#5f6368; background:#fff; }
.pay-main { display:flex; flex-direction:column; gap: 2px; min-width: 0; }
.pay-title { font-size: 14px; font-weight: 600; color:#202124; }
.pay-desc { font-size: 12px; color:#5f6368; line-height: 1.35; }
.pay-right { display:flex; align-items:center; gap: 18px; justify-content:flex-end; }
.pay-action { font-size: 12px; color:#1a73e8; font-weight: 600; white-space: nowrap; }
.pay-check { color:#c7c9cc; font-size: 22px; line-height: 1; }
.pay-opt input[type="radio"]:checked ~ .pay-ico { border-color:#1a73e8; color:#1a73e8; background:#e8f0fe; }
.pay-opt input[type="radio"]:checked ~ .pay-main .pay-title { color:#1a73e8; }
.pay-opt input[type="radio"]:checked ~ .pay-right .pay-check { color:#1a73e8; }
.pay-detail-card{display:none;margin:0 0 12px 52px;padding:18px 0 10px;border-bottom:1px solid #dadce0;}
.pay-detail-card.is-active{display:block;}
.pay-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;max-width:860px;}
.pay-detail-span{grid-column:1 / -1;}
.account-type-row{display:flex;align-items:center;gap:22px;height:48px;}
.account-type-opt{display:flex;align-items:center;gap:10px;color:#202124;font-size:14px;}
.account-type-opt input{width:16px;height:16px;accent-color:#1a73e8;}

.salary-ctc-row{display:flex;align-items:center;gap:18px;margin:12px 0 18px;}
.salary-label{font-weight:600;color:#3c4043;min-width:120px;}
.salary-ctc-input{display:flex;align-items:center;gap:8px;flex:1;}
.salary-ctc-input .currency{padding:8px 10px;border:1px solid #dadce0;border-radius:8px;background:#f8f9fa;color:#5f6368;}
.salary-ctc-input .per-year{color:#6b7280;font-size:13px;white-space:nowrap;}
.salary-table{border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;}
.salary-head,.salary-row{display:grid;grid-template-columns:2fr 2fr 1.5fr 1.5fr;gap:12px;align-items:center;padding:12px 14px;}
.salary-head{background:#f8fafc;font-size:12px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.3px;}
.salary-row{border-top:1px solid #eef2f7;}
.salary-title{font-weight:600;color:#1f2937;}
.salary-calc{display:flex;align-items:center;gap:8px;color:#6b7280;}
.salary-amount-with-action{display:flex;align-items:center;gap:8px;}
.salary-remove{border:none;background:transparent;color:#ef4444;font-size:24px;line-height:1;cursor:pointer;padding:0 4px;}
.salary-row.hidden{display:none;}
.salary-actions{position:relative;padding:12px 14px;border-top:1px solid #eef2f7;}
.salary-add-btn{border:none;background:transparent;color:#1a73e8;font-weight:600;cursor:pointer;padding:0;}
.salary-add-menu{position:absolute;left:14px;top:44px;min-width:240px;background:#fff;border:1px solid #dbe3f0;border-radius:10px;box-shadow:0 12px 28px rgba(15,23,42,.12);overflow:hidden;z-index:5;}
.salary-add-menu button{display:block;width:100%;border:none;background:#fff;text-align:left;padding:11px 14px;color:#1f2937;cursor:pointer;}
.salary-add-menu button:hover{background:#eef4ff;color:#1a73e8;}
.calc-suffix{font-size:12px;color:#6b7280;}
.finput.small{height:36px;padding:8px 10px;font-size:13px;}
.head-inline{display:flex;align-items:center;justify-content:space-between;}
.btn-edit{background:#fff;border:1px solid #dbe3f0;color:#1a73e8;padding:6px 10px;border-radius:8px;font-weight:600;}
.salary-summary{display:flex;gap:24px;margin:10px 0 16px;}
.summary-item{display:flex;flex-direction:column;gap:4px;}
.summary-label{font-size:12px;color:#6b7280;text-transform:uppercase;letter-spacing:.3px;}
.summary-value{font-size:16px;font-weight:700;color:#111827;}
.summary-table .salary-head,.summary-table .salary-row{grid-template-columns:2fr 1.5fr 1.5fr;}
.total-row{background:#f0f7ff;}
.salary-hold-table{border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;margin-top:14px;}
.salary-hold-head,.salary-hold-row{display:grid;grid-template-columns:2fr 1.3fr 1fr 1fr;gap:12px;align-items:center;padding:12px 14px;}
.salary-hold-head{background:#f8fafc;font-size:12px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.3px;}
.salary-hold-row{border-top:1px solid #eef2f7;font-size:14px;color:#1f2937;}
.salary-hold-row strong{display:block;color:#111827;}
.salary-hold-row span{display:block;font-size:12px;color:#6b7280;margin-top:2px;}
.salary-pill{
    display:inline-flex;
    align-items:center;
    padding:4px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    background:#e2e8f0;
    color:#334155;
}
.salary-pill.status-pending{background:#fef3c7;color:#92400e;}
.salary-pill.status-held{background:#fee2e2;color:#b91c1c;}
.salary-pill.status-released,
.salary-pill.status-approved{background:#dcfce7;color:#166534;}
.salary-pill.status-rejected{background:#fee2e2;color:#b91c1c;}
.salary-hold-form{margin-top:14px;display:flex;flex-direction:column;gap:14px;}
.salary-hold-textarea{min-height:92px;resize:vertical;}
.benefits-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding:12px;border:1px dashed #e5e7eb;border-radius:10px;background:#f8fafc;}
.benefit-title{font-weight:600;color:#1f2937;}
.benefit-sub{font-size:12px;color:#6b7280;margin-top:2px;}
.btn-secondary{background:#e8f0fe;color:#1a73e8;border:1px solid #cfe0ff;padding:8px 12px;border-radius:8px;font-weight:600;cursor:pointer;}
.benefits-list{margin-top:14px;display:flex;flex-direction:column;gap:10px;}
.benefit-item{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;}
.benefit-name{font-weight:600;color:#1f2937;}
.benefit-meta{font-size:12px;color:#6b7280;}
.benefit-amount{font-weight:600;color:#1a73e8;}

.benefit-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:80;}
.benefit-modal.open{display:flex;}
.benefit-backdrop{position:absolute;inset:0;background:rgba(15,23,42,0.45);}
.benefit-dialog{position:relative;background:#fff;border-radius:16px;width:640px;max-width:92vw;max-height:90vh;overflow:auto;box-shadow:0 30px 60px rgba(15,23,42,0.2);padding:0;}
.benefit-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb;}
.benefit-header h3{margin:0;font-size:18px;}
.modal-close{background:#f1f5f9;border:none;border-radius:50%;width:28px;height:28px;cursor:pointer;font-size:18px;}
.benefit-form{padding:18px 20px;display:flex;flex-direction:column;gap:14px;}
.benefit-inline{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;}

@media (max-width: 900px){
  .pay-detail-grid{grid-template-columns:1fr;}
  .pay-detail-card{margin-left:0;}
  .salary-hold-head,.salary-hold-row{grid-template-columns:1fr;}
}

.help-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:70;}
.help-modal.open{display:flex;}
.help-backdrop{position:absolute;inset:0;background:rgba(15,23,42,0.35);z-index:0;pointer-events:none;}
.help-dialog{position:relative;background:#fff;border-radius:12px;width:420px;max-width:92vw;box-shadow:0 20px 40px rgba(15,23,42,0.18);z-index:1;pointer-events:auto;}
.import-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:75;}
.import-modal.open{display:flex;}
.help-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5e7eb;}
.help-head h3{margin:0;font-size:16px;}
.help-body{padding:14px 16px;font-size:14px;color:#374151;line-height:1.5;}

.filter-drawer{position:fixed;top:0;right:0;bottom:0;width:360px;max-width:90vw;background:#fff;box-shadow:-12px 0 24px rgba(15,23,42,0.15);transform:translateX(100%);transition:transform .2s ease;z-index:65;border-left:1px solid #e5e7eb;}
.filter-drawer.open{transform:translateX(0);}
.filter-panel{height:100%;display:flex;flex-direction:column;}
.filter-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5e7eb;}
.filter-head h3{margin:0;font-size:16px;}
.filter-body{padding:12px 16px;overflow:auto;flex:1;}
.filter-search{display:flex;align-items:center;gap:8px;border:1px solid #dadce0;border-radius:10px;padding:8px 10px;margin-bottom:12px;}
.filter-search input{border:none;outline:none;width:100%;background:transparent;}
.filter-list{display:flex;flex-direction:column;gap:10px;font-size:13px;color:#374151;}
.filter-list label{display:flex;align-items:center;gap:8px;}
.filter-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #e5e7eb;}

.overview-page{max-width:1020px;}
.emp-overview-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.emp-overview-left{display:flex;align-items:center;gap:14px;}
.emp-overview-name{font-size:18px;font-weight:700;color:#111827;}
.emp-overview-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#6b7280;margin-top:4px;}
.emp-overview-meta__sub{color:#6b7280;font-size:12px;}
.emp-badge{
  display:inline-flex;
  align-items:center;
  border-radius:6px;
  padding:4px 8px;
  font-size:12px;
  font-weight:500;
  line-height:1;
  border:1px solid transparent;
}
.emp-badge--soft{background:#fff; border-color:#d9e2f3; color:#42526e;}
.emp-badge--green{background:#d1fae5; color:#047857; border-color:#b7ebd1;}
.emp-overview-actions{display:flex;align-items:center;gap:8px;}
.overview-menu-wrap{position:relative;}
.overview-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:240px;
  background:#fff;
  border:1px solid #e6ebf2;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(31,38,135,0.15);
  padding:8px;
  z-index:30;
}
.overview-menu__primary,
.overview-menu__item{
  width:100%;
  display:block;
  border:none;
  background:#fff;
  color:#1f2a44;
  text-align:left;
  padding:12px 14px;
  border-radius:8px;
  text-decoration:none;
  font:inherit;
  cursor:pointer;
}
.overview-menu__primary{
  background:#3b82f6;
  color:#fff;
  font-weight:600;
  margin-bottom:6px;
}
.overview-menu__item:hover{background:#f3f6fb;}
.overview-menu__item.danger{color:#374151;}
.overview-tabs{display:flex;gap:18px;border-bottom:1px solid #e5e7eb;margin-bottom:12px;}
.overview-tabs .tab{padding:10px 0;color:#6b7280;text-decoration:none;font-weight:600;border-bottom:2px solid transparent;}
.overview-tabs .tab.active{color:#1a73e8;border-color:#1a73e8;}
.overview-warn{background:#fff4e6;border:1px solid #fbd6b6;border-radius:8px;padding:10px 12px;color:#9a3412;font-size:13px;margin-bottom:16px;display:flex;align-items:center;gap:8px;}
.overview-warn a{color:#2563eb;font-weight:600;text-decoration:none;}
.overview-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px 18px;margin-bottom:16px;}
.overview-title{font-weight:700;margin-bottom:10px;}
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;font-size:13px;color:#1f2937;}
.overview-grid span{display:block;color:#6b7280;font-size:12px;margin-bottom:4px;}
.overview-grid > div{padding:2px 0;}
.overview-grid > div:last-child{grid-column:span 2;}
.overview-grid .enabled-text{color:#047857;font-weight:600;}
.related-empty{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:32px;}
.related-text{font-size:14px;color:#6b7280;}
.related-illus{position:relative;width:220px;height:140px;}
.illus-board{position:absolute;right:12px;top:8px;width:140px;height:96px;background:#eef2ff;border-radius:16px;box-shadow:0 8px 16px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:10px;padding:14px;}
.illus-top{height:10px;width:60%;background:#c7d2fe;border-radius:999px;}
.illus-lines span{display:block;height:8px;background:#dbeafe;border-radius:999px;margin-top:8px;}
.illus-check{width:18px;height:18px;border-radius:6px;background:#a5b4fc;margin-left:auto;}
.illus-person{position:absolute;left:10px;bottom:8px;width:54px;height:54px;border-radius:50%;background:#c7f0f5;}
.illus-person:after{content:"";position:absolute;left:10px;top:-16px;width:34px;height:34px;border-radius:50%;background:#7dd3fc;}

@media (max-width: 768px) {
  .frow-3, .frow-2 { grid-template-columns: 1fr; }
  .step-line { width: 40px; }
  .add-wrap { padding: 0 16px 60px; }
  .wizard-wrap { padding: 22px 16px 60px; }
  .emp-header { flex-direction: column; gap: 16px; padding: 20px 16px; }
  .zname-row { grid-template-columns: 1fr; }
  .pay-opt { grid-template-columns: 52px 1fr auto; padding: 18px 0; }
  .pay-action { display:none; }
  .salary-ctc-row{flex-direction:column;align-items:flex-start;}
  .salary-head,.salary-row{grid-template-columns:1fr;gap:8px;}
  .benefits-row{flex-direction:column;align-items:flex-start;}
  .benefit-inline{grid-template-columns:1fr;}
  .overview-grid{grid-template-columns:1fr;}
}

@media (max-width: 600px) {
  .emp-header-actions { flex-wrap: wrap; justify-content: flex-start; }
  .banner-warn { width: 100%; }
  .btn-add { width: 100%; justify-content: center; }
  .emp-table th, .emp-table td { padding: 12px 10px; font-size: 12px; }
  .emp-name-cell { gap: 10px; }
  .emp-avatar { width: 34px; height: 34px; font-size: 12px; }
  .alert-ok, .alert-err { margin: 12px 16px 0; }
}
