:root {
  --sidebar-width-expanded: 240px;
  --sidebar-width-collapsed: 70px;
  --header-height: 60px;
}

/* =====================
   GLOBAL
===================== */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #f5f6fa;
}

.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

/* =====================
   SIDEBAR
===================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width-expanded);
  background: linear-gradient(180deg, #ff7b00, #ff9800);
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease;
  z-index: 1030;
  overflow: hidden;
}

/* =====================
   SIDEBAR LOGO
===================== */
.sidebar-logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.sidebar-logo i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* =====================
   NAV CONTAINER
===================== */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth; /* ✅ smooth scroll */
}

/* Optional: thin scrollbar (does NOT affect behavior) */
.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* =====================
   NAV LINKS
===================== */
.sidebar .nav-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  margin: 0.15rem 0.35rem;
}

.sidebar .nav-link i {
  width: 20px;
  min-width: 20px;
  text-align: center;
  font-size: 16px;
  /* font-size: 1.1rem; */
  flex-shrink: 0;
}

/* Hover & active */
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: #ffffff !important;
  color: #ff9800;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
  color: #ff9800;
}

/* =====================
   NAV LABEL (WRAP & CUT)
===================== */
.nav-label {
  flex: 1;
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
  max-height: 2.4em; /* 2 lines */
  overflow: hidden;
  transition: opacity 0.2s ease;
}

/* =====================
   CHEVRON ICON
===================== */
.chevron-icon {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.8;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

a[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

/* =====================
   SUBMENU
===================== */
.sidebar .submenu {
  padding: 5px 5px 5px 16px;
  margin: 0.25rem 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
}

.sidebar .submenu .nav-item {
  margin: 0.15rem 0;
}

.sidebar .submenu .nav-link {
  align-items: flex-start;
  font-size: 13px;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 0.45rem;
}

/* =====================
   COLLAPSED MODE (ICONS ONLY)
===================== */
body.sidebar-collapsed .sidebar {
  width: var(--sidebar-width-collapsed);
}

/* Hide text when collapsed */
body.sidebar-collapsed .sidebar:not(:hover) .nav-label,
body.sidebar-collapsed .sidebar:not(:hover) .brand-text {
  opacity: 0;
  pointer-events: none;
}

/* PERFECT icon centering */
body.sidebar-collapsed .sidebar:not(:hover) .nav-link {
  justify-content: center;
  align-items: center;
  padding: 0.6rem 0;
}

body.sidebar-collapsed .sidebar:not(:hover) .nav-link i {
  font-size: 1.25rem;
}

/* Hide chevron only in icon mode */
body.sidebar-collapsed .sidebar:not(:hover) .chevron-icon {
  display: none;
}

/* Hide submenus by default */
body.sidebar-collapsed .submenu {
  display: none;
}

/* Show submenu only when clicked */
body.sidebar-collapsed .submenu.show {
  display: block;
}

/* Center logo */
body.sidebar-collapsed .sidebar:not(:hover) .sidebar-logo {
  justify-content: center;
}

body.sidebar-collapsed .sidebar:not(:hover) .sidebar-logo i {
  margin-right: 0;
}

/* =====================
   HOVER EXPAND (DESKTOP)
===================== */
@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar:hover {
    width: var(--sidebar-width-expanded);
  }

  body.sidebar-collapsed .sidebar:hover .nav-label,
  body.sidebar-collapsed .sidebar:hover .brand-text {
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-collapsed .sidebar:hover .nav-link {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.6rem 0.85rem;
  }

  body.sidebar-collapsed .sidebar:hover .nav-link i {
    font-size: 1.1rem;
  }

  body.sidebar-collapsed .sidebar:hover .chevron-icon {
    display: inline-block;
  }
}

/* =====================
   BOOTSTRAP COLLAPSE
===================== */
.sidebar .collapse {
  transition: height 0.3s ease;
}

/* ==================================================
   TRUE ICON CENTERING (FIX)
================================================== */
body.sidebar-collapsed .sidebar:not(:hover) .nav-link {
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 0;
  height: 44px;          /* fixed button height */
  margin: 4px 8px;
  gap: 0;
}

/* Hide text & chevron completely from layout */
body.sidebar-collapsed .sidebar:not(:hover) .nav-label,
body.sidebar-collapsed .sidebar:not(:hover) .chevron-icon {
  display: none !important;
}

/* Absolutely center icon */
body.sidebar-collapsed .sidebar:not(:hover) .nav-link i:first-child {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  font-size: 1.3rem;
  line-height: 1;
}

/* ==================================================
   FINAL ICON VERTICAL CENTER FIX
================================================== */
body.sidebar-collapsed .sidebar:not(:hover) .nav-link i:first-child {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;       /* 🔥 removes baseline gap */
  height: 100%;
  width: 100%;
}

/* ==================================================
   SIDEBAR LOGO ICON CENTER FIX
================================================== */
body.sidebar-collapsed .sidebar:not(:hover) .sidebar-logo {
  justify-content: center;
  padding: 0;
}

body.sidebar-collapsed .sidebar:not(:hover) .sidebar-logo i {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1;            /* remove baseline gap */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}


/* ==================================================
   ABSOLUTE CENTER SIDEBAR LOGO ICON (FINAL FIX)
================================================== */
body.sidebar-collapsed .sidebar:not(:hover) .sidebar-logo {
  position: relative;
  padding: 0;
  justify-content: center;
}

/* hide brand text completely */
body.sidebar-collapsed .sidebar:not(:hover) .sidebar-logo .brand-text {
  display: none !important;
}

/* absolute-center the logo icon */
body.sidebar-collapsed .sidebar:not(:hover) .sidebar-logo i {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;   /* kills font baseline gap */
}


/* =====================
   MAIN AREA
===================== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: var(--sidebar-width-expanded);
  transition: margin-left 0.25s ease;
}

/* =====================
   HEADER (FULLY RESTORED)
===================== */
.main-header {
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.btn-toggle-sidebar {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-header-title {
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.main-header-title .t1{
  color: green;
    font-size: 16px;
    font-weight: 600;
    margin-top: -6px;
}
.main-header-title .t2{
  color: orange;
  font-size: 18px;
  font-weight: 700;
}

.main-header-search {
  max-width: 280px;
}

.main-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff9800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* =====================
   CONTENT
===================== */
.main-content {
  padding: 1rem 1.25rem 1.5rem;
}

/* =====================
   COLLAPSED SIDEBAR
===================== */
body.sidebar-collapsed .sidebar {
  width: var(--sidebar-width-collapsed);
}

body.sidebar-collapsed .main {
  margin-left: var(--sidebar-width-collapsed);
}

/* Hide labels visually but keep layout */
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .brand-text {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

/* =====================
   HOVER EXPAND + MAIN MOVE
===================== */
body.sidebar-collapsed .sidebar:hover {
  width: var(--sidebar-width-expanded);
}

body.sidebar-collapsed .sidebar:hover ~ .main {
  margin-left: var(--sidebar-width-expanded);
}

/* Show labels DURING expansion */
body.sidebar-collapsed .sidebar:hover .nav-label,
body.sidebar-collapsed .sidebar:hover .brand-text {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* =====================
   MOBILE / TABLET
===================== */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.6);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  body.sidebar-collapsed .sidebar {
    width: var(--sidebar-width-expanded);
  }
}

/* =====================
   SMALL SCREENS
===================== */
@media (max-width: 575.98px) {
  .main-header {
    padding-inline: 0.5rem;
  }

  .main-header-title {
    display: none;
  }

  .main-content {
    padding: 0.75rem;
  }
}


    
    /* ===== Modern Filter Card ===== */
.filter-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.filter-card fieldset {
  border: none; /* removed double border */
  padding: 0;
  margin: 0;
}

.filter-card legend {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(90deg,#ffb347,#ff7b00);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(255,136,0,0.25);
}

.filter-card .seg {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-card .seg input[type="radio"] {
  display: none;
}

.filter-card .seg label {
  padding: 0.55rem 1.2rem;
  border-radius: 1rem;
  background: #fff3e0;
  cursor: pointer;
  font-weight: 600;
  color: #ff7b00;
  border: 1px solid #ffd580;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(255,123,0,0.15);
}

.filter-card .seg input[type="radio"]:checked + label {
  background: linear-gradient(90deg,#ff7b00,#ffb74d);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255,123,0,0.3);
  transform: translateY(-2px);
}

.filter-card .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
}

.filter-card .fg {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-card label {
  font-weight: 600;
  color: #333;
  font-size: 14px !important;
}

::placeholder{
  font-size: 13px !important;
}
.form-select{
  font-size: 14px;
}

.filter-card .form-control {
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #ffd580;
  /* background: #fff; */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

.filter-card .form-control:hover {
  border-color: #ffb347;
  box-shadow: 0 0 8px rgba(255,136,0,0.15);
}
.filter-card select {
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #ffd580;
  /* background: #fff; */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

.filter-card select:hover {
  border-color: #ffb347;
  box-shadow: 0 0 8px rgba(255,136,0,0.15);
}

.filter-card select:focus {
  outline: none;
  border-color: #ff7b00;
  box-shadow: 0 0 12px rgba(255,123,0,0.25);
}


.form-check-input:checked {
    background-color: #ffb347;
    border-color: #ffb347;
}
.form-check-input:focus {
  border-color: #ffb100;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgb(253 212 13 / 25%);
}

.filter-card .form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.filter-card .btn {
  padding: 8px 24px;
  /* padding: 0.65rem 1.4rem; */
  font-weight: 600;
  border-radius: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.filter-card .btn.primary {
  background: linear-gradient(90deg,#ff7b00,#ffb74d);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,123,0,0.25);
}

.filter-card .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,123,0,0.35);
}

.filter-card .btn.ghost {
  background: transparent;
  border: 2px solid #ffb347;
  color: #ff7b00;
  transition: all 0.3s ease;
}

.filter-card .btn.ghost:hover {
  background: #ff7b00;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255,123,0,0.3);
}

@media (max-width: 768px) {
  .filter-card .form-grid {
    grid-template-columns: 1fr;
  }
}

.sm_title{
  background: #ff7b001a;
  color: #ff7b00;
  width: fit-content;
  padding: 5px 10px;
  margin-bottom: 10px;
  border-radius: 10px;
}
.sm_title h5{
  margin: 0px;
  font-size: 17px;


}
.sm_title2{
  background: #5555551a;
  color: #ff7b00;
  width: fit-content;
  padding: 5px 10px;
  margin: 10px;
  border-radius: 10px;
  
}
.sm_title2 h5{
  margin: 0px;
  font-size: 17px;


}

.sm_title3{
  color: #ff7b00;
}

.two_line_up{
  margin-top: -19px;
}


/* new_table_Style_two_start */
.table {
  background-color: #fff !important;
}

.table {
  border-collapse: collapse;
  border-radius: 1em;
  overflow: hidden;
}
.table tr th {
  font-size: 14px;
  font-weight: 600;
  text-align: center !important;
  /* border: 0px !important; */
  border: 1px solid #c1c1c1;
  color: #000;
}
.table tr th:nth-child(1) {
  width: 60px !important;
  /* border: 0px !important; */
}
.table tr td {
  font-size: 13px;
  border: 0px;
  border: 1px solid #c1c1c1 !important;
  text-align: center;
  /* border: 1px solid #ede6e4 !important; */
  /* border-bottom: 1px solid #ffe1d9 !important; */
}
.table thead tr:nth-child(1) {
  background: #ffca7b !important;
  /* background: #ffab94 !important; */
  /* background: #feb80a !important; */
  /* background: #eaebff !important; */
}

.table thead tr:nth-child(2) {
  background: #ffca7b !important;
  /* background: #feb80a !important; */
  /* background: #eaebff !important; */
}
.table thead tr:nth-child(3) {
  background: #ffca7b !important;
  /* background: #feb80a !important; */
  /* background: #eaebff !important; */
}

.table tr:nth-child(odd) {
  background: #fff6f3 !important;
}
.table tr:nth-child(even) {
  background: #fff !important;
  /* background: #f2f2f2 !important; */
}
.table>:not(caption)>*>* {
  background-color: inherit !important;
}
/* new_table_Style_two_end */


.cust_tabs .nav .nav-item .nav-link{
  
    padding: 0.55rem 1.2rem;
    border-radius: 1rem;
    background: #fff3e0;
    cursor: pointer;
    font-weight: 600;
    color: #ff7b00;
    border: 1px solid #ffd580;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 123, 0, 0.15);
    margin-right: 5px;
}
.cust_tabs .nav .nav-item .nav-link.active{
  
    background: linear-gradient(90deg, #ff7b00, #ffb74d);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 123, 0, 0.3);
    transform: translateY(-2px);
}

.accordion-item{
  border: 0px;
  margin-bottom: 10px;
}
.accordion-button{
    color: #000 !important;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px !important;
    margin-bottom: 10px;
}

.accordion-button:focus {
    z-index: 3;
    border: 0px !important;
    /* border-color: #ffffff !important; */
    outline: 0;
    box-shadow: none !important;
}
.cust_tabs .accordion-body{
  padding: 0px;
}
.bg_one{
  background: #fff3e0 !important;
}
.bg_two{
  background: #e4eff9 !important;
}
.bg_three{
  background: #fdfdce !important;
}
.bg_four{
  background: #e2fbe2 !important;
}

label{
  font-size: 15px !important;
}


.view_btn{
  color: orange;
  text-decoration: none;
  border: 1px solid orange;
  padding: 4px 10px;
  border-radius: 10px;
}
.view_btn:hover{
  background: orange;
  color: #fff;
}
.btn.btn_edit{
  background: rgb(27, 27, 131) !important;
  color: #fff;
  padding: 4px 10px;
  border: 1px solid rgb(27, 27, 131);
  cursor: pointer !important;
  font-size: 13px;
}
.btn.btn_edit:hover{
  background: rgb(4, 4, 209) !important;
}
.btn.btn_delete{
  background: rgb(190, 42, 42) !important;
  color: #fff;
  padding: 4px 10px;
  border: 1px solid rgb(190, 42, 42);
  cursor: pointer !important;
   font-size: 13px;
}
.btn.btn_delete:hover{
  background: rgb(231, 10, 10) !important;
}