/* Cash Out Calculator - Email Stylesheet */

/* Base styles */
.cash-out {
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #2d3748;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.cash-out * {
  box-sizing: border-box;
}

/* Main header */
.cash-out > .card-header {
  background-color: #2b6cb0;
  border-bottom: none;
  padding: 16px 20px;
  text-align: center;
}

.cash-out > .card-header h3,
.cash-out > .card-header .fw-bold {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.cash-out > .card-body {
  padding: 20px;
}

/* Section cards */
.cash-out .card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
}

.cash-out .card .card-header {
  background-color: #edf2f7;
  border-bottom: 2px solid #e2e8f0;
  padding: 10px 16px;
  text-align: center;
}

.cash-out .card .card-header h5 {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cash-out .card .card-body {
  padding: 16px;
}

/* Input values displayed as text in email */
.cash-out .readonly-value,
.cash-out .email-value {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  padding: 8px 12px;
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  display: block;
  width: 100%;
}

/* Tables */
.cash-out .table-responsive {
  width: 100%;
}

.cash-out table.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.cash-out table.table thead th {
  background-color: #1a365d;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 12px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
}

.cash-out table.table thead th strong {
  color: #ffffff;
  font-weight: 600;
}

.cash-out table.table tbody td {
  padding: 10px 16px;
  font-size: 13px;
  color: #2d3748;
  border-bottom: 1px solid #f0f4f8;
  text-align: left;
}

.cash-out table.table tbody th {
  background-color: #f7fafc;
  border-right: 1px solid #e2e8f0;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 12px;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.cash-out table.table tr:last-child td,
.cash-out table.table tr:last-child th {
  border-bottom: none;
}

/* Alert boxes */
.cash-out .alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.cash-out .alert-success {
  background-color: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #276749;
}

.cash-out .alert-info {
  background-color: #ebf8ff;
  border: 1px solid #bee3f8;
  color: #2b6cb0;
}

.cash-out .alert-warning {
  background-color: #fffaf0;
  border: 1px solid #fefcbf;
  color: #975a16;
}

/* Form labels in email */
.cash-out .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 4px;
}

.cash-out .form-text {
  font-size: 12px;
  color: #a0aec0;
  margin-top: 4px;
}

/* Housing Calculator rows */
.cash-out .housing-calculator {
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background-color: #ffffff;
}

.cash-out .housing-calculator .calculator-header {
  display: none;
}

.cash-out .calculator-row {
  display: flex;
  border-bottom: 1px solid #f0f4f8;
}

.cash-out .calculator-row:last-child {
  border-bottom: none;
}

.cash-out .calculator-row .row-label {
  width: 45%;
  background-color: #f7fafc;
  border-right: 1px solid #e2e8f0;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 12px;
  color: #4a5568;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cash-out .calculator-row .row-value {
  width: 55%;
  padding: 8px 12px;
  display: flex;
  align-items: center;
}

.cash-out .total-row {
  background-color: #edf2f7;
  border-top: 2px solid #e2e8f0;
}

.cash-out .total-row .row-label {
  background-color: #e2e8f0;
  font-weight: 700;
  color: #1a365d;
}

.cash-out .total-row .readonly-value {
  font-weight: 700;
  color: #1a365d;
  font-size: 14px;
}

/* Layout */
.cash-out .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.cash-out .col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 8px;
}

.cash-out .col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 8px;
}

/* Text styling */
.cash-out .fw-bold {
  font-weight: 700;
}

.cash-out .text-success {
  color: #276749;
}

.cash-out .text-end {
  text-align: right;
}

.cash-out .text-muted {
  color: #a0aec0;
}

.cash-out .text-center {
  text-align: center;
}

.cash-out .d-block {
  display: block;
}

/* Spacing */
.cash-out .mb-3 {
  margin-bottom: 16px;
}

.cash-out .mt-3 {
  margin-top: 16px;
}

.cash-out .mb-0 {
  margin-bottom: 0;
}

.cash-out .p-3 {
  padding: 16px;
}

.cash-out .p-0 {
  padding: 0;
}

.cash-out .py-2 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.cash-out .ps-3 {
  padding-left: 16px;
}

.cash-out .px-3 {
  padding-left: 16px;
  padding-right: 16px;
}

.cash-out .me-2 {
  margin-right: 8px;
}

.cash-out .shadow-sm {
  box-shadow: none;
}

.cash-out .bg-light {
  background-color: #f7fafc;
}

.cash-out .border-bottom {
  border-bottom: 1px solid #e2e8f0;
}

.cash-out .border {
  border: 1px solid #e2e8f0;
}

/* Hide Font Awesome icons in email (they won't render) */
.cash-out .fas,
.cash-out .fa-solid,
.cash-out [class^="fa-"] {
  display: none;
}
