/* VetCare Professional UI — unified application stylesheet
   Generated from the reviewed legacy layers, with exact duplicate overrides removed. */

/* Local Tajawal font: Arabic and Latin subsets are shipped with the application. */
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/tajawal/tajawal-arabic-400-normal.d595af28c13f.woff2") format("woff2");
  unicode-range:
    U+0600-06ff, U+0750-077f, U+0870-088e, U+0890-0891, U+0897-08ff,
    U+fb50-fdff, U+fe70-fefc;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/tajawal/tajawal-latin-400-normal.f18eb7346bae.woff2") format("woff2");
  unicode-range:
    U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc,
    U+2000-206f, U+20ac, U+2122;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/tajawal/tajawal-arabic-500-normal.899cfbe65444.woff2") format("woff2");
  unicode-range:
    U+0600-06ff, U+0750-077f, U+0870-088e, U+0890-0891, U+0897-08ff,
    U+fb50-fdff, U+fe70-fefc;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/tajawal/tajawal-latin-500-normal.7256be463352.woff2") format("woff2");
  unicode-range:
    U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc,
    U+2000-206f, U+20ac, U+2122;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/tajawal/tajawal-arabic-700-normal.10367de774c9.woff2") format("woff2");
  unicode-range:
    U+0600-06ff, U+0750-077f, U+0870-088e, U+0890-0891, U+0897-08ff,
    U+fb50-fdff, U+fe70-fefc;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/tajawal/tajawal-latin-700-normal.e9c38c1110be.woff2") format("woff2");
  unicode-range:
    U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc,
    U+2000-206f, U+20ac, U+2122;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 800 900;
  src: url("../fonts/tajawal/tajawal-arabic-800-normal.93993923a466.woff2") format("woff2");
  unicode-range:
    U+0600-06ff, U+0750-077f, U+0870-088e, U+0890-0891, U+0897-08ff,
    U+fb50-fdff, U+fe70-fefc;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 800 900;
  src: url("../fonts/tajawal/tajawal-latin-800-normal.316fa1995ea5.woff2") format("woff2");
  unicode-range:
    U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc,
    U+2000-206f, U+20ac, U+2122;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(20, 184, 166, 0.1),
      transparent 26rem
    ),
    radial-gradient(
      circle at bottom right,
      rgba(37, 99, 235, 0.08),
      transparent 24rem
    ),
    var(--bg);
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  overflow-x: hidden;
}

body.sidebar-lock {
  overflow: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

:root {
  --sidebar-radius: 22px;
  --sidebar-bg-1: #071f24;
  --sidebar-bg-2: #0f3f3b;
  --sidebar-bg-3: #0f172a;
  --sidebar-text: #f8fafc;
  --sidebar-muted: #a7b4c7;
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --sidebar-hover: rgba(255, 255, 255, 0.095);
  --sidebar-active: rgba(45, 212, 191, 0.18);
  --sidebar-icon: #7dd3fc;
  --sidebar-accent: #2dd4bf;
  --sidebar-shadow: -18px 0 45px rgba(2, 6, 23, 0.24);
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  overflow-y: auto;
  overflow-x: hidden;
  will-change: transform;
}
body.sidebar-hidden .sidebar {
  box-shadow: none;
}
.sidebar::-webkit-scrollbar {
  width: 7px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
}

.sidebar-brand-wrap {
  top: -16px;
  align-items: center;
  gap: 10px;
  margin: -16px 0 10px;
  backdrop-filter: blur(10px);
}

.brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: 0.2s ease;
}

.brand-icon {
  min-width: 49px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.brand small {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}
.sidebar-close {
  min-width: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.nav-section {
  padding: 4px 0;
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 7px;
  color: var(--sidebar-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.25px;
}

.nav-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.28), transparent);
}
.sidebar-nav .nav-link {
  position: relative;
  min-height: 46px;
  margin-bottom: 5px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.sidebar-nav .nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 4px;
  height: 0;
  border-radius: 999px;
  background: var(--sidebar-accent);
  transform: translateY(-50%);
  transition: height 0.18s ease;
}

.sidebar-nav .nav-link i {
  width: 25px;
  min-width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-icon);
  font-size: 18px;
  border-radius: 10px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.sidebar-nav .nav-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-nav .nav-link:hover {
  transform: translateX(-4px);
}

.sidebar-nav .nav-link:hover i {
  transform: scale(1.06);
}
.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link[aria-current="page"] {
  transform: translateX(-4px);
}

.sidebar-nav .nav-link.active span,
.sidebar-nav .nav-link[aria-current="page"] span {
  font-weight: 900;
}
.sidebar-nav .nav-link.disabled,
.sidebar-nav .nav-link:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1030;
  display: none;
  background: rgba(2, 6, 23, 0.52);
  backdrop-filter: blur(3px);
}
@media (max-width: 991.98px) {
  body:not(.sidebar-hidden) .sidebar-backdrop {
    display: block;
  }
}

@media (max-width: 575.98px) {
  :root {
    --sidebar-width: min(88vw, 310px);
  }

  .sidebar {
    padding-inline: 12px;
  }

  .brand-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    font-size: 22px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }

  .sidebar-nav .nav-link {
    min-height: 45px;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .brand,
  .sidebar-close,
  .sidebar-nav .nav-link,
  .sidebar-nav .nav-link i,
  .sidebar-nav .nav-link::before {
    transition: none !important;
  }
}

:root {
  --topbar-bg: rgba(255, 255, 255, 0.88);
  --topbar-border: rgba(226, 232, 240, 0.9);
  --topbar-shadow: 0 12px 34px rgba(15, 23, 42, 0.075);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  -webkit-backdrop-filter: blur(18px);
}
.topbar::after {
  content: "";
  position: absolute;
  right: 24px;
  left: 24px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(20, 184, 166, 0.35),
    transparent
  );
  pointer-events: none;
}

.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-start {
  flex: 1;
}

.topbar-end {
  flex-shrink: 0;
}

.sidebar-toggle {
  min-width: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.sidebar-toggle i {
  font-size: 25px;
  line-height: 1;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  border-color: rgba(45, 212, 191, 0.75);
}

.sidebar-toggle:active {
  transform: translateY(0) scale(0.98);
}
body.sidebar-hidden .sidebar-toggle {
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
  border-color: rgba(45, 212, 191, 0.75);
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.24);
}

.page-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-heading h1 {
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-heading span {
  display: block;
  max-width: 40vw;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-action,
.date-pill,
.logout-btn {
  min-height: 43px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.topbar-action {
  text-decoration: none;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.08);
}

.topbar-action i {
  font-size: 17px;
}
.date-pill {
  color: #334155;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
}

.date-pill i {
  color: var(--primary);
  font-size: 17px;
}

.date-pill span {
  white-space: nowrap;
}

.userbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  min-width: 38px;
  font-size: 19px;
  box-shadow:
    0 9px 18px rgba(20, 184, 166, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.user-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-info strong {
  max-width: 150px;
  font-weight: 950;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  width: fit-content;
  padding: 2px 9px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.2;
}

.logout-form {
  margin: 0;
  display: inline-flex;
}

.logout-form .logout-btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.logout-btn i {
  font-size: 17px;
}

.messages-wrap {
  margin-bottom: 16px;
}

.messages-wrap .alert {
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

@media (max-width: 1199.98px) {
  .topbar {
    padding-inline: 18px;
  }

  .page-heading h1,
  .page-heading span {
    max-width: 34vw;
  }
}

@media (max-width: 991.98px) {
  .main {
    margin-right: 0;
  }

  .topbar {
    padding: 11px 14px;
    gap: 12px;
  }

  .page-heading h1 {
    max-width: 42vw;
    font-size: 20px;
  }

  .page-heading span {
    max-width: 42vw;
    font-size: 12px;
  }

  .date-pill {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .topbar {
    min-height: 68px;
    padding: 10px 12px;
  }

  .sidebar-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 16px;
  }

  .sidebar-toggle i {
    font-size: 23px;
  }

  .page-heading h1 {
    max-width: 46vw;
    font-size: 18px;
  }

  .page-heading span {
    max-width: 46vw;
    font-size: 11.5px;
  }

  .topbar-action span,
  .logout-btn span,
  .user-info {
    display: none;
  }

  .topbar-action,
  .logout-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 15px;
  }

  .userbox {
    min-height: 42px;
    padding: 4px;
  }

  .user-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 17px;
  }

  .content {
    padding: 16px 12px;
  }
}

@media (max-width: 575.98px) {
  .topbar-start {
    gap: 9px;
  }

  .topbar-end {
    gap: 8px;
  }

  .page-heading h1 {
    max-width: 38vw;
    font-size: 16px;
  }

  .page-heading span {
    display: none;
  }

  .topbar-action {
    display: none;
  }
}

@media (max-width: 390px) {
  .page-heading {
    display: none;
  }

  .topbar-start {
    flex: unset;
  }

  .topbar {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main,
  .sidebar-toggle,
  .topbar-action,
  .date-pill,
  .logout-btn {
    transition: none !important;
  }
}

.stat-card,
.card-pro,
.table-card,
.form-card,
.detail-card,
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pro h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 950;
}

.table-card .table-responsive {
  border-radius: 14px;
}

.table {
  margin-bottom: 0;
  vertical-align: middle;
}

.table tbody td {
  color: #1f2937;
  font-size: 14px;
}

.form-card {
  max-width: 980px;
}

.form-control,
.form-select {
  border-color: var(--border);
  border-radius: 13px;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(20, 184, 166, 0.58);
  box-shadow: 0 0 0 0.22rem rgba(20, 184, 166, 0.12);
}

.professional-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field:has(textarea),
.form-field:has(input[type="file"]) {
  grid-column: 1 / -1;
}

.form-field textarea {
  min-height: 112px;
}

.form-field-check {
  display: flex;
  align-items: end;
}

.professional-switch {
  min-height: 50px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.professional-switch .form-check-input {
  width: 46px;
  height: 24px;
  margin: 0;
  float: none;
  flex: 0 0 auto;
}

.professional-switch span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.professional-switch b {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.professional-switch small,
.form-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.form-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #115e59;
  border-color: #115e59;
}

.stats-grid {
  display: grid;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -34px;
  bottom: -38px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.09);
}

.stat-card i {
  position: relative;
  z-index: 1;
}

.stat-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-weight: 950;
}

.stat-card.success i {
  color: var(--success);
  background: #f0fdf4;
}

.stat-card.warning i {
  color: var(--warning);
  background: #fffbeb;
}

.line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.line-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  font-weight: 800;
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.searchbox {
  display: flex;
  gap: 8px;
  min-width: min(420px, 100%);
}

.detail-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.detail-box {
  height: 100%;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.detail-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.detail-box strong {
  display: block;
  margin-top: 6px;
  word-break: break-word;
  font-weight: 950;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, #ccfbf1, transparent 23rem),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.login-card {
  width: min(430px, 94vw);
  padding: 32px;
}

.login-logo {
  width: 74px;
  height: 74px;
  margin: auto;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 38px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.18);
}

.login-card h1 {
  margin: 18px 0 6px;
  text-align: center;
  font-weight: 950;
}

.login-card p {
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.demo-logins {
  margin-top: 16px;
  padding: 10px;
  color: #475569;
  font-size: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
}

.pos-products,
.pos-cart {
  min-width: 0;
}

.pos-cart {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.pos-toolbar {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 10px;
  margin-bottom: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-height: calc(100vh - 230px);
  padding-left: 4px;
  overflow-y: auto;
}

.product-grid::-webkit-scrollbar,
.cart-items::-webkit-scrollbar {
  width: 6px;
}

.product-grid::-webkit-scrollbar-thumb,
.cart-items::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.product-tile {
  text-align: right;
  cursor: pointer;
}

.product-tile:hover,
.product-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.12);
}

.product-tile strong,
.product-tile span,
.product-tile small {
  display: block;
}

.product-tile strong {
  color: var(--text);
  font-weight: 950;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-tile span {
  margin-top: 8px;
}

.product-tile small {
  margin-top: 6px;
  font-weight: 800;
}

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

.pos-cart-header h3 {
  margin: 0;
}

.pos-cart-header .btn {
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 900;
}

.cart-items {
  min-height: 200px;
  max-height: 330px;
  overflow-y: auto;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 78px 36px;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.cart-row b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-row input {
  height: 36px;
  padding-inline: 8px;
}

.totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.totals label {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.grand {
  grid-column: 1 / -1;
  padding: 13px;
  font-size: 18px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
}

.grand b {
  color: #047857;
}

body.sidebar-hidden .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.pos-page .card-pro {
  animation: none;
}
body.pos-page .main {
  transition: none;
}
body.pos-page .product-grid,
body.pos-page.sidebar-hidden .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.pos-page .pos-layout {
  contain: layout paint;
}
.platform-page {
  min-height: 100vh;
}
.platform-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.platform-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 950;
  font-size: 19px;
}
.platform-brand > i {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 21px;
}
.platform-brand small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.78;
}
.platform-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.platform-main {
  margin: 0 auto;
}
.platform-alert {
  border-radius: 14px;
  font-weight: 800;
}
.platform-hero {
  display: flex;
  gap: 26px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 25px;
}
.platform-hero h1,
.platform-password-card h1 {
  margin: 5px 0 7px;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 950;
}
.platform-hero p,
.platform-card-title p,
.platform-list-head p,
.platform-password-card > p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
  max-width: 800px;
}
.platform-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}
.platform-stats article {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}
.platform-stats i {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 21px;
}
.platform-stats article.is-paused i {
  color: #b45309;
  background: #fff7e6;
}
.platform-stats article.is-active i {
  color: #15803d;
  background: #ecfdf3;
}
.platform-stats strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}
.platform-stats span {
  color: #64748b;
  font-weight: 750;
  font-size: 13px;
}
.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr);
  gap: 20px;
  margin-bottom: 20px;
}
.platform-card,
.platform-password-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
  border-radius: 18px;
  padding: 22px;
}
.platform-card-title,
.platform-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.platform-card-title h2,
.platform-list-head h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 950;
}
.platform-card-title > i {
  color: #0f766e;
  font-size: 27px;
}
.platform-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.platform-form label,
.platform-password-card label {
  display: block;
  margin-bottom: 5px;
  font-weight: 850;
  font-size: 13px;
}
.platform-form input,
.platform-form textarea,
.platform-password-card input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 11px;
  outline: none;
}
.platform-form input:focus,
.platform-form textarea:focus,
.platform-password-card input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.platform-form .span-2 {
  grid-column: 1/-1;
}
.platform-form-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.form-error {
  display: block;
  color: #b91c1c;
  margin-top: 4px;
  font-weight: 700;
}
.platform-guide ul {
  padding-right: 20px;
  margin: 12px 0 0;
  color: #475569;
}
.platform-guide li {
  margin-bottom: 12px;
  line-height: 1.6;
  font-weight: 650;
}
.platform-list-head {
  padding: 22px 22px 12px;
  margin: 0;
}
.platform-search {
  display: flex;
  gap: 7px;
}
.platform-search input {
  width: 230px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 7px 10px;
}
.platform-table {
  margin: 0;
  vertical-align: middle;
}
.platform-table th {
  font-size: 12px;
  white-space: nowrap;
}
.platform-table td {
  padding: 15px 12px;
}
.platform-table td small {
  display: block;
  color: #64748b;
  margin-top: 3px;
}
.status-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.platform-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.platform-actions form {
  margin: 0;
}
.platform-password-card {
  max-width: 620px;
  margin: 35px auto;
}
.platform-password-card form {
  margin-top: 22px;
}
.platform-password-card label {
  margin-top: 15px;
}
.platform-password-card .btn {
  margin-top: 16px;
}
.back-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 24px;
}

@media (min-width: 1600px) {
  :root {
    --sidebar-width: 310px;
  }

  .content {
    padding: 30px;
  }

  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1320px) {
  .date-pill span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.sidebar-hidden .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.pos-page .product-grid,
  body.pos-page.sidebar-hidden .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .professional-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pos-layout {
    grid-template-columns: 1fr;
  }

  .pos-cart {
    position: static;
  }

  .platform-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  :root {
    --sidebar-width: 286px;
    --topbar-height: 68px;
  }

  .sidebar {
    transform: translateX(100%);
  }

  body.sidebar-visible .sidebar {
    transform: translateX(0);
  }

  body.sidebar-visible .sidebar-backdrop {
    display: block;
  }

  .main,
  body.sidebar-hidden .main {
    margin-right: 0;
  }

  .topbar {
    min-height: var(--topbar-height);
    padding: 10px 14px;
  }

  .topbar-end {
    gap: 8px;
  }

  .page-heading h1 {
    max-width: 42vw;
    font-size: 18px;
  }

  .page-heading span {
    max-width: 42vw;
    font-size: 12px;
  }

  .content {
    padding: 14px;
  }

  .date-pill {
    display: none;
  }

  .userbox {
    padding: 6px;
  }

  .user-info {
    display: none;
  }

  .logout-btn span {
    display: none;
  }

  .logout-btn {
    width: 42px;
    padding: 0;
    border-radius: 14px;
  }

  .product-grid {
    max-height: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .platform-topbar {
    padding: 11px 4%;
    min-height: 64px;
  }
  .platform-user > span {
    display: none;
  }
  .platform-main {
    width: min(94%, 1440px);
    padding-top: 24px;
  }
  .platform-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .platform-stats,
  .platform-form {
    grid-template-columns: 1fr;
  }
  .platform-form .span-2 {
    grid-column: auto;
  }
  .platform-list-head {
    align-items: stretch;
    flex-direction: column;
  }
  .platform-search input {
    width: 100%;
  }
  .platform-table {
    min-width: 830px;
  }
  .platform-password-card {
    margin: 10px 0;
    padding: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --sidebar-width: min(288px, 88vw);
  }

  .sidebar-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
  }

  .topbar {
    gap: 8px;
    padding-inline: 10px;
  }

  .topbar-start {
    gap: 8px;
  }

  .page-heading h1 {
    max-width: 46vw;
    font-size: 16px;
  }

  .page-heading span {
    max-width: 46vw;
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .professional-form-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .pos-toolbar,
  .totals,
  .searchbox {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cart-row {
    grid-template-columns: minmax(0, 1fr) 72px 66px 34px;
  }

  .page-actions {
    align-items: stretch;
  }

  .page-actions .btn,
  .page-actions .form-control,
  .page-actions .form-select {
    width: 100%;
  }

  .login-card {
    padding: 24px;
  }
}

@media (max-width: 430px) {
  .page-heading h1 {
    max-width: 38vw;
  }

  .sidebar-toggle,
  .logout-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .user-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .cart-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (min-width: 1201px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) and (min-width: 993px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 992px) and (min-width: 641px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  .sidebar,
  .topbar,
  .sidebar-backdrop,
  .page-actions {
    display: none !important;
  }

  .main {
    margin: 0 !important;
  }

  .content {
    padding: 0 !important;
  }

  .card-pro,
  .table-card,
  .detail-card,
  .form-card,
  .stat-card {
    box-shadow: none !important;
  }
}
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.category-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-summary-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -32px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
}

.category-summary-card span,
.category-summary-card strong,
.category-summary-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.category-summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.category-summary-card strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 30px;
  font-weight: 950;
}

.category-summary-card small {
  margin-top: 4px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
}

.product-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.product-group-title h3 {
  color: var(--text);
  font-size: 19px;
  font-weight: 950;
}

.product-group-title span {
  font-weight: 850;
}

.file-link {
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 992px) {
  .category-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .action-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .action-buttons .btn {
    flex: 1 1 100%;
  }

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

  .product-group-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

.switch-status {
  margin-top: 2px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-style: normal;
}

.switch-status span {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.3;
}

.switch-on {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.switch-off {
  color: #9f1239;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
}

.professional-switch .form-check-input:not(:checked) ~ span .switch-on,
.professional-switch .form-check-input:checked ~ span .switch-off {
  opacity: 0.35;
}

.sale-result .alert {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.sale-success strong {
  font-size: 16px;
  font-weight: 950;
}

.sale-success .btn {
  border-radius: 999px;
  font-weight: 900;
}
.avatar-img,
.avatar-fallback {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  background: #eef8f7;
  color: var(--primary);
  font-size: 20px;
  border: 1px solid var(--border);
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 17px;
  padding: 10px 0 14px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 14px;
}
.pet-profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pet-photo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #e7fffb, #eef4ff);
  color: var(--primary);
  font-size: 44px;
}
.pet-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.status-new,
.status-partial,
.status-pending {
  background: #fef3c7;
  color: #92400e;
}
.status-attended,
.status-paid,
.status-completed {
  background: #dcfce7;
  color: #166534;
}
.status-no_show,
.status-cancelled,
.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}
.stock-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 780px;
  overflow: auto;
  padding-inline-end: 4px;
}
.stock-move-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--soft);
}
@media (max-width: 768px) {
  .pet-profile-header {
    align-items: flex-start;
  }
  .pet-photo-wrap {
    width: 78px;
    height: 78px;
    border-radius: 22px;
  }
}
.settings-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
}
.settings-tabs {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}
.settings-tabs .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  text-align: right;
  border-radius: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.settings-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}
.quick-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.professional-tabs {
  gap: 8px;
}
.professional-tabs .nav-link {
  background: #f1f5f9;
  color: #334155;
}
.professional-tabs .nav-link.active {
  background: var(--primary);
  color: #fff;
}
.section-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.timeline-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
}
.compact-stats .stat-card {
  min-height: 90px;
}
.badge-status {
  font-size: 0.78rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.status-new {
  background: #e0f2fe;
  color: #075985;
}
.status-attended,
.status-completed,
.status-paid {
  background: #dcfce7;
  color: #166534;
}
.status-no_show,
.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}
.status-partial {
  background: #fef3c7;
  color: #92400e;
}
.status-returned {
  background: #ede9fe;
  color: #5b21b6;
}
@media (max-width: 992px) {
  .settings-shell {
    grid-template-columns: 1fr;
  }
  .settings-tabs {
    position: relative;
    top: auto;
  }
  .quick-action-stack {
    justify-content: flex-start;
  }
}
.form-card {
  margin-inline: auto;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1500px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.nav-link-with-badge {
  padding-inline-end: 12px;
}

.sidebar-badge {
  margin-inline-start: auto;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.low-stock-card {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.low-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.low-stock-item strong,
.low-stock-item small {
  display: block;
}

.low-stock-item strong {
  color: #7f1d1d;
  font-weight: 950;
}

.low-stock-item small {
  margin-top: 3px;
  color: #991b1b;
  font-weight: 800;
}

.low-stock-qty {
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(239, 68, 68, 0.22);
}

.appointment-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.appointment-action-card {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.appointment-action-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.appointment-action-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.appointment-action-row .form-control {
  min-width: 0;
}

.appointment-action-row .btn {
  white-space: nowrap;
}

.professional-modal .modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.professional-modal .modal-header,
.professional-modal .modal-footer {
  border-color: var(--border);
  background: #f8fafc;
}

.professional-modal .modal-header {
  align-items: flex-start;
}

.professional-modal .modal-title {
  font-weight: 950;
}

.professional-modal .modal-header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.modal-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .appointment-actions-grid,
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
  .appointment-action-row {
    align-items: stretch;
    flex-direction: column;
  }
}
.compact-sidebar-nav {
  gap: 10px;
}

.nav-group-toggle {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #e2e8f0;
  background: transparent;
  border: 0;
  border-radius: 15px;
  font-weight: 900;
  text-align: start;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nav-group-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-group-toggle > span i {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.1);
  border-radius: 11px;
  font-size: 17px;
}

.group-arrow {
  transition: transform 0.18s ease;
}

.nav-group-toggle[aria-expanded="true"] .group-arrow {
  transform: rotate(180deg);
}

.sidebar-nav .nav-sub-link {
  margin: 4px 4px;
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 13px;
}

.sidebar-nav .nav-link-hot {
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.18),
    rgba(14, 165, 233, 0.1)
  );
  border-color: rgba(45, 212, 191, 0.18);
}

.status-unpaid {
  background: #fee2e2;
  color: #991b1b;
}

.quick-service-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  background:
    radial-gradient(
      circle at top left,
      rgba(20, 184, 166, 0.18),
      transparent 280px
    ),
    linear-gradient(135deg, #ffffff, #f8fafc);
}

.quick-service-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.quick-service-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 950;
  letter-spacing: -0.7px;
}

.quick-service-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
  font-weight: 700;
}

.quick-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-treatment-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.35fr);
  align-items: start;
}

.immediate-form-card,
.immediate-list-card {
  max-width: none;
  width: 100%;
  margin: 0;
}

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

.form-card-header h3 {
  margin-bottom: 4px;
}

.form-card-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-card-header > i {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.quick-treatment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field.span-2,
.form-field.switch-line {
  grid-column: 1 / -1;
}

.switch-line {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 28%);
}

@media (max-width: 1300px) {
  .quick-treatment-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .quick-service-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .quick-service-actions {
    width: 100%;
    justify-content: stretch;
  }
  .quick-service-actions .btn {
    flex: 1 1 180px;
  }
  .stats-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .quick-treatment-grid,
  .stats-grid-4 {
    grid-template-columns: 1fr;
  }
}
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  position: relative;
}
.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.12);
  pointer-events: none;
}
.dashboard-hero h2 {
  margin: 6px 0;
  font-weight: 900;
}
.dashboard-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}
.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}
.stat-card.danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: linear-gradient(180deg, #fff, #fff7f7);
}
.form-card,
.table-card,
.card-pro,
.detail-card {
  animation: softAppear 0.26s ease both;
}
@keyframes softAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.searchbox,
.page-actions {
  position: relative;
}
.searchbox.is-searching::after,
.page-actions.is-searching::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 118, 110, 0.22);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -9px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.is-live-loading {
  filter: saturate(0.8);
  transition: 0.18s ease;
}
@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
  35% {
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.12);
  }
  100% {
    box-shadow: var(--shadow-soft);
  }
}
.toast-like-message {
  border: 0;
  animation: toastIn 0.25s ease both;
  transition: 0.25s ease;
}
.toast-like-message.message-hide {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.professional-tabs .nav-link {
  border-radius: 999px;
  font-weight: 800;
}
.quick-action-stack .btn {
  justify-content: center;
}
@media (max-width: 1400px) {
  .stats-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .stats-grid-5 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-hero-actions {
    justify-content: flex-start;
  }
}
.stat-card span {
  margin-top: 7px;
}
.stat-card strong {
  margin-top: 2px;
  font-size: clamp(20px, 1.7vw, 24px);
}
.stat-card.metric-sales,
.stat-card.metric-invoices {
  border-inline-start-color: #3b82f6;
  background: linear-gradient(180deg, #fff, #f7fbff);
}
.stat-card.metric-sales i,
.stat-card.metric-invoices i {
  color: #1d4ed8;
  background: #dbeafe;
}
.stat-card.metric-collected {
  border-inline-start-color: #14b8a6;
  background: linear-gradient(180deg, #fff, #f3fffd);
}
.stat-card.metric-collected i {
  color: #0f766e;
  background: #ccfbf1;
}
.stat-card.metric-profit {
  border-inline-start-color: #22c55e;
  background: linear-gradient(180deg, #fff, #f4fff7);
}
.stat-card.metric-profit i {
  color: #15803d;
  background: #dcfce7;
}
.stat-card.metric-debt {
  border-inline-start-color: #f97316;
  background: linear-gradient(180deg, #fff, #fff9f2);
}
.stat-card.metric-debt i {
  color: #c2410c;
  background: #ffedd5;
}
.stat-card.metric-medical {
  border-inline-start-color: #8b5cf6;
  background: linear-gradient(180deg, #fff, #faf7ff);
}
.stat-card.metric-medical i {
  color: #6d28d9;
  background: #ede9fe;
}
.stat-card.metric-inventory {
  border-inline-start-color: #0ea5e9;
  background: linear-gradient(180deg, #fff, #f5fcff);
}

.pos-cart {
  max-height: none;
  overflow: visible;
}
.pos-cart .cart-items {
  min-height: 72px;
  max-height: 230px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.pos-cart .cart-items.empty {
  display: grid;
  place-items: center;
}
.pos-cart .totals {
  position: static;
  bottom: auto;
  z-index: auto;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.06);
}
#completeSale {
  position: static;
  bottom: auto;
  z-index: auto;
  min-height: 52px;
}
.invoice-summary-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: #334155;
  background: #f8fafc;
  border-radius: 12px;
}
.grand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mixed-payments {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}
.mixed-payments[hidden] {
  display: none;
}
.customer-suggestions {
  position: absolute;
  inset-inline: 0;
  top: 72px;
  z-index: 30;
  display: none;
  max-height: 250px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
}
.customer-suggestions.show {
  display: block;
}
.customer-suggestion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  text-align: right;
  background: transparent;
  border: 0;
  border-radius: 10px;
}
.customer-suggestion:hover,
.customer-suggestion:focus-visible {
  background: #ecfdf5;
  outline: 2px solid rgba(15, 118, 110, 0.18);
}
.customer-suggestion span,
.selected-owner-info {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.selected-owner-info {
  display: block;
  margin-top: 5px;
}
.customer-suggestion-empty {
  padding: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 992px) {
  .pos-cart {
    max-height: none;
    overflow: visible;
  }
  .pos-cart .totals,
  #completeSale {
    position: relative;
    bottom: auto;
  }
}
@media (max-width: 576px) {
  .stat-card {
    min-height: 92px;
  }
  .mixed-payments {
    grid-template-columns: 1fr;
  }
}

.login-shell-pro {
  display: grid;
  place-items: center;
}

.login-wrapper-pro {
  direction: ltr;
  display: grid;
  backdrop-filter: blur(18px);
}

.login-visual-panel,
.login-form-panel {
  direction: rtl;
}

.login-visual-panel {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
}

.login-visual-panel::before,
.login-visual-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-visual-panel::before {
  width: 310px;
  height: 310px;
  inset-inline-start: -120px;
  top: -130px;
}

.login-visual-panel::after {
  width: 220px;
  height: 220px;
  inset-inline-end: -88px;
  bottom: -70px;
  border: 32px solid rgba(255, 255, 255, 0.08);
}

.login-brand-pill,
.login-hero-copy,
.login-illustration-card,
.login-feature-grid {
  position: relative;
  z-index: 1;
}

.login-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #dffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-brand-pill span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #0f766e;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.16);
}

.login-brand-pill strong {
  font-weight: 950;
  letter-spacing: 0.2px;
}

.login-hero-copy {
  max-width: 580px;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 950;
  border: 1px solid rgba(153, 246, 228, 0.22);
  border-radius: 999px;
}

.login-hero-copy h1 {
  max-width: 620px;
  margin: 16px 0 12px;
  line-height: 1.12;
  font-weight: 950;
}

.login-hero-copy p {
  max-width: 560px;
  margin: 0;
  line-height: 1.9;
  font-weight: 750;
}

.login-illustration-card {
  width: min(580px, 96%);
  margin: 10px auto 0;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.18);
}

.login-illustration-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-feature-item {
  min-width: 0;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.login-feature-item i {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  place-items: center;
  background: #ccfbf1;
  border-radius: 13px;
  font-size: 17px;
}

.login-form-panel {
  min-width: 0;
  display: grid;
  place-items: center;
}

.login-card-pro {
  border-radius: 28px;
}

.login-card-pro .login-logo {
  margin: 0 auto 18px;
  font-size: 34px;
}

.login-card-pro h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 30px;
  font-weight: 950;
}

.login-card-pro > p {
  max-width: 320px;
  margin: 0 auto 24px;
  text-align: center;
  line-height: 1.8;
  font-weight: 800;
}

.login-form-pro {
  display: grid;
  gap: 17px;
}

.login-field .form-label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 950;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap > i {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  font-size: 19px;
}

.login-input-wrap .form-control {
  height: 52px;
  padding-inline-start: 48px;
  padding-inline-end: 16px;
  border: 1px solid #dbe4ef;
  font-weight: 850;
}

.login-input-wrap .form-control:focus {
  background: #ffffff;
  border-color: rgba(20, 184, 166, 0.72);
  box-shadow: 0 0 0 0.24rem rgba(20, 184, 166, 0.13);
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  border-radius: 16px;
  font-weight: 900;
}

.login-submit {
  height: 54px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 15px 28px rgba(15, 118, 110, 0.2);
}

.login-submit i {
  font-size: 25px;
}

.login-note-pro {
  margin-top: 20px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
  font-size: 12.5px;
  font-weight: 800;
}

.login-note-pro i {
  margin-top: 2px;
  color: var(--primary);
}

@media (max-width: 992px) {
  .login-shell-pro {
    padding: 18px;
    align-items: stretch;
  }

  .login-wrapper-pro {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .login-visual-panel {
    padding: 28px;
  }

  .login-hero-copy h1 {
    font-size: 34px;
  }

  .login-illustration-card {
    width: min(460px, 100%);
  }

  .login-form-panel {
    padding: 28px;
  }
}

@media (max-width: 576px) {
  .login-shell-pro {
    padding: 10px;
  }

  .login-wrapper-pro {
    border-radius: 24px;
  }

  .login-visual-panel {
    padding: 22px;
  }

  .login-brand-pill strong {
    font-size: 13px;
  }

  .login-hero-copy h1 {
    font-size: 27px;
  }

  .login-hero-copy p {
    font-size: 14px;
  }

  .login-feature-grid {
    grid-template-columns: 1fr;
  }

  .login-form-panel {
    padding: 20px;
  }

  .login-card-pro {
    padding: 25px 20px;
    border-radius: 22px;
  }
}
.login-shell-pro {
  overflow-x: hidden;
}

.login-wrapper-pro {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
}

.login-visual-panel {
  padding: clamp(24px, 3vw, 42px);
  justify-content: flex-start;
  gap: clamp(16px, 2.4vh, 24px);
}

.login-hero-copy {
  margin-top: 0;
}

.login-hero-copy h1 {
  margin-block: 14px 10px;
}

.login-hero-copy p {
  font-size: clamp(14px, 1.15vw, 16.5px);
}

.login-photo-card {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1 1 auto;
  min-height: 250px;
  max-height: 390px;
  margin-top: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
}

.login-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.login-photo-badge {
  position: absolute;
  z-index: 2;
  inset-inline-start: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  color: #ecfeff;
  font-size: 13.5px;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(12px);
}

.login-photo-badge i {
  color: #5eead4;
  font-size: 18px;
}

.login-feature-grid {
  margin-top: 0;
}

.login-form-panel {
  padding: clamp(24px, 3.1vw, 48px);
}

.login-card-pro {
  width: min(430px, 100%);
  padding: clamp(28px, 3vw, 38px);
}

@media (min-width: 993px) and (max-height: 760px) {
  .login-wrapper-pro {
    min-height: calc(100dvh - 32px);
  }
  .login-visual-panel {
    gap: 12px;
    padding: 24px 30px;
  }
  .login-brand-pill {
    padding: 8px 12px;
  }
  .login-hero-copy h1 {
    font-size: 34px;
    margin-block: 10px 6px;
  }
  .login-hero-copy p {
    line-height: 1.65;
    font-size: 14px;
  }
  .login-photo-card {
    min-height: 210px;
    max-height: 285px;
  }
  .login-feature-item {
    padding: 10px;
  }
  .login-form-panel {
    padding: 24px 34px;
  }
  .login-card-pro .login-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
  }
  .login-card-pro h2 {
    font-size: 27px;
  }
  .login-card-pro > p {
    margin-bottom: 18px;
  }
}

@media (max-width: 992px) {
  .login-shell-pro {
    min-height: 100dvh;
    padding: 14px;
    display: block;
  }
  .login-wrapper-pro {
    min-height: auto;
    grid-template-columns: 1fr;
    width: min(760px, 100%);
    margin-inline: auto;
  }
  .login-visual-panel {
    padding: 26px;
    gap: 16px;
  }
  .login-photo-card {
    min-height: 260px;
    max-height: 320px;
  }
  .login-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .login-form-panel {
    padding: 26px;
  }
}

@media (max-width: 576px) {
  .login-shell-pro {
    padding: 8px;
  }
  .login-wrapper-pro {
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
  }
  .login-visual-panel {
    padding: 20px;
    gap: 13px;
  }
  .login-brand-pill {
    width: 100%;
    justify-content: center;
  }
  .login-eyebrow {
    font-size: 12px;
    padding: 7px 10px;
  }
  .login-hero-copy h1 {
    font-size: 26px;
    line-height: 1.22;
  }
  .login-hero-copy p {
    line-height: 1.75;
    font-size: 13.5px;
  }
  .login-photo-card {
    min-height: 205px;
    max-height: 235px;
    border-radius: 22px;
  }
  .login-photo-badge {
    inset-inline-start: 12px;
    bottom: 12px;
    padding: 9px 11px;
    font-size: 12px;
  }
  .login-feature-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .login-feature-item {
    padding: 10px 11px;
  }
  .login-form-panel {
    padding: 18px;
  }
  .login-card-pro {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .login-card-pro .login-logo {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    font-size: 29px;
  }
  .login-card-pro h2 {
    font-size: 26px;
  }
  .login-input-wrap .form-control,
  .login-submit {
    height: 50px;
  }
}

.sidebar {
  border-left-color: rgba(236, 253, 245, 0.24);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(209, 250, 229, 0.34);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(236, 253, 245, 0.58);
}

.brand {
  border-color: rgba(236, 253, 245, 0.24);
}

.brand small,
.nav-section-title {
  color: #d1fae5;
}

.sidebar-close {
  border-color: rgba(236, 253, 245, 0.22);
}

.sidebar-group {
  border-color: rgba(236, 253, 245, 0.2);
}

.sidebar-nav .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(236, 253, 245, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(6, 78, 59, 0.15);
}

.sidebar-nav .nav-link:hover i {
  color: #065f46;
  background: #d1fae5;
  box-shadow: 0 7px 16px rgba(6, 78, 59, 0.16);
}

.nav-group-toggle:hover,
.nav-group-toggle.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transform: translateX(-3px);
}

.nav-group-toggle.active > span i {
  color: #047857;
  background: linear-gradient(135deg, #ecfdf5, #bbf7d0);
  box-shadow: 0 8px 18px rgba(6, 78, 59, 0.18);
}

.btn i {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-size: 180% 180%;
}

.btn-primary::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: -80%;
  bottom: -80%;
  left: -45%;
  width: 28%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-18deg) translateX(-260%);
  transition: transform 0.52s ease;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  transform: skewX(-18deg) translateX(650%);
}

.btn-success:hover,
.btn-success:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #34d46b, #16a34a 56%, #166534);
  border-color: #16a34a;
  box-shadow: 0 13px 26px rgba(22, 163, 74, 0.28);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  color: #ffffff;
  border-color: #0d9488;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-nav .nav-link,
  .nav-group-toggle,
  .btn,
  .btn i,
  .btn-primary::before {
    transition: none !important;
  }
}

:root {
  --vc-ink: #082f49;
  --vc-ink-2: #164e63;
  --vc-navy: #075985;
  --vc-blue: #087ea4;
  --vc-teal: #0f9f9a;
  --vc-cyan: #22c7d6;
  --vc-mint: #dff8f5;
  --vc-sky: #e8f6fb;
  --vc-bg: #f3f8fb;
  --vc-card: #ffffff;
  --vc-soft: #f8fbfc;
  --vc-text: #19384d;
  --vc-muted: #6b8291;
  --vc-line: #dce8ee;
  --vc-line-strong: #c9dce5;
  --vc-success: #0e9f6e;
  --vc-warning: #e79a16;
  --vc-danger: #df4c5a;
  --vc-info: #2387c8;
  --vc-sidebar: 252px;
  --vc-topbar: 70px;
  --vc-radius-sm: 11px;
  --vc-radius: 16px;
  --vc-radius-lg: 22px;
  --vc-shadow-sm: 0 8px 24px rgba(8, 47, 73, 0.055);
  --vc-shadow: 0 18px 48px rgba(8, 47, 73, 0.09);
  --vc-shadow-hover: 0 23px 52px rgba(8, 47, 73, 0.135);

  --bg: var(--vc-bg);
  --card: var(--vc-card);
  --text: var(--vc-text);
  --muted: var(--vc-muted);
  --primary: var(--vc-navy);
  --primary-2: var(--vc-teal);
  --success: var(--vc-success);
  --warning: var(--vc-warning);
  --danger: var(--vc-danger);
  --info: var(--vc-info);
  --border: var(--vc-line);
  --soft: var(--vc-soft);
  --sidebar-width: var(--vc-sidebar);
  --topbar-height: var(--vc-topbar);
  --radius: var(--vc-radius);
  --shadow: var(--vc-shadow);
  --shadow-soft: var(--vc-shadow-sm);
}

html {
  scroll-behavior: auto;
}

body.vetcare-app {
  min-height: 100vh;
  color: var(--vc-text);
  background:
    radial-gradient(
      circle at 4% 7%,
      rgba(34, 199, 214, 0.095),
      transparent 25rem
    ),
    radial-gradient(
      circle at 92% 93%,
      rgba(15, 159, 154, 0.075),
      transparent 29rem
    ),
    linear-gradient(145deg, #f7fbfd 0%, var(--vc-bg) 52%, #eff7fa 100%);
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

body.vetcare-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(
    rgba(7, 89, 133, 0.12) 0.55px,
    transparent 0.55px
  );
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

::selection {
  color: #fff;
  background: var(--vc-teal);
}

:focus-visible {
  outline: 3px solid rgba(34, 199, 214, 0.35);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  right: 50%;
  padding: 9px 16px;
  color: #fff;
  background: var(--vc-ink);
  border-radius: 10px;
  transform: translate(50%, -150%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translate(50%, 0);
}
.sidebar {
  display: flex;
  flex-direction: column;
  width: var(--vc-sidebar);
  padding: 10px;
  overflow: hidden;
  transform: translateX(0);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
}

.sidebar-brand-wrap {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: block;
  padding: 0 0 10px;
  background: transparent;
  border-bottom: 1px solid var(--vc-line);
}

.brand {
  min-width: 0;
  width: 100%;
  min-height: 62px;
  padding: 7px 9px;
  color: var(--vc-ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(207, 225, 233, 0.78);
  border-radius: 16px;
  box-shadow:
    0 8px 24px rgba(8, 47, 73, 0.055),
    inset 0 1px 0 #fff;
}
.brand:hover {
  color: var(--vc-ink);
  background: #fff;
  border-color: rgba(34, 199, 214, 0.5);
  box-shadow: 0 13px 30px rgba(8, 47, 73, 0.09);
  transform: translateY(-1px);
}

.brand-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e7ed;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(7, 89, 133, 0.1);
}
.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.55) translateY(8%);
  transform-origin: center;
}

.brand-text {
  min-width: 0;
}
.brand-text strong {
  color: var(--vc-ink);
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.03em;
}
.brand-text strong span {
  color: var(--vc-teal);
}
.brand-text small {
  display: block;
  color: var(--vc-muted);
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.sidebar-close {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 7px;
  width: 29px;
  height: 29px;
  color: var(--vc-muted);
  background: #f3f8fa;
  border: 1px solid var(--vc-line);
  border-radius: 9px;
}
.sidebar-close:hover {
  color: #fff;
  background: var(--vc-danger);
  border-color: var(--vc-danger);
  transform: rotate(5deg);
}

.sidebar-nav {
  min-height: 0;
  flex: 1 1 auto;
  overscroll-behavior: contain;
  padding: 9px 2px 11px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bad6df transparent;
}
.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #bad6df;
  border-radius: 20px;
}

.nav-section-primary {
  margin-bottom: 6px;
  padding: 0;
  border: 0;
}
.sidebar-group {
  margin: 6px 0;
  padding: 3px;
  background: rgba(241, 248, 250, 0.78);
  border: 1px solid rgba(215, 231, 237, 0.9);
  border-radius: 13px;
  box-shadow: none;
}

.sidebar-nav .nav-link,
.nav-group-toggle {
  min-height: 39px;
  margin: 2px 0;
  padding: 5px 7px;
  color: #365469;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.sidebar-nav .nav-link i,
.nav-group-toggle > span i {
  width: 29px;
  height: 29px;
  color: var(--vc-blue);
  background: rgba(224, 243, 248, 0.9);
  border: 1px solid rgba(199, 225, 234, 0.75);
  border-radius: 9px;
  font-size: 14px;
  box-shadow: none;
}

.sidebar-nav .nav-link:hover,
.nav-group-toggle:hover,
.nav-group-toggle.active {
  color: var(--vc-navy);
  background: #fff;
  border-color: rgba(34, 199, 214, 0.35);
  box-shadow: 0 8px 20px rgba(8, 47, 73, 0.065);
  transform: translateX(-3px);
}
.sidebar-nav .nav-link:hover i,
.nav-group-toggle:hover > span i,
.nav-group-toggle.active > span i {
  color: #fff;
  background: linear-gradient(135deg, var(--vc-blue), var(--vc-teal));
  border-color: transparent;
  box-shadow: 0 7px 14px rgba(7, 89, 133, 0.17);
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(
    125deg,
    var(--vc-navy) 0%,
    #087c9a 52%,
    var(--vc-teal) 100%
  );
  border-color: transparent;
  box-shadow:
    0 12px 24px rgba(7, 89, 133, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.sidebar-nav .nav-link.active span,
.sidebar-nav .nav-link[aria-current="page"] span {
  color: #fff;
}
.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link[aria-current="page"] i {
  color: var(--vc-navy);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 15px rgba(4, 47, 70, 0.16);
}
.sidebar-nav .nav-link.active::before,
.sidebar-nav .nav-link[aria-current="page"]::before {
  right: auto;
  left: -5px;
  width: 4px;
  height: 22px;
  background: var(--vc-cyan);
  border-radius: 999px;
  box-shadow: 0 0 13px rgba(34, 199, 214, 0.75);
}

.sidebar-nav .nav-sub-link {
  min-height: 36px;
  margin-inline: 6px 2px;
  padding-inline-start: 8px;
  background: transparent;
}
.sidebar-nav .nav-sub-link i {
  width: 25px;
  height: 25px;
  font-size: 12px;
}
.sidebar-subnav {
  padding: 2px 0 3px;
}
.group-arrow {
  color: #8ba1af;
  font-size: 11px;
}
.sidebar-badge {
  color: #fff;
  background: var(--vc-danger);
  box-shadow: 0 5px 12px rgba(223, 76, 90, 0.22);
}

.sidebar-clinic-card {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-top: 3px;
  padding: 8px 9px;
  background: linear-gradient(135deg, #edf9f9, #e9f4f8);
  border: 1px solid #d3e8ed;
  border-radius: 12px;
}
.clinic-status-dot {
  width: 9px;
  height: 9px;
  background: #17b777;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(23, 183, 119, 0.13);
}
.sidebar-clinic-card div {
  min-width: 0;
}
.sidebar-clinic-card small {
  display: block;
  color: var(--vc-muted);
  font-size: 9px;
}
.sidebar-clinic-card strong {
  display: block;
  overflow: hidden;
  color: var(--vc-ink);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-clinic-card > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--vc-teal);
  background: #fff;
  border-radius: 8px;
}

.sidebar {
  color: #eafcff;
  background:
    radial-gradient(
      circle at 88% 5%,
      rgba(34, 211, 238, 0.24),
      transparent 28%
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(45, 212, 191, 0.18),
      transparent 32%
    ),
    linear-gradient(165deg, #061f33 0%, #073b55 47%, #075e66 100%);
  border-left: 1px solid rgba(165, 243, 252, 0.16);
  box-shadow: -18px 0 48px rgba(3, 30, 48, 0.22);
}
.sidebar::before {
  background: linear-gradient(90deg, #38bdf8, #2dd4bf, #67e8f9);
}
.sidebar .sidebar-brand-wrap {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.sidebar .brand {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 12px 28px rgba(1, 24, 38, 0.2),
    inset 0 1px 0 #ffffff;
  backdrop-filter: blur(14px);
}
.sidebar .sidebar-group {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sidebar .sidebar-nav .nav-link,
.sidebar .nav-group-toggle {
  color: #d9f2f7;
}

.sidebar .sidebar-nav .nav-link i,
.sidebar .nav-group-toggle > span i {
  color: #8be7ed;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.1);
}
.sidebar .sidebar-nav .nav-link:hover,
.sidebar .nav-group-toggle:hover,
.sidebar .nav-group-toggle.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(103, 232, 249, 0.25);
  box-shadow: 0 10px 22px rgba(1, 24, 38, 0.16);
  transform: translateX(-3px);
}
.sidebar .sidebar-nav .nav-link.active,
.sidebar .sidebar-nav .nav-link[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5a2 0%, #087aa4 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 25px rgba(1, 28, 45, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.sidebar .sidebar-clinic-card {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.sidebar .sidebar-clinic-card small {
  color: #a9d4dc;
}

.sidebar .sidebar-clinic-card strong {
  color: #ffffff;
}
.sidebar .sidebar-nav {
  scrollbar-color: rgba(103, 232, 249, 0.5) transparent;
}

.sidebar .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(103, 232, 249, 0.45);
  border-radius: 20px;
}

.sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(103, 232, 249, 0.75);
}
.main {
  min-height: 100vh;
  margin-right: var(--vc-sidebar);
  background: transparent;
  transition: margin 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

body.sidebar-hidden .sidebar {
  transform: translateX(calc(100% + 28px));
}
body.sidebar-hidden .main {
  margin-right: 0;
}

.topbar {
  position: sticky;
  z-index: 1020;
  top: 0;
  min-height: var(--vc-topbar);
  padding: 8px clamp(14px, 1.6vw, 24px);
  background: rgba(248, 252, 253, 0.86);
  border-bottom: 1px solid rgba(204, 224, 232, 0.82);
  box-shadow: 0 10px 30px rgba(8, 47, 73, 0.045);
  backdrop-filter: blur(18px) saturate(1.35);
}
.topbar::after {
  display: none;
}
.topbar-start {
  min-width: 0;
  gap: 10px;
}
.topbar-end {
  gap: 6px;
}

.sidebar-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--vc-navy), var(--vc-teal));
  border: 0;
  border-radius: 11px;
  box-shadow: 0 9px 20px rgba(7, 89, 133, 0.18);
}
.sidebar-toggle::before {
  display: none;
}
.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #086c96, #0db2a9);
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(7, 89, 133, 0.24);
}

.page-heading {
  min-width: 0;
}
.page-kicker {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1px;
  color: var(--vc-teal);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-heading h1 {
  margin: 0;
  color: var(--vc-ink);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.page-heading > span {
  display: block;
  max-width: 610px;
  margin-top: 1px;
  overflow: hidden;
  color: var(--vc-muted);
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-date,
.topbar-action {
  min-height: 37px;
  padding: 5px 9px;
  color: #486579;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--vc-line);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(8, 47, 73, 0.04);
}
.topbar-date {
  align-items: center;
  gap: 7px;
  color: var(--vc-muted);
  font-size: 10px;
  font-weight: 750;
}
.topbar-date i {
  color: var(--vc-teal);
}
.topbar-action {
  color: var(--vc-navy);
  font-size: 10px;
  font-weight: 850;
}
.topbar-action i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--vc-blue);
  background: var(--vc-sky);
  border-radius: 7px;
}
.topbar-action:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--vc-navy), var(--vc-teal));
  border-color: transparent;
  box-shadow: 0 11px 23px rgba(7, 89, 133, 0.18);
  transform: translateY(-2px);
}
.topbar-action:hover i {
  color: var(--vc-navy);
  background: #fff;
}
.topbar-action-urgent {
  color: #ba3948;
  background: #fff5f6;
  border-color: #f5d3d7;
}
.topbar-action-urgent i {
  color: var(--vc-danger);
  background: #ffe6e9;
}

.userbox {
  min-height: 39px;
  padding: 4px 6px 4px 9px;
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 11px;
  box-shadow: 0 7px 17px rgba(8, 47, 73, 0.045);
}
.user-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--vc-blue), var(--vc-teal));
  border-radius: 9px;
}
.user-avatar i {
  font-size: 16px;
}
.user-info strong {
  color: var(--vc-ink);
  font-size: 10px;
}
.user-role {
  color: var(--vc-muted);
  font-size: 8px;
}

.logout-btn {
  width: 37px;
  min-width: 37px;
  height: 37px;
  padding: 0;
  color: #b83e4c;
  background: #fff3f4;
  border: 1px solid #f4d5d9;
  border-radius: 10px;
}
.logout-btn span {
  display: none;
}
.logout-btn:hover {
  color: #fff;
  background: var(--vc-danger);
  border-color: var(--vc-danger);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(223, 76, 90, 0.2);
}

.content {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: clamp(14px, 1.5vw, 24px);
}
.dashboard-welcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  padding: clamp(18px, 2vw, 28px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 14% 14%,
      rgba(34, 199, 214, 0.28),
      transparent 15rem
    ),
    linear-gradient(
      125deg,
      #063a59 0%,
      var(--vc-navy) 42%,
      #087d93 72%,
      var(--vc-teal) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 22px 48px rgba(7, 89, 133, 0.18);
}
.dashboard-welcome::before,
.dashboard-welcome::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.dashboard-welcome::before {
  width: 310px;
  height: 310px;
  top: -185px;
  left: -65px;
}
.dashboard-welcome::after {
  width: 210px;
  height: 210px;
  bottom: -145px;
  right: 34%;
}
.dashboard-welcome-copy,
.dashboard-welcome-actions {
  position: relative;
  z-index: 1;
}
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #dffcff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}
.dashboard-welcome h2 {
  margin: 9px 0 4px;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 950;
  letter-spacing: -0.035em;
}
.dashboard-welcome h2 span {
  color: #91f0ec;
}
.dashboard-welcome p {
  max-width: 720px;
  margin: 0;
  color: rgba(235, 251, 253, 0.78);
  font-size: 13px;
  line-height: 1.8;
}
.welcome-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 10px;
  color: rgba(240, 252, 253, 0.82);
  font-size: 9px;
  font-weight: 700;
}
.welcome-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.welcome-meta i {
  color: #73e5e3;
}
.dashboard-welcome-actions {
  display: grid;
  gap: 7px;
}
.welcome-action {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  color: #e9fbfc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.welcome-action > i:first-child {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  font-size: 16px;
}
.welcome-action span {
  font-size: 12px;
  font-weight: 900;
}
.welcome-action small {
  display: block;
  margin-bottom: 1px;
  color: rgba(230, 250, 252, 0.65);
  font-size: 9px;
  font-weight: 650;
}
.welcome-action > i:last-child {
  opacity: 0.65;
}
.welcome-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
  transform: translateX(-4px);
  box-shadow: 0 12px 24px rgba(3, 39, 56, 0.13);
}
.welcome-action-primary {
  color: var(--vc-ink);
  background: #fff;
  border-color: #fff;
}
.welcome-action-primary small {
  color: var(--vc-muted);
}
.welcome-action-primary > i:first-child {
  color: #fff;
  background: linear-gradient(135deg, var(--vc-blue), var(--vc-teal));
}
.welcome-action-primary:hover {
  color: var(--vc-ink);
  background: #effdfe;
}
.stats-grid {
  gap: 9px;
  margin-bottom: 13px;
}
.stats-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card,
.card-pro,
.table-card,
.form-card,
.detail-card,
.category-summary-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(211, 228, 235, 0.92);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow-sm);
  animation: vc-rise 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.card-pro,
.table-card,
.form-card,
.detail-card {
  padding: clamp(14px, 1.35vw, 20px);
}
.card-pro:hover,
.detail-card:hover,
.category-summary-card:hover {
  border-color: rgba(34, 199, 214, 0.42);
  box-shadow: var(--vc-shadow-hover);
  transform: translateY(-3px);
}

.stat-card {
  position: relative;
  min-width: 0;
  min-height: 108px;
  padding: 13px;
  overflow: hidden;
  border-inline-start: 3px solid var(--metric-color, var(--vc-blue));
  background: linear-gradient(
    155deg,
    #fff 0%,
    var(--metric-soft, #f4fbfd) 100%
  );
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.stat-card::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  top: -39px;
  left: -31px;
  background: var(--metric-color, var(--vc-blue));
  border-radius: 50%;
  opacity: 0.07;
}
.stat-card::after {
  display: none;
}
.stat-card:hover {
  border-color: var(--metric-color, var(--vc-blue));
  transform: translateY(-4px);
  box-shadow: var(--vc-shadow-hover);
}
.stat-card i {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--metric-color, var(--vc-blue));
  background: var(--metric-icon, var(--vc-sky));
  border-radius: 10px;
  font-size: 16px;
  box-shadow: none;
}
.stat-card > span {
  margin-top: 7px;
  overflow: hidden;
  color: var(--vc-muted);
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-card > strong {
  margin-top: 1px;
  overflow: hidden;
  color: var(--vc-ink);
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-card > small {
  margin-top: 3px;
  color: var(--vc-muted);
  font-size: 9px;
}
.stat-card.metric-sales,
.stat-card.metric-invoices {
  --metric-color: #1684c7;
  --metric-soft: #f1f9fe;
  --metric-icon: #e2f3fd;
}
.stat-card.metric-collected,
.stat-card.success {
  --metric-color: #0ca98c;
  --metric-soft: #effcf8;
  --metric-icon: #dcf8ef;
}
.stat-card.metric-profit {
  --metric-color: #25a867;
  --metric-soft: #f1fbf5;
  --metric-icon: #def6e8;
}
.stat-card.metric-debt,
.stat-card.warning {
  --metric-color: #e79a16;
  --metric-soft: #fff9ee;
  --metric-icon: #fff0cf;
}
.stat-card.metric-medical {
  --metric-color: #8d62d2;
  --metric-soft: #faf7ff;
  --metric-icon: #eee7fb;
}
.stat-card.metric-inventory {
  --metric-color: #118ca5;
  --metric-soft: #f1fbfc;
  --metric-icon: #def5f7;
}
.stat-card.danger {
  --metric-color: var(--vc-danger);
  --metric-soft: #fff5f6;
  --metric-icon: #ffe3e6;
}

.card-pro h3,
.table-card h3,
.form-card h3,
.detail-card h3,
.section-title {
  color: var(--vc-ink);
  font-size: 15px;
  font-weight: 950;
}
.card-pro h3::before,
.form-card > h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 15px;
  margin-inline-end: 8px;
  vertical-align: -2px;
  background: linear-gradient(var(--vc-cyan), var(--vc-teal));
  border-radius: 99px;
}

.line-item {
  min-height: 45px;
  margin: 0;
  padding: 10px 2px;
  color: #496679;
  border-bottom: 1px solid #e8f0f3;
}
.line-item:last-child {
  border-bottom: 0;
}
.line-item:hover {
  padding-inline: 8px;
  background: #f7fbfc;
  border-radius: 9px;
}
.line-item b {
  color: var(--vc-ink);
  font-size: 11px;
}
.line-item small {
  color: var(--vc-muted);
}
.empty {
  padding: 24px 15px;
  color: var(--vc-muted);
  background: #f8fbfc;
  border: 1px dashed #cfe0e7;
  border-radius: 12px;
  text-align: center;
}

.low-stock-item,
.stock-move-item {
  border-color: #e5eef2;
}
.low-stock-qty {
  color: #bd3e4c;
  background: #fff0f2;
  border: 1px solid #f5d5d9;
}
.btn {
  min-height: 39px;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.btn-sm {
  min-height: 33px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 10px;
}
.btn-lg {
  min-height: 48px;
  padding: 11px 19px;
  border-radius: 13px;
}
.btn:not(:disabled):not(.disabled):hover {
  transform: translateY(-2px);
}
.btn:not(:disabled):not(.disabled):active {
  transform: translateY(0) scale(0.975);
}
.btn:hover i {
  transform: scale(1.08);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--vc-navy) 0%,
    #087d9a 55%,
    var(--vc-teal) 100%
  );
  border-color: var(--vc-navy);
  box-shadow: 0 9px 20px rgba(7, 89, 133, 0.16);
}
.btn-primary::before {
  display: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #086b94, #0bb2a8);
  border-color: #087d9a;
  box-shadow: 0 13px 27px rgba(7, 89, 133, 0.24);
}
.btn-success {
  color: #fff;
  background: linear-gradient(135deg, #0fa581, #087f73);
  border-color: #0b8d76;
  box-shadow: 0 8px 18px rgba(14, 159, 110, 0.16);
}
.btn-success:hover {
  color: #fff;
  background: linear-gradient(135deg, #12b38c, #087367);
  border-color: #087367;
  box-shadow: 0 12px 24px rgba(14, 159, 110, 0.23);
}
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #e35a66, #c93648);
  border-color: #d74453;
}
.btn-danger:hover {
  color: #fff;
  background: linear-gradient(135deg, #ed6974, #ba2f40);
  border-color: #ba2f40;
  box-shadow: 0 11px 23px rgba(223, 76, 90, 0.2);
}
.btn-warning {
  color: #543400;
  background: linear-gradient(135deg, #ffce6b, #f0a620);
  border-color: #efac2f;
}
.btn-dark {
  background: linear-gradient(135deg, #173c52, #082f49);
  border-color: #082f49;
}
.btn-outline-primary {
  color: var(--vc-navy);
  background: #f0f9fc;
  border-color: #9fcfdd;
}
.btn-outline-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--vc-navy), var(--vc-teal));
  border-color: var(--vc-navy);
  box-shadow: 0 10px 22px rgba(7, 89, 133, 0.18);
}
.btn-outline-success {
  color: #087f68;
  background: #f0fbf7;
  border-color: #99dac7;
}
.btn-outline-success:hover {
  color: #fff;
  background: #0e9f7b;
  border-color: #0e9f7b;
}
.btn-outline-danger {
  color: #c63f4e;
  background: #fff5f6;
  border-color: #f0b8bf;
}
.btn-outline-danger:hover {
  color: #fff;
  background: var(--vc-danger);
  border-color: var(--vc-danger);
}
.btn-outline-secondary {
  color: #567181;
  background: #f7fafb;
  border-color: #cddde4;
}
.btn-light {
  color: var(--vc-ink);
  background: #fff;
  border-color: var(--vc-line);
  box-shadow: var(--vc-shadow-sm);
}
.form-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(234, 248, 250, 0.72),
      rgba(255, 255, 255, 0) 72px
    ),
    #fff;
  border-color: #d2e5eb;
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--vc-navy),
    var(--vc-cyan),
    var(--vc-teal)
  );
}
.form-card-header {
  margin: -2px 0 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--vc-line);
}
.form-card-header > i {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 13px;
  font-size: 20px;
  box-shadow: 0 11px 23px rgba(7, 126, 151, 0.18);
}
.form-control,
.form-select,
.platform-form input,
.platform-form textarea,
.platform-password-card input {
  min-height: 42px;
  padding: 8px 12px;
  color: var(--vc-text);
  background-color: #fcfeff;
  border: 1px solid var(--vc-line-strong);
  border-radius: 11px;
  font-size: 12px;
  box-shadow: inset 0 1px 2px rgba(8, 47, 73, 0.025);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.form-control:focus,
.form-select:focus,
.platform-form input:focus,
.platform-form textarea:focus,
.platform-password-card input:focus {
  color: var(--vc-text);
  background: #fff;
  border-color: var(--vc-cyan);
  box-shadow:
    0 0 0 4px rgba(34, 199, 214, 0.11),
    0 8px 20px rgba(8, 47, 73, 0.055);
}
.form-control:hover,
.form-select:hover {
  border-color: #a8cdd8;
}
.form-control::placeholder {
  color: #9aabb5;
  opacity: 1;
}
.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  color: #708894;
  background: #eef5f7;
}
textarea.form-control {
  min-height: 104px;
  line-height: 1.75;
  resize: vertical;
}
.form-label {
  margin-bottom: 6px;
  color: #38566a;
  font-size: 11px;
  font-weight: 850;
}
.form-text {
  color: var(--vc-muted);
  font-size: 9px;
}
.form-check-input:checked {
  background-color: var(--vc-teal);
  border-color: var(--vc-teal);
}
.professional-form-grid {
  gap: 13px;
}
.form-field {
  min-width: 0;
}
.form-field-check,
.professional-switch {
  padding: 12px 14px;
  background: #f7fbfc;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
}
.form-section-title {
  color: var(--vc-navy);
  border-color: var(--vc-line);
}
.form-actions,
.sticky-actions {
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-color: var(--vc-line);
}
.page-actions,
.searchbox,
.report-filters,
.appointment-actions-grid {
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--vc-line);
  border-radius: 15px;
  box-shadow: var(--vc-shadow-sm);
}
.searchbox.is-searching::after,
.page-actions.is-searching::after {
  border-color: rgba(15, 159, 154, 0.2);
  border-top-color: var(--vc-teal);
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-card > .table-responsive {
  border-radius: inherit;
}
.table {
  margin: 0;
  color: var(--vc-text);
  font-size: 11px;
}
.table > :not(caption) > * > * {
  padding: 13px 14px;
  border-bottom-color: #e7eff2;
}
.table thead th {
  color: #48677a;
  background: #edf6f8;
  border-bottom: 1px solid #d5e6ec;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.table tbody tr {
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}
.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: #f2fafb;
  color: var(--vc-ink);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.product-group-title,
.section-actions,
.form-card-header {
  border-color: var(--vc-line);
}
.product-group-title {
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fcfd, #eef8fa);
}
.product-group-title h3 {
  margin: 0 0 3px;
}
.product-group-title span {
  color: var(--vc-muted);
  font-size: 10px;
}
.badge {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 850;
}
.badge-status,
.status-badge {
  border-radius: 999px;
}
.text-bg-success {
  color: #087254;
  background: #dcf7ec;
}
.text-bg-danger {
  color: #b83747;
  background: #ffe5e8;
}
.text-bg-secondary {
  color: #506a7a;
  background: #e9f0f3;
}
.text-bg-light {
  color: #446274;
  background: #f2f7f9;
}
.pagination {
  gap: 4px;
}
.page-link {
  min-width: 35px;
  color: var(--vc-navy);
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 9px;
  text-align: center;
}
.page-link:hover {
  color: #fff;
  background: var(--vc-teal);
  border-color: var(--vc-teal);
  transform: translateY(-1px);
}
.page-item.active .page-link {
  background: linear-gradient(135deg, var(--vc-navy), var(--vc-teal));
  border-color: transparent;
  box-shadow: 0 7px 16px rgba(7, 89, 133, 0.16);
}
.professional-tabs,
.settings-tabs,
.pet-tabs {
  padding: 5px;
  background: #edf5f8;
  border: 1px solid var(--vc-line);
  border-radius: 13px;
}
.professional-tabs .nav-link,
.settings-tabs .nav-link,
.pet-tabs .nav-link {
  color: #4e6b7d;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 850;
}
.professional-tabs .nav-link.active,
.settings-tabs .nav-link.active,
.pet-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--vc-navy), var(--vc-teal));
  box-shadow: 0 7px 16px rgba(7, 89, 133, 0.15);
}
.settings-shell {
  gap: 17px;
}
.settings-content {
  min-width: 0;
}
.detail-box,
.appointment-action-card,
.quick-action-stack > *,
.sale-result {
  background: #f8fbfc;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
}
.pet-profile-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-lg);
  box-shadow: var(--vc-shadow);
}
.pet-profile-header {
  background: linear-gradient(135deg, #eaf7fa, #f6fcfc);
  border-color: var(--vc-line);
}
.pet-photo-wrap {
  border: 4px solid #fff;
  box-shadow: 0 9px 22px rgba(7, 89, 133, 0.14);
}
.avatar-fallback {
  color: #fff;
  background: linear-gradient(135deg, var(--vc-blue), var(--vc-teal));
}
.appointment-action-card {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.appointment-action-card:hover {
  border-color: var(--vc-cyan);
  transform: translateY(-3px);
  box-shadow: var(--vc-shadow);
}
.quick-treatment-layout {
  gap: 17px;
}
.immediate-form-card,
.immediate-list-card {
  border-radius: var(--vc-radius-lg);
}
.pos-layout {
  gap: 17px;
}
.pos-products,
.pos-cart {
  border-radius: 20px;
}
.pos-toolbar {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--vc-line);
}
.product-grid {
  gap: 10px;
}
.product-tile {
  min-height: 106px;
  padding: 13px;
  color: var(--vc-text);
  background: linear-gradient(145deg, #fff, #f4fafb);
  border: 1px solid var(--vc-line);
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(8, 47, 73, 0.04);
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.product-tile::before {
  background: linear-gradient(90deg, var(--vc-blue), var(--vc-teal));
}
.product-tile:hover {
  color: var(--vc-ink);
  background: #fff;
  border-color: var(--vc-cyan);
  transform: translateY(-4px);
  box-shadow: 0 15px 27px rgba(7, 89, 133, 0.1);
}
.product-tile span {
  color: var(--vc-teal);
  font-weight: 950;
}
.product-tile small {
  color: var(--vc-muted);
}
.pos-cart {
  border-top: 4px solid var(--vc-teal);
}
.pos-cart-header {
  padding-bottom: 10px;
  border-color: var(--vc-line);
}
.cart-items {
  background: #f8fbfc;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
}
.totals {
  color: var(--vc-text);
  background: linear-gradient(135deg, #edf8fa, #f8fcfd);
  border: 1px solid var(--vc-line);
  border-radius: 13px;
}
.totals .grand {
  color: #fff;
  background: linear-gradient(135deg, var(--vc-navy), var(--vc-teal));
  border-radius: 10px;
}
.customer-suggestions {
  border-color: var(--vc-line);
  border-radius: 12px;
  box-shadow: var(--vc-shadow);
}
.alert {
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 750;
}
.alert-info {
  color: #175f83;
  background: #eaf7fc;
  border-color: #c8e8f4;
}
.alert-warning {
  color: #79510a;
  background: #fff8e8;
  border-color: #f4dfaa;
}
.alert-danger {
  color: #a93644;
  background: #fff0f2;
  border-color: #f2ced3;
}
.alert-success {
  color: #087054;
  background: #ebfaf4;
  border-color: #c6ecdd;
}
.toast-like-message {
  border-radius: 14px;
  box-shadow: var(--vc-shadow);
}
.modal-content {
  overflow: hidden;
  border: 1px solid var(--vc-line);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(8, 47, 73, 0.2);
}
.modal-header {
  color: #fff;
  background: linear-gradient(
    125deg,
    var(--vc-ink),
    var(--vc-navy),
    var(--vc-teal)
  );
  border: 0;
}
.modal-header .btn-close {
  filter: invert(1) grayscale(1);
}
.modal-footer {
  background: #f7fbfc;
  border-color: var(--vc-line);
}
.login-shell-pro {
  min-height: 100vh;
  padding: clamp(15px, 3vw, 42px);
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(34, 199, 214, 0.22),
      transparent 26rem
    ),
    radial-gradient(
      circle at 92% 90%,
      rgba(15, 159, 154, 0.15),
      transparent 26rem
    ),
    linear-gradient(145deg, #eaf6fa 0%, #f8fcfd 48%, #eaf7f6 100%);
}
.login-wrapper-pro {
  width: min(1160px, 100%);
  min-height: min(750px, calc(100vh - 50px));
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(191, 216, 225, 0.85);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(8, 47, 73, 0.17);
}
.login-visual-panel {
  background:
    linear-gradient(180deg, rgba(5, 45, 69, 0.1), rgba(5, 45, 69, 0.52)),
    linear-gradient(145deg, #063a59, #075985 48%, #0c8e95 100%);
}
.login-visual-panel::before {
  background: radial-gradient(
    circle,
    rgba(34, 199, 214, 0.26),
    transparent 70%
  );
}
.login-brand-pill {
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px 7px 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 15px;
  backdrop-filter: blur(12px);
}
.login-brand-pill img {
  width: 46px;
  height: 46px;
  padding: 2px;
  object-fit: cover;
  background: #fff;
  border-radius: 11px;
}
.login-brand-pill strong {
  color: #fff;
  font-size: 18px;
}
.login-brand-pill strong > span {
  color: #8ce9e5;
}
.login-brand-pill strong small {
  display: block;
  color: rgba(236, 251, 252, 0.7);
  font-size: 8px;
  font-weight: 650;
}
.login-eyebrow {
  color: #b9f5f2;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}
.login-hero-copy h1 {
  color: #fff;
  font-size: clamp(31px, 3.6vw, 49px);
  letter-spacing: -0.045em;
}
.login-hero-copy h1 em {
  color: #87ece8;
  font-style: normal;
}
.login-hero-copy p {
  color: rgba(237, 251, 252, 0.76);
}
.login-photo-card {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 22px 45px rgba(3, 32, 47, 0.22);
}
.login-photo-card::after {
  background: linear-gradient(transparent, rgba(4, 40, 59, 0.72));
}
.login-photo-badge {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
}
.login-feature-item {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}
.login-feature-item i {
  color: #9af0ed;
}
.login-form-panel {
  background: linear-gradient(145deg, #fff, #f8fcfd);
}
.login-card-pro {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.login-card-pro .login-logo {
  width: 90px;
  height: 90px;
  padding: 3px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(7, 89, 133, 0.12);
}
.login-card-pro .login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-card-pro h2 {
  color: var(--vc-ink);
}
.login-card-pro > p {
  color: var(--vc-muted);
}
.login-input-wrap > i {
  color: var(--vc-blue);
}
.login-input-wrap .form-control {
  padding-right: 43px;
  background: #fff;
  border-color: var(--vc-line-strong);
  border-radius: 12px;
}
.login-submit {
  min-height: 50px;
  border-radius: 13px;
}
.login-note-pro {
  color: #4e7080;
  background: #edf8fa;
  border: 1px solid #d1e9ee;
  border-radius: 12px;
}
.platform-page {
  background: var(--vc-bg);
  color: var(--vc-text);
}
.platform-topbar {
  min-height: 76px;
  padding: 0 5%;
  background: linear-gradient(
    120deg,
    #063a59,
    var(--vc-navy) 52%,
    var(--vc-teal)
  );
  box-shadow: 0 10px 30px rgba(7, 89, 133, 0.17);
}
.platform-brand {
  color: #fff;
  gap: 10px;
}
.platform-brand:hover {
  color: #fff;
}
.platform-brand > img {
  width: 49px;
  height: 49px;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
}
.platform-brand span {
  font-size: 18px;
}
.platform-brand small {
  color: rgba(235, 251, 252, 0.72);
}
.platform-main {
  width: min(1440px, 92%);
  padding: 34px 0 52px;
}
.platform-hero h1,
.platform-password-card h1 {
  color: var(--vc-ink);
}
.platform-stats {
  gap: 13px;
}
.platform-stats article,
.platform-card,
.platform-password-card {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 17px;
  box-shadow: var(--vc-shadow-sm);
}
.platform-stats article {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.platform-stats article:hover {
  transform: translateY(-3px);
  box-shadow: var(--vc-shadow);
}
.platform-stats i {
  color: var(--vc-blue);
  background: var(--vc-sky);
}
.platform-card-title > i {
  color: var(--vc-teal);
}
.platform-list-card {
  padding: 0;
  overflow: hidden;
}
.platform-table th {
  color: #4c697a;
  background: #edf6f8;
}
.status-badge.active {
  color: #087054;
  background: #dcf7ec;
}
.status-badge.paused {
  color: #98620b;
  background: #fff0ce;
}
.back-link {
  color: var(--vc-navy);
}
[data-live-region] {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.is-live-loading {
  opacity: 0.55;
  transform: translateY(2px);
}
.live-updated {
  animation: vc-flash 0.38s ease;
}

@keyframes vc-rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes vc-flash {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
@media (max-width: 1399px) {
  .stats-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .dashboard-welcome {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

@media (max-width: 1199px) {
  .user-info {
    display: none;
  }
  .userbox {
    padding: 5px;
  }
  .stats-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: min(88vw, 310px);
    transform: translateX(calc(100% + 28px));
    box-shadow: -22px 0 60px rgba(8, 47, 73, 0.2);
  }
  body.sidebar-visible .sidebar {
    transform: translateX(0);
  }
  body.sidebar-hidden .sidebar {
    transform: translateX(calc(100% + 28px));
  }
  .main,
  body.sidebar-hidden .main {
    margin-right: 0;
  }
  .sidebar-backdrop {
    background: rgba(7, 47, 70, 0.43);
    backdrop-filter: blur(3px);
  }
  body.sidebar-visible .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }
  .topbar {
    min-height: var(--vc-topbar);
    padding: 8px 14px;
  }
  .content {
    padding: 14px 13px 24px;
  }
  .dashboard-welcome {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .dashboard-welcome-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pos-layout,
  .quick-treatment-layout {
    grid-template-columns: 1fr;
  }
  .pos-cart {
    position: static;
  }
}

@media (max-width: 767px) {
  :root {
    --vc-topbar: 70px;
  }
  .topbar {
    align-items: center;
  }
  .page-kicker,
  .page-heading > span {
    display: none;
  }
  .page-heading h1 {
    max-width: 52vw;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar-toggle {
    width: 41px;
    height: 41px;
    flex-basis: 41px;
  }
  .userbox {
    display: none;
  }
  .logout-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
  .dashboard-welcome {
    padding: 19px 16px;
    border-radius: 18px;
  }
  .dashboard-welcome h2 {
    font-size: 24px;
  }
  .dashboard-welcome-actions {
    grid-template-columns: 1fr;
  }
  .stats-grid,
  .stats-grid-4,
  .stats-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card {
    min-height: 108px;
    padding: 13px;
  }
  .card-pro,
  .form-card,
  .detail-card {
    padding: 15px;
    border-radius: 14px;
  }
  .table-card {
    border-radius: 14px;
  }
  .table > :not(caption) > * > * {
    padding: 11px 10px;
  }
  .page-actions,
  .searchbox,
  .report-filters {
    padding: 11px;
  }
  .settings-shell {
    display: block;
  }
  .settings-tabs {
    margin-bottom: 13px;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .platform-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .platform-list-head {
    align-items: stretch;
    flex-direction: column;
  }
  .platform-search input {
    width: 100%;
  }
  .login-wrapper-pro {
    min-height: auto;
    border-radius: 21px;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .stats-grid-4,
  .stats-grid-5 {
    grid-template-columns: 1fr;
  }
  .stat-card {
    min-height: 104px;
  }
  .welcome-meta {
    display: grid;
  }
  .platform-stats {
    grid-template-columns: 1fr;
  }
  .platform-form {
    grid-template-columns: 1fr;
  }
  .platform-form .span-2 {
    grid-column: auto;
  }
}

@media print {
  body.vetcare-app {
    background: #fff !important;
  }
  body.vetcare-app::before,
  .sidebar,
  .sidebar-backdrop,
  .topbar,
  .page-actions,
  .searchbox,
  .report-filters,
  .btn,
  .messages-wrap {
    display: none !important;
  }
  .main {
    margin: 0 !important;
  }
  .content {
    max-width: none;
    padding: 0 !important;
  }
  .dashboard-welcome {
    color: #183247;
    background: #eef7f9 !important;
    border: 1px solid #ccdfe6;
    box-shadow: none;
  }
  .stat-card,
  .card-pro,
  .table-card,
  .form-card,
  .detail-card {
    break-inside: avoid;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sidebar .sidebar-brand-wrap {
  position: relative;
  top: 0;
  margin: 0 0 10px;
  padding: 0 0 10px;
  overflow: visible;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 7px 9px 7px 42px;
}

.sidebar .brand-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border-radius: 14px;
}

.sidebar .brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.75) translateY(16%);
  transform-origin: center;
}

body.vc-login-page {
  --login-navy: #073c5a;
  --login-blue: #087ea4;
  --login-teal: #0fa39d;
  --login-cyan: #25c7d5;
  --login-text: #14384d;
  --login-muted: #718895;
  --login-line: #d9e7ec;

  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(37, 199, 213, 0.18),
      transparent 27rem
    ),
    radial-gradient(
      circle at 92% 92%,
      rgba(15, 163, 157, 0.13),
      transparent 28rem
    ),
    linear-gradient(145deg, #eaf7fa, #f8fcfd 48%, #edf8f6);
}

body.vc-login-page::before {
  opacity: 0.25;
}

.vc-auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.vc-auth__shell {
  direction: ltr;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(390px, 0.92fr);
  width: min(1180px, 100%);
  min-height: 660px;
  height: min(760px, calc(100dvh - 48px));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(190, 216, 225, 0.9);
  border-radius: 30px;
  box-shadow:
    0 35px 100px rgba(6, 50, 73, 0.18),
    0 8px 25px rgba(6, 50, 73, 0.07);
}

.vc-auth__visual {
  direction: rtl;
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  background-color: #075985;
  background-image:
    linear-gradient(
      145deg,
      rgba(4, 42, 64, 0.89) 0%,
      rgba(5, 83, 111, 0.72) 50%,
      rgba(8, 125, 127, 0.65) 100%
    ),
    url("../images/login-vet-real.03f7876fdff1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.vc-auth__visual::before,
.vc-auth__visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.vc-auth__visual::before {
  top: -140px;
  right: -110px;
  width: 380px;
  height: 380px;
  background: rgba(53, 218, 225, 0.14);
  filter: blur(2px);
}

.vc-auth__visual::after {
  bottom: -180px;
  left: -150px;
  width: 440px;
  height: 440px;
  background: rgba(32, 210, 179, 0.13);
}

.vc-auth__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 31, 48, 0.1),
    rgba(3, 31, 48, 0.42)
  );
}

.vc-auth__visual-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 54px);
}

.vc-auth__visual-brand {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 9px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  box-shadow: 0 10px 30px rgba(2, 24, 37, 0.13);
  backdrop-filter: blur(15px);
}

.vc-auth__visual-brand img {
  width: 52px;
  height: 52px;
  padding: 3px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 13px;
}

.vc-auth__visual-brand div {
  line-height: 1.15;
}

.vc-auth__visual-brand strong {
  display: block;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.vc-auth__visual-brand strong span {
  color: #91f0eb;
}

.vc-auth__visual-brand small {
  display: block;
  margin-top: 5px;
  color: rgba(234, 253, 253, 0.75);
  font-size: 9px;
  font-weight: 700;
}

.vc-auth__hero {
  max-width: 570px;
  margin: auto 0;
  padding: 40px 0 32px;
}

.vc-auth__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  color: #b8f7f3;
  font-size: 11px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.vc-auth__hero h1 {
  max-width: 540px;
  margin: 20px 0 15px;
  color: #ffffff;
  font-size: clamp(38px, 4vw, 59px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.vc-auth__hero h1 em {
  display: block;
  margin-top: 7px;
  color: #8cece7;
  font-style: normal;
}

.vc-auth__hero p {
  max-width: 510px;
  margin: 0;
  color: rgba(234, 250, 252, 0.79);
  font-size: 14px;
  line-height: 1.9;
  font-weight: 650;
}

.vc-auth__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.vc-auth__feature {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.vc-auth__feature:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.vc-auth__feature > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: #b8f7f3;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 10px;
}

.vc-auth__feature div {
  min-width: 0;
}

.vc-auth__feature strong,
.vc-auth__feature small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vc-auth__feature strong {
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.vc-auth__feature small {
  margin-top: 3px;
  color: rgba(232, 250, 251, 0.67);
  font-size: 7px;
  font-weight: 650;
}

.vc-auth__visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  color: rgba(234, 252, 252, 0.72);
  font-size: 9px;
  font-weight: 700;
}

.vc-auth__visual-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vc-auth__visual-footer i {
  color: #8cece7;
  font-size: 13px;
}

.vc-auth__form-side {
  direction: rtl;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(32px, 4vw, 60px);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(37, 199, 213, 0.08),
      transparent 18rem
    ),
    linear-gradient(145deg, #ffffff, #f9fcfd);
}

.vc-auth__form-card {
  width: min(100%, 420px);
}

.vc-auth__form-header {
  margin-bottom: 28px;
}

.vc-auth__mobile-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 29px;
}

.vc-auth__mobile-brand img {
  width: 62px;
  height: 62px;
  padding: 3px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--login-line);
  border-radius: 17px;
  box-shadow: 0 10px 26px rgba(7, 89, 133, 0.11);
}

.vc-auth__mobile-brand div {
  line-height: 1.1;
}

.vc-auth__mobile-brand strong {
  display: block;
  color: var(--login-navy);
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.vc-auth__mobile-brand strong span {
  color: var(--login-teal);
}

.vc-auth__mobile-brand small {
  display: block;
  margin-top: 5px;
  color: var(--login-muted);
  font-size: 8px;
  font-weight: 700;
}

.vc-auth__welcome {
  display: block;
  margin-bottom: 7px;
  color: var(--login-teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.vc-auth__form-header h2 {
  margin: 0;
  color: var(--login-text);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.vc-auth__form-header p {
  margin: 10px 0 0;
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 650;
}

.vc-auth__form {
  display: grid;
  gap: 20px;
}

.vc-auth__field label {
  display: inline-block;
  margin-bottom: 8px;
  color: #23495d;
}

.vc-auth__field label > span {
  color: #df4c5a;
}

.vc-auth__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vc-auth__secure-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  color: #75909e;
  font-size: 8px;
  font-weight: 750;
}

.vc-auth__secure-label i {
  color: var(--login-teal);
}

.vc-auth__input-group {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--login-line);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(8, 47, 73, 0.035);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.vc-auth__input-group:focus-within {
  border-color: rgba(15, 163, 157, 0.72);
  box-shadow:
    0 0 0 4px rgba(15, 163, 157, 0.11),
    0 10px 25px rgba(8, 47, 73, 0.07);
  transform: translateY(-1px);
}

.vc-auth__input-group > i {
  position: absolute;
  right: 16px;
  z-index: 2;
  color: var(--login-blue);
  font-size: 18px;
  pointer-events: none;
}

.vc-auth__input-group input {
  width: 100%;
  min-height: 52px;
  padding: 0 47px 0 50px;
  color: var(--login-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
}

.vc-auth__input-group input::placeholder {
  color: #9aadb7;
}

.vc-auth__input-group input:-webkit-autofill {
  -webkit-text-fill-color: var(--login-text);
  box-shadow: 0 0 0 1000px #ffffff inset;
}

.vc-auth__password-toggle {
  position: absolute;
  left: 9px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #718996;
  background: #f1f7f9;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.vc-auth__password-toggle:hover {
  color: var(--login-blue);
  background: #e4f3f6;
}

.vc-auth__field-error {
  display: block;
  margin-top: 7px;
  color: #c73748;
  font-size: 9px;
  font-weight: 800;
}

.vc-auth__submit {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--login-teal), var(--login-blue));
  border: 0;
  border-radius: 14px;
  box-shadow: 0 13px 28px rgba(7, 126, 164, 0.22);
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.vc-auth__submit:hover {
  color: #ffffff;
  filter: brightness(1.04);
  box-shadow: 0 17px 34px rgba(7, 126, 164, 0.28);
  transform: translateY(-2px);
}

.vc-auth__submit:active {
  transform: translateY(0);
}

.vc-auth__submit i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.vc-auth__submit:hover i {
  transform: translateX(-4px);
}

.vc-auth__messages {
  margin-bottom: 16px;
}

.vc-auth__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 13px;
  font-size: 10px;
  line-height: 1.6;
}

.vc-auth__alert > i {
  margin-top: 2px;
  font-size: 15px;
}

.vc-auth__alert strong,
.vc-auth__alert span {
  display: block;
}

.vc-auth__alert strong {
  margin-bottom: 2px;
  font-weight: 900;
}

.vc-auth__alert--error {
  color: #9d2e3d;
  background: #fff2f4;
  border-color: #f0cbd1;
}

.vc-auth__alert--info {
  color: #17627d;
  background: #edf8fb;
  border-color: #cde9f0;
}

.vc-auth__help {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 19px;
  padding: 11px 12px;
  color: #577482;
  background: #eff8fa;
  border: 1px solid #d8eaee;
  border-radius: 12px;
}

.vc-auth__help i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--login-blue);
}

.vc-auth__help p {
  margin: 0;
  font-size: 9px;
  line-height: 1.7;
  font-weight: 700;
}

.vc-auth__form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 23px;
  padding-top: 17px;
  color: #8aa0aa;
  border-top: 1px solid #e6eff2;
  font-size: 8px;
  font-weight: 750;
}

.vc-auth__form-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vc-auth__form-footer i {
  color: var(--login-teal);
}

@media (max-width: 1050px) {
  .vc-auth__shell {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.9fr);
  }

  .vc-auth__visual-content {
    padding: 35px;
  }

  .vc-auth__features {
    grid-template-columns: 1fr;
    max-width: 260px;
  }

  .vc-auth__feature:nth-child(3) {
    display: none;
  }
}

@media (max-width: 820px) {
  .vc-auth {
    padding: 14px;
  }

  .vc-auth__shell {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    height: auto;
    min-height: calc(100dvh - 28px);
    border-radius: 24px;
  }

  .vc-auth__visual {
    display: none;
  }

  .vc-auth__form-side {
    padding: 40px;
  }

  .vc-auth__form-card {
    margin: auto;
  }
}

@media (max-width: 520px) {
  body.vc-login-page {
    background: #ffffff;
  }

  .vc-auth {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .vc-auth__shell {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .vc-auth__form-side {
    min-height: 100dvh;
    padding: 26px 22px;
  }

  .vc-auth__mobile-brand {
    margin-bottom: 35px;
  }

  .vc-auth__mobile-brand img {
    width: 57px;
    height: 57px;
  }

  .vc-auth__form-header {
    margin-bottom: 25px;
  }

  .vc-auth__input-group {
    min-height: 52px;
  }

  .vc-auth__input-group input {
    min-height: 50px;
  }

  .vc-auth__submit {
    min-height: 52px;
  }
}

@media (max-width: 360px) {
  .vc-auth__form-side {
    padding-inline: 17px;
  }

  .vc-auth__form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vc-auth *,
  .vc-auth *::before,
  .vc-auth *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.vc-auth__input-group input {
  font-size: 16px;
  font-weight: 750;
}
.vc-auth__input-group input::placeholder {
  font-size: 14px;
  font-weight: 650;
}
.vc-auth__field label {
  font-size: 13px;
  font-weight: 900;
}
.vc-auth__submit {
  font-size: 14px;
  font-weight: 900;
}
body:not(.vc-login-page) {
  color: #18394c;
  font-size: 14px;
}
body:not(.vc-login-page) label,
body:not(.vc-login-page) .form-label,
body:not(.vc-login-page) .col-form-label {
  margin-bottom: 7px;
  color: #21485c;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}
body:not(.vc-login-page) .form-control,
body:not(.vc-login-page) .form-select,
body:not(.vc-login-page) textarea,
body:not(.vc-login-page)
  input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not(
    [type="submit"]
  ):not([type="reset"]),
body:not(.vc-login-page) select {
  min-height: 44px;
  padding: 9px 13px;
  color: #15384b;
  background-color: #ffffff;
  border-color: #cbdde4;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(8, 47, 73, 0.025);
}
body:not(.vc-login-page) .form-select,
body:not(.vc-login-page) select {
  padding-inline-start: 13px;
  padding-inline-end: 38px;
}
body:not(.vc-login-page) textarea.form-control,
body:not(.vc-login-page) textarea {
  min-height: 100px;
  line-height: 1.75;
  resize: vertical;
}
body:not(.vc-login-page) .form-control::placeholder,
body:not(.vc-login-page) textarea::placeholder,
body:not(.vc-login-page) input::placeholder {
  color: #8096a2;
  opacity: 1;
  font-size: 13px;
  font-weight: 600;
}
body:not(.vc-login-page) .form-control:focus,
body:not(.vc-login-page) .form-select:focus,
body:not(.vc-login-page) textarea:focus,
body:not(.vc-login-page) input:focus,
body:not(.vc-login-page) select:focus {
  color: #102f40;
  background-color: #ffffff;
  border-color: #18a7a5;
  outline: none;
  box-shadow:
    0 0 0 4px rgba(24, 167, 165, 0.11),
    0 7px 18px rgba(8, 47, 73, 0.06);
}
body:not(.vc-login-page) input[type="number"],
body:not(.vc-login-page) input[type="tel"],
body:not(.vc-login-page) input[type="date"],
body:not(.vc-login-page) input[type="time"] {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
body:not(.vc-login-page) .form-text,
body:not(.vc-login-page) .help-text,
body:not(.vc-login-page) small.text-muted {
  color: #6c8592;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
}

body:not(.vc-login-page) .invalid-feedback,
body:not(.vc-login-page) .valid-feedback,
body:not(.vc-login-page) .errorlist {
  font-size: 11px;
  line-height: 1.6;
  font-weight: 750;
}
body:not(.vc-login-page) .btn {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  border-radius: 10px;
}
body:not(.vc-login-page) .btn-sm {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
}

body:not(.vc-login-page) .btn-icon,
body:not(.vc-login-page) .table-action-btn {
  padding: 0;
}
body:not(.vc-login-page) .table {
  color: #23485a;
  font-size: 13px;
}

body:not(.vc-login-page) .table thead th {
  color: #395c6c;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 850;
}

body:not(.vc-login-page) .table tbody td {
  font-size: 13px;
  line-height: 1.65;
  font-weight: 600;
}
body:not(.vc-login-page) .amount,
body:not(.vc-login-page) .price,
body:not(.vc-login-page) .total,
body:not(.vc-login-page) .quantity,
body:not(.vc-login-page) .numeric-value,
body:not(.vc-login-page) [data-number] {
  color: #123e55;
  font-size: 14px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
body:not(.vc-login-page) .form-check-input {
  width: 18px;
  height: 18px;
  min-height: auto;
  padding: 0;
}

body:not(.vc-login-page) .form-check-label {
  margin-bottom: 0;
  font-size: 13px;
}
@media (max-width: 768px) {
  body:not(.vc-login-page) .form-control,
  body:not(.vc-login-page) .form-select,
  body:not(.vc-login-page) textarea,
  body:not(.vc-login-page) input:not([type="checkbox"]):not([type="radio"]),
  body:not(.vc-login-page) select {
    min-height: 46px;
    font-size: 16px;
  }

  body:not(.vc-login-page) label,
  body:not(.vc-login-page) .form-label {
    font-size: 13px;
  }

  body:not(.vc-login-page) .table tbody td {
    font-size: 13px;
  }
}

/* Accessible typography baseline: secondary text remains readable at normal zoom. */
body.vetcare-app .brand small,
body.vetcare-app .page-kicker,
body.vetcare-app .user-role,
body.vetcare-app .sidebar-clinic-card small,
body.vetcare-app .stat-card small,
body.vetcare-app .card-pro small,
body.vetcare-app .table-card small,
body.vetcare-app .detail-box span,
body.vetcare-app .selected-owner-info,
body.vetcare-app .form-text,
body.vetcare-app .help-text,
body.vetcare-app small.text-muted {
  font-size: 0.8125rem;
  line-height: 1.6;
}

body.vetcare-app .page-heading > span,
body.vetcare-app .product-group-title span,
body.vetcare-app .form-card-header p,
body.vetcare-app .vc-auth__form-header p,
body.vetcare-app .vc-auth__help p,
body.vetcare-app .vc-auth__form-footer {
  font-size: 0.875rem;
  line-height: 1.65;
}

body.vetcare-app label,
body.vetcare-app .form-label {
  font-size: 0.875rem;
  font-weight: 700;
}

body.vetcare-app .form-control,
body.vetcare-app .form-select,
body.vetcare-app textarea,
body.vetcare-app input:not([type="checkbox"]):not([type="radio"]) {
  font-size: 1rem;
}

body.vetcare-app .table thead th {
  font-size: 0.8125rem;
}

body.vetcare-app .table tbody td,
body.vetcare-app .badge,
body.vetcare-app .btn-sm {
  font-size: 0.8125rem;
}

body.vetcare-app small,
body.vetcare-app .alert,
body.vetcare-app .nav-section-title,
body.vetcare-app .topbar-date,
body.vetcare-app .topbar-action,
body.vetcare-app .user-info strong,
body.vetcare-app .switch-status span,
body.vetcare-app .line-item b,
body.vetcare-app .professional-tabs .nav-link,
body.vetcare-app .settings-tabs .nav-link,
body.vetcare-app .pet-tabs .nav-link {
  font-size: 0.8125rem;
  line-height: 1.55;
}

body.vc-login-page .vc-auth__alert,
body.vc-login-page .vc-auth__eyebrow,
body.vc-login-page .vc-auth__welcome,
body.vc-login-page .vc-auth__feature strong,
body.vc-login-page .vc-auth__feature small,
body.vc-login-page .vc-auth__field-error,
body.vc-login-page .vc-auth__help p,
body.vc-login-page .vc-auth__form-footer,
body.vc-login-page .vc-auth__mobile-brand small,
body.vc-login-page .vc-auth__secure-label,
body.vc-login-page .vc-auth__visual-brand small {
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ========================================================================== */
/* 2026-07 professional workflow refinements                                  */
/* ========================================================================== */

:root {
  --vc-topbar: 58px;
}

/* Slimmer application header while keeping the signed-in user readable. */
body.vetcare-app .topbar {
  min-height: var(--vc-topbar);
  padding-block: 4px;
}

body.vetcare-app .sidebar-toggle {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 10px;
}

body.vetcare-app .page-kicker {
  margin-bottom: 0;
  font-size: 0.6875rem;
  line-height: 1.1;
}

body.vetcare-app .page-heading h1 {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.08;
}

body.vetcare-app .page-heading > span {
  margin-top: 0;
  font-size: 0.75rem;
  line-height: 1.2;
}

body.vetcare-app .topbar-date,
body.vetcare-app .topbar-action {
  min-height: 34px;
  padding: 4px 8px;
}

body.vetcare-app .userbox {
  min-height: 36px;
  padding: 3px 6px 3px 8px;
}

body.vetcare-app .user-avatar {
  width: 27px;
  height: 27px;
}

body.vetcare-app .user-info strong,
body.vetcare-app .user-role {
  line-height: 1.15;
}

body.vetcare-app .logout-btn {
  min-width: 36px;
  height: 36px;
}

/* Pet profile: important actions remain visible before hover. */
.quick-action-stack .pet-action-treatment,
.quick-action-stack .pet-action-whatsapp {
  position: relative;
  z-index: 1;
  color: #fff;
  border: 0;
  box-shadow: 0 9px 20px rgba(8, 47, 73, 0.17);
}

.quick-action-stack .pet-action-treatment {
  background: linear-gradient(135deg, #075985, #087ea4);
}

.quick-action-stack .pet-action-whatsapp {
  background: linear-gradient(135deg, #12855f, #0eaa75);
}

.quick-action-stack .pet-action-treatment:hover,
.quick-action-stack .pet-action-treatment:focus-visible,
.quick-action-stack .pet-action-whatsapp:hover,
.quick-action-stack .pet-action-whatsapp:focus-visible {
  color: #fff;
  filter: saturate(1.12) brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(8, 47, 73, 0.23);
}

/* Period dashboards: four balanced cards with compact internal metrics. */
.period-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.period-summary-card {
  --period-accent: #087ea4;
  --period-soft: #eaf7fc;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--vc-line);
  border-top: 4px solid var(--period-accent);
  border-radius: 19px;
  box-shadow: var(--vc-shadow-sm);
}

.period-summary-card::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -75px;
  width: 180px;
  height: 180px;
  pointer-events: none;
  background: var(--period-accent);
  border-radius: 50%;
  opacity: 0.055;
}

.period-summary-today {
  --period-accent: #087ea4;
  --period-soft: #e9f7fc;
}

.period-summary-week {
  --period-accent: #0f9f9a;
  --period-soft: #e8f9f6;
}

.period-summary-month {
  --period-accent: #7257b5;
  --period-soft: #f1edfb;
}

.period-summary-custom {
  --period-accent: #d18712;
  --period-soft: #fff5df;
}

.period-summary-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--period-soft), #fff 78%);
  border-bottom: 1px solid var(--vc-line);
}

.period-summary-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.period-summary-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  color: #fff;
  background: var(--period-accent);
  border-radius: 12px;
  box-shadow: 0 8px 17px color-mix(in srgb, var(--period-accent) 25%, transparent);
}

.period-summary-header h2 {
  margin: 0;
  color: var(--vc-ink);
  font-size: 1.0625rem;
  font-weight: 950;
}

.period-summary-header p {
  margin: 2px 0 0;
  color: var(--vc-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.period-summary-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #9a6108;
  background: #fff3d4;
  border: 1px solid #f1d69b;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 900;
}

.period-metrics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 11px;
}

.period-metric {
  --metric-accent: var(--period-accent);
  min-width: 0;
  min-height: 74px;
  padding: 9px 10px;
  background: #f9fcfd;
  border: 1px solid #e2edf1;
  border-radius: 12px;
}

.period-metric > span,
.period-metric > strong {
  display: block;
}

.period-metric > span {
  overflow: hidden;
  color: #607b8c;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-metric > span i {
  margin-inline-end: 4px;
  color: var(--metric-accent);
}

.period-metric > strong {
  margin-top: 7px;
  overflow: hidden;
  color: var(--vc-ink);
  font-size: clamp(0.91rem, 1.12vw, 1.08rem);
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-metric.metric-collected,
.period-metric.metric-net-profit {
  --metric-accent: #0c9b6c;
  background: #f2fbf7;
}

.period-metric.metric-gross-profit {
  --metric-accent: #19885b;
}

.period-metric.metric-partial,
.period-metric.metric-expenses,
.period-metric.metric-returns {
  --metric-accent: #d98212;
  background: #fffaf0;
}

.period-metric.metric-purchases {
  --metric-accent: #7257b5;
  background: #faf8ff;
}

.report-supporting-stats .stat-card {
  min-height: 98px;
}

/* Eight compact inventory summaries, followed by the calm original table. */
.category-summary-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 9px;
}

.category-summary-card {
  min-width: 0;
  min-height: 112px;
  padding: 10px;
  border-radius: 13px;
}

.category-summary-card > span {
  min-height: 34px;
  overflow: hidden;
  color: var(--vc-ink);
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-summary-card > strong {
  margin-top: 2px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.category-summary-card > small {
  margin-top: 2px;
  font-size: 0.7rem;
  line-height: 1.35;
}

.category-summary-card.has-inventory-warning {
  background: linear-gradient(150deg, #fff, #fff5f6);
  border-color: #f2c6cc;
}

.category-warning {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 3px;
  color: #c53042;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.3;
}
.inventory-alert-text {
  color: #c92f42;
  font-weight: 950;
}

.inventory-alert-label {
  display: block;
  margin-top: 3px;
  color: #c92f42;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1.25;
}

.product-alert-row td:first-child {
  box-shadow: inset -3px 0 #df4c5a;
}

.product-standard-table {
  width: 100%;
  min-width: 980px;
}

.product-standard-table th,
.product-standard-table td {
  vertical-align: middle;
}

@media (min-width: 1200px) {
  body.sidebar-hidden .product-group-card .table-responsive {
    overflow-x: visible;
  }

  body.sidebar-hidden .product-standard-table {
    min-width: 0;
    table-layout: fixed;
  }

  body.sidebar-hidden .product-standard-table th,
  body.sidebar-hidden .product-standard-table td {
    padding-inline: 6px;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
  }

  body.sidebar-hidden .product-standard-table th:first-child {
    width: 4%;
  }

  body.sidebar-hidden .product-standard-table th:nth-child(2) {
    width: 17%;
  }

  body.sidebar-hidden .product-standard-table th:last-child {
    width: 12%;
  }

  body.sidebar-hidden .product-standard-table td:last-child .btn {
    padding: 4px 6px;
    font-size: 0.72rem;
  }
}

/* POS: customer and pet share one row; six cart lines stay visible. */
body.pos-page .pos-layout {
  grid-template-columns: minmax(0, 1fr) 445px;
}

.customer-pick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: 9px;
}

.customer-pick-grid .pos-customer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.pos-customer-label small {
  flex: 0 0 auto;
  padding: 2px 6px;
  color: #087a74;
  background: #e8f8f5;
  border: 1px solid #c8eee7;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.25;
}

.customer-pick-grid .form-control,
.customer-pick-grid .form-select,
.customer-pick-grid .input-group .btn {
  min-height: 38px;
  height: 38px;
  font-size: 0.8rem;
}

.owner-pick-field,
.pet-pick-field {
  min-width: 0;
  padding: 8px;
  background: #f8fbfc;
  border: 1px solid var(--vc-line);
  border-radius: 11px;
}

.customer-pick > .selected-owner-info {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  padding-inline: 3px;
  overflow: hidden;
  color: var(--vc-teal);
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-pick-field .customer-suggestions {
  top: 69px;
}

body.pos-page .pos-cart {
  padding: 13px;
}

body.pos-page .pos-cart-header {
  margin-bottom: 7px;
  padding-bottom: 7px;
}

body.pos-page .cart-items {
  min-height: 292px;
  max-height: 292px;
}

body.pos-page .cart-row {
  grid-template-columns: minmax(0, 1fr) 66px 70px 30px;
  gap: 6px;
  min-height: 47px;
  padding: 4px 5px;
}

body.pos-page .cart-row b {
  font-size: 0.78rem;
  line-height: 1.25;
}

body.pos-page .cart-row b small {
  font-size: 0.67rem;
  line-height: 1.2;
}

body.vetcare-app.pos-page .cart-row input {
  min-height: 32px;
  height: 32px;
  padding: 3px 6px;
  font-size: 0.78rem;
}

body.pos-page .cart-row > span {
  font-size: 0.72rem;
  font-weight: 850;
}

body.pos-page .cart-row .btn {
  width: 29px;
  height: 29px;
  padding: 0;
}

body.pos-page .totals {
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
}

body.pos-page .totals label {
  margin: 0;
  font-size: 0.72rem;
}

body.vetcare-app.pos-page .totals .form-control,
body.vetcare-app.pos-page .totals .form-select {
  min-height: 35px;
  height: 35px;
  padding-block: 4px;
  font-size: 0.82rem;
}

body.pos-page .invoice-summary-line,
body.pos-page .grand {
  min-height: 39px;
  padding: 7px 10px;
}

body.pos-page .totals .grand,
body.pos-page .totals .grand span,
body.pos-page .totals .grand b,
body.pos-page #grandTotal {
  color: #fff;
  font-weight: 950;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

body.pos-page #grandTotal {
  font-size: 1.25rem;
}

body.pos-page #completeSale {
  min-height: 45px;
}

body.pos-page .product-tile {
  min-height: 96px;
  padding: 10px;
}

/* The cashier uses the extra desktop width as soon as the sidebar closes. */
@media (min-width: 1600px) {
  body.pos-page:not(.sidebar-hidden) .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.pos-page.sidebar-hidden .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1201px) and (max-width: 1599px) {
  body.pos-page:not(.sidebar-hidden) .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.pos-page.sidebar-hidden .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1399px) {
  body.pos-page .pos-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
}

@media (max-width: 1199px) {
  .category-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .period-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .period-dashboard {
    grid-template-columns: 1fr;
  }

  body.pos-page .pos-layout {
    grid-template-columns: 1fr;
  }

  body.pos-page .pos-cart {
    padding: 13px;
  }
}

@media (max-width: 767px) {
  :root {
    --vc-topbar: 58px;
  }

  body.vetcare-app .topbar {
    min-height: var(--vc-topbar);
    padding-block: 4px;
  }

  .category-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .period-summary-header {
    align-items: flex-start;
  }

  .period-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-pick-grid {
    grid-template-columns: 1fr;
  }

  body.pos-page .cart-items {
    min-height: 270px;
    max-height: 270px;
  }
}

@media (max-width: 480px) {
  .category-summary-grid,
  .period-metrics-grid {
    grid-template-columns: 1fr;
  }
}
body.vc-login-page .vc-auth__visual-footer {
  font-size: 0.8125rem;
  line-height: 1.6;
}

body.vc-login-page .vc-auth__field label,
body.vc-login-page .vc-auth__submit {
  font-size: 0.875rem;
}

body.vc-login-page .vc-auth__input-group input {
  font-size: 1rem;
}

.platform-logout-form {
  margin: 0;
}

/* ========================================================================== */
/* Focused form and table refinements — July 2026                              */
/* ========================================================================== */

.optional-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  width: auto;
  margin-inline-start: 5px;
  padding: 2px 7px;
  color: #64748b;
  background: #eef2f6;
  border: 1px solid #dbe4ea;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1.35;
  font-weight: 800;
  vertical-align: middle;
}

.professional-switch .optional-label {
  display: inline-flex;
  flex-direction: row;
}

/* Immediate treatments: a wide three-field row with paired clinical notes. */
.immediate-treatments-page .quick-treatment-layout {
  grid-template-columns: 1fr;
  gap: 18px;
}

.immediate-entry-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.immediate-entry-grid > .immediate-field {
  grid-column: span 2;
  min-width: 0;
}

.immediate-entry-grid > .immediate-field-symptoms,
.immediate-entry-grid > .immediate-field-treatment_notes {
  grid-column: span 3;
}

.immediate-entry-grid > .immediate-field-notes,
.immediate-entry-grid > .switch-line {
  grid-column: 1 / -1;
}

body.vetcare-app .immediate-entry-grid textarea.form-control {
  min-height: 76px;
  height: 76px;
  resize: vertical;
}

body.vetcare-app .immediate-entry-grid .immediate-field-notes textarea.form-control {
  min-height: 60px;
  height: 60px;
}

/* Pet file: deterministic rows for owner and animal data. */
.pet-owner-grid,
.pet-profile-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.pet-owner-grid > .pet-owner-field,
.pet-profile-grid > .pet-profile-field {
  grid-column: span 2;
  min-width: 0;
}

.pet-owner-field-owner_name { order: 1; }
.pet-owner-field-owner_phone { order: 2; }
.pet-owner-field-owner_address { order: 3; }
.pet-owner-grid > .pet-owner-field-owner_notes {
  order: 4;
  grid-column: span 4;
}
.pet-owner-grid > .pet-owner-field-owner_whatsapp_enabled {
  order: 5;
  grid-column: span 2;
}

.pet-owner-field-owner_whatsapp_enabled .professional-switch {
  min-height: 72px;
  padding-block: 9px;
}

.pet-profile-grid > .pet-profile-field-image {
  grid-column: span 2;
}

.pet-profile-grid > .pet-profile-field-allergies,
.pet-profile-grid > .pet-profile-field-notes {
  grid-column: span 3;
}

.pet-profile-grid > .pet-profile-field-is_active {
  grid-column: 1 / -1;
}

body.vetcare-app .pet-owner-grid textarea.form-control,
body.vetcare-app .pet-profile-grid textarea.form-control {
  min-height: 72px;
  height: 72px;
  resize: vertical;
}

/* Compact special-purpose generic forms. */
.resource-form-grid--boardingbooking,
.resource-form-grid--vaccinerecord,
.resource-form-grid--groomingbooking,
.resource-form-grid--expense {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.resource-form-grid--boardingbooking > .resource-form-field,
.resource-form-grid--vaccinerecord > .resource-form-field,
.resource-form-grid--groomingbooking > .resource-form-field,
.resource-form-grid--expense > .resource-form-field {
  grid-column: span 2;
  min-width: 0;
}

.resource-form-grid--boardingbooking > .resource-field-food_type {
  grid-column: 1 / span 3;
}

.resource-form-grid--boardingbooking > .resource-field-deposit {
  grid-column: span 3;
}

.resource-form-grid--boardingbooking > .resource-field-notes {
  grid-column: 1 / -1;
}

.resource-form-grid--vaccinerecord > .resource-field-notes,
.resource-form-grid--groomingbooking > .resource-field-notes,
.resource-form-grid--expense > .resource-field-notes {
  grid-column: span 4;
}

body.vetcare-app .resource-form-grid--boardingbooking textarea.form-control,
body.vetcare-app .resource-form-grid--vaccinerecord textarea.form-control,
body.vetcare-app .resource-form-grid--groomingbooking textarea.form-control,
body.vetcare-app .resource-form-grid--expense textarea.form-control,
body.vetcare-app .modal-form-grid .quick-pet-field-notes textarea.form-control {
  min-height: 58px;
  height: 58px;
  resize: vertical;
}

.modal-form-grid > .quick-pet-field-notes {
  grid-column: auto;
}

.professional-modal .modal-title,
.professional-modal .modal-header .modal-title {
  color: #0f172a;
}

/* Product list values are scannable chips, with a distinct meaning per color. */
.product-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  max-width: 100%;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 900;
  white-space: nowrap;
}

.product-value-chip i {
  font-size: 0.9rem;
}

.product-name-chip {
  color: #2647a4;
  background: #edf3ff;
  border-color: #cbdcff;
}

.product-price-chip {
  color: #08745e;
  background: #e9fbf5;
  border-color: #b9ecd9;
  font-variant-numeric: tabular-nums;
}

.product-quantity-chip {
  color: #8a5700;
  background: #fff7df;
  border-color: #f3dea0;
  font-variant-numeric: tabular-nums;
}

.product-quantity-chip-low {
  color: #b42335;
  background: #fff0f2;
  border-color: #f2c3ca;
}

@media (max-width: 900px) {
  .immediate-entry-grid > .immediate-field,
  .pet-owner-grid > .pet-owner-field,
  .pet-profile-grid > .pet-profile-field,
  .resource-form-grid--boardingbooking > .resource-form-field,
  .resource-form-grid--vaccinerecord > .resource-form-field,
  .resource-form-grid--groomingbooking > .resource-form-field,
  .resource-form-grid--expense > .resource-form-field {
    grid-column: span 3;
  }

  .immediate-entry-grid > .immediate-field-notes,
  .immediate-entry-grid > .switch-line,
  .pet-profile-grid > .pet-profile-field-is_active,
  .resource-form-grid--boardingbooking > .resource-field-notes {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .immediate-entry-grid > .immediate-field,
  .pet-owner-grid > .pet-owner-field,
  .pet-profile-grid > .pet-profile-field,
  .resource-form-grid--boardingbooking > .resource-form-field,
  .resource-form-grid--vaccinerecord > .resource-form-field,
  .resource-form-grid--groomingbooking > .resource-form-field,
  .resource-form-grid--expense > .resource-form-field {
    grid-column: 1 / -1;
  }

  .product-value-chip {
    white-space: normal;
  }
}

/* ========================================================================== */
/* VetCare compact digital analytics — six focused charts                     */
/* ========================================================================== */

.btn-analytics {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 52%, #06b6d4 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
  font-weight: 900;
}

.btn-analytics:hover,
.btn-analytics:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .28);
}

.dashboard-weekly-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid #dbe8ee;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfdfe);
  box-shadow: 0 14px 34px rgba(15, 58, 86, .08);
}

.dashboard-weekly-card > header,
.dashboard-weekly-card > header > div {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.dashboard-weekly-card > header {
  justify-content: space-between;
  margin-bottom: .9rem;
}

.dashboard-weekly-card h3,
.dashboard-weekly-card p {
  margin: 0;
}

.dashboard-weekly-card h3 {
  color: #0b3d57;
  font-size: 1.05rem;
  font-weight: 900;
}

.dashboard-weekly-card p {
  margin-top: .2rem;
  color: #647f8e;
  font-size: .82rem;
  font-weight: 600;
}

.dashboard-weekly-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #075985, #0f9f9a);
  box-shadow: 0 8px 18px rgba(15, 159, 154, .2);
}

.dashboard-weekly-badge {
  padding: .38rem .7rem;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: .75rem;
  font-weight: 800;
}

.dashboard-weekly-chart-wrap {
  position: relative;
  height: 315px;
}

@media (max-width: 575.98px) {
  .dashboard-weekly-card > header {
    align-items: flex-start;
  }

  .dashboard-weekly-badge {
    display: none;
  }

  .dashboard-weekly-chart-wrap {
    height: 275px;
  }
}
.analytics-compact-page .content {
  background:
    radial-gradient(circle at 8% 4%, rgba(34, 199, 214, .10), transparent 26rem),
    radial-gradient(circle at 94% 10%, rgba(37, 99, 235, .08), transparent 28rem),
    #f4f8fb;
}

.analytics-compact {
  --ac-navy: #0f3a56;
  --ac-navy-dark: #082f49;
  --ac-blue: #2563eb;
  --ac-teal: #0f9f9a;
  --ac-cyan: #22c7d6;
  --ac-green: #16a34a;
  --ac-orange: #f59e0b;
  --ac-rose: #e11d48;
  --ac-violet: #7c3aed;
  --ac-red: #dc2626;
  --ac-text: #163348;
  --ac-muted: #6b8291;
  --ac-border: #dce9ef;
  --ac-bg: #f4f8fb;
  color: var(--ac-text);
  max-width: 1780px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.ac-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 180px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.1rem;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 199, 214, .42), transparent 24rem),
    linear-gradient(125deg, #082f49 0%, #0f4c68 56%, #0f9f9a 128%);
  box-shadow: 0 22px 55px rgba(8, 47, 73, .20);
}

.ac-hero::before,
.ac-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.ac-hero::before {
  width: 340px;
  height: 340px;
  left: -130px;
  top: -185px;
}

.ac-hero::after {
  width: 210px;
  height: 210px;
  left: 70px;
  bottom: -165px;
}

.ac-hero-copy,
.ac-hero-actions {
  position: relative;
  z-index: 1;
}

.ac-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .6rem;
  color: #9fe8ee;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.ac-hero h2 {
  margin: 0 0 .55rem;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
}

.ac-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1rem;
  line-height: 1.9;
}

.ac-period-caption {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.ac-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
  min-width: max-content;
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 43px;
  padding-inline: 1rem;
  border-radius: 12px;
  font-weight: 800;
}

.ac-btn-light {
  color: #0b3d57;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(8, 47, 73, .12);
}

.ac-btn-light:hover {
  color: #082f49;
  background: #fff;
  transform: translateY(-1px);
}

.ac-filter-panel {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--ac-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 34px rgba(15, 58, 86, .08);
}

.ac-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.ac-filter-top > div:first-child {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.ac-filter-top strong {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ac-navy-dark);
  font-size: 1rem;
}

.ac-filter-top strong i {
  color: var(--ac-teal);
}

.ac-filter-top span {
  color: var(--ac-muted);
  font-size: .86rem;
}

.ac-live-state {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 92px;
  justify-content: center;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-size: .78rem;
  font-weight: 800;
}

.ac-live-state i {
  font-size: .52rem;
}

.ac-live-state.is-loading {
  color: #075985;
  background: #e0f2fe;
}

.ac-live-state.is-loading i {
  font-size: .82rem;
  animation: ac-spin .8s linear infinite;
}

.ac-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .9rem;
}

.ac-range-btn {
  min-height: 38px;
  padding: .45rem .9rem;
  border: 1px solid #d9e7ed;
  border-radius: 10px;
  color: #476174;
  background: #f8fbfc;
  font-size: .85rem;
  font-weight: 800;
  transition: .18s ease;
}

.ac-range-btn:hover {
  border-color: #9fdce0;
  color: var(--ac-navy);
  background: #f0fbfb;
}

.ac-range-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--ac-navy), var(--ac-teal));
  box-shadow: 0 8px 18px rgba(15, 159, 154, .20);
}

.ac-custom-range {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) auto;
  align-items: end;
  gap: .75rem;
}

.ac-date-field label {
  display: block;
  margin-bottom: .35rem;
  color: #466174;
  font-size: .79rem;
  font-weight: 800;
}

.ac-date-field .form-control {
  min-height: 44px;
  border: 1px solid #d7e5eb;
  border-radius: 11px;
  color: var(--ac-text);
  background: #fbfdfe;
  font-size: .93rem;
  font-weight: 700;
}

.ac-date-field .form-control:focus {
  border-color: var(--ac-teal);
  box-shadow: 0 0 0 .2rem rgba(15, 159, 154, .12);
}

.ac-date-arrow {
  align-self: center;
  margin-top: 1.25rem;
  color: #8aa0ad;
}

.ac-apply-btn {
  min-height: 44px;
  padding-inline: 1.2rem;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--ac-navy), var(--ac-teal));
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(15, 159, 154, .18);
}

.ac-apply-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

.ac-alert {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 14px;
  color: #991b1b;
  background: #fff1f2;
  font-weight: 700;
}

.ac-progress {
  position: fixed;
  z-index: 1100;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ac-progress span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ac-cyan), var(--ac-blue), var(--ac-teal));
  transform: translateX(320%);
}

.ac-progress.is-active {
  opacity: 1;
}

.ac-progress.is-active span {
  animation: ac-progress 1.05s ease-in-out infinite;
}

.ac-loading {
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .55rem;
  border: 1px solid var(--ac-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 58, 86, .08);
}

.ac-loading[hidden] {
  display: none !important;
}

.ac-loading strong {
  color: var(--ac-navy-dark);
  font-size: 1rem;
}

.ac-loading small {
  color: var(--ac-muted);
}

.ac-loader {
  display: flex;
  gap: .38rem;
  margin-bottom: .25rem;
}

.ac-loader span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ac-teal);
  animation: ac-bounce 1s ease-in-out infinite;
}

.ac-loader span:nth-child(2) { animation-delay: .12s; background: var(--ac-blue); }
.ac-loader span:nth-child(3) { animation-delay: .24s; background: var(--ac-orange); }

.ac-content[hidden] {
  display: none !important;
}

.analytics-compact.is-updating .ac-content {
  opacity: .68;
  pointer-events: none;
  transition: opacity .18s ease;
}

.ac-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: .2rem 0 1rem;
  padding: 0 .2rem;
}

.ac-section-heading span {
  display: block;
  margin-bottom: .18rem;
  color: var(--ac-teal);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.ac-section-heading h2 {
  margin: 0;
  color: var(--ac-navy-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.ac-section-heading p {
  margin: .3rem 0 0;
  color: var(--ac-muted);
  font-size: .87rem;
}

.ac-section-heading-compact {
  margin-top: 1.65rem;
}

.ac-updated {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: .5rem;
  padding: .65rem .8rem;
  border: 1px solid var(--ac-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: var(--ac-muted);
}

.ac-updated i {
  grid-row: 1 / 3;
  color: var(--ac-teal);
  font-size: 1.1rem;
}

.ac-updated span {
  margin: 0;
  color: var(--ac-muted);
  font-size: .68rem;
}

.ac-updated strong {
  color: var(--ac-text);
  font-size: .78rem;
}

.ac-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.ac-chart-card,
.ac-table-card {
  min-width: 0;
  border: 1px solid var(--ac-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(15, 58, 86, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ac-chart-card:hover,
.ac-table-card:hover {
  transform: translateY(-2px);
  border-color: #c5dde6;
  box-shadow: 0 17px 42px rgba(15, 58, 86, .11);
}

.ac-chart-card {
  padding: 1rem 1.05rem 1.1rem;
}

.ac-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  min-height: 58px;
  margin-bottom: .65rem;
}

.ac-card-header-stack {
  flex-wrap: wrap;
}

.ac-card-title {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
}

.ac-card-title h3,
.ac-table-card h3 {
  margin: 0;
  color: var(--ac-navy-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.ac-card-title p,
.ac-table-card p {
  margin: .18rem 0 0;
  color: var(--ac-muted);
  font-size: .76rem;
  line-height: 1.55;
}

.ac-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 1.05rem;
}

.ac-icon-blue { color: #1d4ed8; background: #eaf1ff; }
.ac-icon-teal { color: #0f766e; background: #e6f8f6; }
.ac-icon-green { color: #15803d; background: #eaf8ee; }
.ac-icon-violet { color: #6d28d9; background: #f1eafd; }
.ac-icon-rose { color: #be123c; background: #fff0f3; }
.ac-icon-orange { color: #c2410c; background: #fff4e5; }
.ac-icon-red { color: #b91c1c; background: #fff0f0; }

.ac-badge,
.ac-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: .32rem .6rem;
  border-radius: 999px;
  color: #426174;
  background: #f1f6f8;
  font-size: .68rem;
  font-weight: 800;
}

.ac-chart-wrap {
  position: relative;
  width: 100%;
  height: 330px;
  min-height: 330px;
}

.ac-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.ac-doughnut-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  gap: .35rem;
}

.ac-chart-doughnut {
  height: 330px;
  min-height: 330px;
}

.ac-doughnut-total {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: .9rem;
  border: 1px solid #e2edf1;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(180deg, #fbfefe, #f4f9fb);
}

.ac-doughnut-total span {
  color: var(--ac-muted);
  font-size: .76rem;
  font-weight: 700;
}

.ac-doughnut-total strong {
  margin: .35rem 0;
  color: var(--ac-navy-dark);
  font-size: 1.18rem;
  font-weight: 900;
  direction: ltr;
}

.ac-doughnut-total small {
  color: #8ca0ac;
  font-size: .68rem;
}

.ac-segmented {
  display: inline-flex;
  padding: .22rem;
  border: 1px solid #dbe8ed;
  border-radius: 10px;
  background: #f6fafb;
}

.ac-segmented button {
  min-height: 30px;
  padding: .25rem .62rem;
  border: 0;
  border-radius: 7px;
  color: #6a8190;
  background: transparent;
  font-size: .7rem;
  font-weight: 800;
}

.ac-segmented button.active {
  color: #fff;
  background: var(--ac-navy);
  box-shadow: 0 4px 10px rgba(15, 58, 86, .18);
}

.ac-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.ac-kpi-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  min-height: 116px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 58, 86, .07);
}

.ac-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--kpi-color, var(--ac-blue));
}

.ac-kpi-blue { --kpi-color: var(--ac-blue); --kpi-soft: #eef4ff; }
.ac-kpi-teal { --kpi-color: var(--ac-teal); --kpi-soft: #eaf9f7; }
.ac-kpi-green { --kpi-color: var(--ac-green); --kpi-soft: #edf9f0; }
.ac-kpi-violet { --kpi-color: var(--ac-violet); --kpi-soft: #f3efff; }
.ac-kpi-orange { --kpi-color: var(--ac-orange); --kpi-soft: #fff7e8; }
.ac-kpi-cyan { --kpi-color: var(--ac-cyan); --kpi-soft: #eafafd; }

.ac-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--kpi-color);
  background: var(--kpi-soft);
  font-size: 1.15rem;
}

.ac-kpi-copy {
  min-width: 0;
}

.ac-kpi-copy span {
  display: block;
  color: #5e7686;
  font-size: .76rem;
  font-weight: 800;
}

.ac-kpi-copy strong {
  display: block;
  margin: .2rem 0 .12rem;
  overflow: hidden;
  color: var(--ac-navy-dark);
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  font-weight: 900;
  direction: ltr;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-kpi-card.is-negative .ac-kpi-copy strong {
  color: var(--ac-red);
}

.ac-kpi-copy small {
  color: #8a9eaa;
  font-size: .67rem;
}

.ac-kpi-change {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .3rem .46rem;
  border-radius: 8px;
  font-size: .67rem;
  font-weight: 900;
  direction: ltr;
}

.ac-kpi-change.positive { color: #15803d; background: #eaf8ee; }
.ac-kpi-change.negative { color: #b91c1c; background: #fff0f0; }
.ac-kpi-change.neutral { color: #64748b; background: #f1f5f9; }

.ac-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.ac-table-card {
  overflow: hidden;
}

.ac-table-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1rem 1.05rem .8rem;
}

.ac-table-card > header > div {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.ac-count {
  min-width: 36px;
  color: var(--ac-navy);
  background: #edf5f8;
  font-size: .76rem;
}

.ac-table {
  margin: 0;
  color: var(--ac-text);
  font-size: .78rem;
}

.ac-table thead th {
  padding: .7rem .85rem;
  border-top: 1px solid #e6eef2;
  border-bottom: 1px solid #e6eef2;
  color: #5d7483;
  background: #f6fafb;
  font-weight: 800;
  white-space: nowrap;
}

.ac-table tbody td {
  padding: .72rem .85rem;
  border-color: #edf2f4;
  vertical-align: middle;
}

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

.ac-table tbody tr:hover td {
  background: #fbfefe;
}

.ac-stock-badge {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: .28rem .45rem;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 900;
}

.ac-stock-badge.danger { color: #b91c1c; background: #fff0f0; }
.ac-stock-badge.warning { color: #a16207; background: #fff8df; }

.ac-empty-row {
  padding: 1.4rem !important;
  color: #738a98;
  text-align: center;
}

.ac-empty-row i {
  margin-left: .35rem;
  color: var(--ac-green);
}

.ac-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.2rem;
  padding: .8rem 1rem;
  border: 1px dashed #cbdde5;
  border-radius: 13px;
  color: #6d8290;
  background: rgba(255, 255, 255, .58);
  font-size: .76rem;
}

.ac-footer-note i {
  color: var(--ac-teal);
}

@keyframes ac-spin { to { transform: rotate(360deg); } }
@keyframes ac-progress { 0% { transform: translateX(320%); } 100% { transform: translateX(-320%); } }
@keyframes ac-bounce { 0%, 80%, 100% { transform: scale(.72); opacity: .55; } 40% { transform: scale(1); opacity: 1; } }

@media (max-width: 1200px) {
  .ac-doughnut-layout {
    grid-template-columns: minmax(0, 1fr) 135px;
  }
  .ac-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .ac-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.6rem;
  }
  .ac-hero-actions {
    justify-content: flex-start;
  }
  .ac-custom-range {
    grid-template-columns: 1fr 1fr auto;
  }
  .ac-date-arrow {
    display: none;
  }
  .ac-charts-grid,
  .ac-table-grid {
    grid-template-columns: 1fr;
  }
  .ac-chart-wrap,
  .ac-chart-doughnut {
    height: 350px;
    min-height: 350px;
  }
}

@media (max-width: 767.98px) {
  .analytics-compact-page .content {
    padding-inline: .75rem;
  }
  .ac-hero {
    min-height: auto;
    border-radius: 20px;
    padding: 1.25rem;
  }
  .ac-hero p {
    font-size: .88rem;
  }
  .ac-hero-actions {
    width: 100%;
  }
  .ac-hero-actions .ac-btn {
    flex: 1 1 auto;
  }
  .ac-filter-panel {
    padding: 1rem;
    border-radius: 17px;
  }
  .ac-filter-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .ac-quick-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ac-range-btn {
    padding-inline: .45rem;
  }
  .ac-custom-range {
    grid-template-columns: 1fr;
  }
  .ac-apply-btn {
    width: 100%;
  }
  .ac-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .ac-updated {
    align-self: stretch;
  }
  .ac-chart-card {
    border-radius: 17px;
    padding: .85rem;
  }
  .ac-card-header {
    min-height: auto;
  }
  .ac-badge {
    display: none;
  }
  .ac-doughnut-layout {
    grid-template-columns: 1fr;
  }
  .ac-doughnut-total {
    min-height: 105px;
  }
  .ac-chart-wrap,
  .ac-chart-doughnut {
    height: 315px;
    min-height: 315px;
  }
  .ac-kpi-grid {
    grid-template-columns: 1fr;
  }
  .ac-kpi-card {
    min-height: 105px;
  }
}

@media (max-width: 480px) {
  .ac-quick-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ac-card-title h3,
  .ac-table-card h3 {
    font-size: .93rem;
  }
  .ac-segmented {
    width: 100%;
  }
  .ac-segmented button {
    flex: 1;
  }
  .ac-chart-wrap,
  .ac-chart-doughnut {
    height: 290px;
    min-height: 290px;
  }
  .ac-kpi-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .ac-kpi-change {
    grid-column: 2;
    width: fit-content;
  }
}

@media print {
  .sidebar,
  .topbar,
  .ac-hero-actions,
  .ac-filter-panel,
  .ac-progress,
  .ac-loading,
  .ac-footer-note {
    display: none !important;
  }
  .main,
  .content {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .ac-hero {
    min-height: auto;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: none;
    print-color-adjust: exact;
  }
  .ac-charts-grid {
    gap: .55rem;
  }
  .ac-chart-card,
  .ac-table-card,
  .ac-kpi-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .ac-chart-card {
    padding: .65rem;
  }
  .ac-chart-wrap,
  .ac-chart-doughnut {
    height: 260px;
    min-height: 260px;
  }
}
