.invoice-generator-tool {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.invoice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Thin Scrollbar for form editor column */
.thin-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.thin-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.thin-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.thin-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

/* Strict Input Alignment & Standardization */
.inv-input {
  width: 100%;
  box-sizing: border-box;
  height: 2.25rem; /* 36px uniform height for all inputs, selects, dates */
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.25rem;
  vertical-align: middle;
  transition: border-color 0.2s;
}

textarea.inv-input {
  height: auto;
  min-height: 3.75rem;
  line-height: 1.4;
}

select.inv-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3Cpolyline points='6 9 12 15 18 9'%3e%3C/polyline%3e%3C/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.875rem;
  padding-right: 2rem;
}

input[type="date"].inv-input {
  appearance: none;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.inv-input:focus {
  outline: none;
  border-color: var(--accent);
}

.tool-action-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.tool-action-btn:hover {
  background: var(--border);
  color: var(--text);
}

.tool-primary-btn {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.tool-primary-btn:hover {
  opacity: 0.9;
}

.invoice-sheet {
  background: #ffffff;
  color: #111827;
  font-size: 0.8rem;
}

@media print {
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header, footer, nav, .invoice-toolbar, .xl\:col-span-6:first-child, #post-op-ad {
    display: none !important;
  }

  #tool-container {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .invoice-generator-tool {
    display: block !important;
  }

  #invoice-preview-sheet {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1cm !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
}
