:root {
  --app-primary: #1f5a4c;
  --app-primary-hover: #18483d;
  --app-primary-soft: #e8f1ee;
  --app-sidebar: #18352f;
  --app-sidebar-hover: #24473f;
  --app-sidebar-active: #f1f6f4;
  --app-accent: #b38a45;
  --app-bg: #f4f5f3;
  --app-surface: #ffffff;
  --app-surface-muted: #f8f9f7;
  --app-border: #dfe3df;
  --app-border-strong: #ccd2cd;
  --app-text: #26312e;
  --app-muted: #6a7571;
  --app-success: #217a52;
  --app-warning: #9a6815;
  --app-danger: #b23b3b;
  --app-info: #356b8a;
  --sidebar-width: 264px;
  --sidebar-collapsed-width: 76px;
  --focus-ring: 0 0 0 3px rgba(31, 90, 76, .16);
  --soft-shadow: 0 2px 8px rgba(25, 41, 36, .05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--app-primary);
  text-decoration: none;
}

a:hover {
  color: var(--app-primary-hover);
}

::selection {
  background: #cfe1db;
  color: #102b24;
}

:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 1100;
  padding: .55rem .85rem;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--app-surface);
  color: var(--app-text);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Application shell */
.app-sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 1040;
  display: flex;
  width: var(--sidebar-width);
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background: var(--app-sidebar);
  color: #fff;
}

.sidebar-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-brand,
.app-brand-lockup {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: .7rem;
}

.sidebar-brand,
.sidebar-brand:hover {
  color: #fff;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-copy strong {
  overflow: hidden;
  font-size: .96rem;
  text-overflow: ellipsis;
}

.brand-copy small {
  margin-top: .18rem;
  color: rgba(255, 255, 255, .66);
  font-size: .73rem;
}

.sidebar-collapse-button,
.mobile-menu-button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.sidebar-collapse-button {
  color: rgba(255, 255, 255, .72);
}

.sidebar-collapse-button:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.sidebar-nav {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: .8rem;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
  scrollbar-width: thin;
}

.sidebar-section-label {
  padding: 1.05rem .7rem .4rem;
  color: rgba(255, 255, 255, .48);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.sidebar-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: .72rem;
  margin-bottom: 2px;
  padding: .55rem .72rem;
  border-radius: 5px;
  color: rgba(255, 255, 255, .76);
  font-size: .86rem;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link.is-section-active {
  background: var(--app-sidebar-hover);
  color: #fff;
}

.sidebar-link.is-active {
  background: var(--app-sidebar-active);
  color: var(--app-sidebar);
  font-weight: 700;
}

.sidebar-link > i {
  width: 20px;
  flex: 0 0 20px;
  font-size: 1rem;
  text-align: center;
}

.sidebar-subnav {
  margin: .18rem .78rem .55rem 0;
  padding-right: .45rem;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.sidebar-subnav .sidebar-link {
  min-height: 36px;
  padding-block: .42rem;
  font-size: .8rem;
}

.sidebar-footer {
  padding: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.current-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .65rem;
  margin-bottom: .55rem;
  padding: .25rem;
}

.user-avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.user-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.3;
}

.user-copy small {
  color: rgba(255, 255, 255, .52);
  font-size: .68rem;
}

.user-copy strong {
  overflow: hidden;
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: .7rem;
  padding: .45rem .72rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  font-size: .8rem;
  text-align: right;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  margin-inline-start: var(--sidebar-width);
  flex-direction: column;
}

.app-topbar {
  display: none;
}

.app-content {
  width: 100%;
  flex: 1;
}

.app-content:focus {
  outline: 0;
}

.app-content > .container,
.app-content > .container-fluid {
  width: min(100%, 1560px);
  margin-inline: auto;
  padding: 1.6rem 1.8rem !important;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.8rem;
  border-top: 1px solid var(--app-border);
  background: var(--app-surface);
  color: var(--app-muted);
  font-size: .72rem;
}

.sidebar-overlay {
  display: none;
}

/* Typography and page headers */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--app-text);
  font-weight: 700;
}

h1,
h2 {
  font-size: 1.45rem;
}

h3,
h4 {
  font-size: 1.2rem;
}

h5,
h6 {
  font-size: 1rem;
}

.app-content h2.fw-bold,
.app-content h4.fw-bold {
  margin-bottom: .3rem;
  font-size: 1.34rem;
  font-weight: 700 !important;
}

.app-content h2.fw-bold > i,
.app-content h4.fw-bold > i {
  margin-left: .35rem;
  color: var(--app-primary);
  font-size: 1.05rem;
}

.app-content > .container > .row:first-child,
.app-content > .container-fluid > .row:first-child {
  row-gap: .75rem;
}

.text-muted {
  color: var(--app-muted) !important;
}

.text-primary { color: var(--app-primary) !important; }
.text-success { color: var(--app-success) !important; }
.text-danger { color: var(--app-danger) !important; }
.text-warning { color: var(--app-warning) !important; }
.text-info { color: var(--app-info) !important; }

/* Panels and cards */
.card {
  border: 1px solid var(--app-border) !important;
  border-radius: 7px;
  background: var(--app-surface);
  box-shadow: var(--soft-shadow) !important;
  color: var(--app-text);
}

.card-header,
.card-footer {
  border-color: var(--app-border);
  background: var(--app-surface-muted) !important;
}

.card-header {
  padding: .8rem 1rem;
}

.card-body {
  color: var(--app-text);
}

.card-title {
  color: var(--app-text);
}

.display-4 {
  color: var(--app-primary);
  font-size: 2rem;
  line-height: 1;
}

/* Buttons */
.btn {
  min-height: 38px;
  padding: .46rem .92rem;
  border-radius: 5px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: none !important;
}

.btn-sm {
  min-height: 32px;
  padding: .32rem .65rem;
  font-size: .78rem;
}

.btn-lg {
  min-height: 44px;
  padding: .62rem 1.15rem;
  font-size: .92rem;
}

.btn-primary,
.bg-primary {
  border-color: var(--app-primary) !important;
  background: var(--app-primary) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  border-color: var(--app-primary-hover) !important;
  background: var(--app-primary-hover) !important;
}

.btn-outline-primary {
  border-color: #84a99f;
  color: var(--app-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: var(--app-primary);
  background: var(--app-primary);
  color: #fff;
}

.btn-outline-secondary,
.btn-secondary {
  border-color: var(--app-border-strong);
  background: var(--app-surface);
  color: #4c5854;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  border-color: #9ea9a3;
  background: #edf0ed;
  color: var(--app-text);
}

.btn-success { border-color: var(--app-success); background: var(--app-success); }
.btn-warning { border-color: #b78124; background: #b78124; color: #fff; }
.btn-danger { border-color: var(--app-danger); background: var(--app-danger); }
.btn-outline-danger { border-color: #d7a4a4; color: var(--app-danger); }
.btn-outline-warning { border-color: #d9bd87; color: var(--app-warning); }

.btn-link {
  min-height: auto;
  padding: 0;
  color: var(--app-primary);
}

.btn > i {
  margin-left: .28rem;
}

/* Forms */
.form-label,
label.small {
  margin-bottom: .38rem;
  color: #45504c;
  font-size: .8rem;
  font-weight: 600;
}

.form-control,
.form-select {
  min-height: 40px;
  border: 1px solid var(--app-border-strong);
  border-radius: 5px;
  background-color: var(--app-surface);
  color: var(--app-text);
  font-size: .86rem;
}

.form-control-sm,
.form-select-sm {
  min-height: 34px;
  padding-block: .28rem;
  font-size: .78rem;
}

textarea.form-control {
  min-height: 84px;
}

.form-control::placeholder {
  color: #929b97;
  opacity: 1;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #6d9a8f;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: var(--focus-ring);
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background: #eef0ee;
  color: #68716e;
}

.form-check-input {
  border-color: #9da7a2;
}

.form-check-input:checked {
  border-color: var(--app-primary);
  background-color: var(--app-primary);
}

.form-text {
  color: var(--app-muted);
  font-size: .73rem;
}

.field-validation-error,
.validation-summary-errors {
  color: var(--app-danger);
}

input[type="number"],
input[type="date"],
.font-monospace {
  direction: ltr;
}

.font-monospace {
  font-family: Consolas, "Courier New", monospace !important;
}

/* Tables */
.table-responsive,
[style*="overflow:auto"],
[style*="overflow: auto"] {
  scrollbar-color: #b8c0bc transparent;
  scrollbar-width: thin;
}

.table {
  --bs-table-bg: var(--app-surface);
  --bs-table-color: var(--app-text);
  --bs-table-border-color: var(--app-border);
  --bs-table-striped-bg: #fafbf9;
  --bs-table-hover-bg: #f2f6f4;
  margin-bottom: 0;
  border-color: var(--app-border);
  color: var(--app-text);
  font-size: .79rem;
}

.table > :not(caption) > * > * {
  padding: .62rem .7rem;
  border-color: var(--app-border);
  vertical-align: middle;
}

.table thead th,
.table-dark,
.table-light {
  --bs-table-bg: #eef1ee;
  --bs-table-color: #34413d;
  --bs-table-border-color: var(--app-border-strong);
}

.table thead th {
  border-bottom-width: 1px;
  background: #eef1ee !important;
  color: #34413d !important;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.table-bordered > :not(caption) > * {
  border-width: 0;
}

.table-bordered > :not(caption) > * > * {
  border-width: 0 0 1px;
}

.table tbody tr:last-child > * {
  border-bottom-width: 0;
}

.table tfoot td {
  background: #f1f4f1 !important;
  color: var(--app-text) !important;
  font-weight: 700;
}

.table .btn {
  min-height: 29px;
  padding: .25rem .5rem;
  font-size: .72rem;
}

.table .badge {
  font-size: .68rem;
}

/* Status and feedback */
.alert {
  padding: .72rem .9rem;
  border-width: 1px;
  border-radius: 5px;
  box-shadow: none !important;
  font-size: .82rem;
}

.alert-success { border-color: #b8dac9; background: #edf7f2; color: #195f40; }
.alert-danger { border-color: #e6bcbc; background: #fcf1f1; color: #933131; }
.alert-warning { border-color: #e7d2a4; background: #fff8e8; color: #7f5713; }
.alert-info { border-color: #bdd5e2; background: #eff7fb; color: #285b77; }

.badge {
  border-radius: 4px;
  padding: .38em .58em;
  font-weight: 600;
}

.badge.bg-success,
.bg-success { background: var(--app-success) !important; color: #fff; }
.badge.bg-danger,
.bg-danger { background: var(--app-danger) !important; }
.badge.bg-warning,
.bg-warning { background: #b78124 !important; color: #fff !important; }
.badge.bg-info,
.bg-info { background: var(--app-info) !important; color: #fff !important; }
.badge.bg-secondary,
.bg-secondary { background: #66736e !important; color: #fff; }

/* Navigation, dropdowns and dialogs */
.nav-tabs {
  gap: .2rem;
  border-bottom-color: var(--app-border);
}

.nav-tabs .nav-link {
  margin-bottom: -1px;
  padding: .55rem .8rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--app-muted);
  font-size: .82rem;
  font-weight: 600;
}

.nav-tabs .nav-link:hover {
  border-bottom-color: #a9bdb7;
  color: var(--app-text);
}

.nav-tabs .nav-link.active {
  border-bottom-color: var(--app-primary);
  background: transparent;
  color: var(--app-primary);
}

.dropdown-menu {
  padding: .4rem;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  background: var(--app-surface);
  box-shadow: 0 8px 22px rgba(27, 42, 37, .1);
  color: var(--app-text);
  font-size: .8rem;
}

.dropdown-item {
  padding: .45rem .6rem;
  border-radius: 4px;
  color: var(--app-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--app-primary-soft);
  color: var(--app-primary-hover);
}

.modal-content {
  border: 1px solid var(--app-border);
  border-radius: 7px;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: 0 16px 45px rgba(22, 36, 31, .16);
}

.modal-header,
.modal-footer {
  padding: .85rem 1rem;
  border-color: var(--app-border);
}

.modal-header,
.modal-header.bg-dark {
  background: var(--app-surface-muted) !important;
  color: var(--app-text) !important;
}

.modal-title {
  color: var(--app-text);
  font-size: 1rem;
}

.modal-body {
  padding: 1rem;
}

.btn-close,
.btn-close-white,
.modal-header .btn-close-white {
  filter: none !important;
}

.page-link {
  border-color: var(--app-border);
  background: var(--app-surface);
  color: var(--app-primary);
}

.page-link:hover {
  border-color: var(--app-border-strong);
  background: var(--app-primary-soft);
  color: var(--app-primary-hover);
}

.page-item.active .page-link {
  border-color: var(--app-primary);
  background: var(--app-primary);
}

/* Home and section landing pages */
.dashboard-container {
  display: block;
  min-height: auto;
  padding: 0;
}

.home-wrapper {
  width: 100%;
  max-width: none;
}

.home-card {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 7px;
  background: var(--app-surface);
  box-shadow: var(--soft-shadow);
}

.home-header {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-surface);
  text-align: right;
}

.home-header .brand-icon {
  display: none;
}

.home-header h1 {
  margin: 0;
  color: var(--app-text);
  font-size: 1.35rem;
}

.home-header p {
  margin: .2rem 0 0;
  color: var(--app-muted);
  font-size: .78rem;
}

.home-body {
  padding: 1.25rem;
}

.home-section-card {
  height: 100%;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  background: var(--app-surface-muted);
}

.home-section-card-body {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 1.25rem !important;
  text-align: right !important;
}

.home-section-icon {
  margin-bottom: .8rem;
  color: var(--app-primary);
  font-size: 1.45rem;
}

.home-section-card-body .btn-login {
  width: auto !important;
  align-self: flex-start;
  margin-top: auto !important;
}

.btn-login {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: .46rem .92rem;
  border: 1px solid var(--app-primary);
  border-radius: 5px;
  background: var(--app-primary);
  color: #fff !important;
  font-size: .85rem;
  font-weight: 600;
}

.btn-login:hover {
  border-color: var(--app-primary-hover);
  background: var(--app-primary-hover);
}

/* Login */
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
  background: #eef1ed;
}

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

.login-panel {
  overflow: hidden;
  border: 1px solid var(--app-border-strong);
  border-radius: 8px;
  background: var(--app-surface);
  box-shadow: 0 10px 30px rgba(24, 53, 47, .08);
}

.login-brand {
  padding: 1.45rem 1.6rem;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-sidebar);
  color: #fff;
}

.login-brand .app-brand-lockup {
  justify-content: center;
}

.login-form {
  padding: 1.6rem;
}

.login-form h1 {
  margin-bottom: .25rem;
  font-size: 1.15rem;
}

.login-form-intro {
  margin-bottom: 1.2rem;
  color: var(--app-muted);
  font-size: .8rem;
}

.login-footer {
  padding: .9rem;
  color: var(--app-muted);
  font-size: .7rem;
  text-align: center;
}

/* Data-heavy pages */
#attendanceTableWrapper {
  max-height: 75vh;
  overflow: auto;
}

#attendanceTable .sticky-col {
  position: sticky;
  z-index: 2;
  background: var(--app-surface) !important;
}

#attendanceTable thead th,
#salariesTable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-color: var(--app-border-strong) !important;
  background: #e8ece9 !important;
}

#attendanceTable thead .sticky-col {
  z-index: 3;
}

#attendanceTable .cell-status:focus {
  outline: 2px solid var(--app-primary);
  outline-offset: -2px;
}

#attendanceTable .bg-success { background: #3f8c67 !important; }
#attendanceTable .bg-danger { background: #c05b5b !important; }
#attendanceTable .bg-info { background: #5d86a0 !important; }

#attendanceTable .bg-secondary-subtle {
  pointer-events: none;
  background: #edf0ed !important;
  cursor: default;
}

#salariesTable .pay-input {
  height: auto;
  padding: .16rem .28rem;
  border: 1px solid var(--app-border-strong) !important;
  border-radius: 3px;
  background: #fff !important;
  color: var(--app-text);
  font-size: .74rem;
}

#salariesTable .pay-input:focus {
  border-color: #6d9a8f !important;
  background: #fff !important;
  color: var(--app-text);
  box-shadow: var(--focus-ring) !important;
}

#salariesTable tfoot td,
#empTable tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  border-color: var(--app-border) !important;
  background: #edf1ee !important;
  color: var(--app-text) !important;
}

#empTable td,
#salariesTable td,
#attendanceTable td {
  border-color: var(--app-border);
}

#columnToggle {
  border-color: var(--app-border);
  background: var(--app-surface);
}

#columnToggle .form-check {
  margin-bottom: 4px;
}

/* Responsive */
@media (min-width: 992px) {
  .app-sidebar,
  .app-shell {
    transition: width .16s ease, margin-inline-start .16s ease;
  }

  .sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar-collapsed .app-shell {
    margin-inline-start: var(--sidebar-collapsed-width);
  }

  .sidebar-collapsed .brand-copy,
  .sidebar-collapsed .sidebar-section-label,
  .sidebar-collapsed .sidebar-link span,
  .sidebar-collapsed .user-copy,
  .sidebar-collapsed .sidebar-logout span {
    display: none;
  }

  .sidebar-collapsed .sidebar-header {
    flex-direction: column;
    padding-inline: .7rem;
  }

  .sidebar-collapsed .sidebar-brand,
  .sidebar-collapsed .sidebar-link,
  .sidebar-collapsed .current-user,
  .sidebar-collapsed .sidebar-logout {
    justify-content: center;
  }

  .sidebar-collapsed .sidebar-subnav {
    margin-inline: 0;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar {
    width: min(286px, calc(100vw - 48px));
    transform: translateX(110%);
    box-shadow: -12px 0 30px rgba(18, 38, 32, .18);
    transition: transform .18s ease;
  }

  .sidebar-open {
    overflow: hidden;
  }

  .sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-collapse-button {
    display: none;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1030;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(16, 28, 24, .46);
  }

  .sidebar-open .sidebar-overlay {
    display: block;
  }

  .app-shell {
    margin-inline-start: 0;
  }

  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--app-border);
    background: rgba(255, 255, 255, .96);
  }

  .mobile-menu-button {
    color: var(--app-text);
    font-size: 1.25rem;
  }

  .mobile-menu-button:hover {
    background: var(--app-primary-soft);
  }

  .topbar-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.3;
  }

  .topbar-title span,
  .topbar-title small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-title span {
    font-size: .84rem;
    font-weight: 700;
  }

  .topbar-title small {
    color: var(--app-muted);
    font-size: .7rem;
  }

  .app-content > .container,
  .app-content > .container-fluid {
    padding: 1.15rem !important;
  }

  .app-content .row.align-items-center > .col-auto,
  .app-content .row.align-items-center > .col-auto.d-flex {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .app-content .row.align-items-center > .col-auto .dropdown {
    display: inline-block;
  }

  .app-footer {
    align-items: flex-start;
    padding-inline: 1.15rem;
    flex-direction: column;
    gap: .2rem;
  }
}

@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }

  .app-content > .container,
  .app-content > .container-fluid {
    padding: .9rem !important;
  }

  .card-body.p-4 {
    padding: 1rem !important;
  }

  .btn:not(.btn-link) {
    white-space: normal;
  }

  .login-form,
  .login-brand {
    padding: 1.2rem;
  }
}

@media print {
  .app-sidebar,
  .sidebar-overlay,
  .app-topbar,
  .app-footer,
  .no-print,
  .btn,
  button,
  .dropdown {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .app-shell {
    display: block;
    min-height: auto;
    margin: 0 !important;
  }

  .app-content > .container,
  .app-content > .container-fluid {
    width: 100%;
    max-width: none;
    padding: 0 !important;
  }

  .card {
    border-color: #bbb !important;
    box-shadow: none !important;
  }

  .table thead th {
    background: #eee !important;
    color: #111 !important;
  }
}
