/* START OF FILE quote_generator.css */
.quote-generator-body {
  font-family: Arial, sans-serif;
  margin-top: 50px;
  background-color: #f0f2f5;
  user-select: none;
  -webkit-user-select: none;
  color: #333;
  display: flex;
}
.main-container {
  max-width: 1600px;
  /*margin: 0 auto;*/
  margin: 20;
  max-width: 850px;
}
h1, h2 {
  color: #333;
  text-align: center;
}
.app-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: fit-content;
}
.controls-panel {
  flex: 1;
  padding-left: 10px;
  padding-right: 10px;
  min-width: 450px;
  max-width: 600px;
  background-color: white;
}
#preview-panel-container {
  flex: 2;
  min-width: 800px;
  max-width: 850px;
}
#preview-panel {
  --theme-color: #0c6a87; /* Default theme color */
  background-color: white;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
  width: 100%;
  max-width: 794px;
  box-sizing: border-box;
  margin: 0 auto;
}
.control-group {
  margin-bottom: 20px;
}
.control-group h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.control-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9em;
}
.control-group input, .control-group textarea, .control-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
input[type="color"] {
  padding: 0;
  height: 40px;
  width: 40px;
  margin-bottom: 10px;
}
.date-input-container {
  position: relative;
  width: 100%;
}
#quoteDateDisplay {
  width: 100%;
  cursor: pointer;
}
.date-input-container::after {
  content: '📅';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
#quoteDateValue {
  display: none;
}
.control-group textarea {
  min-height: 80px;
  resize: vertical;
}
.line-item {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  padding: 10px;
  border-radius: 4px;
  flex-wrap: wrap;
}
.line-item .item-desc {
  flex-grow: 4;
  min-width: 200px;
}
.line-item .item-qty, .line-item .item-price, .line-item .item-discount {
  flex-grow: 1;
  min-width: 80px;
}
.line-item .remove-btn {
  padding: 10px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  height: 40px;
}
.action-buttons {
  text-align: center;
  margin-top: 20px;
}
.qg-button {
  padding: 12px 20px;
  font-size: 1.1em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}
.qg-button:hover:not(:disabled) {
  background-color: #0056b3;
}
.qg-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.qg-button.generate-btn {
  background-color: #28a745;
}
.qg-button.generate-btn:hover:not(:disabled) {
  background-color: #218838;
}
#preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
#preview-company-logo {
  max-width: 100px;
  max-height: 100px;
}
#preview-company-details, #preview-company-contacts {
  font-size: 12px;
  line-height: 1.5;
}
#preview-company-contacts {
  text-align: right;
}
#preview-company-contacts div {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 5px;
}
#preview-company-contacts svg {
  width: 14px;
  height: 14px;
/*  margin-right: 8px;*/
  fill: currentColor;
}
#preview-company-contacts a {
  text-decoration: none;
  color: inherit;
}
#preview-title-bar {
  background-color: var(--theme-color);
  color: white;
  padding: 10px 20px;
  text-align: center;
  margin: 20px 0;
  border-radius: 5px;
}
.preview-section h3 {
  color: var(--theme-color);
  border-bottom: 2px solid var(--theme-color);
  font-size: 1.2em;
  padding-bottom: 5px;
  margin-bottom: 15px;
}
#preview-title-bar h2 {
  margin: 0;
  color: white;
  font-size: 1.5em;
}
#preview-client-info {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 5px;
  font-size: 14px;
}
#preview-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}
#preview-items-table th, #preview-items-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}
#preview-items-table th {
  background-color: #f2f2f2;
}
#preview-items-table td.price {
  text-align: right;
  vertical-align: top;
}
#preview-items-table .discount-info {
  font-size: 0.85em;
  color: #28a745;
}
#preview-items-table del {
  color: #dc3545;
}
#preview-total {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
#preview-total-box {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  width: 280px;
  font-size: 14px;
}
.total-line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}
.total-line.final-total {
  font-weight: bold;
  font-size: 1.2em;
  border-top: 2px solid #333;
  margin-top: 5px;
  padding-top: 10px;
}
#preview-payment {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
}
#preview-payment > div {
  flex: 1;
  font-size: 12px;
}
#preview-signatures {
  display: flex;
  justify-content: center;
  text-align: center;
  page-break-inside: avoid;
  margin-top: 80px;
}
.signature-block {
  width: 60%;
}
.signature-line {
  border-top: 1px solid #333;
  padding-top: 8px;
  margin-top: 40px;
  font-size: 14px;
}
.signature-image {
  max-height: 100px;
  display: block;
  margin: -20px auto 0;
}

#previewTitle {
  margin-top: 25px;
}

#preview-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 10px;
  color: #666;
  page-break-inside: avoid;
  white-space: pre-wrap;
  margin-top: 50px;
}
#descriptionHeader, #descriptionHeader ~ td:not(.price) {
  text-align: left;
}
#priceHeader, #priceHeader ~ td.price {
  text-align: right;
}

@media (max-width: 600px) {
  #app-layout { flex-direction: column; align-items: center; }
  #controls-panel, #preview-panel-container { min-width: 100%; max-width: 100%; width: 100%; }
  #preview-panel-container { overflow-x: auto; }
  #preview-panel { min-width: 794px; margin: 5; padding: 20px; box-shadow: none; border: 1px solid #ddd; }
  #main-container { padding: 5px; }
}
/* END OF FILE quote_generator.css */
