@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

html,
body,
.tab-content,
.tab-pane {
  height: 100%;
  color: #000!important;
  font-size:14px;
}

li {
  list-style: none;
}

body {
  font-family: "Roboto", sans-serif;
}

.redcolor {
  color: red;
}

#tableBids {
  z-index: 1 !important;
}

#tableBids .theadHistory {
  background-color: #000 !important;
  color: #fff !important;
  z-index: 10 !important;
}

/* Monthly report sticky header - adapted for page-level scrolling */
#tableHeaderMonthly.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1051;
  background-color: #000 !important;
  color: #fff !important;
  transition: all 0.15s ease-in-out;
}

/* Mobile responsive sticky positioning */
@media (max-width: 991.98px) {
  #tableHeaderMonthly.sticky-top {
    top: 60px; /* Account for mobile navigation */
  }
}

/* Advanced sticky header for dailyintraday */
.dailyintraday-header-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #000 !important;
  color: #fff !important;
  transition: all 0.2s ease-in-out;
}

.dailyintraday-header-normal {
  position: relative;
  transition: all 0.2s ease-in-out;
}

/* Placeholder to maintain layout when header becomes fixed */
.dailyintraday-header-placeholder {
  display: none;
  background-color: transparent;
}

.dailyintraday-header-placeholder.active {
  display: table-header-group;
}

.cyancolor {
  color: #0dcaf0;
}

.whitecolor {
  color: #fff;
  background-color: #fff;
}

.logo-zone {
  border-bottom: 1px solid #fff;
}

.leftbar-link {
  color: #fff !important;
}

.btn-blue,
.btn-blue:hover {
  background-color: #ff5d4c;
  border: none;
}

.form-label {
  font-size: 14px;
  font-weight: 400;
}

table {
  font-size: 12px;
}

.body-zone {
  background-color: #f0f0f0;
}

.dateistorice-zone,
.trading-zone {
  background-color: #fff;
}

thead {
  background-color: #000 !important;
  color: #fff;
}

.table-condensed thead{
  background-color: #fff !important;
  color: #000;

}

.cyanbutton {
  background-color: #0dcaf0;
}

.tab-link {
  color: grey;
}

.at-bottom {
  position: fixed;
  bottom: 20px;
  left: 15px;
}

/* Table scrolling for newdirectaccess page - now uses page-level scrolling */
#tableArea.table-responsive {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.bigger {
  /* font-size: large; */
  text-decoration: none;
}

.bg-darker {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

#btnExportTrading,
#btnExportDis {
  color: #0d6efd;
}

#btnExportDis:hover,
#btnExportTrading:hover {
  cursor: pointer;
}

.datepicker:hover,
.profile-tab:hover {
  cursor: pointer;
}

.chartCanvas {
  width: 80%;
}

.fade-orange {
  color: lightyellow;
}

.btn-bids {
  width: 150px;
}

/* #btnSaveFields {
  margin-left: 12px !important;
} */
/* preloader */
.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 14px solid #0dcaf0;
  border-bottom: 14px solid #0dcaf0;
  width: 80px;
  height: 80px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;

  margin: auto;
  /* width: 50%; */
  /* border: 3px solid green; */
  padding: 10px;
}

#tableTrading tbody tr:last-child {
  background-color: #5b656d !important;
  color: #fff;
  font-weight: bold;
}

#tableTrading tbody tr:last-child .faultCol {
  background-color: #5b656d !important;
}

.warning-msg {
  font-size: 12px;
}

#tableHistoy {
  z-index: 1 !important;
}

#tableHistoy .theadHistory {
  background-color: #000 !important;
  color: #fff !important;
  z-index: 10 !important;
}

/* Remove borders from floating sticky header in dateistorice */
#floatingHeaderWrapperHistory table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
}

#floatingHeaderWrapperHistory th,
#floatingHeaderHistory th {
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Removed fixed height container scrolling for dateistorice page
   Now uses page-level scrolling with advanced sticky header */

/* Fix dateistorice table row margins and padding */
#tableContainerHistory.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.loginForm {
  width: 350px;
  max-width: 90vw;
}

/* Enhanced login form styles */
.loginForm .form-control {
  min-height: 44px; /* Better touch targets */
}

.loginForm .btn {
  min-height: 44px;
  font-weight: 500;
}

/* Password toggle button */
#toggle-password {
  border-left: 0;
  background: transparent;
}

#toggle-password:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Loading state */
.loginForm .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Error states */
.invalid-feedback {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid {
  border-color: #dc3545;
  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 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);
}

/* Alert improvements */
.alert {
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

/* Security info styling */
.text-muted .bi-shield-check {
  color: #28a745 !important;
}

/* Mobile responsiveness for login */
@media (max-width: 576px) {
  .loginForm {
    width: 100%;
    padding: 1rem;
  }

  .loggerContainer {
    margin-top: 2rem !important;
  }

  .loginForm .form-control,
  .loginForm .btn {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}


.col-form-label{
  width:100px
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.pageArea{
  height: 100vh;
  overflow: hidden;
}

/* Allow natural scrolling for advanced sticky header pages */
.pageArea.natural-scroll {
  height: auto;
  overflow: visible;
}

/* Fixed mobile navigation bar */
@media (max-width: 991.98px) {
  .mobile-nav-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .mobile-nav-padding {
    padding-top: 60px;
  }
}

@media (min-width: 992px) {
  .pageArea{
    padding-left: 260px;
  }

  .loggerContainer{
    margin-left: -125px;
   }
 }



 .bg-battery{
  background-image: linear-gradient(180deg,#000 0%,rgba(0,0,0,0.66) 100%),url('../img/power.jpg')!important;
  background-position: center;
 }


 .table-container {
  max-height: 50vh;
  overflow-y: auto;
}

.btn-hover-shadow:hover {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.input-group-text {
  background-color: transparent;
  border: none;
}

.smallText{
  font-size: 14px!important;
}

.updateAuctionId{
  width: 100px!important;
}


.pointerTd{
  cursor: pointer;
}


.codePad{
  background-color: #000;
  color:#fff;
}

.negativeTop{
  margin-top: -20px;
}


/* loader sstyles */

#loader {

  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: -260px;

}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide content initially */
#content {
  display: none;
}


#hiddenMonthPicker {
  position: absolute;
  z-index: 10;
  margin-top: 5px;
  background-color: white;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 5px;
  display: none;
}

.datepicker-dropdown {
  z-index: 1051 !important;
}


#monthPicker {
  position: absolute;
  z-index: 1000;
  background-color: white;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 5px;
  display: none;
  width: 300px;
  
}
#monthPicker table {
  width: 100%;
  background-color: #fff;
}

#monthPicker table tbody{
  width: 200%;
  background-color: #fff;
}

#monthPicker th, #monthPicker td {
  cursor: pointer;
  padding: 5px;
  text-align: center;
}

.font-weight-bold {
  font-weight: bold;
}

#monthPicker th:hover, #monthPicker td:hover {
  /* background-color: #f8f9fa; */
}

