/* erp.lexx.in - small overrides on top of AdminLTE 2.3.0 (Smart School default theme).
   Matches the live school customisation: white 56px navbar, white 244px sidebar,
   Inter font, teal accent #0D9394, dark green brand #064e3b with gold #F59E0B. */

body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.content-wrapper, .right-side { background-color: #f4f6f9; }

/* Header sits right of the fixed 244px sidebar on desktop (school customisation) */
@media (min-width: 992px) {
  body:not(.sidebar-collapse) .main-header { margin-left: 244px !important; width: calc(100% - 244px) !important; }
  body.sidebar-collapse .main-header { margin-left: 60px !important; width: calc(100% - 60px) !important; }
}
@media (max-width: 991px) {
  .main-header { margin-left: 0 !important; width: 100% !important; }
}

/* Top navbar: white, 56px, like the live school header */
.main-header { background: #fff !important; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.05); height: 56px; min-height: 56px; }
.main-header .logo { display: none !important; }
.main-header > .navbar { background: transparent !important; margin-left: 0 !important; min-height: 56px; height: 56px; display: flex; align-items: center; padding: 0 12px; }
.main-header .sidebar-toggle { width: 34px; height: 34px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; color: #475569; display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0 8px 0 0; font-size: 15px; }
.main-header .sidebar-toggle:hover { background: #f1f5f9; color: #0f172a; }
.ss-header-school-name { font-size: 14px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.ss-header-search-form { margin: 0 4px 0 0; padding: 0; }
.ss-header-search-form .input-group { display: flex; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; height: 34px; width: 200px; padding: 0 10px; }
.ss-header-search-form .input-group:focus-within { width: 240px; border-color: #0D9394; background: #fff; }
.ss-header-search-form input.search-form { background: transparent; border: none; height: 100%; width: 100%; padding: 0; box-shadow: none; outline: none; font-size: 12px; }
.ss-header-search-form .fa-search { color: #0D9394; margin-right: 6px; font-size: 12px; }
.navbar-custom-menu .user-menu > a { color: #334155; padding-top: 12px; padding-bottom: 12px; }
.navbar-custom-menu .user-menu > a:hover { background: #f1f5f9; }
.navbar-custom-menu .user-menu .user-name { font-weight: 600; font-size: 13px; color: #0f172a; }
.navbar-custom-menu .dropdown-menu { border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); border: 1px solid #e2e8f0; }

/* Sidebar: brand header, search, promo card */
.jg-sidebar-brand { padding: 14px 12px 12px; border-bottom: 1px solid #e2e8f0; }
.jg-brand-wrap { display: flex; align-items: center; gap: 10px; }
.jg-brand-wrap:hover { text-decoration: none; }
.jg-brand-logo { flex: none; }
.jg-brand-title { font-size: 13px; font-weight: 800; line-height: 1.25; color: #064e3b; margin: 0; letter-spacing: .01em; }
.jg-brand-tagline { font-size: 11px; color: #64748b; margin: 2px 0 0; }
.sidebar-search { padding: 10px 12px; }
.sidebar-search .input-group { display: flex; }
.sidebar-search input { border-radius: 16px 0 0 16px !important; }
.sidebar-search .btn { border-radius: 0 16px 16px 0 !important; background: #0D9394; border-color: #0D9394; color: #fff; }
.jg-sidebar-promo { margin: 16px 12px; padding: 14px; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; text-align: center; }
.jg-promo-icon { font-size: 26px; }
.jg-promo-title { font-size: 13px; color: #064e3b; margin: 6px 0 4px; }
.jg-promo-desc { font-size: 12px; color: #475569; margin: 0; }
.sidebar-menu .treeview-menu > li > a { padding: 7px 5px 7px 32px; font-size: 13px; }
.sidebar-menu .treeview-menu > li.active > a { color: #0D9394; font-weight: 600; }

/* Content header + boxes */
.content-header { padding: 15px 15px 0; }
.content-header > h1 { font-size: 22px; }
.content-header > h1 > small { font-size: 14px; }
.content { padding: 15px; }
.box { border-top: 3px solid #d2d6de; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.box.box-primary { border-top-color: #0D9394; }
.box .box-title { font-size: 16px; }
.table > thead > tr > th { background: #f8fafc; }
.label-paid { background: #00a65a; }
.label-due { background: #dd4b39; }
.num { text-align: right; }

/* Login page: dark green gradient, white card, school logo */
.login-page .login-box { margin: 0; }
.login-page { min-height: 100vh; background: linear-gradient(135deg, #064e3b 0%, #0D9394 100%); display: flex; align-items: center; justify-content: center; padding: 20px; font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }
.login-box { width: 400px; max-width: 100%; }
.login-logo { text-align: center; margin-bottom: 18px; color: #fff; }
.login-logo .school-name { font-size: 20px; font-weight: 800; margin-top: 10px; line-height: 1.3; }
.login-logo .school-tag { font-size: 13px; color: #d1fae5; margin-top: 2px; }
.login-card { background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 26px 28px; }
.login-card h3 { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.login-card .login-sub { font-size: 13px; color: #64748b; margin-bottom: 18px; }
.login-card .form-group { position: relative; margin-bottom: 14px; }
.login-card .form-control { height: 42px; padding-left: 36px; border-radius: 8px; }
.login-card .form-group .fa { position: absolute; left: 12px; top: 13px; color: #94a3b8; font-size: 14px; z-index: 2; }
.login-card .btn-signin { width: 100%; height: 42px; background: #0D9394; border-color: #0D9394; color: #fff; font-weight: 600; border-radius: 8px; }
.login-card .btn-signin:hover { background: #0b7c7d; border-color: #0b7c7d; }
.login-card .login-note { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 14px; }
