body {
  background: #f5f7fb;
}

.auth-shell {
  background:
    radial-gradient(circle at top left, rgba(59, 125, 221, 0.2), transparent 32%),
    linear-gradient(135deg, #eff4ff 0%, #f8fafc 55%, #eef6ff 100%);
}

.auth-hero {
  background:
    linear-gradient(160deg, rgba(34, 46, 60, 0.95), rgba(59, 125, 221, 0.92)),
    #222e3c;
  color: #fff;
}

.auth-hero__inner {
  max-width: 580px;
  margin: auto;
  padding: 4rem;
}

.auth-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.1;
}

.auth-hero p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.auth-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.module-list {
  padding-left: 1.1rem;
}

.employee-list-photo {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.employee-list-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.employee-list-photo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;
  font-size: 0.62rem;
  text-align: center;
  padding: 0.25rem;
}

.latest-punch-list {
  display: grid;
  gap: 0.85rem;
}

.latest-punch-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
}

.latest-punch-link {
  color: inherit;
  text-decoration: none;
}

.latest-punch-link:hover {
  border-color: #bfd2f3;
  background: #f8fbff;
  text-decoration: none;
}

.latest-punch-photo {
  width: 72px;
  height: 72px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.latest-punch-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-punch-photo.is-empty .latest-punch-placeholder,
.latest-punch-photo:not(.is-empty) .latest-punch-placeholder {
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  padding: 0.5rem;
}

.latest-punch-photo:not(.is-empty) .latest-punch-placeholder {
  display: none;
}

.latest-punch-name {
  font-weight: 700;
  color: #0f172a;
}

.late-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
}

.late-photo {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.late-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.late-photo-placeholder {
  display: none;
  font-size: 0.62rem;
  color: #64748b;
  text-align: center;
  padding: 0.25rem;
}

.late-photo.is-empty .late-photo-placeholder {
  display: block;
}

.late-photo-link,
.dashboard-person-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-person-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.report-table td,
.report-table th {
  min-width: 120px;
}

.report-employee-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fbff;
}

.report-employee-photo-wrap {
  width: 112px;
  height: 112px;
  border-radius: 1rem;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-employee-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.report-employee-photo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

.report-employee-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.report-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0.35rem 0.15rem 0;
  flex-wrap: wrap;
}

.section-search {
  display: flex;
  justify-content: flex-end;
}

.section-search__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-search__field {
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.22s ease, opacity 0.18s ease;
}

.section-search.is-open .section-search__field {
  width: min(320px, 68vw);
  opacity: 1;
  pointer-events: auto;
}

.section-search__toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #cfd9e6;
  background: #fff;
  color: #334155;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.section-search__toggle:hover {
  background: #f8fbff;
  border-color: #b9cae6;
  transform: translateY(-1px);
}

.section-search__toggle svg {
  width: 18px;
  height: 18px;
}

.section-search__submit {
  display: none;
}

.section-search.is-open .section-search__submit {
  display: inline-flex;
}

.section-search__submit,
.section-search__clear {
  white-space: nowrap;
}

.navbar-search {
  flex: 1 1 auto;
  max-width: 520px;
}

.navbar-search__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar-search__toggle {
  position: absolute;
  left: 0.75rem;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.navbar-search__toggle svg {
  width: 17px;
  height: 17px;
}

.navbar-search__input {
  width: 100%;
  min-width: 240px;
  padding-left: 2.35rem;
  padding-right: 2.5rem;
  border: 1px solid #d7dfec;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  height: 42px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.navbar-search__input:focus {
  outline: none;
  border-color: #3b7ddd;
  box-shadow: 0 0 0 3px rgba(59, 125, 221, 0.14);
}

.navbar-search__clear {
  position: absolute;
  right: 0.75rem;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  display: none;
  align-items: center;
  justify-content: center;
}

.navbar-search__clear.is-visible {
  display: inline-flex;
}

.navbar-search__clear:hover {
  color: #334155;
  background: #eef2f7;
}

.navbar-search__clear svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 991.98px) {
  .navbar-search {
    width: 100%;
    max-width: none;
    margin: 0.75rem 0 0;
  }

  .navbar .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }

  .navbar .navbar-align {
    margin-left: 0 !important;
    margin-top: 0.75rem;
  }
}

.biometric-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1060;
}

.biometric-modal.is-open {
  display: flex;
}

.biometric-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.biometric-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 90px rgba(15, 23, 42, 0.28);
}

.biometric-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.biometric-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.biometric-modal__subtitle {
  color: #64748b;
  font-size: 0.92rem;
}

.biometric-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: #64748b;
}

.biometric-modal__body {
  padding: 1.25rem;
}

body.biometric-modal-open {
  overflow: hidden;
}

.biometric-modal-form .form-label {
  font-weight: 600;
}

.biometric-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.biometric-detail-grid > div {
  padding: 0.85rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #f8fafc;
}

.biometric-detail-grid > div span {
  display: block;
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.biometric-detail-grid > div strong {
  color: #0f172a;
  font-weight: 700;
}

.biometric-pre {
  margin: 0;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #f8fafc;
  white-space: pre-wrap;
  word-break: break-word;
}

.device-workspace-section {
  margin-top: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
}

.device-workspace-section__head {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.device-workspace-section__body {
  padding: 1rem;
}

.device-inline-form {
  margin: 0;
}

@media (max-width: 767.98px) {
  .biometric-detail-grid {
    grid-template-columns: 1fr;
  }
}

.report-mark-label {
  font-weight: 600;
}

.report-mark-actions {
  display: inline-flex;
  gap: 0.25rem;
}

.report-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border: 1px solid #cdd8ea;
  border-radius: 999px;
  background: #eef4ff;
  color: #2759a5;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
}

.report-action-btn:hover {
  background: #dbeafe;
}

.report-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.report-status.status-approved {
  background: #dcfce7;
  color: #166534;
}

.report-status.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.report-status.status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.report-status.status-neutral {
  background: #e2e8f0;
  color: #334155;
}

.permission-line {
  display: inline-block;
  white-space: nowrap;
}

.permission-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.report-preview-frame {
  width: 100%;
  min-height: 70vh;
  border: 0;
  border-radius: 0.5rem;
  background: #fff;
}

.report-preview-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.report-preview-image {
  display: block;
  max-width: min(720px, 100%);
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.report-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.report-preview-modal.is-open {
  display: block;
}

.report-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
}

.report-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.report-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.report-preview-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.report-preview-close {
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.report-preview-content {
  padding: 1rem;
  max-height: calc(100vh - 6rem);
  overflow: auto;
}

.app-notification-toast {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2100;
  width: min(420px, calc(100vw - 1.5rem));
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-notification-toast.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.app-notification-toast.is-restored,
.app-notification-toast.is-restored.is-open,
.app-notification-toast.is-restored.is-closing {
  transition: none !important;
}

.app-notification-toast.is-closing {
  opacity: 0;
  transform: translateY(-8px);
}

.app-notification-header {
  display: none;
}

.app-notification-title {
  display: none;
}

.app-notification-close {
  display: none;
}

.app-notification-body {
  padding: 0.95rem 1.15rem 1rem;
  color: #0f172a;
}

.app-notification-toast__progress {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #3b7ddd 0%, #60a5fa 100%);
  transform-origin: left center;
}

.app-notification-toast.is-success {
  background: linear-gradient(180deg, #f4fff9 0%, #ffffff 100%);
  border-color: #cfead7;
}

.app-notification-toast.is-danger {
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
  border-color: #f1c8c8;
}

.app-notification-toast.is-warning {
  background: linear-gradient(180deg, #fffdf3 0%, #ffffff 100%);
  border-color: #ead8a0;
}

@keyframes appNotificationIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767.98px) {
  .app-notification-toast {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

body.report-modal-open {
  overflow: hidden;
}

.employees-pagination-nav {
  display: flex;
  justify-content: center;
}

.employees-pagination {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.employees-pagination .page-item {
  display: inline-flex;
}

.employees-pagination .page-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #d7dfec !important;
  color: #334155 !important;
  background: #fff !important;
  min-width: 42px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
}

.employees-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #3b7ddd 0%, #2759a5 100%) !important;
  border-color: #3b7ddd !important;
  color: #fff !important;
}

.employees-pagination .page-item.disabled .page-link {
  background: #eef2f7 !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  box-shadow: none;
  pointer-events: none;
}

.employees-pagination .page-link:hover {
  background: #eef4ff !important;
  color: #1d4ed8 !important;
  text-decoration: none !important;
}

@media (max-width: 991.98px) {
  .auth-panel {
    min-height: 100vh;
  }
}

.dashboard-devices-status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-device-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.dashboard-device-status-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-device-status-title {
  font-weight: 700;
  color: #0f172a;
}

.dashboard-device-status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.85rem;
}

.actions-col {
  white-space: nowrap;
}

.actions-col .btn {
  min-width: 34px;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.actions-col .btn span[aria-hidden="true"],
.actions-col .btn i[data-feather] {
  font-size: 0.95rem;
  line-height: 1;
}

.dashboard-device-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.dashboard-device-status-dot.is-online {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.dashboard-device-status-dot.is-offline {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.dashboard-device-status-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.dashboard-device-status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-device-status-label.is-online {
  color: #166534;
  background: #dcfce7;
}

.dashboard-device-status-label.is-offline {
  color: #991b1b;
  background: #fee2e2;
}

.card:has(.table),
.card:has(.table-responsive),
.card:has(.dashboard-devices-status-list) {
  border: 1px solid #e3eaf4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.card:has(.table) .card-header,
.card:has(.table-responsive) .card-header,
.card:has(.dashboard-devices-status-list) .card-header {
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  border-bottom: 1px solid #e3eaf4;
}

.card:has(.table) .card-title,
.card:has(.table-responsive) .card-title,
.card:has(.dashboard-devices-status-list) .card-title {
  color: #1f3652;
  font-weight: 700;
}

.table-responsive {
  border: 0;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  padding: 0.9rem 0.95rem;
  background: #f8fbff;
  color: #5f738a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid #e3eaf4;
  border-top: 0;
  white-space: nowrap;
}

.table tbody td {
  padding: 0.92rem 0.95rem;
  vertical-align: middle;
  border-color: #edf2f8;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #fbfdff;
}

.table-hover > tbody > tr:hover > * ,
.table-striped > tbody > tr:hover > * {
  --bs-table-accent-bg: #f2f7ff;
  color: inherit;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.metric-loading {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 600;
}

.metric-loading::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 2px solid rgba(59, 125, 221, 0.18);
  border-top-color: #3b7ddd;
  animation: metricSpin 0.8s linear infinite;
}

@keyframes metricSpin {
  to {
    transform: rotate(360deg);
  }
}

.table .badge {
  border-radius: 999px;
  padding: 0.45rem 0.68rem;
  font-weight: 700;
}

.dashboard-devices-status-list {
  padding: 0.2rem;
}

@media (max-width: 767.98px) {
  .dashboard-device-status-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-device-status-side {
    align-items: flex-start;
    text-align: left;
  }
}

.sidebar .sidebar-dropdown .sidebar-item > .sidebar-link.collapsed {
  opacity: 0.92;
}

.sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-load-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.app-load-progress.is-visible {
  opacity: 1;
}

.app-load-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease-out;
  background: linear-gradient(90deg, #3b7ddd 0%, #60a5fa 55%, #93c5fd 100%);
  box-shadow: 0 0 10px rgba(59, 125, 221, 0.45);
}

.sidebar-link-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  color: #9fb0c5 !important;
  flex: 0 0 auto;
}

.sidebar-link-icon svg {
  display: block !important;
  width: 1rem;
  height: 1rem;
  margin-right: 0 !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.1 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-link-icon svg *,
.sidebar-link-caret svg * {
  fill: none !important;
  stroke: currentColor !important;
}

.sidebar-link-caret {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  color: #8fa3bf;
  transition: transform 0.2s ease;
}

.sidebar-link-caret svg {
  display: block !important;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0 !important;
  stroke: currentColor !important;
  fill: none !important;
}

.sidebar-link.collapsed .sidebar-link-caret {
  transform: rotate(-90deg);
}

.sidebar-link-level-1 {
  background: rgba(59, 125, 221, 0.08);
  border-left: 3px solid transparent;
  margin: 0.15rem 0.4rem;
  border-radius: 0.45rem;
}

.sidebar-item.active > .sidebar-link-level-1 {
  border-left-color: #3b7ddd;
  background: rgba(59, 125, 221, 0.16);
}

.sidebar-link-level-2 {
  margin: 0.08rem 0.6rem 0.08rem 0.9rem;
  border-radius: 0.4rem;
  background: rgba(148, 163, 184, 0.08);
  border-left: 2px solid transparent;
}

.sidebar-item.active > .sidebar-link-level-2 {
  border-left-color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
}

.sidebar-item.active > .sidebar-link .sidebar-link-icon,
.sidebar-item.active > .sidebar-link .sidebar-link-caret {
  color: #cfe2ff;
}

.list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, rgba(245, 247, 251, 0.72), rgba(245, 247, 251, 0.96));
}

.list-footer__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.list-footer__count {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(59, 125, 221, 0.08);
  color: #34506f;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.list-footer__page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.38rem 0.45rem 0.38rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.list-footer__label,
.list-footer__suffix {
  margin: 0;
  color: #60758d;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.list-footer__select {
  min-width: 4.5rem;
  border: 0;
  border-radius: 999px;
  background-color: rgba(59, 125, 221, 0.08);
  color: #1f3c5b;
  font-weight: 700;
  text-align: center;
  box-shadow: none !important;
}

.list-footer__select:focus {
  background-color: rgba(59, 125, 221, 0.12);
}

.list-footer__pagination {
  margin-left: auto;
}

@media (max-width: 767.98px) {
  .list-footer {
    align-items: stretch;
  }

  .list-footer__meta,
  .list-footer__pagination {
    width: 100%;
  }

  .list-footer__pagination {
    margin-left: 0;
  }
}

.app-license-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.license-shell {
  max-width: 1180px;
}

.license-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.license-card .card-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(243, 246, 251, 0.94));
}

.license-alert {
  border-radius: 1rem;
}

.license-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.license-stat {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), #fff);
}

.license-stat__label {
  display: block;
  margin-bottom: 0.3rem;
  color: #60758d;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.license-stat__value {
  display: block;
  color: #1f344a;
  font-size: 0.98rem;
}

.license-meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.license-meta__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.license-meta__label {
  color: #60758d;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.license-meta__value,
.license-meta__code {
  color: #1f344a;
  font-size: 0.93rem;
}

.license-meta__code {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.45rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.05);
  word-break: break-all;
}

.license-form textarea.form-control {
  min-height: 11rem;
  resize: vertical;
}
