/* components.css
 * Семантичні дрібні компоненти: бейджі, тости, статуси
 */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
}

.badge {
  display: inline-block;
  padding: 4px 8px 3px;
  font-size: 0.55rem;
  letter-spacing: 0.8px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-fixed {
  display: inline-block;
  margin-left: 6px;
  background: var(--danger);
  color: #fff;
  font-size: 0.55rem;
  padding: 2px 5px 3px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Green 500 guarantee badge */
.tag-min500 {
  display: inline-block;
  margin-left: 6px;
  background: #27ae60;
  color: #fff;
  font-size: 0.55rem;
  padding: 2px 6px 3px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Official salary toggle active */
#officialHighlightBtn.active {
  background: var(--panel-alt);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}
body.show-official .payroll-table tr.mark-off-salary {
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.22) 0%,
    rgba(34, 197, 94, 0.14) 35%,
    rgba(34, 197, 94, 0.08) 65%,
    rgba(34, 197, 94, 0) 100%
  );
}
body.show-official .payroll-table tr.mark-off-salary td {
  position: relative;
}
body.show-official .payroll-table tr.mark-off-salary td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #4ade80, #16a34a);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}

.toast {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 14px 18px 16px;
  border-radius: 14px;
  font-size: 0.75rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: slideIn 0.5s cubic-bezier(0.21, 1.02, 0.73, 1);
  max-width: 360px;
}
.toast.success {
  border-color: rgba(46, 204, 113, 0.4);
}
.toast.error {
  border-color: rgba(255, 77, 97, 0.5);
}
.toast button {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  padding: 4px;
  margin-left: auto;
}

/* Quick tools (export/import config) */
#quickTools {
  position: fixed;
  top: 10px; /* align with theme toggle */
  right: 60px; /* space so theme toggle stays at far right */
  z-index: 55;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
#quickTools .quick-tool-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.5);
  transition: 0.25s;
}
#quickTools .quick-tool-btn:hover {
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6);
}
#quickTools .quick-tool-btn:active {
  transform: translateY(0);
}

.inline-edit-btn {
  font-size: 0.55rem;
  padding: 4px 6px;
  margin-left: 6px;
}

/* Scroll-to-top button removed */
