/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Dec 18 2025 | 01:03:44 */
/* Premium Scorecard Allocation Calculator Styles */

/* Calculator Button */
.allocation-calculator-button {
    order: 1;
    flex-grow: 1;
    max-width: 250px;
    min-width: 180px;
    margin-left: 8px;
    border-radius: 4px;
    border: 1px solid rgb(170 170 170);
}


/* Modal Overlay */
.calculator-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
}

/* Modal Content */
.calculator-modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 900px !important;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.calculator-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.calculator-modal-close:hover {
  background: #f0f0f0;
  transform: rotate(90deg);
}

/* Modal Heading */
.calculator-modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 28px;
  color: #007a33;
  text-align: center;
}

/* Introduction Text */
.calculator-intro {
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
  color: #333;
}

/* Capital Input Container */
.capital-input-container {
  max-width: 500px;
  margin: 0 auto 30px;
  text-align: center;
}

.capital-input-container label {
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.capital-input-container input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: 2px solid #ddd;
  border-radius: 5px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.capital-input-container input:focus {
  outline: none;
  border-color: #007a33;
}

/* Explanation Section */
.calculator-explanation {
  background: #f9f9f9;
  border-left: 4px solid #007a33;
  padding: 20px;
  margin: 30px 0;
  border-radius: 5px;
}

.calculator-explanation p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.calculator-explanation strong {
  color: #007a33;
}

.calculator-note {
  font-style: italic;
  color: #666;
}

.calculator-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 10px;
  border-radius: 3px;
  color: #856404;
}

.calculator-warning strong {
  color: #856404;
}

/* Allocations Table Container */
.allocations-table-container {
  margin-top: 30px;
  overflow-x: auto;
}

/* Allocations Table */
.allocations-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background: #fff;
}

.allocations-table thead {
  background: #007a33;
  color: #fff;
}

.allocations-table th {
  padding: 15px 10px;
  text-align: left;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.allocations-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.allocations-table tbody tr:hover {
  background: #f5f5f5;
}

.allocations-table tbody tr.cash-row {
  background: #f0f8f4;
  font-weight: bold;
}

.allocations-table tbody tr.cash-row:hover {
  background: #e8f5ee;
}

.allocations-table td {
  padding: 12px 10px;
  font-size: 14px;
  color: #333;
}

.allocations-table .ticker-cell {
  font-family: monospace;
  color: #007a33;
  width: 80px;
}

.allocations-table .company-cell {
  width: auto;
}

.allocations-table .allocation-cell {
  text-align: center;
  width: 100px;
  font-weight: bold;
}

.allocations-table .investment-cell {
  text-align: right;
  width: 150px;
  font-weight: bold;
  color: #007a33;
  font-size: 15px;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  .calculator-modal-content {
    padding: 30px 20px;
    max-height: 95vh;
  }

  .calculator-modal-content h2 {
    font-size: 24px;
  }

  .calculator-intro {
    font-size: 14px;
  }

  .capital-input-container label {
    font-size: 16px;
  }

  .capital-input-container input {
    font-size: 16px;
    padding: 12px;
  }

  .calculator-explanation {
    padding: 15px;
  }

  .calculator-explanation p {
    font-size: 13px;
  }

  .allocations-table th,
  .allocations-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .allocations-table .ticker-cell {
    width: 60px;
  }

  .allocations-table .allocation-cell {
    width: 80px;
  }

  .allocations-table .investment-cell {
    width: 120px;
  }
}

@media only screen and (max-width: 600px) {
  .allocation-calculator-button {
    max-width: 100%;
    font-size: 14px;
    padding: 12px 20px;
  }

  .calculator-modal-overlay {
    padding: 10px;
  }

  .calculator-modal-content {
    padding: 25px 15px;
    border-radius: 5px;
  }

  .calculator-modal-close {
    width: 30px;
    height: 30px;
    font-size: 18px;
    top: 10px;
    right: 10px;
  }

  .calculator-modal-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .calculator-intro {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .capital-input-container {
    margin-bottom: 20px;
  }

  .capital-input-container label {
    font-size: 14px;
  }

  .capital-input-container input {
    font-size: 14px;
    padding: 10px;
  }

  .calculator-explanation {
    padding: 12px;
    margin: 20px 0;
  }

  .calculator-explanation p {
    font-size: 12px;
    margin: 8px 0;
  }

  .allocations-table {
    font-size: 11px;
  }

  .allocations-table th {
    padding: 10px 5px;
    font-size: 11px;
  }

  .allocations-table td {
    padding: 8px 5px;
    font-size: 11px;
  }

  .allocations-table .ticker-cell {
    width: 50px;
  }

  .allocations-table .company-cell {
    font-size: 10px;
  }

  .allocations-table .allocation-cell {
    width: 60px;
  }

  .allocations-table .investment-cell {
    width: 90px;
    font-size: 12px;
  }
}

/* Print Styles */
@media print {
  .allocation-calculator-button {
    display: none;
  }

  .calculator-modal-overlay {
    position: relative;
    background: #fff;
    padding: 0;
  }

  .calculator-modal-content {
    max-height: none;
    box-shadow: none;
    padding: 20px;
  }

  .calculator-modal-close {
    display: none;
  }

  .allocations-table tbody tr:hover {
    background: transparent;
  }
}
