Components and Other System Costs.container html {
  font-size: 1rem;
}

@media screen and (max-width: 1024px) and (min-width: 641px) {
  .container html {
    font-size: 0.875rem;
    font-size: calc(0.75rem + 0.25rem * ((100vw - 641px) / 383));
  }
}

@media screen and (max-width: 640px) {
  .container html {
    font-size: 0.75rem;
  }
}


.container h1,
.container h2,
.container h3 {
  color: #2c6e3c;
}

.container .system-configuration-container {
  background-color: #f0f8f1;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.container .system-size-container {
  margin: 0 auto 30px auto;
}

.container .center-label {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.container .center-input {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.container .center-input input {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}



.container .system-size-control {
  position: relative;
  align-items: center;
}

.container .center-input input#system-size {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  padding: 12px;
  padding-right: 2.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  font-weight: bold;
  color: #2c6e3c;
}

.container .size-buttons {
  display: flex;
  flex-direction: column;
  border-radius: 0 6px 6px 0;
  overflow: hidden;
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 2rem;
  z-index: 2;
  border-left: 1px solid #e0e0e0;
}

.container .size-buttons button {
  flex: 1;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background-color: #f8f8f8;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.container .size-buttons button:first-child {
  border-bottom: 1px solid #e0e0e0;
}

.container .size-buttons button:hover {
  background-color: #e0e0e0;
  color: #2c6e3c;
}


.container .battery-control {
  align-items: center;
  margin: 10px auto;
  width: 80px;
}

.container .battery-count-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.container .battery-count-value {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  padding: 12px;
  padding-right: 2.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  font-weight: bold;
  color: #2c6e3c;
}

.container .battery-buttons {
  display: flex;
  flex-direction: column;
  border-radius: 0 6px 6px 0;
  overflow: hidden;
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 2rem;
  z-index: 2;
  border-left: 1px solid #e0e0e0;
}

.container .battery-buttons button {
  flex: 1;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background-color: #f8f8f8;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.container .battery-buttons button:first-child {
  border-bottom: 1px solid #e0e0e0;
}

.container .battery-buttons button:hover {
  background-color: #e0e0e0;
  color: #2c6e3c;
}


.container .system-details {
  margin: 15px auto;
  text-align: center;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.container .actual-size-container {
  font-size: 1.1rem;
  color: #2c6e3c;
}

.container .actual-size-container .value {
  font-weight: bold;
  color: #1e4b29;
}

.container .info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: transparent;
  color: #2c6e3c;
  border: none;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  margin-left: 0;
  vertical-align: middle;
  padding: 0;
}

.container .info-button:hover {
  background-color: transparent;
  color: hwb(98 42% 20%);
}

.container .modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.container .modal-overlay.show {
  display: flex;
  opacity: 1;
}

.container .info-popup {
  display: none;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 20px 25px;
  border-radius: 8px;
  max-width: 400px;
  z-index: 1001;
  text-align: left;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.container .info-popup.show {
  display: block;
  transform: scale(1);
}

.container .info-popup .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  border-radius: 50%;
}

.container .info-popup .close-button:hover {
  background-color: #f0f0f0;
  color: #333;
}

.container .notes-list {
  margin: 0;
  padding-left: 20px;
}

.container .notes-list li {
  margin-bottom: 8px;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.4;
}

.container .slider-container {
  width: 100%;
  margin: 0 auto;
}

.container .slider-container input[type="range"] {
  width: 100%;
  margin: 10px 0;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 5px;
  background: #ddd;
  outline: none;
}

.container .slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2c6e3c;
  cursor: pointer;
}

.container .slider-container input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2c6e3c;
  cursor: pointer;
}

.container .slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.9rem;
  color: #666;
}

.container .inverters-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  justify-items: center;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}

.container .inverter-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 110px;
}

.container .inverter-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.container .battery-count-label {
  font-size: 0.5rem;
  color: #777;
  font-weight: normal;
  text-transform: uppercase;
  margin-bottom: 2px;
  text-align: center;
}

.container .chevron-up::before {
  content: "▲";
  font-size: 0.8rem;
  line-height: 1;
}

.container .chevron-down::before {
  content: "▼";
  font-size: 0.8rem;
  line-height: 1;
}

.container .layout-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 20px;
}

.container .system-configuration-container {
  flex: 1;
}

.container .financial-container {
  flex: 1;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container .calculator {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: none;
}

.container .results {
  background-color: #f0f8f1;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input[type="number"],
.container select {
  width: 100%;
  padding: 8px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.container input[type="number"]:focus {
  border-color: #2c6e3c;
  outline: none;
  box-shadow: 0 0 5px rgba(44, 110, 60, 0.3);
}

.container #system-size {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2c6e3c;
  padding: 10px;
}

.container .radio-group {
  margin-bottom: 20px;
}

/* Styles for the proposal section expand/collapse trigger */
.container .expand-proposal-trigger {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 0; /* Remove default button margin */
  background-color: #f0f8f1; /* Match system-configuration-container background */
  color: #2c6e3c; /* Match heading text color */
  border: none; /* Removed border */
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold; /* Make text bold */
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Match container box-shadow */
}

.container .expand-proposal-trigger:hover {
  background-color: #e6f4e7; /* Slightly darker green background on hover */
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow on hover */
}

/* Specific styling for the Distributor options box */
.container .distributor-options {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px; /* Match input border-radius */
  padding: 10px 15px;
  margin-bottom: 0; /* Override default radio-group margin if needed */
}

/* Remove bottom margin from the last radio option within the distributor box */
.container .distributor-options .radio-option:last-child {
  margin-bottom: 0;
}

/* Styling for the City/State/Zip row */
.container .address-line {
  display: flex;
  gap: 10px;
  align-items: baseline; /* Align based on text baseline */
}

.container .address-line > div { /* Target the direct children divs (flex items) */
  display: flex;
  flex-direction: column; /* Stack label and input vertically */
}

.container .address-line input[type="text"],
.container .address-line select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  height: 38px; /* Explicit height for consistency */
  width: 100%; /* Ensure they fill their flex container */
}

/* Adjust select appearance slightly if needed */
.container .address-line select {
  /* Keep height and box-sizing for alignment, but allow default appearance */
}

/* Apply monospace font to inputs within proposal columns */
.container .proposal-column input,
.container .proposal-column select,
.container .proposal-column textarea {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

/* Force uppercase for specific proposal inputs */
#customer-name,
#customer-address,
#customer-city,
#partner-name,
#partner-address,
#partner-city {
  text-transform: uppercase;
}

/* Style for the proposal section close button */
.container .close-proposal-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px; /* Make X larger */
  line-height: 1;
  padding: 0 5px; /* Add some padding */
  cursor: pointer;
  color: #666;
  border-radius: 50%;
}

.container .close-proposal-button:hover {
  background-color: #f0f0f0;
  color: #333;
}


.container .radio-group span {
  display: block;
  margin-bottom: 0; /* Changed from 8px */
  font-weight: bold;
}

.container .radio-option {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}

.container .radio-option input[type="radio"] {
  width: auto;
  margin-right: 10px;
  margin-bottom: 0;
}

.container .radio-option label {
  display: inline;
  margin-bottom: 0;
  font-weight: normal;
}

.container button {
  background-color: #2c6e3c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.container button:hover {
  background-color: #1e4b29;
}

.container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

.container .results table th,
.container .results table td,
.container .financial-container table th,
.container .financial-container table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.container .results table th,
.container .financial-container table th {
  background-color: #2c6e3c;
  color: white;
}

.container tr:nth-child(even) {
  background-color: #f2f2f2;
}

.container .component-breakdown {
  margin-top: 0;
}

.container .flex-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.container .flex-item {
  flex: 1;
  min-width: 45%;
  margin-right: 20px;
  margin-bottom: 20px;
}

.container .flex-item:last-child {
  margin-right: 0;
}

.container .floating-notes {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 300px;
  background-color: #e8f4fc;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 100;
  font-size: 0.85rem;
}

.container .notes-list {
  margin: 0;
  padding-left: 20px;
}

.container .notes-list li {
  margin-bottom: 5px;
}

.container .calculator-section {
  background-color: #f5f9f6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.container .finance-table {
  width: 100%;
  margin-top: 10px;
}

.container .finance-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
}

.container .finance-table td:last-child {
  text-align: right;
  font-weight: bold;
  color: #2c6e3c;
}

.container #insurance-row,
.container #insurance-item-row,
.container #inspection-row {
  background-color: #fff8e1;
}

.container .text-left {
  text-align: left;
}

.container .text-center {
  text-align: center;
}

.container .text-right {
  text-align: right;
}

.container .battery-capacity {
  font-size: 1.25rem;
}

.container .financial-section {
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.container .financial-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.container .financial-section h3 {
  font-size: 1.1rem;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #2c6e3c;
  text-align: left;
}

.container .component-breakdown th:nth-child(1),
.container .component-breakdown td:nth-child(1) {
  text-align: left;
  border-left: 1px solid #dadce0; /* Added left border to match right border */
}

.container .component-breakdown th:nth-child(2),
.container .component-breakdown td:nth-child(2) {
  text-align: center;
}

.container .component-breakdown th:nth-child(3),
.container .component-breakdown td:nth-child(3),
.container .component-breakdown th:nth-child(4),
.component-breakdown td:nth-child(4) {
  text-align: right !important;
}

@media screen and (max-width: 640px) {

  .container .layout-row {
    flex-direction: column;
  }

  .container body {
    padding: 10px;
  }

  .container .inverters-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
  }

  .container .inverter-card {
    width: auto;
  }

  .container .component-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
    cursor: pointer;
  }

  .container .component-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
  }

  .container .component-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    text-align: center;
  }

  .container .component-modal.show {
    display: flex;
  }

  .container th,
  .container td {
    padding: 6px 4px;
  }
}

.container .component-name {
  position: relative;
  cursor: pointer;
}

.container .component-name[data-truncated="true"]:hover::after {
  content: attr(data-full-name);
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 1000;
  width: max-content;
  max-width: 300px;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-break: break-word;
}

.container .component-name[data-truncated="true"]:hover::before {
  content: "";
  position: absolute;
  left: 10px;
  top: calc(100% - 5px);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #333 transparent;
  z-index: 1001;

}

.container [title] {
  position: relative;
  cursor: pointer;
}
