

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: DM+Sans;
  font-size:13px;
}

:root{
  --primary: #d00808;
  --secondary: #bf1010;
  --third: #750505;
  --fourth: #5a0404;
  --dark: #232f3e;
  --light: #f8f9fa;
  --medium: #d5dbdb;
  --primary-light: #ffeeee;

}

body{
  background: linear-gradient(to bottom, #ffdada, #ffebeb, #ffffff,  #ffffff);
  background-attachment: fixed;
  background-size: cover;
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  max-width: 1500px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.bg-white{
  background-color: #fff !important;
}

.bg-primary-color{
  background-color: var(--primary) !important;
}

  .bg-light-color{
  background-color: var(--primary-light) !important;
}

.bg-primary-color .text-muted{
  color: #ffffffa7 !important;
}

.btn-outline-primary{
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.text-primary-color{
  color: var(--primary) !important;
}

.hover-bg-light:hover{
  background-color: var(--primary-light) !important;
}


/* ── Top utility bar ── */
.kts-topbar {
  background: #232f3e;
  /* AWS dark navy */
  height: 38px;
  gap: 4px;
}

.btn-primary{
  background-color: #d00808 !important;
  border-color: #d00808 !important;
}

.text-red{
  color: #ff5b5b !important;
}

.text-right{
  text-align: right !important;
}

.kts-topbar-link {
  color: #d5dbdb;
  font-size: 13px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s, background .15s;
}

.kts-topbar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.kts-topbar-link.dropdown-toggle::after {
  border-top-color: #d5dbdb;
}

.bg-breadcrumb{
  background: #750505;
}

.kts-topbar-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: .75;
}

.kts-user-menu {
  min-width: 200px;
}

/* ── Main white navbar ── */
.kts-mainbar {
  background: #fff;
  border-bottom: 1px solid #b0b0b0;
  padding: 0 0;
  min-height: 56px;
}

.kts-brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.kts-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f1111;
  letter-spacing: -.2px;
}

.kts-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #0f1111 !important;
  padding: 8px 14px !important;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background .15s;
}

.kts-nav-link:hover,
.kts-nav-link:focus {
  background: #f2f3f3;
}

.kts-nav-link.show {
  background: #f2f3f3;
}

.kts-nav-icon {
  width: 15px;
  height: 15px;
  opacity: .7;
}

/* Dropdown */
.kts-dropdown {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  padding: 6px 0;
  min-width: 190px;
}

.kts-dropdown .dropdown-item {
  font-size: 13.5px;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f1111;
}

.kts-dropdown .dropdown-item:hover {
  background: #f2f3f3;
}

.icon-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

table td{
  padding: 3px 6px !important;
}


table thead th{
  background-color: var(--secondary) !important;
  color:white !important;
  border: none !important;
  font-size: 14px !important;
  padding:5px 10px !important;
}

table tfoot th{
  color:var(--secondary) !important;
  border: none !important;
  font-size: 14px !important;
  padding:5px 10px !important;
  border-top: 2px solid var(--secondary) !important;
  border-bottom: 2px solid var(--secondary) !important;
}

table td{
  font-size: 12px !important;
  padding:5px 10px !important;
  position: relative;
}

table thead th:first-child{
  border-top-left-radius: 6px;
}

table thead th:last-child{
  border-top-right-radius: 6px;
}

  table tfoot th:first-child{
  border-bottom-left-radius: 6px;
}

table tfoot th:last-child{
  border-bottom-right-radius: 6px;
}

.estim-table td{
  padding:0 !important;
}

.estim-table .form-control{
  border:0 !important;
  border-radius:0 !important;
}

.options-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  padding: 6px 0;
  min-width: 190px;
}

.options-dropdown.show {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  margin-top: 5px;
  top: 0;
  right:0;
}

.pagination .page-item .page-link{
  color: var(--secondary) !important;
  padding:10px 15px !important;
}

.pagination .page-item.active .page-link{
  background-color: var(--primary) !important;
  border: none !important;
  color: var(--light) !important;
}

.nav-tabs{
  border-bottom: .5px solid #ffc8c8 !important;
}

.nav-tabs .nav-item .nav-link.active {
  color: var(--light) !important;
  background-color: var(--primary);
  border: none !important;
  border-bottom: 2px solid var(--primary) !important;
}

.nav-tabs .nav-item .nav-link{
  color: var(--secondary) !important;
  border: none !important;
}

.underline{
  border-bottom:1px solid var(--secondary) !important;

}

/* Footer */

.kts-footer {
  border-top: 1px solid #e8e8e8;
  background: #fff;
  font-size: 13px;
  position: fixed;
  bottom: 0;
  left:0 !important;
  width: 100%;
  z-index: 1050;
}

.kts-footer-link {
  color: #0066c0;
  text-decoration: none;
  font-weight: 500;
}

.kts-footer-link:hover {
  color: #004b8d;
  text-decoration: underline;
}

/* ── Reference Module Styles ── */
.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.hover-shadow:hover i {
  color: #dc3545 !important;
}

.settings-nav .nav-link {
  color: #495057;
  border-radius: 0;
  border-left: 3px solid transparent;
  padding: 10px 15px;
  margin-bottom: 5px;
  font-weight: 500;
}

.settings-nav .nav-link.active {
  background-color: #f8f9fa;
  border-left: 3px solid #dc3545;
  color: #dc3545;
}

.settings-nav .nav-link:hover:not(.active) {
  background-color: #e9ecef;
}

.document-card-img {
  height: 80px;
  object-fit: contain;
  width: 100%;
  cursor: pointer;
}

.document-card-icon {
  font-size: 80px;
  cursor: pointer;
  color: #dc3545;
}