
/* ============================================================
   v60: salary add/remove buttons + native-like PWA launch screen
   ============================================================ */

/* ---------- PWA launch, как у приложения: белый экран + иконка + spinner ---------- */
.pvz-app-splash{
  position:fixed!important;
  inset:0!important;
  z-index:2147483600!important;
  display:grid!important;
  place-items:center!important;
  pointer-events:none!important;
  background:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  transition:opacity .36s ease, visibility .36s ease!important;
  animation:pvzV60SplashAutoFade 2.15s ease forwards!important;
}

.pvz-app-splash.is-hidden{
  opacity:0!important;
  visibility:hidden!important;
}

.pvz-app-splash__card{
  width:auto!important;
  min-height:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:18px!important;
  animation:pvzV60IconFloat 1.45s ease-in-out infinite alternate!important;
}

.pvz-app-splash__logo{
  width:132px!important;
  height:132px!important;
  border-radius:34px!important;
  background:url('/assets/icons/icon-512.png') center/cover no-repeat!important;
  box-shadow:none!important;
  overflow:visible!important;
}

.pvz-app-splash__logo::before,
.pvz-app-splash__logo svg,
.pvz-app-splash__title{
  display:none!important;
}

.pvz-app-splash__bar{
  width:22px!important;
  height:22px!important;
  border-radius:50%!important;
  background:transparent!important;
  border:3px solid rgba(47,107,255,.16)!important;
  border-top-color:#2f6bff!important;
  overflow:visible!important;
  animation:pvzV60Spinner .78s linear infinite!important;
}

.pvz-app-splash__bar i{
  display:none!important;
}

@keyframes pvzV60SplashAutoFade{
  0%,70%{opacity:1;visibility:visible}
  100%{opacity:0;visibility:hidden}
}

@keyframes pvzV60IconFloat{
  from{transform:translateY(4px) scale(.99)}
  to{transform:translateY(-4px) scale(1)}
}

@keyframes pvzV60Spinner{
  to{transform:rotate(360deg)}
}

/* ---------- Salary period buttons ---------- */
.salary-v5-modal--shift .salary-v5-period-choice{
  grid-column:1 / -1!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  box-sizing:border-box!important;
  margin:0!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option{
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  min-height:82px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  padding:13px 14px!important;
  border-radius:20px!important;
  border:1px solid #dbe7ff!important;
  background:#f8fbff!important;
  box-shadow:0 8px 22px rgba(47,107,255,.05)!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__icon{
  width:34px!important;
  height:34px!important;
  border-radius:12px!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  border:2px solid #cfd8e7!important;
  color:transparent!important;
  font-weight:900!important;
  font-size:20px!important;
  line-height:1!important;
  box-sizing:border-box!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__text{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__text strong{
  min-width:0!important;
  color:#172033!important;
  font-size:17px!important;
  font-weight:900!important;
  line-height:1.12!important;
  overflow-wrap:anywhere!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__text small{
  min-width:0!important;
  color:#667085!important;
  font-size:13px!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option--include:has(input:checked){
  border-color:#b9d0ff!important;
  background:#eef4ff!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option--include:has(input:checked) .salary-v5-period-choice__icon{
  background:#2f6bff!important;
  border-color:#2f6bff!important;
  color:#fff!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option--exclude{
  border-color:#ffd7d4!important;
  background:#fff7f6!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option--exclude .salary-v5-period-choice__icon{
  color:transparent!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option--exclude:has(input:checked){
  border-color:#fda29b!important;
  background:#fff0ef!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option--exclude:has(input:checked) .salary-v5-period-choice__icon{
  background:#d92d20!important;
  border-color:#d92d20!important;
  color:#fff!important;
}

/* Fallback for browsers without :has — JS toggles classes below */
.salary-v5-modal--shift .salary-v5-period-choice__option.is-checked.salary-v5-period-choice__option--include{
  border-color:#b9d0ff!important;
  background:#eef4ff!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option.is-checked.salary-v5-period-choice__option--include .salary-v5-period-choice__icon{
  background:#2f6bff!important;
  border-color:#2f6bff!important;
  color:#fff!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option.is-checked.salary-v5-period-choice__option--exclude{
  border-color:#fda29b!important;
  background:#fff0ef!important;
}

.salary-v5-modal--shift .salary-v5-period-choice__option.is-checked.salary-v5-period-choice__option--exclude .salary-v5-period-choice__icon{
  background:#d92d20!important;
  border-color:#d92d20!important;
  color:#fff!important;
}

/* Old toggle cards must not affect the new layout */
.salary-v5-modal--shift .salary-v5-period-toggle{
  display:none!important;
}

/* Ensure form fields do not move over the buttons */
.salary-v5-modal--shift .salary-v5-form-grid{
  align-items:start!important;
}

.salary-v5-modal--shift #salaryV5ShiftForm{
  padding-top:16px!important;
}

@media(max-width:860px){
  .salary-v5-modal--shift .salary-v5-period-choice{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .salary-v5-modal--shift .salary-v5-period-choice__option{
    min-height:76px!important;
    padding:12px 13px!important;
  }

  .salary-v5-modal--shift .salary-v5-period-choice__text strong{
    font-size:18px!important;
  }

  .salary-v5-modal--shift .salary-v5-period-choice__text small{
    font-size:14px!important;
  }
}
