/* Header background */
#header {
  background: linear-gradient(135deg, #1E3A8A, #3B82F6) !important;
  color: #FFFFFF !important;
}

/* Header text */
.header .headerText {
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 16px;
}

/* Navbar links */
.header .navbar-nav > li > a {
  color: #FFFFFF !important;
}

.header .navbar-nav > li > a:hover,
.header .navbar-nav > li > a:focus {
  color: #72afd2 !important;
  text-decoration: none;
}


#headerContent,
body > .header,
.skin-blue .header,
.skin-blue .navbar {
  background: linear-gradient(135deg, #1E3A8A, #3B82F6) !important;
  color: #FFFFFF !important;
}

/* For Logo Bakcground */
.header .logo {
  background: linear-gradient(135deg, #1E3A8A) !important;
  display: inline-block;   
  padding: 5px;            
}

/* Logo image transparent  */
.header .logo img {
  background: transparent !important;
}

/* Warning row (yellow) */
table tbody tr.bg-warning td {
  background-color: #FDE68A !important;
  color: #000 !important;
}

/* Danger row (orange/red) */
table tbody tr.bg-danger td {
  /* background-color: #FCA5A5 ; */
  background: rgb(235, 93, 93)!important;
  color: #fff !important;
}

/* Hover fix so warning/danger colors stay */
table tbody tr.bg-warning:hover td,
table tbody tr.bg-danger:hover td {
  background-color: inherit !important;
}


/* Positive budget row */
tr.yellowFlag {
   background: rgb(240, 240, 149) !important;
}


/* Negative budget row */
tr.redFlag {
 background: rgb(235, 93, 93)!important;
}

/* === Team Wise Budget Table === */

/* Positive/Neutral budget row */
tr.greenFlag {
  background: rgb(155, 238, 155) !important;;
}


table thead th.sorting::after, table thead th.sorting_asc::after, table thead th.sorting_desc::after 
{ color: #FFD700 !important; 
  opacity: 1 !important; 
  margin-left: 6px; 
  font-size: 12px; }

/* Login Page CSS */
/* --------- Sparkle Header --------- */
.form-box .header {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6) !important;
    color: #ffffff !important;
    padding: 15px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}


/* --------- Login Button --------- */

#btnLogin,
.btn.bg-olive {
    
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 10px;
    transition: 0.3s ease;
    background: linear-gradient(135deg, #3B82F6, #1E3A8A) !important;
}

#btnLogin:hover,
.btn.bg-olive:hover {
    background:#3B82F6 !important;
}


.form-group {
    margin-bottom: 18px !important;
}
 /* CARDS UI */
.info-box {
  width: 220px;
  height: 145px;              /* fixed uniform height */
  display: flex;
  align-items: center;         /* vertical center */
  justify-content: flex-start; /* icon + content side by side */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 12px 16px;
  box-sizing: border-box;
  overflow: visible; 
  
}

.info-box-icon {
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  align-items: center;         /* vertical center inside box */
  justify-content: center;     /* horizontal center inside box */
  font-size: 30px;
  border-radius: 10px;
  color: #fff;
  margin-right: 12px;
  margin-top: 10px;            /* shift icon slightly down */
  background: linear-gradient(135deg, #fbfbfc, #95baf5);
}

.info-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.info-box-content {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-box-text {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;         
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;     
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.info-box-number.no-wrap {
  font-size: 22px;
  font-weight: bold;
  color: #1E3A8A;
  line-height: 1.2;
   white-space: normal;      /* allow wrapping */
  word-break: break-word;  
}

.info-box-detail {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* allow max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;       /* show ... if too long */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Apply to all DataTables export buttons */
.dt-buttons {
    margin: 0 8px 10px 0 !important; 
    
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* UI For Bars */
.sparkline {
  position: relative;
  display: block;
  text-align: center;  
}

.sparkline canvas {
  display: inline-block;
  
}
.budgetPercentLabel,
.poPercentLabel,
.overPercentLabel,
.ginPercentLabel {
  position: absolute;
  top: 50%;
  left: 25%;   
  transform: translate(-100%, -50%);
  margin-right: 6px;   
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
  /* Outside bar show */
.bar-value-large {
    position: absolute;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #222;
    pointer-events: none;
    white-space: nowrap;
}

#divAllExecutiveMRNNotRaisedCount {
    position: relative;
}

.charts-wrapper {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.chart-card {
    flex: 1;
    min-width: 180px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

/* Force both tables same layout */
#tblExceInventory1,
#tblExceInventory {
    width: 100%;
    table-layout: fixed;
}

/* Same alignment */
#tblExceInventory1 th,
#tblExceInventory1 td,
#tblExceInventory th,
#tblExceInventory td {
    text-align: center;
    vertical-align: middle;
}

/* Column Widths – MUST BE SAME FOR BOTH TABLES */

#tblExceInventory1 th:nth-child(1),
#tblExceInventory th:nth-child(1) {
    width: 18%;
    text-align: left;
}

#tblExceInventory1 th:nth-child(2),
#tblExceInventory th:nth-child(2) {
    width: 12%;
}

#tblExceInventory1 th:nth-child(3),
#tblExceInventory th:nth-child(3) {
    width: 24%;
}

#tblExceInventory1 th:nth-child(4),
#tblExceInventory th:nth-child(4) {
    width: 14%;
}

#tblExceInventory1 th:nth-child(5),
#tblExceInventory th:nth-child(5) {
    width: 14%;
}

#tblExceInventory1 th:nth-child(6),
#tblExceInventory th:nth-child(6) {
    width: 18%;
}

#tblExceInventory1 td div {
    width: 100% !important;
}

/* Topbar logo responsive */
#headerContent .logo img {
    max-width: 100%;
    height: auto;
    margin: 5px 0 5px 6%;
}

/* Financial Year text center on mobile */
@media (max-width: 768px) {
    #headerContent #financialYear {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
}

/* Navbar right icons responsive */
@media (max-width: 768px) {
    #headerContent .navbar-right {
        width: 100%;
        text-align: center;
    }
    #headerContent .navbar-right ul.nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    #headerContent .navbar-right ul.nav li {
        margin: 5px;
    }
}

#sideAreaList {
    padding: 0;
    margin: 0;
}

#sideAreaList li {
    list-style: none;          
    position: relative;
    padding-left: 0;           
    margin: 4px 0;
    line-height: 1;
    font-size: 14px;
    color: rgb(19, 19, 20);
}

/* Custom dot aligned with text */
#sideAreaList li::before {
    content: "";
    display: inline-block;
    vertical-align: middle;   
    margin-right: 6px;         
    width: 10px;
    height: 10px;
    background-color: rgb(255, 42, 0);
    border-radius: 50%;
}

.side-area-item.area-selected {
    background-color: transparent; 
    color: inherit; 
}



