
body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/*div.card,*/
/*input,*/
button,
/*select,*/
textarea,
form,
a {
  border-radius: 0.15rem !important;
}

/*table tbody tr.highlight td {*/
/*background-color: #34495E;*/
/*background-color: #AEB6BF;
	color: #fff !important;
}*/

table tbody tr.remarks-sent td {
  background-color: red;
  color: #fff !important;
}

table tbody tr.has-target-price td {
  /*background-color: #34495E;*/
  background-color: forestgreen;
  color: #fff !important;
}

/*table.table tbody tr.highlight td small.text-muted {
	color: #fff !important;
}*/

/*table.table-sm tbody tr td input, table tbody tr td select {
	border: 0 !important;
	border-radius: 0 !important;
	width: 100%;
	line-height: 0 !important;
}*/

table tbody tr td.input-container {
  padding: 0 !important;
  height: 100%;
}

table tbody tr td select, table tbody tr td input[type='text'] {
  padding: 0 !important;
  height: 100%;
}

.bg-main {
  background-color: #002e5a !important;
  border-color: #0f447e;
  color: #fff !important;
}

.bg-main-gradient {
  background: #020024;
  background-image: linear-gradient(to right, #051937, #3a2256, #781a61, #b20253, #da292e);
  color: #fff !important;
}

.text-main {
  color: #002e5a !important;
}

.bg-accent {
  background-color: #e01e35 !important;
  border-color: #e01e35;
  color: #fff;
}

.bg-green {
  background-color: #008000 !important;
  border-color: #008000;
  color: #fff;
}

.text-green {
  color: #008000 !important;
}

.bg-grey {
  background-color: #D3D3D3 !important;
  border-color: #D3D3D3;
  color: #000;
}

.text-grey {
  color: #D3D3D3 !important;
}

.bg-grey-50 {
  background-color: #FAFAFA !important;
}

.bg-grey-100 {
  background-color: #F5F5F5 !important;
}

.border-muted {
  border-color: #78909C !important;
}

.text-accent {
  color: #e01e35 !important;
}

input.form-control[readonly] {
  background-color: #fff !important;
  opacity: 1 !important;
}

.form-control[readonly].is-invalid {
  border-color: #dc3545 !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control:focus, .form-select:focus {
  border: 2px solid #0062cc;
  box-shadow: 0 0 0 0 !important;
}

.cell {
  padding: 25px;
  /*margin: 20px;*/
  text-align: center;
}

footer hr.de-hr {
  border-top: 0;
  border-bottom: 5px solid red;
  background-color: red;
  width: 100px;
  margin-left: 0;
  opacity: 1;
}

footer a {
  /*font-size: .875em !important;*/
  color: #c4c4c4 !important;
}

.bg-main-img {
  position: relative;
  background-color: #000;
  background: url("");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden; /* Ensure content doesn't spill outside */
  z-index: 1;
}

  .bg-main-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.57); /* Adjust the opacity to darken more or less */
    z-index: -1;
  }

.text-content {
  position: relative;
  z-index: 2;
  color: white; /* Ensure the text is visible */
}

.de-bg-primary {
  background-color: #0D43A7;
  border-color: #0D43A7;
  color: #fff !important;
}

.imgContainer {
  width: 150px;
  height: 120px;
}

  .imgContainer img {
    height: 100%;
  }

.btnDisplayPDF {
  cursor: pointer;
}

ul.pagination .page-link.active {
  background-color: #e01e35 !important;
  border-color: #e01e35;
  color: #fff !important;
}

.iti {
  width: 100% !important;
}

.small {
  font-size: 14px !important;
}

.extra-small {
  font-size: 12px !important;
}

.check-custom {
  border-width: 1.5px !important;
  padding: 0.5rem !important;
}

.readonly-event {
  pointer-events: none;
  background-color: #e9ecef;
}

/* TomSelect Js customization */
.ts-control {
  display: block;
  width: 100%;
  padding: .5rem 3rem .5rem 1rem;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  border: 1px solid #dee2e6;
}

  /*.ts-control input {*/
  /*    width: 100%;*/
  /*}*/

  .ts-control:focus {
    border: 2px solid #0062cc;
    box-shadow: 0 0 0 0 !important;
  }

.nav-tabs .nav-link {
  padding-left: 12px !important;
  padding-right: 12px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  border-top-left-radius: 6px !important; /* Adjust value as needed */
  border-top-right-radius: 6px !important; /* Adjust value as needed */
  margin: 2px !important;
  font-size: 0.87rem;
  /*    background-color: #3459e6 !important;
    color: #fff !important;*/
  background-color: #fff !important;
  color: #000 !important;
  border: 0.1px solid #eee !important;
}

  .nav-tabs .nav-link.active {
    background-color: #002e5a !important;
    background: linear-gradient(-45deg, #06418e, #1572e8) !important;
    background-color: #fff !important;
    color: #fff !important;
    /*color: #1572e8 !important;
        border: 1.9px solid #1572e8 !important;
        border-bottom: 0 !important;
        box-shadow: none;*/
  }

input[readonly], input.readonly-event {
  cursor: not-allowed;
}

:root {
  --primary-brand: #2563eb; /* Modern Engineering Blue */
  --accent-brand: #f59e0b; /* Safety Amber */
  --bg-slate: #f8fafc;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --math-bg: #1e293b; /* Dark Slate for Math blocks */
}

body {
  background-color: var(--bg-slate);
  color: #334155;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Card Styling */
.calc-card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  background: #ffffff;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.calc-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 1.5rem;
}

.calc-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

  .calc-title i {
    color: var(--primary-brand);
    font-size: 1.1rem;
  }

/* Form Design */
.form-label-custom {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.form-control, .form-select {
  border: 1.5px solid #e2e8f0;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.95rem;
}

  .form-control:focus {
    border-color: var(--primary-brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }

.input-group-text {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Math & Formula Blocks */
.formula-container {
  background: var(--math-bg);
  color: #f1f5f9;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
}

  .formula-container::before {
    content: "IEEE SIZING STANDARD";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 800;
  }

.equation-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.fraction {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
}

.numerator {
  border-bottom: 1px solid #94a3b8;
  padding: 0 5px;
}

.denominator {
  padding: 0 5px;
}

.math-variable {
  color: #38bdf8;
  font-weight: 700;
}

.math-result-highlight {
  color: #4ade80;
  font-weight: 800;
}

/* Additional Info Panels */
.info-stats-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.info-stats-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.info-stats-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-brand);
  display: block;
}

/* Results Sticky Sidebar */
.sticky-results {
  position: sticky;
  top: 1rem;
}

.btn-main {
  background: var(--primary-brand);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  border-radius: 8px;
  transition: transform 0.1s;
}

  .btn-main:hover {
    transform: translateY(-1px);
    background: #1d4ed8;
    color: white;
  }

.tooltip-icon {
  color: #94a3b8;
  cursor: help;
  margin-left: 5px;
  font-size: 0.85rem;
}

#tblBatteryOptions thead th {
  background: #f8fafc;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}

/* =========================
     Battery Result (Accordion) UI - Matches Calc Theme
     ========================= */

#batteryResults .accordion-item {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #fff;
}

#batteryResults .accordion-header {
  border-bottom: 1px solid #e2e8f0;
}

#batteryResults .accordion-button {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 1rem 1.25rem;
}

  #batteryResults .accordion-button:not(.collapsed) {
    color: #0f172a;
    background: #ffffff;
    box-shadow: none;
  }

  #batteryResults .accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  }

  #batteryResults .accordion-button::after {
    opacity: 0.6;
  }

.battery-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #64748b;
}

  .battery-chip .badge {
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.55rem;
  }

.battery-section-title {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

  .battery-section-title i {
    color: var(--primary-brand);
    font-size: 1rem;
  }

.battery-meta {
  color: #64748b;
  font-size: 0.9rem;
}

.battery-image-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  place-items: center;
}

.battery-kv-table td:first-child {
  color: #0f172a;
  font-weight: 800;
  width: 42%;
}

.battery-kv-table td {
  padding: 0.65rem 0.75rem;
  border-color: #e2e8f0;
  vertical-align: top;
}

.btn-accent {
  background: var(--accent-brand);
  color: #0f172a;
  border: none;
  padding: 0.85rem 1rem;
  font-weight: 800;
  border-radius: 10px;
}

  .btn-accent:hover {
    background: #d97706;
    color: #0f172a;
    transform: translateY(-1px);
  }

.table-dark {
  background: transparent !important;
}

  .table-dark td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

.fw-800 {
  font-weight: 800;
}

/* 1. Standardize the Unit Box Width */
.input-group-text {
  min-width: 85px; /* Forces all unit boxes (KVA, VDC, etc) to same width */
  justify-content: center; /* Centers the text (KVA, %, etc) inside the box */
  font-weight: 600;
  background-color: #f8fafc;
  color: #64748b;
}

/* 2. Standardize Label Heights */
.form-label-custom {
  display: flex;
  align-items: center;
  min-height: 40px; /* Ensures row 1 and row 2 inputs stay level */
  margin-bottom: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

/* 3. Consistency for the Input Fields */
.form-control {
  border-color: #e2e8f0;
}

/* Smooth entry animation */
.anim-fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle hover for suggestions */
.transition-all {
  transition: all 0.2s ease-in-out;
}

.hover-shadow-sm:hover {
  border-color: #0d6efd !important;
  background-color: #f8fbff !important;
  transform: translateX(4px);
}

/* Add this to your CSS */
.empty-state-active #results-table-container {
  filter: grayscale(1) opacity(0.5);
  pointer-events: none;
}