@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@700;800&display=swap");
:root {
  --ink: #071a36;
  --muted: #65758d;
  --line: #d9e5f4;
  --blue: #2468ed;
  --blue-dark: #174ea6;
  --blue-deep: #0b2850;
  --blue-light: #8ab4f8;
  --green: #0f9f58;
  --green-soft: #e9f8f0;
  --green-dark: #16643a;
  --red: #d83d43;
  --red-soft: #fff0f0;
  --red-dark: #bd2630;
  --amber: #d98500;
  --amber-soft: #fff4df;
  --amber-dark: #b86700;
  --purple: #7c3aed;
  --muted-dark: #40506f;
  --bg: #f4f7fb;
  --soft: #edf4ff;
  --shadow: 0 18px 50px rgba(18, 43, 82, 0.09);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(180deg, var(--soft) 0, var(--soft) 100%);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
button,
input,
select {
  font: inherit;
}
.hidden {
  display: none !important;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.btn {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  padding: 0 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.btn.light {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue-light);
}
.btn.dark {
  background: var(--ink);
}
.btn.danger {
  background: var(--red);
}
.btn.danger.outline {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red-soft);
}
.btn.success {
  background: var(--green);
}
.btn.small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.notice {
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 800;
}
.notice.ok {
  background: var(--green-soft);
  color: var(--green-dark);
}
.sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.amount {
  font-weight: 900;
}
.empty {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  font-weight: 800;
}
.login-shell {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: min(460px, 44%) 1fr;
  background: #fff;
}
.login-form-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 5vh, 40px) 32px clamp(14px, 3vh, 28px);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.login-content-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(20px, 6.5vh, 52px);
}
.login {
  width: min(400px, 100%);
}
.login-brand {
  width: min(400px, 100%);
  display: flex;
  align-items: center;
  gap: 13px;
}
.login-brand img {
  width: clamp(48px, 9vh, 84px);
  height: clamp(48px, 9vh, 84px);
  border-radius: 18px;
  flex: 0 0 auto;
}
.login h1 {
  font: 800 22px/1.15 Manrope;
  margin: 0;
}
.login p {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(10px, 2.8vh, 22px);
}
.field label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
}
.field input,
.field select {
  min-height: clamp(38px, 5.4vh, 44px);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  background: #fff;
}
.field input:focus,
.field select:focus {
  outline: 3px solid var(--blue-light);
  border-color: var(--blue-light);
}
/* !important because two different visually-identical-looking heights kept surviving
       here across several fix attempts -- forcing a single fixed pixel height (not clamp,
       not min-height) on every login input removes any remaining ambiguity from cascade
       order or the icon-wrapper padding affecting box size. */
.login-shell .field input,
.login-shell .field select {
  height: 44px !important;
  width: 100% !important;
  font-size: 14px !important;
  line-height: 20px;
  box-sizing: border-box !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.login-shell .field-icon-wrap {
  height: 44px;
}
.login-shell .field-icon-wrap input {
  height: 44px !important;
}
.password-field {
  position: relative;
}
.password-field input {
  width: 100%;
  padding-right: 42px;
}
.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  border-radius: 8px;
}
.password-toggle:hover {
  background: var(--soft);
  color: var(--blue);
}
.password-toggle svg {
  width: 18px;
  height: 18px;
}
.field-icon-wrap {
  position: relative;
}
.field-icon-wrap input {
  padding-left: 40px;
}
.field-icon-wrap .field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
}
.field-icon-wrap .field-icon svg {
  width: 17px;
  height: 17px;
}
.login-greeting {
  margin-bottom: clamp(14px, 3.4vh, 28px);
}
.login-greeting h2 {
  font: 800 26px Manrope;
  margin: 0 0 6px;
}
.login-greeting p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.login-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 clamp(14px, 3vh, 24px);
  flex-wrap: wrap;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.login-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.login-forgot-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.login-divider:before,
.login-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.login-switch {
  text-align: center;
  margin-top: clamp(10px, 2.4vh, 20px);
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}
.login-switch a {
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}
.login-footer {
  width: 100%;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: auto;
  padding-top: 20px;
}
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  flex: 0 0 auto;
}
.hero-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.hero-nav a:hover {
  color: var(--blue);
}
.login-hero {
  background: linear-gradient(
    165deg,
    var(--soft),
    var(--soft) 55%,
    var(--soft)
  );
  padding: clamp(10px, 2.2vh, 22px) min(64px, 6vw);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.login-hero-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.6vh, 20px);
}
.login-hero-copy {
  flex: 0 0 230px;
  max-width: 230px;
}
.login-hero-eyebrow {
  display: inline-flex;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--blue-light);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: clamp(4px, 1vh, 12px);
}
.login-hero h2 {
  font: 800 clamp(24px, 4.6vh, 44px)/1.15 Manrope;
  margin: 0 0 clamp(4px, 1vh, 10px);
  color: var(--ink);
}
.login-hero h2 em {
  color: var(--blue);
  font-style: normal;
}
.login-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(11.5px, 1.6vh, 15px);
  line-height: 1.45;
}
.hero-top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
}
.hero-top-row-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(11.5px, 1.6vh, 15px);
  line-height: 1.45;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 26px);
  max-width: 950px;
}
.hero-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
  min-width: 120px;
}
.hero-feature-icon {
  width: clamp(28px, 4.2vh, 38px);
  height: clamp(28px, 4.2vh, 38px);
  border-radius: 11px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue);
  box-shadow: 0 4px 10px rgba(18, 43, 82, 0.08);
}
.hero-feature-icon svg {
  width: 60%;
  height: 60%;
}
.hero-feature strong {
  display: block;
  font-size: clamp(12px, 1.7vh, 14px);
}
.hero-feature span {
  display: block;
  color: var(--muted);
  font-size: clamp(10.5px, 1.5vh, 12.5px);
  font-weight: 700;
  margin-top: 1px;
}
.hero-mock-wrap {
  flex: 1;
  min-width: 280px;
  max-height: clamp(160px, 32vh, 340px);
  display: flex;
  justify-content: flex-end;
}
.hero-mock {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(18, 43, 82, 0.18);
  border: 1px solid #fff;
}
.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 170px;
}
.hero-trust-icon {
  width: clamp(28px, 4.2vh, 38px);
  height: clamp(28px, 4.2vh, 38px);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgba(18, 43, 82, 0.08);
}
.hero-trust-icon svg {
  width: 50%;
  height: 50%;
  color: var(--blue);
}
.hero-trust-item strong {
  display: block;
  font-size: clamp(11px, 1.5vh, 12.5px);
  color: var(--ink);
}
.hero-trust-item span {
  display: block;
  color: var(--muted);
  font-size: clamp(9.5px, 1.3vh, 11px);
  font-weight: 700;
}
.hero-pricing {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(18, 43, 82, 0.1);
  padding: clamp(10px, 1.8vh, 18px) 22px;
  max-width: 950px;
  flex-wrap: wrap;
}
.hero-pricing-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
  padding-right: 20px;
}
.hero-pricing-lead-icon {
  width: clamp(28px, 4.2vh, 38px);
  height: clamp(28px, 4.2vh, 38px);
  border-radius: 11px;
  background: var(--soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.hero-pricing-lead-icon svg {
  width: 50%;
  height: 50%;
}
.hero-pricing-lead strong {
  display: block;
  font-size: clamp(12px, 1.6vh, 13.5px);
  color: var(--ink);
}
.hero-pricing-lead span {
  display: block;
  color: var(--muted);
  font-size: clamp(10px, 1.4vh, 11.5px);
  font-weight: 700;
  margin-top: 1px;
}
.hero-price-card {
  padding: 0 20px;
  border-left: 1px solid var(--line);
}
.hero-price-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hero-price-card strong {
  font: 800 clamp(16px, 2.6vh, 21px) Manrope;
  color: var(--blue);
}
.hero-price-card strong em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}
.hero-price-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
/* Login landing layout: editorial left column + product preview, matching the public X-Libras experience. */
.login-shell {
  grid-template-columns: clamp(440px, 31.9vw, 490px) minmax(0, 1fr);
  background: #fff;
}
.login-form-side {
  padding: clamp(28px, 3.1vw, 48px) clamp(34px, 3.1vw, 58px)
    clamp(18px, 2.4vh, 30px);
  align-items: flex-start;
  background: linear-gradient(
    116deg,
    #fff 0%,
    var(--soft) 72%,
    var(--soft) 100%
  );
}
.login-brand {
  gap: 12px;
}
.login-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.login-brand h1 {
  font-size: 19px;
  letter-spacing: -0.035em;
}
.login-brand p {
  font-size: 12px;
  margin-top: 3px;
}
.login-content-center {
  width: 100%;
  max-width: 366px;
  align-self: center;
  margin: clamp(72px, 14vh, 138px) auto 0;
}
.login {
  width: 100%;
}
.login-greeting {
  margin-bottom: clamp(38px, 6.2vh, 66px);
}
.login h2 {
  font: 800 clamp(27px, 3.2vh, 34px)/1.15 Manrope;
  letter-spacing: -0.045em;
}
.login p {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}
.field {
  gap: 9px;
  margin-bottom: clamp(20px, 2.8vh, 27px);
}
.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.login-shell .field input,
.login-shell .field select,
.login-shell .field-icon-wrap {
  height: 47px !important;
}
.login-shell .field-icon-wrap input {
  height: 47px !important;
}
.field input,
.field select {
  border-color: var(--soft);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field-icon-wrap input {
  padding-left: 44px;
}
.field-icon-wrap .field-icon {
  left: 14px;
}
.field-icon-wrap .field-icon svg {
  width: 18px;
  height: 18px;
}
.login-row-between {
  margin: clamp(-2px, -0.2vh, 0) 0 clamp(23px, 3vh, 31px);
}
.login-remember {
  font-size: 13px;
}
.login-forgot-link {
  font-size: 13px;
}
.login #loginButton {
  height: 50px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(33, 103, 239, 0.17);
}
.login-switch {
  margin-top: clamp(20px, 3vh, 29px);
  font-size: 13px;
}
.login-footer {
  font-size: 12px;
  padding-top: 16px;
}
.login-hero {
  padding: clamp(20px, 2.5vw, 38px) clamp(28px, 3.2vw, 54px)
    clamp(18px, 2.5vh, 30px);
  background: radial-gradient(
    circle at 67% 38%,
    #fff 0%,
    var(--soft) 39%,
    var(--soft) 100%
  );
}
.hero-nav {
  gap: clamp(22px, 2.3vw, 38px);
  min-height: 44px;
}
.hero-nav a {
  font-size: 14px;
  font-weight: 700;
}
.hero-nav .hero-demo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.hero-nav .hero-demo-link:hover {
  color: var(--blue);
}
.hero-nav .hero-demo-link svg {
  width: 21px;
  height: 21px;
  color: var(--blue);
}
.hero-nav .btn {
  min-height: 44px !important;
  border-radius: 999px !important;
  padding: 0 21px !important;
  font-size: 14px;
  box-shadow: 0 9px 20px rgba(33, 103, 239, 0.16);
}
.login-hero-content {
  width: min(100%, 1000px);
  margin: 0 auto;
  justify-content: center;
  gap: clamp(18px, 3.4vh, 36px);
}
.hero-top-row {
  display: grid;
  grid-template-columns: minmax(270px, 325px) minmax(450px, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: clamp(22px, 3.4vw, 56px);
  width: 100%;
}
.login-hero-copy {
  max-width: 325px;
  flex: auto;
}
.login-hero-eyebrow {
  display: none;
}
.login-hero h2 {
  font-size: clamp(31px, 4.1vh, 43px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 0 0 20px;
}
.login-hero h2 em {
  display: block;
}
.hero-top-row-text {
  margin: 0;
  color: var(--muted-dark);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}
.hero-mock-wrap {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  min-width: 0;
  max-height: none;
  height: clamp(315px, 49vh, 500px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px;
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    25px 28px 42px rgba(41, 69, 115, 0.18),
    -8px 8px 20px rgba(41, 69, 115, 0.07);
  transform: perspective(1500px) rotateY(-7deg) rotateZ(-2deg);
  transform-origin: center right;
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease;
}
.hero-mock-wrap:hover {
  transform: perspective(1500px) rotateY(-4deg) rotateZ(-1deg) translateY(-4px);
  box-shadow:
    28px 34px 48px rgba(41, 69, 115, 0.22),
    -8px 8px 20px rgba(41, 69, 115, 0.07);
}
.hero-mock {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  transform: none;
}
.hero-features {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.3vh, 24px);
  max-width: 325px;
}
.hero-feature {
  gap: 13px;
  min-width: 0;
}
.hero-feature-icon {
  width: 49px;
  height: 49px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--soft), var(--soft));
  border: 1px solid var(--soft);
  box-shadow: none;
}
.hero-feature strong {
  font-size: 14px;
}
.hero-feature span {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  margin-top: 3px;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 58px);
  width: min(100%, 880px);
  margin: 0 auto;
}
.hero-trust-item {
  max-width: none;
  gap: 12px;
}
.hero-trust-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(145deg, var(--soft), var(--soft));
  border: 1px solid var(--soft);
  box-shadow: none;
}
.hero-trust-item strong {
  font-size: 14px;
}
.hero-trust-item span {
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.3;
}
.hero-trust-item > svg {
  display: none;
}
.hero-pricing {
  width: min(100%, 1000px);
  max-width: none;
  margin: 0 auto;
  padding: clamp(17px, 2.5vh, 30px) clamp(20px, 2.5vw, 34px);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(41, 69, 115, 0.1);
  flex-wrap: nowrap;
}
.hero-pricing-lead {
  gap: 15px;
  min-width: 290px;
  padding-right: 28px;
}
.hero-pricing-lead-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.hero-pricing-lead strong {
  font-size: 14px;
}
.hero-pricing-lead span {
  font-size: 13px;
}
.hero-price-card {
  padding: 0 clamp(18px, 2.3vw, 35px);
}
.hero-price-card span {
  font-size: 12px;
}
.hero-price-card strong {
  font-size: 24px;
  letter-spacing: -0.045em;
}
.hero-price-card small {
  font-size: 12px;
  margin-top: 3px;
}
@media (max-height: 850px) and (min-width: 961px) {
  .login-content-center {
    margin-top: clamp(40px, 7vh, 72px);
  }
  .login-greeting {
    margin-bottom: 30px;
  }
  .field {
    margin-bottom: 16px;
  }
  .login-hero-content {
    gap: 16px;
  }
  .hero-mock-wrap {
    height: 290px;
  }
  .hero-features {
    gap: 12px;
  }
  .hero-feature-icon {
    width: 40px;
    height: 40px;
  }
  .hero-trust-icon {
    width: 38px;
    height: 38px;
  }
  .hero-pricing {
    padding: 13px 22px;
  }
  .hero-pricing-lead-icon {
    width: 42px;
    height: 42px;
  }
  .hero-price-card strong {
    font-size: 19px;
  }
}
@media (max-width: 1180px) and (min-width: 961px) {
  .hero-top-row {
    grid-template-columns: minmax(230px, 285px) minmax(350px, 1fr);
    gap: 24px;
  }
  .hero-nav {
    gap: 18px;
  }
  .hero-mock-wrap {
    height: clamp(280px, 42vh, 390px);
  }
  .hero-trust {
    gap: 20px;
  }
  .hero-trust-item strong {
    font-size: 12px;
  }
  .hero-pricing-lead {
    min-width: 230px;
  }
  .hero-price-card {
    padding: 0 14px;
  }
}
@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .login-hero {
    display: none;
  }
  .login-form-side {
    height: auto;
    min-height: 100vh;
    align-items: center;
  }
  .login-brand {
    width: min(400px, 100%);
  }
  .login-content-center {
    margin-top: clamp(44px, 10vh, 88px);
  }
}
.app {
  min-height: 100vh;
  display: block;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 258px;
  padding: 22px 16px;
  background: linear-gradient(165deg, var(--blue-dark), var(--ink) 58%);
  color: #fff;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px 22px;
}
.side-brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}
.side-brand strong {
  display: block;
  font: 800 18px Manrope;
}
.side-tag {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 11px;
  font-weight: 900;
}
.side-section {
  margin: 12px 10px 5px;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--soft);
  min-height: 42px;
  border-radius: 12px;
  padding: 0 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.side-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.side-link.active,
.side-link:hover {
  background: var(--blue);
  color: #fff;
}
.side-divider {
  height: 1px;
  background: rgba(143, 177, 223, 0.25);
  margin: 12px 10px;
}
.side-group {
  border: 0;
  margin: 0;
  padding: 0;
}
.side-group summary {
  list-style: none;
}
.side-group summary::-webkit-details-marker {
  display: none;
}
.side-group .side-link {
  justify-content: space-between;
}
.side-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-group-title svg {
  width: 20px;
  height: 20px;
}
.side-group-chevron {
  width: 16px !important;
  height: 16px !important;
  transition: 0.16s ease;
}
.side-group[open] .side-group-chevron {
  transform: rotate(90deg);
}
.side-subnav {
  display: grid;
  gap: 4px;
  margin: 5px 0 8px 30px;
}
.side-subnav .side-link {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--blue-light);
  background: rgba(255, 255, 255, 0.05);
}
.side-subnav .side-link.active,
.side-subnav .side-link:hover {
  background: var(--blue);
  color: #fff;
}
.side-foot {
  margin-top: auto;
  border-top: 1px solid rgba(143, 177, 223, 0.22);
  padding-top: 14px;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 800;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-left: 258px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.top-inner {
  width: min(1500px, 100%);
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.top .brand {
  display: none;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}
.brand strong {
  display: block;
  font: 800 18px Manrope;
}
.tag {
  display: inline-flex;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.business-chip,
.rate-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 0 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rate-chip {
  color: var(--blue-dark);
  background: var(--soft);
  min-width: 200px;
  justify-content: center;
  white-space: nowrap;
}
.main {
  width: calc(100% - 258px);
  margin: 0 0 0 258px;
  padding: 26px 28px 34px;
}
.nav-tabs {
  display: none;
}
.nav-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 13px;
  font-weight: 900;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.form-card {
  max-width: none;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel h2,
.panel h3 {
  font: 800 18px Manrope;
  margin: 0;
}
.panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr minmax(390px, 0.42fr);
  gap: 16px;
  align-items: start;
}
.grid-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.search-input {
  min-height: 56px;
  border: 2px solid var(--blue-light);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 18px;
  font-weight: 900;
}
.quick-help {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.quick-help span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue-dark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}
.quick-help .kb-hint {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  padding: 1px 6px;
  font-size: 12px;
}
.quick-help .kb-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
}
.quick-help .kb-hint-icon svg {
  width: 12px;
  height: 12px;
}
.list {
  display: grid;
  gap: 9px;
}
.sell-panel {
  height: calc(100vh - 126px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sell-panel #productsList {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.row,
.product {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.row strong,
.product strong {
  display: block;
  font-size: 14px;
}
.row small,
.product small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: 3px;
}
.price {
  font: 800 19px Manrope;
  color: var(--green);
  white-space: nowrap;
}
.price .sub {
  display: block;
  color: var(--muted);
  text-align: right;
  margin-top: 2px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.pill {
  display: inline-flex;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue-dark);
  padding: 5px 9px;
  font-weight: 900;
  font-size: 13px;
}
.pill.warn {
  background: var(--amber-soft);
  color: var(--amber-dark);
}
.pill.bad {
  background: var(--red-soft);
  color: var(--red-dark);
}
.action-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.preview-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.preview-price .sub {
  display: inline-block;
}
.cart {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 104px);
  overflow: auto;
}
.total-box {
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  padding: 18px;
  margin-bottom: 13px;
}
.total-box span {
  display: block;
  color: var(--blue-light);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}
.total-box strong {
  display: block;
  font: 800 36px Manrope;
  margin-top: 5px;
}
.cart-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 35vh;
  overflow: auto;
  padding-right: 3px;
}
.cart-line {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 11px;
  display: grid;
  gap: 8px;
}
.cart-line-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.cart-line strong {
  font-size: 14px;
}
.cart-controls {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pay-grid .field {
  margin-bottom: 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
  font-weight: 900;
}
.summary-row strong {
  color: var(--ink);
  text-align: right;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
  padding: 14px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.metric strong {
  display: block;
  font: 800 24px Manrope;
  margin-top: 4px;
}
.table-like {
  display: grid;
  gap: 8px;
}
.admin-only.hidden {
  display: none !important;
}
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 54, 0.55);
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal {
  width: min(980px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(7, 26, 54, 0.28);
  padding: 18px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.modal-head h2 {
  font: 800 20px Manrope;
  margin: 0;
}
.inventory-preview-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin: 10px 0;
}
.inventory-preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.inventory-preview-table th,
.inventory-preview-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.inventory-preview-table th {
  background: var(--soft);
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}
.category-admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 12px 0 14px;
}
.category-admin-list {
  display: grid;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}
.category-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
  padding: 13px;
}
.category-card summary {
  cursor: pointer;
  list-style: none;
}
.category-card summary::-webkit-details-marker {
  display: none;
}
.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.category-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.category-title strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.category-title svg {
  width: 18px;
  height: 18px;
  color: var(--blue-dark);
  flex: 0 0 auto;
}
.category-card[open] .category-title svg {
  transform: rotate(90deg);
}
.subcategory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.subcategory-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}
.category-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.supplier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.supplier-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.receivables-list {
  max-height: 66vh;
  overflow: auto;
  padding-right: 4px;
}
.receivable-customer {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
  padding: 13px;
}
.receivable-customer summary {
  cursor: pointer;
  list-style: none;
}
.receivable-customer summary::-webkit-details-marker {
  display: none;
}
.receivable-sale {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.receivable-pay-form {
  display: grid;
  grid-template-columns: 110px 120px 1fr auto auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}
.payment-history {
  background: var(--soft);
  border-radius: 12px;
  padding: 9px;
  margin-top: 9px;
  display: grid;
  gap: 6px;
}
.history-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.receivables-table-head {
  display: grid;
  grid-template-columns: 1fr 150px 150px 110px;
  gap: 14px;
  padding: 0 13px 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.receivable-summary {
  display: grid;
  grid-template-columns: 1fr 150px 150px 110px;
  gap: 14px;
  align-items: center;
}
.receivable-summary.customer-summary {
  grid-template-columns: 1fr auto auto;
}
.receivable-summary.customer-summary .price {
  text-align: right;
}
.receivable-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.receivable-title svg {
  width: 18px;
  height: 18px;
  color: var(--blue-dark);
}
.receivable-title strong {
  display: block;
  font-size: 15px;
}
.receivable-title small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: 3px;
}
.receivable-total {
  text-align: right;
  display: grid;
  gap: 7px;
  justify-items: end;
}
.receivable-count {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}
.receivable-detail {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
  display: grid;
  gap: 12px;
}
.receivable-sale {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 13px;
  margin-top: 0;
}
.receivable-sale-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.receivable-sale-head h3 {
  font: 800 15px Manrope;
  margin: 0;
}
.receivable-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.fact {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
  padding: 9px;
}
.fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.fact strong {
  display: block;
  margin-top: 3px;
}
.share-debt {
  white-space: nowrap;
}
.receivable-pay-form .field {
  margin-bottom: 0;
}
.receivable-customer.selected {
  border-color: var(--blue);
  background: rgba(36, 104, 237, 0.08);
}
.receivable-select {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}
.receivable-select input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--blue);
}
.sidebar {
  width: 300px;
  padding: 18px 12px;
}
.top {
  margin-left: 300px;
}
.main {
  width: calc(100% - 300px);
  margin-left: 300px;
  padding: 20px 22px 28px;
}
.side-brand {
  padding-bottom: 16px;
}
.side-brand img {
  width: 48px;
  height: 48px;
}
.side-brand strong {
  font-size: 17px;
}
.side-tag {
  text-transform: none;
}
.side-section {
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.04em;
}
.side-link {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
}
.side-link svg {
  width: 18px;
  height: 18px;
}
.side-subnav {
  margin: 5px 0 8px 24px;
}
.side-subnav .side-link {
  min-height: 31px;
  font-size: 13px;
}
.panel {
  padding: 14px;
  border-radius: 16px;
}
.panel h2,
.panel h3 {
  font-size: 17px;
}
.panel p {
  font-size: 13px;
}
.btn {
  min-height: 38px;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 14px;
}
.metric {
  padding: 12px;
}
.metric span {
  font-size: 12px;
  text-transform: none;
}
.metric strong {
  font-size: 19px;
  line-height: 1.15;
}
.price {
  font-size: 18px;
}
.price .sub,
.metric .sub,
.amount .sub {
  font-size: 12px;
  line-height: 1.2;
}
.search-input {
  min-height: 48px;
  font-size: 16px;
}
.field input,
.field select {
  min-height: 40px;
}
.row,
.product {
  padding: 10px;
}
.row strong,
.product strong {
  font-size: 14px;
}
.top-inner {
  padding: 10px 18px;
}
.business-chip,
.rate-chip {
  min-height: 38px;
}
.final-menu {
  gap: 9px;
  margin-top: 10px;
}
.final-menu .side-link {
  min-height: 44px;
}
.side-config-tree {
  display: grid;
  gap: 7px;
  margin: 8px 0 10px 16px;
  color: var(--soft);
}
.side-tree-section {
  display: grid;
  gap: 4px;
}
.side-tree-section summary {
  list-style: none;
}
.side-tree-section summary::-webkit-details-marker {
  display: none;
}
.side-tree-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  min-height: 30px;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 5px;
}
.side-tree-title:hover {
  background: rgba(36, 104, 237, 0.55);
}
.side-tree-title svg {
  width: 15px;
  height: 15px;
  color: var(--blue-light);
}
.side-tree-toggle {
  margin-left: auto;
  transition: transform 0.16s ease;
}
.side-tree-section[open] .side-tree-toggle {
  transform: rotate(90deg);
}
.side-tree-branch {
  display: grid;
  gap: 2px;
  margin-left: 8px;
  padding-left: 15px;
  border-left: 1px solid rgba(191, 219, 255, 0.55);
}
.side-tree-node {
  position: relative;
  min-height: 24px;
  display: flex;
  align-items: center;
}
.side-tree-node:before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 11px;
  border-top: 1px solid rgba(191, 219, 255, 0.55);
}
.side-tree-node button {
  border: 0;
  background: transparent;
  color: var(--soft);
  font-weight: 750;
  text-align: left;
  padding: 3px 5px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
}
.side-tree-node button:hover {
  background: var(--blue);
  color: #fff;
}
.side-tree-sub {
  display: grid;
  gap: 2px;
  margin-left: 15px;
  padding-left: 14px;
  border-left: 1px solid rgba(191, 219, 255, 0.35);
}
.side-tree-note {
  color: var(--blue-light);
  font-weight: 800;
  font-size: 12px;
  padding: 3px 5px;
}
@media (max-width: 1100px) {
  .grid-two,
  .grid-form,
  .metric-grid,
  .stat-cards,
  .dash-bottom {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
    max-height: none;
  }
  .cart-lines {
    max-height: none;
  }
  .sell-panel {
    height: auto;
  }
  .sell-panel #productsList {
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 900px) {
  .grid-form {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .sidebar {
    position: static;
    width: auto;
    inset: auto;
    padding: 14px;
  }
  .side-brand {
    padding-bottom: 10px;
  }
  .side-nav {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .final-menu {
    grid-template-columns: 1fr;
  }
  .side-config-tree {
    grid-column: 1/-1;
  }
  .side-section {
    display: none;
  }
  .top,
  .main {
    margin-left: 0;
  }
  .main {
    width: 100%;
  }
  .top-inner,
  .top-actions,
  .panel-head,
  .search-row,
  .receivable-pay-form,
  .receivable-summary,
  .receivable-sale-head,
  .receivable-facts {
    display: grid;
    grid-template-columns: 1fr;
  }
  .top-actions .btn,
  .top-actions .business-chip,
  .top-actions .rate-chip,
  .product .btn,
  .row .btn,
  .receivable-pay-form .btn {
    width: 100%;
  }
  .row,
  .product {
    grid-template-columns: 1fr;
  }
  .pay-grid {
    grid-template-columns: 1fr;
  }
  .main {
    padding: 12px;
  }
  .total-box strong {
    font-size: 26px;
  }
}
@media (max-width: 520px) {
  .side-nav {
    grid-template-columns: 1fr;
  }
  .side-link {
    min-height: 38px;
  }
}
.biz-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
}
.biz-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: 0 0 38px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.biz-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.biz-logo-wrap svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.45);
}
.biz-info {
  min-width: 0;
  flex: 1;
}
.biz-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-role-tag {
  font-size: 12px;
  color: var(--blue-light);
  font-weight: 800;
  margin-top: 1px;
}
.sidebar.collapsed .biz-info {
  display: none;
}
.sidebar.collapsed .biz-card {
  justify-content: center;
  padding: 9px;
}
.side-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  border-top: 1px solid rgba(143, 177, 223, 0.22);
  padding-top: 10px;
}
.dash-hero {
  background: linear-gradient(
    135deg,
    var(--blue-deep) 0%,
    var(--blue-dark) 55%,
    var(--blue) 100%
  );
  border-radius: 16px;
  padding: 14px 22px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.dash-hero-deco {
  position: absolute;
  right: -30px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.dash-hero-deco2 {
  position: absolute;
  right: 90px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.dash-hero-label {
  font-size: 12px;
  font-weight: 900;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.dash-hero h2 {
  font: 800 19px Manrope;
  color: #fff;
  margin: 0 0 2px;
  position: relative;
}
.dash-hero p {
  color: var(--blue-light);
  font-weight: 700;
  margin: 0;
  font-size: 14px;
  position: relative;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow);
}
.stat-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}
.stat-card-icon svg {
  width: 17px;
  height: 17px;
}
.stat-val {
  font: 800 16px Manrope;
  display: block;
  margin: 0;
  line-height: 1.2;
}
.stat-val .sub {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.stat-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}
.dash-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap: 8px;
  align-items: start;
}
.panel-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.panel-section:last-child {
  margin-bottom: 0;
}
.panel-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.panel-section-head h3 {
  font: 800 13px Manrope;
  margin: 0;
}
.panel-section-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 2px 0 0;
}
.recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.recent-row:last-child {
  border-bottom: none;
}
.recent-row-left strong {
  font-size: 14px;
  font-weight: 800;
  display: block;
}
.recent-row-left small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
  display: block;
}
.recent-row-right {
  text-align: right;
}
.recent-row-right .amount {
  font: 800 14px Manrope;
}
.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  cursor: pointer;
  transition: 0.12s;
  margin-bottom: 4px;
  font-size: 13px;
}
.alert-row:last-child {
  margin-bottom: 0;
}
.alert-row:hover {
  background: var(--soft);
}
.alert-row strong {
  font-size: 14px;
  font-weight: 800;
}
.bs-ref {
  color: var(--amber-dark) !important;
}
body.is-viewer .viewer-hidden {
  display: none !important;
}
.viewer-readonly-banner {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--amber-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-hero {
  background: linear-gradient(
    135deg,
    var(--blue-deep) 0%,
    var(--blue-dark) 55%,
    var(--blue) 100%
  );
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.view-hero::before {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.view-hero-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.view-hero h2 {
  font: 800 20px Manrope;
  color: #fff;
  margin: 0 0 2px;
  position: relative;
}
.view-hero p {
  color: var(--blue-light);
  font-weight: 700;
  margin: 0;
  font-size: 13px;
  position: relative;
}
.dual-usd {
  display: block;
  line-height: 1.2;
}
.dual-bs {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}
.biz-name {
  font-size: 16px !important;
  font-weight: 900 !important;
}
.biz-role-tag {
  display: none !important;
}
.side-foot {
  display: flex !important;
  align-items: center;
  gap: 4px;
}
.side-logout-btn {
  flex: 0 0 auto !important;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  justify-content: center;
}
.side-toggle-btn {
  margin-left: auto;
  flex: 0 0 auto !important;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  justify-content: center;
  border-radius: 8px !important;
}
.sidebar.collapsed .side-logout-btn {
  display: none !important;
}
.sidebar.collapsed .side-foot {
  justify-content: center;
}
.sidebar.collapsed .side-toggle-btn {
  margin-left: 0;
}
.analytics-section {
  margin-bottom: 20px;
}
.analytics-section h3 {
  font: 800 14px Manrope;
  margin: 0 0 10px;
}
.analytics-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.analytics-bar-label {
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analytics-bar-track {
  flex: 1;
  background: var(--soft);
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}
.analytics-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--blue);
  transition: width 0.4s;
}
.analytics-bar-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  flex: 0 0 80px;
  text-align: right;
}
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.analytics-hour-wrap {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 110px;
  margin-top: 10px;
  padding-bottom: 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.analytics-hour-bar {
  flex: 1;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
  min-width: 0;
  cursor: default;
  transition: opacity 0.15s;
  opacity: 0.85;
}
.analytics-hour-bar:hover {
  opacity: 1;
}
.analytics-hour-bar.zero {
  background: var(--line);
}
.analytics-hour-label {
  position: absolute;
  bottom: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  width: calc(100% / 24 * 3);
  transform: translateX(-50%);
}
.audit-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.audit-row:last-child {
  border-bottom: none;
}
.audit-row:hover {
  background: var(--soft);
}
.audit-row-left {
  flex: 1;
  min-width: 0;
}
.audit-row-right {
  text-align: right;
  flex: 0 0 auto;
  white-space: nowrap;
}
.audit-badge {
  font-size: 12px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  margin-right: 6px;
  display: inline-block;
}
.audit-entity {
  font-size: 14px;
  font-weight: 800;
  margin-top: 3px;
  display: inline;
}
.audit-id {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-left: 5px;
}
.audit-details {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}
.audit-meta {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.audit-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
}
.rate-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(
    135deg,
    var(--blue-deep) 0%,
    var(--blue-dark) 55%,
    var(--blue) 100%
  );
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.rate-hero::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.rate-hero-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
}
.rate-hero-icon svg {
  width: 26px;
  height: 26px;
}
.rate-hero-text {
  flex: 1;
  min-width: 0;
  position: relative;
}
.rate-hero-text h2 {
  font: 800 22px Manrope;
  color: #fff;
  margin: 0 0 3px;
}
.rate-hero-text p {
  margin: 0;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
}
.rate-hero-status {
  flex: 0 0 auto;
  text-align: right;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  padding: 10px 16px;
  position: relative;
}
.rate-hero-status-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rate-hero-status strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}
.pay-totals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 760px) {
  .pay-totals-grid {
    grid-template-columns: 1fr;
  }
}
.rate-freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #bff2d6;
}
.rate-freshness::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}
.rate-freshness.stale {
  color: #ffd6a8;
}
.rate-freshness.stale::before {
  background: #fb923c;
}
.rate-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  overflow-x: auto;
  overflow-y: hidden;
}
.rate-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.rate-tab svg {
  width: 16px;
  height: 16px;
}
.rate-tab:hover {
  color: var(--ink);
}
.rate-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.rate-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}
.rate-tab-panel {
  display: none;
}
.rate-tab-panel.active {
  display: block;
}
.rate-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.rate-section h3 {
  font: 800 14px Manrope;
  margin: 0 0 2px;
}
.rate-section-hint {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.rate-section .field {
  margin-bottom: 6px;
}
.rate-section .grid-form {
  gap: 10px;
}
.rate-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.rate-summary-card h4 {
  font: 800 14px Manrope;
  margin: 0 0 12px;
}
.rate-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.rate-summary-row:first-of-type {
  border-top: 0;
}
.rate-summary-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.rate-summary-icon svg {
  width: 17px;
  height: 17px;
}
.rate-summary-text {
  flex: 1;
  min-width: 0;
}
.rate-summary-text small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rate-summary-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-top: 1px;
}
.rate-source-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.rate-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 13px 16px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
}
.rate-quick-btn:last-child {
  margin-bottom: 0;
}
.rate-quick-btn span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rate-quick-btn small {
  font-weight: 700;
  font-size: 11.5px;
  opacity: 0.85;
}
.rate-quick-btn.blue {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}
.rate-quick-btn.amber {
  background: linear-gradient(135deg, var(--amber-dark), var(--amber));
}
.rate-quick-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.rate-note {
  display: flex;
  gap: 10px;
  background: var(--blue-soft);
  border: 1px solid #cfe0fb;
  border-radius: 13px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.4;
}
.rate-note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
}
.rate-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.rate-compare-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--soft);
  cursor: pointer;
  transition: 0.12s;
}
.rate-compare-card:hover {
  border-color: #bcd2f7;
}
.rate-compare-card.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.rate-compare-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.rate-compare-card strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  margin-top: 4px;
}
.rate-history-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.rate-history-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.rate-history-main strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}
.rate-history-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.rate-history-values {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  max-width: 280px;
}
@media (max-width: 900px) {
  .rate-layout {
    grid-template-columns: 1fr;
  }
  .rate-hero {
    flex-wrap: wrap;
  }
  .rate-hero-text {
    min-width: 170px;
  }
  .rate-hero-status {
    text-align: left;
    width: 100%;
  }
}
.supplier-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.supplier-list-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.supplier-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.supplier-panel-head h3 {
  font: 800 16px Manrope;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.supplier-count-badge {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.supplier-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.supplier-toolbar .search-wrap {
  flex: 1;
  min-width: 160px;
}
.supplier-toolbar select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
}
.supplier-sort-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.supplier-list-scroll {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.supplier-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
  cursor: pointer;
  transition: 0.15s;
}
.supplier-row:hover {
  border-color: #bcd2f7;
  background: var(--soft);
}
.supplier-row.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.supplier-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.supplier-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.supplier-detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.supplier-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.supplier-detail-head h3 {
  font: 800 16px Manrope;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.supplier-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-soft);
  border: 1px solid #cfe0fb;
  border-radius: 13px;
  padding: 12px 15px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-dark);
}
.supplier-info-bar svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}
.supplier-info-bar a {
  margin-left: auto;
  color: var(--blue);
  white-space: nowrap;
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .supplier-layout {
    grid-template-columns: 1fr;
  }
}
.two-col-320 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 8px;
  align-items: start;
}
.two-col-320.no-aside {
  grid-template-columns: 1fr;
}
@media (max-width: 860px) {
  .two-col-320 {
    grid-template-columns: 1fr;
  }
}
.grid-form-2 {
  grid-template-columns: 1fr 1fr;
}
.supplier-panel-head,
.supplier-detail-head {
  flex-wrap: wrap;
}
.biz-action-row,
.supplier-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .grid-form-2 {
    grid-template-columns: 1fr;
  }
  .supplier-panel-head > div,
  .supplier-detail-head > div {
    width: 100%;
  }
  .biz-action-row,
  .supplier-action-row {
    flex-direction: column-reverse;
  }
  .biz-action-row .btn,
  .supplier-action-row .btn {
    width: 100%;
  }
}
.biz-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
  overflow-y: hidden;
}
.biz-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.biz-tab svg {
  width: 15px;
  height: 15px;
}
.biz-tab:hover {
  color: var(--ink);
}
.biz-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.biz-tab-panel {
  display: none;
}
.biz-tab-panel.active {
  display: block;
}
.biz-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: 8px;
}
.biz-nav-row:hover {
  border-color: #bcd2f7;
  background: var(--soft);
}
.biz-nav-row:last-child {
  margin-bottom: 0;
}
.biz-nav-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.biz-nav-icon svg {
  width: 16px;
  height: 16px;
}
.biz-nav-text {
  flex: 1;
  min-width: 0;
}
.biz-nav-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}
.biz-nav-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 1px;
}
.qa-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  cursor: pointer;
  border-radius: 10px;
}
.qa-row:hover {
  background: var(--soft);
}
.qa-row-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.qa-row-icon svg {
  width: 16px;
  height: 16px;
}
.qa-row-text {
  flex: 1;
  min-width: 0;
}
.qa-row-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.qa-row-text small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 1px;
}
.stat-trend {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 800;
}
.stat-trend.up {
  color: var(--green);
}
.stat-trend.down {
  color: var(--red-dark);
}
.fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.fin-row:last-child {
  border-bottom: none;
  padding-top: 7px;
}
.fin-row span {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.fin-row strong {
  font-size: 14px;
  text-align: right;
  line-height: 1.25;
}
.fin-row small {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.dash-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 24px;
}
#dashboardRecentSales .data-table th {
  padding: 5px 8px;
  font-size: 11px;
}
#dashboardRecentSales .data-table td {
  padding: 6px 8px;
  font-size: 13px;
}
.dash-actions .btn {
  min-height: 32px;
  font-size: 13px;
}
#dashboardPaymentMethods .analytics-bar-row {
  margin-bottom: 5px;
}
#dashboardPaymentMethods .analytics-bar-track {
  height: 8px;
}
.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.donut-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 140px;
}
.donut-center {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.donut-center strong {
  font: 800 22px Manrope;
}
.donut-center span {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.donut-legend {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}
.donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.donut-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.side-foot-btn {
  border: 0;
  background: transparent;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  flex: 1;
  justify-content: center;
  transition: 0.15s;
}
.side-foot-btn:hover {
  background: var(--blue);
  color: #fff;
}
.side-foot-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.side-foot-btn span {
  white-space: nowrap;
}
.sidebar.collapsed {
  width: 64px !important;
  padding: 16px 8px;
}
.sidebar.collapsed .side-brand strong,
.sidebar.collapsed .side-brand .side-tag,
.sidebar.collapsed .side-group-chevron,
.sidebar.collapsed .side-subnav,
.sidebar.collapsed .side-foot-btn span {
  display: none !important;
}
.sidebar.collapsed .side-link > span:not(.side-group-title),
.sidebar.collapsed .side-group-title > span {
  display: none !important;
}
.sidebar.collapsed .side-link,
.sidebar.collapsed .side-group-title {
  justify-content: center;
  padding: 0;
}
.sidebar.collapsed .side-group-title {
  gap: 0;
}
.sidebar.collapsed .side-brand {
  justify-content: center;
}
.sidebar.collapsed ~ .top {
  margin-left: 64px !important;
}
.sidebar.collapsed ~ .main {
  width: calc(100% - 64px) !important;
  margin-left: 64px !important;
}
@media (max-width: 860px) {
  .sidebar.collapsed {
    width: auto !important;
    padding: 14px !important;
  }
  .sidebar.collapsed ~ .top,
  .sidebar.collapsed ~ .main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .sidebar.collapsed .side-subnav {
    display: grid !important;
  }
  .sidebar.collapsed .side-link span,
  .sidebar.collapsed .side-group-title span {
    display: inline !important;
  }
  .sidebar.collapsed .side-group-chevron {
    display: inline !important;
  }
  .sidebar.collapsed .side-foot-btn span {
    display: inline !important;
  }
}
.side-subnav .side-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-right: 4px;
}
.fact strong {
  font: 800 20px Manrope !important;
  line-height: 1.2;
}
.fact strong .dual-usd {
  font-size: 19px !important;
  display: block;
  line-height: 1.2;
}
.fact strong .dual-bs {
  font-size: 15px !important;
}
.metric strong .dual-usd {
  font-size: 19px !important;
  display: block;
  line-height: 1.2;
}
.metric strong .dual-bs {
  font-size: 14px !important;
}
.fact strong .sub {
  display: block;
  font-size: 12px;
  margin-top: 3px;
  font-weight: 800;
}
.metric strong .sub {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  color: var(--blue);
  font-weight: 900;
}
.receivable-pay-form > * {
  min-width: 0;
}
.about-page {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.about-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, #eef4ff 0%, #f7faff 60%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 56px 40px 48px;
}
.about-hero::before {
  content: "";
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(36, 104, 237, 0.09),
    transparent 70%
  );
  pointer-events: none;
}
.about-hero-dots {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 70px;
  height: 60px;
  background-image: radial-gradient(
    rgba(36, 104, 237, 0.2) 1.6px,
    transparent 1.6px
  );
  background-size: 13px 13px;
  pointer-events: none;
}
.about-hero-text {
  position: relative;
  max-width: 420px;
}
.about-hero-eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.about-hero-title {
  font: 800 40px Manrope;
  margin: 0 0 10px;
  color: var(--ink);
}
.about-hero-sub {
  color: var(--muted);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.about-hero-accent {
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}
.about-hero-brand-wrap {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}
.about-hero-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.about-hero-brand img {
  width: 136px;
  height: 136px;
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(15, 54, 115, 0.2);
}
.about-hero-brand strong {
  font: 800 18px Manrope;
  color: var(--ink);
}
.about-version-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.about-creator-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}
.about-creator-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.about-verified {
  width: 16px;
  height: 16px;
  color: var(--blue);
}
.creator-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  text-align: left;
  align-items: center;
}
.creator-card img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}
.creator-card strong {
  display: block;
  font: 800 17px Manrope;
}
.creator-card a {
  display: block;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
  margin: 2px 0;
  font-size: 14px;
}
.creator-card small {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.about-link {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.about-link:hover {
  background: var(--soft);
}
.about-link svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--soft);
  border-radius: 18px;
  padding: 28px;
}
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-feature-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.about-feature-icon svg {
  width: 26px;
  height: 26px;
}
.about-feature-icon.blue {
  background: #dce9ff;
  color: var(--blue);
}
.about-feature-icon.green {
  background: var(--green-soft);
  color: var(--green);
}
.about-feature-icon.purple {
  background: rgba(124, 58, 237, 0.14);
  color: var(--purple);
}
.about-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
}
.about-feature span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}
.about-thanks {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--soft);
  border: 1px solid #cfe0fb;
  border-radius: 16px;
  padding: 16px 20px;
}
.about-thanks-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(18, 43, 82, 0.08);
}
.about-thanks strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 2px;
}
.about-thanks span {
  display: block;
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 600;
}
.about-thanks-deco {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-light);
  opacity: 0.6;
  display: flex;
  gap: 6px;
}
.about-footer {
  text-align: center;
  padding: 6px 0 2px;
}
.about-footer .about-version {
  color: var(--blue);
  font: 800 15px Manrope;
  margin-bottom: 4px;
}
.about-footer small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 760px) {
  .about-hero {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .about-hero-text {
    max-width: none;
  }
  .about-hero-accent {
    margin: 0 auto;
  }
  .about-hero-brand img {
    width: 100px;
    height: 100px;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
}
.custom-country-select {
  position: relative;
}
.custom-country-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  user-select: none;
}
.custom-country-btn:hover {
  border-color: var(--blue-light);
}
.custom-country-opts {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(7, 26, 54, 0.14);
  max-height: 210px;
  overflow: auto;
}
.country-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
}
.country-opt:hover {
  background: var(--soft);
}
.country-flag {
  font-size: 19px;
  line-height: 1;
  flex: 0 0 auto;
}
.custom-country-chevron {
  margin-left: auto;
  width: 16px !important;
  height: 16px !important;
  color: var(--muted);
  transition: 0.15s;
}
.custom-country-select.open .custom-country-chevron {
  transform: rotate(180deg);
}
.country-flag-img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  flex: 0 0 auto;
}
.scan-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.scan-modal-inner {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  width: min(480px, 100%);
  text-align: center;
}
.scan-modal-inner h3 {
  font: 800 18px Manrope;
  margin: 0 0 12px;
}
#scanVideo {
  width: 100%;
  border-radius: 12px;
  max-height: 300px;
  background: #000;
  display: block;
}

/* ── RECEPCIÓN DE MERCANCÍA ───────────────────────────── */
.reception-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.reception-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 10px;
  min-height: 36px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.reception-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
/* ── SECTION TABS (mirror sidebar submenus inside the content area) ── */
.seg-tabs {
  display: flex;
  gap: 4px 10px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
}
.seg-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.seg-tab:hover {
  color: var(--ink);
}
.seg-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.report-panel {
  display: none;
}
.report-panel.active {
  display: block;
}
.quick-pay-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.quick-pay-chips .btn {
  min-height: 32px;
  padding: 0 11px;
  font-size: 13px;
}
.sell-toolbar-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .sell-toolbar-actions {
    flex-direction: column;
  }
  .sell-toolbar-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
.sell-panel .panel-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.sell-panel .panel-head .sell-toolbar-actions {
  width: 100%;
}
.category-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.category-badge-icon svg {
  width: 16px;
  height: 16px;
}
.category-subrow td {
  background: var(--soft);
}
.category-name-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.category-expand-btn {
  border: 0;
  background: transparent;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}
.category-expand-btn svg {
  width: 16px;
  height: 16px;
}
.category-subcount.expanded {
  color: var(--blue);
  font-weight: 800;
}
.pay-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  min-height: 36px;
  padding: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.12s;
}
.pay-chip i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.pay-chip:hover {
  border-color: var(--blue-light);
}
.pay-chip.active {
  border-color: var(--blue);
  background: var(--soft);
  color: var(--blue);
}
#cartTable th,
#cartTable td {
  padding: 8px 10px;
}
#cartTable thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
#cartTable .pill {
  color: var(--muted-dark);
  background: transparent;
}
#cartTable .btn.small.light {
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(7, 26, 54, 0.15);
}
#cartTable .btn.small.danger {
  background: #fff;
  color: var(--red);
  border: 1px solid rgba(7, 26, 54, 0.15);
}
#cartTable td {
  vertical-align: middle;
}
#cartTable td:nth-child(3),
#cartTable td:nth-child(4) {
  text-align: right;
}
#cartTable .dual-bs {
  text-align: inherit;
}
.sell-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.category-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin: 8px 0 4px;
}
.category-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}
.category-chip.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
@media (max-width: 860px) {
  .category-chips {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 420px) {
  .category-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.breadcrumb a {
  color: var(--blue);
  cursor: pointer;
  text-decoration: none;
}
.breadcrumb .sep {
  color: var(--line);
}
.breadcrumb .current {
  color: var(--ink);
}
.data-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}
.badge-ok {
  background: var(--green-soft);
  color: var(--green-dark);
}
.badge-warn {
  background: var(--amber-soft);
  color: var(--amber-dark);
}
.badge-bad {
  background: var(--red-soft);
  color: var(--red-dark);
}
.table-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.table-pager .pages {
  display: flex;
  gap: 4px;
}
.table-pager .pages button {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
.table-pager .pages button.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.reception-lines {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.reception-line {
  display: grid;
  grid-template-columns: 1fr 100px 120px 110px 34px;
  gap: 8px;
  align-items: end;
}
.reception-line-head {
  display: grid;
  grid-template-columns: 1fr 100px 120px 110px 34px;
  gap: 8px;
  padding: 0 0 6px;
}
.reception-line-head span {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
}
.reception-total-bar {
  background: var(--soft);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.product-search-wrap {
  position: relative;
}
.product-search-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 55;
  box-shadow: 0 8px 24px rgba(7, 26, 54, 0.12);
  max-height: 200px;
  overflow: auto;
}
.product-search-option {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.product-search-option:hover,
.product-search-option.focused {
  background: var(--soft);
}
.scan-ia-btn {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border: 0;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.scan-ia-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.park-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--red);
  color: #fff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  padding: 0 5px;
  margin-left: 4px;
  line-height: 1;
}
#parkedSalesBtn {
  display: none;
  align-items: center;
  gap: 6px;
}
.kb-hint {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 5px;
  padding: 1px 6px;
  letter-spacing: 0.02em;
}
.reception-history-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.reception-history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.reception-history-items {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}
.reception-history-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}
.reception-history-item:last-child {
  border-bottom: none;
}
@media (max-width: 860px) {
  .reception-line,
  .reception-line-head {
    grid-template-columns: 1fr 80px 100px;
  }
  .reception-line > *:nth-child(4),
  .reception-line-head > *:nth-child(4),
  .reception-line > *:nth-child(5),
  .reception-line-head > *:nth-child(5) {
    display: none;
  }
  #receptionHistoryTab .grid-filters {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 540px) {
  #rhFilterWrapper {
    grid-template-columns: 1fr !important;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── MOBILE HEADER ── */
.mob-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-dark));
  height: 56px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mob-hamburger {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mob-hamburger svg {
  width: 22px;
  height: 22px;
}
.mob-header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}
.mob-header-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}
.mob-header-brand strong {
  font: 800 15px Manrope;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mob-rate-pill {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0 10px;
  color: var(--blue-light);
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.mob-rate-pill svg {
  width: 14px;
  height: 14px;
}
/* ── SIDEBAR OVERLAY BACKDROP ── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 39;
  backdrop-filter: blur(2px);
}
body.mob-open .sidebar-backdrop {
  display: block;
}
body.mob-open .sidebar {
  transform: translateX(0) !important;
}
/* ── MOBILE OVERRIDES ── */
@media (max-width: 860px) {
  .mob-header {
    display: flex;
  }
  .top {
    display: none !important;
  }
  .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: 285px !important;
    padding: 18px 14px !important;
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50 !important;
    overflow-y: auto;
  }
  .top,
  .main {
    margin-left: 0 !important;
  }
  .main {
    width: 100% !important;
    padding: 12px !important;
  }
  .side-nav {
    grid-template-columns: 1fr !important;
  }
  .side-foot {
    margin-top: 16px !important;
  }
  .top-inner,
  .top-actions,
  .panel-head,
  .search-row,
  .receivable-pay-form,
  .receivable-summary,
  .receivable-sale-head,
  .receivable-facts,
  .category-admin-form,
  .supplier-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .top-actions .btn,
  .top-actions .business-chip,
  .top-actions .rate-chip,
  .product .btn,
  .row .btn,
  .receivable-pay-form .btn,
  .category-admin-form .btn,
  .supplier-grid .btn {
    width: 100% !important;
  }
  .row,
  .product {
    grid-template-columns: 1fr !important;
  }
  .pay-grid {
    grid-template-columns: 1fr !important;
  }
  .total-box strong {
    font-size: 26px;
  }
}
@media (max-width: 520px) {
  .analytics-bar-label {
    flex: 0 0 100px !important;
    font-size: 12px;
  }
  .analytics-bar-val {
    flex: 0 0 60px !important;
    font-size: 12px;
  }
  .mob-header-brand strong {
    font-size: 14px;
  }
}
/* ── DASHBOARD RESPONSIVE FIX ── */
@media (max-width: 1100px) {
  .dash-bottom {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 860px) {
  #dashboardStats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  #dashboardStats .stat-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    gap: 6px;
  }
  #dashboardStats .stat-card-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  #dashboardStats .stat-card-icon svg {
    width: 18px;
    height: 18px;
  }
  #dashboardStats .stat-val {
    font-size: 15px;
  }
  #dashboardStats .stat-label {
    font-size: 12px;
  }
  .dash-bottom {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}
