html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.qa-grid a[href*="/Projects"] {
  display: none !important;
}

.sidebar-nav a[href*="/Projects"] {
  display: none !important;
}

.emp-header a.btn-edit,
.btn-po {
  background: #fff;
  color: #006837;
  border: 1.5px solid #006837;
  border-radius: 12px;
  font-weight: 700;
  padding: 11px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.emp-header a.btn-edit:hover,
.btn-po:hover {
  background: #e8f5ee;
  color: #006837;
}

.emp-card-toolbar button.btn-edit,
.btn-search {
  background: linear-gradient(135deg, #006837, #00a651);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 0 18px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.emp-card-toolbar button.btn-edit:hover,
.btn-search:hover {
  color: #fff;
}

.emp-card-toolbar .search-in {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  min-width: 260px;
  height: 44px;
  background: #fff;
}

.emp-card-toolbar .search-in:focus {
  outline: none;
  border-color: #006837;
  box-shadow: 0 0 0 4px rgba(0,104,55,0.12);
}

.emp-table a.btn-edit {
  background: #e8f5ee;
  color: #006837;
  border-radius: 8px;
  padding: 4px 10px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
}

.emp-table a.btn-users {
  background: #006837;
  color: #fff !important;
  border-radius: 8px;
  padding: 4px 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 12px;
}

.emp-table a.btn-users:hover {
  background: #005a2f;
  color: #fff !important;
}

.emp-card .emp-table thead th {
  padding: 8px 12px !important;
  font-size: 11px;
}

.emp-card .emp-table tbody td,
.emp-card .emp-table.table > :not(caption) > * > * {
  padding: 6px 12px !important;
  font-size: 13px;
  vertical-align: middle;
}

.emp-card .emp-table .emp-name {
  line-height: 1.25;
}

.emp-card .emp-table .emp-code {
  font-size: 11px;
  line-height: 1.2;
  margin-top: 1px;
}

.emp-card .emp-table .badge-active,
.emp-card .emp-table .badge-low {
  padding: 3px 8px;
  font-size: 11px;
}

.stock-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.stock-split > .emp-card {
  min-width: 0;
  height: 100%;
}

.stock-split .search-in {
  min-width: 150px;
  width: 170px;
}

.stock-split .emp-card-toolbar {
  padding: 12px 16px;
}

@media (max-width: 1100px) {
  .stock-split {
    grid-template-columns: 1fr;
  }

  .stock-split .search-in {
    min-width: 260px;
    width: auto;
  }
}

.remain-total td {
  background: #e8f5ee !important;
  font-weight: 800;
  color: #006837;
}

.remain-qty {
  font-weight: 800;
  color: #059669;
}

main.content:has(.loc-pill) .welcome-bar p {
  display: none !important;
}

main.content:has(.loc-pill) .row:has(.stat-card),
main.content:has(.loc-pill) .clinic-stats {
  display: none !important;
}

main.content:has(.loc-pill) .row:has(.panel),
main.content:has(.loc-pill) .panel {
  display: none !important;
}