body {
  font-size: .875rem;
  overflow-x: hidden;
}

.text-muted {
    color: #176ebb!important;
}

.navbar {
	justify-content: left;
}

.navbar-brand{
	  min-width: 250px;
}

#search-box{
	width: 368px !important;
	margin-left: 30px;
	background-color: #fff;
	border: 1px solid #495057;
	padding: 6px 12px;
	border-radius: 4px;
	color: #333;
}

#search-box:focus{
	width: 368px !important;
	margin-left: 30px;
	background-color: #fff;
	border-color: #282761;
	outline: none;
	box-shadow: 0 0 0 3px rgba(40, 39, 97, .15);
}

	.img_cont{
		position: relative;
		height: 70px;
		width: 70px;
		float: left;
	}
	
	.user_img{
		height: 70px;
		width: 70px;
		border:1.5px solid #f5f6fa;
	}
	.online_icon{
		position: absolute;
		height: 15px;
		width:15px;
		background-color: #4cd137;
		border-radius: 50%;
		bottom: 0.2em;
		right: 0.4em;
		border:1.5px solid white;
	}
	.offline{
		background-color: #c23616 !important;
	}
	.user_info{
		margin-top: auto;
		margin-bottom: auto;
		margin-left: 15px;
		float: left;
	}
	.user_info span{
		font-size: 20px;
		color: #333;
	}
	.user_info p{
		font-size: 13px;
		color: #333;
		font-weight: bold;
	}


.suggesstion-box {
    position: fixed;
    width: 500px;
    left: 351px;
    z-index: 100;
}

@media only screen and (max-width: 900px) {
	.suggesstion-box {
		position: absolute;
		width: 500px;
		left: 0px;
		z-index: 100;
	}

	.center {
		padding-left: 0px;
		width: 100%;
	}
}



.suggesstion-box ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.suggesstion-box .active {
    margin-top: -1px;
    padding-left: 9px;
    line-height: 27px;
    color: #333;
    background-color: #f3f3f3;
    text-align: left;
    border: 1px solid #cacaca;

    width: 400px;
}


 

.table td, .table th {
    padding: .55rem !important;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}
.bg-dark {
	background-color: #282761 !important
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: .7rem 1rem !important;
}
.sidebar-sticky::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.sidebar-sticky {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}


.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Main content
 */

main[role="main"] {
  padding: 24px 30px !important;
}

/*
 * Sidebar
 */

.sidebar {
  min-width: 250px;
  z-index: 100; /* Behind the navbar */
  padding: 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
  position: fixed;
  top: 110px; /* Fallback; synced to the real header height by JS in header.inc.php */
  left: 0;
  width: 16.6667%; /* matches the .col-md-2 width of the .sidebar column */
  min-width: 250px;
  height: calc(100vh - 110px);
  padding-top: 1rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
  background-color: #f8f9fa; /* opaque so scrolling content never shows through */
  z-index: 100; /* paint above page content, below the sticky .site-header (101) */
}

.menu-search-wrap {
  padding: 0 14px 14px;
}

.menu-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: #333;
  background-color: #fff;
}

.menu-search-input:focus {
  outline: none;
  border-color: #282761;
  box-shadow: 0 0 0 3px rgba(40, 39, 97, .15);
}

.sidebar .nav-item {
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.sidebar .nav-link {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.sidebar .nav-link .feather,
.sidebar .nav-link i[data-lucide],
.sidebar .nav-link svg.lucide {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-right: 0;
  color: #000;
}

.sidebar .nav-link .mailcount {
  margin-left: 8px;
}

.sidebar .nav-link .pendingcount {
  margin-left: 4px;
}

.sidebar .nav-link .mailcount + .pendingcount {
  margin-left: -6px;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar-brand {
  font-size: 1rem;
  background-color: #FFF;
  border-bottom: 1px solid #ccc;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
	
	
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/*
 * Top strip (Role / Username) + main nav
 */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 101;
}

.topbar-strip {
  position: relative;
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  background-color: #282761;
  color: #fff;
  padding: 6px 20px;
  font-size: 13px;
  box-sizing: border-box;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar-item i[data-lucide],
.topbar-item svg.lucide {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #e2a901;
}

.main-topnav {
  border-bottom: 3px solid #e2a901;
}

.main-topnav .menuburger {
  color: #282761;
}

.main-topnav .form-control-dark {
  color: #333;
  background-color: #f1f1f1;
  border-color: #ccc;
}

.main-topnav .form-control-dark:focus {
  border-color: #282761;
  box-shadow: 0 0 0 3px rgba(40, 39, 97, .15);
}

.header-search-form {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 420px;
  margin-left: 20px !important;
  background-color: #f4f5f7;
  border: 1px solid #dcdfe4;
  border-radius: 24px;
  padding: 4px 6px 4px 16px;
  gap: 8px;
  box-sizing: border-box;
}

.header-search-form .header-search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #999;
}

.header-search-form #search-box {
  flex: 1 1 auto;
  width: auto !important;
  margin-left: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 6px 4px !important;
}

.header-search-form #search-box:focus {
  border: none !important;
  box-shadow: none !important;
}

.header-search-btn {
  flex-shrink: 0;
  border: none;
  background-color: #282761;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
}

.header-search-btn:hover {
  background-color: #1d1c4d;
}

@media (max-width: 576px) {
  .topbar-strip {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    padding: 6px 10px;
  }
  .topbar-item strong {
    display: none;
  }

  .header-search-form {
    max-width: 100%;
    margin-left: 8px !important;
    margin-right: 8px;
    padding: 4px 4px 4px 12px;
  }
  .header-search-btn {
    padding: 8px 12px;
  }
}

/*
 * Utilities
 */

.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }

/*
 * Dashboard widgets
 */

.dash-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #282761 0%, #1d1c4d 100%);
    border-radius: 4px;
    margin: 0 0 20px 0;
    padding: 30px 35px;
    color: #fff;
}
.dash-hero::before, .dash-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.dash-hero::before { width: 220px; height: 220px; top: -90px; right: 60px; }
.dash-hero::after  { width: 140px; height: 140px; top: 40px; right: -30px; background: rgba(255,255,255,0.08); }
.dash-hero-title { position: relative; z-index: 1; font-size: 26px; font-weight: 800; }
.dash-hero-sub {
    position: relative; z-index: 1; margin-top: 10px; font-size: 14px;
    color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.dash-hero-badge {
    background: rgba(255,255,255,0.18);
    padding: 3px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

.dash-feed-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 15px; margin: 0 0 20px 0; }
.dash-feed-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 3px; padding: 20px; }
.dash-feed-header { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid #eef1f4; }
.dash-feed-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dash-feed-title { font-weight: 700; font-size: 14px; color: #222; flex: 1; }
.dash-feed-add { font-size: 11px; color: #8a93a0; text-decoration: none; }
.dash-feed-item { display: block; padding: 10px 0; border-bottom: 1px solid #f2f4f6; text-decoration: none; }
.dash-feed-item:last-child { border-bottom: none; }
.dash-feed-item-title { font-weight: 700; font-size: 13px; color: #222; }
.dash-feed-item-sub { font-size: 12px; color: #8a93a0; margin-top: 2px; }
.dash-feed-empty { font-size: 12px; color: #8a93a0; padding: 10px 0; }

.dash-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin: 0 0 30px 0; }
.dash-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 3px; padding: 0 20px 18px 20px; position: relative; overflow: hidden; }
.dash-card-top { height: 4px; background: #282761; margin: 0 -20px 15px -20px; }
.dash-card-active { box-shadow: 0 4px 12px rgba(40,39,97,0.15); }
.dash-card-active .dash-card-top { background: #e2a901; }
.dash-card-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #5a6572; }
.dash-card-value { font-size: 32px; font-weight: 800; color: #111; line-height: 1.4; }
.dash-card-sub { font-size: 12px; color: #8a93a0; }
.dash-card-link { text-decoration: none; display: block; }

.dash-section-title { font-size: 17px; font-weight: 700; color: #222; border-left: 4px solid #282761; padding-left: 10px; margin: 0 0 10px 0; }

.dash-cards-4 { grid-template-columns: repeat(4, 1fr); }

.dash-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0 0 30px 0; }
.dash-charts-2 { grid-template-columns: repeat(2, 1fr); }

.dash-stats-wrap .table .thead-dark th { background-color: #282761; border-color: #282761; }

/*
 * Site footer
 */

.site-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: 15px;
    padding: 18px 20px;
    background: #fff;
}
.site-footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
}
.site-footer-logo { width: 42px; height: 42px; flex-shrink: 0; }
.site-footer-text { font-size: 12px; line-height: 1.6; color: #5a6572; }
.site-footer-text a { color: #282761; font-weight: 600; text-decoration: none; }
.site-footer-text a:hover { color: #e2a901; text-decoration: underline; }
.site-footer-meta { color: #9aa2ab; margin-top: 2px; }

@media (max-width: 576px) {
    .site-footer-inner { flex-direction: column; text-align: center; gap: 8px; }
}
.dash-chart-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 3px; padding: 20px; }
.dash-chart-title { font-size: 15px; font-weight: 700; color: #222; }
.dash-chart-sub { font-size: 12px; color: #282761; margin-bottom: 12px; }
.dash-chart-body { position: relative; height: 260px; }

.dash-notice { background: #fff; border: 1px solid #e3e6ea; border-radius: 3px; padding: 20px; margin: 0 0 20px 0; }
.dash-notice-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #eef1f4; }
.dash-notice-title { font-weight: 700; font-size: 15px; color: #222; }
.dash-notice-actions a { font-size: 11px; color: #8a93a0; text-decoration: none; margin-left: 10px; }
.dash-notice-actions a:hover { color: #282761; }
.dash-notice-body { font-size: 13px; color: #444; line-height: 1.7; }
.dash-notice-attachment { margin-top: 14px; }

@media (max-width: 1200px) {
    .dash-cards { grid-template-columns: repeat(3, 1fr); }
    .dash-feed-row { grid-template-columns: 1fr; }
    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-charts { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .dash-cards { grid-template-columns: 1fr; }
    .dash-stats-grid { grid-template-columns: 1fr; }

    main[role="main"] {
        padding: 16px 14px !important;
    }

    .dash-hero {
        padding: 20px 18px;
    }
    .dash-hero-title { font-size: 20px; }
    .dash-hero-sub { font-size: 13px; gap: 8px; }

    .dash-card-value { font-size: 26px; }

    .dash-section-title { font-size: 15px; }

    /* Legacy raw layout table (school stats + chart) used inline widths that
       don't reflow on their own - force the two cells to stack. */
    .dash-stats-wrap > table,
    .dash-stats-wrap > table > tbody,
    .dash-stats-wrap > table > tbody > tr,
    .dash-stats-wrap > table > tbody > tr > td {
        display: block !important;
        width: 100% !important;
    }
    .dash-stats-wrap > table > tbody > tr > td {
        padding: 0 0 15px 0 !important;
    }

    /* Generic safety net: legacy views render plain <table> markup with no
       responsive wrapper. Let any table that doesn't fit scroll horizontally
       instead of breaking the page layout. */
    main[role="main"] table {
        max-width: 100%;
    }
    main[role="main"] table:not(.dash-stats-wrap table) {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}