.kaif-pdf-fab {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 2147483000;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #cb6015;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(43, 24, 8, 0.28);
}
.kaif-pdf-fab:hover {
  background: #b6520e;
}

.kaif-pdf-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(20, 12, 6, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.kaif-pdf-modal {
  width: min(420px, 100%);
  max-height: min(600px, 90vh);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(20, 12, 6, 0.35);
  font-family: inherit;
}

.kaif-pdf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee2d8;
}
.kaif-pdf-modal-head h2 {
  margin: 0;
  font-size: 15px;
  color: #2f1d13;
}
.kaif-pdf-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #8f3f08;
  cursor: pointer;
}

.kaif-pdf-form {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kaif-pdf-row {
  display: flex;
  gap: 10px;
}
.kaif-pdf-row label,
.kaif-pdf-branch {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #4a3626;
}
.kaif-pdf-form input[type="date"],
.kaif-pdf-form select {
  height: 38px;
  border: 1px solid #dfd2c7;
  border-radius: 8px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 12px;
}

.kaif-pdf-types {
  border: 1px solid #eee2d8;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kaif-pdf-types legend {
  font-size: 11px;
  color: #8f3f08;
  padding: 0 4px;
}
.kaif-pdf-types label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #2f1d13;
}
.kaif-pdf-all {
  border-bottom: 1px dashed #eee2d8;
  padding-bottom: 8px;
  font-weight: bold;
}

.kaif-pdf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.kaif-pdf-cancel,
.kaif-pdf-submit {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.kaif-pdf-cancel {
  border: 1px solid #dfd2c7;
  background: #fff;
  color: #4a3626;
}
.kaif-pdf-submit {
  border: 0;
  background: #cb6015;
  color: #fff;
}
.kaif-pdf-submit:hover {
  background: #b6520e;
}

@media (prefers-color-scheme: dark) {
  html.kaif-dark .kaif-pdf-modal {
    background: #1f1712;
  }
  html.kaif-dark .kaif-pdf-modal-head {
    border-color: #3a2c20;
  }
  html.kaif-dark .kaif-pdf-modal-head h2 {
    color: #f3e6da;
  }
  html.kaif-dark .kaif-pdf-row label,
  html.kaif-dark .kaif-pdf-branch,
  html.kaif-dark .kaif-pdf-types label {
    color: #e7d8c9;
  }
  html.kaif-dark .kaif-pdf-form input[type="date"],
  html.kaif-dark .kaif-pdf-form select {
    background: #2a1f17;
    border-color: #4a3626;
    color: #f3e6da;
  }
  html.kaif-dark .kaif-pdf-types {
    border-color: #3a2c20;
  }
  html.kaif-dark .kaif-pdf-cancel {
    background: #2a1f17;
    border-color: #4a3626;
    color: #e7d8c9;
  }
}
