:root {
  --app-primary: #0f2747;
  --app-primary-hover: #163b66;
  --app-primary-soft: #e9eef5;
  --app-sidebar: #0f2747;
  --app-sidebar-hover: #163b66;
  --app-sidebar-active: #f5f7fa;
  --app-accent: #31577f;
  --app-bg: #f5f7fa;
  --app-surface: #ffffff;
  --app-surface-muted: #f8fafc;
  --app-border: #e2e8f0;
  --app-border-strong: #cbd5e1;
  --app-text: #1f2937;
  --app-muted: #64748b;
  --focus-ring: 0 0 0 3px rgba(15, 39, 71, .16);
  --soft-shadow: 0 2px 8px rgba(15, 39, 71, .05);
}

html,
body {
  color-scheme: light only;
}

::selection {
  background: #dbe5f1;
  color: #0f2747;
}

.app-sidebar,
.app-shell {
  transition: none !important;
}

.app-sidebar {
  background: #0f2747;
}

.sidebar-header {
  min-height: 82px;
  padding: 1rem 1.1rem;
}

.sidebar-brand,
.app-brand-lockup {
  display: block;
  flex: none;
  width: 100%;
}

.sidebar-brand .brand-copy,
.login-brand .brand-copy {
  display: flex;
  align-items: center;
  text-align: center;
}

.sidebar-brand .brand-copy strong,
.login-brand .brand-copy strong {
  font-size: 1rem;
  letter-spacing: .01em;
}

.sidebar-brand .brand-copy small,
.login-brand .brand-copy small {
  margin-top: .22rem;
  font-size: .76rem;
}

.brand-mark,
.user-avatar,
.home-section-icon,
.bi {
  display: none !important;
}

.sidebar-link {
  gap: 0;
  padding-inline: .8rem;
}

.sidebar-subnav {
  margin-right: .7rem;
}

.current-user {
  padding-inline: .45rem;
}

.sidebar-logout {
  gap: 0;
  padding-inline: .75rem;
}

.mobile-menu-button {
  width: auto;
  min-width: 58px;
  padding-inline: .7rem;
  color: var(--app-primary);
  font-size: .78rem;
  font-weight: 700;
}

.btn-primary,
.bg-primary {
  border-color: #0f2747 !important;
  background: #0f2747 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  border-color: #163b66 !important;
  background: #163b66 !important;
}

.btn-outline-primary {
  border-color: #8fa5bf;
  color: #0f2747;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: #0f2747;
  background: #0f2747;
  color: #fff;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #708dab;
  box-shadow: var(--focus-ring);
}

.form-check-input:checked {
  border-color: #0f2747;
  background-color: #0f2747;
}

.nav-tabs .nav-link:hover {
  border-bottom-color: #a8b8ca;
}

.nav-tabs .nav-link.active {
  border-bottom-color: #0f2747;
  color: #0f2747;
}

.page-item.active .page-link {
  border-color: #0f2747;
  background: #0f2747;
}

.login-panel {
  box-shadow: 0 10px 30px rgba(15, 39, 71, .08);
}

.login-shell {
  width: min(100%, 460px);
}

.login-brand {
  background: #0f2747;
  padding: 1.35rem 1.75rem;
}

.login-form {
  padding: 1.75rem;
}

.login-form h1 {
  margin-bottom: 1.35rem;
}

.login-form .form-control,
.login-form .btn-primary {
  min-height: 44px;
}

.login-footer,
.app-footer {
  line-height: 1.6;
  text-align: center;
}

.login-footer a,
.app-footer a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover,
.login-footer a:focus,
.app-footer a:hover,
.app-footer a:focus {
  color: var(--app-primary);
  text-decoration: underline;
}

.app-footer {
  align-items: center;
  flex-direction: row;
  justify-content: center;
  padding: .7rem 1rem;
}

.home-section-card {
  display: flex;
  height: 100%;
}

.home-section-card-body {
  width: 100%;
  height: 100%;
  min-height: 132px;
  padding: 1rem 1.1rem !important;
}

.home-section-card-body > h5 {
  margin-bottom: 1.1rem;
  line-height: 1.45;
}

.home-section-card-body > .btn:last-child,
.home-section-card-body > a.btn:last-child {
  align-self: flex-start;
  margin-top: auto;
}

#attendanceTable .cell-status:focus,
#salariesTable .pay-input:focus {
  border-color: #708dab !important;
  outline-color: #0f2747;
  box-shadow: var(--focus-ring) !important;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transition: none;
  }
}

@media (max-width: 575.98px) {
  .login-form,
  .login-brand {
    padding-inline: 1.25rem;
  }

  .app-footer {
    align-items: center;
    flex-direction: row;
    padding-inline: .85rem;
  }
}

@media print {
  .login-footer {
    display: none !important;
  }
}
