:root {
  --pos-sidebar: #0f172a;
  --pos-sidebar-text: #cbd5e1;
  --pos-sidebar-active: #115e59;
  --pos-accent: #0f766e;
  --pos-bg: #f1f5f9;
  --pos-topbar: #ffffff;
  --pos-gold: #c9a227;
  --pos-header-primary-height: 44px;
  --pos-gold-bar-height: 3px;
  --pos-header-secondary-height: 34px;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--pos-bg);
  color: #0f172a;
}

.pos-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.pos-header-bars {
  width: 100%;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 1050;
}

.pos-topbar-primary {
  width: 100%;
  height: var(--pos-header-primary-height);
  background: var(--pos-sidebar);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
}

.pos-topbar-primary .pos-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pos-brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.5rem;
  background: var(--pos-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.pos-gold-bar {
  width: 100%;
  height: var(--pos-gold-bar-height);
  background: linear-gradient(90deg, #b8860b 0%, var(--pos-gold) 45%, #f0d78c 50%, var(--pos-gold) 55%, #b8860b 100%);
}

.pos-topbar-secondary {
  width: 100%;
  min-height: var(--pos-header-secondary-height);
  height: auto;
  background: var(--pos-topbar);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 1rem;
  overflow: visible;
}

.pos-top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  min-width: 0;
  width: 100%;
}

.pos-top-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  padding: 0.2rem 0.15rem;
  white-space: nowrap;
  display: inline-block;
}

.pos-top-link:hover {
  color: var(--pos-accent);
}

.pos-top-link.active {
  color: var(--pos-accent);
}

.pos-top-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.pos-top-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.pos-top-twistee {
  border: 0;
  background: transparent;
  color: #0f172a;
  padding: 0.1rem 0.2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-top-twistee:hover,
.pos-top-dropdown.active .pos-top-twistee,
.pos-top-dropdown.open .pos-top-twistee {
  color: var(--pos-accent);
}

.pos-top-twistee i {
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.pos-top-dropdown.open .pos-top-twistee i {
  transform: rotate(90deg);
}

.pos-top-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  z-index: 40;
  min-width: 11rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.pos-top-dropdown-item {
  display: block;
  padding: 0.4rem 0.85rem;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.pos-top-dropdown-item:hover {
  background: #f8fafc;
  color: var(--pos-accent);
}

.pos-home-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0.15rem;
}

.pos-home-link:hover {
  color: var(--pos-accent);
}

.pos-home-link.active {
  color: var(--pos-accent);
}

.pos-topbar-title {
  font-weight: 600;
}

.pos-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pos-user-name {
  font-weight: 600;
  color: #e2e8f0;
}

.pos-body {
  flex: 1;
  min-height: 0;
  display: flex;
  width: 100%;
}

.pos-sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: var(--pos-sidebar);
  color: var(--pos-sidebar-text);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--pos-header-primary-height) - var(--pos-gold-bar-height) - var(--pos-header-secondary-height));
  transition: width 0.2s ease, flex-basis 0.2s ease;
}

.pos-sidebar-toggle-row {
  display: flex;
  justify-content: flex-end;
  padding: 0.55rem 0.65rem 0.15rem;
}

.pos-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(234, 88, 12, 0.55);
  border-radius: 0.4rem;
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
  cursor: pointer;
  padding: 0;
}

.pos-sidebar-toggle:hover {
  background: rgba(234, 88, 12, 0.22);
  color: #fb923c;
}

.pos-sidebar-toggle i {
  font-size: 1.15rem;
  line-height: 1;
}

.pos-sidebar.collapsed {
  width: 58px;
  flex: 0 0 58px;
}

.pos-sidebar.collapsed .pos-sidebar-toggle-row {
  justify-content: center;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.pos-sidebar.collapsed .pos-nav {
  display: none;
}

.pos-nav {
  padding: 0.65rem 0.75rem 1.5rem;
  overflow-y: auto;
}

.pos-nav-label {
  margin: 0.35rem 0.5rem 0.55rem;
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #ea580c;
}

.pos-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0;
  color: var(--pos-sidebar-text);
  text-decoration: none;
  border-bottom: 1px solid #ea580c;
}

.pos-nav-link i {
  font-size: 1.1rem;
  line-height: 1;
  width: 1.25rem;
  text-align: center;
  color: #ea580c;
  flex: 0 0 auto;
}

.pos-nav-link.active i,
.pos-nav-link:hover i {
  color: #fb923c;
}

.pos-nav-permanent {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: none;
  display: grid;
  gap: 0.2rem;
}

a.pos-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.pos-nav-link.active {
  background: var(--pos-sidebar-active);
  color: #fff;
}

.pos-nav-link.disabled {
  opacity: 0.45;
  cursor: default;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.module-card {
  --module-accent: #0d9488;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 140px;
  padding: 1.25rem 0.85rem 1.1rem;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--module-accent);
}

.module-grid > .module-card:nth-child(10n + 1) { --module-accent: #0d9488; }
.module-grid > .module-card:nth-child(10n + 2) { --module-accent: #ea580c; }
.module-grid > .module-card:nth-child(10n + 3) { --module-accent: #2563eb; }
.module-grid > .module-card:nth-child(10n + 4) { --module-accent: #16a34a; }
.module-grid > .module-card:nth-child(10n + 5) { --module-accent: #0891b2; }
.module-grid > .module-card:nth-child(10n + 6) { --module-accent: #d97706; }
.module-grid > .module-card:nth-child(10n + 7) { --module-accent: #e11d48; }
.module-grid > .module-card:nth-child(10n + 8) { --module-accent: #475569; }
.module-grid > .module-card:nth-child(10n + 9) { --module-accent: #0ea5e9; }
.module-grid > .module-card:nth-child(10n + 10) { --module-accent: #65a30d; }

.module-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--module-accent) 45%, #e2e8f0);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.module-card-disabled,
.module-card-disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  border-color: #e2e8f0;
}

.module-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--module-accent) 16%, #ffffff);
  color: var(--module-accent);
  font-size: 1.45rem;
}

.module-card-name {
  font-weight: 650;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.25;
}

/* POS mode picker — scoped to /POS/Index only */
.pos-mode-page {
  --pos-cash: #059669;
  --pos-cash-deep: #047857;
  --pos-cash-soft: #ecfdf5;
  --pos-monthly: #2563eb;
  --pos-monthly-deep: #1d4ed8;
  --pos-monthly-soft: #eff6ff;
  --pos-mode-ink: #0f172a;
  --pos-mode-muted: #64748b;
  --pos-mode-border: #e2e8f0;
  max-width: 680px;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
}

.pos-mode-hero {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--pos-mode-border);
}

.pos-mode-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pos-accent);
}

.pos-mode-heading {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--pos-mode-ink);
}

.pos-mode-lead {
  margin: 0;
  max-width: 46rem;
  color: var(--pos-mode-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.pos-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

@media (max-width: 767.98px) {
  .pos-mode-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }

  .pos-mode-hero {
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
  }
}

.pos-mode-card {
  --mode-accent: var(--pos-cash);
  --mode-accent-deep: var(--pos-cash-deep);
  --mode-soft: var(--pos-cash-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  min-height: 0;
  padding: 1.05rem 1rem 0.95rem;
  text-decoration: none;
  color: var(--pos-mode-ink);
  background:
    linear-gradient(160deg, var(--mode-soft) 0%, #ffffff 42%, #ffffff 100%);
  border: 1px solid color-mix(in srgb, var(--mode-accent) 22%, var(--pos-mode-border));
  border-radius: 0.85rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 18px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.pos-mode-card:hover,
.pos-mode-card:focus-visible {
  transform: translateY(-3px);
  color: var(--pos-mode-ink);
  border-color: color-mix(in srgb, var(--mode-accent) 50%, var(--pos-mode-border));
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 18px 36px color-mix(in srgb, var(--mode-accent) 18%, rgba(15, 23, 42, 0.1));
  outline: none;
}

.pos-mode-card:focus-visible {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--mode-accent) 28%, transparent),
    0 18px 36px color-mix(in srgb, var(--mode-accent) 18%, rgba(15, 23, 42, 0.1));
}

.pos-mode-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mode-accent) 0%, var(--mode-accent-deep) 100%);
}

.pos-mode-card--cash {
  --mode-accent: var(--pos-cash);
  --mode-accent-deep: var(--pos-cash-deep);
  --mode-soft: var(--pos-cash-soft);
}

.pos-mode-card--monthly {
  --mode-accent: var(--pos-monthly);
  --mode-accent-deep: var(--pos-monthly-deep);
  --mode-soft: var(--pos-monthly-soft);
}

.pos-mode-card__icon {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--mode-accent) 72%, #ffffff) 0%, var(--mode-accent-deep) 100%);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--mode-accent) 28%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pos-mode-card:hover .pos-mode-card__icon,
.pos-mode-card:focus-visible .pos-mode-card__icon {
  transform: scale(1.03);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--mode-accent) 36%, transparent);
}

.pos-mode-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 auto;
}

.pos-mode-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mode-accent-deep);
  background: color-mix(in srgb, var(--mode-accent) 12%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--mode-accent) 18%, transparent);
}

.pos-mode-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--pos-mode-ink);
}

.pos-mode-card__desc {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: 28ch;
}

.pos-mode-card__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  align-self: stretch;
  margin-top: auto;
  padding: 0.5rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, var(--mode-accent) 0%, var(--mode-accent-deep) 100%);
  box-shadow: 0 5px 12px color-mix(in srgb, var(--mode-accent) 24%, transparent);
  transition: gap 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pos-mode-card__cta i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.pos-mode-card:hover .pos-mode-card__cta,
.pos-mode-card:focus-visible .pos-mode-card__cta {
  gap: 0.75rem;
  filter: brightness(1.03);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--mode-accent) 36%, transparent);
}

.pos-mode-card:hover .pos-mode-card__cta i,
.pos-mode-card:focus-visible .pos-mode-card__cta i {
  transform: translateX(3px);
}

.pos-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pos-content {
  padding: 1.25rem;
}

.page-heading {
  font-size: 2rem;
  font-weight: 750;
  color: #ea580c;
  line-height: 1.2;
}

.invoice-details-heading {
  font-size: 1.35rem;
  font-weight: 700;
}

.invoice-meta-grid {
  display: flex;
  flex-direction: column;
}

.invoice-meta-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) 9.5rem minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #cbd5e1;
}

.invoice-meta-row:first-child {
  padding-top: 0.15rem;
}

.invoice-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0.15rem;
}

.invoice-meta-section {
  margin-bottom: 1rem;
}

.invoice-meta-section:last-of-type {
  margin-bottom: 0.35rem;
}

.invoice-meta-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.invoice-meta-section .invoice-meta-grid {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #fff;
}

.invoice-meta-form .invoice-meta-row {
  padding: 0.35rem 0;
  align-items: center;
}

.invoice-meta-form .invoice-meta-title {
  margin-bottom: 0;
  font-size: 0.875rem;
  width: 9.5rem;
  max-width: 9.5rem;
}

.invoice-meta-form .invoice-meta-input {
  color: #1d4ed8;
  font-weight: 500;
  border-color: #cbd5e1;
  min-height: calc(1.5em + 0.35rem + 2px);
  padding-top: 0.18rem;
  padding-bottom: 0.18rem;
  width: 100%;
}

.invoice-meta-form .invoice-meta-input:focus {
  color: #1e40af;
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15);
}

.invoice-meta-form .invoice-meta-input[readonly],
.invoice-meta-form .invoice-meta-input:disabled {
  background-color: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
  opacity: 1;
  cursor: default;
}

.invoice-meta-readonly .invoice-meta-field {
  color: #1d4ed8;
  font-weight: 500;
  line-height: 1.35;
  padding: 0.15rem 0;
}

.invoice-meta-form .invoice-meta-field-span {
  grid-column: 2 / -1;
}

.invoice-meta-form + .crud-form-actions,
.invoice-meta-form ~ .mt-3,
.invoice-meta-section ~ .mt-3 {
  margin-top: 0.85rem !important;
}

.invoice-meta-title {
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.invoice-meta-field {
  color: #1d4ed8;
  font-weight: 500;
  min-width: 0;
  word-break: break-word;
}

.invoice-meta-field .invoice-meta-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: #2563eb;
  font-weight: 400;
}

@media (max-width: 767.98px) {
  .invoice-meta-row {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .invoice-meta-form .invoice-meta-title {
    width: 7.5rem;
    max-width: 7.5rem;
  }
}

.pos-content:has(.pos-sale-layout) {
  padding-top: 0.35rem;
}

.pos-sale-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  min-height: calc(100vh - 160px);
  margin-top: 0;
}

.pos-sale-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  overflow: hidden;
  min-height: 420px;
}

.pos-sale-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pos-sale-panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.pos-sale-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pos-sale-toolbar .form-control {
  width: min(220px, 40vw);
}

.pos-sale-table-wrap {
  flex: 1;
  overflow: auto;
}

.pos-product-row {
  cursor: pointer;
}

.pos-product-row.selected,
.pos-product-row.selected:hover {
  background: rgba(234, 88, 12, 0.12) !important;
}

.pos-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pos-qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 650;
}

.pos-sale-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-top: 2px solid #ea580c;
  background: #fff7ed;
  font-size: 1.15rem;
}

.pos-sale-total-bar strong {
  color: #ea580c;
  font-size: 1.35rem;
}

.monthly-entry-layout {
  grid-template-columns: 30% 70%;
}

.monthly-entry-layout .pos-sale-panel:last-child {
  min-height: 520px;
}

.monthly-customer-row {
  cursor: pointer;
}

.monthly-customer-row.selected,
.monthly-customer-row.selected:hover {
  background: rgba(234, 88, 12, 0.12) !important;
}

.monthly-selected-bar strong {
  font-size: 1rem;
  max-width: 70%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-invoice-bar {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.monthly-invoice-bar .btn {
  white-space: nowrap;
}

.monthly-entry-layout .row.g-2 > [class*="col-"] {
  margin-bottom: 0.15rem;
}

@media (max-width: 992px) {
  .pos-sale-layout,
  .monthly-entry-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.pos-backdrop {
  display: none;
}

.metric-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  height: 100%;
}

.metric-card-alert {
  border-color: #f59e0b;
}

.metric-label {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 700;
}

.dashboard-chart-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-chart-card__header {
  padding: 1rem 1.15rem 0.35rem;
}

.dashboard-chart-card__header--with-filter {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.dashboard-item-month-filter {
  min-width: 9.5rem;
}

.dashboard-chart-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.dashboard-chart-card__subtitle {
  color: #64748b;
  font-size: 0.86rem;
  margin-top: 0.2rem;
}

.dashboard-chart-card__body {
  padding: 0.5rem 1rem 1.1rem;
  height: 280px;
}

.dashboard-chart-card__body--tall {
  height: 320px;
}

.dashboard-chart-card__body--pie {
  height: 320px;
}

.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
}

.login-header-bars {
  flex: 0 0 auto;
}

.login-topbar-secondary {
  justify-content: flex-start;
}

.login-split {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
}

.login-split-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #eef2f7 100%);
  border-right: 1px solid #e2e8f0;
}

.login-form-panel {
  width: 100%;
  max-width: 420px;
}

.login-split-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.25), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(201, 162, 39, 0.18), transparent 40%),
    linear-gradient(145deg, #0f172a 0%, #134e4a 48%, #0f766e 100%);
  color: #f8fafc;
}

.login-visual-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-visual-ring-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -140px;
}

.login-visual-ring-2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -60px;
  border-color: rgba(240, 215, 140, 0.15);
}

.login-visual-ring-3 {
  width: 220px;
  height: 220px;
  top: 42%;
  left: 12%;
  border-color: rgba(20, 184, 166, 0.25);
}

.login-visual-content {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.login-visual-tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(240, 215, 140, 0.35);
  color: #f0d78c;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-visual-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
}

.login-visual-text {
  margin: 0 0 1.25rem;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.55;
}

.login-visual-graphic {
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

.login-visual-graphic svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.login-visual-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.login-visual-features li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.82rem;
  color: #e2e8f0;
}

.login-card {
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.login-card-header {
  margin-bottom: 1.35rem;
}

.login-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
}

.login-subtitle {
  margin: 0;
  color: #64748b;
}

.login-form .form-label {
  font-weight: 600;
  color: #334155;
}

.login-form .form-control {
  border-color: #cbd5e1;
}

.login-form .form-control:focus {
  border-color: var(--pos-accent);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.18);
}

.login-submit {
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .login-split {
    grid-template-columns: 1fr;
  }

  .login-split-form {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 1.25rem;
  }

  .login-split-visual {
    min-height: 320px;
    padding: 2rem 1.25rem;
  }

  .login-visual-title {
    font-size: 1.65rem;
  }
}

.btn-primary {
  background-color: var(--pos-accent);
  border-color: var(--pos-accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0d5f58;
  border-color: #0d5f58;
}

@media (max-width: 991.98px) {
  .pos-body {
    flex-direction: column;
  }

  .pos-sidebar {
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
  }

  .pos-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
  }

  .pos-nav-label {
    flex: 0 0 100%;
    margin: 0.45rem 0.25rem 0.1rem;
  }
}
