/* /iOpos.Backoffice.Web/wwwroot/css/site.css */
:root {
  --brand-cyan: #5fc6bd;
  --brand-cyan-deep: #48b4ab;
  --brand-navy: #273246;
  --brand-navy-soft: #2f3b52;
  --brand-magenta: #c25496;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #eef3f8;
  font-size: 14px;
  line-height: 1.35;
}

.app-shell {
  background: #eef3f8;
}

.app-sidebar {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-soft) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  width: 15rem;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: none;
}

.app-frame {
  min-height: 100vh;
}

/* Allow content column to shrink inside grid so table overflow stays local. */
.app-frame > :not(.app-sidebar) {
  min-width: 0;
  background: #eef3f8;
}

.app-frame main {
  min-width: 0;
  min-height: calc(100vh - 4rem);
  background: #eef3f8;
}

@media (min-width: 1024px) {
  .app-frame {
    display: grid;
    grid-template-columns: 15rem 1fr;
    transition: grid-template-columns 0.2s ease;
    align-items: stretch;
  }

  .app-sidebar {
    transition: width 0.2s ease;
    height: auto;
    min-height: 100vh;
    align-self: stretch;
  }

  .sidebar-collapsed .app-frame {
    grid-template-columns: 5.25rem 1fr;
  }

  .sidebar-collapsed .app-sidebar {
    width: 5.25rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .sidebar-collapsed #appSidebar > .mb-6 {
    justify-content: center;
  }

  .sidebar-collapsed #appSidebar > .mb-6 > a {
    width: 100%;
    justify-content: center;
  }

  .sidebar-collapsed .brand-logo,
  .sidebar-collapsed .sidebar-text,
  .sidebar-collapsed .nav-link-summary > svg:last-child {
    display: none;
  }

  .sidebar-collapsed .brand-mark {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar-collapsed .nav-link,
  .sidebar-collapsed .nav-link-summary {
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0.25rem;
    border-radius: 0.75rem;
    position: relative;
    overflow: visible;
  }

  .sidebar-collapsed .nav-link-summary {
    z-index: 65;
  }

  .sidebar-collapsed .nav-link > span,
  .sidebar-collapsed .nav-link-summary > span {
    width: 100%;
    justify-content: center;
    gap: 0;
  }

  .sidebar-collapsed .nav-link .sidebar-text,
  .sidebar-collapsed .nav-link-summary .sidebar-text {
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    transform: translate(-8px, -50%);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 2.75rem;
    padding: 0 0.85rem;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid #d7e1ea;
    color: #2f465f;
    box-shadow: 0 12px 24px rgba(39, 50, 70, 0.14);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 120;
  }

  .sidebar-collapsed .nav-link:hover .sidebar-text,
  .sidebar-collapsed .nav-link:focus-visible .sidebar-text,
  .sidebar-collapsed .nav-link-summary:hover .sidebar-text,
  .sidebar-collapsed .nav-link-summary:focus-visible .sidebar-text {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .sidebar-collapsed .nav-link svg,
  .sidebar-collapsed .nav-link-summary svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2.1;
  }

  .sidebar-collapsed #appSidebar nav {
    margin-top: 0.25rem;
    gap: 0.35rem;
  }

  .sidebar-collapsed #appSidebar .group {
    display: block;
    position: relative;
    width: 100%;
  }

  .sidebar-collapsed #appSidebar details > div {
    display: none;
  }

  .sidebar-collapsed #appSidebar details:hover > div,
  .sidebar-collapsed #appSidebar details:focus-within > div {
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 0;
    width: max-content;
    display: block;
    min-width: 14rem;
    max-width: 16rem;
    padding: 0.5rem;
    border-radius: 0.9rem;
    background: #ffffff;
    border: 1px solid #d7e1ea;
    box-shadow: 0 16px 32px rgba(39, 50, 70, 0.16);
    z-index: 140;
  }

  .sidebar-collapsed #appSidebar details:hover > div::before,
  .sidebar-collapsed #appSidebar details:focus-within > div::before {
    content: "";
    position: absolute;
    left: -0.35rem;
    top: 1rem;
    width: 0.7rem;
    height: 0.7rem;
    background: #ffffff;
    border-left: 1px solid #d7e1ea;
    border-top: 1px solid #d7e1ea;
    transform: rotate(-45deg);
  }

  .sidebar-collapsed #appSidebar details:hover > div a,
  .sidebar-collapsed #appSidebar details:focus-within > div a {
    display: flex;
    width: 100%;
    min-height: 2.5rem;
  }

  .sidebar-collapsed #appSidebar details:hover > div .nav-link,
  .sidebar-collapsed #appSidebar details:focus-within > div .nav-link {
    position: static;
    overflow: visible;
  }

  .sidebar-collapsed #appSidebar details:hover > div .sidebar-text,
  .sidebar-collapsed #appSidebar details:focus-within > div .sidebar-text {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: auto;
    padding: 0;
    color: #2f465f;
  }
}

.app-sidebar .nav-link,
.app-sidebar .nav-link-summary {
  font-size: 0.84rem;
  border-radius: 0.6rem;
}

.app-sidebar .nav-link {
  padding-top: 0.48rem;
  padding-bottom: 0.48rem;
}

.app-sidebar .sidebar-text {
  line-height: 1.2;
}

.sidebar-section-title {
  width: 100%;
  padding: 0.75rem 0.75rem 0.2rem;
  color: rgba(215, 228, 240, 0.48);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
}

.sidebar-section-title-spaced {
  margin-top: 0.25rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 0.6rem;
}

.sidebar-build-card {
  margin-top: 0.6rem;
  margin-bottom: 0.45rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e4f0;
  backdrop-filter: blur(6px);
  position: sticky;
  bottom: 0.45rem;
  z-index: 5;
}

.sidebar-build-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(215, 228, 240, 0.62);
  margin-bottom: 0.25rem;
}

.sidebar-build-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.sidebar-build-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.69rem;
  line-height: 1.25;
  margin-top: 0.2rem;
}

.sidebar-build-row span {
  color: rgba(215, 228, 240, 0.7);
}

.sidebar-build-row strong {
  color: #ffffff;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.tech-field-label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-field-value {
  margin-top: 0.22rem;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 800;
}

.tech-field-meta {
  color: #475569;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tech-inline-value {
  color: #0f172a;
  font-weight: 700;
}

.tech-kv-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.tech-kv-label {
  color: #64748b;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tech-kv-value {
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}


.app-topbar {
  background: #ffffff;
  border-bottom-color: #e1e8f0;
  backdrop-filter: saturate(1.05) blur(4px);
}

.app-topbar h1 {
  font-size: 0.98rem;
  line-height: 1.15;
}

.app-topbar p {
  font-size: 0.76rem;
  line-height: 1.1;
}

.app-topbar-icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: #6b7f97;
  background: transparent;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-topbar-icon-btn:hover {
  color: #334a62;
  background: #f4f7fb;
  border-color: #dde6ef;
}

.topbar-online-menu {
  width: 15.25rem;
  max-height: 17.5rem;
  z-index: 90;
}

.topbar-online-header {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #e6edf4;
  font-size: 0.82rem;
  font-weight: 700;
  color: #263c53;
  background: #f8fbfe;
}

.topbar-online-empty {
  padding: 0.85rem;
  font-size: 0.8rem;
  color: #7088a1;
}

.topbar-online-list {
  max-height: 14.25rem;
  overflow: auto;
}

.topbar-online-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #edf2f7;
}

.topbar-online-item:last-child {
  border-bottom: 0;
}

.topbar-online-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid #d8e3ed;
}

.topbar-online-copy {
  min-width: 0;
}

.topbar-online-copy p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #24384e;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
}

.topbar-online-name {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-online-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 9999px;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 0.2rem rgba(95, 198, 189, 0.22);
  flex: 0 0 auto;
}

.topbar-online-copy span {
  display: block;
  color: #6d8298;
  font-size: 0.75rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-online-copy small {
  display: inline-flex;
  align-items: center;
  margin-top: 0.16rem;
  color: #7f91a4;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.page-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.dashboard-metric-title {
  margin: 0;
  color: #2a4159;
  font-size: 0.96rem;
  font-weight: 600;
}

.dashboard-metric-value {
  margin: 0 0 0.25rem;
  color: #1f344b;
  font-size: 1.55rem;
  line-height: 1.05;
  font-weight: 700;
}

.dashboard-home {
  display: grid;
  gap: 1rem;
}

.dashboard-home > .dashboard-hero.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #22344b 0%, #36536f 42%, #4eb5ac 100%) !important;
  border-color: transparent;
  color: #ffffff;
  padding: 1.05rem 1.1rem !important;
  box-shadow: 0 18px 36px rgba(39, 50, 70, 0.14);
}

.dashboard-hero-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(8px);
  pointer-events: none;
  opacity: 0.9;
}

.dashboard-hero-glow-left {
  width: 10rem;
  height: 10rem;
  left: -3rem;
  top: -2.5rem;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero-glow-right {
  width: 12rem;
  height: 12rem;
  right: -4rem;
  bottom: -4rem;
  background: rgba(95, 198, 189, 0.14);
}

.dashboard-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  align-items: center;
  min-height: 0;
}

@media (min-width: 1024px) {
  .dashboard-hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 280px);
    gap: 1rem;
  }
}

.dashboard-hero-copy h1 {
  margin: 0.35rem 0 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.68rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e8fbf7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-hero-copy p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.92);
}

.dashboard-hero-text {
  max-width: 40rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.dashboard-primary-btn,
.dashboard-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.72rem;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-primary-btn {
  background: #ffffff;
  color: #274055;
  border-color: #ffffff;
}

.dashboard-primary-btn:hover {
  background: #eff8f8;
  color: #1f344b;
}

.dashboard-secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.dashboard-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-hero-avatar-panel {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-avatar-ring {
  width: 7.25rem;
  height: 7.25rem;
  padding: 0.35rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.18);
}

.dashboard-avatar {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.dashboard-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
}

.dashboard-hero-handle {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 600;
}

.dashboard-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

@media (min-width: 1024px) {
  .dashboard-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dashboard-link-card .card-body {
  display: grid;
  gap: 0.55rem;
  min-height: 100%;
}

.dashboard-link-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-link-icon-cyan {
  color: #2c8f88;
  background: #e1f5f3;
}

.dashboard-link-icon-navy {
  color: #2f465f;
  background: #e8eff6;
}

.dashboard-link-icon-magenta {
  color: #ab4f84;
  background: #f5e5f0;
}

.dashboard-link-card h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  color: #132a43;
}

.dashboard-link-card p {
  margin: 0;
  color: #5f738d;
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-link-card a {
  margin-top: auto;
  justify-self: start;
  font-size: 0.8rem;
  font-weight: 800;
  color: #4eb5ac;
}

.dashboard-note-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.dashboard-note-card .card-body {
  padding: 0.85rem 0.95rem;
}

.dashboard-note-card h2 {
  margin: 0;
  font-size: 0.98rem;
  color: #132a43;
}

.dashboard-note-card p {
  margin: 0.35rem 0 0;
  color: #5f738d;
  font-size: 0.84rem;
}


.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.roles-split-grid {
  align-items: start;
}

.activity-split-grid {
  align-items: start;
}

.activity-events-scroll {
  max-height: 29rem;
  overflow: auto;
  padding-right: 0.2rem;
  display: grid;
  gap: 0.6rem;
}

.activity-events-scroll::-webkit-scrollbar {
  width: 0.45rem;
}

.activity-events-scroll::-webkit-scrollbar-thumb {
  background: #c5d3e1;
  border-radius: 9999px;
}

.activity-events-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.activity-event-row {
  border: 1px solid #d9e4ef;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 0.68rem 0.78rem;
}

.activity-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.activity-event-main {
  min-width: 0;
}

.activity-event-action {
  margin: 0;
  color: #223a53;
  font-size: 0.89rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-event-entity {
  margin: 0.05rem 0 0;
  color: #6e8297;
  font-size: 0.76rem;
  font-weight: 600;
}

.activity-event-time {
  color: #5d7690;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.activity-event-details {
  margin: 0.38rem 0 0;
  color: #334d67;
  font-size: 0.82rem;
  line-height: 1.35;
}

.activity-event-ip {
  margin: 0.28rem 0 0;
  color: #7a8fa5;
  font-size: 0.72rem;
  font-weight: 600;
}

.activity-events-note {
  margin: 0.65rem 0 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #6b8097;
}

@media (min-width: 1280px) {
  .split-grid {
    grid-template-columns: minmax(360px, 420px) 1fr;
  }
}

.card {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 0.7rem;
  box-shadow: 0 8px 20px rgba(39, 50, 70, 0.055);
  overflow: hidden;
}

.card-body {
  padding: 0.95rem;
}

.page-header > div {
  padding: 0.85rem !important;
  border-radius: 0.7rem;
}

.page-header h1 {
  font-size: 1.08rem !important;
  margin-bottom: 0.35rem !important;
}

.page-header p {
  font-size: 0.82rem;
}

.card-body > :first-child {
  margin-top: 0;
}

.card-body > :last-child {
  margin-bottom: 0;
}

.card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.card select,
.card textarea,
.auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.auth-card select,
.auth-card textarea,
.page-header input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.page-header select,
.page-header textarea {
  background-color: #ffffff !important;
}

.card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.card select,
.card textarea,
.page-header input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.page-header select,
.page-header textarea {
  font-size: 0.84rem !important;
  line-height: 1.25;
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  background-color: #ffffff;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  background-color: #ffffff;
}

.section-icon {
  color: #4eb5ac;
}

.role-permission-block {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(39, 50, 70, 0.04);
}

.role-permission-block summary {
  background: #f7fafc;
  border-color: #d6e1eb !important;
  min-height: 2rem;
}

.role-permission-block summary:hover {
  background: #f3f8fc;
}

.role-permission-block details[open] > summary {
  border-color: #c5d3e0 !important;
}

.role-permission-block label {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.role-permission-block label:hover {
  border-color: #9ecfca;
  box-shadow: 0 6px 16px rgba(39, 50, 70, 0.06);
  transform: translateY(-1px);
}

.role-permission-block .text-gray-500 {
  color: #72839a !important;
}

.role-permission-block .bg-gray-50 {
  background-color: #f6fafc !important;
}

.role-permission-block .bg-white {
  background-color: #ffffff !important;
}

.role-permission-block .border-gray-200 {
  border-color: #d7e1ea !important;
}

.role-permission-block .border-gray-300 {
  border-color: #cfd8e3 !important;
}

.breadcrumb-nav {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.breadcrumb-list {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.96rem;
}

.breadcrumb-link,
.breadcrumb-text {
  color: #677c95;
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: #3f5a77;
}

.breadcrumb-separator {
  color: #9cadbf;
}

.breadcrumb-current {
  color: #1f354d;
  font-weight: 700;
}

.bg-indigo-600 {
  background-color: var(--brand-cyan) !important;
}

.border-indigo-600 {
  border-color: var(--brand-cyan-deep) !important;
}

.text-indigo-600 {
  color: #3a9f97 !important;
}

.hover\:bg-indigo-700:hover,
.hover\:bg-indigo-800:hover,
.active\:bg-indigo-800:active {
  background-color: #3f9f97 !important;
}

.hover\:border-indigo-800:hover,
.active\:border-indigo-800:active {
  border-color: #3f9f97 !important;
}

.focus\:ring-indigo-300:focus,
.focus\:ring-indigo-600:focus {
  --tw-ring-color: rgba(95, 198, 189, 0.35) !important;
}

.focus\:border-indigo-600:focus {
  border-color: var(--brand-cyan-deep) !important;
}

.theme-dark.app-shell {
  background: #141b27;
}

.theme-dark .app-sidebar {
  background: linear-gradient(180deg, #1f2937 0%, #253347 100%);
}

.theme-dark .app-sidebar .nav-link,
.theme-dark .app-sidebar .nav-link-summary {
  color: #bfd0e3;
}

.theme-dark .app-sidebar .nav-link:hover,
.theme-dark .app-sidebar .nav-link-summary:hover {
  background: rgba(95, 198, 189, 0.12);
  color: #e8fbff;
}

.theme-dark .app-sidebar .bg-white\/10 {
  background: rgba(95, 198, 189, 0.2) !important;
  border-color: rgba(95, 198, 189, 0.45) !important;
  color: #eaffff !important;
}

.theme-dark .app-sidebar .text-slate-500,
.theme-dark .app-sidebar .text-slate-300 {
  color: #91a6bf !important;
}

.theme-dark .app-topbar {
  background: linear-gradient(90deg, #58bab1 0%, #4aa69f 100%);
}

.theme-dark .page-toolbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.35rem;
}

.theme-dark .breadcrumb-nav {
  background: rgba(30, 43, 61, 0.9);
  border-color: #30445f;
}

.theme-dark .breadcrumb-link,
.theme-dark .breadcrumb-text,
.theme-dark .breadcrumb-separator {
  color: #8ea3bd;
}

.theme-dark .breadcrumb-current {
  color: #d7e6f7;
}

.theme-dark .card,
.theme-dark .auth-card,
.theme-dark .page-header > div,
.theme-dark form.border,
.theme-dark .metric-card {
  background: #273549;
  border-color: #374b64;
  background: linear-gradient(135deg, #5fc6bd 0%, #67d4ca 100%);
}

.metric-icon-indigo {
  background: linear-gradient(135deg, #5f83cc 0%, #6f95df 100%);
}

.metric-icon-magenta {
  background: linear-gradient(135deg, #c25496 0%, #d16bae 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 0.5rem;
  padding: 0.36rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card table th,
.card table td {
  padding: 0.5rem 0.55rem !important;
}

.card table th {
  font-size: 0.72rem !important;
}

.card table td {
  font-size: 0.77rem !important;
}

.card .inline-flex.rounded-full {
  padding: 0.18rem 0.52rem !important;
  font-size: 0.7rem !important;
}

.card .w-10.h-10 {
  width: 2rem;
  height: 2rem;
}

.card .w-8.h-8 {
  width: 1.9rem;
  height: 1.9rem;
}

.auth-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.auth-heading {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.auth-subheading {
  color: #475569;
  font-size: 0.95rem;
}

.alert-success {
  margin-bottom: 1rem;
  border: 1px solid #86efac;
  border-radius: 0.5rem;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 0.875rem;
}

.alert-error {
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 0.875rem;
}

.alert-warning {
  margin-bottom: 1rem;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 0.875rem;
}

.alert-info {
  margin-bottom: 1rem;
  border: 1px solid #bae6fd;
  border-radius: 0.5rem;
  background: #f0f9ff;
  color: #0c4a6e;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 0.875rem;
}

.feedback-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feedback-alert-content {
  flex: 1 1 auto;
}

.feedback-alert-close {
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
  font-size: 1.125rem;
  opacity: 0.7;
  padding: 0;
}

.feedback-alert-close:hover {
  opacity: 1;
}

.feedback-alert.is-dismissing {
  opacity: 0;
  transform: translateY(-4px);
}

.validation-errors,
.field-error,
.field-validation-error {
  color: #dc2626;
  font-size: 0.8125rem;
}

.validation-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.module-header-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34a59d;
  background: #d9efec;
  flex: 0 0 auto;
}

.module-header h1 {
  margin: 0;
  color: #122b45;
  font-size: 1.42rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.module-header p {
  margin: 0.22rem 0 0;
  color: #6c8199;
  font-size: 0.84rem;
}

.module-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  color: #152f4a;
  font-size: 1rem;
  font-weight: 700;
}

.module-card-title svg {
  color: #42afa5;
}

.users-page {
  display: grid;
  gap: 1.15rem;
}

.users-inline-alert {
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  border: 1px solid;
}

.users-inline-alert p {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.users-inline-alert ul {
  margin: 0;
  padding-left: 1rem;
}

.users-inline-alert-error {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.users-inline-alert-warning {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.users-split-grid {
  margin-top: 0.35rem;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 1280px) {
  .users-split-grid {
    grid-template-columns: minmax(320px, 380px) 1fr;
  }
}

.users-card {
  border-radius: 0.85rem;
}

.users-list-card {
  overflow: visible;
}

.users-card .card-body {
  padding: 1rem;
}

.users-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.42rem;
}

.users-card-title-between {
  justify-content: space-between;
}

.users-card-title h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
  color: #132a43;
}

.users-card-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3ea79e;
  background: #dff3f0;
}

.users-card-subtitle {
  margin: 0 0 0.85rem;
  color: #5f738d;
  font-size: 0.84rem;
}

.users-pill-count {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #e8f2f3;
  color: #2f5a6e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
}

.users-list-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin: 0.25rem 0 0.75rem;
}

@media (min-width: 1024px) {
  .users-list-tools {
    grid-template-columns: minmax(260px, 1fr) 180px 160px auto;
  }
}

.users-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #cfdae6;
  border-radius: 0.58rem;
  background: #ffffff;
  padding: 0 0.6rem;
  min-height: 1.95rem;
}

.users-search-wrap svg {
  color: #8ca1b8;
  flex: 0 0 auto;
}

.users-search-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  color: #31485f;
  font-size: 0.79rem;
  padding: 0;
}

.users-list-tools > select {
  border: 1px solid #cfdae6;
  border-radius: 0.58rem;
  background: #ffffff;
  color: #31485f;
  font-size: 0.79rem;
  min-height: 1.95rem;
  padding: 0 0.6rem;
}

.users-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 1023px) {
  .users-filter-actions {
    justify-content: flex-start;
  }
}

.users-filter-actions .btn {
  min-height: 1.95rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 0.58rem;
}

.users-form-stack {
  display: grid;
  gap: 0.62rem;
}

.users-field {
  display: grid;
  gap: 0.28rem;
}

.users-field label {
  color: #22344b;
  font-size: 0.81rem;
  font-weight: 700;
}

.users-field input:not([type="file"]),
.users-field select {
  width: 100%;
  border: 1px solid #cfdae6;
  border-radius: 0.55rem;
  padding: 0.52rem 0.7rem;
  color: #20364f;
  background: #fdfefe;
}

.users-field input::placeholder,
.users-search-wrap input::placeholder {
  color: #93a3b5;
  opacity: 1;
}

.users-field input:not([type="file"]):focus,
.users-field select:focus {
  outline: none;
  border-color: #6abeb7;
  box-shadow: 0 0 0 3px rgba(95, 198, 189, 0.2);
}

.users-field-file input[type="file"] {
  width: 100%;
  border: 1px dashed #bfd2e0;
  border-radius: 0.55rem;
  padding: 0.45rem 0.6rem;
  color: #2f465f;
  background: #fbfdff;
}

.users-field-file p {
  margin: 0;
  color: #7489a0;
  font-size: 0.72rem;
}

.users-primary-btn {
  width: 100%;
  margin-top: 0.25rem;
  min-height: 2rem;
}

.users-empty {
  margin: 0.65rem 0 0;
  color: #7388a1;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.users-table-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

.users-table th,
.users-table td {
  border-bottom: 1px solid #e2eaf1;
  padding: 0.68rem 0.6rem;
  text-align: left;
  vertical-align: middle;
}

.users-table tbody tr:last-child td {
  border-bottom: 0;
}

.users-table th {
  color: #5f738d;
  font-size: 0.72rem;
  font-weight: 700;
}

.users-table td {
  color: #2b4058;
  font-size: 0.78rem;
}

.users-actions-col {
  text-align: right !important;
  width: 1%;
  white-space: nowrap;
}

.users-user-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.users-avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid #d7e3ee;
  flex: 0 0 auto;
}

.users-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #deecef;
  color: #32707b;
  font-size: 0.74rem;
  font-weight: 700;
}

.users-user-copy {
  min-width: 0;
}

.users-user-copy p {
  margin: 0;
  color: #1f344b;
  font-weight: 600;
  line-height: 1.2;
}

.users-user-copy span {
  color: #6f849c;
  font-size: 0.7rem;
}

.users-email,
.users-role {
  color: #465d77;
}

.users-status {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.users-status-active {
  background: #dff5ef;
  color: #21806c;
}

.users-status-blocked {
  background: #fde7e7;
  color: #b91c1c;
}

.users-row-menu {
  position: relative;
  display: inline-block;
}

.users-row-menu[open] {
  z-index: 8;
}

.users-row-menu-trigger {
  list-style: none;
  cursor: pointer;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  color: #7d8fa3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.users-row-menu-trigger::-webkit-details-marker {
  display: none;
}

.users-row-menu-trigger:hover,
.users-row-menu[open] > .users-row-menu-trigger {
  color: #2f465f;
  background: #f3f7fb;
  border-color: #d7e1ea;
}

.users-row-menu-panel {
  position: absolute;
  right: 0;
  top: auto;
  bottom: calc(100% + 0.3rem);
  min-width: 10.5rem;
  border-radius: 0.6rem;
  border: 1px solid #d7e1ea;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(39, 50, 70, 0.14);
  padding: 0.3rem;
  z-index: 80;
}

.orders-row-menu-panel {
  top: calc(100% + 0.3rem);
  bottom: auto;
}

.users-row-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #2a4159;
  border-radius: 0.45rem;
  min-height: 2rem;
  padding: 0.3rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
}

.users-row-menu-item svg {
  flex: 0 0 auto;
}

.users-row-menu-item:hover {
  background: #f2f6fb;
}

.users-row-menu-item-danger {
  color: #0f6f6e;
}

.users-row-menu-item-danger:hover {
  background: #e9f6f5;
}

.users-row-menu-item-muted {
  color: #9aacbf;
  cursor: not-allowed;
}

.logs-card {
  overflow: visible;
}

.logs-filters-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
  .logs-filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .logs-filter-wide {
    grid-column: span 2;
  }
}

.logs-filter-field {
  display: grid;
  gap: 0.25rem;
}

.logs-filter-field label {
  color: #23384f;
  font-size: 0.75rem;
  font-weight: 700;
}

.logs-filter-field input,
.logs-filter-field select {
  border: 1px solid #cfdbe8;
  border-radius: 0.5rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  color: #2a4059;
  background: #ffffff;
  font-size: 0.8rem;
}

.logs-filter-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237089a3'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 1rem;
  padding-right: 2rem;
}

.logs-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.orders-page {
  max-width: 100%;
  overflow-x: hidden;
}

.orders-page .logs-filters-grid,
.orders-page .logs-filter-field,
.orders-page .logs-filter-actions {
  min-width: 0;
}

.orders-page .logs-filters-grid {
  align-items: start;
}

.orders-page .logs-filter-field {
  align-content: start;
}

.orders-page {
  max-width: 100%;
  overflow-x: hidden;
}

.orders-page .logs-card,
.orders-page .card-body {
  min-width: 0;
}

.orders-page .logs-filter-actions {
  flex-wrap: wrap;
}

.orders-advanced-filters {
  border: 1px solid #d7e1ea;
  border-radius: 0.65rem;
  background: #f8fbfe;
  padding: 0.5rem 0.6rem;
  grid-column: 1 / -1;
}

.orders-advanced-filters-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: #35506b;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid #ccd8e4;
  background: #ffffff;
  user-select: none;
}

.orders-advanced-filters[open] .orders-advanced-filters-summary {
  color: #22415f;
  border-color: #b8c9da;
  background: #eef5fb;
}

.orders-advanced-filters-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 1024px) {
  .orders-advanced-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.orders-filters-toolbar {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e1e9f1;
  align-items: flex-end;
}

.orders-filters-toolbar .btn {
  align-self: flex-end;
}

.orders-table-scroll-only {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.logs-summary {
  color: #5f758f;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.logs-export-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.logs-export-menu {
  position: relative;
  display: inline-block;
  z-index: 60;
}

.logs-export-trigger {
  list-style: none;
}

.logs-export-trigger::-webkit-details-marker {
  display: none;
}

.logs-export-menu[open] .logs-export-trigger {
  background: #f3f7fb;
  border-color: #d2dde8;
  color: #2f465f;
}

.logs-export-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 10rem;
  border: 1px solid #d7e1ea;
  border-radius: 0.6rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(39, 50, 70, 0.14);
  padding: 0.3rem;
  z-index: 90;
}

.logs-export-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2rem;
  border-radius: 0.45rem;
  padding: 0.35rem 0.5rem;
  color: #2a4159;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.logs-export-item:hover {
  background: #f2f6fb;
}

.logs-mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.75rem;
}

.logs-details {
  max-width: 36rem;
  white-space: normal;
}

.logs-pagination {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logs-page-label {
  color: #4f657f;
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.metric-card {
  border: 1px solid #dbe4ee;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 6px 14px rgba(39, 50, 70, 0.04);
  padding: 0.85rem;
}

.strategy-dashboard {
  display: grid;
  gap: 0.9rem;
}

.strategy-filter-card .card-body {
  display: grid;
  gap: 0.55rem;
}

.strategy-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.strategy-filters-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .strategy-filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.strategy-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  grid-column: 1 / -1;
  padding-top: 0;
}

.strategy-filter-summary {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.strategy-executive-card {
  margin-top: 0.75rem;
  border: 1px solid #dbe5ef;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 8px 20px rgba(39, 50, 70, 0.06);
  padding: 0.8rem 0.9rem;
}

.strategy-executive-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.strategy-executive-head .kicker {
  margin: 0;
  color: #55708c;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.strategy-executive-head h3 {
  margin: 0.15rem 0 0;
  color: #1d344d;
  font-size: 1rem;
  font-weight: 800;
}

.strategy-executive-text {
  margin: 0.45rem 0 0.65rem;
  color: #54708c;
  font-size: 0.82rem;
  line-height: 1.45;
}

.strategy-executive-text .strategy-number-emphasis {
  color: #1d3f66;
  font-weight: 800;
}

.strategy-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #d7e2ee;
  background: #f8fbff;
  color: #526c87;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

.strategy-summary-chip strong {
  color: #21405f;
  font-weight: 800;
}

.strategy-warning-line {
  margin-top: 0.55rem;
  border-left: 3px solid rgba(95, 198, 189, 0.65);
  background: #f3fbfa;
  color: #4d6b7a;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  font-size: 0.75rem;
}

.strategy-field {
  display: grid;
  gap: 0.25rem;
}

.strategy-field > span {
  color: #24384f;
  font-size: 0.75rem;
  font-weight: 700;
}

.strategy-field input,
.strategy-field select {
  border: 1px solid #cfdbe8;
  border-radius: 0.55rem;
  min-height: 2.2rem;
  padding: 0.4rem 0.6rem;
  color: #2a4059;
  background: #ffffff;
  font-size: 0.83rem;
}

.strategy-compare-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.strategy-compare-btn {
  border: 1px solid #d1ddea;
  border-radius: 999px;
  background: #f8fbff;
  color: #48627f;
  min-height: 1.85rem;
  padding: 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.strategy-compare-btn.is-active {
  border-color: rgba(32, 131, 204, 0.34);
  background: rgba(33, 182, 246, 0.13);
  color: #1c5e8c;
}

.strategy-insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 1050px) {
  .strategy-insights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.strategy-insight-card {
  border: 1px solid #dbe5ef;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #ffffff 0%, #f3f9ff 100%);
  box-shadow: 0 8px 20px rgba(39, 50, 70, 0.06);
  padding: 0.65rem 0.75rem;
}

.strategy-insight-card .kicker {
  margin: 0;
  color: #55708c;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.strategy-insight-card h3 {
  margin: 0.2rem 0 0.25rem;
  color: #1e344d;
  font-size: 0.95rem;
  font-weight: 800;
}

.strategy-insight-card p {
  margin: 0;
  color: #5a7390;
  font-size: 0.78rem;
  line-height: 1.38;
}

.strategy-insight-card .strategy-number-emphasis {
  color: #1d3f66;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.strategy-kpi-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .strategy-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.strategy-kpi-card {
  border-radius: 0.9rem;
  border: 1px solid #dbe4ee;
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  box-shadow: 0 10px 24px rgba(39, 50, 70, 0.06);
}

.strategy-kpi-card p {
  margin: 0;
  color: #49617d;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.strategy-kpi-card h3 {
  margin: 0.2rem 0 0;
  color: #13263a;
  font-size: 1.4rem;
  font-weight: 800;
}

.strategy-kpi-subtitle {
  display: block;
  margin-top: 0.15rem;
  color: #5f7690;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.strategy-kpi-total {
  background: linear-gradient(135deg, #2e4d72 0%, #3f6695 100%);
  color: #ffffff;
}

.strategy-kpi-total p,
.strategy-kpi-total h3 {
  color: #ffffff;
}

.strategy-kpi-total .strategy-kpi-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.strategy-top-product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.strategy-top-product-type {
  color: #6e8298;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

html.strategy-hide-amounts .strategy-sensitive {
  display: inline-block;
  filter: blur(7px);
  user-select: none;
}

html.strategy-hide-amounts .strategy-chart-wrap canvas {
  filter: blur(8px);
}

html.strategy-hide-amounts .strategy-spark,
html.strategy-hide-amounts .strategy-heatmap .cell,
html.strategy-hide-amounts .dot {
  filter: blur(2px);
}

.strategy-kpi-total .strategy-kpi-trend {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.strategy-kpi-total .strategy-kpi-trend.up {
  color: #e8fff5;
  background: rgba(22, 160, 101, 0.32);
  border-color: rgba(166, 255, 214, 0.55);
}

.strategy-kpi-total .strategy-kpi-trend.down {
  color: #ffe8ee;
  background: rgba(204, 50, 88, 0.34);
  border-color: rgba(255, 183, 204, 0.58);
}

.strategy-kpi-orders {
  background: linear-gradient(135deg, #ebf8ff 0%, #f8fdff 100%);
}

.strategy-kpi-ticket {
  background: linear-gradient(135deg, #fff7ef 0%, #fffdfa 100%);
}

.strategy-kpi-margin {
  background: linear-gradient(135deg, #f2fcf7 0%, #fafffd 100%);
}

.strategy-kpi-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 4.2rem;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.strategy-kpi-trend.up {
  color: #0b6d3a;
  background: rgba(29, 179, 107, 0.14);
  border-color: rgba(29, 179, 107, 0.3);
}

.strategy-kpi-trend.down {
  color: #af244a;
  background: rgba(233, 91, 130, 0.14);
  border-color: rgba(233, 91, 130, 0.32);
}

.strategy-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 1100px) {
  .strategy-main-grid {
    grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr);
  }
}

.strategy-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.strategy-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  border-radius: 999px;
  padding: 0 0.55rem;
  border: 1px solid #d1ddea;
  background: #f6faff;
  color: #45607d;
  font-size: 0.72rem;
  font-weight: 700;
}

.strategy-chip-cyan {
  border-color: rgba(95, 198, 189, 0.35);
  background: rgba(95, 198, 189, 0.14);
  color: #12756e;
}

.strategy-toggle-amounts {
  border-color: #9fb9d4;
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  color: #173d61;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(34, 63, 94, 0.08);
}

.strategy-toggle-amounts:hover {
  border-color: #6f9cc5;
  background: linear-gradient(180deg, #fafdff 0%, #e6f1ff 100%);
  color: #123451;
}

.strategy-toggle-amounts:focus-visible {
  outline: 2px solid rgba(31, 178, 242, 0.45);
  outline-offset: 2px;
}

html.strategy-hide-amounts .strategy-toggle-amounts {
  border-color: #173d61;
  background: linear-gradient(180deg, #173d61 0%, #234f79 100%);
  color: #ffffff;
}

html.strategy-hide-amounts .strategy-toggle-amounts:hover {
  background: linear-gradient(180deg, #1c4a75 0%, #2a5f91 100%);
}

.strategy-chart-wrap {
  border: 1px solid #dce7f1;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  padding: 0.35rem;
}

.strategy-chart-svg {
  width: 100%;
  height: auto;
}

.strategy-grid-lines line {
  stroke: #dfe9f3;
  stroke-width: 1;
}

.strategy-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-line-blue {
  stroke: #1fb2f2;
}

.strategy-line-coral {
  stroke: #f35a82;
}

.strategy-legend {
  margin-top: 0.55rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #4f657f;
  font-size: 0.78rem;
  font-weight: 600;
}

.strategy-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  display: inline-block;
}

.dot-blue {
  background: #1fb2f2;
}

.dot-coral {
  background: #f35a82;
}

.strategy-side-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.strategy-side-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid #dce6f0;
  border-radius: 0.7rem;
  background: #f8fbff;
  padding: 0.45rem 0.55rem;
}

.strategy-side-list .label {
  color: #2f4761;
  font-size: 0.79rem;
  font-weight: 700;
}

.strategy-side-list strong {
  color: #162a41;
  font-size: 0.84rem;
}

.strategy-side-list .delta {
  font-size: 0.75rem;
  font-weight: 700;
}

.strategy-side-list .delta.up {
  color: #128c54;
}

.strategy-side-list .delta.down {
  color: #be3155;
}

.strategy-subtitle {
  margin: 0 0 0.25rem;
  color: #22384f;
  font-size: 0.85rem;
  font-weight: 800;
}

.strategy-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 1100px) {
  .strategy-bottom-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.strategy-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.strategy-alert-list li {
  border-radius: 0.7rem;
  border: 1px solid #dce6f0;
  background: #f8fbff;
  padding: 0.5rem 0.6rem;
  display: grid;
  gap: 0.15rem;
}

.strategy-alert-list strong {
  color: #1f3650;
  font-size: 0.8rem;
}

.strategy-alert-list span {
  color: #59738f;
  font-size: 0.75rem;
}

.strategy-alert-list .alert-warn {
  border-color: rgba(222, 158, 39, 0.35);
  background: linear-gradient(135deg, #fff6e8 0%, #fffdf8 100%);
}

.strategy-alert-list .alert-ok {
  border-color: rgba(37, 171, 122, 0.34);
  background: linear-gradient(135deg, #edfbf3 0%, #fbfffd 100%);
}

.strategy-alert-list .alert-info {
  border-color: rgba(57, 147, 215, 0.34);
  background: linear-gradient(135deg, #edf7ff 0%, #fbfdff 100%);
}

.strategy-heatmap {
  display: grid;
  grid-template-columns: 1.4rem repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: center;
}

.strategy-heatmap .day {
  color: #516b86;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.strategy-heatmap .cell {
  height: 1rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(197, 214, 231, 0.8);
  background: #f4f8fc;
  position: relative;
  cursor: help;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.strategy-heatmap .cell:hover {
  transform: translateY(-1px);
  border-color: rgba(55, 132, 194, 0.6);
  box-shadow: 0 4px 10px rgba(35, 96, 154, 0.18);
  z-index: 2;
}

.strategy-heatmap .cell::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
  background: rgba(22, 39, 59, 0.96);
  color: #f0f6ff;
  border: 1px solid rgba(151, 185, 220, 0.35);
  border-radius: 0.4rem;
  padding: 0.28rem 0.45rem;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.strategy-heatmap .cell:hover::after {
  opacity: 1;
}

.strategy-heatmap .cell.l0 { background: #f5f8fc; }
.strategy-heatmap .cell.l1 { background: #d8ecfb; }
.strategy-heatmap .cell.l2 { background: #afdaf9; }
.strategy-heatmap .cell.l3 { background: #6fc3f5; }
.strategy-heatmap .cell.l4 { background: #28a4eb; }

.strategy-heatmap-legend {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #5b7591;
  font-size: 0.72rem;
  font-weight: 700;
}

.strategy-heatmap-legend .cell {
  width: 0.8rem;
  height: 0.55rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(197, 214, 231, 0.8);
}

.strategy-heatmap-legend .cell.l0 { background: #f5f8fc; }
.strategy-heatmap-legend .cell.l1 { background: #d8ecfb; }
.strategy-heatmap-legend .cell.l2 { background: #afdaf9; }
.strategy-heatmap-legend .cell.l3 { background: #6fc3f5; }
.strategy-heatmap-legend .cell.l4 { background: #28a4eb; }

.strategy-note {
  margin: 0;
  color: #556f8c;
  font-size: 0.78rem;
  line-height: 1.35;
}

.strategy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.strategy-table th,
.strategy-table td {
  border-bottom: 1px solid #e0e9f2;
  text-align: left;
  padding: 0.55rem;
  color: #2b425c;
  font-size: 0.8rem;
}

.strategy-table th {
  color: #58708b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.strategy-spark {
  width: 7rem;
  height: 1.8rem;
}

.strategy-spark polyline {
  fill: none;
  stroke: #24aeea;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-spark-down polyline {
  stroke: #eb5d83;
}

.strategy-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.strategy-top-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid #dce7f1;
  border-radius: 0.65rem;
  background: #fbfdff;
  padding: 0.4rem 0.5rem;
}

.strategy-top-list .rank {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f4fe;
  color: #2b6b99;
  font-size: 0.72rem;
  font-weight: 800;
}

.strategy-top-list .name {
  color: #203750;
  font-size: 0.79rem;
  font-weight: 700;
}

.strategy-top-list strong {
  color: #1a2e44;
  font-size: 0.79rem;
}

.ops-bars {
  display: grid;
  gap: 0.42rem;
}

.ops-bars > div {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  gap: 0.45rem;
}

.ops-bars > div > span {
  color: #586f88;
  font-size: 0.72rem;
  font-weight: 700;
}

.ops-bars > div > i {
  display: block;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1fb2f2 0%, #3fc3f8 100%);
}

.cx-cohort-grid {
  display: grid;
  grid-template-columns: 4rem repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.cx-cohort-grid .h,
.cx-cohort-grid .r,
.cx-cohort-grid .c {
  min-height: 1.9rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
}

.cx-cohort-grid .h {
  background: #eef5fb;
  color: #4b6580;
}

.cx-cohort-grid .r {
  background: #f6f9fc;
  color: #506982;
}

.cx-cohort-grid .c {
  border: 1px solid rgba(186, 211, 232, 0.65);
}

.cx-cohort-grid .v2 { background: #e7f4ff; color: #1e6391; }
.cx-cohort-grid .v3 { background: #cde9fd; color: #1c5b87; }
.cx-cohort-grid .v4 { background: #9fd5f9; color: #164f77; }
.cx-cohort-grid .v5 { background: #72c1f4; color: #123f60; }

.fin-waterfall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0.45rem;
  min-height: 10rem;
  padding: 0.55rem;
  border: 1px solid #dce7f1;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #fcfeff 0%, #f5f9fd 100%);
}

.fin-waterfall .bar {
  border-radius: 0.5rem 0.5rem 0.35rem 0.35rem;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 1.8rem;
  padding-bottom: 0.3rem;
}

.fin-waterfall .bar span {
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
}

.fin-waterfall .bar.pos {
  background: linear-gradient(180deg, #24b56f 0%, #16975b 100%);
}

.fin-waterfall .bar.neg {
  background: linear-gradient(180deg, #ea5d82 0%, #d4476d 100%);
}

.fin-waterfall .bar.total {
  background: linear-gradient(180deg, #3b86d7 0%, #2c6db4 100%);
}
