/* ==========================================================================
   Employee Salary (List + Overview) — styles
   Load AFTER css/style.css, report-sale.css and report-monthly-profit.css
   (reuses .report-*, .export-btn*, .date-chip, .mp-total-row, etc.)
   ========================================================================== */

.es-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap; margin-bottom:16px;
}

/* ---------- search bar ---------- */
.es-search{
  position:relative; flex:1 1 280px; max-width:460px; min-width:200px;
}
.es-search-ic{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  font-size:13px; opacity:.6; pointer-events:none;
}
.es-search input{
  width:100%; box-sizing:border-box;
  padding:10px 14px 10px 36px; border-radius:10px;
  border:1px solid var(--line-strong); background:var(--card);
  font-size:13px; font-weight:600; color:var(--ink); outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.es-search input:focus{
  border-color:var(--navy-800);
  box-shadow:0 0 0 3px rgba(30,60,114,.12);
}

/* ---------- list / month tables ---------- */
.es-table{ min-width:640px; }
.es-month-table{ min-width:720px; }
.es-table th.num, .es-table td.num{ text-align:right; }
.es-row{ cursor:pointer; transition:background .12s; }
.es-row:hover{ background:rgba(30,60,114,.06); }
.es-name{ font-weight:700; white-space:nowrap; }
.es-month-table td:first-child{ font-weight:700; white-space:nowrap; }

/* ---------- detail header ---------- */
.es-back-wrap{ display:flex; align-items:center; gap:12px; min-width:0; }
.es-back-btn{
  padding:8px 14px; border-radius:8px; border:1px solid var(--line-strong);
  background:var(--card); font-size:12.5px; font-weight:700; color:var(--ink);
  cursor:pointer; white-space:nowrap;
}
.es-back-btn:hover{ background:var(--paper); }
.es-emp-info{ min-width:0; }
.es-emp-name{
  font-size:16px; font-weight:800; color:var(--ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.es-emp-meta{ font-size:12px; color:#7a8499; margin-top:2px; }

/* ---------- month detail modal ---------- */
.es-modal{
  position:fixed; inset:0; z-index:9999;
  background:rgba(15,23,42,.55);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.es-modal-card{
  width:100%; max-width:520px; max-height:82vh;
  background:var(--card); border-radius:14px; overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow:0 20px 50px rgba(0,0,0,.3);
}
.es-modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; background:var(--navy-800); color:#fff;
}
.es-modal-title{ font-size:14px; font-weight:800; }
.es-modal-close{
  background:transparent; border:0; color:#fff; font-size:16px;
  cursor:pointer; line-height:1; padding:4px 6px;
}
.es-modal-body{ padding:8px 14px; overflow:auto; flex:1; }
.es-modal-foot{
  padding:12px 18px; border-top:1px solid var(--line-strong);
  font-size:13px; text-align:right; color:var(--ink);
}

@media (max-width:760px){
  .es-head{ flex-direction:column; align-items:stretch; }
  .es-search{ max-width:none; }
  .es-back-wrap{ flex-wrap:wrap; }
}

/* ==========================================================================
   Absence view + absence button + month-modal absence section
   ========================================================================== */
.es-abs-btn{
  padding:8px 14px; border-radius:8px; border:1px solid #e0b34a;
  background:#fff8e6; color:#8a5a00; font-size:12.5px; font-weight:800;
  cursor:pointer; white-space:nowrap;
  transition:background .12s;
}
.es-abs-btn:hover{ background:#ffefc2; }

.es-toolbar{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:16px;
}
.es-select{
  padding:10px 14px; border-radius:10px; border:1px solid var(--line-strong);
  background:var(--card); font-size:12.5px; font-weight:700; color:var(--ink);
  min-width:180px; max-width:100%;
}
.es-abs-table{ min-width:620px; }
.es-nowrap{ white-space:nowrap; }
.es-note{ max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.es-modal-sub{
  margin:14px 0 6px; font-size:12.5px; font-weight:800; color:#8a5a00;
}
.es-modal-foot-line{ line-height:1.7; }

@media (max-width:760px){
  .es-toolbar{ flex-direction:column; align-items:stretch; }
  .es-select{ width:100%; }
  .report-actions .es-abs-btn{ flex:1; }
}