.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--white);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-block;
}
.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12.5px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-save {
  background: var(--amber);
  color: var(--white);
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  transition: background 0.15s ease;
}
.btn-save:hover {
  background: var(--amber-dark);
}

.btn-view-small {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 12.5px;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.btn-view-small:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 22, 28, 0.55);
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
  backdrop-filter: blur(2px);
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: var(--white);
  border-radius: 18px;
  max-width: 960px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 20, 50, 0.25);
  overflow: hidden;
  animation: modalIn 0.25s ease;
}
.modal-box.narrow {
  max-width: 440px;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 16px;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.modal-close:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
body.modal-locked {
  overflow: hidden;
}

.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.6;
}
.banner.info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
}
.banner.warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
}
.status-pill.approved {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
}
.status-pill.pending {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid var(--warn-border);
}
.status-pill.completed {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
}
.status-pill.neutral {
  background: var(--line-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.status-pill.green {
  background: #eaf6ec;
  color: #2c7a3f;
  border: 1px solid #bfe3c6;
}

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ink);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(140%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 25px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.2s ease;
}
.switch-slider::before {
  content: "";
  position: absolute;
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.switch input:checked + .switch-slider {
  background: var(--blue);
}
.switch input:checked + .switch-slider::before {
  transform: translateX(19px);
}

.format-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.format-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  background: #eaf1fb;
  border: 1px solid #c7d9f2;
  padding: 4px 12px;
  border-radius: 999px;
}

.field-hint {
  font-weight: 400;
  text-transform: none;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: normal;
}

/* Event thumbnails (admin table + company lists) */
.event-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ivory);
  border: 1px solid var(--line);
}
.event-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.event-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.event-image-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.event-image-preview {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Styled file picker (the native input stays hidden; the button opens it) */
.file-picker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}
.file-picker input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.file-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.file-picker-btn:hover,
.file-picker-btn:focus-visible {
  background: var(--blue);
  color: var(--white);
}
.file-picker-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-picker-name.has-file {
  color: var(--ink);
  font-weight: 500;
}

/* A disabled control must look disabled. */
select:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* "1 Buat kelompok -> 2 Tempatkan perusahaan" guide on the Working Groups tab */
.groups-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.groups-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.groups-step b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.groups-step.current {
  border-color: var(--blue);
  color: var(--ink);
  font-weight: 600;
}
.groups-step.current b {
  background: var(--blue);
  color: var(--white);
}
.groups-step.done b {
  background: var(--ok-text);
  color: var(--white);
}
.groups-step-arrow {
  color: var(--ink-soft);
}
