/* Treasury Form Styles */

/* Secondary Bond Selector Toggle */
#secondaryBondSelector {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    max-height 0.3s ease;
  pointer-events: none;
}

#secondaryBondSelector.visible {
  max-height: 1000px;
  opacity: 1;
  pointer-events: auto;
}

/* Button Container */
/*.treasury-form-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
  z-index: 1000;
  position: relative;
  width: 100%;
}*/

/* Button Styles */
#backBtn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}

#nextBtn {
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}

#nextBtn[style*="display: block"] {
  display: flex !important;
}

#submitBtn {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: white !important;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}

#submitBtn:hover {
  background-color: #218838 !important;
  border-color: #218838 !important;
}

#submitBtn[style*="display: none"] {
  display: none !important;
}

#backBtn {
  color: #0050c6;
  border-color: #0050c6;
}

#backBtn:hover {
  background-color: rgba(0, 80, 198, 0.1);
  border-color: #0050c6;
  color: #0050c6;
}

#submitBtn {
  background-color: #0050c6;
  border-color: #0050c6;
  color: white;
}

#submitBtn:hover {
  background-color: #003d99;
  border-color: #003d99;
}

#nextBtn {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: white !important;
}

#nextBtn:hover {
  background-color: #218838 !important;
  border-color: #218838 !important;
}

/* Icon Spacing */
.treasury-form-btn-icon {
  margin-right: 0.5rem;
}

.treasury-form-btn-icon:last-child {
  margin-right: 0;
  margin-left: 0.5rem;
}
/* Bill Calculator Styling - Match Bond Calculator */
#tbillCalculator {
  background-color: #0050c6 !important;
  border: none !important;
  border-radius: 8px !important;
  color: white !important;
}

#tbillCalculator .card-body {
  padding: 1.5rem;
  background-color: #0050c6 !important;
}

#tbillCalculator h6 {
  color: white !important;
  font-weight: 600 !important;
}

#tbillCalculator .small {
  color: rgba(255, 255, 255, 0.8) !important;
}

#tbillCalculator .row > div {
  background-color: transparent !important;
}

#tbillCalculator div[id^="tbillCalc"] {
  color: white !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
}

#tbillCalcSettlement,
#tbillCalcMaturity,
#tbillCalcYield,
#tbillCalcFaceValue,
#tbillCalcTax,
#tbillCalcNet {
  color: white !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
}
/* ============================================
   TIER 1 UTILITY CLASSES - INLINE STYLES REFACTORING
   ============================================ */

/* Font Size Utilities */
.fs-7 { 
  font-size: 0.85rem; 
}

.fs-8 { 
  font-size: 0.75rem; 
}

.fw-600 { 
  font-weight: 600; 
}

/* Treasury Brand Color Utilities */
.text-primary-blue { 
  color: #0050c6; 
}

.text-info-light { 
  color: #666; 
}

.text-muted-dark { 
  color: #999; 
}

.text-dark-form { 
  color: #333; 
}

.text-success-form { 
  color: #28a745; 
}

.text-error-form { 
  color: #ff6b6b; 
}

/* Background Color Utilities */
.bg-primary-light { 
  background-color: #f8fafc; 
}

.bg-secondary-light { 
  background-color: #f8f9fa; 
}

.bg-white-form { 
  background-color: white; 
}

.bg-treasury-blue { 
  background-color: #0050c6; 
}

.bg-overlay-primary {
  background: rgba(0, 80, 198, 0.35);
}

/* Status Badge Colors - Treasury Application Status */
.badge-pending {
  background-color: #ffc107;
  color: #333;
}

.badge-approved {
  background-color: #28a745;
  color: white;
}

.badge-rejected {
  background-color: #dc3545;
  color: white;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

/* Card and Box Utilities */
.card-treasury {
  background-color: white;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 80, 198, 0.10), 0 1.5px 6px rgba(0, 0, 0, 0.04);
  padding: 0.75rem 2rem 2rem 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.card-treasury-primary {
  background-color: #0050c6;
  border: none;
  border-radius: 8px;
  color: white;
}

.card-readonly {
  background-color: #f8f9fa;
}

/* Form Input Utilities */
.input-readonly {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.input-error {
  border-color: #ff6b6b;
  background-color: #fff5f5;
}

.form-text-helper {
  color: #999;
  font-size: 0.85rem;
}

.form-text-error {
  color: #ff6b6b;
  font-size: 0.85rem;
}

.form-text-required {
  color: #ff6b6b;
  font-weight: 600;
}

/* Typography Utilities */
.text-center-form {
  text-align: center;
}

.text-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.text-title-hero {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #0050c6;
}

.text-white-muted {
  color: rgba(255, 255, 255, 0.8);
}

/* Border and Spacing Utilities */
.border-thin {
  border: 1px solid #e0e0e0;
}

.rounded-form {
  border-radius: 8px;
}

.rounded-card {
  border-radius: 18px;
}

.shadow-treasury {
  box-shadow: 0 8px 32px rgba(0, 80, 198, 0.10), 0 1.5px 6px rgba(0, 0, 0, 0.04);
}

.shadow-light {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Display and Layout Utilities */
.overlay-absolute {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.overlay-dark {
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.overlay-primary {
  background: rgba(0, 80, 198, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress Bar Utilities */
.progress-bar-treasury {
  background-color: #0050c6;
  height: 4px;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-container {
  background-color: #e9ecef;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

/* Button Utilities */
.btn-treasury-primary {
  background-color: #0050c6;
  border-color: #0050c6;
  color: white;
}

.btn-treasury-primary:hover {
  background-color: #003d99;
  border-color: #003d99;
}

.btn-treasury-outline {
  border-color: #0050c6;
  color: #0050c6;
}

.btn-treasury-outline:hover {
  background-color: #0050c6;
  color: white;
}

/* Calculator Widget Styles */
.calculator-stat {
  margin-bottom: 1.5rem;
}

.calculator-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

.calculator-stat-value {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
}

.calculator-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

/* Image and Banner Utilities */
.img-banner {
  width: 100vw;
  min-width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.banner-container {
  position: relative;
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  height: 220px;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .card-treasury {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  
  .text-title-hero {
    font-size: 1.5rem;
  }
  
  .text-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .card-treasury {
    padding: 0.75rem 1rem 1rem 1rem;
  }
  
  .calculator-stat-value {
    font-size: 1rem;
  }
}

/* ============================================
   END TIER 1 UTILITY CLASSES
   ============================================ */
