﻿:root {
  --surface: #ffffff;
  --page: #f4f6f7;
  --line: #dce3e5;
  --line-soft: #edf1f2;
  --text: #182223;
  --muted: #6f7b7d;
  --teal: #167d78;
  --teal-dark: #11635f;
  --teal-soft: #d7efec;
  --green: #3f9b68;
  --danger: #c95151;
  --shadow: 0 12px 28px rgba(20, 31, 33, 0.08);
}

html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  background: var(--page);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body:has(.login-page) {
  overflow-x: hidden;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--teal-dark);
  text-decoration: none;
}

.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(20, 31, 33, 0.06);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 1030;
}

.admin-topbar .navbar {
  min-height: 64px;
  padding: 0 22px;
}

.navbar-brand {
  color: #101718 !important;
  font-size: 1rem;
  font-weight: 650;
  margin-right: 24px;
  text-align: left;
  white-space: nowrap;
}

.navbar-nav {
  align-items: center;
  gap: 6px;
}

.navbar-light .navbar-nav .nav-link {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #253032;
  display: flex;
  font-size: 0.92rem;
  gap: 6px;
  padding: 20px 10px 17px;
  white-space: nowrap;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
  border-bottom-color: var(--teal);
  color: var(--teal-dark);
}

.admin-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.users-layout {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  width: 100%;
}

.users-content {
  flex: 1 1 auto;
  min-width: 0;
}

.users-group-sidebar {
  flex: 0 0 290px;
  min-height: calc(100vh - 92px);
  width: 290px;
}

.admin-sidebar {
  background: #f7f8f9;
  border-right: 1px solid var(--line);
  padding: 18px 10px;
}

.tree-node {
  align-items: center;
  border-radius: 6px;
  color: #303b3d;
  display: flex;
  font-size: 0.92rem;
  font-weight: 500;
  gap: 8px;
  margin-bottom: 4px;
  min-height: 34px;
  padding: 7px 10px;
}

a.tree-node:hover {
  background: #eef4f4;
  color: var(--teal-dark);
}

.tree-node i {
  color: #777f82;
  font-size: 1rem;
}

.tree-root {
  color: #162122;
  font-weight: 700;
}

.tree-branch {
  padding-left: 18px;
}

.tree-leaves {
  padding-left: 22px;
}

.tree-node.active {
  background: #e4e7e9;
  color: #0d1415;
  font-weight: 750;
}

.admin-content {
  min-width: 0;
  min-height: calc(100vh - 64px);
  padding: 18px 20px 48px;
}

.footer {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
.card-title {
  color: #111a1b;
  font-weight: 750;
  letter-spacing: 0;
}

h1,
h2 {
  font-size: 1.55rem;
  margin: 0 0 12px;
}

h5,
.card-title h5 {
  font-size: 1.45rem;
  margin: 0;
}

.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: 10px;
  width: 100% !important;
}

.card-title {
  margin-bottom: 10px;
}

.card > .card-title,
.card > .card-body {
  padding-left: 0;
  padding-right: 0;
}

.card-body {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 8px;
}

.page-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.page-header .card {
  margin-bottom: 0;
}

.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.page-actions form {
  margin: 0;
}

.table input[type="submit"] {
  background: #fff !important;
  border: 1px solid #e1b6b6 !important;
  border-radius: 6px;
  color: var(--danger) !important;
  font-weight: 650;
  min-height: 34px;
  padding: 6px 12px;
}

.form-horizontal {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 18px;
}

.form-horizontal hr {
  display: none;
}

.form-group {
  margin-bottom: 14px;
}

label {
  color: #334044;
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  background-color: var(--surface);
  border: 1px solid #cfd8da;
  border-radius: 6px;
  color: var(--text);
  min-height: 38px;
  padding: 7px 11px;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.16rem rgba(22, 125, 120, 0.16);
  outline: 0;
}

.image-upload-control {
  align-items: center;
  background: #f8fbfb;
  border: 1px dashed #b8c8cb;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  min-height: 62px;
  padding: 11px 12px;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  width: 100%;
}

.image-upload-control:hover,
.image-upload-control:focus-within {
  background: #f2f9f8;
  border-color: var(--teal);
  box-shadow: 0 0 0 0.16rem rgba(22, 125, 120, 0.12);
}

.image-upload-control input[type="file"] {
  height: 1px;
  left: 12px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 12px;
  width: 1px;
}

.image-upload-icon {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 8px;
  color: var(--teal-dark);
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 1.18rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.image-upload-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.image-upload-title {
  color: #1d292b;
  font-size: 0.92rem;
  font-weight: 750;
}

.image-upload-file {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-upload-action {
  background: #fff;
  border: 1px solid #cfd8da;
  border-radius: 6px;
  color: var(--teal-dark);
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 750;
  padding: 7px 12px;
}

#myInput {
  background-image: linear-gradient(transparent, transparent);
  min-width: 190px;
}

.btn,
button,
input[type="submit"] {
  border-radius: 6px;
  font-weight: 650;
  min-height: 36px;
}

.btn-primary,
.btn-success,
input[type="submit"] {
  background-color: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover,
input[type="submit"]:hover {
  background-color: var(--teal-dark) !important;
  border-color: var(--teal-dark) !important;
}

.btn-danger {
  background: #fff !important;
  border-color: #e1b6b6 !important;
  color: var(--danger) !important;
}

.btn-secondary,
.dropdown-toggle {
  background: #dcebea !important;
  border-color: #dcebea !important;
  color: #294547 !important;
}

.btn-outline-secondary {
  border-color: #cdd7da;
  color: #536164;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown .btn {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  justify-content: center;
  min-width: 38px;
  padding-left: 10px;
  padding-right: 10px;
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 2000;
}

.table .dropdown-menu {
  max-height: min(320px, calc(100vh - 24px));
  overflow-y: auto;
}

.table-dropdown-portal {
  max-width: calc(100vw - 16px);
  max-height: min(320px, calc(100vh - 24px));
  min-width: 190px;
  overflow-y: auto;
  position: fixed !important;
  z-index: 2050;
}

.table-dropdown-portal .dropdown-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-item {
  border-radius: 5px;
  color: #273436;
  font-size: 0.92rem;
  padding: 8px 10px;
}

.dropdown-item:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.table {
  background: var(--surface);
  border: 0 !important;
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  box-shadow: var(--shadow);
  color: var(--text);
  margin-bottom: 18px;
  overflow: visible;
  width: 100%;
}

.table-responsive {
  display: table;
}

.table thead th,
.table tbody:first-child tr:first-child th,
.table > tr:first-child th {
  background: var(--teal-soft);
  border-bottom: 1px solid #c9dfdd !important;
  color: #111b1c;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 11px 12px;
  text-transform: uppercase;
  vertical-align: middle;
}

.table td {
  border-top: 1px solid var(--line-soft) !important;
  color: #243033;
  font-size: 0.92rem;
  padding: 10px 12px;
  vertical-align: middle;
}

.table-bordered th,
.table-bordered td {
  border-left: 0 !important;
  border-right: 0 !important;
}

.table-hover tbody tr:hover {
  background-color: #f6fbfa;
}

.admin-data-table {
  max-width: 100% !important;
  table-layout: fixed;
  width: 100% !important;
}

.admin-data-table th,
.admin-data-table td {
  overflow-wrap: anywhere;
  white-space: normal;
}

.admin-data-table .fixed-height {
  height: auto !important;
  width: auto !important;
}

.admin-data-table .scrollable-content {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  max-height: 82px;
  max-width: 100%;
  overflow: auto;
  white-space: normal;
}

.dynamic-menu-table .col-permission { width: 9%; }
.dynamic-menu-table .col-query-main { width: 18%; }
.dynamic-menu-table .col-db { width: 8%; }
.dynamic-menu-table .col-query { width: 12%; }
.dynamic-menu-table .col-filters { width: 14%; }
.dynamic-menu-table .col-status { width: 8%; }
.dynamic-menu-table .col-actions { width: 8%; }
.menu-permission-table .col-id { width: 13%; }
.menu-permission-table .col-status { width: 10%; }
.menu-permission-table .col-actions { width: 11%; }
.users-table .col-select { width: 4%; }
.users-table .col-username { width: 13%; }
.users-table .col-name { width: 15%; }
.users-table .col-group { width: 12%; }
.users-table .col-email { width: 20%; }
.users-table .col-contact { width: 12%; }
.users-table .col-fin { width: 10%; }
.users-table .col-status { width: 6%; }
.users-table .col-actions { width: 6%; }
.employees-table .col-no { width: 6%; }
.employees-table .col-fin { width: 10%; }
.employees-table .col-name { width: 20%; }
.employees-table .col-email { width: 18%; }
.employees-table .col-department { width: 14%; }
.employees-table .col-branch { width: 12%; }
.employees-table .col-group { width: 12%; }
.employees-table .col-actions { width: 8%; }
.user-groups-table .col-id { width: 14%; }
.user-groups-table .col-actions { width: 12%; }

.filter-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
}

.status-cell,
.select-cell,
.action-cell,
.admin-data-table th:nth-last-child(-n + 2) {
  text-align: center;
}

.status-toggle-form {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin: 0;
}

.users-table thead th:first-child {
  text-align: center;
}

.users-table tbody tr.selected-row,
.employees-table tbody tr.selected-row {
  background: #edf7f5;
}

.user-select-checkbox,
.employee-select-checkbox {
  cursor: pointer;
  margin: 0;
}

.user-select-checkbox:disabled,
.employee-select-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.selected-user-editor[hidden] {
  display: none !important;
}

.selected-user-editor {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 16px;
  position: sticky;
  top: 76px;
  z-index: 100;
}

.selected-user-editor-header {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.selected-user-editor-header h5 {
  font-size: 1.05rem;
  margin: 0 0 3px;
}

.selected-user-editor-header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.selected-user-editor-header form {
  margin: 0;
}

.selected-user-edit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.selected-user-edit-grid .form-group {
  margin-bottom: 0;
}

.selected-user-status-field {
  align-items: center;
  display: flex;
  gap: 10px;
  padding-top: 22px;
}

.selected-password-control {
  display: flex;
  gap: 8px;
}

.selected-password-control .form-control {
  min-width: 0;
}

.selected-password-control .btn {
  flex: 0 0 auto;
}

.selected-user-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

#employeeSearchInput {
  background-image: linear-gradient(transparent, transparent);
  min-width: 190px;
}

.employees-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.employees-table {
  min-width: 980px;
  table-layout: fixed;
}

.employees-table th,
.employees-table td {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.employees-table th:first-child,
.employees-table td:first-child {
  text-align: center;
}

.employees-table th:nth-child(1),
.employees-table td:nth-child(1) {
  width: 58px;
}

.employees-table th:nth-child(2),
.employees-table td:nth-child(2) {
  width: 130px;
}

.employees-table th:nth-child(3),
.employees-table td:nth-child(3) {
  width: 230px;
}

.employees-table th:nth-child(4),
.employees-table td:nth-child(4),
.employees-table th:nth-child(7),
.employees-table td:nth-child(7) {
  width: 220px;
}

.employees-table th:nth-child(5),
.employees-table td:nth-child(5) {
  width: 170px;
}

.employees-table th:nth-child(6),
.employees-table td:nth-child(6) {
  width: 250px;
}

.employee-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.employee-form-grid .form-group {
  margin-bottom: 0;
}

.employee-edit-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.action-cell .btn {
  min-width: 42px;
  padding-left: 10px;
  padding-right: 10px;
}

input[type="checkbox"] {
  accent-color: var(--green);
  height: 16px;
  width: 16px;
}

.status-toggle {
  appearance: none;
  background: #cfdad8;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 22px !important;
  margin: 0;
  position: relative;
  transition: background 0.2s ease;
  width: 42px !important;
}

.status-toggle::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(20, 31, 33, 0.18);
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.2s ease;
  width: 18px;
}

.status-toggle:checked {
  background: var(--green);
}

.status-toggle:checked::after {
  transform: translateX(20px);
}

.active-filter-control {
  align-items: center;
  display: flex;
  gap: 12px;
}

.active-filter-control label {
  font-size: 0.95rem;
  margin: 0;
}

.empty-row td {
  padding: 28px !important;
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  min-height: 130px;
  text-align: center;
}

.empty-state i {
  background: var(--teal-soft);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 1.45rem;
  padding: 10px 13px;
}

.empty-state strong {
  color: var(--text);
  font-size: 1rem;
}

.dashboard-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-header p {
  color: var(--muted);
  margin: 0;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  margin-bottom: 18px;
}

.dashboard-tile {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
  display: flex;
  gap: 12px;
  padding: 16px;
}

.dashboard-tile:hover {
  border-color: #b9d8d5;
  color: var(--text);
  transform: translateY(-1px);
}

.tile-icon {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 8px;
  color: var(--teal-dark);
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
}

.tile-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tile-content small,
.summary-card small {
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
}

.summary-card span {
  color: var(--teal-dark);
  font-size: 2rem;
  font-weight: 800;
}

.info-panel {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  max-width: 820px;
  padding: 24px;
}

.info-panel p {
  color: var(--muted);
}

.info-icon {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 8px;
  color: var(--teal-dark);
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 1.35rem;
  height: 48px;
  justify-content: center;
}

.error-panel .info-icon {
  background: #f7dfdf;
  color: var(--danger);
}

.request-id {
  background: #f7f9fa;
  border-radius: 6px;
  padding: 10px 12px;
}

.login-page {
  align-items: center;
  background: var(--page);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.login-panel {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(220, 227, 229, 0.9);
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(20, 31, 33, 0.16);
  max-width: 430px;
  padding: 30px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 13px;
  margin-bottom: 24px;
}

.login-logo {
  align-items: center;
  background: var(--teal);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex: 0 0 48px;
  font-size: 1.35rem;
  height: 48px;
  justify-content: center;
}

.login-brand h1 {
  font-size: 1.45rem;
  margin: 0;
}

.login-brand p {
  color: var(--muted);
  margin: 2px 0 0;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  color: var(--muted);
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.input-with-icon .form-control {
  padding-left: 38px;
}

.login-orbit {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.orbit-icon {
  animation: floatIcon 9s ease-in-out infinite;
  background: transparent;
  border: 0;
  color: var(--teal-dark);
  font-size: 2.2rem;
  padding: 0;
  position: absolute;
}

.orbit-icon-1 { left: 12%; top: 18%; }
.orbit-icon-2 { animation-delay: -2s; right: 16%; top: 16%; }
.orbit-icon-3 { animation-delay: -4s; bottom: 20%; left: 17%; }
.orbit-icon-4 { animation-delay: -1s; bottom: 18%; right: 18%; }
.orbit-icon-5 { animation-delay: -5s; left: 50%; top: 10%; }
.orbit-icon-6 { animation-delay: -3s; bottom: 10%; left: 48%; }
.orbit-icon-7 { animation-delay: -6s; left: 27%; top: 32%; }
.orbit-icon-8 { animation-delay: -1.5s; right: 30%; top: 31%; }
.orbit-icon-9 { animation-delay: -4.5s; left: 7%; top: 48%; }
.orbit-icon-10 { animation-delay: -2.8s; right: 8%; top: 48%; }
.orbit-icon-11 { animation-delay: -7s; bottom: 34%; left: 31%; }
.orbit-icon-12 { animation-delay: -3.8s; bottom: 32%; right: 31%; }
.orbit-icon-13 { animation-delay: -5.8s; bottom: 9%; right: 36%; }
.orbit-icon-14 { animation-delay: -2.2s; left: 36%; top: 8%; }

@keyframes floatIcon {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(4deg);
  }
}

.modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(20, 31, 33, 0.22);
}

.modal-header {
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-weight: 750;
}

.modal-footer {
  border-top: 1px solid var(--line);
}

.alert {
  border-radius: 8px;
}

.operation-confirm-modal .modal-body {
  color: var(--text);
  font-size: 0.98rem;
  padding: 20px 24px;
}

.operation-confirm-message {
  margin: 0;
}

.operation-toast {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid #cfe5dc;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(20, 31, 33, 0.16);
  display: flex;
  gap: 12px;
  max-width: min(360px, calc(100vw - 24px));
  opacity: 0;
  padding: 14px 40px 14px 14px;
  pointer-events: none;
  position: fixed;
  right: 18px;
  top: 82px;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 3000;
}

.operation-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.operation-toast-icon {
  align-items: center;
  background: #e2f4eb;
  border-radius: 50%;
  color: var(--green);
  display: flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.operation-toast strong,
.operation-toast span {
  display: block;
}

.operation-toast strong {
  color: #162122;
  font-size: 0.94rem;
  line-height: 1.25;
}

.operation-toast span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  margin-top: 2px;
}

.operation-toast-close {
  background: transparent !important;
  border: 0;
  color: #7b8688 !important;
  font-size: 1.25rem;
  line-height: 1;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 11px;
}

.menu-permission-list,
.scrollable-content-filterNames {
  background: var(--surface);
  border-color: #cfd8da !important;
  border-radius: 8px !important;
}

.menu-permission-option {
  border-radius: 6px !important;
}

.menu-permission-option:hover {
  background: #f0f7f6 !important;
}

.selection-status,
.assigned-status,
.group-assigned-status {
  border-radius: 999px !important;
  font-weight: 650;
}

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

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .users-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .users-group-sidebar {
    flex: none;
    min-height: 0;
    width: 100%;
  }

  .admin-sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .admin-content {
    max-width: 100vw;
    padding: 14px 12px 36px;
  }

  .admin-topbar .navbar {
    padding: 8px 12px;
  }

  .admin-topbar .container-fluid {
    align-items: center;
    gap: 8px;
    padding-left: 0;
    padding-right: 0;
  }

  .navbar-brand {
    margin-right: 0;
  }

  .navbar-toggler {
    border-color: var(--line);
    margin-left: auto;
  }

  .navbar-collapse {
    flex-basis: 100%;
  }

  .navbar-nav {
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .navbar-light .navbar-nav .nav-link {
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 6px;
    padding: 10px 12px;
  }

  .navbar-light .navbar-nav .nav-link.active,
  .navbar-light .navbar-nav .nav-link:hover {
    background: var(--teal-soft);
    border-bottom-color: transparent;
    border-left-color: var(--teal);
  }

  .card-body {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .card-body .ml-auto {
    display: none;
  }

  .card-body .ml-4 {
    margin-left: 0 !important;
  }

  #myInput,
  .form-control,
  .form-select,
  select {
    width: 100%;
  }

  .table-responsive {
    display: block;
  }

  .table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table thead,
  .table tbody,
  .table tr {
    min-width: max-content;
  }

  .table th,
  .table td {
    min-width: 112px;
    white-space: nowrap;
  }

  .table th:first-child,
  .table td:first-child {
    min-width: 64px;
  }

  .admin-data-table {
    table-layout: auto;
  }

  .admin-data-table th,
  .admin-data-table td {
    min-width: 126px;
  }

  .admin-data-table .scrollable-content {
    max-width: 240px;
    white-space: normal;
  }

  .status-cell,
  .action-cell {
    min-width: 92px !important;
  }

  .tree-branch,
  .tree-leaves {
    padding-left: 0;
  }

  .tree-leaves {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tree-node {
    margin-bottom: 0;
    min-width: 0;
  }

  .dashboard-grid,
  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-panel {
    padding: 24px;
  }

  .orbit-icon {
    opacity: 0.45;
  }
}

@media (max-width: 575.98px) {
  h1,
  h2 {
    font-size: 1.35rem;
  }

  h5,
  .card-title h5 {
    font-size: 1.28rem;
  }

  .admin-topbar .navbar {
    min-height: 56px;
  }

  .admin-content {
    padding: 12px 10px 32px;
  }

  .card-body > .btn,
  .card-body form,
  .card-body form .btn,
  .page-actions .btn,
  .page-actions form,
  .page-actions form .btn,
  .form-horizontal .btn,
  .form-horizontal input[type="submit"] {
    justify-content: center;
    width: 100%;
  }

  .active-filter-control {
    justify-content: flex-start;
  }

  .users-group-sidebar {
    padding: 12px 10px;
  }

  .tree-leaves {
    grid-template-columns: 1fr;
  }

  .dashboard-tile,
  .summary-card,
  .info-panel,
  .form-horizontal {
    padding: 14px;
  }

  .info-panel {
    flex-direction: column;
  }

  .modal-dialog {
    margin: 10px;
  }

  .login-page {
    padding: 16px;
  }

  .login-panel {
    padding: 22px;
  }

  .orbit-icon {
    font-size: 1.75rem;
  }
}
