/* Minimalistyczny styl administracyjny: czarny tekst, biale tlo, zero zaokraglen, zero bajerow */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace, sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.5;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #000000;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

h1 {
  font-size: 20px;
  font-weight: bold;
}

h2 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  border-bottom: 1px solid #000000;
  padding-bottom: 4px;
}

.section {
  border: 1px solid #000000;
  padding: 16px;
  margin-bottom: 20px;
  background: #ffffff;
}

.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

label {
  font-weight: bold;
  font-size: 13px;
}

.input {
  border: 1px solid #000000;
  padding: 8px;
  font-size: 14px;
  background: #ffffff;
  color: #000000;
}

.input:focus {
  outline: 2px solid #000000;
}

.btn {
  display: inline-block;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #000000;
  color: #ffffff;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: #e2e8f0 !important;
  color: #718096 !important;
  border-color: #cbd5e0 !important;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background: #333333;
}

.btn-danger {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
}

.btn-danger:hover {
  background: #000000;
  color: #ffffff;
}

.drop-zone {
  border: 2px dashed #000000;
  padding: 30px;
  text-align: center;
  margin-bottom: 10px;
  background: #fafafa;
}

.upload-allowed-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #222222;
  font-weight: bold;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th, .table td {
  border: 1px solid #000000;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
}

.table th {
  background: #f0f0f0;
  font-weight: bold;
}

.button-row {
  display: flex;
  gap: 15px;
}

.status-banner {
  border: 1px solid #000000;
  padding: 10px;
  margin-bottom: 12px;
  background: #f0f0f0;
  font-weight: bold;
}

.error-msg {
  color: #000000;
  font-weight: bold;
  margin-top: 8px;
  font-size: 13px;
}

.info-msg {
  margin-top: 10px;
  font-size: 13px;
  font-weight: bold;
}

.queue-stats {
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: bold;
  padding: 6px 10px;
  background: #f9f9f9;
  border: 1px solid #000000;
  display: none;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.pagination-info {
  font-weight: normal;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-current {
  margin: 0 6px;
  font-weight: bold;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: normal;
}

.btn:disabled, .btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.select-input {
  border: 1px solid #000000;
  padding: 4px 8px;
  font-size: 12px;
  background: #ffffff;
  color: #000000;
}

/* Modal Podglądu Dokumentu i Mapy Podmian */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-window {
  background: #ffffff;
  border: 2px solid #000000;
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #000000;
  padding: 12px 16px;
  background: #f0f0f0;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: bold;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid #000000;
  background: #e8e8e8;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  border-right: 1px solid #000000;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  color: #000000;
}

.tab-btn:hover {
  background: #d8d8d8;
}

.tab-btn.active {
  background: #000000;
  color: #ffffff;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.doc-preview-box {
  border: 1px solid #000000;
  padding: 18px;
  background: #fafafa;
  font-size: 13px;
  line-height: 1.6;
  max-height: 550px;
  overflow-y: auto;
  word-break: break-word;
}

.doc-preview-box p {
  margin-bottom: 12px;
}

.ph-highlight {
  background: #000000;
  color: #ffffff;
  padding: 2px 6px;
  font-weight: bold;
  font-family: monospace;
  display: inline-block;
  margin: 1px;
}

.badge-tag {
  background: #000000;
  color: #ffffff;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
  margin-right: 4px;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
}

.meta-table td {
  padding: 8px 10px;
  border: 1px solid #000000;
  font-size: 13px;
}

.meta-table td.label-col {
  width: 25%;
  font-weight: bold;
  background: #f5f5f5;
}

