/* Spark Admin adapter for the billing application views. */
:root {
  --sidebar-width: 240px;
  --sidebar-minimized-width: 72px;
  --app-sidebar: var(--sidebar-width);
  --app-green: #072f1f;
  --app-lime: #b4f105;
  --app-border: #dfe7e2;
}

html, body { min-height: 100%; }
body { overflow-x: hidden; }
.wrapper { min-height: 100vh; }
.login-company-logo { max-height: 64px; max-width: 210px; object-fit: contain; }

.navbar-custom {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  height: 68px;
  justify-content: space-between;
  margin-left: var(--app-sidebar);
  max-height: 68px;
  min-height: 68px;
  overflow: visible;
  padding: .65rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: margin-left .3s ease;
}
.navbar-welcome { display: flex; flex-direction: column; line-height: 1.25; }
.navbar-welcome small { color: var(--text-muted, #6c7e75); font-size: .78rem; margin-top: .2rem; }
.btn-icon { align-items: center; background: #fff; border: 1px solid var(--app-border); border-radius: 12px; color: var(--app-green); height: 42px; justify-content: center; width: 42px; }
.navbar-actions { align-items: center; display: flex; gap: .65rem; margin-left: auto; }
.navbar-profile-btn { align-items: center; display: flex; gap: .55rem; height: 44px; max-height: 44px; padding: .2rem .35rem !important; }
.navbar-profile-btn > img {
  border: 2px solid #d7e3dc;
  border-radius: 50%;
  display: block;
  flex: 0 0 36px;
  height: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
  object-fit: cover;
  width: 36px !important;
}
.navbar-profile-btn > span { font-size: .84rem; font-weight: 700; }
.btn-quick-action { min-height: 40px; padding: .55rem .9rem; }
.sidebar-wrapper { padding: 1.35rem 1rem; }
.sidebar-brand { font-size: 1.08rem; margin-bottom: 1.2rem; }
.sidebar-brand-icon, .sidebar-brand-icon i { font-size: 1.15rem !important; }
.sidebar-menu-title { font-size: .65rem; margin: 1rem .65rem .4rem; }
.sidebar-menu-link { font-size: .85rem; gap: .7rem; padding: .6rem .7rem; }
.sidebar-menu-link i, body.sidebar-minimized .sidebar-menu-link i { font-size: .95rem; width: 18px; }
.sidebar-profile { align-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; display: flex; gap: .75rem; margin: 1rem 0 1.25rem; padding: .75rem; }
.sidebar-profile img { border-radius: 50%; height: 38px; object-fit: cover; width: 38px; }
.sidebar-profile div { display: flex; flex-direction: column; min-width: 0; }
.sidebar-profile strong { color: #fff; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { color: #9fb3aa; font-size: .72rem; }
.status-dot { background: #22c55e; border-radius: 50%; display: inline-block; height: 7px; margin-right: .3rem; width: 7px; }
.financial-year-badge { background: rgba(180,241,5,.1); border: 1px solid rgba(180,241,5,.2); border-radius: 12px; color: #fff; display: flex; flex-direction: column; margin-bottom: 1.25rem; padding: .65rem .8rem; }
.financial-year-badge small { color: #b8c9c1; font-size: .68rem; }
.financial-year-badge strong { color: var(--app-lime); font-size: .85rem; }
.menu-badge { background: var(--app-lime); border-radius: 10px; color: #132218; font-size: .6rem; font-weight: 800; margin-left: auto; padding: .12rem .4rem; text-transform: uppercase; }

.content-wrapper {
  background: var(--bs-body-bg, #f4f6f5);
  margin-left: var(--app-sidebar);
  min-height: calc(100vh - 142px);
  padding: 1rem 2.5rem 2rem;
  transition: margin-left .3s ease;
}
.content-header { margin-bottom: 1.25rem; padding: 0; }
.content-header h1 { color: #0b130f; display: flex; flex-direction: column; font-size: 1.55rem; font-weight: 750; gap: .25rem; letter-spacing: -.03em; line-height: 1.2; margin: 0; }
.content-header h1 small { color: #6c7e75; display: block; font-size: .78rem; font-weight: 500; letter-spacing: 0; }
.content-header .breadcrumb { background: transparent; color: #6c7e75; font-size: .78rem; margin: .35rem 0 0; padding: 0; }
.content { padding: 0; }

.box, .card, .info-box, .small-box {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(5,28,18,.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.info-box {
  align-items: center;
  display: flex;
  min-height: 82px;
  padding: .85rem 1rem;
}
.info-box-icon {
  align-items: center;
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  margin-right: .85rem;
  width: 44px;
}
.info-box-icon i { font-size: 1rem !important; }
.info-box-content { display: flex; flex: 1; flex-direction: column; line-height: 1.3; min-width: 0; }
.info-box-content .text-bold { color: #5f7268; font-size: .72rem; font-weight: 650; }
.info-box-number { color: #0b130f; display: block; font-size: 1.05rem; font-weight: 750; margin-top: .2rem; }
.box-header { align-items: center; border-bottom: 1px solid #edf1ef; display: flex; justify-content: space-between; padding: 1.15rem 1.35rem; }
.box-title { font-size: 1rem !important; font-weight: 700; margin: 0; }
.box-body { padding: 1.35rem; }
.box-footer { background: #fafcfb; border-top: 1px solid #edf1ef; padding: 1rem 1.35rem; }
.box.box-primary, .box.box-info, .box.box-success, .box.box-warning, .box.box-danger { border-top: 1px solid var(--app-border); }
.box-header.with-border { border-bottom: 1px solid #edf1ef; }
.box-tools { margin-left: auto; }

.btn { border-radius: 10px; font-weight: 650; }
.btn-primary, .btn-success { background: var(--app-green); border-color: var(--app-green); }
.btn-primary:hover, .btn-success:hover { background: #0b442e; border-color: #0b442e; }
.btn-warning { background: var(--app-lime); border-color: var(--app-lime); color: #132218; }
.form-control, .form-select, .select2-container--default .select2-selection--single { border: 1px solid #cedad3; border-radius: 10px; min-height: 42px; }
.form-control:focus, .form-select:focus { border-color: #4d765f; box-shadow: 0 0 0 .2rem rgba(7,47,31,.12); }
.form-group { margin-bottom: 1rem; }
label { color: #344b40; font-size: .82rem; font-weight: 650; margin-bottom: .4rem; }
.input-group-addon { align-items: center; background: #f5f8f6; border: 1px solid #cedad3; display: flex; padding: .5rem .75rem; }

.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead > tr > th { background: #f5f8f6; border-bottom: 1px solid #dfe7e2; color: #4f655a; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: .85rem; text-transform: uppercase; }
.table > tbody > tr > td { border-color: #edf1ef; padding: .8rem .85rem; vertical-align: middle; }
.table-responsive { border-radius: 12px; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border: 1px solid #cedad3; border-radius: 9px; padding: .4rem .65rem; }

.main-footer { align-items: center; background: #fff; border-top: 1px solid var(--app-border); color: #6c7e75; display: flex; font-size: .78rem; justify-content: space-between; margin-left: var(--app-sidebar); min-height: 64px; padding: 1rem 2.5rem; transition: margin-left .3s ease; }
.footer-version { font-weight: 700; }
body.sidebar-minimized .navbar-custom, body.sidebar-minimized .content-wrapper, body.sidebar-minimized .main-footer { margin-left: var(--sidebar-minimized-width, 92px); }

.alert { border: 0; border-radius: 12px; }
.pagination > li > a, .pagination > li > span { color: var(--app-green); }
.pagination > .active > a, .pagination > .active > span { background: var(--app-green); border-color: var(--app-green); }
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.text-aqua { color: #0d9488 !important; }
.bg-aqua, .bg-blue { background-color: #0d9488 !important; }
.bg-green { background-color: #16a34a !important; }
.bg-yellow { background-color: #eab308 !important; }
.bg-red { background-color: #dc2626 !important; }
.hide { display: none !important; }

@media (max-width: 991.98px) {
  .navbar-custom, .content-wrapper, .main-footer { margin-left: 0; }
  .navbar-custom { height: 64px; max-height: 64px; min-height: 64px; padding: .55rem 1.25rem; }
  .content-wrapper { padding: 1.25rem; }
  .main-footer { padding: 1rem 1.25rem; }
  .navbar-welcome small { display: none; }
}
@media (max-width: 575.98px) {
  .navbar-profile-btn span, .btn-quick-action span { display: none; }
  .navbar-actions { gap: .4rem; }
  .content-header h1 { font-size: 1.35rem; }
  .box-body { padding: 1rem; }
}
