:root {
  --yellow-color: #E0B853;
  --blue-color: #fff;
  --light-blue: #e3f2fd;
}

body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.flag-icon {
  font-size: 1.5rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.flag-icon:hover {
  opacity: 0.7;
}

.yellow-dot {
  width: 12px;
  height: 12px;
  background-color: var(--yellow-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-upload-area,
.signature-upload-area {
  cursor: pointer;
  transition: background-color 0.3s;
}

.logo-upload-area:hover,
.signature-upload-area:hover {
  background-color: #fff3cd;
}

.logo-upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  background-color: #fff9e6;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo-placeholder {
  width: 30px;
  height: 30px;
  background-color: var(--blue-color);
  border-radius: 4px;
}

.signature-upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  background-color: #fff9e6;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  border-color: #dee2e6;
}

.table td {
  vertical-align: middle;
  border-color: #dee2e6;
}

.item-row {
  background-color: white;
}

.template-card {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background-color: white;
}

.template-card:hover {
  border-color: #adb5bd;
  transform: translateY(-2px);
}

.template-card.selected {
  border-color: #E0B853;
  background-color: #f8fff9;
}

.template-card.selected::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background-color: #E0B853;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.template-preview {
  height: auto;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.btn-warning {
  background-color: var(--yellow-color);
  border-color: var(--yellow-color);
  color: #000;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #000;
}

.nav-tabs .nav-link {
  color: #6c757d;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
  color: var(--blue-color);
  background-color: var(--yellow-color);
  border-color: var(--yellow-color);
  font-weight: 600;
}

.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.bg-outline-secondary {
  background-color: transparent;
  color: #6c757d;
  border: 1px solid #6c757d;
}

.tax-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tax-inputs input {
  flex: 1;
}

.tax-name-input {
  font-size: 0.875rem;
}

.tax-percentage-input {
  font-size: 0.875rem;
}

#logoImage,
#signatureImage {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .logo-upload-area,
  .signature-upload-area {
    padding: 1rem;
    min-height: 100px;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .template-card {
    margin-bottom: 1rem;
  }
}
