/* ================================
   PTO BALANCES ADMIN - EMPLOYEE CARDS
================================ */

#ptoBalancesSection {
  width: calc(100vw - 260px);
  min-width: 1180px;
  padding: 24px 32px;
  box-sizing: border-box;
}

.pto-admin-shell {
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  box-sizing: border-box;
}

.pto-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  border-bottom: 1px solid #dbe3ea;
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.pto-admin-header h2 {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  color: #1E2A5B;
  text-transform: uppercase;
  font-size: 30px;
}

.pto-admin-header p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 15px;
}

.pto-admin-filters {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 14px;
}

.pto-admin-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

#ptoBalanceSearch {
  width: 240px;
  height: 44px;
  margin-bottom:0;
}

#ptoBalanceYear {
  width: 110px;
  height: 44px;
  margin-bottom:0;
}

#reloadPtoBalances {
  height: 44px;
  margin: 0;
  padding: 0 20px;
  align-self: flex-end;
}

.pto-admin-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
  padding: 16px;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.pto-employee-list {
  display: grid;
  gap: 14px;
}

.pto-employee-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.pto-employee-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

#reloadPtoBalances.material-button {
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
}

.pto-employee-head h3 {
  margin: 0;
  color: #1E2A5B;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.pto-employee-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.pto-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pto-type-card {
  background: #fbfdff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}

.pto-type-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pto-type-card__top strong {
  color: #1E2A5B;
  font-size: 15px;
}

.pto-adjust-mini {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #FF4F00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pto-adjust-mini .material-icons {
  font-size: 19px;
  margin:0;
}

button .material-icons {
    margin:0;
}

.pto-adjust-mini:hover {
  background: #d94300;
  transform: scale(1.04);
}

.pto-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pto-mini-stats div {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 8px;
}

.pto-mini-stats span {
  display: block;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pto-mini-stats strong {
  color: #1E2A5B;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.pto-empty {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

/* Drawer lateral */
.pto-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 94vh;
  background: #fff;
  z-index: 3000;
  box-shadow: -14px 0 36px rgba(15, 23, 42, 0.22);
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pto-drawer.hidden {
  display: none !important;
}

.pto-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 14px;
}

.pto-drawer__head h3 {
  margin: 0;
  color: #1E2A5B;
  font-family: 'Michroma', sans-serif;
  text-transform: uppercase;
  font-size: 20px;
}

.pto-drawer__head p {
  margin: 6px 0 0;
  color: #64748b;
  font-weight: 700;
}

.pto-drawer__close {
  border: 0;
  background: #f1f5f9;
  color: #1E2A5B;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
}

.pto-drawer__current {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pto-drawer__current div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.pto-drawer__current span {
  display: block;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pto-drawer__current strong {
  color: #1E2A5B;
  font-size: 17px;
}

.pto-drawer label {
  color: #1E2A5B;
  font-weight: 700;
  margin-top: 6px;
}

.pto-drawer input,
.pto-drawer textarea {
  width: 100%;
  border: 1px solid #C1CCD1;
  border-radius: 12px;
  padding: 12px;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

.pto-drawer textarea {
  min-height: 110px;
  resize: vertical;
}

.pto-drawer__save {
  margin-top: auto;
  justify-content: center;
}

.pto-available-from {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}