@charset "UTF-8";

body { 
  font-family: Arial, Helvetica, sans-serif; 
  font-size: 1em; 
  line-height: 1.5em; 
  margin: 0;
  padding: 0;
}

#top_bar_container { 
  width: 100%; 
  background: #00583E;
}

.top_bar { 
  max-width: 965px;
  width: 100%;
  margin: 0 auto;
  padding: 1em 0.5em; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.ndsu-logo-link {
  display: block;
}

#logo-img {
	width: 450px;
}

.ndsu-links {
  list-style: none;      
  margin: 0;
  padding: 0;
  display: flex;        
  gap: 1.5em;           
}

.ndsu-links li {
  margin: 0;
  padding: 0;
}

.ndsu-links a {
  color: #D6E4C7;           /* white font color */
  text-decoration: none;
}

.ndsu-links a:hover,
.ndsu-links a:focus {
  text-decoration: underline;
}

.panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #0a5640;
    border-bottom: 2px solid #0a5640;
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.footer {
  position: relative;
  width: 100%;
  border-top: 8px #FFC525 solid; 
  font-size: 18px;
  margin-top: 3em;
}

.footer-container {
  max-width: 965px;
  width: 100%;
  margin: 0 auto;
}

.footer-content {
  margin-top: 20px;
}

.footer-privacy {
  color: #0a5640;
  padding-bottom: 40px;
}

.footer-link {
  color: #0a5640;
  text-decoration: underline;
}

.footer-link:hover {
  color: #939598;
  text-decoration: none;
}

.image-wrapper {
  padding-top: 40px;
}

.hr-short {
  width: 30px;
  margin-left: 0;
  margin-right: auto;
}

/* Main Container */
.calc-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.calc-container h2 {
  margin: 1em 0 1em 0;
  font-size: 1.6em;
  font-weight: bold;
  color: #00583E;
}

.calc-container .subtitle {
  color: #777;
  font-size: 0.9em;
  margin-bottom: 1.5em;
}

/* Sections */
.calc-section {
  margin-bottom: 1.5em;
}

.calc-section h3 {
  margin: 0 0 0.4em 0;
  font-size: 1.1em;
  font-weight: bold;
  color: #00583E;
  border-bottom: 2px solid #00583E;
  padding-bottom: 0.3em;
}

/* Tables - shared */
.calc-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #ddd; 
  margin-bottom: 0.5em;
}

.calc-table th,
.calc-table td {
  padding: 4px 8px;
  border: 1px solid #e8e8e8;
  vertical-align: middle;
}

.calc-table thead th {
  background: #00583E;
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-size: 0.95em;
}

/* Label column */
.calc-table td.label {
  white-space: nowrap;
}

.calc-table td.input-cell input,
.calc-table td.input-cell select {
  width: 130px;
  padding: 3px 6px;
  border: 1.5px solid #c9a800;
  border-radius: 3px;
/*  background: #fffde6;*/
  font-size: 14px;
  text-align: right;
  box-sizing: border-box;
}

.calc-table td.input-cell select {
  text-align: left;
  width: 150px;
  cursor: pointer;
}

.calc-table td.input-cell date {
  width: 140px;
  text-align: left;
}

.calc-table td.input-cell input:focus,
.calc-table td.input-cell select:focus {
  border-color: #00583E;
  outline: none;
  box-shadow: 0 0 3px rgba(0, 88, 62, 0.3);
/*  background: #ffffe0; */
}

.calc-table td.val {
  text-align: right;
  white-space: nowrap;
  width: 120px;
  min-width: 100px;
}

.calc-table td.note {
  font-size: 0.92em;
  color: #666;
  font-style: italic;
  white-space: normal;
}

/* Calculated cells (blue) */
.calc-table td.formula-cell {
  background: #e8f0fe;
  text-align: right;
  font-weight: 700;
  color: #1a3e72;
  white-space: nowrap;
}

.calc-table td.negative {
  color: #cc3300;
}

.calc-table td.positive {
  color: #155724;
}

/* Indented sub-items */
.indent { padding-left: 24px !important; }

/* Summary / result rows */
tr.subtotal-row td {
  border-top: 1px solid #999;
  font-weight: bold;
}

tr.summary-row td {
  border-top: 2px solid #00583E;
  border-bottom: 2px solid #00583E;
  font-weight: bold;
}

/* Error */
.error-msg {
  color: #cc3300;
  font-weight: bold;
  font-size: 0.9em;
}

.formula-note {
  margin-top: 1em;
  padding: 0.75em 1em;
  background: #f9f9f9;
  border-left: 3px solid #00583E;
  font-size: 0.9em;
  color: #555;
}

