
/* ============================
   GLOBAL RESET + BASE (HTML + BODY)
   ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 1rem = 16px */
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2f6;
  overflow-x: scroll; /* body কখনো scroll করবে না */
 overflow-y: scroll;
}


/* Scrollbar */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #c6ccd8;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #aeb5c2;
}

/* Content area fills remaining space */
.content-area {
height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: #eaf1f6;
   border: 1px solid #b0b8c1;
  overflow-x: scroll;   /* শুধু content-area scroll করবে */
  overflow-y: scroll;
}





/* ============================
   CHILD NAVBAR (SUB NAV)
   ============================ */
.sub-nav {
  height: 35px;
  background: #ffffff;
  border-bottom: 0.0625rem solid #dde1ea;
  display: flex;
  align-items: center;
  padding: 0 0.3rem;
  gap: 0.9rem;
}

.sub-nav-item {
  font-size: 0.8125rem;
  padding: 0.3rem 0.875rem;
  border-radius: 1.25rem;
  cursor: pointer;
  color: #444;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.sub-nav-item:hover {
  background: #f3f5fb;
}
.sub-nav-item.active {
  background: #e5ebff;
  border: 0.0625rem solid #2f54eb;
  color: #1f3160;
  font-weight: 600;
 
}
.sub-actions { margin-left: auto; /* breadcrumb এর আগে ডানদিকে বসবে */ display: flex; align-items: center; gap: 0.6em; }
.sub-breadcrumb {
  margin-left: auto;
   margin-right: 30px;
  font-size: 0.75rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.sub-breadcrumb i {
  color: #999;
}
/* Loader container */
#loading {
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
  height: 100%;          /* sub-nav height অনুযায়ী */
  margin-right: 1rem;
}

/* Loader icon */
#loading-icon i {
  font-size: 1.2rem;
  color: navy;
  margin: 0 10px;
}



/* ============================
   BOTTOM NAVBAR (FOOTER NAV)
   ============================ */
.bottom-nav {
  height: 25px;
  background: linear-gradient(90deg, #2f4b7f, #1f3254);
  color: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.8rem;
  font-size: 0.75rem;
  border-top: 1px solid #ccc;
}

.bottom-left,
.bottom-middle,
.bottom-right {
  display: flex;
  align-items: center;
}

/* ============================
   COMMON  BOTTOM
   ============================ */
button {
  font-size: 0.8rem;
  padding: 0.3em 1em;
  border-radius: 0.02em;
  cursor: pointer;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  color: black;
  background: linear-gradient(135deg, #FFD700, #FFECB3); /* gold → light gold */
  background-size: 200% 200%;

}

/* Hover effect */
button:hover {
  background-position: right center;
  box-shadow: 0 0 0.6em rgba(255, 215, 0, 0.6);
}

/* Active/pressed effect */
button:active {
  box-shadow: inset 0 0 0.4em rgba(0,0,0,0.3);
}

/* ============================
 MAIN PANEL
   ============================ */
/* Main Panel */
.main-panel {
  display: grid;
  grid-template-columns: 1fr;   /* সবসময় এক কলাম */
  gap: 1rem;
  padding: 1rem;
  background: #f5f6f8;
  height: auto; /* top+bottom nav বাদ দিয়ে */
  width: 1300px;
  overflow-y: auto;            /* scroll শুধু এখানে হবে */
}
/* ============================
 SUB PANEL
   ============================ */
.sub-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  height: auto;        /* সবসময় content অনুযায়ী height হবে */
  max-height: none;
    border: 1px solid #b0b8c1;
}

/* Header ERP-style */
.sub-panel-header {
  height: 25px;
  padding: 3px 10px;
  margin: 0px;
  font-size: 13px;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  color: #1f3254;
  background: #dfe6ec;              /* SAP ERP-এর মতো হালকা নীল-ধূসর */
  border-bottom: 1px solid #b0b8c1; /* subtle border */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Body ERP-style */
.sub-panel-body {
  padding: 5px;
  display: flex;          /* পাশা-পাশি বসবে */
  flex-wrap: wrap;        /* জায়গা না থাকলে নিচে যাবে */
  gap: 4px;
  overflow: auto;
  background: #f7f9fb; 
  height: 100%;/* SAP ERP-এর মতো হালকা ধূসর body */
}

/* প্রতিটি sbody-div */
.sbody-div {
  display: flex;
  flex-direction: column; /* data column wise যাবে */
  width: auto;
  min-width: 250px;       /* প্রতিটি box এর ন্যূনতম প্রস্থ */
}

.sbody-div label {
  font-family: "Lucida Sans", "Segoe UI", Verdana, sans-serif; /* unique, clean font */
  font-size: 11.5px;
  font-weight: 600;
  color: #1f3254;
 
}