/* Iinventory application theme — presentation only */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --app-primary: #1d4ed8;
  --app-primary-hover: #1e40af;
  --app-primary-soft: #eff6ff;
  --app-secondary: #334155;
  --app-bg: #f1f5f9;
  --app-surface: #ffffff;
  --app-border: #e2e8f0;
  --app-text: #0f172a;
  --app-muted: #64748b;
  --app-success: #059669;
  --app-success-soft: #ecfdf5;
  --app-warning: #d97706;
  --app-warning-soft: #fffbeb;
  --app-danger: #dc2626;
  --app-danger-soft: #fef2f2;
  --app-info: #0284c7;
  --app-info-soft: #f0f9ff;
  --app-radius: 8px;
  --app-radius-sm: 6px;
  --app-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --app-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --app-sidebar-width: 264px;
  --app-topbar-height: 64px;
  --app-space: 1rem;
  --app-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --app-fs-xs: 0.75rem;
  --app-fs-sm: 0.8125rem;
  --app-fs-md: 0.9375rem;
  --app-fs-lg: 1.125rem;
  --app-fs-xl: 1.375rem;
}

html,
body.app-body,
body.app-auth-body {
  height: auto;
  min-height: 100%;
}

body.app-body,
body.app-auth-body {
  margin: 0;
  padding: 0;
  font-family: var(--app-font);
  font-size: var(--app-fs-md);
  color: var(--app-text);
  background: var(--app-bg) !important;
  line-height: 1.5;
}

body.app-body h1,
body.app-body h2,
body.app-body h3,
body.app-body h4,
body.app-body h5,
body.app-body h6,
body.app-auth-body h1,
body.app-auth-body h2,
body.app-auth-body h3 {
  font-family: var(--app-font);
  font-weight: 600;
  color: var(--app-text);
}

body.app-body *:focus-visible,
body.app-auth-body *:focus-visible {
  outline: 2px solid var(--app-primary) !important;
  outline-offset: 2px;
}

.app-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--app-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
}
.app-skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.app-sidebar {
  width: var(--app-sidebar-width);
  flex: 0 0 var(--app-sidebar-width);
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.app-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.15rem 1.15rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-brand img {
  height: auto;
  width: 100%;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  background: #000;
  border-radius: 6px;
}

.app-sidebar-brand-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
}

.app-sidebar-user {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-user h3,
.app-sidebar-user h3 small {
  font-family: var(--app-font);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.app-sidebar-user small {
  display: block;
  font-weight: 500;
  color: #94a3b8;
  font-size: var(--app-fs-sm);
}

.app-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.app-sidebar-actions a {
  font-size: var(--app-fs-xs);
  color: #cbd5e1 !important;
  text-decoration: none;
}

.app-sidebar-actions a:hover {
  color: #fff !important;
}

.app-sidebar .navbar,
.app-sidebar .navbar.bg-light,
.app-sidebar .navbar-light,
.app-sidebar .app-sidebar-nav {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.75rem 0 1.5rem;
  background: transparent !important;
  flex: 1;
  overflow-y: auto;
  align-items: stretch;
}

.app-sidebar .navbar-toggler {
  display: none !important;
}

.app-sidebar .navbar .container,
.app-sidebar .navbar .container-fluid {
  width: 100% !important;
  max-width: none !important;
  padding: 0 0.75rem !important;
  margin: 0;
  display: block;
}

.app-sidebar .navbar-collapse {
  display: block !important;
  flex-basis: auto !important;
  width: 100%;
}

.app-sidebar .navbar-nav,
.app-sidebar .navbar-expand-lg .navbar-nav {
  display: flex !important;
  width: 100%;
  height: auto !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.app-sidebar .nav-item {
  list-style: none;
  width: 100%;
  margin: 0;
  display: block;
}

.app-sidebar .nav-link,
.app-sidebar .navbar-nav .nav-link,
.app-sidebar .navbar-nav > li > a,
.app-sidebar .navbar-expand-lg .navbar-nav .nav-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 0.7rem;
  width: 100%;
  color: #cbd5e1 !important;
  font-size: var(--app-fs-sm) !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  padding: 0.6rem 0.75rem !important;
  border-radius: var(--app-radius-sm);
  text-transform: none !important;
  text-align: left;
}

.app-sidebar .app-nav-icon,
.app-sidebar .nav-link i.fa,
.app-sidebar .nav-link .fa {
  flex: 0 0 1.35rem;
  width: 1.35rem !important;
  height: 1.35rem;
  font-size: 0.95rem !important;
  line-height: 1.35rem !important;
  text-align: center;
  color: #94a3b8;
}

.app-sidebar .app-nav-label {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar .dropdown-toggle::after {
  margin-left: auto;
  margin-right: 0.1rem;
  flex: 0 0 auto;
  vertical-align: 0;
}

.app-sidebar .navbar-nav > .open > a:after {
  content: none !important;
  display: none !important;
}

.app-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

.app-sidebar .nav-link.active,
.app-sidebar a.active {
  background: var(--app-primary) !important;
  color: #fff !important;
  width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0.75rem !important;
  border-right: 0 !important;
}

.app-sidebar .nav-link.active i.fa,
.app-sidebar .nav-link.active .app-nav-icon {
  color: #fff;
}

.app-sidebar .dropdown-menu {
  position: static !important;
  transform: none !important;
  inset: auto !important;
  float: none !important;
  width: 100%;
  margin: 0.15rem 0 0.35rem;
  padding: 0.25rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--app-radius-sm);
  box-shadow: none;
}

.app-sidebar .dropdown-item,
.app-sidebar .dropdown-menu a {
  color: #cbd5e1 !important;
  font-size: var(--app-fs-xs);
  padding: 0.45rem 0.65rem 0.45rem 2.1rem !important;
  border-radius: 4px;
  display: block;
  text-transform: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar .dropdown-item:hover,
.app-sidebar .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--app-bg);
}

.app-topbar {
  min-height: var(--app-topbar-height);
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-sidebar-toggle {
  display: none;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  color: var(--app-text);
  border-radius: var(--app-radius-sm);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.app-topbar-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.app-content {
  padding: 1.25rem 1.5rem 2rem;
  flex: 1;
}

.app-content .page {
  margin-top: 0;
}

.app-sidebar-backdrop {
  display: none;
}

/* License */
.license-info.app-license,
.app-license {
  margin: 0 0 1.25rem;
  max-height: none;
}

.app-license .card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  background: var(--app-surface);
}

.app-license .card.bg-info {
  background: var(--app-surface) !important;
}

.app-license .card-body {
  padding: 0.9rem 1.1rem;
}

.app-license h4,
.app-license h4 span,
.app-license .text-white {
  color: var(--app-text) !important;
  font-size: 0.85rem;
  margin: 0;
  font-weight: 600;
}

.app-license .user-license {
  font-size: 1rem;
  background: var(--app-primary-soft);
  color: var(--app-primary) !important;
  border-radius: var(--app-radius-sm);
  padding: 0.15rem 0.5rem;
}

.app-license .badge {
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
}

.app-license img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover;
}

/* Cards / tables / forms */
body.app-body .card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

body.app-body .card-body {
  padding: 1.15rem 1.25rem;
}

body.app-body .card-title {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.app-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.app-page-title {
  font-size: var(--app-fs-xl);
  margin: 0;
  letter-spacing: -0.02em;
}

.app-page-subtitle {
  margin: 0.2rem 0 0;
  color: var(--app-muted);
  font-size: var(--app-fs-sm);
}

.app-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: var(--app-muted);
}

.app-breadcrumb a {
  color: var(--app-muted);
  text-decoration: none;
}

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

.app-breadcrumb-current {
  color: var(--app-text);
  font-weight: 600;
}

.app-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.app-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--app-border);
}

.app-section,
.app-form-section {
  margin-bottom: 1.25rem;
}

.app-section-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--app-text);
}

.app-section-desc {
  margin: 0 0 0.85rem;
  color: var(--app-muted);
  font-size: var(--app-fs-sm);
}

.app-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}

.app-filter-bar label {
  display: block;
  margin-bottom: 0.25rem;
}

.app-data-table {
  overflow-x: auto;
}

.app-upload {
  border: 1px dashed var(--app-border);
  border-radius: var(--app-radius);
  padding: 1rem;
  background: #f8fafc;
  text-align: center;
}

.app-upload img,
.app-media img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  margin-bottom: 0.75rem;
}

.app-upload .form-control {
  margin-top: 0.5rem;
}

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

.app-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

body.app-body .page .margin-top-30 {
  margin-top: 1rem !important;
}

body.app-body .dataTables_wrapper .dataTables_filter input,
body.app-body .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  min-height: 36px;
  padding: 0.25rem 0.5rem;
}

body.app-body .dataTables_paginate .paginate_button.current,
body.app-body .page-item.active .page-link {
  background: var(--app-primary) !important;
  border-color: var(--app-primary) !important;
  color: #fff !important;
}

body.app-body .dataTables_empty,
body.app-body td.dataTables_empty {
  padding: 2rem 1rem !important;
  color: var(--app-muted) !important;
  font-weight: 400 !important;
}

body.app-body .badge.bg-success {
  background: var(--app-success-soft) !important;
  color: var(--app-success) !important;
}

body.app-body .badge.bg-warning {
  background: var(--app-warning-soft) !important;
  color: #92400e !important;
}

body.app-body .badge.bg-danger {
  background: var(--app-danger-soft) !important;
  color: var(--app-danger) !important;
}

body.app-body .badge.bg-info,
body.app-body .badge.bg-primary {
  background: var(--app-primary-soft) !important;
  color: var(--app-primary) !important;
}

body.app-body .badge.bg-dark {
  background: #e2e8f0 !important;
  color: var(--app-secondary) !important;
}

.ui-pnotify .alert {
  border-radius: var(--app-radius);
}

.app-pos-search {
  position: relative;
  margin-bottom: 1rem;
}

.app-pos-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  color: var(--app-muted);
}

.app-pos-search .form-control {
  padding-left: 2.25rem !important;
}

.app-pos-grid {
  max-height: 70vh;
  overflow: auto;
}

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

  .app-form-actions,
  .app-action-group {
    justify-content: stretch;
  }

  .app-form-actions .btn,
  .app-action-group .btn {
    width: 100%;
  }
}

body.app-body .btn {
  border-radius: var(--app-radius-sm);
  font-weight: 550;
  font-size: var(--app-fs-sm);
  padding: 0.45rem 0.9rem;
  box-shadow: none;
}

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

body.app-body .btn-primary:hover,
body.app-body .btn-info:hover,
body.app-body .btn-info-rgba:hover {
  background: var(--app-primary-hover) !important;
  border-color: var(--app-primary-hover) !important;
}

body.app-body .btn-success,
body.app-body .btn-success-rgba {
  background: var(--app-success) !important;
  border-color: var(--app-success) !important;
  color: #fff !important;
}

body.app-body .btn-danger,
body.app-body .btn-danger-rgba {
  background: var(--app-danger) !important;
  border-color: var(--app-danger) !important;
  color: #fff !important;
}

body.app-body .btn-warning {
  background: var(--app-warning) !important;
  border-color: var(--app-warning) !important;
  color: #fff !important;
}

body.app-body .btn-dark {
  background: var(--app-secondary) !important;
  border-color: var(--app-secondary) !important;
}

body.app-body .form-control,
body.app-body .form-select,
body.app-body select.form-control,
body.app-body textarea.form-control {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  min-height: 40px;
  font-size: var(--app-fs-sm);
  color: var(--app-text);
  background: var(--app-surface);
  box-shadow: none;
}

body.app-body .form-control:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

body.app-body label,
body.app-body .control-label {
  font-size: var(--app-fs-sm);
  font-weight: 550;
  color: var(--app-secondary);
  margin-bottom: 0.3rem;
}

body.app-body table td {
  color: var(--app-text) !important;
  font-size: var(--app-fs-sm) !important;
  font-weight: 400 !important;
  vertical-align: middle;
}

body.app-body table thead th,
body.app-body table thead td,
body.app-body table th {
  font-size: var(--app-fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--app-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--app-border);
  white-space: nowrap;
}

body.app-body .table {
  border-color: var(--app-border);
}

body.app-body .table-striped > tbody > tr:nth-of-type(odd) {
  background: #f8fafc;
}

body.app-body .table-hover tbody tr:hover {
  background: var(--app-primary-soft);
}

body.app-body .table-responsive,
body.app-body .dataTables_wrapper {
  overflow-x: auto;
}

body.app-body .badge {
  font-weight: 550;
  border-radius: 999px;
  padding: 0.3em 0.65em;
}

body.app-body .alert {
  border-radius: var(--app-radius);
  border: 1px solid transparent;
}

body.app-body .modal-content {
  border: 0;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-md);
}

body.app-body .modal-header,
body.app-body .modal-footer {
  border-color: var(--app-border);
}

body.app-body .modal-body {
  padding: 1.25rem 1.35rem;
}

/* KPI */
.app-kpi {
  border-radius: var(--app-radius);
  padding: 1.1rem 1.15rem;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}

.app-kpi h4 {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--app-muted) !important;
  margin: 0;
  font-weight: 600;
}

.app-kpi h2,
.app-kpi h5 + h2,
.app-kpi .app-kpi-value {
  margin: 0.35rem 0 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--app-text) !important;
}

.app-kpi.bg-info,
.app-kpi.bg-primary,
.app-kpi.bg-success,
.app-kpi.bg-dark,
.card.bg-info,
.card.bg-primary,
.card.bg-success,
.card.bg-dark {
  background: var(--app-surface) !important;
  border: 1px solid var(--app-border) !important;
}

.card.bg-info .text-white,
.card.bg-primary .text-white,
.card.bg-success .text-white,
.card.bg-dark .text-white,
.card.bg-info h5,
.card.bg-primary h5,
.card.bg-success h5,
.card.bg-dark h5,
.card.bg-info h2,
.card.bg-primary h2,
.card.bg-success h2,
.card.bg-info .card-title,
.card.bg-info .card-text {
  color: var(--app-text) !important;
}

.app-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  margin-bottom: 0.5rem;
}

/* POS / product tiles */
.add-to-cart {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 0.65rem;
  background: var(--app-surface);
  text-align: center;
  height: 100%;
}

.add-to-cart img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 6px;
}

.add-to-cart h6 {
  font-size: 0.75rem;
  margin: 0.45rem 0 0.3rem;
  line-height: 1.3;
}

.sales_item_list .col-md-2 {
  margin-bottom: 0.75rem;
}

/* Auth / login */
body.app-auth-body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #0b0b0b !important;
}

body.app-auth-body > div,
body.app-auth-body > div > div {
  min-height: 100vh;
}

.app-login {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #0b0b0b;
}

.app-login-brand {
  flex: 1 1 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: #000;
}

.app-login-brand img {
  display: block;
  width: min(420px, 88%);
  height: auto;
  max-height: 160px;
  object-fit: contain;
  position: static !important;
  right: auto !important;
}

.app-login-brand-copy {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  text-align: center;
  color: #a3a3a3;
  font-size: 0.95rem;
}

.app-login-main {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: #f4f6f8;
}

.app-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.75rem 1.35rem;
}

.app-login-title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #111827;
}

.app-login-subtitle {
  margin: 0.35rem 0 1.35rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.app-login-field {
  margin-bottom: 1rem;
}

.app-login-field .form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.app-login-card .input-group-text {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #6b7280;
  min-width: 44px;
  justify-content: center;
}

.app-login-card .form-control {
  margin-left: 0 !important;
  min-height: 44px;
  border: 1px solid #d1d5db;
  font-size: 0.9375rem;
}

.app-login-card .form-control:focus {
  border-color: #e54841;
  box-shadow: 0 0 0 3px rgba(229, 72, 65, 0.18);
}

.app-login-remember {
  margin: 0.25rem 0 1.15rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.app-login-submit {
  width: 100%;
  min-height: 44px;
  background: #e54841 !important;
  border-color: #e54841 !important;
  color: #fff !important;
  font-weight: 600;
}

.app-login-submit:hover,
.app-login-submit:focus {
  background: #cf3d37 !important;
  border-color: #cf3d37 !important;
  color: #fff !important;
}

.app-login-footer {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #eef0f3;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

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

.app-login-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .app-login {
    flex-direction: column;
  }

  .app-login-brand {
    flex: 0 0 auto;
    min-height: 180px;
    padding: 1.75rem 1.25rem 1.25rem;
  }

  .app-login-brand img {
    max-height: 96px;
  }

  .app-login-brand-copy {
    display: none;
  }

  .app-login-main {
    flex: 1 1 auto;
    align-items: flex-start;
    padding: 1.25rem 1rem 2rem;
  }

  .app-login-card {
    padding: 1.5rem 1.15rem 1.15rem;
  }
}

.app-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--app-muted);
}

.app-empty h2 {
  font-size: 1.25rem;
}

/* Loader */
body.app-body .loading {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  z-index: 9993;
}

/* Chosen */
body.app-body .chosen-container-single .chosen-single {
  height: 40px;
  line-height: 38px;
  border-radius: var(--app-radius-sm);
  border-color: var(--app-border);
}

/* Mosaic container override inside app */
body.app-body .container {
  width: auto !important;
  max-width: none;
}

body.app-print-body {
  background: #fff;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }

  body.app-sidebar-open .app-sidebar {
    transform: translateX(0);
    box-shadow: var(--app-shadow-md);
  }

  .app-sidebar-toggle {
    display: inline-flex;
  }

  body.app-sidebar-open .app-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1035;
  }

  .app-content {
    padding: 1rem;
  }

  .app-license .row > .col {
    margin-top: 0.75rem !important;
  }

  #low_stock_statistic {
    width: 100% !important;
    height: 320px !important;
  }
}

@media (max-width: 575.98px) {
  .app-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
