/* #0073ea -primary color*/
/* hover - #0060b9 */

/* Figtree font */
.figtree-font-sidebar {
  font-family: "Figtree", sans-serif !important;
  font-optical-sizing: auto;
  /* font-weight: ; */
  font-style: normal;
}

body {
  font-family: "Figtree", sans-serif !important;
  font-optical-sizing: auto;
  /* font-weight: ; */
  font-style: normal;
}
.floverfy-primary-color {
  color: #0073ea;
}
.floverfy-table-border {
  border-left: 4px solid #00c875 !important;
}
.floverfy-table-border-modal {
  border-left: 4px solid #d25269 !important;
}
.flverfy-table-border-primary-color {
  border-left: 4px solid #0073ea !important;
}
#student_promotion_list td,
#student_promotion_list th {
  border: none !important;
}

#student_promotion_list {
  border: none !important;
}

.table-responsive {
  border: none !important;
}

.btn-bg-primary:hover {
  background-color: #0060b9; /* Change to desired hover background color */
  color: white; /* Change to desired hover font color */
}
.btn-icon-danger:hover {
  color: #d25269; /* Change to desired hover font color */
}
.student_promotion_table_header th {
  background-color: #ffffff !important;
}
.student_promotion_table_header th.sorting_asc::after {
  content: none !important;
}

/* .btn:hover{
	color: #1BAA61;
} */
.table td {
  padding-top: 1px !important;
  /* Adjust the padding value according to your preference */
  padding-bottom: 1px !important;
  /* Adjust the padding value according to your preference */
}
td {
  border-bottom: 1px solid #c9cbd0 !important;
  border-right: 1px solid #c9cbd0 !important;
}
th {
  border-bottom: 1px solid #c9cbd0 !important;
  border-right: 1px solid #c9cbd0 !important;
  background-color: #f4f6f6 !important;
}
/* tr:hover td {
    background-color: #f5f5f5 !important;
  } */
/* table tr .tr-hover-effect :hover td {
    background-color: #f5f5f5 !important;
} */
tr.tr-hover-effect:hover td {
  background-color: #f5f5f5 !important;
}
.fc-scrollgrid {
  padding: 5px !important;
}
/* #student-compleet_list tbody tr:hover td:not(:nth-child(4)) {
  background-color: #f5f5f5; /* Your hover color */
/* } */
*/
	/* Borders for th elements */
.tb_sub th {
  padding: 10px !important;
}
.tb_sub td {
  padding: 10px !important;
}
.tb_padding-8 th {
  padding: 6px !important;
}
.tb_padding td {
  padding: 5px !important;
}
table {
  border: 1px solid #c9cbd0 !important;
  border-right: 0px solid #c9cbd0 !important;
}
.floverfy-modal-header {
  border-bottom: 0px !important;
}
.floverfy-input {
  border: 1px solid #d0d4e4;
  transition: border-color 0.3s ease-in-out;
  outline: none;
  border-radius: 0.35rem !important;
  border-left: 2px solid #d25269 !important;
}
.floverfy-input_component {
  border: 1px solid #d0d4e4;
  transition: border-color 0.3s ease-in-out;
  outline: none;
  border-radius: 0.35rem !important;
  border-left: 2px solid #0e9f00 !important;
}

/* Styling for when input is focused */
.floverfy-input:focus {
  border-color: #d25269;
  box-shadow: 0 0 2px solid #d25269;
}
.input_style {
  border-radius: 0.35rem !important;
  border: 1px solid #d0d4e4 !important;
}
.floverfy-input {
  border: 1px solid #b5b8c2;
  font-weight: 400 !important;
}
.floverfy-input-gray {
  border-left: 1px solid #787778 !important;
  font-weight: 350 !important;
}

.label_padding {
  padding-bottom: 2px !important;
}

.prefix_dropdown {
  border-radius: 0px;
}

.floverfy-width {
  height: 46px !important;
  /* Adjust the width as per your requirement */
}
.floverfy-checkbox {
  border-radius: 0px;
}
.white {
  color: white;
}
/* .green {
  color: #03ad67;
} */
.floverfy-label-red {
  color: #d25269;
}
.floverfy-label-primary {
  color: #0073ea;
}
.floverfy-label-geen {
  color: #03ad67;
}
.floverfy-label-geen {
  color: #03ad67;
}
.floverfy-btn-success {
  background-color: #1baa61 !important;
  color: white !important; /* Font color */
  transition: background-color 0.3s ease; /* Smooth transition effect */
}
/* Styles for hover state */
/* .floverfy-btn-success:hover {
		background-color: #18884E !important;
	} */
.floverfy-btn-danger {
  background-color: #d83a52 !important;
  color: white !important; /* Font color */
  transition: background-color 0.3s ease; /* Smooth transition effect */
}
/* Styles for hover state */
/* .floverfy-btn-danger:hover {
		background-color: #b63546 !important;
	} */
.floverfy-btn-warning {
  background-color: #ffcb00 !important;
  color: rgb(0, 0, 0) !important; /* Font color */
  transition: background-color 0.3s ease; /* Smooth transition effect */
}
/* Styles for hover state */
/* .floverfy-btn-warning:hover {
		background-color: #eaaa15 !important;
	} */
.stickyDiv {
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensure it stays on top of other content */
}
.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  width: 20px; /* Adjust width as needed */
  text-align: center;
}
.swal2-confirm-button-custom {
  background-color: #008000; /* The green color for confirm */
  color: white;
}

.swal2-cancel-button-custom {
  background-color: #c00; /* Red color for cancel */
  color: white;
}

.swal2-content-details div {
  margin-bottom: 10px;
}
.checkbox-wrapper-30 .checkbox {
  --bg: #fff;
  --brdr: #c6c9c7;
  --brdr-actv: #1baa61;
  --brdr-hovr: #bbc1e1;
  --dur: calc((var(--size, 2) / 2) * 0.6s);
  display: inline-block;
  width: calc(var(--size, 1) * 22px);
  position: relative;
}
.checkbox-wrapper-30 .checkbox:after {
  content: "";
  width: 100%;
  padding-top: 100%;
  display: block;
}
.checkbox-wrapper-30 .checkbox > * {
  position: absolute;
}
.checkbox-wrapper-30 .checkbox input {
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background-color: var(--bg);
  border-radius: calc(var(--size, 1) * 4px);
  border: calc(var(--newBrdr, var(--size, 1)) * 1px) solid;
  color: var(--newBrdrClr, var(--brdr));
  outline: none;
  margin: 0;
  padding: 0;
  transition: all calc(var(--dur) / 3) linear;
}
.checkbox-wrapper-30 .checkbox input:hover,
.checkbox-wrapper-30 .checkbox input:checked {
  --newBrdr: calc(var(--size, 1) * 2);
}
.checkbox-wrapper-30 .checkbox input:hover {
  --newBrdrClr: var(--brdr-hovr);
}
.checkbox-wrapper-30 .checkbox input:checked {
  --newBrdrClr: var(--brdr-actv);
  transition-delay: calc(var(--dur) / 1.3);
}
.checkbox-wrapper-30 .checkbox input:checked + svg {
  --dashArray: 16 93;
  --dashOffset: 109;
}
.checkbox-wrapper-30 .checkbox svg {
  fill: none;
  left: 0;
  pointer-events: none;
  stroke: #1baa61;
  stroke-dasharray: var(--dashArray, 93);
  stroke-dashoffset: var(--dashOffset, 94);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  top: 0;
  transition: stroke-dasharray var(--dur), stroke-dashoffset var(--dur);
}
.checkbox-wrapper-30 .checkbox svg,
.checkbox-wrapper-30 .checkbox input {
  display: block;
  height: 80%;
  width: 80%;
}

.checkbox-wrapper-40 .checkbox {
  --bg: #fff;
  --brdr: #c6c9c7;
  --brdr-actv: #007bff;
  --brdr-hovr: #007bff;
  --dur: calc((var(--size, 2) / 2) * 0.6s);
  display: inline-block;
  width: calc(var(--size, 1) * 22px);
  position: relative;
}
.checkbox-wrapper-40 .checkbox:after {
  content: "";
  width: 100%;
  padding-top: 100%;
  display: block;
}
.checkbox-wrapper-40 .checkbox > * {
  position: absolute;
}
.checkbox-wrapper-40 .checkbox input {
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background-color: var(--bg);
  border-radius: calc(var(--size, 1) * 4px);
  border: calc(var(--newBrdr, var(--size, 1)) * 1px) solid;
  color: var(--newBrdrClr, var(--brdr));
  outline: none;
  margin: 0;
  padding: 0;
  transition: all calc(var(--dur) / 3) linear;
}
.checkbox-wrapper-40 .checkbox input:hover,
.checkbox-wrapper-40 .checkbox input:checked {
  --newBrdr: calc(var(--size, 1) * 2);
}
.checkbox-wrapper-40 .checkbox input:hover {
  --newBrdrClr: var(--brdr-hovr);
}
.checkbox-wrapper-40 .checkbox input:checked {
  --newBrdrClr: var(--brdr-actv);
  transition-delay: calc(var(--dur) / 1.3);
}
.checkbox-wrapper-40 .checkbox input:checked + svg {
  --dashArray: 16 93;
  --dashOffset: 109;
}
.checkbox-wrapper-40 .checkbox svg {
  fill: none;
  left: 0;
  pointer-events: none;
  stroke: #007bff;
  stroke-dasharray: var(--dashArray, 93);
  stroke-dashoffset: var(--dashOffset, 94);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  top: 0;
  transition: stroke-dasharray var(--dur), stroke-dashoffset var(--dur);
}
.checkbox-wrapper-40 .checkbox svg,
.checkbox-wrapper-40 .checkbox input {
  display: block;
  height: 80%;
  width: 80%;
}
.checkbox-wrapper-20 .checkbox {
  --bg: #fff;
  --brdr: #dc3545;
  --brdr-actv: #007bff;
  --brdr-hovr: #dc3545;
  --dur: calc((var(--size, 2) / 2) * 0.6s);
  display: inline-block;
  width: calc(var(--size, 1) * 22px);
  position: relative;
}
.checkbox-wrapper-20 .checkbox:after {
  content: "";
  width: 100%;
  padding-top: 100%;
  display: block;
}
.checkbox-wrapper-20 .checkbox > * {
  position: absolute;
}
.checkbox-wrapper-20 .checkbox input {
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background-color: var(--bg);
  border-radius: calc(var(--size, 1) * 4px);
  border: calc(var(--newBrdr, var(--size, 1)) * 1px) solid;
  color: var(--newBrdrClr, var(--brdr));
  outline: none;
  margin: 0;
  padding: 0;
  transition: all calc(var(--dur) / 3) linear;
}
.checkbox-wrapper-20 .checkbox input:hover,
.checkbox-wrapper-20 .checkbox input:checked {
  --newBrdr: calc(var(--size, 1) * 2);
}
.checkbox-wrapper-20 .checkbox input:hover {
  --newBrdrClr: var(--brdr-hovr);
}
.checkbox-wrapper-20 .checkbox input:checked {
  --newBrdrClr: var(--brdr-actv);
  transition-delay: calc(var(--dur) / 1.3);
}
.checkbox-wrapper-20 .checkbox input:checked + svg {
  --dashArray: 16 93;
  --dashOffset: 109;
}
.checkbox-wrapper-20 .checkbox svg {
  fill: none;
  left: 0;
  pointer-events: none;
  stroke: #007bff;
  stroke-dasharray: var(--dashArray, 93);
  stroke-dashoffset: var(--dashOffset, 94);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  top: 0;
  transition: stroke-dasharray var(--dur), stroke-dashoffset var(--dur);
}
.checkbox-wrapper-20 .checkbox svg,
.checkbox-wrapper-20 .checkbox input {
  display: block;
  height: 80%;
  width: 80%;
}

.sticky_footer {
  position: sticky;
  bottom: 0;
  background: rgb(241, 238, 238);
  padding: 15px 5px;
  /* box-shadow: 0 -5px 10px rgba(0,0,0,0.1); */
  z-index: 1000;
}
.my-card {
  max-height: 500px;
  overflow-y: auto;
}
.week-filter {
  display: flex;
  justify-content: center; /* Center the buttons horizontally */
  gap: 10px; /* Space between buttons */
}

.filter-btn {
  background-color: #ffffff; /* White background */
  border: 1px solid #cccccc; /* Grey border */
  padding: 8px 16px; /* Padding around the text */
  font-size: 14px; /* Text size */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s; /* Smooth transition for background color */
}

.filter-btn:hover {
  background-color: #f0f0f0; /* Light grey background on hover */
}

.current {
  border: 2px solid #000000; /* Thicker black border for the current button */
}
/* Limit image width to avoid overflow the container */
img {
  max-width: 100%; /* This rule is very important, please do not ignore this! */
}

#canvas {
  background-color: #ffffff;
  cursor: default;
  border: 1px solid black;
}
.image-input {
  position: relative;
}

.crop-icon {
  position: absolute;
  bottom: 10px;
  left: 10px !important;
  display: none; /* Hide by default */
}

/* Show crop icon when image is uploaded */
.image-input-wrapper img[src] ~ .crop-icon {
  display: block;
}
.privilage-modal-dialog {
  max-width: 90% !important;
}

.privilage-modal-content {
  height: 90vh !important;
  display: flex;
  flex-direction: column;
}

.privilage-modal-body {
  display: flex;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.privilage-sidebar {
  width: 250px;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
}

.privilage-content {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
}

.privilage-nav-link.active {
  font-weight: bold;
}

.privilage-nav-link {
  cursor: pointer;
}

.privilage-switch {
  display: inline-block;
  width: 34px;
  height: 20px;
  position: relative;
}

.privilage-switch input {
  display: none;
}

.privilage-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.privilage-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .privilage-slider {
  background-color: #007bff;
}

input:checked + .privilage-slider:before {
  transform: translateX(14px);
}
/* .image-input-placeholder {
  background-image: url('../media/svg/files/blank-image.svg');
}

[data-bs-theme="dark"] .image-input-placeholder {
  background-image: url('../media/svg/files/blank-image.svg');
} */
.auto-width {
  width: auto !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}

.auto-width th,
.auto-width td {
  padding: 8px !important;
  border: 1px solid #ddd !important;
  white-space: nowrap !important;
}

.auto-width th {
  min-width: 70px !important;
}

/* .checkbox-wrapper-30, .checkbox-wrapper-40 {
  display: inline-block;
} */

.checkbox {
  display: inline-block;
}

.division-title {
  background-color: #f8f9fa;
}

.division-row-divider td {
  background-color: #f1f1f1;
}

.kt_app_content {
  flex: 1;
}
.capitalize {
  text-transform: capitalize;
}
.btn-close {
  background: none; /* Removes any background */
  color: white; /* Sets the icon color to white */
  border: none; /* Removes the border */
}

/* Ensures the icon appears correctly on all backgrounds */
.btn-close::before {
  filter: invert(1);
}
/* Ensure the Typeahead dropdown matches the input field width */
.tt-menu {
  background-color: #f0f0f0; /* Change this to your desired background color */
  border-radius: 4px; /* Optional: to round the corners */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: adds a shadow effect */
  width: 100% !important; /* Ensure the dropdown width is 100% of the input field */
}

/* Set the background color for each suggestion */
.tt-suggestion {
  padding: 8px 12px;
  cursor: pointer;
}

/* Highlight the suggestion on hover */
.tt-suggestion:hover {
  background-color: #dcdcdc; /* Change this to your desired hover color */
}

.tags-container_fee_payment {
  gap: 15px;
  flex-wrap: wrap;
  background: white;
  padding: 15px;
  padding-right: 70px !important;
  border-radius: 8px;
}

.tag_fee_payment {
  padding: 1px 10px;
  background: #007bff;
  color: white;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tag_fee_payment:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tag_fee_payment.payment {
  background: #28a745;
}

.tag_fee_payment.payment:hover {
  background: #218838;
}

.tag_fee_payment.student {
  background: #ffc107;
  color: #ffffff;
}

.tag_fee_payment.student:hover {
  background: #e0a800;
}

.tag_fee_payment.receipt {
  background: #17a2b8;
}

.tag_fee_payment.receipt:hover {
  background: #138496;
}

.tag_fee_payment.advice {
  background: #6f42c1;
}

.tag_fee_payment.advice:hover {
  background: #5a32a3;
}

.tags-container_fee_payment {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag_fee_payment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.tag_fee_payment.payment {
  background-color: #28a745;
}

.tag_fee_payment.student {
  background-color: #ffc107;
  color: #000;
}

.tag_fee_payment.receipt {
  background-color: #17a2b8;
}

.tag_fee_payment.advice {
  background-color: #6f42c1;
}

/* Icon styles using Unicode symbols */
.icon-payment::before {
  content: "💰";
  font-size: 16px;
}

.icon-student::before {
  content: "👥";
  font-size: 16px;
}

.icon-receipt::before {
  content: "🧾";
  font-size: 16px;
}

.icon-advice::before {
  content: "📋";
  font-size: 16px;
}

.icon-student::before {
  content: "\f0c0"; /* fa-users */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.icon-receipt::before {
  content: "\f570"; /* fa-receipt */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.icon-advice::before {
  content: "\f15c"; /* fa-file-alt */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
*/

/* fee insights */
.header {
  margin-bottom: 32px;
}

.header h1 {
  font-size: 36px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 8px;
}

.header p {
  color: #6b7280;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(169px, 1fr));
  gap: 0px;
  margin-bottom: 32px;
}

.stat-card {
  width: 90%;
  height: 135px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 13px;
  border-left: 4px solid;
  margin-bottom: 8px;
}

.stat-card.blue {
  border-left-color: #3b82f6;
}

.stat-card.red {
  border-left-color: #ef4444;
}

.stat-card.green {
  border-left-color: #10b981;
}

.stat-card.purple {
  border-left-color: #8b5cf6;
}

.stat-card.yellow {
  border-left-color: #f59e0b;
}

.stat-card.black {
  border-left-color: #1f2937;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.icon-box {
  padding: 9px;
  border-radius: 8px;
}

.icon-box.blue {
  background: #dbeafe;
  color: #3b82f6;
}

.icon-box.red {
  background: #fee2e2;
  color: #ef4444;
}

.icon-box.green {
  background: #d1fae5;
  color: #10b981;
}

.icon-box.purple {
  background: #ede9fe;
  color: #8b5cf6;
}

.icon-box.black {
  background: #e5e7eb;
  color: #1f2937;
}

.stat-value {
  font-size: 19px;
  font-weight: bold;
  color: #1f2937;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

.percentage {
  font-size: 24px;
  font-weight: bold;
  color: #10b981;
}

.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.chart-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.chart-title {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 16px;
}

.chart-container {
  position: relative;
  height: 300px;
}

.full-width-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 32px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  border-bottom: 2px solid #e5e7eb;
}

th {
  padding: 12px 16px;
  font-weight: 600;
  color: #374151;
  text-align: left;
}

th.text-right {
  text-align: right;
}

th.text-center {
  text-align: center;
}

tbody tr {
  border-bottom: 1px solid #f3f4f6;
}

tbody tr:hover {
  background: #f9fafb;
}

td {
  padding: 12px 16px;
}

td.text-right {
  text-align: right;
}

td.text-center {
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-excellent {
  background: #d1fae5;
  color: #065f46;
}

.badge-good {
  background: #dbeafe;
  color: #1e40af;
}

.badge-average {
  background: #fef3c7;
  color: #92400e;
}

.badge-attention {
  background: #fee2e2;
  color: #991b1b;
}

tfoot {
  background: #f9fafb;
  font-weight: bold;
}

.text-green {
  color: #10b981;
}

.text-red {
  color: #ef4444;
}

.text-yellow {
  color: #f59e0b;
}

@media (max-width: 768px) {
  .charts-row {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 20px;
  }

  .header h1 {
    font-size: 28px;
  }
}

tr.tr-hover-effect-special:hover td {
  background-color: #f5f5f5 !important;
}

tr.tr-hover-effect-special:hover tr td:not(:nth-child(9)) {
  background-color: #f5f5f5 !important;
}

.custom-button {
  /* Button size and shape */
  padding: 8px 14px;
  /* Adjust padding to control button size */
  font-size: 12px;
  /* Adjust font size */
  border-radius: 4px;
  /* Curved border */
  border: none;
  /* Remove default border */
  cursor: pointer;
  /* Pointer cursor on hover */
  position: relative;
  /* Required for pseudo-element positioning */
  overflow: hidden;
  /* Hide overflow for the fill effect */
  z-index: 1;
  /* Ensure text is above the fill effect */

  /* Default button color */
  background-color: rgb(232, 238, 246);
  /* Light blue */
  color: #000;
  /* Text color */
  border-left: 2px solid rgb(20, 20, 20);
  /* Dark blue left border */

  /* Transition for smooth color change */
  transition: color 0.3s ease;
}

/* Pseudo-element for the fill effect */
.custom-button::before {
  content: "";
  /* Required for pseudo-element */
  position: absolute;
  /* Position relative to the button */
  top: 0;
  left: -100%;
  /* Start from the left (hidden) */
  width: 100%;
  /* Full width of the button */
  height: 100%;
  /* Full height of the button */
  background-color: rgb(1, 8, 16);
  /* Fill color */
  transition: left 0.3s ease;
  /* Smooth transition for the fill effect */
  z-index: -1;
  /* Place behind the button text */
}

/* Change color on hover */
.custom-button:hover {
  color: rgb(232, 238, 246);
  /* Text color when hovered */
}

/* Fill effect on hover */
.custom-button:hover::before {
  left: 0;
  /* Move the fill to the right */
}

/* Active state (when clicked) */
.custom-button.active {
  background-color: rgb(0, 0, 0);
  /* Dark color when active */
  color: rgb(232, 238, 246);
  /* Text color when active */
}

/* Hover effect when button is active */
.custom-button.active:hover {
  background-color: rgb(1, 9, 17);
  /* Even darker color on hover when active */
}

svg:hover .icon-hover {
  stroke: rgb(247, 246, 246) !important;
}

.field-checkbox {
  margin-bottom: 10px;
}

.field-checkbox label {
  margin-left: 8px;
  font-weight: 500;
  color: rgb(26, 27, 27);
}

.modal-body {
  max-height: 500px;
  overflow-y: auto;
}

.optional-field {
  color: #6c757d;
}

.loading-spinner {
  display: none;
  align-items: center;
}

#advance_search_type {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
}

#stud_advnce_fltr {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

#dashboard_list td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  vertical-align: middle;
  /* Keeps content centered vertically */
}

.text-right.text-red {
  color: #dc2626 !important;
}

.text-right.text-green {
  color: #16a34a !important;
}

.text-right.text-yellow {
  color: #f5ca0bff !important;
}

/* promotion */

/* Main Content Styles */
.main-content {
  flex: 1;
  padding: 20px;
}

.header_promotion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e3e6f0;
}

.header_promotion h1 {
  color: #2e2e3f;
  font-size: 1.8rem;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Card Styles */
.card_promotion {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  margin-bottom: 25px;
}

.card-header_promotion {
  padding: 15px 20px;
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  color: #2e2e3f;
}

.card-body_promotion {
  padding: 20px;
}

/* Filter Section Styles */
.filter-section {
  display: column;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2e2e3f;
}

.filter-control {
  display: flex;
  gap: 10px;
  align-items: center;
}

select,
input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

.range-text {
  margin: 0 10px;
  color: #6c757d;
}

/* Button Styles */
.btn {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #2e59d9;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: #17a673;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e3e6f0;
}

th {
  background-color: #f8f9fc;
  font-weight: 600;
  color: #2e2e3f;
}

tr:hover {
  background-color: #f8f9fc;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.status-active {
  background-color: #e3f2fd;
  color: #0277bd;
}

.status-pending {
  background-color: #fff8e1;
  color: #ff8f00;
}

.status-completed {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* Statistics Cards */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card_promotion {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  padding: 20px;
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.5rem;
}

.stat-icon.primary {
  background-color: rgba(78, 115, 223, 0.1);
  color: var(--primary-color);
}

.stat-icon.success {
  background-color: rgba(28, 200, 138, 0.1);
  color: var(--success-color);
}

.stat-icon.warning {
  background-color: rgba(246, 194, 62, 0.1);
  color: var(--warning-color);
}

.stat-icon.danger {
  background-color: rgba(231, 74, 59, 0.1);
  color: var(--danger-color);
}

.stat-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #2e2e3f;
}

.stat-info p {
  color: var(--secondary-color);
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .filter-group {
    min-width: 100%;
  }
}

/* Loading Spinner */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none;
}

.promotion-item {
  padding: 15px;
  border: 1px solid #e3e6f0;
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: white;
  transition: all 0.3s;
}

.promotion-item:hover {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.promotion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.promotion-title {
  font-weight: 600;
  color: #2e2e3f;
}

.promotion-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.85rem;
  color: var(--secondary-color);
}

.detail-value {
  font-weight: 500;
  color: #2e2e3f;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
.stat-card_promotion.blue {
  border-left: 2px solid #0073ea;
}
.stat-card_promotion.yellow {
  border-left: 2px solid #e0a800;
}
.stat-card_promotion.green {
  border-left: 2px solid #009b2f;
}
.stat-card_promotion.red {
  border-left: 2px solid #d25269;
}

.promotion-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  display: none;
}

.promotion-card.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promotion-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
}

.promotion-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.promotion-select {
  display: flex;
  flex-direction: column;
}

.promotion-select label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.promotion-select select {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.promotion-select select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.arrow {
  font-size: 24px;
  color: #6b7280;
  text-align: center;
}
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .promotion-grid {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
  }
}
.student-promotion-row {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  transition: all 0.3s ease;
}

.student-promotion-row:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.student-promotion-row.selected {
  background: #e3f2fd;
  border-color: #2196f3;
}

.student-checkbox {
  margin-right: 15px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.student-current-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.student-field {
  display: flex;
  flex-direction: column;
}

.student-field-label {
  font-size: 11px;
  color: #666;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.student-field-value {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.promotion-arrow {
  margin: 0 20px;
  font-size: 24px;
  color: #666;
}

.student-target-info {
  flex: 1;
}

.target-division-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.target-division-select:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.no-students-message {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 14px;
}

.select-all-container {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 15px;
}

.select-all-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.select-all-label {
  font-weight: 600;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.promotion-grid {
  display: grid;
  grid-template-columns: 1fr 0fr 1fr; /* 3 columns instead of 2 */
  gap: 20px;
  align-items: start;
}

.promotion-column {
  display: flex;
  flex-direction: column;
}

.promotion-column label {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  min-height: 24px;
}

.class-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #eee;
  min-height: 45px;
  margin-bottom: 2.1px;
}

.arrow-right {
  margin-left: 10px;
  font-size: 18px;
}
.dropdown_passed {
  border-left: 2px solid #118807 !important;
}
.drodown_failed {
  border-left: 2px solid #f14b69 !important;
}

/* dashboard style */
.school-dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  max-width: 1751px;
  width: 100%;
  animation: schoolFadeInUp 0.8s ease-out;
}

@keyframes schoolFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.school-stat-card {
  padding: 15px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  animation: schoolFadeInUp 0.8s ease-out backwards;
}

.school-stat-card:nth-child(1) {
  background: linear-gradient(135deg, #a2dca7 0%, #f1f8f4 100%);
  animation-delay: 0.1s;
}

.school-stat-card:nth-child(2) {
  background: linear-gradient(135deg, #ffe9c7 0%, #fff8f0 100%);
  animation-delay: 0.2s;
}

.school-stat-card:nth-child(3) {
  background: linear-gradient(135deg, #e0bee4 0%, #faf5fc 100%);
  animation-delay: 0.3s;
}

.school-stat-card:nth-child(4) {
  background: linear-gradient(135deg, #a4d7fc 0%, #dce4ed 100%);
  animation-delay: 0.4s;
}

.school-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.5),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.school-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.school-stat-card:hover::before {
  opacity: 1;
}

.school-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.school-icon-box {
  width: 44px;
  height: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-stat-card:nth-child(1) .school-icon-box {
  background: rgba(76, 175, 80, 0.15);
  color: #388e3c;
}

.school-stat-card:nth-child(2) .school-icon-box {
  background: rgba(255, 152, 0, 0.15);
  color: #f57c00;
}

.school-stat-card:nth-child(3) .school-icon-box {
  background: rgba(156, 39, 176, 0.15);
  color: #7b1fa2;
}

.school-stat-card:nth-child(4) .school-icon-box {
  background: rgba(33, 150, 243, 0.15);
  color: #1976d2;
}

.school-stat-card:hover .school-icon-box {
  transform: rotate(-8deg) scale(1.05);
}

.school-icon-box svg {
  width: 22px;
  height: 22px;
}

.school-percentage-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.school-percentage-badge.school-positive {
  color: #2e7d32;
  background: rgba(76, 175, 80, 0.12);
}

.school-percentage-badge.school-neutral {
  color: #616161;
  background: rgba(0, 0, 0, 0.06);
}

.school-percentage-badge svg {
  width: 16px;
  height: 16px;
}

.school-card-main {
  position: relative;
  z-index: 1;
}

.school-metric-label {
  font-size: 15px;
  font-weight: 500;
  color: #5f6368;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.school-metric-number {
  font-size: 23px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.school-card-circle {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 112px;
  height: 105px;
  border-radius: 50%;
  opacity: 0.2;
  transition: all 0.6s ease;
}

.school-stat-card:nth-child(1) .school-card-circle {
  background: #4caf50;
}

.school-stat-card:nth-child(2) .school-card-circle {
  background: #ff9800;
}

.school-stat-card:nth-child(3) .school-card-circle {
  background: #9c27b0;
}

.school-stat-card:nth-child(4) .school-card-circle {
  background: #2196f3;
}

.school-stat-card:hover .school-card-circle {
  transform: scale(1.2);
  opacity: 0.08;
}

@media (max-width: 768px) {
  .school-dashboard-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .school-stat-card {
    padding: 24px;
  }

  .school-metric-number {
    font-size: 32px;
  }
}

/* quick notification */
.schedule-wrapper-main {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  padding: 0px;
  min-height: 45vh;
}

.schedule-container-primary {
  max-width: 650px;
  margin: 0 auto;
}

.event-card-item {
  background: white;
  border-radius: 8px;
  padding: 5px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.event-info-section {
  flex: 1;
}

.event-time-display {
  font-size: 13px;
  color: #666;
  margin-bottom: 1px;
  font-weight: 500;
}

.event-title-text {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.event-subtitle-text {
  font-size: 14px;
  color: #888;
}

.view-action-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.view-action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.view-icon-svg {
  width: 16px;
  height: 16px;
}

.section-header-title {
  font-size: 15px;
  font-weight: 600;
  color: #555;
  margin: 28px 0 14px 0;
  padding-left: 4px;
}

/* Replace the previous media query with this */

@media (max-width: 1176px) {
  .school-stat-card{
    padding: 10px;
  }
  .school-metric-label{
    margin-bottom: 0px;
  }
  .school-metric-number{
    font-size: 19px;
  }

  .schedule-container-primary {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    max-width: 100%;
    padding-bottom: 10px;
  }
  .col-sm-4.quick_notifications_main_container_responsive {
    width: 102.333333%;
  }
  .schedule-wrapper-main {
    min-height: 18vh;
  }
  .quick-notifications_container {
    height: auto !important;
  }

  .event-card-item {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 220px;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    margin-bottom: 0;
  }

  .event-info-section {
    width: 100%;
    margin-bottom: 8px;
  }

  .event-time-display {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .event-title-text {
    font-size: 14px;
    margin-bottom: 3px;
  }

  .event-subtitle-text {
    font-size: 12px;
  }

  .view-action-btn {
    align-self: flex-end;
    width: 100%;
    justify-content: center;
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* For very small screens, stack them */
@media (max-width: 768px) {
  .schedule-container-primary {
    flex-wrap: wrap;
  }

  .event-card-item {
    min-width: 100%;
  }
}

/* Color variations */
.card-blue-theme {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #2196f3;
}

.card-blue-theme .view-action-btn {
  color: #1976d2;
}

.card-yellow-theme {
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
  border-left: 4px solid #ffc107;
}

.card-yellow-theme .view-action-btn {
  color: #f57f17;
}

.card-purple-theme {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border-left: 4px solid #9c27b0;
}

.card-purple-theme .view-action-btn {
  color: #7b1fa2;
}

.card-cyan-theme {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  border-left: 4px solid #00bcd4;
}

.card-cyan-theme .view-action-btn {
  color: #0097a7;
}

.card-orange-theme {
  background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
  border-left: 4px solid #ff9800;
}

.card-orange-theme .view-action-btn {
  color: #e65100;
}

.card-green-theme {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
}

.card-green-theme .view-action-btn {
  color: #2e7d32;
}

.date-scroll-container {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.date-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.date-scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.child-line {
  border-left: 3px solid #0e9f00;
  padding-left: 20px;
  margin-left: 108px !important;
}
.quick-notifications_container {
  height: 527px !important;
}
.schedule-scroll {
  height: 315px; /* adjust within 436px total */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px; /* avoid scrollbar overlap */
}

#class_batch_div {
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 5px;
}

.financial-performance-overview_container {
  margin-bottom: 0px;
  height: 521px !important;
}
#fee_component_list td{
  color: #000;
}
.placeholder-black::placeholder {
    color: rgb(85, 85, 85) !important;
    opacity: 2;
}


@media (max-width: 1180px) {
  .col-sm-8.scheduled-programs_main_container {
    width: 100.666667% !important;
    margin-top: 10px;
  }
  .quick-notifications_container {
    margin-top: 10px;
    height: 215px !important;
  }
  .financial-performance-overview_container {
    height: 459px !important;
  }
}
