:root {
  --new-text: #181b34;
  --new-muted: #62687a;
  --new-line: #e7e8ef;
  --new-soft: #f7f8fc;
  --new-blue: #2368ff;
  --new-green: #00c875;
  --new-purple: #a25ddc;
  --new-orange: #ff9f1a;
  --new-pink: #ff5ac8;
  --new-shadow: 0 22px 60px rgba(25, 30, 60, 0.12);
}

.admin-page #advancedStampCalculator + .results-card .results-kicker {
  color: #ff7a1a !important;
}

/* Admin quotation history */
.admin-page .quotation-history-section {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d7e1f5;
  border-radius: 8px;
  background: #f8faff;
}

.admin-page .quotation-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.admin-page #quotationHistoryLast7Days,
.admin-page #ssmQuotationHistoryLast7Days {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.74rem;
  line-height: 1;
  box-shadow: none;
}

.admin-page .quotation-history-filter-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, .8fr);
  gap: 8px 12px;
  align-items: end;
  margin: 0 0 10px;
  padding: 12px;
}

.admin-page .quotation-history-filter-card > input,
.admin-page .quotation-history-date-grid input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d5def0;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
  padding: 10px 12px;
}

.admin-page .quotation-history-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-page .quotation-history-date-grid label {
  display: grid;
  gap: 4px;
  color: #5d6a83;
  font-size: .78rem;
  font-weight: 800;
}

.admin-page .quotation-history-filter-card .result-helper {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-page .quotation-history-list-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.admin-page .quotation-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #dce4f3;
}

.admin-page .quotation-history-item:last-child {
  border-bottom: 0;
}

.admin-page .quotation-history-item > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-page .quotation-history-item > div span,
.admin-page .quotation-history-item > div small {
  color: #65718a;
  overflow-wrap: anywhere;
}

.admin-page .quotation-history-item .agreement-list-total {
  white-space: nowrap;
  color: #143d77;
  font-weight: 800;
}

@media (max-width: 760px) {
  .admin-page .quotation-history-section {
    margin-top: 12px;
    padding: 10px;
  }

  .admin-page .quotation-history-filter-card {
    grid-template-columns: 1fr;
  }

  .admin-page .quotation-history-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-page .quotation-history-item > div {
    grid-column: 1 / -1;
  }

  .admin-page .quotation-history-item .admin-copy-btn {
    min-width: 82px;
  }
}

.admin-page .other-service-calculator {
  margin: 18px 0 8px;
  padding: 0 16px 16px;
  border: 2px solid #14345f;
  border-radius: 18px;
  background: #f7faff;
  box-shadow: 0 18px 46px rgba(37, 99, 255, 0.08);
  overflow: hidden;
}

.admin-page .other-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 -16px 16px;
  padding: 14px 16px;
  background: #14345f;
}

.admin-page .other-service-head .section-kicker {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-page .other-service-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-page .other-service-actions .quotation-export-btn {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(20, 52, 95, 0.08);
}

.admin-page .other-service-actions .quotation-export-btn:first-child {
  border-color: rgba(242, 111, 61, 0.34);
  background: linear-gradient(180deg, #fff6ee, #ffffff);
}

.admin-page .other-service-actions .quotation-export-btn:last-child {
  border-color: rgba(31, 111, 209, 0.28);
  background: linear-gradient(180deg, #eff8ff, #ffffff);
}

.admin-page .other-service-head h2 {
  margin: 4px 0 0;
  color: var(--new-text);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.08;
}

.admin-page .other-service-table {
  display: grid;
  gap: 7px;
}

.admin-page .other-service-table-head,
.admin-page .other-service-row {
  display: grid;
  grid-template-columns: 24px minmax(240px, 1fr) 64px 138px 34px;
  align-items: center;
  gap: 5px;
}

.admin-page .other-service-table-head {
  padding: 0 8px;
  color: #465269;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.admin-page .other-service-rows {
  display: grid;
  gap: 7px;
}

.admin-page .other-service-row {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e3ebfb;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-page .other-service-row-no {
  color: #1f3470;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-page .other-service-footer label {
  color: #465269;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-page .other-service-description,
.admin-page .other-service-quantity,
.admin-page .other-service-amount,
.admin-page .other-service-footer input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe5f7;
  border-radius: 11px;
  background: #fff;
  color: var(--new-text);
  font: inherit;
  font-size: 0.86rem;
  padding: 0 11px;
}

.admin-page .other-service-description {
  min-height: 38px;
  height: 38px;
  padding: 8px 11px;
  line-height: 1.28;
  resize: none;
  overflow: hidden;
}

.admin-page .other-service-amount {
  text-align: left;
  font-weight: 800;
  appearance: textfield;
  -moz-appearance: textfield;
}

.admin-page .other-service-quantity {
  text-align: center;
  font-weight: 800;
}

.admin-page .other-service-amount::-webkit-outer-spin-button,
.admin-page .other-service-amount::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.admin-page .other-service-add-btn {
  justify-self: start;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  border-color: #14345f;
  background: #14345f;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(20, 52, 95, 0.16);
}

.admin-page .other-service-remove-btn {
  grid-column: 5;
  grid-row: 1;
  justify-self: end;
  width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: none;
}

.admin-page .other-service-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.admin-page .other-service-total {
  display: grid;
  justify-items: end;
  min-width: 150px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff7ed;
}

.admin-page .other-service-total span {
  color: #7c4a1d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-page .other-service-total strong {
  color: #f26f3d;
  font-size: 1.25rem;
  line-height: 1.05;
}

@media (max-width: 980px) {
  .admin-page .other-service-table-head {
    display: none;
  }

  .admin-page .other-service-row {
    grid-template-columns: 24px minmax(0, 1fr) 64px 126px 34px;
  }

  .admin-page .other-service-remove-btn {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 620px) {
  .admin-page .other-service-calculator {
    padding: 0 12px 14px;
    border-radius: 18px;
  }

  .admin-page .other-service-head,
  .admin-page .other-service-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-page .other-service-head {
    display: grid;
    gap: 10px;
    margin: 0 -12px 14px;
    padding: 14px 12px 12px;
  }

  .admin-page .other-service-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .admin-page .other-service-actions .quotation-export-btn {
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
    padding: 0 10px !important;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    box-shadow: 0 8px 18px rgba(20, 52, 95, 0.08) !important;
  }

  .admin-page .other-service-actions .quotation-export-btn:first-child {
    border-color: rgba(242, 111, 61, 0.35) !important;
    background: linear-gradient(180deg, #fff6ee, #ffffff) !important;
    color: #14345f !important;
  }

  .admin-page .other-service-actions .quotation-export-btn:last-child {
    border-color: rgba(31, 111, 209, 0.3) !important;
    background: linear-gradient(180deg, #f0f8ff, #ffffff) !important;
    color: #14345f !important;
  }

  .admin-page .other-service-row {
    position: relative;
    grid-template-columns: 22px 62px minmax(0, 1fr) 30px;
    gap: 7px 4px;
    padding: 9px;
    border-radius: 14px;
  }

  .admin-page .other-service-row-no {
    align-self: start;
    padding-top: 12px;
    font-size: 0.78rem;
  }

  .admin-page .other-service-description,
  .admin-page .other-service-quantity,
  .admin-page .other-service-amount {
    grid-column: 2;
  }

  .admin-page .other-service-description {
    grid-column: 2 / 5;
    min-height: 38px;
    height: 38px;
    width: 100%;
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  .admin-page .other-service-quantity {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-height: 38px;
    height: 38px;
    padding: 0 6px;
    font-size: 0.84rem;
  }

  .admin-page .other-service-amount {
    grid-column: 3;
    grid-row: 2;
    width: 100%;
    min-height: 38px;
    height: 38px;
    padding: 0 11px;
    font-size: 0.84rem;
  }

  .admin-page .other-service-remove-btn {
    grid-column: 4;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    width: 30px;
    min-height: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.82rem;
    background: #ffffff;
  }

  .admin-page .other-service-add-btn {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 11px;
    background: #14345f;
    color: #ffffff;
    border-color: #14345f;
    box-shadow: 0 10px 22px rgba(20, 52, 95, 0.16);
  }

  .admin-page .other-service-footer {
    gap: 8px;
  }

  .admin-page .other-service-footer input {
    min-height: 40px;
    border-radius: 12px;
  }

  .admin-page .other-service-total {
    justify-items: start;
    min-width: 0;
  }
}

body {
  background: #fff;
  color: var(--new-text);
  font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.review-promo-bar {
  position: relative;
  z-index: 31;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 18px;
  color: #ffffff;
  background: #2563ff;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(37, 99, 255, 0.2);
}

.review-promo-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.review-promo-updates {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.review-promo-updates:hover {
  text-decoration: underline;
}

.review-promo-bar strong {
  color: #ffea00;
  font-weight: 900;
}

.review-promo-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ff9f1a;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

html:has(body.modern-lhdn-page) {
  overflow-x: hidden;
}

.site-bg,
.orb,
.grid-grid {
  display: none !important;
}

.page-shell.service-page,
.page-shell.admin-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.service-page .topbar,
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 8px clamp(18px, 4vw, 58px);
  border: 0;
  border-bottom: 1px solid rgba(231, 232, 239, 0.9);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.service-page .brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.service-page .brand-logo,
.admin-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.service-page .brand-name,
.admin-brand .brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  background: linear-gradient(112deg, #56616f 0%, #7b8491 22%, #68727f 48%, #858e9b 72%, #5c6674 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Cormorant Garamond", "Bodoni 72", "Didot", "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 5px 14px rgba(65, 73, 86, 0.2);
}

.service-page .brand-part,
.admin-brand .brand-part,
.modern-lhdn-page .brand-part {
  display: inline-flex;
  align-items: baseline;
}

.service-page .brand-initial,
.admin-brand .brand-initial {
  background: linear-gradient(112deg, #4f5a68 0%, #7c8592 28%, #626c7a 52%, #89929d 76%, #56606e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.service-page .brand-rest,
.admin-brand .brand-rest {
  color: inherit;
  font-size: 1.12rem;
  font-weight: 700;
}

.service-page .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--new-muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.service-page .nav a:hover {
  color: var(--new-blue);
}

.service-page .nav-service-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.service-page .services-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 60;
  display: grid;
  min-width: 286px;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--new-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 58px rgba(23, 23, 37, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.service-page .nav-service-dropdown:hover .services-dropdown-panel,
.service-page .nav-service-dropdown:focus-within .services-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (hover: none), (pointer: coarse) {
  .service-page .nav-service-dropdown::after,
  .modern-lhdn-page .nav-service-dropdown::after,
  .service-page .services-dropdown-panel,
  .modern-lhdn-page .services-dropdown-panel {
    display: none !important;
  }
}

html.is-touch-nav .service-page .nav-service-dropdown::after,
html.is-touch-nav .modern-lhdn-page .nav-service-dropdown::after,
html.is-touch-nav .service-page .services-dropdown-panel,
html.is-touch-nav .modern-lhdn-page .services-dropdown-panel {
  display: none !important;
}

.service-page .services-dropdown-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--new-muted);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.service-page .services-dropdown-panel a:hover {
  color: var(--new-blue);
  background: #f6f8fc;
}

.service-page .nav-cta {
  justify-self: end;
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.94rem;
  border-radius: 999px;
  background: var(--new-text);
  color: #fff;
  font-weight: 850;
}

.service-page main,
.admin-page main {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}

.service-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: stretch;
  width: 100%;
  min-height: clamp(460px, 68vh, 660px);
  margin: clamp(30px, 5vw, 58px) auto 0;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--new-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 200, 117, 0.12), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(255, 90, 200, 0.12), transparent 28%),
    #fff;
  box-shadow: var(--new-shadow);
}

.service-hero-copy {
  align-self: center;
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.results-kicker {
  color: var(--new-blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-hero-copy h1 {
  margin: 14px 0 0;
  color: var(--new-text);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.service-hero-copy .lede,
.service-intro,
.section-heading p,
.sample-note {
  color: var(--new-muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.page-actions,
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.calculate-btn,
.quotation-export-btn {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 850;
}

.button-primary,
.calculate-btn.button-primary {
  background: var(--new-blue);
  color: #fff;
  box-shadow: 0 16px 30px rgba(35, 104, 255, 0.22);
}

.button-secondary {
  border-color: var(--new-line);
  background: #fff;
  color: var(--new-text);
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.results-actions .quotation-export-btn {
  min-width: 118px;
}

.service-hero-art {
  min-height: 100%;
  border-radius: 22px;
  border: 1px solid var(--new-line);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.66);
}

.service-page-grid,
.section,
.admin-page .section {
  width: 100%;
  margin: clamp(42px, 7vw, 82px) auto;
}

.service-panel,
.detail-card,
.sample-panel,
.calculator-card,
.results-card,
.contact-footer,
.admin-panel,
.admin-tabs {
  border: 1px solid var(--new-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(25, 30, 60, 0.08);
}

.service-panel,
.sample-panel {
  padding: clamp(22px, 4vw, 38px);
}

.service-panel h2,
.section-heading h2,
.detail-copy h2,
.sample-panel h2 {
  color: var(--new-text);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li,
.package-card,
.step,
.result-box {
  border: 1px solid var(--new-line);
  border-radius: 16px;
  background: var(--new-soft);
}

.check-list li {
  padding: 14px 16px;
}

.detail-card {
  padding: clamp(22px, 4vw, 36px);
}

.service-detail-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}

.step-no,
.suite-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(35, 104, 255, 0.12);
  color: var(--new-blue);
  font-weight: 900;
}

.package-grid,
.service-grid,
.other-services-grid,
.sample-grid,
.results-grid,
.advanced-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.package-card {
  padding: 22px;
}

.check-title {
  color: var(--new-text);
  font-weight: 900;
}

.service-card {
  padding: 16px;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.detail-card:hover,
.service-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--new-shadow);
}

.service-visual {
  min-height: 190px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.calculator-layout,
.advanced-calculator-layout,
.admin-calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}

.salary-choice-grid {
  display: grid;
  gap: 10px;
}

.salary-choice {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(43, 87, 177, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--new-text);
  font-weight: 500;
  cursor: pointer;
}

.salary-choice input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--new-blue);
}

.calculator-card,
.results-card {
  padding: clamp(18px, 3vw, 28px);
}

.field input,
.field select,
.field textarea,
.admin-copy-card textarea {
  border: 1px solid var(--new-line);
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  letter-spacing: 0;
}

.field label {
  color: var(--new-text);
  font-weight: 900;
}

.result-helper {
  border: 1px solid var(--new-line);
  border-radius: 16px;
  background: var(--new-soft);
}

.admin-tabs {
  position: sticky;
  top: 88px;
  z-index: 10;
  padding: 8px;
  backdrop-filter: blur(16px);
}

.admin-tabs button {
  position: relative;
  border-radius: 999px;
  color: var(--new-muted);
  background: transparent;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.admin-tabs button[data-request-count]:not([data-request-count="0"])::after {
  content: attr(data-request-count);
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.22);
}

.admin-tabs button[data-admin-tab="calculator"].active {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(124, 58, 237, 0.22);
}

.admin-tabs button[data-admin-tab="ssm"].active {
  background: #2563ff;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 255, 0.22);
}

.admin-tabs button[data-admin-tab="stats"].active {
  background: #ff8f1f;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(255, 143, 31, 0.24);
}

.contact-footer {
  margin: 60px 0 34px;
}

@media (max-width: 1040px) {
  .service-page .topbar,
  .admin-topbar {
    grid-template-columns: 1fr auto;
  }

  .service-page .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .service-page-hero,
  .calculator-layout,
  .advanced-calculator-layout,
  .admin-calculator-layout {
    grid-template-columns: 1fr;
  }

  .service-hero-art {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .service-page main,
  .admin-page main {
    width: min(100% - 20px, 1180px);
  }

  .service-page .topbar,
  .admin-topbar {
    padding-inline: 14px;
  }

  .service-page .brand-rest,
  .admin-brand .brand-rest {
    display: none;
  }

  .service-page .brand-name,
  .admin-brand .brand-name,
  .modern-lhdn-page .brand-name {
    display: none;
  }

  .service-page .nav-cta {
    width: 100%;
    grid-column: 1 / -1;
  }

  .service-page-hero {
    min-height: auto;
    padding: 20px;
    border-radius: 20px;
  }

  .service-hero-copy h1 {
    font-size: clamp(2.4rem, 13vw, 4.3rem);
  }

  .service-hero-art {
    min-height: 230px;
  }

  .check-list,
  .service-detail-row {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    top: 72px;
    gap: 6px;
  }
}

/* Final LHDN header lock: keep mobile customer view clean and stable. */
.modern-lhdn-page .topbar {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 78px !important;
  padding: 8px clamp(16px, 4vw, 58px) !important;
}

.modern-lhdn-page .brand {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin-right: auto !important;
}

.modern-lhdn-page .brand-copy,
.modern-lhdn-page .brand-name {
  min-width: 0 !important;
}

.modern-lhdn-page .nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.modern-lhdn-page .menu-toggle,
.modern-lhdn-page .nav-cta,
.modern-lhdn-page .theme-toggle,
.modern-lhdn-page .lang-toggle {
  flex: 0 0 auto !important;
  align-self: center !important;
  height: 42px !important;
  min-height: 42px !important;
}

.modern-lhdn-page .nav-cta {
  width: auto !important;
  padding: 0 18px !important;
  font-size: 0.9rem !important;
}

.modern-lhdn-page .theme-toggle {
  width: auto !important;
  min-width: 76px !important;
}

.modern-lhdn-page .lang-toggle {
  width: 46px !important;
  min-width: 46px !important;
}

@media (max-width: 1100px) {
  .modern-lhdn-page .brand-copy,
  .modern-lhdn-page .brand-name {
    display: none !important;
  }

  .modern-lhdn-page .brand {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 980px) {
  .modern-lhdn-page .topbar {
    gap: 10px !important;
    min-height: 68px !important;
    padding: 8px 12px !important;
  }

  .modern-lhdn-page .brand-logo {
    width: 50px !important;
    height: 50px !important;
  }

  .modern-lhdn-page .nav {
    display: none !important;
  }

  .modern-lhdn-page .menu-toggle {
    display: inline-flex !important;
    padding: 0 14px !important;
    color: #687084 !important;
    font-size: 0.88rem !important;
  }

  .modern-lhdn-page .nav-cta {
    padding: 0 14px !important;
    font-size: 0.88rem !important;
  }

  .modern-lhdn-page .topbar.menu-open .nav {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 12px !important;
    display: grid !important;
    width: min(260px, calc(100vw - 24px)) !important;
    flex: none !important;
  }
}

/* LHDN calculator title: prevent the guide mark from touching the card edge. */
.modern-lhdn-page #calculator .section-heading {
  overflow: hidden !important;
}

.modern-lhdn-page #calculator .calculator-title {
  width: 100% !important;
  max-width: 100% !important;
  padding-inline: 8px !important;
  box-sizing: border-box !important;
}

.modern-lhdn-page #calculator .calculator-title-with-guide,
.modern-lhdn-page #calculator .calculator-title-text {
  display: inline !important;
  white-space: normal !important;
}

.modern-lhdn-page #calculator .calculator-title-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 0.18em !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
}

@media (max-width: 720px) {
  .modern-lhdn-page #calculator .calculator-title {
    font-size: clamp(1.46rem, 6.55vw, 1.95rem) !important;
    line-height: 1.08 !important;
    padding-inline: 14px !important;
  }

  .modern-lhdn-page #calculator .section-heading {
    padding-inline: 18px !important;
  }
}

@media (max-width: 430px) {
  .modern-lhdn-page .topbar {
    gap: 8px !important;
    padding-inline: 8px !important;
    justify-content: space-between !important;
  }

  .modern-lhdn-page .brand {
    margin-right: 0 !important;
  }

  .modern-lhdn-page .brand-logo {
    width: 46px !important;
    height: 46px !important;
  }

  .modern-lhdn-page .menu-toggle,
  .modern-lhdn-page .nav-cta,
  .modern-lhdn-page .theme-toggle,
  .modern-lhdn-page .lang-toggle {
    height: 40px !important;
    min-height: 40px !important;
  }

  .modern-lhdn-page .menu-toggle {
    padding: 0 12px !important;
  }

  .modern-lhdn-page .nav-cta {
    padding: 0 13px !important;
  }

  .modern-lhdn-page .theme-toggle {
    display: none !important;
  }

  .modern-lhdn-page .theme-toggle b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .modern-lhdn-page .lang-toggle {
    width: 42px !important;
    min-width: 42px !important;
  }
}

.modern-lhdn-page[data-theme="dark"] .menu-toggle,
.modern-lhdn-page[data-theme="dark"] .theme-toggle,
.modern-lhdn-page[data-theme="dark"] .lang-toggle {
  border-color: rgba(155, 172, 210, 0.28) !important;
  background: rgba(17, 24, 43, 0.84) !important;
  color: #e8edff !important;
}

.modern-lhdn-page .service-hero-art.lhdn::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(16, 19, 34, 0.22)),
    url("assets/lhdn-fast-service-hero.png") center top / cover no-repeat,
    #fff;
}

/* Global warm accent + WhatsApp refresh */
:root {
  --whatsapp: #18c7a7;
  --whatsapp-dark: #10a98d;
  --accent-orange: #ff8a1f;
}

.nav-cta,
.service-page .nav-cta,
.modern-lhdn-page .nav-cta,
a[href*="wa.me"].button-primary,
.contact-actions a[href*="wa.me"] {
  min-height: 42px !important;
  height: 42px !important;
  padding: 9px 16px !important;
  font-size: 0.94rem !important;
  background: linear-gradient(135deg, var(--whatsapp), #25d366) !important;
  color: #fff !important;
  box-shadow: 0 18px 36px rgba(24, 199, 167, 0.26) !important;
}

.nav-cta:hover,
.service-page .nav-cta:hover,
.modern-lhdn-page .nav-cta:hover,
a[href*="wa.me"].button-primary:hover,
.contact-actions a[href*="wa.me"]:hover {
  background: linear-gradient(135deg, var(--whatsapp-dark), #18c45c) !important;
}

.modern-lhdn-page .eyebrow::before,
.check-list li::before {
  background: var(--accent-orange);
  box-shadow: 0 0 0 7px rgba(255, 138, 31, 0.16);
}

.modern-lhdn-page .section-kicker,
.modern-lhdn-page .results-kicker,
.results-kicker {
  color: var(--accent-orange);
}

.modern-lhdn-page .service-hero-art::after,
#calculator .result-box.total .result-value,
.admin-page .result-box.total .result-value {
  color: var(--accent-orange);
}

#calculator .result-box.total,
.admin-page .result-box.total {
  background: linear-gradient(135deg, rgba(255, 138, 31, 0.14), rgba(24, 199, 167, 0.10));
}

/* Full redesign pass: product-style service pages. */
.service-page .topbar,
.admin-topbar {
  min-height: 82px;
  background: rgba(255,255,255,0.94);
}

.service-page-hero {
  display: block;
  min-height: clamp(560px, 76vh, 760px);
  padding: 0;
  isolation: isolate;
  background: #0f1426;
}

.service-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,20,38,0.92) 0%, rgba(15,20,38,0.74) 42%, rgba(15,20,38,0.16) 100%),
    radial-gradient(circle at 20% 20%, rgba(35,104,255,0.22), transparent 34%),
    radial-gradient(circle at 38% 70%, rgba(255,90,200,0.16), transparent 30%);
}

.service-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: clamp(34px, 7vw, 78px);
}

.service-hero-copy h1,
.service-hero-copy .lede {
  color: #fff;
}

.service-hero-copy .lede {
  color: rgba(255,255,255,0.74);
}

.service-hero-copy .eyebrow {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.service-hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: min(58%, 760px);
  min-height: 100%;
  border: 0;
  border-radius: 0;
  filter: saturate(1.08) contrast(1.04);
}

.page-actions .button-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}

.service-page-grid {
  margin-top: clamp(28px, 5vw, 56px);
}

.service-panel {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(247,248,252,0.96), rgba(255,255,255,0.96));
}

.service-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(35,104,255,0.14), rgba(255,90,200,0.12));
}

.service-panel .check-list {
  margin-top: 24px;
}

.check-list li {
  position: relative;
  padding-left: 42px;
  background: #fff;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--new-green);
  box-shadow: 0 0 0 6px rgba(0,200,117,0.12);
}

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

.procedure-grid .step {
  min-height: 260px;
  padding: 24px;
  background: #fff;
  border-left: 8px solid var(--new-blue);
  box-shadow: 0 16px 42px rgba(25,30,60,0.08);
}

.procedure-grid .step:nth-child(2) {
  border-left-color: var(--new-green);
}

.procedure-grid .step:nth-child(3) {
  border-left-color: var(--new-orange);
}

.fee-banner {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) 1fr;
  gap: 18px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--new-line);
  border-radius: 22px;
  background: #10172c;
  color: #fff;
  box-shadow: var(--new-shadow);
}

.fee-banner .check-list li {
  color: var(--new-text);
}

.fee-banner-left strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

#calculator {
  width: min(1220px, 100%);
}

#calculator .section-heading,
.admin-panel .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.55fr);
  align-items: end;
  text-align: left;
  padding: 34px;
  border: 1px solid var(--new-line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(35,104,255,0.08), rgba(255,90,200,0.05)),
    #fff;
}

#calculator .calculator-layout,
.admin-calculator-layout {
  grid-template-columns: minmax(320px, 0.52fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.calculator-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-self: start;
  background: #10172c;
  color: #fff;
}

.calculator-card .field label,
.calculator-card .calculator-note {
  color: rgba(255,255,255,0.78);
}

.calculator-card .field input,
.calculator-card .field select {
  min-height: 52px;
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.calculator-card .field select option {
  color: var(--new-text);
}

.calculator-card .button-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.admin-page #addStampAgreement,
.admin-page #addSsmService {
  border-color: rgba(37, 99, 255, 0.28);
  background: #2563ff;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 255, 0.2);
}

.admin-page #addStampAgreement:hover,
.admin-page #addSsmService:hover {
  background: #174ee8;
}

.results-card {
  position: sticky;
  top: 102px;
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(247,248,252,0.88));
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--new-line);
}

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

.result-box {
  min-height: 128px;
  padding: 18px;
  background: #fff;
}

.result-box:first-child {
  grid-column: 1 / -1;
  min-height: 104px;
  background: #10172c;
  color: #fff;
}

.result-box:first-child .result-label,
.result-box:first-child .result-value {
  color: #fff;
}

.result-box.total {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255,90,200,0.08), rgba(255,159,26,0.12));
}

.service-detail-row {
  grid-template-columns: 82px 1fr;
  align-items: stretch;
  overflow: hidden;
}

.service-detail-row .step-no {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 1.25rem;
}

.sample-panel {
  background: #10172c;
  color: #fff;
}

.sample-panel h2,
.sample-panel .section-kicker {
  color: #fff;
}

.sample-note {
  color: rgba(255,255,255,0.68);
}

.sample-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
}

.sample-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

#other-services {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 26px;
  background: var(--new-soft);
}

.other-services-grid .service-card {
  background: #fff;
}

.admin-page {
  background: #fff;
}

.admin-topbar {
  margin-bottom: 0;
}

.admin-page main {
  width: min(1280px, calc(100% - 34px));
}

.admin-page .section {
  margin: 4px auto 52px;
}

.admin-tabs {
  margin-top: 0;
  margin-bottom: 6px;
}

.admin-panel {
  padding: 8px clamp(12px, 1.6vw, 18px) clamp(16px, 2vw, 24px);
  background: var(--new-soft);
}

.admin-panel:not(.active) {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-page .admin-calculator-layout {
  align-items: start;
  margin-top: 0;
}

.admin-page .admin-calculator-layout .results-card {
  position: relative;
  top: auto;
}

.admin-page .admin-calculator-layout > .calculator-card,
.admin-page .admin-calculator-layout > .results-card {
  height: auto;
}

.admin-page #quotationCopyEnglishShort,
.admin-page #quotationCopyChineseShort {
  min-height: 94px;
  max-height: 128px;
}

.admin-page .admin-metrics {
  gap: 14px;
}

.admin-page .admin-metric-card {
  padding: 18px 20px;
}

.admin-page .admin-metric-card span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.admin-page .admin-metric-card strong {
  margin-top: 10px;
  font-size: clamp(1.9rem, 3.2vw, 3rem) !important;
  line-height: 0.95;
}

.admin-page .admin-metric-card p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Admin compact workbench: labels and controls sit side-by-side on desktop. */
.admin-page .admin-brand .brand-name {
  background: linear-gradient(112deg, #56616f 0%, #727c8a 20%, #626c79 42%, #7b8490 66%, #56616f 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: 0 5px 14px rgba(63, 72, 86, 0.18) !important;
}

.admin-page .admin-brand .brand-initial {
  background: linear-gradient(112deg, #4e5a68 0%, #747e8c 30%, #5d6876 58%, #818a96 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.admin-page .admin-calculator-layout {
  grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.18fr);
}

/* Admin header final alignment */
.admin-page .admin-topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 6px clamp(20px, 4vw, 60px) !important;
  min-height: 82px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(231, 232, 239, 0.9) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.admin-page .admin-topbar > strong {
  justify-self: end !important;
  margin-left: auto !important;
}

.admin-page .admin-title-actions {
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.admin-page .admin-title-actions > strong {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

.admin-page .admin-logout-btn {
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  color: #5f6b7c !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08) !important;
}

.admin-page .admin-auth-card[hidden],
.admin-page [data-admin-content][hidden],
.admin-page .admin-logout-btn[hidden] {
  display: none !important;
}

.admin-auth-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.52fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  width: min(980px, calc(100% - 34px));
  margin: 28px auto 52px !important;
  padding: clamp(22px, 4vw, 40px) !important;
  border: 1px solid rgba(15, 60, 159, 0.11);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 31, 68, 0.08);
}

.admin-auth-card h1 {
  margin: 8px 0 10px;
  color: #171725;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.admin-auth-card p {
  color: #667085;
  font-weight: 650;
}

.admin-auth-form {
  display: grid;
  gap: 14px;
}

.admin-page .admin-brand img {
  width: 54px !important;
  height: 54px !important;
}

.admin-page .admin-wordmark {
  color: #56616f !important;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
  font-size: clamp(1.35rem, 2.1vw, 2rem) !important;
  font-style: italic !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-shadow: 0 10px 22px rgba(63, 72, 86, 0.14) !important;
}

.admin-page .admin-calculator-layout .calculator-card {
  gap: 9px;
  padding: 18px;
}

.admin-page .admin-calculator-layout .calculator-card .field {
  display: grid;
  grid-template-columns: minmax(135px, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 10px;
}

.admin-page .admin-calculator-layout .calculator-card .field.is-hidden,
.admin-page .admin-calculator-layout .result-box.is-hidden {
  display: none !important;
}

.admin-page .admin-calculator-layout .calculator-card .field label {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.22;
}

.admin-page .admin-calculator-layout .calculator-card .field input,
.admin-page .admin-calculator-layout .calculator-card .field select,
.admin-page .admin-calculator-layout .calculator-card .field textarea {
  min-height: 42px;
  border-radius: 13px;
  padding: 0 14px;
  font-size: 0.92rem;
  line-height: 1.35;
  font-family: inherit;
}

.admin-page .admin-calculator-layout .calculator-card .field textarea {
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.admin-page .admin-calculator-layout .admin-quotation-unit-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 2px 6px 2px 8px;
  border: 1px solid rgba(207, 216, 234, 0.92);
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.admin-page .admin-calculator-layout .admin-quotation-unit-control label {
  color: #64708a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-page .admin-calculator-layout .admin-quotation-unit-control input {
  width: 46px;
  min-height: 23px !important;
  height: 23px;
  padding: 0 6px !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 800;
  text-align: center;
}

.admin-page .admin-calculator-layout .calculate-btn {
  min-height: 42px;
  margin-top: 4px;
}

.admin-page .admin-calculator-layout .results-card {
  padding: 18px;
}

.admin-page .admin-calculator-layout .result-helper {
  padding: 11px 13px;
}

.admin-page .admin-calculator-layout .result-box {
  min-height: 68px;
  padding: 13px 14px;
}

.admin-page .admin-calculator-layout .result-label {
  font-size: 0.73rem;
}

.admin-page .admin-calculator-layout .result-value {
  font-size: clamp(1rem, 1.45vw, 1.3rem);
}

@media (max-width: 760px) {
  .admin-page .admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 2px 0 10px;
  }

  .admin-page .admin-metric-card {
    min-width: 0;
    padding: 10px 7px;
    border-radius: 16px;
  }

  .admin-page .admin-metric-card span {
    font-size: 0.48rem;
    line-height: 1.2;
  }

  .admin-page .admin-metric-card strong {
    margin-top: 6px;
    font-size: 1.08rem !important;
  }

  .admin-page .admin-metric-card p {
    margin-top: 5px;
    font-size: 0.5rem;
    line-height: 1.18;
  }

  .admin-page .admin-calculator-layout .calculator-card .field {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.admin-page .admin-support-requests,
.admin-page .admin-monthly-report {
  margin: 18px 0;
  border: 1px solid #dbe5f7;
  border-radius: 24px;
  background: #fff;
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 18px 46px rgba(37, 99, 255, 0.08);
}

.admin-page .admin-support-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-page .admin-support-heading span {
  display: block;
  color: #2563ff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-page .admin-support-heading h2 {
  margin: 4px 0 0;
  color: var(--new-text);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.admin-page .admin-support-heading button {
  border: 1px solid #dbe5f7;
  border-radius: 999px;
  background: #f8fbff;
  color: #2563ff;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.admin-page .admin-monthly-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-page .admin-monthly-controls select {
  min-height: 42px;
  border: 1px solid #dbe5f7;
  border-radius: 999px;
  background: #fff;
  color: var(--new-text);
  padding: 0 14px;
  font-weight: 900;
}

.admin-page .admin-activity-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dbe5f7;
  border-radius: 20px;
  background: #fff;
}

.admin-page .admin-activity-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.admin-page .admin-activity-table th,
.admin-page .admin-activity-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e7eefc;
  color: #475569;
  text-align: left;
  vertical-align: top;
  font-size: 0.84rem;
  line-height: 1.35;
}

.admin-page .admin-activity-table th {
  background: #f4f7ff;
  color: #1f3f8f;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-page .admin-activity-table td {
  font-weight: 750;
}

.admin-page .admin-status-badge {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.1);
  color: #2563ff;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 950;
}

@media (max-width: 720px) {
  .admin-page .admin-support-requests {
    padding: 12px;
    border-radius: 18px;
  }

  .admin-page .admin-support-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .admin-page .admin-support-heading h2 {
    font-size: 1.05rem;
  }

  .admin-page .admin-support-heading button {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .admin-page .admin-activity-wrap {
    overflow-x: hidden;
    border: 1px solid #dbe5f7;
    border-radius: 14px;
    background: #ffffff;
  }

  .admin-page .admin-activity-table,
  .admin-page .admin-activity-table thead,
  .admin-page .admin-activity-table tbody,
  .admin-page .admin-activity-table tr {
    display: table;
    width: 100%;
  }

  .admin-page .admin-activity-table {
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
  }

  .admin-page .admin-activity-table thead {
    display: table-header-group;
  }

  .admin-page .admin-activity-table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-page .admin-activity-table tbody tr:nth-child(even) {
    background: #f7faff;
  }

  .admin-page .admin-activity-table th,
  .admin-page .admin-activity-table td {
    display: table-cell;
    padding: 7px 4px;
    border-bottom: 1px solid #e7eefc;
    font-size: 0.48rem;
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
  }

  .admin-page .admin-activity-table th {
    background: #35bdf2;
    color: #ffffff;
    font-size: 0.45rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .admin-page .admin-activity-table td::before {
    content: none;
  }

  .admin-page .admin-status-badge {
    padding: 2px 4px;
    font-size: 0.47rem;
    justify-self: start;
    white-space: normal;
  }

  .admin-page .admin-activity-report-table th:nth-child(1),
  .admin-page .admin-activity-report-table td:nth-child(1) { width: 11%; }
  .admin-page .admin-activity-report-table th:nth-child(2),
  .admin-page .admin-activity-report-table td:nth-child(2) { width: 11%; }
  .admin-page .admin-activity-report-table th:nth-child(3),
  .admin-page .admin-activity-report-table td:nth-child(3) { width: 12%; }
  .admin-page .admin-activity-report-table th:nth-child(4),
  .admin-page .admin-activity-report-table td:nth-child(4) { width: 10%; }
  .admin-page .admin-activity-report-table th:nth-child(5),
  .admin-page .admin-activity-report-table td:nth-child(5) { width: 20%; }
  .admin-page .admin-activity-report-table th:nth-child(6),
  .admin-page .admin-activity-report-table td:nth-child(6) { width: 9%; }
  .admin-page .admin-activity-report-table th:nth-child(7),
  .admin-page .admin-activity-report-table td:nth-child(7) { width: 8%; }
  .admin-page .admin-activity-report-table th:nth-child(8),
  .admin-page .admin-activity-report-table td:nth-child(8) { width: 9%; }
  .admin-page .admin-activity-report-table th:nth-child(9),
  .admin-page .admin-activity-report-table td:nth-child(9) { width: 10%; }

  .admin-page .admin-support-request-table th:nth-child(1),
  .admin-page .admin-support-request-table td:nth-child(1) { width: 16%; }
  .admin-page .admin-support-request-table th:nth-child(2),
  .admin-page .admin-support-request-table td:nth-child(2) { width: 15%; }
  .admin-page .admin-support-request-table th:nth-child(3),
  .admin-page .admin-support-request-table td:nth-child(3) { width: 18%; }
  .admin-page .admin-support-request-table th:nth-child(4),
  .admin-page .admin-support-request-table td:nth-child(4) { width: 18%; }
  .admin-page .admin-support-request-table th:nth-child(5),
  .admin-page .admin-support-request-table td:nth-child(5) { width: 15%; }
  .admin-page .admin-support-request-table th:nth-child(6),
  .admin-page .admin-support-request-table td:nth-child(6) { width: 18%; }
}

/* True EOF lock: admin phone reports stay as compact list tables, not cards. */
@media (max-width: 720px) {
  html body .admin-page .admin-activity-wrap {
    overflow-x: hidden !important;
    border: 1px solid #dbe5f7 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
  }

  html body .admin-page .admin-activity-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  html body .admin-page .admin-activity-table thead {
    display: table-header-group !important;
  }

  html body .admin-page .admin-activity-table tbody {
    display: table-row-group !important;
    width: auto !important;
  }

  html body .admin-page .admin-activity-table tr {
    display: table-row !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body .admin-page .admin-activity-table tbody tr:nth-child(even) {
    background: #f7faff !important;
  }

  html body .admin-page .admin-activity-table th,
  html body .admin-page .admin-activity-table td {
    display: table-cell !important;
    padding: 7px 4px !important;
    border-bottom: 1px solid #e7eefc !important;
    font-size: 0.48rem !important;
    line-height: 1.15 !important;
    vertical-align: top !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  html body .admin-page .admin-activity-table th {
    background: #35bdf2 !important;
    color: #ffffff !important;
    font-size: 0.45rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html body .admin-page .admin-activity-table td::before {
    content: none !important;
  }

  html body .admin-page .admin-status-badge {
    padding: 2px 4px !important;
    font-size: 0.47rem !important;
    white-space: normal !important;
  }
}

/* Final admin mobile report lock: horizontal tables, no vertical letter stacking. */
@media (max-width: 720px) {
  html body .admin-page .admin-activity-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 16px !important;
  }

  html body .admin-page .admin-activity-table {
    width: max-content !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
  }

  html body .admin-page .admin-support-request-table {
    min-width: 560px !important;
  }

  html body .admin-page .admin-activity-report-table {
    min-width: 720px !important;
  }

  html body .admin-page .admin-activity-table thead,
  html body .admin-page .admin-activity-table tbody {
    display: table-header-group !important;
  }

  html body .admin-page .admin-activity-table tbody {
    display: table-row-group !important;
  }

  html body .admin-page .admin-activity-table tr {
    display: table-row !important;
  }

  html body .admin-page .admin-activity-table th,
  html body .admin-page .admin-activity-table td {
    display: table-cell !important;
    padding: 6px 5px !important;
    font-size: 0.63rem !important;
    line-height: 1.22 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    vertical-align: top !important;
  }

  html body .admin-page .admin-activity-table th {
    background: #35bdf2 !important;
    color: #ffffff !important;
    font-size: 0.58rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html body .admin-page .admin-support-request-table th:nth-child(1),
  html body .admin-page .admin-support-request-table td:nth-child(1) { min-width: 74px !important; }
  html body .admin-page .admin-support-request-table th:nth-child(2),
  html body .admin-page .admin-support-request-table td:nth-child(2) { min-width: 68px !important; }
  html body .admin-page .admin-support-request-table th:nth-child(3),
  html body .admin-page .admin-support-request-table td:nth-child(3) { min-width: 100px !important; }
  html body .admin-page .admin-support-request-table th:nth-child(4),
  html body .admin-page .admin-support-request-table td:nth-child(4) { min-width: 105px !important; }
  html body .admin-page .admin-support-request-table th:nth-child(5),
  html body .admin-page .admin-support-request-table td:nth-child(5) { min-width: 96px !important; }
  html body .admin-page .admin-support-request-table th:nth-child(6),
  html body .admin-page .admin-support-request-table td:nth-child(6) {
    min-width: 117px !important;
    white-space: normal !important;
  }

  html body .admin-page .admin-activity-report-table th:nth-child(1),
  html body .admin-page .admin-activity-report-table td:nth-child(1) { min-width: 74px !important; }
  html body .admin-page .admin-activity-report-table th:nth-child(2),
  html body .admin-page .admin-activity-report-table td:nth-child(2) { min-width: 54px !important; }
  html body .admin-page .admin-activity-report-table th:nth-child(3),
  html body .admin-page .admin-activity-report-table td:nth-child(3) { min-width: 78px !important; }
  html body .admin-page .admin-activity-report-table th:nth-child(4),
  html body .admin-page .admin-activity-report-table td:nth-child(4) { min-width: 66px !important; }
  html body .admin-page .admin-activity-report-table th:nth-child(5),
  html body .admin-page .admin-activity-report-table td:nth-child(5) {
    min-width: 112px !important;
    white-space: normal !important;
  }
  html body .admin-page .admin-activity-report-table th:nth-child(6),
  html body .admin-page .admin-activity-report-table td:nth-child(6),
  html body .admin-page .admin-activity-report-table th:nth-child(7),
  html body .admin-page .admin-activity-report-table td:nth-child(7),
  html body .admin-page .admin-activity-report-table th:nth-child(8),
  html body .admin-page .admin-activity-report-table td:nth-child(8) { min-width: 62px !important; }
  html body .admin-page .admin-activity-report-table th:nth-child(9),
  html body .admin-page .admin-activity-report-table td:nth-child(9) { min-width: 66px !important; }

  html body .admin-page .admin-status-badge {
    white-space: nowrap !important;
    font-size: 0.58rem !important;
    padding: 3px 5px !important;
  }
}

/* Final admin report density: tighter columns on desktop and phone. */
html body .admin-page .admin-activity-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .admin-page .admin-activity-table {
  width: max-content !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}

html body .admin-page .admin-support-request-table {
  min-width: 560px !important;
}

html body .admin-page .admin-activity-report-table {
  min-width: 720px !important;
}

html body .admin-page .admin-activity-table th,
html body .admin-page .admin-activity-table td {
  padding: 8px 7px !important;
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

html body .admin-page .admin-activity-table th {
  font-size: 0.68rem !important;
  letter-spacing: 0 !important;
}

html body .admin-page .admin-support-request-table th:nth-child(1),
html body .admin-page .admin-support-request-table td:nth-child(1) { min-width: 82px !important; }
html body .admin-page .admin-support-request-table th:nth-child(2),
html body .admin-page .admin-support-request-table td:nth-child(2) { min-width: 72px !important; }
html body .admin-page .admin-support-request-table th:nth-child(3),
html body .admin-page .admin-support-request-table td:nth-child(3) { min-width: 105px !important; }
html body .admin-page .admin-support-request-table th:nth-child(4),
html body .admin-page .admin-support-request-table td:nth-child(4) { min-width: 110px !important; }
html body .admin-page .admin-support-request-table th:nth-child(5),
html body .admin-page .admin-support-request-table td:nth-child(5) { min-width: 100px !important; }
html body .admin-page .admin-support-request-table th:nth-child(6),
html body .admin-page .admin-support-request-table td:nth-child(6) {
  min-width: 120px !important;
  white-space: normal !important;
}

html body .admin-page .admin-activity-report-table th:nth-child(1),
html body .admin-page .admin-activity-report-table td:nth-child(1) { min-width: 78px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(2),
html body .admin-page .admin-activity-report-table td:nth-child(2) { min-width: 58px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(3),
html body .admin-page .admin-activity-report-table td:nth-child(3) { min-width: 82px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(4),
html body .admin-page .admin-activity-report-table td:nth-child(4) { min-width: 68px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(5),
html body .admin-page .admin-activity-report-table td:nth-child(5) {
  min-width: 118px !important;
  white-space: normal !important;
}
html body .admin-page .admin-activity-report-table th:nth-child(6),
html body .admin-page .admin-activity-report-table td:nth-child(6),
html body .admin-page .admin-activity-report-table th:nth-child(7),
html body .admin-page .admin-activity-report-table td:nth-child(7),
html body .admin-page .admin-activity-report-table th:nth-child(8),
html body .admin-page .admin-activity-report-table td:nth-child(8) { min-width: 64px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(9),
html body .admin-page .admin-activity-report-table td:nth-child(9) { min-width: 70px !important; }

html body .admin-page .admin-status-badge {
  padding: 4px 6px !important;
  font-size: 0.68rem !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  html body .admin-page .admin-activity-table th,
  html body .admin-page .admin-activity-table td {
    padding: 6px 5px !important;
    font-size: 0.63rem !important;
  }

  html body .admin-page .admin-activity-table th {
    font-size: 0.58rem !important;
  }

  html body .admin-page .admin-status-badge {
    padding: 3px 5px !important;
    font-size: 0.58rem !important;
  }
}

@media (max-width: 1040px) {
  body:not(.modern-lhdn-page) .service-page-hero {
    min-height: auto;
    padding-top: 260px;
  }

  body:not(.modern-lhdn-page) .service-hero-art {
    inset: 0 0 auto 0;
    width: 100%;
    height: 320px;
  }

  body:not(.modern-lhdn-page) .service-page-hero::before {
    background: linear-gradient(180deg, rgba(15,20,38,0.08) 0%, rgba(15,20,38,0.95) 56%, rgba(15,20,38,1) 100%);
  }

  #calculator .section-heading,
  .admin-panel .section-heading,
  #calculator .calculator-layout,
  .admin-calculator-layout,
  .fee-banner {
    grid-template-columns: 1fr;
  }

  .results-card {
    position: relative;
    top: auto;
  }

  .procedure-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: -20px;
    padding: 2px 20px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .procedure-grid::-webkit-scrollbar {
    display: none;
  }

  .procedure-grid .step {
    flex: 0 0 min(78vw, 310px);
    min-height: 180px;
    padding: 18px;
    scroll-snap-align: start;
  }
}

@media (max-width: 720px) {
  .service-hero-copy {
    padding: 24px;
  }

  body:not(.modern-lhdn-page) .service-page-hero {
    padding-top: 220px;
  }

  body:not(.modern-lhdn-page) .service-hero-art {
    height: 250px;
  }

  .advanced-results-grid,
  .results-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .service-detail-row {
    grid-template-columns: 1fr;
  }
}

/* Bright calculator refresh */
#calculator .calculator-layout,
#calculator .advanced-calculator-layout {
  align-items: start;
}

#calculator .calculator-card,
#calculator .advanced-calculator-card {
  border: 1px solid rgba(35, 104, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    #fff;
  color: var(--new-text);
  box-shadow: 0 18px 48px rgba(25, 30, 60, 0.08);
}

#calculator .calculator-card .field label,
#calculator .calculator-card .calculator-note {
  color: var(--new-muted);
}

#calculator .calculator-card .field input,
#calculator .calculator-card .field select {
  border: 1px solid rgba(35, 104, 255, 0.14);
  background: #fff;
  color: var(--new-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#calculator .calculator-card .field input:focus,
#calculator .calculator-card .field select:focus {
  border-color: rgba(35, 104, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(35, 104, 255, 0.12);
  outline: none;
}

#calculator .calculator-note {
  padding: 14px 16px;
  border: 1px solid rgba(0, 200, 117, 0.16);
  border-radius: 14px;
  background: rgba(0, 200, 117, 0.07);
}

#calculator .results-card {
  border: 1px solid rgba(35, 104, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94)),
    #fff;
  box-shadow: 0 18px 48px rgba(25, 30, 60, 0.08);
}

#calculator .results-head {
  border-bottom-color: rgba(35, 104, 255, 0.12);
}

#calculator .results-kicker {
  color: var(--new-blue);
}

#calculator .result-context,
#calculator .result-helper {
  border: 1px solid rgba(35, 104, 255, 0.10);
  background: rgba(255, 255, 255, 0.76);
}

#calculator .result-box,
#calculator .advanced-results-grid .result-box,
#calculator .results-grid .result-box {
  border: 1px solid rgba(35, 104, 255, 0.10);
  background: #fff;
  color: var(--new-text);
  box-shadow: 0 10px 24px rgba(25, 30, 60, 0.05);
}

#calculator .result-box:first-child,
#calculator .advanced-results-grid .result-box:first-child {
  background:
    linear-gradient(135deg, rgba(35, 104, 255, 0.10), rgba(0, 200, 117, 0.08)),
    #fff;
  color: var(--new-text);
}

#calculator .result-box:first-child .result-label,
#calculator .result-box:first-child .result-value {
  color: var(--new-text);
}

#calculator .result-box.highlight {
  background: linear-gradient(135deg, rgba(0, 200, 117, 0.10), rgba(35, 104, 255, 0.06));
}

#calculator .result-box.total {
  background: linear-gradient(135deg, rgba(35, 104, 255, 0.12), rgba(255, 159, 26, 0.12));
}

#calculator .result-box.total .result-value {
  color: var(--new-blue);
}

/* LHDN page alignment with the refreshed landing page */
.modern-lhdn-page {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 48%, #f4f7fb 100%);
  color: #171725;
}

.modern-lhdn-page .site-bg {
  display: none;
}

.modern-lhdn-page .page-shell.service-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.modern-lhdn-page .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(230px, auto) minmax(360px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 20px;
  min-height: 78px;
  width: 100%;
  padding: 8px clamp(16px, 4vw, 58px);
  border: 0;
  border-bottom: 1px solid rgba(231, 233, 241, 0.92);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.modern-lhdn-page .brand {
  display: inline-flex;
  gap: 10px;
  min-width: 0;
  grid-column: 1;
}

.modern-lhdn-page .brand-logo {
  width: 60px;
  height: 60px;
}

.modern-lhdn-page .brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  background: linear-gradient(112deg, #56616f 0%, #7b8491 22%, #68727f 48%, #858e9b 72%, #5c6674 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 5px 14px rgba(65, 73, 86, 0.2);
}

.modern-lhdn-page .brand-initial,
.modern-lhdn-page .brand-rest {
  font-family: "Cormorant Garamond", "Bodoni 72", "Didot", "Times New Roman", serif;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.08;
  transform: none;
}

.modern-lhdn-page .brand-initial {
  display: inline;
  background: linear-gradient(112deg, #4f5a68 0%, #7c8592 28%, #626c7a 52%, #89929d 76%, #56606e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
  font-weight: 700;
}

.modern-lhdn-page .brand-rest {
  max-width: none;
  white-space: normal;
  color: inherit;
  font-weight: 700;
}

.modern-lhdn-page .nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  grid-column: 2;
  color: #656b7b;
  font-size: 0.94rem;
  font-weight: 800;
}

.modern-lhdn-page .nav a:hover {
  color: #2563ff;
}

.modern-lhdn-page .nav .nav-calculator {
  color: #2563ff;
  font-weight: 900;
}

.modern-lhdn-page .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  grid-column: 3;
  width: max-content;
  max-width: max-content;
  height: 46px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #e1e6f2;
  border-radius: 999px;
  background: #fff;
  color: #687084;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(23, 23, 37, 0.06);
}

.modern-lhdn-page .nav-cta {
  grid-column: 4;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.94rem;
  border-radius: 999px;
  color: #fff;
  background: #101322;
  box-shadow: none;
}

.modern-lhdn-page .lang-toggle {
  grid-column: 6;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 46px;
  padding: 0;
  border: 1px solid #e1e6f2;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(23, 23, 37, 0.05);
}

.modern-lhdn-page .theme-toggle {
  grid-column: 5;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #e1e6f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #656b7b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(23, 23, 37, 0.08);
}

.modern-lhdn-page .theme-toggle span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #15213d;
  box-shadow: inset -4px -3px 0 #ffffff;
}

.modern-lhdn-page[data-theme="dark"] .theme-toggle span {
  background: #ffd166;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.18);
}

.modern-lhdn-page .theme-toggle b {
  line-height: 1;
}

.modern-lhdn-page .lang-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15em;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0;
}

.modern-lhdn-page .swipe-hint {
  display: none;
  margin: 8px 0 0;
  color: #2563ff;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.modern-lhdn-page main {
  width: 100%;
  margin: 0;
}

.modern-lhdn-page .service-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: min(1320px, calc(100% - 36px));
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px) 0 26px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.modern-lhdn-page .service-page-hero::before {
  content: "";
  position: absolute;
  inset: 10% -8% auto auto;
  z-index: -1;
  width: 58%;
  height: 58%;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(37, 99, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 255, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 72%, transparent);
}

.modern-lhdn-page .service-hero-copy {
  max-width: 620px;
  padding: 0;
  color: #171725;
}

.modern-lhdn-page .eyebrow,
.modern-lhdn-page .section-kicker,
.modern-lhdn-page .results-kicker {
  color: #2563ff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.modern-lhdn-page .eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00c875;
  box-shadow: 0 0 0 7px rgba(0, 200, 117, 0.14);
}

.modern-lhdn-page .service-page-hero h1 {
  margin: 18px 0 0;
  max-width: 10ch;
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0;
  color: #171725;
}

.modern-lhdn-page .lede {
  max-width: 55ch;
  margin: 24px 0 0;
  color: #656b7b;
  font-size: clamp(1.03rem, 1.35vw, 1.22rem);
  line-height: 1.72;
}

.modern-lhdn-page .page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.modern-lhdn-page .button {
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
}

.modern-lhdn-page .button-primary {
  color: #fff;
  background: #2563ff;
  box-shadow: 0 18px 36px rgba(37, 99, 255, 0.24);
}

.modern-lhdn-page .button-secondary {
  border-color: #e7e9f1;
  background: #fff;
  color: #171725;
}

.modern-lhdn-page .service-hero-art {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 430px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  perspective: 1200px;
}

.modern-lhdn-page .service-hero-art::before {
  content: "";
  position: absolute;
  inset: 56px 18px 38px 0;
  overflow: hidden;
  border: 1px solid #e7e9f1;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(246, 248, 252, 0.92), rgba(255, 255, 255, 0.8)),
    #fff;
  box-shadow: 0 24px 70px rgba(23, 23, 37, 0.12);
  transform: rotateX(4deg) rotateY(-8deg) rotateZ(1deg);
  animation: modernLhdnStage 8s ease-in-out infinite;
}

.modern-lhdn-page .service-hero-art::after {
  content: "RM35";
  position: absolute;
  right: 5%;
  bottom: 11%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 150px;
  height: 76px;
  border: 1px solid #e7e9f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(23, 23, 37, 0.14);
  color: #171725;
  font-size: 1.65rem;
  font-weight: 900;
  animation: modernLhdnFloat 6s ease-in-out infinite -2s;
}

.modern-lhdn-page .service-hero-art .hero-panel-inner {
  display: none;
}

.modern-lhdn-page .service-hero-art.lhdn {
  isolation: isolate;
  pointer-events: none;
  overflow: visible;
  user-select: none;
}

.modern-lhdn-page .service-hero-art.lhdn::before {
  inset: 0;
  transform: none;
  animation: modernLhdnFloat 7s ease-in-out infinite;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(16, 19, 34, 0.18)),
    url("assets/lhdn-fast-service-hero.png") center top / cover no-repeat,
    #fff !important;
}

.modern-lhdn-page .service-hero-art.lhdn::after {
  top: 28px;
  right: auto;
  bottom: auto;
  left: 28px;
  color: #2563ff;
}

.modern-lhdn-page .service-page-grid,
.modern-lhdn-page .section {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(74px, 9vw, 112px) auto;
}

.modern-lhdn-page .section-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.modern-lhdn-page .section-heading.split {
  grid-template-columns: 1fr;
}

.modern-lhdn-page .section-heading h2,
.modern-lhdn-page .calculator-title,
.modern-lhdn-page .service-panel h2,
.modern-lhdn-page .contact-footer-copy h2 {
  max-width: 840px;
  margin: 0;
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(2.05rem, 4.3vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: #171725;
}

.modern-lhdn-page .section-heading p {
  max-width: 620px;
  justify-self: center;
  margin: 0;
  color: #656b7b;
}

.modern-lhdn-page .calculator-title-with-guide {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.modern-lhdn-page #calculator .section-heading {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(205, 215, 238, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 24%, rgba(37, 99, 255, 0.12), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(255, 159, 26, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(247, 250, 255, 0.98), rgba(255, 250, 246, 0.92)),
    #fff;
  box-shadow: 0 22px 60px rgba(23, 23, 37, 0.08);
}

.modern-lhdn-page #calculator .section-heading::after {
  content: "";
  position: absolute;
  inset: auto 24px 18px auto;
  width: 118px;
  height: 46px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(37, 99, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 255, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.55;
  pointer-events: none;
}

.modern-lhdn-page .calculator-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.07);
  color: #2563ff;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.modern-lhdn-page .calculator-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9f1a;
  box-shadow: 0 0 0 6px rgba(255, 159, 26, 0.13);
}

.modern-lhdn-page .calculator-title-text {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.22em;
}

.modern-lhdn-page .calculator-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
}

.modern-lhdn-page .calculator-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #2563ff;
  background: transparent;
  box-shadow: none;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.modern-lhdn-page .calculator-guide-link:hover {
  transform: translateY(-1px);
}

.modern-lhdn-page .guide-sign {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #2563ff, #18c7a7);
  font-size: 0.68rem;
  font-weight: 950;
}

.modern-lhdn-page .service-panel,
.modern-lhdn-page .detail-card,
.modern-lhdn-page .fee-banner,
.modern-lhdn-page .guideline-card,
.modern-lhdn-page .contact-footer {
  border: 1px solid #e7e9f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(23, 23, 37, 0.08);
}

.modern-lhdn-page .check-list li,
.modern-lhdn-page .step,
.modern-lhdn-page .service-card.static-card {
  border: 1px solid #e7e9f1;
  border-radius: 16px;
  background: #f6f8fc;
  color: #171725;
}

.modern-lhdn-page .rate-scroll-panel,
.modern-lhdn-page .guideline-image-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 255, 0.45) transparent;
}

.modern-lhdn-page .fee-banner-left strong {
  display: block;
  margin-top: 6px;
  color: #2563ff;
  font-size: clamp(1.8rem, 3.25vw, 3.25rem);
  line-height: 1.05;
  max-width: 8.5em;
}

.modern-lhdn-page .deep-blue-text {
  color: #3b6fd8;
  font-weight: 900;
}

.modern-lhdn-page .fee-banner-separated {
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: clamp(20px, 2.5vw, 30px);
}

.modern-lhdn-page .fee-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.modern-lhdn-page .fee-notes li {
  display: flex;
  align-items: flex-start;
  min-height: 84px;
  padding: 20px 22px 20px 54px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.modern-lhdn-page .fee-notes li::before {
  top: 28px;
  transform: none;
}

.modern-lhdn-page .guideline-card {
  padding: clamp(24px, 3vw, 34px);
}

.modern-lhdn-page .guideline-card p,
.modern-lhdn-page .guideline-card li {
  line-height: 1.45;
}

.modern-lhdn-page .verify-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.modern-lhdn-page .verify-copy {
  align-self: stretch;
  padding: 22px;
  border: 1px solid #dfe6f6;
  border-radius: 18px;
  background: #f7f9ff;
}

.modern-lhdn-page .verify-copy p {
  margin: 12px 0 12px;
}

.modern-lhdn-page .verify-copy ol {
  margin: 0;
  padding-left: 24px;
}

.modern-lhdn-page .verify-alert {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  background: rgba(37, 99, 255, 0.11);
  color: #2563ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 255, 0.10);
}

.modern-lhdn-page .verify-blue {
  color: #2457ad;
}

.modern-lhdn-page .verify-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.modern-lhdn-page .verify-gallery figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e0e6f4;
  border-radius: 18px;
  background: #fff;
}

.modern-lhdn-page .verify-gallery a,
.modern-lhdn-page .verify-gallery img {
  display: block;
  width: 100%;
  height: 100%;
}

.modern-lhdn-page .verify-gallery img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.modern-lhdn-page #calculator {
  width: min(1180px, calc(100% - 36px));
}

.modern-lhdn-page #calculator .section-heading {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
}

.modern-lhdn-page #calculator .calculator-layout {
  grid-template-columns: minmax(320px, 0.52fr) minmax(0, 1fr);
}

.modern-lhdn-page .contact-footer {
  background:
    linear-gradient(120deg, rgba(37, 99, 255, 0.24), transparent 35%),
    linear-gradient(300deg, rgba(0, 200, 117, 0.2), transparent 34%),
    #101322;
  color: #fff;
}

.modern-lhdn-page .contact-footer-copy h2,
.modern-lhdn-page .contact-footer .section-kicker {
  color: #fff;
}

.modern-lhdn-page .contact-footer .meta-label,
.modern-lhdn-page .contact-footer .meta-value,
.modern-lhdn-page .contact-footer .meta-link {
  color: rgba(255, 255, 255, 0.72);
}

.modern-lhdn-page .contact {
  width: min(1240px, calc(100% - 34px));
  margin: 98px auto 0;
  padding: clamp(46px, 7vw, 82px);
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(120deg, rgba(37, 99, 255, 0.24), transparent 35%),
    linear-gradient(300deg, rgba(0, 200, 117, 0.2), transparent 34%),
    #101322;
  color: #fff;
  text-align: center;
}

.modern-lhdn-page .contact-inner {
  display: grid;
  justify-items: center;
}

.modern-lhdn-page .contact h2 {
  max-width: 980px;
  margin-top: 12px;
  color: #fff;
}

.modern-lhdn-page .contact p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.72;
}

.modern-lhdn-page .contact-actions {
  justify-content: center;
}

.modern-lhdn-page .contact .button-secondary {
  min-width: 210px;
  color: #101322;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 26px rgba(255, 255, 255, 0.08);
}

.modern-lhdn-page .contact .button-secondary:hover {
  color: #101322;
  border-color: #fff;
  background: #f8fbff;
}

.modern-lhdn-page .contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.modern-lhdn-page .footer-legal {
  margin: 0;
  background: #101322;
}

.modern-lhdn-page[data-theme="dark"] {
  --new-text: #f5f7ff;
  --new-muted: #b8c1d6;
  --new-line: rgba(155, 172, 210, 0.28);
  --new-soft: #17213a;
  --new-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  background:
    radial-gradient(circle at top right, rgba(35, 104, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #0b1020 0%, #10182d 48%, #0b1020 100%);
  color: var(--new-text);
}

.modern-lhdn-page[data-theme="dark"] .topbar {
  border-bottom-color: rgba(155, 172, 210, 0.2);
  background: rgba(10, 15, 30, 0.88);
}

.modern-lhdn-page[data-theme="dark"] .review-promo-bar {
  color: #f8fbff;
  background: #1d4ed8;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.modern-lhdn-page[data-theme="dark"] .review-promo-bar strong {
  color: #ffea00;
}

.modern-lhdn-page[data-theme="dark"] .review-promo-dot {
  box-shadow: 0 0 0 5px rgba(255, 159, 26, 0.18);
}

@media (max-width: 720px) {
  .review-promo-bar {
    justify-content: space-between;
    gap: 6px;
    min-height: 30px;
    padding: 6px 8px;
    font-size: clamp(0.58rem, 2.45vw, 0.72rem);
    line-height: 1;
    white-space: nowrap;
  }

  .review-promo-message {
    min-width: 0;
    overflow: hidden;
  }

  .review-promo-message > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .review-promo-updates {
    position: static;
    flex: 0 0 auto;
    transform: none;
    font-size: clamp(0.58rem, 2.35vw, 0.7rem);
  }

  .review-promo-dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  }
}

.modern-lhdn-page[data-theme="dark"] .brand-logo {
  border-radius: 999px;
  padding: 4px;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.modern-lhdn-page[data-theme="dark"] .brand-name,
.modern-lhdn-page[data-theme="dark"] .brand-initial {
  background: none !important;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #eef4ff !important;
  text-shadow: none;
}

.modern-lhdn-page[data-theme="dark"] .brand-initial,
.modern-lhdn-page[data-theme="dark"] .brand-rest,
.modern-lhdn-page[data-theme="dark"] .brand-part {
  background: none !important;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #eef4ff !important;
  text-shadow: none;
}

.modern-lhdn-page[data-theme="dark"] .nav,
.modern-lhdn-page[data-theme="dark"] .menu-toggle,
.modern-lhdn-page[data-theme="dark"] .theme-toggle,
.modern-lhdn-page[data-theme="dark"] .lang-toggle,
.modern-lhdn-page[data-theme="dark"] .button-secondary {
  border-color: rgba(155, 172, 210, 0.28);
  background: rgba(17, 24, 43, 0.84);
  color: #e8edff;
}

.modern-lhdn-page[data-theme="dark"] .nav a:hover,
.modern-lhdn-page[data-theme="dark"] .nav .nav-calculator,
.modern-lhdn-page[data-theme="dark"] .menu-toggle:hover {
  color: #82a6ff;
}

.modern-lhdn-page[data-theme="dark"] h1,
.modern-lhdn-page[data-theme="dark"] h2,
.modern-lhdn-page[data-theme="dark"] h3,
.modern-lhdn-page[data-theme="dark"] .service-panel h2,
.modern-lhdn-page[data-theme="dark"] .fee-banner-left strong,
.modern-lhdn-page[data-theme="dark"] .calculator-title strong {
  color: #f5f7ff;
}

.modern-lhdn-page[data-theme="dark"] .service-hero,
.modern-lhdn-page[data-theme="dark"] .section,
.modern-lhdn-page[data-theme="dark"] .service-panel,
.modern-lhdn-page[data-theme="dark"] .doc-list-card,
.modern-lhdn-page[data-theme="dark"] .process-panel,
.modern-lhdn-page[data-theme="dark"] .process-card,
.modern-lhdn-page[data-theme="dark"] .fee-banner,
.modern-lhdn-page[data-theme="dark"] .guideline-card,
.modern-lhdn-page[data-theme="dark"] .calculator-shell,
.modern-lhdn-page[data-theme="dark"] .calculator-card,
.modern-lhdn-page[data-theme="dark"] .results-card,
.modern-lhdn-page[data-theme="dark"] .rate-card,
.modern-lhdn-page[data-theme="dark"] .contact-inner,
.modern-lhdn-page[data-theme="dark"] .service-link,
.modern-lhdn-page[data-theme="dark"] .rate-scroll-panel,
.modern-lhdn-page[data-theme="dark"] .verification-card,
.modern-lhdn-page[data-theme="dark"] .rule-card {
  border-color: rgba(155, 172, 210, 0.24);
  background: rgba(17, 24, 43, 0.78);
  color: var(--new-text);
}

.modern-lhdn-page[data-theme="dark"] .hero-media,
.modern-lhdn-page[data-theme="dark"] .doc-list,
.modern-lhdn-page[data-theme="dark"] .fee-notes li,
.modern-lhdn-page[data-theme="dark"] .check-list li,
.modern-lhdn-page[data-theme="dark"] .step,
.modern-lhdn-page[data-theme="dark"] .service-card.static-card,
.modern-lhdn-page[data-theme="dark"] .guideline-image-scroll,
.modern-lhdn-page[data-theme="dark"] .service-window,
.modern-lhdn-page[data-theme="dark"] .workspace-main,
.modern-lhdn-page[data-theme="dark"] .workspace-menu,
.modern-lhdn-page[data-theme="dark"] .status-card,
.modern-lhdn-page[data-theme="dark"] .mini-card {
  border-color: rgba(155, 172, 210, 0.24);
  background: rgba(12, 18, 34, 0.8);
}

.modern-lhdn-page[data-theme="dark"] .check-list li,
.modern-lhdn-page[data-theme="dark"] .step,
.modern-lhdn-page[data-theme="dark"] .service-card.static-card {
  color: #f5f7ff;
}

.modern-lhdn-page[data-theme="dark"] .check-list li strong,
.modern-lhdn-page[data-theme="dark"] .step strong,
.modern-lhdn-page[data-theme="dark"] .service-card.static-card strong {
  color: #f5f7ff;
}

.modern-lhdn-page[data-theme="dark"] p,
.modern-lhdn-page[data-theme="dark"] small,
.modern-lhdn-page[data-theme="dark"] .service-intro,
.modern-lhdn-page[data-theme="dark"] .rate-reference-note,
.modern-lhdn-page[data-theme="dark"] .calculator-note,
.modern-lhdn-page[data-theme="dark"] .contact-meta,
.modern-lhdn-page[data-theme="dark"] .service-link small,
.modern-lhdn-page[data-theme="dark"] .fee-notes span {
  color: var(--new-muted);
}

.modern-lhdn-page[data-theme="dark"] input,
.modern-lhdn-page[data-theme="dark"] select,
.modern-lhdn-page[data-theme="dark"] textarea {
  border-color: rgba(155, 172, 210, 0.28);
  background: rgba(8, 13, 25, 0.88);
  color: var(--new-text);
}

.modern-lhdn-page[data-theme="dark"] .services-dropdown-panel,
.modern-lhdn-page[data-theme="dark"] .support-panel {
  border-color: rgba(155, 172, 210, 0.28);
  background: rgba(12, 18, 34, 0.96);
  color: var(--new-text);
}

/* Bright admin calculator refresh */
.admin-page .calculator-card,
.admin-page .advanced-calculator-card,
.admin-page .results-card {
  border: 1px solid rgba(35, 104, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    #fff;
  color: var(--new-text);
  box-shadow: 0 18px 48px rgba(25, 30, 60, 0.08);
}

.admin-page .calculator-card .field label,
.admin-page .calculator-card .calculator-note {
  color: var(--new-muted);
}

.admin-page .calculator-card .field input,
.admin-page .calculator-card .field select,
.admin-page .calculator-card .field textarea {
  border: 1px solid rgba(35, 104, 255, 0.14);
  background: #fff;
  color: var(--new-text);
  font-family: inherit;
}

.admin-page .result-box,
.admin-page .advanced-results-grid .result-box,
.admin-page .results-grid .result-box {
  border: 1px solid rgba(35, 104, 255, 0.10);
  background: #fff;
  color: var(--new-text);
  box-shadow: 0 10px 24px rgba(25, 30, 60, 0.05);
}

.admin-page .result-box:first-child,
.admin-page .advanced-results-grid .result-box:first-child {
  background:
    linear-gradient(135deg, rgba(35, 104, 255, 0.10), rgba(0, 200, 117, 0.08)),
    #fff;
  color: var(--new-text);
}

.admin-page .result-box:first-child .result-label,
.admin-page .result-box:first-child .result-value {
  color: var(--new-text);
}

.admin-page .advanced-results-grid .result-box:not(.total) .result-value,
.admin-page .results-grid .result-box:not(.total) .result-value {
  color: var(--new-blue);
}

.admin-page .result-box.highlight {
  border-color: rgba(123, 72, 255, 0.20);
  background: linear-gradient(135deg, rgba(123, 72, 255, 0.13), rgba(35, 104, 255, 0.06));
}

.admin-page .result-box.total {
  background: linear-gradient(135deg, rgba(35, 104, 255, 0.12), rgba(255, 159, 26, 0.12));
}

.admin-page .result-box.total .result-value {
  color: var(--new-blue);
}

@keyframes modernLhdnStage {
  0%, 100% { transform: rotateX(4deg) rotateY(-8deg) rotateZ(1deg) translateY(0); }
  50% { transform: rotateX(3deg) rotateY(-5deg) rotateZ(0deg) translateY(-10px); }
}

@keyframes modernLhdnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1120px) {
  .modern-lhdn-page .service-page-hero,
  .modern-lhdn-page #calculator .calculator-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .modern-lhdn-page .topbar {
    grid-template-columns: 1fr auto auto auto;
  }

  .modern-lhdn-page .brand {
    grid-column: 1;
  }

  .modern-lhdn-page .nav {
    display: none;
  }

  .modern-lhdn-page .menu-toggle {
    display: inline-flex;
    grid-column: 2;
  }

  .modern-lhdn-page .nav-cta {
    grid-column: 3;
  }

  .modern-lhdn-page .lang-toggle {
    grid-column: 4;
  }

  .modern-lhdn-page .topbar.menu-open .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: clamp(14px, 4vw, 34px);
    z-index: 40;
    display: grid;
    min-width: min(260px, calc(100vw - 28px));
    gap: 4px;
    padding: 12px;
    border: 1px solid #e1e6f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 54px rgba(23, 23, 37, 0.14);
    backdrop-filter: blur(16px);
  }

  .modern-lhdn-page .topbar.menu-open .nav a {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .modern-lhdn-page .topbar.menu-open .nav a:hover {
    background: #f6f8fc;
  }

  .modern-lhdn-page .topbar.menu-open .nav .nav-service-dropdown {
    display: grid;
  }

  .modern-lhdn-page .topbar.menu-open .services-dropdown-panel {
    position: static;
    min-width: 0;
    margin-top: 4px;
    padding: 6px;
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 720px) {
  html,
  .modern-lhdn-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  .modern-lhdn-page main,
  .modern-lhdn-page .page-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .modern-lhdn-page .swipe-hint {
    display: block;
  }

  .modern-lhdn-page .topbar {
    grid-template-columns: minmax(50px, 1fr) auto auto auto auto;
    justify-content: normal;
    gap: 6px;
    min-height: 70px;
    padding-inline: 10px;
  }

  .modern-lhdn-page .brand-logo {
    width: 50px;
    height: 50px;
  }

  .modern-lhdn-page .brand {
    width: 50px;
    gap: 0;
  }

  .modern-lhdn-page .brand-name {
    display: none;
  }

  .modern-lhdn-page .nav-cta {
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .modern-lhdn-page .lang-toggle {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }

  .modern-lhdn-page .theme-toggle {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .modern-lhdn-page .theme-toggle b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .modern-lhdn-page .menu-toggle {
    min-height: 40px;
    padding: 9px 12px;
  }

  .modern-lhdn-page .service-page-hero {
    width: min(100% - 24px, 1320px);
    min-height: 0;
    margin-bottom: 28px;
    padding-top: 14px;
  }

  .modern-lhdn-page .service-page-hero h1 {
    font-size: clamp(2.35rem, 9.6vw, 3.08rem);
  }

  .modern-lhdn-page .service-hero-art {
    min-height: 330px;
  }

  .modern-lhdn-page .service-hero-art::before {
    inset: 26px 0 52px 0;
    transform: none;
    animation: none;
  }

  .modern-lhdn-page .service-hero-art::after {
    right: 12px;
    bottom: 8px;
    width: 124px;
    height: 64px;
    font-size: 1.35rem;
    animation: none;
  }

  .modern-lhdn-page .service-page-grid,
  .modern-lhdn-page .section,
  .modern-lhdn-page #calculator {
    width: min(100% - 24px, 1180px);
    max-width: calc(100vw - 24px);
    margin: 26px auto;
    overflow-x: clip;
  }

  .modern-lhdn-page .service-panel,
  .modern-lhdn-page .detail-card,
  .modern-lhdn-page .fee-banner,
  .modern-lhdn-page .guideline-card {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 18px;
    overflow: hidden;
  }

  .modern-lhdn-page .fee-banner-separated {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .modern-lhdn-page .fee-banner-left strong {
    max-width: 100%;
    font-size: clamp(1.88rem, 8.8vw, 2.35rem);
    line-height: 1.08;
    white-space: normal !important;
    overflow-wrap: normal;
  }

  .modern-lhdn-page .fee-notes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modern-lhdn-page .rate-scroll-panel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: -4px;
    padding: 2px 4px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .modern-lhdn-page .rate-scroll-panel .service-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  .modern-lhdn-page .guideline-scroll-panel {
    max-height: none;
    overflow: visible;
  }

  .modern-lhdn-page .guideline-image-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 14px;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .modern-lhdn-page .guideline-image-scroll figure {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  .modern-lhdn-page .verify-block {
    display: block;
    margin-top: 18px;
  }

  .modern-lhdn-page .verify-copy {
    padding: 16px;
    margin-bottom: 14px;
  }

  .modern-lhdn-page .verify-gallery img {
    aspect-ratio: 4 / 5;
  }

  .modern-lhdn-page .fee-notes li {
    display: block;
    min-height: 0;
    padding: 14px 14px 14px 42px;
    font-size: 0.92rem;
    line-height: 1.48;
    font-weight: 800;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .modern-lhdn-page .fee-notes li::before {
    top: 18px;
    left: 16px;
  }

  .modern-lhdn-page #advancedSigningDate {
    text-align: left !important;
    direction: ltr;
  }

  .modern-lhdn-page .service-panel h2,
  .modern-lhdn-page .section-heading h2,
  .modern-lhdn-page .calculator-title,
  .modern-lhdn-page .contact-footer-copy h2 {
    font-size: clamp(1.75rem, 8vw, 2.38rem);
    line-height: 1.05;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .modern-lhdn-page .contact-meta span:last-child {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .modern-lhdn-page .service-intro {
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .modern-lhdn-page .compact-mobile-heading .section-kicker {
    font-size: 0.72rem !important;
  }

  .modern-lhdn-page .compact-mobile-heading .section-heading h2 {
    font-size: clamp(1.62rem, 7vw, 2rem) !important;
    line-height: 1.08 !important;
  }

  .modern-lhdn-page .check-list {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
  }

  .modern-lhdn-page .check-list li {
    min-height: 44px;
    padding: 9px 10px 9px 28px;
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .modern-lhdn-page .check-list li::before {
    left: 10px;
    top: 14px;
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(0,200,117,0.10);
  }

  .modern-lhdn-page .fee-banner .fee-notes {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .modern-lhdn-page .fee-banner .fee-notes li {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 14px 14px 14px 42px;
    font-size: 0.92rem;
    line-height: 1.48;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  .modern-lhdn-page .fee-banner .fee-notes li strong,
  .modern-lhdn-page .fee-banner .fee-notes li span {
    display: block;
    white-space: normal !important;
  }

  .modern-lhdn-page .fee-banner .fee-notes li strong {
    color: #123c8c;
    font-size: 0.96rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .modern-lhdn-page .fee-banner .fee-notes li span {
    margin-top: 3px;
    color: #656b7b;
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .modern-lhdn-page .fee-banner .fee-notes li::before {
    left: 16px;
    top: 18px;
  }
}

/* Final theme lock: WhatsApp teal + warm orange accents */
:root {
  --whatsapp: #18c7a7;
  --whatsapp-dark: #10a98d;
  --accent-orange: #ff8a1f;
}

.nav-cta,
.service-page .nav-cta,
.modern-lhdn-page .nav-cta,
a[href*="wa.me"].button-primary,
.contact-actions a[href*="wa.me"] {
  min-height: 42px !important;
  height: 42px !important;
  padding: 9px 16px !important;
  font-size: 0.94rem !important;
  background: linear-gradient(135deg, var(--whatsapp), #25d366) !important;
  color: #fff !important;
  box-shadow: 0 18px 36px rgba(24, 199, 167, 0.26) !important;
}

.nav-cta:hover,
.service-page .nav-cta:hover,
.modern-lhdn-page .nav-cta:hover,
a[href*="wa.me"].button-primary:hover,
.contact-actions a[href*="wa.me"]:hover {
  background: linear-gradient(135deg, var(--whatsapp-dark), #18c45c) !important;
}

.modern-lhdn-page .service-hero-art.lhdn::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(16, 19, 34, 0.22)),
    url("assets/lhdn-fast-service-hero.png") center top / cover no-repeat,
    #fff !important;
}

.modern-lhdn-page .eyebrow::before {
  background: var(--accent-orange) !important;
  box-shadow: 0 0 0 7px rgba(255, 138, 31, 0.16) !important;
}

.modern-lhdn-page .section-kicker,
.modern-lhdn-page .results-kicker,
.results-kicker {
  color: var(--accent-orange) !important;
}

.modern-lhdn-page .service-hero-art::after,
#calculator .result-box.total .result-value,
.admin-page .result-box.total .result-value {
  color: var(--accent-orange) !important;
}

#calculator .result-box.total,
.admin-page .result-box.total {
  background: linear-gradient(135deg, rgba(255, 138, 31, 0.14), rgba(24, 199, 167, 0.10)) !important;
}

/* LHDN final polish: align quotation with calculator and replace old service grid */
.modern-lhdn-page #calculator .calculator-layout,
.modern-lhdn-page #calculator .advanced-calculator-layout {
  align-items: start !important;
}

.modern-lhdn-page #calculator .calculator-card,
.modern-lhdn-page #calculator .advanced-calculator-card,
.modern-lhdn-page #calculator .results-card {
  align-self: start !important;
  margin-top: 0 !important;
}

.modern-lhdn-page #calculator .results-card {
  position: relative !important;
  top: auto !important;
  padding-top: clamp(28px, 3vw, 42px) !important;
}

.modern-lhdn-page #calculator .results-kicker {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
}

.modern-lhdn-page .other-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.modern-lhdn-page .service-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(35, 104, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(35, 104, 255, 0.04), rgba(24, 199, 167, 0.04)),
    #fff;
  color: var(--new-text);
  box-shadow: 0 16px 34px rgba(18, 25, 45, 0.06);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.modern-lhdn-page .service-link:hover {
  transform: translateY(-3px);
  border-color: rgba(35, 104, 255, 0.24);
  box-shadow: 0 22px 42px rgba(18, 25, 45, 0.1);
}

.modern-lhdn-page .service-link img {
  width: 58px;
  height: 58px;
  padding: 9px;
  border-radius: 16px;
  background: #f6f8fc;
  object-fit: contain;
}

.modern-lhdn-page .service-link img[src*="brand-ssm-transparent"],
.modern-lhdn-page .service-link img[src*="brand-mytax-transparent"],
.modern-lhdn-page .service-link img[src*="tnb_logo"],
.modern-lhdn-page .service-link img[src*="pdf_logo"] {
  width: 86px;
  height: 66px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.modern-lhdn-page .service-link img[src*="brand-lhdn-cropped"],
.modern-lhdn-page .service-link img[src*="pdf_logo"] {
  width: 70px;
  height: 58px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.modern-lhdn-page .service-link img[src*="business-signboard"],
.modern-lhdn-page .service-link img[src*="tenancy.webp"] {
  width: 86px;
  height: 66px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  object-fit: cover;
}

.modern-lhdn-page .service-link strong,
.modern-lhdn-page .service-link small {
  display: block;
}

.modern-lhdn-page .service-link strong {
  font-size: 1.02rem;
  line-height: 1.18;
}

.modern-lhdn-page .service-link small {
  margin-top: 5px;
  color: var(--new-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .modern-lhdn-page .other-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .modern-lhdn-page .other-services {
    grid-template-columns: 1fr;
  }

  .modern-lhdn-page #other-services .section-heading h2 {
    font-size: clamp(1.62rem, 7vw, 2.05rem);
    line-height: 1.12;
  }
}

/* Mobile header lock for the LHDN page so it matches the other service pages. */
@media (max-width: 980px) {
  .modern-lhdn-page .nav {
    display: none !important;
  }

  .modern-lhdn-page .topbar.menu-open .nav {
    display: grid !important;
  }
}

@media (max-width: 720px) {
  .modern-lhdn-page .brand-name,
  .modern-lhdn-page .brand-copy {
    display: none !important;
  }

  .modern-lhdn-page .topbar {
    grid-template-columns: minmax(50px, 1fr) auto auto auto !important;
    justify-content: normal !important;
    gap: 8px !important;
    min-height: 70px !important;
    padding-inline: 10px !important;
  }

  .modern-lhdn-page #calculator {
    margin-top: 26px !important;
  }

  .modern-lhdn-page #calculator .section-heading {
    gap: 6px !important;
    margin-bottom: 14px !important;
    padding: 14px 12px 13px !important;
    border: 1px solid #e1e7f5 !important;
    border-radius: 20px !important;
    background:
      linear-gradient(135deg, rgba(37, 99, 255, 0.07), rgba(255, 138, 31, 0.05)),
      #fff !important;
  }

  .modern-lhdn-page #calculator .calculator-title {
    max-width: 330px !important;
    font-size: clamp(1.68rem, 7.6vw, 2.12rem) !important;
    line-height: 1 !important;
  }

  .modern-lhdn-page #calculator .calculator-title-text {
    gap: 3px !important;
  }

  .modern-lhdn-page #calculator .calculator-title-row {
    gap: 7px !important;
  }

  .modern-lhdn-page #calculator .calculator-guide-link {
    min-height: 0 !important;
    padding: 0 !important;
    font-size: 0.74rem !important;
  }

  .modern-lhdn-page #calculator .guide-sign {
    width: 18px !important;
    height: 18px !important;
    color: #fff !important;
    font-size: 0.68rem !important;
  }

  .modern-lhdn-page #calculator .section-heading p {
    max-width: 280px !important;
    font-size: 0.86rem !important;
    line-height: 1.34 !important;
  }
}

/* LHDN calculator dark-mode contrast lock. Keep this late so mobile/card rules cannot wash it out. */
.modern-lhdn-page[data-theme="dark"] #calculator .section-heading {
  border-color: rgba(155, 172, 210, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(37, 99, 255, 0.16), rgba(255, 138, 31, 0.08)),
    rgba(12, 18, 34, 0.9) !important;
  color: #f5f7ff !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .section-kicker,
.modern-lhdn-page[data-theme="dark"] #calculator .calculator-title,
.modern-lhdn-page[data-theme="dark"] #calculator .calculator-title span,
.modern-lhdn-page[data-theme="dark"] #calculator .calculator-title strong,
.modern-lhdn-page[data-theme="dark"] #calculator .section-heading h2 {
  color: #f5f7ff !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .section-heading p {
  color: #c9d3ea !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .calculator-card,
.modern-lhdn-page[data-theme="dark"] #calculator .advanced-calculator-card,
.modern-lhdn-page[data-theme="dark"] #calculator .results-card {
  border-color: rgba(155, 172, 210, 0.3) !important;
  background:
    linear-gradient(180deg, rgba(20, 29, 52, 0.96), rgba(12, 18, 34, 0.96)),
    #0c1222 !important;
  color: #f5f7ff !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34) !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .calculator-card .field label,
.modern-lhdn-page[data-theme="dark"] #calculator .advanced-calculator-card .field label {
  color: #dbe5fb !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .calculator-card .field input,
.modern-lhdn-page[data-theme="dark"] #calculator .calculator-card .field select,
.modern-lhdn-page[data-theme="dark"] #calculator .calculator-card .field textarea,
.modern-lhdn-page[data-theme="dark"] #calculator .advanced-calculator-card .field input,
.modern-lhdn-page[data-theme="dark"] #calculator .advanced-calculator-card .field select,
.modern-lhdn-page[data-theme="dark"] #calculator .advanced-calculator-card .field textarea {
  border-color: rgba(155, 172, 210, 0.36) !important;
  background: #f8fbff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .calculator-card .field input::placeholder,
.modern-lhdn-page[data-theme="dark"] #calculator .advanced-calculator-card .field input::placeholder {
  color: #667085 !important;
  opacity: 1 !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .calculator-card .field select option,
.modern-lhdn-page[data-theme="dark"] #calculator .advanced-calculator-card .field select option {
  background: #ffffff;
  color: #111827;
}

.modern-lhdn-page[data-theme="dark"] #calculator .results-kicker {
  color: var(--new-orange) !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-context,
.modern-lhdn-page[data-theme="dark"] #calculator .quotation-disclaimer,
.modern-lhdn-page[data-theme="dark"] #calculator .result-helper,
.modern-lhdn-page[data-theme="dark"] #calculator .result-helper p,
.modern-lhdn-page[data-theme="dark"] #calculator .calculator-note {
  color: #c9d3ea !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-helper strong,
.modern-lhdn-page[data-theme="dark"] #calculator .quotation-disclaimer strong {
  color: #f5f7ff !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-box,
.modern-lhdn-page[data-theme="dark"] #calculator .advanced-results-grid .result-box,
.modern-lhdn-page[data-theme="dark"] #calculator .results-grid .result-box {
  border-color: rgba(155, 172, 210, 0.26) !important;
  background: rgba(248, 251, 255, 0.98) !important;
  color: #111827 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18) !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-label {
  color: #526074 !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-value,
.modern-lhdn-page[data-theme="dark"] #calculator .text-value {
  color: #1b2550 !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-box:first-child,
.modern-lhdn-page[data-theme="dark"] #calculator .advanced-results-grid .result-box:first-child {
  background:
    linear-gradient(135deg, rgba(37, 99, 255, 0.14), rgba(0, 200, 117, 0.1)),
    #f8fbff !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-box.highlight {
  background:
    linear-gradient(135deg, rgba(0, 200, 117, 0.16), rgba(37, 99, 255, 0.09)),
    #f8fbff !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-box.total {
  background:
    linear-gradient(135deg, rgba(255, 138, 31, 0.18), rgba(0, 200, 117, 0.12)),
    #fff7ed !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-box.total .result-label {
  color: #5a4a37 !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-box.total .result-value {
  color: #f97316 !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-context,
.modern-lhdn-page[data-theme="dark"] #calculator .quotation-disclaimer {
  border-color: rgba(155, 172, 210, 0.28) !important;
  background: #f8fbff !important;
  color: #1b2550 !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .result-context p,
.modern-lhdn-page[data-theme="dark"] #calculator .quotation-disclaimer p {
  color: #344054 !important;
}

.modern-lhdn-page[data-theme="dark"] #calculator .quotation-disclaimer strong {
  color: #1b2550 !important;
}

.modern-lhdn-page[data-theme="dark"] #rate-reference .service-card.static-card,
.modern-lhdn-page[data-theme="dark"] #rate-reference .service-card.static-card p,
.modern-lhdn-page[data-theme="dark"] #rate-reference .mini-rate-list,
.modern-lhdn-page[data-theme="dark"] #rate-reference .mini-rate-list li {
  color: #f5f7ff !important;
}

.modern-lhdn-page[data-theme="dark"] #rate-reference .service-card.static-card {
  background: rgba(17, 24, 43, 0.9) !important;
}

.modern-lhdn-page[data-theme="dark"] #rate-reference .service-card.static-card h3 {
  color: #ffffff !important;
}

.modern-lhdn-page[data-theme="dark"] #guideline .guideline-card,
.modern-lhdn-page[data-theme="dark"] #guideline .guideline-card p,
.modern-lhdn-page[data-theme="dark"] #guideline .guideline-card li,
.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy p,
.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy li {
  color: #f5f7ff !important;
}

.modern-lhdn-page[data-theme="dark"] #guideline .guideline-card a,
.modern-lhdn-page[data-theme="dark"] #guideline .verify-blue {
  color: #8fb0ff !important;
}

.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy {
  border-color: rgba(155, 172, 210, 0.28) !important;
  background: #f8fbff !important;
  color: #111827 !important;
}

.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy p,
.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy ol,
.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy li {
  color: #243047 !important;
}

.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy .verify-blue,
.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy strong {
  color: #174ee8 !important;
}

.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy a {
  color: #0f5fd7 !important;
  text-decoration-color: rgba(15, 95, 215, 0.42) !important;
}

.modern-lhdn-page[data-theme="dark"] #guideline .verify-copy .verify-alert {
  background: rgba(37, 99, 255, 0.12) !important;
  color: #174ee8 !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 255, 0.16) !important;
}

.modern-lhdn-page[data-theme="dark"] .service-link img[src*="brand-ssm-transparent"],
.modern-lhdn-page[data-theme="dark"] .service-link img[src*="brand-mytax-transparent"] {
  width: 92px !important;
  height: 68px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(155, 172, 210, 0.2) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18) !important;
}

/* LHDN fee note spacing lock: keep processing/certificate cards breathable. */
.modern-lhdn-page .fee-banner-separated {
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr) !important;
}

.modern-lhdn-page .fee-banner .fee-notes {
  grid-template-columns: minmax(280px, 1fr) !important;
  justify-content: start !important;
  gap: 18px !important;
}

.modern-lhdn-page .fee-banner .fee-notes li {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 18px;
  align-content: center;
  min-height: 128px !important;
  padding: 24px 24px 24px 62px !important;
  white-space: normal !important;
}

.modern-lhdn-page .fee-banner .fee-notes li strong,
.modern-lhdn-page .fee-banner .fee-notes li span {
  display: block !important;
  grid-column: 2;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
}

.modern-lhdn-page .fee-banner .fee-notes li strong {
  font-size: clamp(1.45rem, 2.15vw, 2.1rem) !important;
  line-height: 1.08 !important;
}

.modern-lhdn-page .fee-banner .fee-notes li span {
  margin-top: 8px !important;
  font-size: clamp(0.98rem, 1.12vw, 1.12rem) !important;
  line-height: 1.42 !important;
}

.modern-lhdn-page .fee-banner .fee-notes li::before {
  left: 24px !important;
  top: 31px !important;
}

@media (max-width: 980px) {
  .modern-lhdn-page .fee-banner-separated {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .modern-lhdn-page .fee-banner .fee-notes {
    grid-template-columns: 1fr !important;
  }

  .modern-lhdn-page .fee-banner .fee-notes li {
    min-height: 118px !important;
    padding: 20px 18px 20px 56px !important;
  }

  .modern-lhdn-page .fee-banner .fee-notes li strong {
    font-size: 1.3rem !important;
  }

  .modern-lhdn-page .fee-banner .fee-notes li span {
    font-size: 0.95rem !important;
  }

  .modern-lhdn-page .fee-banner .fee-notes li::before {
    left: 22px !important;
    top: 26px !important;
  }
}

/* LHDN footer and Services dropdown final alignment. */
.modern-lhdn-page .footer-legal {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  min-height: 74px !important;
  margin: 0 !important;
  padding: 24px clamp(18px, 4vw, 56px) !important;
  background: #101322 !important;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 0.9rem !important;
}

.modern-lhdn-page .footer-legal-copy {
  display: flex !important;
  align-items: center !important;
  min-height: 1.2em !important;
}

.service-page .nav-service-dropdown::after,
.modern-lhdn-page .nav-service-dropdown::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 18px;
}

.service-page .services-dropdown-panel,
.modern-lhdn-page .services-dropdown-panel {
  top: calc(100% + 6px) !important;
}

.service-page .nav-service-dropdown:hover .services-dropdown-panel,
.service-page .nav-service-dropdown:focus-within .services-dropdown-panel,
.modern-lhdn-page .nav-service-dropdown:hover .services-dropdown-panel,
.modern-lhdn-page .nav-service-dropdown:focus-within .services-dropdown-panel {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate(-50%, 0) !important;
}

.modern-lhdn-page[data-theme="dark"] .mini-card {
  color: #4f7dff !important;
}

.modern-lhdn-page[data-theme="dark"] .mini-card:nth-child(2) {
  color: #22d48d !important;
}

.modern-lhdn-page[data-theme="dark"] .mini-card:nth-child(3) {
  color: #ffae35 !important;
}

.modern-lhdn-page[data-theme="dark"] .mini-card i {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.42), transparent),
    currentColor !important;
  opacity: 0.44 !important;
}

/* Customer dark mode final system: LHDN service page */
.modern-lhdn-page[data-theme="dark"] {
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #0b1020 0%, #10182d 48%, #0b1020 100%) !important;
}

.modern-lhdn-page[data-theme="dark"] .topbar {
  background: rgba(10, 15, 30, 0.9) !important;
}

.modern-lhdn-page[data-theme="dark"] .service-panel,
.modern-lhdn-page[data-theme="dark"] .detail-card,
.modern-lhdn-page[data-theme="dark"] .fee-banner,
.modern-lhdn-page[data-theme="dark"] .guideline-card,
.modern-lhdn-page[data-theme="dark"] .rate-scroll-panel,
.modern-lhdn-page[data-theme="dark"] .service-card.static-card,
.modern-lhdn-page[data-theme="dark"] .service-link,
.modern-lhdn-page[data-theme="dark"] .contact-inner {
  border-color: rgba(155, 172, 210, 0.24) !important;
  background: rgba(17, 24, 43, 0.84) !important;
  color: #f5f7ff !important;
}

.modern-lhdn-page[data-theme="dark"] .service-panel h2,
.modern-lhdn-page[data-theme="dark"] .detail-card h2,
.modern-lhdn-page[data-theme="dark"] .step h3,
.modern-lhdn-page[data-theme="dark"] .service-card.static-card h3,
.modern-lhdn-page[data-theme="dark"] .service-link strong {
  color: #ffffff !important;
}

.modern-lhdn-page[data-theme="dark"] .service-panel p,
.modern-lhdn-page[data-theme="dark"] .step p,
.modern-lhdn-page[data-theme="dark"] .service-card.static-card p,
.modern-lhdn-page[data-theme="dark"] .service-link small,
.modern-lhdn-page[data-theme="dark"] .rate-reference-note {
  color: #d7def2 !important;
}

.modern-lhdn-page[data-theme="dark"] .fee-notes li {
  border-color: rgba(155, 172, 210, 0.24) !important;
  background: #f8fbff !important;
}

.modern-lhdn-page[data-theme="dark"] .fee-notes li strong {
  color: #174ea6 !important;
}

.modern-lhdn-page[data-theme="dark"] .fee-notes li span {
  color: #526074 !important;
}

.modern-lhdn-page[data-theme="dark"] .service-link img[src*="brand-ssm-transparent"],
.modern-lhdn-page[data-theme="dark"] .service-link img[src*="brand-mytax-transparent"],
.modern-lhdn-page[data-theme="dark"] .service-link img[src*="brand-lhdn-cropped"],
.modern-lhdn-page[data-theme="dark"] .service-link img[src*="tnb_logo"],
.modern-lhdn-page[data-theme="dark"] .service-link img[src*="pdf_logo"] {
  box-sizing: border-box !important;
  width: 92px !important;
  height: 68px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(155, 172, 210, 0.2) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  object-fit: contain !important;
}

/* Customer language button: compact globe size on the LHDN page. */
.modern-lhdn-page .lang-toggle {
  width: 42px !important;
  min-width: 42px !important;
  height: 40px !important;
}

.modern-lhdn-page .lang-toggle .lang-globe {
  width: 25px !important;
  height: 25px !important;
}

@media (max-width: 720px) {
  .modern-lhdn-page .lang-toggle {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
  }

  .modern-lhdn-page .lang-toggle .lang-globe {
    width: 24px !important;
    height: 24px !important;
  }
}

/* New phone version: LHDN header must keep Menu, WhatsApp, Dark, and language visible. */
@media (max-width: 980px) {
  .modern-lhdn-page .topbar {
    display: grid !important;
    grid-template-columns: minmax(50px, 1fr) auto auto auto auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 8px !important;
    min-height: 70px !important;
    padding: 8px 10px !important;
  }

  .modern-lhdn-page .brand {
    grid-column: 1 !important;
    justify-self: start !important;
    width: 50px !important;
    margin-right: 0 !important;
  }

  .modern-lhdn-page .menu-toggle {
    grid-column: 2 !important;
    justify-self: end !important;
    display: inline-flex !important;
  }

  .modern-lhdn-page .nav-cta {
    grid-column: 3 !important;
    justify-self: end !important;
  }

  .modern-lhdn-page .theme-toggle {
    grid-column: 4 !important;
    justify-self: end !important;
    display: inline-flex !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .modern-lhdn-page .theme-toggle b {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  .modern-lhdn-page .lang-toggle {
    grid-column: 5 !important;
    justify-self: end !important;
  }
}

/* === CSS stability layer: LHDN page + admin panel ===
   Keep these overrides last. They protect touch navigation, calculator title
   fit, mobile header controls, and admin form fields from browser defaults. */

html.is-touch-nav .service-page .nav-service-dropdown,
html.is-touch-nav .modern-lhdn-page .nav-service-dropdown {
  position: static !important;
}

html.is-touch-nav .service-page .nav-service-dropdown::after,
html.is-touch-nav .modern-lhdn-page .nav-service-dropdown::after,
html.is-touch-nav .service-page .services-dropdown-panel,
html.is-touch-nav .modern-lhdn-page .services-dropdown-panel {
  display: none !important;
}

.modern-lhdn-page #calculator .section-heading,
.modern-lhdn-page #calculator .calculator-title {
  max-width: 100% !important;
  overflow: hidden !important;
}

.modern-lhdn-page #calculator .calculator-title-with-guide {
  display: inline !important;
}

.modern-lhdn-page #calculator .calculator-title-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 0.18em !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
}

.admin-page .admin-calculator-layout .calculator-card .field input,
.admin-page .admin-calculator-layout .calculator-card .field select,
.admin-page .admin-calculator-layout .calculator-card .field textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

.admin-page .admin-calculator-layout .calculator-card .field input[type="date"] {
  text-align: left !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.admin-page .admin-calculator-layout .calculator-card .field input[type="date"]::-webkit-date-and-time-value,
.admin-page .admin-calculator-layout .calculator-card .field input[type="date"]::-webkit-datetime-edit {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}

.admin-page .admin-calculator-layout .calculator-card .field textarea {
  line-height: 1.35 !important;
}

/* Admin mobile date input: prevent iOS date controls from stretching past the form edge. */
.admin-page .admin-calculator-layout .calculator-card,
.admin-page .admin-calculator-layout .calculator-card .field {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.admin-page .admin-calculator-layout .calculator-card .field {
  overflow: hidden !important;
}

.admin-page .admin-calculator-layout #advancedSigningDate {
  display: block !important;
  justify-self: stretch !important;
  width: calc(100% - 2px) !important;
  max-width: calc(100% - 2px) !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 1px !important;
  padding-top: 0 !important;
  padding-left: 14px !important;
  padding-bottom: 0 !important;
  padding-right: 14px !important;
  font-size: 0.88rem !important;
  line-height: 40px !important;
  text-align: left !important;
  text-align-last: left !important;
}

.admin-page .admin-calculator-layout #advancedSigningDate::-webkit-date-and-time-value,
.admin-page .admin-calculator-layout #advancedSigningDate::-webkit-datetime-edit {
  display: block !important;
  min-height: 40px !important;
  line-height: 40px !important;
  text-align: left !important;
}

.admin-page .admin-calculator-layout #advancedRemark,
.admin-page .admin-calculator-layout #ssmRemark {
  min-height: 42px !important;
  height: 42px;
  max-height: none !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  overflow: hidden;
  resize: none !important;
}

@media (max-width: 720px) {
  .modern-lhdn-page #calculator .calculator-title {
    font-size: clamp(1.46rem, 6.55vw, 1.95rem) !important;
    line-height: 1.08 !important;
    padding-inline: 14px !important;
  }

  .admin-page .admin-calculator-layout .calculator-card .field {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .admin-page .admin-calculator-layout #advancedSigningDate {
    width: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
    margin-inline: 2px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-size: 0.86rem !important;
    line-height: 40px !important;
  }
}

/* Desktop/tablet header alignment lock for LHDN service page. */
.modern-lhdn-page .topbar {
  align-items: center !important;
}

.modern-lhdn-page .brand,
.modern-lhdn-page .nav,
.modern-lhdn-page .nav a,
.modern-lhdn-page .nav-service-dropdown,
.modern-lhdn-page .nav-service-dropdown > a,
.modern-lhdn-page .nav-service-dropdown > button,
.modern-lhdn-page .nav-cta,
.modern-lhdn-page .menu-toggle,
.modern-lhdn-page .theme-toggle,
.modern-lhdn-page .lang-toggle {
  white-space: nowrap !important;
}

@media (min-width: 981px) and (max-width: 1380px) {
  .modern-lhdn-page .topbar {
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1fr) auto auto auto !important;
    gap: clamp(10px, 1vw, 18px) !important;
    padding-inline: clamp(16px, 2vw, 32px) !important;
  }

  .modern-lhdn-page .brand-logo {
    width: 58px !important;
    height: 58px !important;
  }

  .modern-lhdn-page .brand-name {
    font-size: clamp(1.02rem, 1.38vw, 1.42rem) !important;
  }

  .modern-lhdn-page .nav {
    gap: clamp(12px, 1.1vw, 20px) !important;
    font-size: clamp(0.78rem, 0.94vw, 0.95rem) !important;
  }

  .modern-lhdn-page .nav a {
    line-height: 1 !important;
  }

  .modern-lhdn-page .nav-cta {
    min-height: 42px !important;
    padding: 9px 16px !important;
    font-size: clamp(0.82rem, 0.95vw, 0.92rem) !important;
  }

  .modern-lhdn-page .theme-toggle {
    min-height: 42px !important;
    padding: 8px 13px !important;
    font-size: 0.8rem !important;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .modern-lhdn-page .topbar {
    display: grid !important;
    grid-template-columns: minmax(58px, 1fr) auto auto auto auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 82px !important;
  }

  .modern-lhdn-page .brand {
    justify-self: start !important;
    min-width: 0 !important;
  }

  .modern-lhdn-page .brand-name {
    display: none !important;
  }

  .modern-lhdn-page .menu-toggle,
  .modern-lhdn-page .nav-cta,
  .modern-lhdn-page .theme-toggle,
  .modern-lhdn-page .lang-toggle {
    grid-column: auto !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }
}

/* Customer LHDN calculator: keep mobile date input aligned with the other fields. */
.modern-lhdn-page:not(.admin-page) #calculator .advanced-calculator-card #advancedSigningDate {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  line-height: 56px !important;
  text-align: left !important;
  text-align-last: left !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.modern-lhdn-page:not(.admin-page) #calculator .advanced-calculator-card #advancedSigningDate::-webkit-date-and-time-value,
.modern-lhdn-page:not(.admin-page) #calculator .advanced-calculator-card #advancedSigningDate::-webkit-datetime-edit {
  display: block !important;
  width: 100% !important;
  min-height: 56px !important;
  line-height: 56px !important;
  text-align: left !important;
}

@media (max-width: 720px) {
  .modern-lhdn-page:not(.admin-page) #calculator .advanced-calculator-card #advancedSigningDate {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding-inline: 16px !important;
    line-height: 52px !important;
  }

  .modern-lhdn-page:not(.admin-page) #calculator .advanced-calculator-card #advancedSigningDate::-webkit-date-and-time-value,
  .modern-lhdn-page:not(.admin-page) #calculator .advanced-calculator-card #advancedSigningDate::-webkit-datetime-edit {
    min-height: 52px !important;
    line-height: 52px !important;
  }
}

/* Premium purple calculator title background */
.modern-lhdn-page #calculator .section-heading {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  border: 1px solid rgba(120, 150, 255, 0.42) !important;
  border-radius: 30px !important;
  background: #eaf2ff !important;
  box-shadow:
    0 24px 58px rgba(37, 99, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  color: #171725 !important;
}

.modern-lhdn-page #calculator .section-heading::before {
  content: none !important;
}

.modern-lhdn-page #calculator .section-heading::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: -1 !important;
  width: min(620px, 88%) !important;
  height: 104px !important;
  border-radius: 999px !important;
  background: rgba(37, 99, 255, 0.08) !important;
  filter: blur(20px) !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
}

.modern-lhdn-page #calculator .section-heading h2,
.modern-lhdn-page #calculator .calculator-title,
.modern-lhdn-page #calculator .calculator-title span {
  color: #2459b6 !important;
}

.calculator-card .field .salary-choice input,
.admin-page .calculator-card .field .salary-choice input,
#calculator .calculator-card .field .salary-choice input {
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.calculator-card .field label.salary-choice,
.admin-page .calculator-card .field label.salary-choice,
#calculator .calculator-card .field label.salary-choice {
  display: grid !important;
  grid-template-columns: 14px minmax(0, 1fr) !important;
  align-items: center !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

.calculator-card .field label.salary-choice span,
.admin-page .calculator-card .field label.salary-choice span,
#calculator .calculator-card .field label.salary-choice span {
  display: block !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

.modern-lhdn-page #calculator .section-heading p {
  color: #5f6878 !important;
}

.modern-lhdn-page #calculator .calculator-guide-link .guide-sign,
.modern-lhdn-page #calculator .calculator-title .calculator-guide-link .guide-sign {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 720px) {
  .modern-lhdn-page #calculator .section-heading {
    border-radius: 22px !important;
    padding: 18px 14px 16px !important;
  }

  .modern-lhdn-page #calculator .section-heading::before {
    right: 12px !important;
    top: 12px !important;
    width: 96px !important;
    height: 38px !important;
  }
}

/* LHDN mobile compact procedure + processing note */
@media (max-width: 760px) {
  .modern-lhdn-page .procedure-grid {
    gap: 10px !important;
    padding-bottom: 12px !important;
  }

  .modern-lhdn-page .procedure-grid .step {
    flex-basis: min(74vw, 280px) !important;
    min-height: 138px !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .modern-lhdn-page .procedure-grid .step-no {
    width: 42px !important;
    height: 42px !important;
    font-size: 0.96rem !important;
  }

  .modern-lhdn-page .procedure-grid .step h3 {
    margin-top: 12px !important;
    font-size: 1rem !important;
    line-height: 1.16 !important;
  }

  .modern-lhdn-page .procedure-grid .step p {
    margin-top: 8px !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  .modern-lhdn-page .fee-banner .fee-notes li {
    min-height: 82px !important;
    padding: 14px 14px 14px 42px !important;
    border-radius: 14px !important;
  }

  .modern-lhdn-page .fee-banner .fee-notes li strong {
    font-size: 1rem !important;
    line-height: 1.18 !important;
  }

  .modern-lhdn-page .fee-banner .fee-notes li span {
    margin-top: 4px !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }

  .modern-lhdn-page .fee-banner .fee-notes li::before {
    left: 16px !important;
    top: 18px !important;
  }

  .modern-lhdn-page #rate-reference .rate-reference-note {
    display: block !important;
    margin: 18px 0 34px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(255, 138, 31, 0.28) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(255, 245, 232, 0.98), rgba(255, 255, 255, 0.96)) !important;
    box-shadow: 0 12px 28px rgba(255, 138, 31, 0.10) !important;
    color: #171725 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
  }

  .modern-lhdn-page #guideline {
    margin-top: 40px !important;
    padding-top: 22px !important;
    border-top: 1px solid rgba(255, 138, 31, 0.22) !important;
  }

  .modern-lhdn-page #guideline .section-heading {
    margin-bottom: 18px !important;
  }
}

/* LHDN mobile final heading alignment */
@media (max-width: 720px) {
  .modern-lhdn-page #calculator .calculator-title {
    max-width: none !important;
    width: 100% !important;
    padding-inline: 0 !important;
    font-size: clamp(1.28rem, 5.75vw, 1.62rem) !important;
    line-height: 1.08 !important;
    white-space: nowrap !important;
  }

  .modern-lhdn-page #calculator .calculator-title-with-guide,
  .modern-lhdn-page #calculator .calculator-title-text {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 0.18em !important;
    white-space: nowrap !important;
  }

  .modern-lhdn-page #guideline .section-heading h2 {
    font-size: clamp(1.52rem, 6.4vw, 1.92rem) !important;
    line-height: 1.1 !important;
  }

  .modern-lhdn-page #other-services .section-heading {
    display: grid !important;
    justify-items: center !important;
    gap: 12px !important;
    margin-bottom: 34px !important;
    text-align: center !important;
  }

  .modern-lhdn-page #other-services .section-heading h2 {
    max-width: 840px !important;
    font-size: clamp(1.62rem, 7vw, 2.05rem) !important;
    line-height: 1.12 !important;
  }
}

@media (max-width: 980px) {
  .service-page .topbar.menu-open .nav,
  .modern-lhdn-page .topbar.menu-open .nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    justify-items: start !important;
    padding: 10px !important;
  }

  .service-page .topbar.menu-open .nav a,
  .modern-lhdn-page .topbar.menu-open .nav a,
  .service-page .topbar.menu-open .nav-service-dropdown > a,
  .modern-lhdn-page .topbar.menu-open .nav-service-dropdown > a,
  .service-page .topbar.menu-open .nav-service-dropdown > button,
  .modern-lhdn-page .topbar.menu-open .nav-service-dropdown > button {
    display: block !important;
    width: max-content !important;
    max-width: calc(100vw - 56px) !important;
    padding: 10px 14px !important;
  }

  .service-page .topbar.menu-open .nav-service-dropdown,
  .modern-lhdn-page .topbar.menu-open .nav-service-dropdown {
    display: grid !important;
    gap: 8px !important;
  }

  .service-page .topbar.menu-open .services-dropdown-panel,
  .modern-lhdn-page .topbar.menu-open .services-dropdown-panel {
    position: static !important;
    inset: auto !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 56px) !important;
    margin: 0 !important;
    padding: 8px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
  }

  .service-page .topbar.menu-open .nav-service-dropdown:hover .services-dropdown-panel,
  .service-page .topbar.menu-open .nav-service-dropdown:focus-within .services-dropdown-panel,
  .modern-lhdn-page .topbar.menu-open .nav-service-dropdown:hover .services-dropdown-panel,
  .modern-lhdn-page .topbar.menu-open .nav-service-dropdown:focus-within .services-dropdown-panel {
    display: grid !important;
  }
}

.modern-lhdn-page .theme-toggle span,
.modern-lhdn-page[data-theme="dark"] .theme-toggle span {
  position: relative !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 24px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ffffff 0 50%, #171725 50% 100%) !important;
  border: 2px solid #171725 !important;
  box-shadow: none !important;
}

.modern-lhdn-page .theme-toggle span::before,
.modern-lhdn-page[data-theme="dark"] .theme-toggle span::before {
  content: "" !important;
  position: absolute !important;
  inset: -8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background:
    linear-gradient(#171725, #171725) 50% 0 / 2px 5px no-repeat,
    linear-gradient(#171725, #171725) 50% 100% / 2px 5px no-repeat,
    linear-gradient(90deg, #171725, #171725) 0 50% / 5px 2px no-repeat,
    linear-gradient(90deg, #171725, #171725) 100% 50% / 5px 2px no-repeat,
    linear-gradient(45deg, transparent calc(50% - 1px), #171725 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 4px 4px / 6px 6px no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), #171725 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) calc(100% - 10px) 4px / 6px 6px no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), #171725 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 4px calc(100% - 10px) / 6px 6px no-repeat,
    linear-gradient(45deg, transparent calc(50% - 1px), #171725 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) calc(100% - 10px) calc(100% - 10px) / 6px 6px no-repeat !important;
  box-shadow: none !important;
}

.modern-lhdn-page .theme-toggle,
.modern-lhdn-page[data-theme="dark"] .theme-toggle {
  width: 64px !important;
  min-width: 64px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #050505 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;
}

.modern-lhdn-page .theme-toggle b {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.modern-lhdn-page .theme-toggle span,
.modern-lhdn-page[data-theme="dark"] .theme-toggle span {
  position: relative !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  margin-right: auto !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.modern-lhdn-page .theme-toggle span::before,
.modern-lhdn-page[data-theme="dark"] .theme-toggle span::before {
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  top: 8px !important;
  width: 14px !important;
  height: 14px !important;
  inset: auto !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #050505 !important;
  box-shadow: none !important;
}

.modern-lhdn-page .theme-toggle span::after,
.modern-lhdn-page[data-theme="dark"] .theme-toggle span::after {
  content: "" !important;
  position: absolute !important;
  left: 13px !important;
  top: 5px !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

.modern-lhdn-page .theme-toggle .theme-toggle-icon,
.theme-toggle .theme-toggle-icon {
  display: block !important;
  width: 64px !important;
  height: 38px !important;
  flex: 0 0 64px !important;
}

.modern-lhdn-page .theme-toggle .theme-toggle-knob,
.theme-toggle .theme-toggle-knob {
  transform: translateX(0);
  transform-origin: center;
  transition: transform 0.26s ease;
}

.modern-lhdn-page[data-theme="dark"] .theme-toggle .theme-toggle-knob,
body[data-theme="dark"] .theme-toggle .theme-toggle-knob {
  transform: translateX(28px);
}

.modern-lhdn-page .theme-toggle .theme-moon,
.theme-toggle .theme-moon {
  opacity: 0;
}

.modern-lhdn-page[data-theme="dark"] .theme-toggle .theme-sun,
body[data-theme="dark"] .theme-toggle .theme-sun {
  opacity: 0;
}

.modern-lhdn-page[data-theme="dark"] .theme-toggle .theme-moon,
body[data-theme="dark"] .theme-toggle .theme-moon {
  opacity: 1;
}

.modern-lhdn-page .theme-toggle:has(.theme-toggle-icon),
.modern-lhdn-page[data-theme="dark"] .theme-toggle:has(.theme-toggle-icon),
.theme-toggle:has(.theme-toggle-icon) {
  width: 64px !important;
  min-width: 64px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Mobile LHDN header: icon-only menu with display controls inside the dropdown. */
@media (max-width: 980px) {
  .modern-lhdn-page .menu-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
  }

  .modern-lhdn-page .menu-toggle::before,
  .modern-lhdn-page .menu-toggle::after {
    content: "" !important;
    position: absolute !important;
    left: 11px !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #171725 !important;
    transition: transform 0.22s ease, top 0.22s ease, box-shadow 0.22s ease !important;
  }

  .modern-lhdn-page .menu-toggle::before {
    top: 14px !important;
    box-shadow: 0 6px 0 #171725 !important;
  }

  .modern-lhdn-page .menu-toggle::after {
    top: 26px !important;
  }

  .modern-lhdn-page .topbar.menu-open .menu-toggle::before {
    top: 20px !important;
    transform: rotate(45deg) !important;
    box-shadow: 0 0 0 transparent !important;
  }

  .modern-lhdn-page .topbar.menu-open .menu-toggle::after {
    top: 20px !important;
    transform: rotate(-45deg) !important;
  }

  .modern-lhdn-page[data-theme="dark"] .menu-toggle::before,
  .modern-lhdn-page[data-theme="dark"] .menu-toggle::after {
    background: #e8edff !important;
  }

  .modern-lhdn-page[data-theme="dark"] .menu-toggle::before {
    box-shadow: 0 6px 0 #e8edff !important;
  }

  .modern-lhdn-page[data-theme="dark"] .topbar.menu-open .menu-toggle::before {
    box-shadow: 0 0 0 transparent !important;
  }

  .modern-lhdn-page .topbar .mobile-menu-actions {
    display: none;
  }

  .modern-lhdn-page .topbar.menu-open .mobile-menu-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: calc(100vw - 56px) !important;
    margin-top: 8px !important;
    padding: 10px 2px 2px !important;
    border-top: 1px solid var(--line) !important;
  }

  .modern-lhdn-page .topbar.menu-open .mobile-menu-actions .theme-toggle,
  .modern-lhdn-page .topbar.menu-open .mobile-menu-actions .lang-toggle {
    position: static !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
}

/* Theme button: simple round sun/moon icon, not a sliding switch. */
html body .topbar .theme-toggle.theme-toggle,
html body[data-theme="dark"] .topbar .theme-toggle.theme-toggle,
html body.modern-lhdn-page .topbar .theme-toggle.theme-toggle,
html body.modern-lhdn-page[data-theme="dark"] .topbar .theme-toggle.theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #171725 !important;
  box-shadow: 0 12px 28px rgba(23, 23, 37, 0.08) !important;
  overflow: visible !important;
}

html body[data-theme="dark"] .topbar .theme-toggle.theme-toggle,
html body.modern-lhdn-page[data-theme="dark"] .topbar .theme-toggle.theme-toggle {
  background: rgba(17, 24, 43, 0.94) !important;
}

html body .topbar .theme-toggle .theme-toggle-symbol,
html body[data-theme="dark"] .topbar .theme-toggle .theme-toggle-symbol,
html body.modern-lhdn-page .topbar .theme-toggle .theme-toggle-symbol,
html body.modern-lhdn-page[data-theme="dark"] .topbar .theme-toggle .theme-toggle-symbol {
  position: static !important;
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .topbar .theme-toggle .theme-toggle-symbol::before,
html body .topbar .theme-toggle .theme-toggle-symbol::after,
html body[data-theme="dark"] .topbar .theme-toggle .theme-toggle-symbol::before,
html body[data-theme="dark"] .topbar .theme-toggle .theme-toggle-symbol::after {
  content: none !important;
}

html body .topbar .theme-toggle .theme-toggle-symbol svg {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
}

/* Final LHDN mobile header order: logo, WhatsApp, menu. */
@media (max-width: 980px) {
  .modern-lhdn-page .topbar {
    grid-template-columns: minmax(50px, 1fr) auto auto !important;
  }

  .modern-lhdn-page .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  .modern-lhdn-page .nav-cta {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  .modern-lhdn-page .menu-toggle {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }
}

/* Final LHDN desktop header alignment: nav belongs with the right-side actions. */
@media (min-width: 981px) {
  .modern-lhdn-page .brand {
    margin-right: 0 !important;
  }

  .modern-lhdn-page .nav {
    flex: 0 1 auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }
}

/* Mobile one-screen calculator flow: calculator first, quotation after Calculate Now. */
@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase {
    scroll-margin-top: calc(var(--review-promo-height, 0px) + 82px) !important;
    width: min(100% - 18px, 520px) !important;
    margin: 10px auto 20px !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading {
    display: none !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
    padding: 12px !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon::before {
    transform: scale(0.64) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head h3 {
    font-size: 1.2rem !important;
    line-height: 1.05 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head p {
    margin-top: 4px !important;
    font-size: 0.78rem !important;
    line-height: 1.18 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field {
    margin-bottom: 7px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field label {
    margin-bottom: 4px !important;
    font-size: 0.78rem !important;
    line-height: 1.1 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
    height: 38px !important;
    min-height: 38px !important;
    line-height: 38px !important;
    padding-left: 48px !important;
    padding-right: 36px !important;
    border-radius: 10px !important;
    font-size: 0.84rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before {
    left: 12px !important;
    bottom: 5px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after {
    left: 19px !important;
    bottom: 12px !important;
    transform: scale(0.72) !important;
    transform-origin: center !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
    left: 19px !important;
    bottom: 10px !important;
    transform: scale(0.76) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
    left: 17px !important;
    bottom: 9px !important;
    width: 20px !important;
    height: 20px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
    padding-left: 48px !important;
    padding-right: 40px !important;
    font-size: 0.82rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn {
    min-height: 40px !important;
    margin-top: 2px !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head {
    padding-bottom: 8px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-title-actions {
    gap: 8px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head strong {
    font-size: 1.2rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) {
    margin-top: 4px !important;
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 9px !important;
    font-size: 0.72rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
    width: 12px !important;
    height: 16px !important;
    margin-right: 5px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    gap: 8px !important;
    min-height: 34px !important;
    margin-bottom: 5px !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 8px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.72rem !important;
    line-height: 1.1 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid {
    border-radius: 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box {
    grid-template-columns: 26px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 34px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon {
    width: 22px !important;
    height: 22px !important;
    transform: scale(0.62) !important;
    transform-origin: center !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-label {
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-value {
    font-size: 0.78rem !important;
    line-height: 1.05 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
    font-size: 0.8rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
    font-size: 1.05rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
    min-height: 38px !important;
    margin-top: 8px !important;
    border-radius: 9px !important;
    font-size: 0.78rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn::before {
    width: 20px !important;
    height: 20px !important;
    margin-right: 6px !important;
  }
}

/* Quotation compact layout balance: prevent key/value rows from crowding. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label {
  max-width: 130px !important;
  line-height: 1.08 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
  justify-self: end !important;
  max-width: 100% !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
  grid-template-columns: minmax(112px, 0.65fr) minmax(0, 1.35fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
  line-height: 1.08 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
  justify-self: end !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    grid-template-columns: minmax(76px, 0.65fr) minmax(0, 1.35fr) !important;
    column-gap: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
    max-width: 86px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
    font-size: clamp(0.9rem, 5.2vw, 1.18rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
    font-size: clamp(1.08rem, 6.2vw, 1.45rem) !important;
  }
}

/* TRUE FINAL LHDN overrides. Keep this block at the very end. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card::after {
  content: none !important;
  display: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  width: 13px !important;
  height: 17px !important;
  margin-right: 6px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
  gap: 8px !important;
  min-height: 32px !important;
  margin-bottom: 9px !important;
  padding: 3px 8px !important;
  border-radius: 10px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
  width: 23px !important;
  height: 23px !important;
  border-radius: 8px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
  width: 16px !important;
  height: 16px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  font-size: clamp(0.72rem, 0.88vw, 0.86rem) !important;
  line-height: 1.1 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label {
  max-width: 130px !important;
  line-height: 1.08 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
  justify-self: end !important;
  max-width: 100% !important;
  font-size: clamp(0.94rem, 1.1vw, 1.16rem) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
  grid-template-columns: minmax(112px, 0.65fr) minmax(0, 1.35fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
  max-width: none !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
  justify-self: end !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
  font-size: 0.96rem !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='%23667085'%3E%3Cpath d='M12 4.1a3.15 3.15 0 0 0-1.02 6.13v3.12H8.2a1.65 1.65 0 0 0-1.65 1.65v1.25h10.9V15a1.65 1.65 0 0 0-1.65-1.65h-2.78v-3.12A3.15 3.15 0 0 0 12 4.1z'/%3E%3Crect x='6.05' y='17.45' width='11.9' height='1.55' rx='.35'/%3E%3Crect x='5.3' y='20.2' width='13.4' height='1.45' rx='.35'/%3E%3C/svg%3E") !important;
  background-size: 30px 30px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 7px !important;
    border-radius: 7px !important;
    font-size: 0.66rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
    width: 10px !important;
    height: 14px !important;
    margin-right: 4px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    gap: 5px !important;
    min-height: 26px !important;
    margin-bottom: 7px !important;
    padding: 2px 6px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
    width: 18px !important;
    height: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
    width: 13px !important;
    height: 13px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.58rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label {
    max-width: 86px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
    font-size: clamp(0.84rem, 4.8vw, 1.08rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
    font-size: clamp(1.08rem, 6.2vw, 1.45rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
    font-size: 0.88rem !important;
  }
}

/* Final CTA and quotation summary spacing polish. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
  font-size: 0.96rem !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
  margin-bottom: 9px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
    font-size: 0.88rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    margin-bottom: 7px !important;
  }
}

/* Keep Grand Total on one line while preserving compact quotation spacing. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
  max-width: none !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr) !important;
  }
}

/* Slightly soften the largest quotation summary/value text. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  font-size: clamp(0.86rem, 1.05vw, 1.02rem) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
  font-size: clamp(0.94rem, 1.1vw, 1.16rem) !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.68rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
    font-size: clamp(0.84rem, 4.8vw, 1.08rem) !important;
  }
}

/* Make the quotation rental summary pill more compact. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
  gap: 10px !important;
  min-height: 36px !important;
  padding: 4px 10px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
  width: 26px !important;
  height: 26px !important;
  border-radius: 9px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
  width: 18px !important;
  height: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  font-size: clamp(0.78rem, 0.95vw, 0.94rem) !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    gap: 6px !important;
    min-height: 30px !important;
    padding: 3px 7px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
    width: 21px !important;
    height: 21px !important;
    border-radius: 7px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
    width: 15px !important;
    height: 15px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.62rem !important;
  }
}

/* Final small-size polish for quotation PDF button and rental summary pill. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  width: 13px !important;
  height: 17px !important;
  margin-right: 6px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
  gap: 8px !important;
  min-height: 32px !important;
  padding: 3px 8px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
  width: 23px !important;
  height: 23px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
  width: 16px !important;
  height: 16px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  font-size: clamp(0.72rem, 0.88vw, 0.86rem) !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 7px !important;
    border-radius: 7px !important;
    font-size: 0.66rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
    width: 10px !important;
    height: 14px !important;
    margin-right: 4px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    gap: 5px !important;
    min-height: 26px !important;
    padding: 2px 6px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
    width: 18px !important;
    height: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
    width: 13px !important;
    height: 13px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.58rem !important;
  }
}

/* LHDN phone: keep late stamping note compact with clearer separation from guideline. */
@media (max-width: 720px) {
  .modern-lhdn-page #rate-reference .rate-reference-note {
    margin: 12px 0 34px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 0.84rem !important;
    font-weight: 750 !important;
    line-height: 1.36 !important;
  }

  .modern-lhdn-page #rate-reference .rate-reference-note .deep-blue-text {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  .modern-lhdn-page #guideline {
    margin-top: 34px !important;
    padding-top: 22px !important;
  }
}

/* Final fixed header behavior for LHDN service page. */
html body.modern-lhdn-page .page-shell.service-page {
  padding-top: 78px !important;
}

html body.modern-lhdn-page .topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

html body.modern-lhdn-page.service-has-review-promo {
  --review-promo-height: 34px;
}

html body.modern-lhdn-page.service-has-review-promo .review-promo-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1002 !important;
}

html body.modern-lhdn-page.service-has-review-promo .topbar {
  top: var(--review-promo-height) !important;
}

html body.modern-lhdn-page.service-has-review-promo .page-shell.service-page {
  padding-top: calc(78px + var(--review-promo-height)) !important;
}

@media (max-width: 980px) {
  html body.modern-lhdn-page .page-shell.service-page {
    padding-top: 82px !important;
  }
}

@media (max-width: 720px) {
  html body.modern-lhdn-page.service-has-review-promo {
    --review-promo-height: 30px;
  }

  html body.modern-lhdn-page .topbar .nav-cta {
    min-height: 36px !important;
    height: 36px !important;
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 420px) {
  html body.modern-lhdn-page .topbar .nav-cta {
    min-height: 34px !important;
    height: 34px !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
  }
}

.announcement-admin-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.announcement-photo-order {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.announcement-photo-order:empty {
  display: none;
}

.announcement-photo-order-item {
  flex: 0 0 clamp(190px, 31%, 240px);
  width: clamp(190px, 31%, 240px);
  padding: 7px;
  border: 1px solid #d9e2f3;
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
}

.announcement-photo-order-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f8;
}

.announcement-photo-order-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.admin-page #announcementForm .field:has(#announcementPhoto) {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.admin-page #announcementForm .field:has(#announcementPhoto) > * {
  grid-column: 1 / -1;
}

.admin-page #announcementForm .field:has(#announcementPhoto) > .result-helper {
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
}

.announcement-photo-order-image span {
  position: absolute;
  left: 5px;
  bottom: 5px;
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(20, 61, 119, 0.9);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.announcement-photo-order-actions {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
}

.announcement-photo-order-actions button {
  display: grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid #d5deef;
  border-radius: 6px;
  background: #f7f9fd;
  color: #173b7a;
  font: 800 1rem/1 Arial, sans-serif;
  cursor: pointer;
}

.announcement-photo-order-actions button:disabled {
  opacity: 0.35;
  cursor: default;
}

.announcement-photo-order-actions .announcement-photo-remove {
  color: #9b2430;
  background: #fff7f7;
}

@media (max-width: 520px) {
  .announcement-photo-order-item {
    flex-basis: 78%;
    width: 78%;
  }
}

body.announcement-lightbox-open {
  overflow: hidden;
}

.site-zoomable-link,
.site-zoomable-image {
  cursor: zoom-in;
}

.announcement-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(10, 14, 28, 0.78);
  backdrop-filter: blur(10px);
}

.announcement-lightbox.is-open {
  display: grid;
}

.announcement-lightbox img {
  width: min(100%, 980px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.announcement-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #171725;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.announcement-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #171725;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.announcement-lightbox-nav[hidden] {
  display: none;
}

.announcement-lightbox-prev {
  left: clamp(12px, 3vw, 34px);
}

.announcement-lightbox-next {
  right: clamp(12px, 3vw, 34px);
}

.announcement-admin-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 60, 159, 0.12);
  border-radius: 14px;
  background: #fff;
}

.announcement-form-actions,
.announcement-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.announcement-form-actions [hidden],
#announcementCancelEdit[hidden] {
  display: none !important;
}

#announcementCancelEdit {
  background: #ffffff !important;
  color: #171725 !important;
  border: 1px solid rgba(15, 60, 159, 0.14) !important;
}

.announcement-admin-actions {
  justify-content: flex-end;
}

.announcement-admin-thumb {
  position: relative;
  width: 72px;
  height: 54px;
}

.announcement-admin-thumb img,
.announcement-admin-item > img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f7fb;
}

.announcement-admin-count {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 24px;
  height: 24px;
  display: grid !important;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #173b7a;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  line-height: 1;
}

.announcement-admin-item strong,
.announcement-admin-item span {
  display: block;
}

.announcement-admin-item span {
  color: var(--new-muted);
  font-size: 0.82rem;
}

.announcement-admin-item .announcement-admin-status {
  margin-top: 4px;
  color: #2563eb;
  font-weight: 800;
}

@media (max-width: 720px) {
  .announcement-admin-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .announcement-admin-thumb,
  .announcement-admin-thumb img,
  .announcement-admin-item > img {
    width: 58px;
    height: 48px;
  }

  .announcement-admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .announcement-admin-item button {
    flex: 1 1 130px;
  }
}

/* LHDN customer page parity: match the regular service page header rhythm. */
html body.modern-lhdn-page .topbar {
  display: grid !important;
  grid-template-columns: minmax(230px, 1fr) auto auto auto auto auto !important;
  align-items: center !important;
  gap: 20px !important;
  min-height: 78px !important;
  height: auto !important;
  padding: 8px clamp(16px, 4vw, 58px) !important;
}

html body.modern-lhdn-page .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0 !important;
  margin-right: 0 !important;
}

html body.modern-lhdn-page .brand-logo,
html body.modern-lhdn-page .topbar .brand img {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain !important;
}

html body.modern-lhdn-page .brand-copy,
html body.modern-lhdn-page .brand-name {
  display: inline-flex !important;
  min-width: 0 !important;
}

html body.modern-lhdn-page .nav {
  display: flex !important;
  justify-content: center !important;
  gap: 24px !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  font-size: 0.94rem !important;
}

html body.modern-lhdn-page .nav-cta {
  min-height: 44px !important;
  height: 44px !important;
  padding: 11px 20px !important;
  font-size: 0.92rem !important;
}

html body.modern-lhdn-page .theme-toggle,
html body.modern-lhdn-page .lang-toggle,
html body.modern-lhdn-page .menu-toggle {
  height: 44px !important;
  min-height: 44px !important;
}

html body.modern-lhdn-page .service-page-hero {
  min-height: 620px !important;
  padding: clamp(46px, 6vw, 78px) 0 !important;
}

@media (max-width: 980px) {
  html body.modern-lhdn-page .page-shell.service-page {
    padding-top: 68px !important;
  }

  html body.modern-lhdn-page.service-has-review-promo .page-shell.service-page {
    padding-top: calc(68px + var(--review-promo-height, 34px)) !important;
  }

  html body.modern-lhdn-page .topbar {
    grid-template-columns: minmax(52px, 1fr) auto auto !important;
    gap: 10px !important;
    min-height: 68px !important;
    padding: 8px 12px !important;
  }

  html body.modern-lhdn-page .brand-copy,
  html body.modern-lhdn-page .brand-name {
    display: none !important;
  }

  html body.modern-lhdn-page .brand {
    grid-column: 1 !important;
    justify-self: start !important;
    width: 50px !important;
    min-width: 50px !important;
  }

  html body.modern-lhdn-page .brand-logo,
  html body.modern-lhdn-page .topbar .brand img {
    width: 50px !important;
    height: 50px !important;
  }

  html body.modern-lhdn-page .nav {
    display: none !important;
  }

  html body.modern-lhdn-page .nav-cta {
    grid-column: 2 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
  }

  html body.modern-lhdn-page .menu-toggle {
    grid-column: 3 !important;
    display: inline-flex !important;
  }

  html body.modern-lhdn-page .service-page-hero {
    min-height: 560px !important;
  }
}

/* Final compact phone header: service/admin pages match homepage height, with a larger logo. */
@media (max-width: 720px) {
  html body.modern-lhdn-page .page-shell.service-page {
    padding-top: 58px !important;
  }

  html body.modern-lhdn-page.service-has-review-promo .page-shell.service-page {
    padding-top: calc(58px + var(--review-promo-height)) !important;
  }

  html body.modern-lhdn-page .topbar,
  html body .service-page .topbar,
  html body .admin-page .admin-topbar {
    min-height: 58px !important;
    height: 58px !important;
    padding: 4px 10px !important;
    gap: 10px !important;
    align-items: center !important;
  }

  html body.modern-lhdn-page .topbar .brand,
  html body .service-page .topbar .brand,
  html body .admin-page .admin-brand {
    width: 50px !important;
    min-width: 50px !important;
  }

  html body.modern-lhdn-page .brand-logo,
  html body.modern-lhdn-page .topbar .brand img,
  html body .service-page .topbar .brand img,
  html body .admin-page .admin-brand img {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
  }

  html body.modern-lhdn-page .topbar .nav-cta,
  html body .service-page .topbar .nav-cta {
    min-height: 34px !important;
    height: 34px !important;
    padding: 6px 11px !important;
    font-size: 0.78rem !important;
  }

  html body.modern-lhdn-page .menu-toggle,
  html body .service-page .topbar .menu-toggle {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  html body .admin-page .admin-topbar > strong {
    padding: 6px 9px !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.06em !important;
  }

  html body .admin-page .admin-title-actions {
    gap: 6px !important;
  }

  html body .admin-page .admin-title-actions > strong {
    padding: 6px 9px !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.06em !important;
  }

  html body .admin-page .admin-logout-btn {
    min-height: 28px !important;
    padding: 5px 9px !important;
    font-size: 0.62rem !important;
  }

  html body .admin-auth-card {
    grid-template-columns: 1fr !important;
    width: min(100% - 24px, 520px) !important;
    margin-top: 14px !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }
}

/* Admin Activity metrics: compact cards on desktop and mobile. */
.admin-page .admin-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.admin-page .admin-metric-card {
  min-height: 0 !important;
  padding: 14px 14px !important;
  border-radius: 16px !important;
}

.admin-page .admin-metric-card span {
  font-size: 0.66rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
}

.admin-page .admin-metric-card strong {
  margin-top: 8px !important;
  font-size: clamp(1.45rem, 2.4vw, 2.3rem) !important;
  line-height: 1 !important;
}

@media (max-width: 980px) {
  .admin-page .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .admin-page .admin-panel {
    padding: 10px !important;
  }

  .admin-page .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .admin-page .admin-metric-card {
    padding: 11px 12px !important;
    border-radius: 14px !important;
  }

  .admin-page .admin-metric-card span {
    font-size: 0.62rem !important;
  }

  .admin-page .admin-metric-card strong {
    margin-top: 6px !important;
    font-size: 1.55rem !important;
  }
}

/* Mobile menu icon alignment lock: keep hamburger/close mark optically centered. */
@media (max-width: 980px) {
  html body.modern-lhdn-page .topbar .menu-toggle,
  html body .service-page .topbar .menu-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  html body.modern-lhdn-page .topbar .menu-toggle::before,
  html body.modern-lhdn-page .topbar .menu-toggle::after,
  html body .service-page .topbar .menu-toggle::before,
  html body .service-page .topbar .menu-toggle::after {
    left: 50% !important;
    top: 50% !important;
    width: 18px !important;
    height: 2.5px !important;
    transform-origin: center !important;
  }

  html body.modern-lhdn-page .topbar .menu-toggle::before,
  html body .service-page .topbar .menu-toggle::before {
    transform: translate(-50%, -7px) !important;
    box-shadow: 0 7px 0 #171725 !important;
  }

  html body.modern-lhdn-page .topbar .menu-toggle::after,
  html body .service-page .topbar .menu-toggle::after {
    transform: translate(-50%, 7px) !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .menu-toggle::before,
  html body .service-page .topbar.menu-open .menu-toggle::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
    box-shadow: none !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .menu-toggle::after,
  html body .service-page .topbar.menu-open .menu-toggle::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }

  html body.modern-lhdn-page[data-theme="dark"] .topbar .menu-toggle::before,
  html body[data-theme="dark"] .service-page .topbar .menu-toggle::before {
    box-shadow: 0 7px 0 #e8edff !important;
  }

  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .menu-toggle::before,
  html body[data-theme="dark"] .service-page .topbar.menu-open .menu-toggle::before {
    box-shadow: none !important;
  }
}

/* Absolute EOF lock: LHDN header content stays vertically centered and display controls stay inside the menu. */
html body.modern-lhdn-page .topbar {
  align-items: center !important;
  place-items: center stretch !important;
  min-height: 78px !important;
  height: 78px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

html body.modern-lhdn-page .topbar .brand,
html body.modern-lhdn-page .topbar .nav-cta,
html body.modern-lhdn-page .topbar .menu-toggle {
  align-self: center !important;
}

html body.modern-lhdn-page .topbar .brand {
  display: inline-flex !important;
  align-items: center !important;
}

html body:not(.home-page) .topbar > .theme-toggle,
html body:not(.home-page) .topbar > .lang-toggle {
  display: none !important;
}

html body:not(.home-page) .topbar .mobile-menu-actions {
  display: none !important;
}

html body:not(.home-page) .topbar.menu-open .mobile-menu-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 8px !important;
  padding: 10px 4px 2px !important;
  border-top: 1px solid rgba(226, 232, 246, 0.95) !important;
}

html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .theme-toggle,
html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .lang-toggle {
  position: static !important;
  display: inline-flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

@media (max-width: 720px) {
  html body.modern-lhdn-page .topbar {
    min-height: 58px !important;
    height: 58px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
}

/* True final LHDN one-row header lock. */
html body.modern-lhdn-page .topbar {
  display: grid !important;
  grid-template-columns: minmax(68px, 1fr) auto auto !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  min-height: 78px !important;
  height: 78px !important;
  padding: 5px clamp(16px, 4vw, 58px) !important;
  gap: 18px !important;
}

html body.modern-lhdn-page .topbar .brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: start !important;
  width: 68px !important;
  min-width: 68px !important;
  height: 68px !important;
}

html body.modern-lhdn-page .brand-logo,
html body.modern-lhdn-page .topbar .brand img {
  width: 68px !important;
  height: 68px !important;
}

html body.modern-lhdn-page .topbar .nav-cta {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
}

html body.modern-lhdn-page .topbar .menu-toggle {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
}

html body.modern-lhdn-page .topbar > .theme-toggle,
html body.modern-lhdn-page .topbar > .lang-toggle {
  display: none !important;
}

@media (max-width: 720px) {
  html body.modern-lhdn-page .topbar {
    grid-template-columns: minmax(50px, 1fr) auto auto !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 4px 10px !important;
    gap: 10px !important;
  }

  html body.modern-lhdn-page .topbar .brand {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
  }

  html body.modern-lhdn-page .brand-logo,
  html body.modern-lhdn-page .topbar .brand img {
    width: 50px !important;
    height: 50px !important;
  }
}

/* True EOF lock: LHDN dark-mode logo stays circular after header overrides. */
html body.modern-lhdn-page[data-theme="dark"] .brand-logo,
html body.modern-lhdn-page[data-theme="dark"] .topbar .brand img {
  content: url("assets/grace-logo-circle.png") !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  flex: 0 0 68px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  clip-path: circle(50% at 50% 50%) !important;
  background: radial-gradient(circle at 51.5% 50%, #ffffff 0 61.5%, transparent 62.5%) !important;
  object-fit: cover !important;
  object-position: center !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

@media (max-width: 720px) {
  html body.modern-lhdn-page[data-theme="dark"] .brand-logo,
  html body.modern-lhdn-page[data-theme="dark"] .topbar .brand img {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    flex-basis: 50px !important;
    border-width: 1px !important;
  }
}

/* Final actual EOF admin report lock: compact horizontal report tables. */
html body .admin-page .admin-activity-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .admin-page .admin-activity-table,
html body .admin-page .admin-activity-table thead,
html body .admin-page .admin-activity-table tbody,
html body .admin-page .admin-activity-table tr {
  width: auto !important;
}

html body .admin-page .admin-activity-table {
  display: table !important;
  width: 1120px !important;
  min-width: 1120px !important;
  max-width: none !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

html body .admin-page .admin-activity-table thead {
  display: table-header-group !important;
}

html body .admin-page .admin-activity-table tbody {
  display: table-row-group !important;
}

html body .admin-page .admin-activity-table tr {
  display: table-row !important;
}

html body .admin-page .admin-activity-table th,
html body .admin-page .admin-activity-table td {
  display: table-cell !important;
  width: auto !important;
  max-width: none !important;
  padding: 7px 6px !important;
  font-size: 0.74rem !important;
  line-height: 1.24 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  vertical-align: top !important;
}

html body .admin-page .admin-activity-table th {
  font-size: 0.66rem !important;
  letter-spacing: 0 !important;
}

html body .admin-page .admin-support-request-table {
  min-width: 560px !important;
}

html body .admin-page .admin-activity-report-table {
  min-width: 720px !important;
}

html body .admin-page .admin-support-request-table th:nth-child(1),
html body .admin-page .admin-support-request-table td:nth-child(1) { min-width: 78px !important; }
html body .admin-page .admin-support-request-table th:nth-child(2),
html body .admin-page .admin-support-request-table td:nth-child(2) { min-width: 68px !important; }
html body .admin-page .admin-support-request-table th:nth-child(3),
html body .admin-page .admin-support-request-table td:nth-child(3) { min-width: 100px !important; }
html body .admin-page .admin-support-request-table th:nth-child(4),
html body .admin-page .admin-support-request-table td:nth-child(4) { min-width: 102px !important; }
html body .admin-page .admin-support-request-table th:nth-child(5),
html body .admin-page .admin-support-request-table td:nth-child(5) { min-width: 96px !important; }
html body .admin-page .admin-support-request-table th:nth-child(6),
html body .admin-page .admin-support-request-table td:nth-child(6) {
  min-width: 116px !important;
  white-space: normal !important;
}

html body .admin-page .admin-activity-report-table th:nth-child(1),
html body .admin-page .admin-activity-report-table td:nth-child(1) { min-width: 74px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(2),
html body .admin-page .admin-activity-report-table td:nth-child(2) { min-width: 54px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(3),
html body .admin-page .admin-activity-report-table td:nth-child(3) { min-width: 78px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(4),
html body .admin-page .admin-activity-report-table td:nth-child(4) { min-width: 64px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(5),
html body .admin-page .admin-activity-report-table td:nth-child(5) {
  min-width: 112px !important;
  white-space: normal !important;
}
html body .admin-page .admin-activity-report-table th:nth-child(6),
html body .admin-page .admin-activity-report-table td:nth-child(6),
html body .admin-page .admin-activity-report-table th:nth-child(7),
html body .admin-page .admin-activity-report-table td:nth-child(7),
html body .admin-page .admin-activity-report-table th:nth-child(8),
html body .admin-page .admin-activity-report-table td:nth-child(8) { min-width: 60px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(9),
html body .admin-page .admin-activity-report-table td:nth-child(9) { min-width: 66px !important; }

html body .admin-page .admin-status-badge {
  padding: 4px 6px !important;
  font-size: 0.66rem !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  html body .admin-page .admin-activity-table th,
  html body .admin-page .admin-activity-table td {
    padding: 6px 5px !important;
    font-size: 0.62rem !important;
  }

  html body .admin-page .admin-activity-table th {
    font-size: 0.57rem !important;
  }

  html body .admin-page .admin-status-badge {
    padding: 3px 5px !important;
    font-size: 0.57rem !important;
  }
}

/* True EOF lock: LHDN/admin mobile menu is a left-aligned sheet. */
@media (max-width: 980px) {
  html body .topbar.menu-open .nav,
  html body.modern-lhdn-page .topbar.menu-open .nav {
    left: clamp(14px, 4vw, 28px) !important;
    right: clamp(14px, 4vw, 28px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    gap: 2px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 10px !important;
  }

  html body .topbar.menu-open .nav a,
  html body .topbar.menu-open .nav-service-dropdown > a,
  html body .topbar.menu-open .nav-service-dropdown > button,
  html body.modern-lhdn-page .topbar.menu-open .nav a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > button {
    width: 100% !important;
    min-height: 44px !important;
    min-width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 11px 14px !important;
    border-radius: 14px !important;
  }

  html body .topbar.menu-open .mobile-menu-actions,
  html body.modern-lhdn-page .topbar.menu-open .mobile-menu-actions {
    justify-content: flex-start !important;
    padding-left: 2px !important;
  }

  html body[data-theme="dark"] .topbar.menu-open,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open {
    background: rgba(8, 14, 30, 0.96) !important;
    border-color: rgba(139, 156, 196, 0.22) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav {
    background: rgba(12, 20, 39, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(18px) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav a,
  html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
  html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button {
    color: #e8edff !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav a:hover,
  html body[data-theme="dark"] .topbar.menu-open .nav a.is-active,
  html body[data-theme="dark"] .topbar.menu-open .nav .nav-calculator,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a:hover,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a.is-active,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav .nav-calculator {
    color: #ffffff !important;
    background: rgba(37, 99, 255, 0.24) !important;
  }
}

/* Final mobile menu layout: professional list, not centered button stack. */
@media (max-width: 980px) {
  html body .topbar.menu-open .nav,
  html body.modern-lhdn-page .topbar.menu-open .nav {
    left: clamp(14px, 4vw, 28px) !important;
    right: clamp(14px, 4vw, 28px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    gap: 3px !important;
    padding: 10px !important;
  }

  html body .topbar.menu-open .nav a,
  html body .topbar.menu-open .nav-service-dropdown > a,
  html body .topbar.menu-open .nav-service-dropdown > button,
  html body.modern-lhdn-page .topbar.menu-open .nav a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > button {
    width: 100% !important;
    min-height: 44px !important;
    min-width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 11px 14px !important;
    border-radius: 14px !important;
  }

  html body .topbar.menu-open .mobile-menu-actions,
  html body.modern-lhdn-page .topbar.menu-open .mobile-menu-actions {
    justify-content: flex-start !important;
    padding-left: 2px !important;
  }

  html body[data-theme="dark"] .topbar.menu-open,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open {
    background: rgba(8, 14, 30, 0.96) !important;
    border-color: rgba(139, 156, 196, 0.22) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav {
    background: rgba(12, 20, 39, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(18px) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav a,
  html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
  html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button {
    color: #e8edff !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav a:hover,
  html body[data-theme="dark"] .topbar.menu-open .nav a.is-active,
  html body[data-theme="dark"] .topbar.menu-open .nav .nav-calculator,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a:hover,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a.is-active,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav .nav-calculator {
    color: #ffffff !important;
    background: rgba(37, 99, 255, 0.24) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav a + a,
  html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a + a,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown {
    border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
  }
}

/* Final dark mobile menu polish: LHDN page matches the rest of dark mode. */
@media (max-width: 980px) {
  html body[data-theme="dark"] .topbar.menu-open,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open {
    background: rgba(8, 14, 30, 0.96) !important;
    border-color: rgba(139, 156, 196, 0.22) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav {
    background: rgba(15, 23, 42, 0.94) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(18px) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav a,
  html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
  html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button {
    color: #e8edff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: none !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav a:hover,
  html body[data-theme="dark"] .topbar.menu-open .nav a.is-active,
  html body[data-theme="dark"] .topbar.menu-open .nav .nav-calculator,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a:hover,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a.is-active,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav .nav-calculator {
    color: #ffffff !important;
    background: rgba(37, 99, 255, 0.28) !important;
    border-color: rgba(93, 135, 255, 0.35) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .mobile-menu-actions,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .mobile-menu-actions {
    border-top-color: rgba(148, 163, 184, 0.2) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .mobile-menu-actions .theme-toggle,
  html body[data-theme="dark"] .topbar.menu-open .mobile-menu-actions .lang-toggle,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .mobile-menu-actions .theme-toggle,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .mobile-menu-actions .lang-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22) !important;
  }
}

/* Absolute EOF dark-mode logo backing for LHDN Stamping page. */
html body.modern-lhdn-page[data-theme="dark"] .brand-logo,
html body.modern-lhdn-page[data-theme="dark"] .topbar .brand img {
  background: radial-gradient(circle at 51.5% 50%, #ffffff 0 61.5%, transparent 62.5%) !important;
  border-color: transparent !important;
}

/* True final dark-mode logo backing for LHDN Stamping page. */
html body.modern-lhdn-page[data-theme="dark"] .brand-logo,
html body.modern-lhdn-page[data-theme="dark"] .topbar .brand img {
  background: radial-gradient(circle at 51.5% 50%, #ffffff 0 61.5%, transparent 62.5%) !important;
  border-color: transparent !important;
}

/* Dark mode logo white backing: slightly smaller circle, logo size unchanged. */
html body.modern-lhdn-page[data-theme="dark"] .brand-logo,
html body.modern-lhdn-page[data-theme="dark"] .topbar .brand img {
  background: radial-gradient(circle at 51.5% 50%, #ffffff 0 61.5%, transparent 62.5%) !important;
  border-color: transparent !important;
}

/* True EOF mobile promo bar height lock: keep descenders like g/y visible. */
@media (max-width: 720px) {
  html body .review-promo-bar {
    min-height: 38px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.25 !important;
    align-items: center !important;
  }

  html body .review-promo-message,
  html body .review-promo-message > span:last-child,
  html body .review-promo-updates {
    line-height: 1.25 !important;
  }
}

/* Final mobile promo bar height lock: keep descenders like g/y visible. */
@media (max-width: 720px) {
  html body .review-promo-bar {
    min-height: 38px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.25 !important;
    align-items: center !important;
  }

  html body .review-promo-message,
  html body .review-promo-message > span:last-child,
  html body .review-promo-updates {
    line-height: 1.25 !important;
  }
}
*** End of File

/* Absolute EOF compressed-screen admin report table lock. */
html body .admin-page .admin-activity-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .admin-page .admin-activity-table {
  display: table !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  width: 760px !important;
  min-width: 760px !important;
  max-width: none !important;
}

html body .admin-page .admin-support-request-table {
  width: 860px !important;
  min-width: 860px !important;
}

html body .admin-page .admin-activity-report-table {
  width: 1120px !important;
  min-width: 1120px !important;
}

html body .admin-page .admin-activity-table thead { display: table-header-group !important; }
html body .admin-page .admin-activity-table tbody { display: table-row-group !important; }
html body .admin-page .admin-activity-table tr { display: table-row !important; }

html body .admin-page .admin-activity-table th,
html body .admin-page .admin-activity-table td {
  display: table-cell !important;
  padding: 7px 6px !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  vertical-align: top !important;
}

html body .admin-page .admin-activity-table th {
  font-size: 0.64rem !important;
  letter-spacing: 0 !important;
}

html body .admin-page .admin-status-badge {
  white-space: nowrap !important;
  padding: 3px 5px !important;
  font-size: 0.62rem !important;
}

html body .admin-page .admin-support-request-table th:nth-child(1),
html body .admin-page .admin-support-request-table td:nth-child(1) { width: 78px !important; min-width: 78px !important; }
html body .admin-page .admin-support-request-table th:nth-child(2),
html body .admin-page .admin-support-request-table td:nth-child(2) { width: 70px !important; min-width: 70px !important; }
html body .admin-page .admin-support-request-table th:nth-child(3),
html body .admin-page .admin-support-request-table td:nth-child(3) { width: 102px !important; min-width: 102px !important; }
html body .admin-page .admin-support-request-table th:nth-child(4),
html body .admin-page .admin-support-request-table td:nth-child(4) { width: 112px !important; min-width: 112px !important; }
html body .admin-page .admin-support-request-table th:nth-child(5),
html body .admin-page .admin-support-request-table td:nth-child(5) { width: 106px !important; min-width: 106px !important; }
html body .admin-page .admin-support-request-table th:nth-child(6),
html body .admin-page .admin-support-request-table td:nth-child(6) { width: 170px !important; min-width: 170px !important; white-space: normal !important; }

html body .admin-page .admin-activity-report-table th:nth-child(1),
html body .admin-page .admin-activity-report-table td:nth-child(1) { width: 78px !important; min-width: 78px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(2),
html body .admin-page .admin-activity-report-table td:nth-child(2) { width: 58px !important; min-width: 58px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(3),
html body .admin-page .admin-activity-report-table td:nth-child(3) { width: 86px !important; min-width: 86px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(4),
html body .admin-page .admin-activity-report-table td:nth-child(4) { width: 76px !important; min-width: 76px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(5),
html body .admin-page .admin-activity-report-table td:nth-child(5) { width: 128px !important; min-width: 128px !important; white-space: normal !important; }
html body .admin-page .admin-activity-report-table th:nth-child(6),
html body .admin-page .admin-activity-report-table td:nth-child(6),
html body .admin-page .admin-activity-report-table th:nth-child(7),
html body .admin-page .admin-activity-report-table td:nth-child(7),
html body .admin-page .admin-activity-report-table th:nth-child(8),
html body .admin-page .admin-activity-report-table td:nth-child(8) { width: 66px !important; min-width: 66px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(9),
html body .admin-page .admin-activity-report-table td:nth-child(9) { width: 70px !important; min-width: 70px !important; }

@media (max-width: 720px) {
  html body .admin-page .admin-activity-table th,
  html body .admin-page .admin-activity-table td {
    padding: 6px 5px !important;
    font-size: 0.62rem !important;
  }

  html body .admin-page .admin-activity-table th {
    font-size: 0.57rem !important;
  }
}

/* Absolute final compressed-screen admin report table lock. */
html body .admin-page .admin-activity-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .admin-page .admin-activity-table {
  display: table !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  width: 760px !important;
  min-width: 760px !important;
  max-width: none !important;
}

html body .admin-page .admin-support-request-table {
  width: 640px !important;
  min-width: 640px !important;
}

html body .admin-page .admin-activity-report-table {
  width: 760px !important;
  min-width: 760px !important;
}

html body .admin-page .admin-activity-table thead { display: table-header-group !important; }
html body .admin-page .admin-activity-table tbody { display: table-row-group !important; }
html body .admin-page .admin-activity-table tr { display: table-row !important; }

html body .admin-page .admin-activity-table th,
html body .admin-page .admin-activity-table td {
  display: table-cell !important;
  padding: 7px 6px !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  vertical-align: top !important;
}

html body .admin-page .admin-activity-table th {
  font-size: 0.64rem !important;
  letter-spacing: 0 !important;
}

html body .admin-page .admin-status-badge {
  white-space: nowrap !important;
  padding: 3px 5px !important;
  font-size: 0.62rem !important;
}

html body .admin-page .admin-support-request-table th:nth-child(1),
html body .admin-page .admin-support-request-table td:nth-child(1) { width: 78px !important; min-width: 78px !important; }
html body .admin-page .admin-support-request-table th:nth-child(2),
html body .admin-page .admin-support-request-table td:nth-child(2) { width: 70px !important; min-width: 70px !important; }
html body .admin-page .admin-support-request-table th:nth-child(3),
html body .admin-page .admin-support-request-table td:nth-child(3) { width: 102px !important; min-width: 102px !important; }
html body .admin-page .admin-support-request-table th:nth-child(4),
html body .admin-page .admin-support-request-table td:nth-child(4) { width: 112px !important; min-width: 112px !important; }
html body .admin-page .admin-support-request-table th:nth-child(5),
html body .admin-page .admin-support-request-table td:nth-child(5) { width: 106px !important; min-width: 106px !important; }
html body .admin-page .admin-support-request-table th:nth-child(6),
html body .admin-page .admin-support-request-table td:nth-child(6) { width: 170px !important; min-width: 170px !important; white-space: normal !important; }

html body .admin-page .admin-activity-report-table th:nth-child(1),
html body .admin-page .admin-activity-report-table td:nth-child(1) { width: 78px !important; min-width: 78px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(2),
html body .admin-page .admin-activity-report-table td:nth-child(2) { width: 58px !important; min-width: 58px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(3),
html body .admin-page .admin-activity-report-table td:nth-child(3) { width: 86px !important; min-width: 86px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(4),
html body .admin-page .admin-activity-report-table td:nth-child(4) { width: 76px !important; min-width: 76px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(5),
html body .admin-page .admin-activity-report-table td:nth-child(5) { width: 128px !important; min-width: 128px !important; white-space: normal !important; }
html body .admin-page .admin-activity-report-table th:nth-child(6),
html body .admin-page .admin-activity-report-table td:nth-child(6),
html body .admin-page .admin-activity-report-table th:nth-child(7),
html body .admin-page .admin-activity-report-table td:nth-child(7),
html body .admin-page .admin-activity-report-table th:nth-child(8),
html body .admin-page .admin-activity-report-table td:nth-child(8) { width: 66px !important; min-width: 66px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(9),
html body .admin-page .admin-activity-report-table td:nth-child(9) { width: 70px !important; min-width: 70px !important; }

@media (max-width: 720px) {
  html body .admin-page .admin-activity-table th,
  html body .admin-page .admin-activity-table td {
    padding: 6px 5px !important;
    font-size: 0.62rem !important;
  }

  html body .admin-page .admin-activity-table th {
    font-size: 0.57rem !important;
  }
}

/* Actual final admin report lock: compact horizontal report tables on every screen. */
html body .admin-page .admin-activity-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .admin-page .admin-activity-table,
html body .admin-page .admin-activity-table thead,
html body .admin-page .admin-activity-table tbody,
html body .admin-page .admin-activity-table tr {
  width: auto !important;
}

html body .admin-page .admin-activity-table {
  display: table !important;
  width: max-content !important;
  min-width: 0 !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}

html body .admin-page .admin-activity-table thead {
  display: table-header-group !important;
}

html body .admin-page .admin-activity-table tbody {
  display: table-row-group !important;
}

html body .admin-page .admin-activity-table tr {
  display: table-row !important;
}

html body .admin-page .admin-activity-table th,
html body .admin-page .admin-activity-table td {
  display: table-cell !important;
  width: auto !important;
  max-width: none !important;
  padding: 7px 6px !important;
  font-size: 0.74rem !important;
  line-height: 1.24 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  vertical-align: top !important;
}

html body .admin-page .admin-activity-table th {
  font-size: 0.66rem !important;
  letter-spacing: 0 !important;
}

html body .admin-page .admin-support-request-table {
  min-width: 560px !important;
}

html body .admin-page .admin-activity-report-table {
  min-width: 720px !important;
}

html body .admin-page .admin-support-request-table th:nth-child(1),
html body .admin-page .admin-support-request-table td:nth-child(1) { min-width: 78px !important; }
html body .admin-page .admin-support-request-table th:nth-child(2),
html body .admin-page .admin-support-request-table td:nth-child(2) { min-width: 68px !important; }
html body .admin-page .admin-support-request-table th:nth-child(3),
html body .admin-page .admin-support-request-table td:nth-child(3) { min-width: 100px !important; }
html body .admin-page .admin-support-request-table th:nth-child(4),
html body .admin-page .admin-support-request-table td:nth-child(4) { min-width: 102px !important; }
html body .admin-page .admin-support-request-table th:nth-child(5),
html body .admin-page .admin-support-request-table td:nth-child(5) { min-width: 96px !important; }
html body .admin-page .admin-support-request-table th:nth-child(6),
html body .admin-page .admin-support-request-table td:nth-child(6) {
  min-width: 116px !important;
  white-space: normal !important;
}

html body .admin-page .admin-activity-report-table th:nth-child(1),
html body .admin-page .admin-activity-report-table td:nth-child(1) { min-width: 74px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(2),
html body .admin-page .admin-activity-report-table td:nth-child(2) { min-width: 54px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(3),
html body .admin-page .admin-activity-report-table td:nth-child(3) { min-width: 78px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(4),
html body .admin-page .admin-activity-report-table td:nth-child(4) { min-width: 64px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(5),
html body .admin-page .admin-activity-report-table td:nth-child(5) {
  min-width: 112px !important;
  white-space: normal !important;
}
html body .admin-page .admin-activity-report-table th:nth-child(6),
html body .admin-page .admin-activity-report-table td:nth-child(6),
html body .admin-page .admin-activity-report-table th:nth-child(7),
html body .admin-page .admin-activity-report-table td:nth-child(7),
html body .admin-page .admin-activity-report-table th:nth-child(8),
html body .admin-page .admin-activity-report-table td:nth-child(8) { min-width: 60px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(9),
html body .admin-page .admin-activity-report-table td:nth-child(9) { min-width: 66px !important; }

html body .admin-page .admin-status-badge {
  padding: 4px 6px !important;
  font-size: 0.66rem !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  html body .admin-page .admin-activity-table th,
  html body .admin-page .admin-activity-table td {
    padding: 6px 5px !important;
    font-size: 0.62rem !important;
  }

  html body .admin-page .admin-activity-table th {
    font-size: 0.57rem !important;
  }

  html body .admin-page .admin-status-badge {
    padding: 3px 5px !important;
    font-size: 0.57rem !important;
  }
}

/* Absolute EOF admin report lock: compact horizontal tables on desktop and phone. */
html body .admin-page .admin-activity-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .admin-page .admin-activity-table {
  display: table !important;
  width: max-content !important;
  min-width: 0 !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}

html body .admin-page .admin-activity-table thead {
  display: table-header-group !important;
}

html body .admin-page .admin-activity-table tbody {
  display: table-row-group !important;
}

html body .admin-page .admin-activity-table tr {
  display: table-row !important;
}

html body .admin-page .admin-activity-table th,
html body .admin-page .admin-activity-table td {
  display: table-cell !important;
  padding: 7px 6px !important;
  font-size: 0.74rem !important;
  line-height: 1.24 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  vertical-align: top !important;
}

html body .admin-page .admin-activity-table th {
  font-size: 0.66rem !important;
  letter-spacing: 0 !important;
}

html body .admin-page .admin-support-request-table {
  min-width: 560px !important;
}

html body .admin-page .admin-activity-report-table {
  min-width: 720px !important;
}

html body .admin-page .admin-support-request-table th:nth-child(1),
html body .admin-page .admin-support-request-table td:nth-child(1) { min-width: 78px !important; }
html body .admin-page .admin-support-request-table th:nth-child(2),
html body .admin-page .admin-support-request-table td:nth-child(2) { min-width: 68px !important; }
html body .admin-page .admin-support-request-table th:nth-child(3),
html body .admin-page .admin-support-request-table td:nth-child(3) { min-width: 100px !important; }
html body .admin-page .admin-support-request-table th:nth-child(4),
html body .admin-page .admin-support-request-table td:nth-child(4) { min-width: 102px !important; }
html body .admin-page .admin-support-request-table th:nth-child(5),
html body .admin-page .admin-support-request-table td:nth-child(5) { min-width: 96px !important; }
html body .admin-page .admin-support-request-table th:nth-child(6),
html body .admin-page .admin-support-request-table td:nth-child(6) {
  min-width: 116px !important;
  white-space: normal !important;
}

html body .admin-page .admin-activity-report-table th:nth-child(1),
html body .admin-page .admin-activity-report-table td:nth-child(1) { min-width: 74px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(2),
html body .admin-page .admin-activity-report-table td:nth-child(2) { min-width: 54px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(3),
html body .admin-page .admin-activity-report-table td:nth-child(3) { min-width: 78px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(4),
html body .admin-page .admin-activity-report-table td:nth-child(4) { min-width: 64px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(5),
html body .admin-page .admin-activity-report-table td:nth-child(5) {
  min-width: 112px !important;
  white-space: normal !important;
}
html body .admin-page .admin-activity-report-table th:nth-child(6),
html body .admin-page .admin-activity-report-table td:nth-child(6),
html body .admin-page .admin-activity-report-table th:nth-child(7),
html body .admin-page .admin-activity-report-table td:nth-child(7),
html body .admin-page .admin-activity-report-table th:nth-child(8),
html body .admin-page .admin-activity-report-table td:nth-child(8) { min-width: 60px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(9),
html body .admin-page .admin-activity-report-table td:nth-child(9) { min-width: 66px !important; }

html body .admin-page .admin-status-badge {
  padding: 4px 6px !important;
  font-size: 0.66rem !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  html body .admin-page .admin-activity-table th,
  html body .admin-page .admin-activity-table td {
    padding: 6px 5px !important;
    font-size: 0.62rem !important;
  }

  html body .admin-page .admin-activity-table th {
    font-size: 0.57rem !important;
  }

  html body .admin-page .admin-status-badge {
    padding: 3px 5px !important;
    font-size: 0.57rem !important;
  }
}

/* LHDN service dark header logo: use the cropped logo with less white surround. */
html body.modern-lhdn-page[data-theme="dark"] .brand-logo,
html body.modern-lhdn-page[data-theme="dark"] .topbar .brand img {
  content: url("assets/grace-logo-circle.png");
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  flex: 0 0 72px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  clip-path: circle(50% at 50% 50%) !important;
  background: #ffffff !important;
  object-fit: cover !important;
  object-position: center !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

@media (max-width: 980px) {
  html body.modern-lhdn-page[data-theme="dark"] .brand-logo,
  html body.modern-lhdn-page[data-theme="dark"] .topbar .brand img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    flex-basis: 64px !important;
    border-width: 1px !important;
  }
}

/* Final desktop LHDN hero spacing: pull the title area closer to the header. */
@media (min-width: 981px) {
  html body.modern-lhdn-page .service-page-hero {
    align-items: start !important;
    min-height: clamp(500px, 50vh, 570px) !important;
    padding-top: clamp(26px, 3vw, 46px) !important;
    padding-bottom: clamp(34px, 4vw, 58px) !important;
  }

  html body.modern-lhdn-page .service-page-hero .service-hero-copy,
  html body.modern-lhdn-page .service-page-hero .service-hero-art {
    align-self: start !important;
  }
}

/* True EOF lock: LHDN phone hero sits closer to the header. */
@media (max-width: 720px) {
  html body.modern-lhdn-page .service-page-hero {
    padding-top: 16px !important;
  }
}

/* True EOF lock: slimmer, centered dark-mode moon icon across LHDN/admin pages. */
html body .topbar .theme-toggle .theme-toggle-symbol .theme-moon-svg,
html body[data-theme="dark"] .topbar .theme-toggle .theme-toggle-symbol .theme-moon-svg,
html body.modern-lhdn-page .topbar .theme-toggle .theme-toggle-symbol .theme-moon-svg,
html body.modern-lhdn-page[data-theme="dark"] .topbar .theme-toggle .theme-toggle-symbol .theme-moon-svg {
  transform: translate(1px, 0) !important;
  transform-origin: center !important;
}

/* True final LHDN one-row header lock. */
html body.modern-lhdn-page .topbar {
  display: grid !important;
  grid-template-columns: minmax(68px, 1fr) auto auto !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  min-height: 78px !important;
  height: 78px !important;
  padding: 5px clamp(16px, 4vw, 58px) !important;
  gap: 18px !important;
}

html body.modern-lhdn-page .topbar .brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: start !important;
  width: 68px !important;
  min-width: 68px !important;
  height: 68px !important;
}

html body.modern-lhdn-page .brand-logo,
html body.modern-lhdn-page .topbar .brand img {
  width: 68px !important;
  height: 68px !important;
}

html body.modern-lhdn-page .topbar .nav-cta {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
}

html body.modern-lhdn-page .topbar .menu-toggle {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
}

html body.modern-lhdn-page .topbar > .theme-toggle,
html body.modern-lhdn-page .topbar > .lang-toggle {
  display: none !important;
}

@media (max-width: 720px) {
  html body.modern-lhdn-page .topbar {
    grid-template-columns: minmax(50px, 1fr) auto auto !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 4px 10px !important;
    gap: 10px !important;
  }

  html body.modern-lhdn-page .topbar .brand {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
  }

  html body.modern-lhdn-page .brand-logo,
  html body.modern-lhdn-page .topbar .brand img {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Absolute EOF lock: LHDN header content stays vertically centered and display controls stay inside the menu. */
html body.modern-lhdn-page .topbar {
  align-items: center !important;
  place-items: center stretch !important;
  min-height: 78px !important;
  height: 78px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

html body.modern-lhdn-page .topbar .brand,
html body.modern-lhdn-page .topbar .nav-cta,
html body.modern-lhdn-page .topbar .menu-toggle {
  align-self: center !important;
}

html body.modern-lhdn-page .topbar .brand {
  display: inline-flex !important;
  align-items: center !important;
}

html body:not(.home-page) .topbar > .theme-toggle,
html body:not(.home-page) .topbar > .lang-toggle {
  display: none !important;
}

html body:not(.home-page) .topbar .mobile-menu-actions {
  display: none !important;
}

html body:not(.home-page) .topbar.menu-open .mobile-menu-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 8px !important;
  padding: 10px 4px 2px !important;
  border-top: 1px solid rgba(226, 232, 246, 0.95) !important;
}

html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .theme-toggle,
html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .lang-toggle {
  position: static !important;
  display: inline-flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

@media (max-width: 720px) {
  html body.modern-lhdn-page .topbar {
    min-height: 58px !important;
    height: 58px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
}

/* Absolute final LHDN header vertical alignment and menu-display controls lock. */
html body.modern-lhdn-page .topbar {
  align-items: center !important;
  place-items: center stretch !important;
  min-height: 78px !important;
  height: 78px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

html body.modern-lhdn-page .topbar .brand,
html body.modern-lhdn-page .topbar .nav-cta,
html body.modern-lhdn-page .topbar .menu-toggle {
  align-self: center !important;
}

html body.modern-lhdn-page .topbar .brand {
  display: inline-flex !important;
  align-items: center !important;
}

html body:not(.home-page) .topbar > .theme-toggle,
html body:not(.home-page) .topbar > .lang-toggle {
  display: none !important;
}

html body:not(.home-page) .topbar .mobile-menu-actions {
  display: none !important;
}

html body:not(.home-page) .topbar.menu-open .mobile-menu-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 8px !important;
  padding: 10px 4px 2px !important;
  border-top: 1px solid rgba(226, 232, 246, 0.95) !important;
}

html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .theme-toggle,
html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .lang-toggle {
  position: static !important;
  display: inline-flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

@media (max-width: 720px) {
  html body.modern-lhdn-page .topbar {
    min-height: 58px !important;
    height: 58px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
}

/* Absolute final lock: non-home display controls live inside the hamburger menu. */
html body:not(.home-page) .topbar > .theme-toggle,
html body:not(.home-page) .topbar > .lang-toggle {
  display: none !important;
}

html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .theme-toggle,
html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .lang-toggle {
  display: inline-flex !important;
}

/* Non-home pages keep display controls inside the hamburger menu on desktop and mobile. */
html body:not(.home-page) .topbar .mobile-menu-actions {
  display: none !important;
}

html body:not(.home-page) .topbar.menu-open .mobile-menu-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 8px !important;
  padding: 10px 4px 2px !important;
  border-top: 1px solid rgba(226, 232, 246, 0.95) !important;
}

html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .theme-toggle,
html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .lang-toggle {
  position: static !important;
  display: inline-flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* Final LHDN header parity: keep it in one clean row like the other service pages. */
html body.modern-lhdn-page .topbar {
  display: grid !important;
  grid-template-columns: minmax(68px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 78px !important;
  height: 78px !important;
  padding: 5px clamp(16px, 4vw, 58px) !important;
}

html body.modern-lhdn-page .topbar .brand {
  grid-column: 1 !important;
  justify-self: start !important;
  width: 68px !important;
  min-width: 68px !important;
  overflow: hidden !important;
}

html body.modern-lhdn-page .brand-logo,
html body.modern-lhdn-page .topbar .brand img {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain !important;
}

html body.modern-lhdn-page .brand-copy,
html body.modern-lhdn-page .brand-name,
html body.modern-lhdn-page .topbar .theme-toggle,
html body.modern-lhdn-page .topbar .lang-toggle {
  display: none !important;
}

html body.modern-lhdn-page .topbar .nav {
  display: none !important;
}

html body.modern-lhdn-page .topbar .nav-cta {
  grid-column: 2 !important;
  justify-self: end !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 11px 20px !important;
  font-size: 0.92rem !important;
}

html body.modern-lhdn-page .topbar .menu-toggle {
  grid-column: 3 !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
}

html body.modern-lhdn-page .topbar .menu-toggle::before,
html body.modern-lhdn-page .topbar .menu-toggle::after {
  content: "" !important;
  position: absolute !important;
  left: calc(50% - 8px) !important;
  width: 16px !important;
  height: 2.2px !important;
  border-radius: 999px !important;
  background: #171725 !important;
  transform-origin: center !important;
}

html body.modern-lhdn-page .topbar .menu-toggle::before {
  top: calc(50% - 7px) !important;
  box-shadow: 0 6.25px 0 #171725 !important;
}

html body.modern-lhdn-page .topbar .menu-toggle::after {
  top: calc(50% + 5.5px) !important;
}

html body.modern-lhdn-page .topbar.menu-open .menu-toggle::before,
html body.modern-lhdn-page .topbar.menu-open .menu-toggle::after {
  top: calc(50% - 1.25px) !important;
  left: calc(50% - 8px) !important;
}

html body.modern-lhdn-page .topbar.menu-open .menu-toggle::before {
  transform: rotate(45deg) !important;
  box-shadow: none !important;
}

html body.modern-lhdn-page .topbar.menu-open .menu-toggle::after {
  transform: rotate(-45deg) !important;
}

html body.modern-lhdn-page .topbar.menu-open .nav {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: clamp(14px, 4vw, 58px) !important;
  z-index: 90 !important;
  display: grid !important;
  width: min(320px, calc(100vw - 28px)) !important;
  gap: 8px !important;
  padding: 12px !important;
  border: 1px solid rgba(226, 232, 246, 0.95) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 24px 70px rgba(23, 23, 37, 0.14) !important;
}

html body.modern-lhdn-page .topbar.menu-open .nav a {
  display: block !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
}

@media (max-width: 720px) {
  html body.modern-lhdn-page .topbar {
    grid-template-columns: minmax(50px, 1fr) auto auto !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 4px 10px !important;
    gap: 10px !important;
  }

  html body.modern-lhdn-page .topbar .brand {
    width: 50px !important;
    min-width: 50px !important;
  }

  html body.modern-lhdn-page .brand-logo,
  html body.modern-lhdn-page .topbar .brand img {
    width: 50px !important;
    height: 50px !important;
  }

  html body.modern-lhdn-page .topbar .nav-cta {
    min-height: 34px !important;
    height: 34px !important;
    padding: 6px 11px !important;
    font-size: 0.78rem !important;
  }

  html body.modern-lhdn-page .topbar .menu-toggle {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* Final display-control size: smaller sun/globe outer circle on desktop and mobile. */
html body .topbar .theme-toggle.theme-toggle,
html body[data-theme="dark"] .topbar .theme-toggle.theme-toggle,
html body .topbar .lang-toggle.lang-toggle,
html body[data-theme="dark"] .topbar .lang-toggle.lang-toggle,
html body.modern-lhdn-page .topbar .theme-toggle.theme-toggle,
html body.modern-lhdn-page[data-theme="dark"] .topbar .theme-toggle.theme-toggle,
html body.modern-lhdn-page .topbar .lang-toggle.lang-toggle,
html body.modern-lhdn-page[data-theme="dark"] .topbar .lang-toggle.lang-toggle {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
}

html body .topbar .theme-toggle .theme-toggle-symbol,
html body[data-theme="dark"] .topbar .theme-toggle .theme-toggle-symbol,
html body.modern-lhdn-page .topbar .theme-toggle .theme-toggle-symbol,
html body.modern-lhdn-page[data-theme="dark"] .topbar .theme-toggle .theme-toggle-symbol {
  width: 29px !important;
  height: 29px !important;
  flex-basis: 29px !important;
  display: grid !important;
  place-items: center !important;
  line-height: 0 !important;
}

html body .topbar .theme-toggle .theme-toggle-symbol svg,
html body.modern-lhdn-page .topbar .theme-toggle .theme-toggle-symbol svg,
html body .topbar .lang-toggle .lang-globe,
html body.modern-lhdn-page .topbar .lang-toggle .lang-globe {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
}

html body .topbar .theme-toggle .theme-toggle-symbol .theme-moon-svg,
html body.modern-lhdn-page .topbar .theme-toggle .theme-toggle-symbol .theme-moon-svg {
  transform: translateY(-1.6px);
}

/* Final optical center lock for the mobile hamburger and close icon. */
@media (max-width: 980px) {
  html body.modern-lhdn-page .topbar .menu-toggle::before,
  html body.modern-lhdn-page .topbar .menu-toggle::after,
  html body .service-page .topbar .menu-toggle::before,
  html body .service-page .topbar .menu-toggle::after {
    left: calc(50% - 8px) !important;
    width: 16px !important;
    height: 2.2px !important;
    transform-origin: center !important;
  }

  html body.modern-lhdn-page .topbar .menu-toggle::before,
  html body .service-page .topbar .menu-toggle::before {
    top: calc(50% - 7px) !important;
    transform: none !important;
    box-shadow: 0 6.25px 0 #171725 !important;
  }

  html body.modern-lhdn-page .topbar .menu-toggle::after,
  html body .service-page .topbar .menu-toggle::after {
    top: calc(50% + 5.5px) !important;
    transform: none !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .menu-toggle::before,
  html body.modern-lhdn-page .topbar.menu-open .menu-toggle::after,
  html body .service-page .topbar.menu-open .menu-toggle::before,
  html body .service-page .topbar.menu-open .menu-toggle::after {
    top: calc(50% - 1.25px) !important;
    left: calc(50% - 8px) !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .menu-toggle::before,
  html body .service-page .topbar.menu-open .menu-toggle::before {
    transform: rotate(45deg) !important;
    box-shadow: none !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .menu-toggle::after,
  html body .service-page .topbar.menu-open .menu-toggle::after {
    transform: rotate(-45deg) !important;
  }

  html body.modern-lhdn-page[data-theme="dark"] .topbar .menu-toggle::before,
  html body[data-theme="dark"] .service-page .topbar .menu-toggle::before {
    box-shadow: 0 6.25px 0 #e8edff !important;
  }

  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .menu-toggle::before,
  html body[data-theme="dark"] .service-page .topbar.menu-open .menu-toggle::before {
    box-shadow: none !important;
  }
}

/* True EOF lock: LHDN header content stays vertically centered and display controls stay inside hamburger menu. */
html body.modern-lhdn-page .topbar {
  display: grid !important;
  grid-template-columns: minmax(68px, 1fr) auto auto !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  place-items: center stretch !important;
  min-height: 78px !important;
  height: 78px !important;
  padding: 5px clamp(16px, 4vw, 58px) !important;
  gap: 18px !important;
}
html body.modern-lhdn-page .topbar .brand,
html body.modern-lhdn-page .topbar .nav-cta,
html body.modern-lhdn-page .topbar .menu-toggle { align-self: center !important; }
html body.modern-lhdn-page .topbar .brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  width: 68px !important;
  min-width: 68px !important;
  height: 68px !important;
}
html body.modern-lhdn-page .brand-logo,
html body.modern-lhdn-page .topbar .brand img {
  width: 68px !important;
  height: 68px !important;
}
html body.modern-lhdn-page .topbar .nav-cta {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  margin: 0 !important;
}
html body.modern-lhdn-page .topbar .menu-toggle {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  margin: 0 !important;
}
html body:not(.home-page) .topbar > .theme-toggle,
html body:not(.home-page) .topbar > .lang-toggle { display: none !important; }
html body:not(.home-page) .topbar .mobile-menu-actions { display: none !important; }
html body:not(.home-page) .topbar.menu-open .mobile-menu-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 8px !important;
  padding: 10px 4px 2px !important;
  border-top: 1px solid rgba(226, 232, 246, 0.95) !important;
}
html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .theme-toggle,
html body:not(.home-page) .topbar.menu-open .mobile-menu-actions .lang-toggle {
  position: static !important;
  display: inline-flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}
@media (max-width: 720px) {
  html body.modern-lhdn-page .topbar {
    grid-template-columns: minmax(50px, 1fr) auto auto !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 4px 10px !important;
    gap: 10px !important;
  }
  html body.modern-lhdn-page .topbar .brand {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
  }
  html body.modern-lhdn-page .brand-logo,
  html body.modern-lhdn-page .topbar .brand img {
    width: 50px !important;
    height: 50px !important;
  }
}

/* True EOF lock: LHDN dark-mode logo stays circular after header overrides. */
html body.modern-lhdn-page[data-theme="dark"] .brand-logo,
html body.modern-lhdn-page[data-theme="dark"] .topbar .brand img {
  content: url("assets/grace-logo-circle.png") !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  flex: 0 0 68px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  clip-path: circle(50% at 50% 50%) !important;
  background: radial-gradient(circle at 51.5% 50%, #ffffff 0 61.5%, transparent 62.5%) !important;
  object-fit: cover !important;
  object-position: center !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

@media (max-width: 720px) {
  html body.modern-lhdn-page[data-theme="dark"] .brand-logo,
  html body.modern-lhdn-page[data-theme="dark"] .topbar .brand img {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    flex-basis: 50px !important;
    border-width: 1px !important;
  }
}

/* Real final admin report lock: this must remain at the bottom. */
html body .admin-page .admin-activity-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .admin-page .admin-activity-table {
  display: table !important;
  width: 1120px !important;
  min-width: 1120px !important;
  max-width: none !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

html body .admin-page .admin-activity-table thead {
  display: table-header-group !important;
}

html body .admin-page .admin-activity-table tbody {
  display: table-row-group !important;
}

html body .admin-page .admin-activity-table tr {
  display: table-row !important;
  width: auto !important;
}

html body .admin-page .admin-activity-table th,
html body .admin-page .admin-activity-table td {
  display: table-cell !important;
  max-width: none !important;
  padding: 7px 6px !important;
  font-size: 0.72rem !important;
  line-height: 1.22 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  vertical-align: top !important;
}

html body .admin-page .admin-activity-table th {
  font-size: 0.64rem !important;
  letter-spacing: 0 !important;
}

html body .admin-page .admin-support-request-table {
  width: 640px !important;
  min-width: 640px !important;
}

html body .admin-page .admin-activity-report-table {
  width: 1120px !important;
  min-width: 1120px !important;
}

html body .admin-page .admin-support-request-table th:nth-child(1),
html body .admin-page .admin-support-request-table td:nth-child(1) { width: 96px !important; min-width: 96px !important; }
html body .admin-page .admin-support-request-table th:nth-child(2),
html body .admin-page .admin-support-request-table td:nth-child(2) { width: 105px !important; min-width: 105px !important; }
html body .admin-page .admin-support-request-table th:nth-child(3),
html body .admin-page .admin-support-request-table td:nth-child(3) { width: 132px !important; min-width: 132px !important; }
html body .admin-page .admin-support-request-table th:nth-child(4),
html body .admin-page .admin-support-request-table td:nth-child(4) { width: 150px !important; min-width: 150px !important; }
html body .admin-page .admin-support-request-table th:nth-child(5),
html body .admin-page .admin-support-request-table td:nth-child(5) { width: 150px !important; min-width: 150px !important; }
html body .admin-page .admin-support-request-table th:nth-child(6),
html body .admin-page .admin-support-request-table td:nth-child(6) {
  width: 220px !important;
  min-width: 220px !important;
  white-space: normal !important;
}

html body .admin-page .admin-activity-report-table th:nth-child(1),
html body .admin-page .admin-activity-report-table td:nth-child(1) { width: 96px !important; min-width: 96px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(2),
html body .admin-page .admin-activity-report-table td:nth-child(2) { width: 82px !important; min-width: 82px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(3),
html body .admin-page .admin-activity-report-table td:nth-child(3) { width: 125px !important; min-width: 125px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(4),
html body .admin-page .admin-activity-report-table td:nth-child(4) { width: 120px !important; min-width: 120px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(5),
html body .admin-page .admin-activity-report-table td:nth-child(5) {
  width: 270px !important;
  min-width: 270px !important;
  white-space: normal !important;
}
html body .admin-page .admin-activity-report-table th:nth-child(6),
html body .admin-page .admin-activity-report-table td:nth-child(6),
html body .admin-page .admin-activity-report-table th:nth-child(7),
html body .admin-page .admin-activity-report-table td:nth-child(7),
html body .admin-page .admin-activity-report-table th:nth-child(8),
html body .admin-page .admin-activity-report-table td:nth-child(8) { width: 112px !important; min-width: 112px !important; }
html body .admin-page .admin-activity-report-table th:nth-child(9),
html body .admin-page .admin-activity-report-table td:nth-child(9) { width: 90px !important; min-width: 90px !important; }

html body .admin-page .admin-status-badge {
  padding: 3px 5px !important;
  font-size: 0.62rem !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  html body .admin-page .admin-activity-table th,
  html body .admin-page .admin-activity-table td {
    padding: 6px 5px !important;
    font-size: 0.62rem !important;
  }

  html body .admin-page .admin-activity-table th {
    font-size: 0.57rem !important;
  }

  html body .admin-page .admin-status-badge {
    padding: 3px 5px !important;
    font-size: 0.57rem !important;
  }
}


/* Absolute EOF mobile menu polish: left-aligned professional sheet. */
@media (max-width: 980px) {
  html body .topbar.menu-open .nav,
  html body.modern-lhdn-page .topbar.menu-open .nav {
    left: clamp(14px, 4vw, 28px) !important;
    right: clamp(14px, 4vw, 28px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    gap: 2px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 10px !important;
  }

  html body .topbar.menu-open .nav a,
  html body .topbar.menu-open .nav-service-dropdown > a,
  html body .topbar.menu-open .nav-service-dropdown > button,
  html body.modern-lhdn-page .topbar.menu-open .nav a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > button {
    width: 100% !important;
    min-height: 44px !important;
    min-width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 11px 14px !important;
    border-radius: 14px !important;
  }

  html body .topbar.menu-open .mobile-menu-actions,
  html body.modern-lhdn-page .topbar.menu-open .mobile-menu-actions {
    justify-content: flex-start !important;
    padding-left: 2px !important;
  }

  html body[data-theme="dark"] .topbar.menu-open,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open {
    background: rgba(8, 14, 30, 0.96) !important;
    border-color: rgba(139, 156, 196, 0.22) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav {
    background: rgba(12, 20, 39, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(18px) !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav a,
  html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
  html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button {
    color: #e8edff !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .nav a:hover,
  html body[data-theme="dark"] .topbar.menu-open .nav a.is-active,
  html body[data-theme="dark"] .topbar.menu-open .nav .nav-calculator,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a:hover,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a.is-active,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav .nav-calculator {
    color: #ffffff !important;
    background: rgba(37, 99, 255, 0.24) !important;
  }
}


/* Absolute final mobile menu sheet sizing. */
@media (max-width: 980px) {
  html body .topbar.menu-open .nav,
  html body.modern-lhdn-page .topbar.menu-open .nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    grid-template-columns: none !important;
  }

  html body .topbar.menu-open .nav a,
  html body .topbar.menu-open .nav-service-dropdown,
  html body .topbar.menu-open .nav-service-dropdown > a,
  html body .topbar.menu-open .nav-service-dropdown > button,
  html body.modern-lhdn-page .topbar.menu-open .nav a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > button {
    align-self: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}


/* Universal dark open-menu lock: same look at every width. */
html body[data-theme="dark"] .topbar.menu-open,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open {
  background: rgba(8, 14, 30, 0.97) !important;
  border-color: rgba(139, 156, 196, 0.22) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32) !important;
}

html body[data-theme="dark"] .topbar.menu-open .nav,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  left: clamp(14px, 4vw, 28px) !important;
  right: clamp(14px, 4vw, 28px) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  gap: 2px !important;
  padding: 10px !important;
  background: rgba(12, 20, 39, 0.96) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(18px) !important;
}

html body[data-theme="dark"] .topbar.menu-open .nav a,
html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown,
html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button {
  align-self: stretch !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

html body[data-theme="dark"] .topbar.menu-open .nav a,
html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > a,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > button {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 11px 14px !important;
  border-radius: 14px !important;
  color: #e8edff !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html body[data-theme="dark"] .topbar.menu-open .nav a:hover,
html body[data-theme="dark"] .topbar.menu-open .nav a.is-active,
html body[data-theme="dark"] .topbar.menu-open .nav .nav-calculator,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a:hover,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav a.is-active,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .nav .nav-calculator {
  color: #ffffff !important;
  background: rgba(37, 99, 255, 0.24) !important;
}

html body[data-theme="dark"] .topbar.menu-open .mobile-menu-actions,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .mobile-menu-actions {
  justify-content: flex-start !important;
  padding-left: 2px !important;
  border-top-color: rgba(148, 163, 184, 0.2) !important;
}


/* Absolute final dark hamburger visibility lock. */
html body[data-theme="dark"] .topbar .menu-toggle::before,
html body[data-theme="dark"] .topbar .menu-toggle::after,
html body.modern-lhdn-page[data-theme="dark"] .topbar .menu-toggle::before,
html body.modern-lhdn-page[data-theme="dark"] .topbar .menu-toggle::after {
  background: #e8edff !important;
}

html body[data-theme="dark"] .topbar .menu-toggle::before,
html body.modern-lhdn-page[data-theme="dark"] .topbar .menu-toggle::before {
  box-shadow: 0 6.25px 0 #e8edff !important;
}

html body[data-theme="dark"] .topbar.menu-open .menu-toggle::before,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .menu-toggle::before {
  box-shadow: none !important;
}


/* Absolute final services submenu: stay inside the opened menu sheet. */
html body .topbar.menu-open .nav-service-dropdown,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown {
  position: static !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
}

html body .topbar.menu-open .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .services-dropdown-panel {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: none !important;
  align-self: stretch !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 4px 0 6px !important;
  padding: 6px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

html body .topbar.menu-open .nav-service-dropdown:hover .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown:focus-within .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown:hover .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown:focus-within .services-dropdown-panel {
  display: flex !important;
  flex-direction: column !important;
}

html body .topbar.menu-open .services-dropdown-panel a,
html body.modern-lhdn-page .topbar.menu-open .services-dropdown-panel a {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.25 !important;
}

html body[data-theme="dark"] .topbar.menu-open .services-dropdown-panel,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .services-dropdown-panel {
  background: rgba(7, 13, 28, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}


/* Absolute final hamburger balance: smaller, centered three-line mark. */
@media (max-width: 980px) {
  html body .topbar .menu-toggle::before,
  html body .topbar .menu-toggle::after,
  html body.modern-lhdn-page .topbar .menu-toggle::before,
  html body.modern-lhdn-page .topbar .menu-toggle::after {
    left: calc(50% - 7.5px) !important;
    width: 15px !important;
    height: 2px !important;
    border-radius: 999px !important;
  }

  html body .topbar .menu-toggle::before,
  html body.modern-lhdn-page .topbar .menu-toggle::before {
    top: calc(50% - 6px) !important;
    box-shadow: 0 6px 0 #171725 !important;
  }

  html body .topbar .menu-toggle::after,
  html body.modern-lhdn-page .topbar .menu-toggle::after {
    top: calc(50% + 6px) !important;
  }

  html body .topbar.menu-open .menu-toggle::before,
  html body .topbar.menu-open .menu-toggle::after,
  html body.modern-lhdn-page .topbar.menu-open .menu-toggle::before,
  html body.modern-lhdn-page .topbar.menu-open .menu-toggle::after {
    top: calc(50% - 1px) !important;
    left: calc(50% - 8px) !important;
    width: 16px !important;
    height: 2.2px !important;
  }

  html body[data-theme="dark"] .topbar .menu-toggle::before,
  html body.modern-lhdn-page[data-theme="dark"] .topbar .menu-toggle::before {
    box-shadow: 0 6px 0 #e8edff !important;
  }

  html body[data-theme="dark"] .topbar.menu-open .menu-toggle::before,
  html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open .menu-toggle::before {
    box-shadow: none !important;
  }
}


/* LHDN verify card responsive text: prevent URL and keywords from escaping the card. */
html body.modern-lhdn-page .verify-copy,
html body.modern-lhdn-page .verify-copy * {
  box-sizing: border-box !important;
}

html body.modern-lhdn-page .verify-copy {
  min-width: 0 !important;
  overflow: hidden !important;
}

html body.modern-lhdn-page .verify-copy ol,
html body.modern-lhdn-page .verify-copy li {
  min-width: 0 !important;
  max-width: 100% !important;
}

html body.modern-lhdn-page .verify-copy li {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

html body.modern-lhdn-page .verify-copy a {
  display: inline !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

html body.modern-lhdn-page .verify-blue {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (min-width: 721px) and (max-width: 1180px) {
  html body.modern-lhdn-page .verify-block {
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr) !important;
    gap: 18px !important;
  }

  html body.modern-lhdn-page .verify-copy {
    padding: 18px !important;
  }

  html body.modern-lhdn-page .verify-copy p,
  html body.modern-lhdn-page .verify-copy li {
    font-size: clamp(0.9rem, 1.8vw, 1.02rem) !important;
    line-height: 1.42 !important;
  }

  html body.modern-lhdn-page .verify-alert {
    font-size: clamp(0.9rem, 1.9vw, 1.04rem) !important;
    line-height: 1.25 !important;
  }
}

/* Desktop LHDN page scale lock: align lower sections, other services, and contact with fuller service pages. */
@media (min-width: 981px) {
  html body.modern-lhdn-page .service-page-hero,
  html body.modern-lhdn-page .service-page-grid,
  html body.modern-lhdn-page .section,
  html body.modern-lhdn-page #calculator,
  html body.modern-lhdn-page .contact {
    width: min(1760px, calc(100% - 56px)) !important;
  }

  html body.modern-lhdn-page .service-page-hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(600px, 1.12fr) !important;
    min-height: clamp(680px, 72vh, 820px) !important;
    padding-top: clamp(42px, 4vw, 66px) !important;
    padding-bottom: clamp(60px, 5vw, 86px) !important;
  }

  html body.modern-lhdn-page .service-page-hero h1 {
    font-size: clamp(3.4rem, 6.4vw, 6.8rem) !important;
  }

  html body.modern-lhdn-page .service-hero-art {
    min-height: 620px !important;
    transform: translateY(-6px) scale(1.045) !important;
    transform-origin: center !important;
  }

  html body.modern-lhdn-page .section {
    margin-top: clamp(80px, 8vw, 132px) !important;
    margin-bottom: clamp(80px, 8vw, 132px) !important;
  }

  html body.modern-lhdn-page .section-heading {
    max-width: 1180px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  html body.modern-lhdn-page .section-heading h2,
  html body.modern-lhdn-page .calculator-title,
  html body.modern-lhdn-page .service-panel h2,
  html body.modern-lhdn-page .contact-footer-copy h2,
  html body.modern-lhdn-page .contact h2 {
    max-width: 1120px !important;
    font-size: clamp(2.65rem, 4.6vw, 5.35rem) !important;
  }

  html body.modern-lhdn-page .service-panel,
  html body.modern-lhdn-page .detail-card,
  html body.modern-lhdn-page .fee-banner,
  html body.modern-lhdn-page .guideline-card,
  html body.modern-lhdn-page .process-panel {
    border-radius: 22px !important;
  }

  html body.modern-lhdn-page .service-panel,
  html body.modern-lhdn-page .detail-card,
  html body.modern-lhdn-page .process-panel {
    padding: clamp(26px, 3vw, 44px) !important;
  }

  html body.modern-lhdn-page .other-services {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  html body.modern-lhdn-page .service-link {
    min-height: 116px !important;
    padding: 22px !important;
    border-radius: 20px !important;
  }

  html body.modern-lhdn-page .contact {
    margin-top: clamp(92px, 8vw, 140px) !important;
    padding: clamp(58px, 6vw, 104px) !important;
  }
}

/* Final controlled Services submenu: collapsed until the Services arrow is tapped. */
.services-dropdown-trigger {
  cursor: pointer;
}

.topbar .nav .services-dropdown-trigger {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-align: inherit !important;
}

.topbar .nav .services-dropdown-trigger:focus {
  outline: none !important;
}

.topbar .nav .services-dropdown-trigger:focus-visible {
  color: var(--new-blue, var(--blue)) !important;
}

.services-dropdown-trigger .service-menu-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform .2s ease;
  flex: 0 0 auto;
}

.nav-service-dropdown.services-expanded .service-menu-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}

@media (max-width: 980px) {
  html body .topbar.menu-open .services-dropdown-trigger,
  html body.modern-lhdn-page .topbar.menu-open .services-dropdown-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  html body .topbar.menu-open .services-dropdown-panel,
  html body.modern-lhdn-page .topbar.menu-open .services-dropdown-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 0 !important;
  }

  html body .topbar.menu-open .nav-service-dropdown.services-expanded .services-dropdown-panel,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown.services-expanded .services-dropdown-panel {
    display: grid !important;
    grid-template-columns: 1fr !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: min(48vh, 420px) !important;
    overflow-y: auto !important;
    margin-top: 8px !important;
    padding: 8px 0 !important;
    border-width: 1px !important;
  }
}

/* Service pages mobile menu sheet: match the homepage full-width dark list style. */
@media (max-width: 980px) {
  html body.modern-lhdn-page .topbar.menu-open,
  html body.service-page .topbar.menu-open {
    background: rgba(8, 14, 30, 0.97) !important;
    border-color: rgba(139, 156, 196, 0.22) !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .nav,
  html body.service-page .topbar.menu-open .nav {
    position: absolute !important;
    top: calc(100% + 18px) !important;
    left: clamp(14px, 4vw, 28px) !important;
    right: clamp(14px, 4vw, 28px) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 18px 24px !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 24px !important;
    background: rgba(12, 20, 39, 0.96) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(18px) !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .nav a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > button,
  html body.service-page .topbar.menu-open .nav a,
  html body.service-page .topbar.menu-open .nav-service-dropdown > button {
    width: 100% !important;
    min-height: 54px !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: #e8edff !important;
    font-size: clamp(1.02rem, 4.6vw, 1.28rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    box-shadow: none !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .nav > a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown,
  html body.service-page .topbar.menu-open .nav > a,
  html body.service-page .topbar.menu-open .nav-service-dropdown {
    border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .nav > a:first-child,
  html body.service-page .topbar.menu-open .nav > a:first-child {
    border-top: 0 !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .nav a:hover,
  html body.modern-lhdn-page .topbar.menu-open .nav a.is-active,
  html body.modern-lhdn-page .topbar.menu-open .nav .nav-calculator,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown.services-expanded > button,
  html body.service-page .topbar.menu-open .nav a:hover,
  html body.service-page .topbar.menu-open .nav a.is-active,
  html body.service-page .topbar.menu-open .nav .nav-calculator,
  html body.service-page .topbar.menu-open .nav-service-dropdown.services-expanded > button {
    background: rgba(37, 99, 255, 0.30) !important;
    border: 1px solid rgba(93, 135, 255, 0.42) !important;
    color: #ffffff !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .mobile-menu-actions,
  html body.service-page .topbar.menu-open .mobile-menu-actions {
    justify-content: flex-start !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
  }
}

/* Final theme-aware service mobile menu sheet. Dark stays dark; sun mode stays light. */
@media (max-width: 980px) {
  html body.modern-lhdn-page .topbar.menu-open .nav,
  html body.service-page .topbar.menu-open .nav {
    position: absolute !important;
    top: calc(100% + 18px) !important;
    left: clamp(14px, 4vw, 28px) !important;
    right: clamp(14px, 4vw, 28px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    translate: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 18px 24px !important;
    border-radius: 24px !important;
    backdrop-filter: blur(18px) !important;
  }

  html body.modern-lhdn-page .topbar.menu-open .nav a,
  html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > button,
  html body.service-page .topbar.menu-open .nav a,
  html body.service-page .topbar.menu-open .nav-service-dropdown > button {
    min-height: 54px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    font-size: clamp(1.02rem, 4.6vw, 1.28rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }

  html body:not([data-theme="dark"]).modern-lhdn-page .topbar.menu-open,
  html body:not([data-theme="dark"]).service-page .topbar.menu-open {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(219, 226, 242, 0.95) !important;
  }

  html body:not([data-theme="dark"]).modern-lhdn-page .topbar.menu-open .nav,
  html body:not([data-theme="dark"]).service-page .topbar.menu-open .nav {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(219, 226, 242, 0.95) !important;
    box-shadow: 0 24px 54px rgba(23, 23, 37, 0.14) !important;
  }

  html body:not([data-theme="dark"]).modern-lhdn-page .topbar.menu-open .nav a,
  html body:not([data-theme="dark"]).modern-lhdn-page .topbar.menu-open .nav-service-dropdown > button,
  html body:not([data-theme="dark"]).service-page .topbar.menu-open .nav a,
  html body:not([data-theme="dark"]).service-page .topbar.menu-open .nav-service-dropdown > button {
    color: #171725 !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body:not([data-theme="dark"]).modern-lhdn-page .topbar.menu-open .nav > a,
  html body:not([data-theme="dark"]).modern-lhdn-page .topbar.menu-open .nav-service-dropdown,
  html body:not([data-theme="dark"]).service-page .topbar.menu-open .nav > a,
  html body:not([data-theme="dark"]).service-page .topbar.menu-open .nav-service-dropdown {
    border-top: 1px solid rgba(219, 226, 242, 0.9) !important;
  }

  html body[data-theme="dark"].modern-lhdn-page .topbar.menu-open .nav,
  html body[data-theme="dark"].service-page .topbar.menu-open .nav {
    background: rgba(12, 20, 39, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
  }
}

/* LHDN mobile menu width lock: override header grid placement. */
@media (max-width: 980px) {
  html body.modern-lhdn-page .topbar.menu-open .nav {
    grid-column: 1 / -1 !important;
    grid-area: auto !important;
    justify-self: stretch !important;
    left: clamp(14px, 4vw, 28px) !important;
    right: auto !important;
    width: calc(100vw - (clamp(14px, 4vw, 28px) * 2)) !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* Service pages opened menu sheet: same behavior at every desktop/mobile width. */
html body.modern-lhdn-page .topbar.menu-open .nav,
html body.service-page .topbar.menu-open .nav {
  position: absolute !important;
  top: calc(100% + 18px) !important;
  left: clamp(14px, 4vw, 28px) !important;
  right: auto !important;
  grid-column: 1 / -1 !important;
  grid-area: auto !important;
  justify-self: stretch !important;
  width: calc(100vw - (clamp(14px, 4vw, 28px) * 2)) !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  translate: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 18px 24px !important;
  border-radius: 24px !important;
  backdrop-filter: blur(18px) !important;
}

html body.modern-lhdn-page .topbar.menu-open .nav a,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > button,
html body.service-page .topbar.menu-open .nav a,
html body.service-page .topbar.menu-open .nav-service-dropdown > button {
  min-height: 54px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  font-size: clamp(1.02rem, 4.6vw, 1.28rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-align: left !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

html body:not([data-theme="dark"]).modern-lhdn-page .topbar.menu-open .nav,
html body:not([data-theme="dark"]).service-page .topbar.menu-open .nav {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(219, 226, 242, 0.95) !important;
  box-shadow: 0 24px 54px rgba(23, 23, 37, 0.14) !important;
}

html body[data-theme="dark"].modern-lhdn-page .topbar.menu-open .nav,
html body[data-theme="dark"].service-page .topbar.menu-open .nav {
  background: rgba(12, 20, 39, 0.96) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
}

/* Service pages: Services list opens only when the arrow row is clicked. */
html body.modern-lhdn-page .topbar.menu-open .services-dropdown-trigger,
html body.service-page .topbar.menu-open .services-dropdown-trigger {
  justify-content: flex-start !important;
  text-align: left !important;
}

html body.modern-lhdn-page .topbar.menu-open .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown:hover .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown:focus-within .services-dropdown-panel,
html body.service-page .topbar.menu-open .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown:hover .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown:focus-within .services-dropdown-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown.services-expanded .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown.services-expanded:hover .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown.services-expanded:focus-within .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown.services-expanded .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown.services-expanded:hover .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown.services-expanded:focus-within .services-dropdown-panel {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  max-height: min(48vh, 420px) !important;
  overflow-y: auto !important;
}

/* Hard lock: inside hamburger menu, Services stays left and submenu is click-only. */
html body .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger {
  justify-content: flex-start !important;
  text-align: left !important;
}

html body .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown:not(.services-expanded):hover > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown:not(.services-expanded):focus-within > .services-dropdown-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Final hamburger rule: desktop header hover stays normal; menu sheet is click-only. */
html body.service-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body:not(.home-page):not(.announcement-page).service-has-review-promo .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}

html body.service-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded):hover > .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded):focus-within > .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded):hover > .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded):focus-within > .services-dropdown-panel,
html body:not(.home-page):not(.announcement-page).service-has-review-promo .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body:not(.home-page):not(.announcement-page).service-has-review-promo .topbar.menu-open .nav-service-dropdown:not(.services-expanded):hover > .services-dropdown-panel,
html body:not(.home-page):not(.announcement-page).service-has-review-promo .topbar.menu-open .nav-service-dropdown:not(.services-expanded):focus-within > .services-dropdown-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

html body.service-page .topbar.menu-open .nav-service-dropdown.services-expanded > .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown.services-expanded:hover > .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown.services-expanded:focus-within > .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown.services-expanded > .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown.services-expanded:hover > .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown.services-expanded:focus-within > .services-dropdown-panel,
html body:not(.home-page):not(.announcement-page).service-has-review-promo .topbar.menu-open .nav-service-dropdown.services-expanded > .services-dropdown-panel,
html body:not(.home-page):not(.announcement-page).service-has-review-promo .topbar.menu-open .nav-service-dropdown.services-expanded:hover > .services-dropdown-panel,
html body:not(.home-page):not(.announcement-page).service-has-review-promo .topbar.menu-open .nav-service-dropdown.services-expanded:focus-within > .services-dropdown-panel {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  max-height: min(48vh, 420px) !important;
  overflow-y: auto !important;
}

/* Final unified hamburger sheet: same layout at every stretched screen width. */
html body .topbar.menu-open .nav {
  position: absolute !important;
  top: calc(100% + 18px) !important;
  left: clamp(14px, 4vw, 32px) !important;
  right: auto !important;
  width: calc(100vw - (clamp(14px, 4vw, 32px) * 2)) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: clamp(20px, 3.2vw, 32px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  border-radius: 24px !important;
  backdrop-filter: blur(18px) !important;
  box-sizing: border-box !important;
}

html body:not([data-theme="dark"]) .topbar.menu-open .nav {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(219, 226, 242, 0.95) !important;
  box-shadow: 0 24px 54px rgba(23, 23, 37, 0.14) !important;
}

html body[data-theme="dark"] .topbar.menu-open .nav {
  background: rgba(12, 20, 39, 0.96) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
}

html body .topbar.menu-open .nav > a,
html body .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: clamp(50px, 5.8vw, 64px) !important;
  margin: 0 !important;
  padding: 0 clamp(14px, 2.2vw, 24px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: clamp(1.08rem, 2.3vw, 1.34rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

html body .topbar.menu-open .nav > a + a,
html body .topbar.menu-open .nav > a + .nav-service-dropdown,
html body .topbar.menu-open .nav-service-dropdown + a,
html body .topbar.menu-open .nav-service-dropdown {
  border-top: 1px solid rgba(148, 163, 184, 0.22) !important;
}

html body .topbar.menu-open .nav a:hover,
html body .topbar.menu-open .nav a.is-active,
html body .topbar.menu-open .nav .nav-calculator,
html body .topbar.menu-open .nav-service-dropdown.services-expanded > .services-dropdown-trigger {
  background: rgba(37, 99, 235, 0.12) !important;
  color: var(--blue) !important;
  border-radius: 16px !important;
}

html body .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown:not(.services-expanded):hover > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown:not(.services-expanded):focus-within > .services-dropdown-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border-width: 0 !important;
}

html body .topbar.menu-open .nav-service-dropdown.services-expanded > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown.services-expanded:hover > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown.services-expanded:focus-within > .services-dropdown-panel {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  max-height: min(48vh, 420px) !important;
  overflow-y: auto !important;
  margin: 8px 0 0 !important;
  padding: 8px 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 18px !important;
}

/* Specificity lock for stretched hamburger menus. */
html body.home-page .topbar.menu-open .nav > a,
html body.modern-lhdn-page .topbar.menu-open .nav > a,
html body.service-page .topbar.menu-open .nav > a,
html body.service-has-review-promo .topbar.menu-open .nav > a,
html body.home-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.service-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.service-has-review-promo .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

html body.home-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body.service-has-review-promo .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Menu sheet visual lock: keep the hamburger menu identical across stretched widths. */
html body .topbar.menu-open .nav,
html body.home-page .topbar.menu-open .nav,
html body.service-page .topbar.menu-open .nav,
html body.service-has-review-promo .topbar.menu-open .nav,
html body.modern-lhdn-page .topbar.menu-open .nav,
html body.announcement-page .topbar.menu-open .nav {
  position: absolute !important;
  top: calc(100% + 18px) !important;
  left: clamp(18px, 2.6vw, 42px) !important;
  right: auto !important;
  width: calc(100vw - (clamp(18px, 2.6vw, 42px) * 2)) !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: min(58vh, 640px) !important;
  max-height: calc(100vh - 170px) !important;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 42px) clamp(20px, 3vw, 38px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow-y: auto !important;
  border-radius: clamp(22px, 2vw, 34px) !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  z-index: 80 !important;
}

html body:not([data-theme="dark"]) .topbar.menu-open .nav,
html body:not([data-theme="dark"]).home-page .topbar.menu-open .nav,
html body:not([data-theme="dark"]).service-page .topbar.menu-open .nav,
html body:not([data-theme="dark"]).service-has-review-promo .topbar.menu-open .nav,
html body:not([data-theme="dark"]).modern-lhdn-page .topbar.menu-open .nav,
html body:not([data-theme="dark"]).announcement-page .topbar.menu-open .nav {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(219, 226, 242, 0.98) !important;
  box-shadow: 0 26px 64px rgba(23, 23, 37, 0.15) !important;
  color: var(--ink) !important;
}

html body[data-theme="dark"] .topbar.menu-open .nav,
html body[data-theme="dark"].home-page .topbar.menu-open .nav,
html body[data-theme="dark"].service-page .topbar.menu-open .nav,
html body[data-theme="dark"].service-has-review-promo .topbar.menu-open .nav,
html body[data-theme="dark"].modern-lhdn-page .topbar.menu-open .nav,
html body[data-theme="dark"].announcement-page .topbar.menu-open .nav {
  background: rgba(10, 18, 35, 0.96) !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.38) !important;
  color: #eef3ff !important;
}

html body .topbar.menu-open .nav > a,
html body .topbar.menu-open .nav-service-dropdown,
html body .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

html body .topbar.menu-open .nav > a,
html body .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.home-page .topbar.menu-open .nav > a,
html body.home-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.service-page .topbar.menu-open .nav > a,
html body.service-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.service-has-review-promo .topbar.menu-open .nav > a,
html body.service-has-review-promo .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.modern-lhdn-page .topbar.menu-open .nav > a,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.announcement-page .topbar.menu-open .nav > a,
html body.announcement-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: clamp(56px, 5.2vw, 72px) !important;
  padding: 0 clamp(16px, 2vw, 26px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: clamp(1.15rem, 1.75vw, 1.5rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
}

html body .topbar.menu-open .nav > a + a,
html body .topbar.menu-open .nav > a + .nav-service-dropdown,
html body .topbar.menu-open .nav-service-dropdown + a,
html body .topbar.menu-open .nav-service-dropdown {
  border-top: 1px solid rgba(148, 163, 184, 0.23) !important;
}

html body .topbar.menu-open .nav a:hover,
html body .topbar.menu-open .nav-service-dropdown.services-expanded > .services-dropdown-trigger {
  background: rgba(37, 99, 235, 0.08) !important;
  border-radius: 16px !important;
}

html body .topbar.menu-open .nav .nav-calculator,
html body .topbar.menu-open .nav a.is-active {
  background: transparent !important;
  color: var(--blue) !important;
  border-radius: 0 !important;
}

html body .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger .service-menu-caret {
  margin-left: 8px !important;
}

html body .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown:not(.services-expanded):hover > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown:not(.services-expanded):focus-within > .services-dropdown-panel,
html body.home-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body.service-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body.service-has-review-promo .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body.announcement-page .topbar.menu-open .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body .topbar.menu-open .nav-service-dropdown.services-expanded > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown.services-expanded:hover > .services-dropdown-panel,
html body .topbar.menu-open .nav-service-dropdown.services-expanded:focus-within > .services-dropdown-panel {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(40vh, 380px) !important;
  margin: 8px 0 0 !important;
  padding: 8px 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 18px !important;
  overflow-y: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html body:not([data-theme="dark"]) .topbar.menu-open .nav-service-dropdown.services-expanded > .services-dropdown-panel {
  background: rgba(248, 251, 255, 0.98) !important;
}

html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown.services-expanded > .services-dropdown-panel {
  background: rgba(7, 13, 27, 0.98) !important;
}

html body .topbar.menu-open .services-dropdown-panel a {
  display: flex !important;
  min-height: 48px !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  font-size: clamp(1rem, 1.4vw, 1.22rem) !important;
  font-weight: 850 !important;
  white-space: normal !important;
}

html body .topbar.menu-open .mobile-menu-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-top: auto !important;
  padding-top: clamp(18px, 3vw, 30px) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.23) !important;
}

html body .topbar.menu-open .mobile-menu-actions .theme-toggle,
html body .topbar.menu-open .mobile-menu-actions .lang-toggle {
  flex: 0 0 auto !important;
}

/* Final tone lock: hamburger menu text should match the softer grey reference. */
html body .topbar.menu-open .nav > a,
html body .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.home-page .topbar.menu-open .nav > a,
html body.home-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.service-page .topbar.menu-open .nav > a,
html body.service-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.service-has-review-promo .topbar.menu-open .nav > a,
html body.service-has-review-promo .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.modern-lhdn-page .topbar.menu-open .nav > a,
html body.modern-lhdn-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger,
html body.announcement-page .topbar.menu-open .nav > a,
html body.announcement-page .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger {
  color: #667085 !important;
  font-weight: 800 !important;
}

html body .topbar.menu-open .nav .nav-calculator,
html body .topbar.menu-open .nav a.is-active {
  color: var(--blue) !important;
  font-weight: 850 !important;
}

html body[data-theme="dark"] .topbar.menu-open .nav > a,
html body[data-theme="dark"] .topbar.menu-open .nav-service-dropdown > .services-dropdown-trigger {
  color: #dbe6ff !important;
}

html body[data-theme="dark"] .topbar.menu-open .nav .nav-calculator,
html body[data-theme="dark"] .topbar.menu-open .nav a.is-active {
  color: #8fb2ff !important;
}

/* Absolute final hamburger override: submenu must sit inside the sheet, never as a side dropdown. */
html body .topbar.menu-open #siteNav.nav > a,
html body .topbar.menu-open #siteNav.nav .nav-service-dropdown > .services-dropdown-trigger {
  color: #667085 !important;
  font-weight: 800 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .topbar.menu-open #siteNav.nav .nav-calculator,
html body .topbar.menu-open #siteNav.nav > a.is-active {
  color: var(--blue) !important;
}

html body[data-theme="dark"] .topbar.menu-open #siteNav.nav > a,
html body[data-theme="dark"] .topbar.menu-open #siteNav.nav .nav-service-dropdown > .services-dropdown-trigger {
  color: #dbe6ff !important;
}

html body .topbar.menu-open #siteNav.nav .nav-service-dropdown {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}

html body .topbar.menu-open #siteNav.nav .services-dropdown-panel,
html body .topbar.menu-open #siteNav.nav .nav-service-dropdown:hover .services-dropdown-panel,
html body .topbar.menu-open #siteNav.nav .nav-service-dropdown:focus-within .services-dropdown-panel {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

html body .topbar.menu-open #siteNav.nav .nav-service-dropdown:not(.services-expanded) > .services-dropdown-panel,
html body .topbar.menu-open #siteNav.nav .nav-service-dropdown:not(.services-expanded):hover > .services-dropdown-panel,
html body .topbar.menu-open #siteNav.nav .nav-service-dropdown:not(.services-expanded):focus-within > .services-dropdown-panel {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

html body .topbar.menu-open #siteNav.nav .nav-service-dropdown.services-expanded > .services-dropdown-panel,
html body .topbar.menu-open #siteNav.nav .nav-service-dropdown.services-expanded:hover > .services-dropdown-panel,
html body .topbar.menu-open #siteNav.nav .nav-service-dropdown.services-expanded:focus-within > .services-dropdown-panel {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: min(40vh, 380px) !important;
  margin: 8px 0 0 !important;
  padding: 8px 0 !important;
  overflow-y: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Services submenu tone lock: keep list text soft grey at every width. */
html body #siteNav.nav .services-dropdown-panel a,
html body .topbar.menu-open #siteNav.nav .services-dropdown-panel a,
html body.home-page #siteNav.nav .services-dropdown-panel a,
html body.service-page #siteNav.nav .services-dropdown-panel a,
html body.service-has-review-promo #siteNav.nav .services-dropdown-panel a,
html body.modern-lhdn-page #siteNav.nav .services-dropdown-panel a,
html body.announcement-page #siteNav.nav .services-dropdown-panel a {
  color: #667085 !important;
  font-weight: 800 !important;
  background: transparent !important;
}

html body #siteNav.nav .services-dropdown-panel a:hover,
html body #siteNav.nav .services-dropdown-panel a:focus-visible {
  color: var(--blue) !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

html body[data-theme="dark"] #siteNav.nav .services-dropdown-panel a {
  color: #dbe6ff !important;
}

/* LHDN hamburger service list needs a calmer size than the main menu labels. */
html body.modern-lhdn-page .topbar.menu-open #siteNav.nav .services-dropdown-panel a {
  min-height: 42px !important;
  padding: 8px 16px !important;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem) !important;
  line-height: 1.22 !important;
}

/* LHDN-only alignment: match the other service menus and keep actions inside the sheet. */
html body.modern-lhdn-page .topbar.menu-open #siteNav.nav > a,
html body.modern-lhdn-page .topbar.menu-open #siteNav.nav .nav-service-dropdown > .services-dropdown-trigger {
  min-height: clamp(50px, 4.6vw, 64px) !important;
  padding: 0 clamp(14px, 1.8vw, 22px) !important;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
}

html body.modern-lhdn-page .topbar.menu-open #siteNav.nav {
  flex-wrap: nowrap !important;
}

html body.modern-lhdn-page .topbar.menu-open #siteNav.nav .nav-service-dropdown {
  flex: 0 0 auto !important;
  align-self: stretch !important;
}

html body.modern-lhdn-page .topbar.menu-open #siteNav.nav .mobile-menu-actions {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  align-self: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: auto 0 0 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Final menu column lock: keep hamburger contents in one column at every desktop width. */
html body .topbar.menu-open #siteNav.nav,
html body.home-page .topbar.menu-open #siteNav.nav,
html body.service-page .topbar.menu-open #siteNav.nav,
html body.service-has-review-promo .topbar.menu-open #siteNav.nav,
html body.modern-lhdn-page .topbar.menu-open #siteNav.nav,
html body.announcement-page .topbar.menu-open #siteNav.nav {
  flex-flow: column nowrap !important;
  flex-wrap: nowrap !important;
  align-content: stretch !important;
}

html body .topbar.menu-open #siteNav.nav > a,
html body .topbar.menu-open #siteNav.nav .nav-service-dropdown,
html body .topbar.menu-open #siteNav.nav .mobile-menu-actions {
  flex: 0 0 auto !important;
}

html body.modern-lhdn-page .topbar.menu-open #siteNav.nav .mobile-menu-actions {
  margin: 12px 0 0 0 !important;
}

html body.modern-lhdn-page .topbar.menu-open #siteNav.nav .services-dropdown-panel a {
  font-size: clamp(0.88rem, 1.05vw, 1rem) !important;
  min-height: 38px !important;
  padding: 7px 16px !important;
}

html body.modern-lhdn-page .topbar.menu-open #siteNav.nav .nav-calculator,
html body.modern-lhdn-page .topbar.menu-open #siteNav.nav > a.is-active {
  color: #3f7cff !important;
  background: transparent !important;
}

html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open #siteNav.nav .nav-calculator,
html body.modern-lhdn-page[data-theme="dark"] .topbar.menu-open #siteNav.nav > a.is-active {
  color: #8fb2ff !important;
  background: transparent !important;
}

/* Service mobile header: keep logo clear of the blue review bar. */
@media (max-width: 720px) {
  html body:not(.home-page):not(.announcement-page) {
    padding-top: 64px !important;
  }

  html body.service-has-review-promo:not(.home-page):not(.announcement-page),
  html body.modern-lhdn-page.service-has-review-promo {
    --review-promo-height: 38px !important;
  }

  html body.service-has-review-promo:not(.home-page):not(.announcement-page),
  html body.modern-lhdn-page.service-has-review-promo {
    padding-top: calc(64px + var(--review-promo-height, 30px)) !important;
  }

  html body:not(.home-page):not(.announcement-page) .topbar {
    min-height: 64px !important;
    height: 64px !important;
    padding-top: 8px !important;
    padding-bottom: 4px !important;
  }
}

/* LHDN Stamping: make calculator and quotation feel like the key service tool. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase {
  scroll-margin-top: calc(var(--review-promo-height, 0px) + 126px);
  width: min(1760px, calc(100% - clamp(28px, 5vw, 96px)));
  margin: clamp(38px, 5vw, 78px) auto;
  padding: clamp(22px, 3.4vw, 46px);
  border: 1px solid rgba(35, 104, 255, 0.16);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 104, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(0, 200, 117, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.94));
  box-shadow: 0 30px 80px rgba(23, 42, 88, 0.12);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  padding: clamp(24px, 3.2vw, 38px) clamp(18px, 3vw, 40px);
  border: 1px solid rgba(35, 104, 255, 0.18);
  border-radius: clamp(22px, 2.4vw, 32px);
  background:
    radial-gradient(circle at 20% 8%, rgba(35, 104, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(0, 200, 117, 0.13), transparent 26%),
    linear-gradient(135deg, rgba(232, 240, 255, 0.96), rgba(246, 251, 255, 0.92));
  box-shadow: 0 22px 48px rgba(35, 104, 255, 0.10);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 20px);
  max-width: 100%;
  text-align: center;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-eyebrow {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  margin-bottom: 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 159, 26, 0.22);
  border-radius: 999px;
  background: rgba(255, 159, 26, 0.12);
  color: #f08a20;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.6rem, 4.9vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  padding-bottom: 0.06em;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-guide-link .guide-sign,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-title .calculator-guide-link .guide-sign {
  width: clamp(24px, 1.9vw, 34px) !important;
  height: clamp(24px, 1.9vw, 34px) !important;
  font-size: clamp(0.95rem, 1.25vw, 1.25rem) !important;
  line-height: 1 !important;
  transform: translateY(-0.08em);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading > p {
  max-width: 780px;
  margin: 0;
  color: #526076;
  font-size: clamp(1.05rem, 1.32vw, 1.34rem);
  font-weight: 400;
  line-height: 1.38;
  text-align: center;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.96)),
    #fff;
  box-shadow: 0 24px 58px rgba(17, 31, 68, 0.12);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(35, 104, 255, 0.14);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card::before {
  content: "Calculator";
  display: inline-flex;
  width: fit-content !important;
  max-width: max-content !important;
  margin-bottom: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(35, 104, 255, 0.10);
  color: #2368ff;
  font-size: clamp(1.15rem, 1.85vw, 1.55rem);
  font-weight: 950;
  text-transform: uppercase;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field {
  margin-bottom: 10px;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field label {
  color: #263348;
  font-size: 0.92rem;
  font-weight: 900;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field select {
  min-height: 48px;
  border-radius: 16px;
  border-color: rgba(35, 104, 255, 0.18);
  background: #fff;
  color: #111827;
  font-weight: 800;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border-radius: 18px;
  font-size: 1.02rem;
  font-weight: 950;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.12);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card::before {
  content: "";
  display: none;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px clamp(18px, 2.6vw, 28px) 10px;
  border: 0 !important;
  box-shadow: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-logo {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff7f1;
  color: #d56f52;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(213, 111, 82, 0.22);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head strong {
  display: block;
  color: #ff861f;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-title-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  text-align: left;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.95rem;
  font-weight: 800;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-head {
  gap: 12px;
  justify-content: space-between;
  padding: 0 clamp(18px, 2.6vw, 28px) 10px calc(clamp(18px, 2.6vw, 28px) + 60px);
  border: 0 !important;
  box-shadow: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-kicker {
  color: #2368ff;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  min-height: 50px;
  padding-inline: 24px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 950;
  border: 0 !important;
  color: #1557e6 !important;
  box-shadow: 0 10px 24px rgba(17, 31, 68, 0.10);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
  margin: 14px clamp(18px, 2.6vw, 28px) 8px;
  padding: 10px 13px;
  border-radius: 16px;
  background: #eaf3ff;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context p,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  font-size: clamp(0.84rem, 0.95vw, 0.94rem);
  font-weight: 850;
  line-height: 1.25;
  margin: 0;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 clamp(18px, 2.6vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 22px;
  background: #fff;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:last-child {
  border-bottom: 0;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-label {
  color: #667085;
  font-size: 0.92rem;
  font-weight: 900;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-value {
  color: #2351a3;
  font-size: clamp(1rem, 1.22vw, 1.22rem);
  font-weight: 950;
  text-align: right;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.highlight {
  background: #fff;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:nth-child(2) {
  background:
    radial-gradient(ellipse 360px 82px at 170px 50%, rgba(89, 171, 255, 0.24), rgba(89, 171, 255, 0.11) 48%, rgba(255, 255, 255, 0) 78%),
    #fff;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
  margin: 8px;
  border-radius: 18px;
  border-bottom: 0;
  background: linear-gradient(135deg, #fff7f3, #fff9fb) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 118, 92, 0.14) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
  color: #667085 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
  color: #ff765c !important;
  font-size: clamp(1.22rem, 1.72vw, 1.58rem);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
  font-size: clamp(0.98rem, 1.18vw, 1.18rem);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
  width: calc(100% - clamp(36px, 5.2vw, 56px));
  min-height: 52px;
  margin: 16px clamp(18px, 2.6vw, 28px) clamp(18px, 2.6vw, 28px);
  border-radius: 18px;
  font-weight: 950;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-disclaimer {
  margin: 16px 0 0;
  border-color: rgba(255, 159, 26, 0.16);
  border-radius: 18px;
  background: rgba(255, 159, 26, 0.08);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .lhdn-calculator-disclaimer {
  grid-column: 1 / -1;
  padding: 14px 18px;
}

html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase {
  border-color: rgba(143, 178, 255, 0.18);
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 104, 255, 0.23), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(0, 200, 117, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(17, 26, 48, 0.98), rgba(12, 18, 34, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .calculator-title,
html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .calculator-title {
  color: #f8fbff;
}

html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .section-heading {
  border-color: rgba(143, 178, 255, 0.18);
  background:
    radial-gradient(circle at 20% 8%, rgba(35, 104, 255, 0.24), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(0, 200, 117, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(18, 30, 56, 0.96), rgba(12, 19, 36, 0.92));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .quotation-preview-head strong {
  color: #ff9a2e;
}

html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .section-heading > p,
html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo),
html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .result-label {
  color: #b9c3d7;
}

html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .advanced-calculator-card,
html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .results-card,
html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .advanced-results-grid,
html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .result-box {
  border-color: rgba(143, 178, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 28, 51, 0.98), rgba(13, 21, 40, 0.98)),
    #0d1528;
  color: #f8fbff;
}

html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .field label,
html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .result-value {
  color: #f8fbff;
}

html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .field input,
html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .field select {
  border-color: rgba(143, 178, 255, 0.18);
  background: #0a1224;
  color: #f8fbff;
}

html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .result-context,
html body.modern-lhdn-page[data-theme="dark"] #calculator.lhdn-calculator-showcase .quotation-disclaimer {
  border-color: rgba(143, 178, 255, 0.14);
  background: rgba(143, 178, 255, 0.08);
}

@media (min-width: 561px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card {
    padding: clamp(16px, 2vw, 24px) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card::before {
    margin-bottom: 10px !important;
    padding: 8px 15px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field {
    margin-bottom: 9px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field select {
    min-height: 46px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn {
    min-height: 50px !important;
    margin-top: 4px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
    align-self: start !important;
    min-height: auto !important;
    padding-bottom: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid {
    margin-left: clamp(18px, 2.2vw, 24px) !important;
    margin-right: clamp(18px, 2.2vw, 24px) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box {
    min-height: 52px !important;
    padding: 10px 16px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    min-height: 62px !important;
    margin: 8px !important;
    padding: 12px 18px !important;
  }
}

@media (max-width: 980px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase {
    width: min(100% - 28px, 760px);
    padding: 22px;
    border-radius: 26px;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-layout {
    grid-template-columns: 1fr;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-title {
    font-size: clamp(2.3rem, 8.5vw, 4.2rem);
    line-height: 1.08;
    white-space: normal;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading > div {
    flex-wrap: wrap;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase {
    scroll-margin-top: calc(var(--review-promo-height, 0px) + 118px);
    width: calc(100% - 20px);
    margin: 28px auto;
    padding: 14px;
    border-radius: 22px;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading {
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding: 18px 14px 16px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-eyebrow {
    margin-bottom: 8px !important;
    padding: 7px 12px !important;
    font-size: 0.72rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.05rem, 5.2vw, 1.32rem) !important;
    line-height: 1.04 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    overflow: visible !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-guide-link .guide-sign,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-title .calculator-guide-link .guide-sign {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.72rem !important;
    transform: translateY(-0.1em) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-title-with-guide {
    gap: 4px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-title-text,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-title-row {
    display: inline !important;
    white-space: nowrap !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading > p {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-layout {
    gap: 14px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
    border-radius: 20px;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
    padding: 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card {
    padding: 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card::before {
    margin-bottom: 8px !important;
    padding: 7px 14px !important;
    font-size: 1.1rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field {
    margin-bottom: 6px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field label {
    margin-bottom: 4px !important;
    font-size: 0.94rem !important;
    line-height: 1.2 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .field select {
    min-height: 45px !important;
    height: 45px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    line-height: 1.1 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn {
    min-height: 47px !important;
    margin-top: 2px !important;
    font-size: 1.02rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head {
    padding: 4px 4px 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-title-actions {
    align-items: center !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head strong {
    flex: 0 0 auto !important;
    font-size: 1.12rem !important;
    line-height: 1 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-head {
    padding: 0 16px 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    background: #eaf3ff !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context p,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-head,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-value {
    color: #2351a3;
    text-align: right;
    font-size: 0.92rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box {
    border: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.09) !important;
    border-radius: 0 !important;
    min-height: 48px !important;
    padding: 11px 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-label {
    font-size: 0.8rem !important;
    line-height: 1.18 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.highlight {
    background:
      radial-gradient(ellipse 250px 62px at 110px 50%, rgba(89, 171, 255, 0.26), rgba(89, 171, 255, 0.12) 48%, rgba(255, 255, 255, 0) 78%),
      #fff !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 10px !important;
    border: 1px solid rgba(255, 118, 92, 0.14) !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #fff7f3, #fff9fb) !important;
    text-align: left !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
    color: #ff765c !important;
    font-size: 1.04rem !important;
    text-align: right !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
    color: #667085 !important;
    font-size: 0.84rem !important;
    text-align: left !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    width: auto !important;
    max-width: 52% !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    line-height: 1.05 !important;
    white-space: normal !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 14px 0 0 !important;
    border-radius: 15px !important;
    font-size: 0.92rem !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .lhdn-calculator-disclaimer {
    padding: 12px 14px !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }
}

/* Client calculator and quotation card refresh. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase {
  background:
    radial-gradient(circle at 20% 0%, rgba(35, 104, 255, 0.10), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98)) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-layout {
  align-items: start !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card {
  padding: clamp(26px, 3.1vw, 44px) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card::before {
  content: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px rgba(35, 104, 255, 0.08);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon {
  width: 70px;
  height: 70px;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon::before {
  content: "";
  width: 28px;
  height: 34px;
  border: 4px solid #2368ff;
  border-top-width: 8px;
  border-radius: 5px;
  box-shadow:
    inset 0 -8px 0 rgba(35, 104, 255, 0.12),
    inset 8px 0 0 rgba(35, 104, 255, 0.08);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.75rem, 2.55vw, 2.75rem);
  font-weight: 950;
  line-height: 1.08;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head p {
  margin: 10px 0 0;
  color: #667085;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.35;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field {
  position: relative;
  margin-bottom: 24px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #111827 !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 17px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 15px;
  background: #f0f4ff;
  box-shadow: inset 0 0 0 1px rgba(35, 104, 255, 0.06);
  pointer-events: none;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after {
  content: "";
  position: absolute;
  left: 29px;
  bottom: 27px;
  z-index: 2;
  width: 14px;
  height: 16px;
  border: 2px solid #2351a3;
  border-radius: 2px;
  pointer-events: none;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
  height: 13px;
  border-radius: 3px;
  box-shadow: 0 -5px 0 -3px #2351a3;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
  content: "$";
  display: grid;
  place-items: center;
  bottom: 24px;
  width: 18px;
  height: 18px;
  border: 2px solid #2351a3;
  border-radius: 50%;
  color: #2351a3;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
  min-height: 64px !important;
  padding: 0 54px 0 82px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: clamp(1rem, 1.16vw, 1.18rem) !important;
  font-weight: 750 !important;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input::placeholder {
  color: #9aa3b2;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn {
  min-height: 74px !important;
  margin-top: 8px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #2e68ff, #0649ef) !important;
  color: #fff !important;
  font-size: 1.28rem !important;
  box-shadow: 0 18px 38px rgba(35, 104, 255, 0.18) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn::before {
  content: "▣";
  margin-right: 14px;
  font-size: 1rem;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn::after {
  content: "→";
  margin-left: 16px;
  font-size: 1.55rem;
  line-height: 1;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
  padding: clamp(28px, 3vw, 44px) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head {
  padding: 0 0 30px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-title-actions {
  align-items: start !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head strong {
  color: #111827 !important;
  font-size: clamp(2.15rem, 3.05vw, 3.4rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0.04em;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) {
  margin-top: 14px !important;
  color: #6b7280 !important;
  font-size: clamp(1rem, 1.18vw, 1.22rem) !important;
  font-weight: 650 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  min-height: 58px !important;
  padding: 0 24px !important;
  border: 1px solid rgba(15, 23, 42, 0.22) !important;
  border-radius: 15px !important;
  background: #fff !important;
  color: #667085 !important;
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  content: "▧";
  margin-right: 12px;
  color: #667085;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  margin: 0 0 28px !important;
  padding: 0 34px !important;
  border: 1px solid rgba(35, 104, 255, 0.16);
  border-radius: 16px !important;
  background: linear-gradient(90deg, #f8fbff, #eef5ff) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
  width: 44px;
  height: 44px;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
  content: "";
  width: 18px;
  height: 17px;
  border: 3px solid #2351a3;
  border-radius: 3px;
  box-shadow: 0 -7px 0 -4px #2351a3;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context p,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  color: #3b4860 !important;
  font-size: clamp(1.1rem, 1.45vw, 1.45rem) !important;
  font-weight: 850 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid {
  margin: 0 !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  border-radius: 17px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 22px !important;
  min-height: 86px !important;
  padding: 0 28px !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 78px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #667085;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon::after {
  content: "";
  position: absolute;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-stamp::before {
  width: 15px;
  height: 23px;
  border-radius: 999px 999px 4px 4px;
  background: #20b86b;
  top: 4px;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-stamp::after {
  width: 34px;
  height: 9px;
  border-radius: 3px;
  background: #20b86b;
  bottom: 5px;
  box-shadow: 0 -8px 0 -2px #20b86b;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-cert::before {
  width: 23px;
  height: 27px;
  border: 3px solid #667085;
  border-radius: 3px;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-cert::after {
  width: 10px;
  height: 10px;
  right: 6px;
  bottom: 4px;
  border-radius: 50%;
  background: #667085;
  box-shadow: 0 8px 0 -4px #667085;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-clock::before {
  width: 30px;
  height: 30px;
  border: 3px solid #667085;
  border-radius: 50%;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-clock::after {
  width: 10px;
  height: 12px;
  border-left: 3px solid #667085;
  border-bottom: 3px solid #667085;
  transform: translate(4px, -3px);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::before {
  width: 15px;
  height: 23px;
  border-radius: 999px 999px 4px 4px;
  background: #667085;
  top: 4px;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::after {
  width: 32px;
  height: 9px;
  border-radius: 3px;
  background: #667085;
  bottom: 5px;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-label {
  color: #1f2937 !important;
  font-size: clamp(1.02rem, 1.2vw, 1.22rem) !important;
  font-weight: 760 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-value {
  color: #123f91 !important;
  font-size: clamp(1.28rem, 1.55vw, 1.65rem) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:nth-child(2) {
  background: linear-gradient(90deg, rgba(239, 255, 247, 0.96), rgba(247, 255, 251, 0.96)) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 92px !important;
  margin: 0 !important;
  padding: 0 28px !important;
  border: 1px solid rgba(249, 115, 22, 0.18) !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #fffaf4, #fffefd) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
  color: #1f2937 !important;
  font-size: clamp(1.18rem, 1.42vw, 1.5rem) !important;
  font-weight: 900 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
  color: #f97316 !important;
  font-size: clamp(1.8rem, 2.4vw, 2.8rem) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 72px !important;
  width: 100% !important;
  margin: 32px 0 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #16c76f, #12b765) !important;
  color: #fff !important;
  font-size: clamp(1.1rem, 1.42vw, 1.45rem) !important;
  box-shadow: 0 16px 34px rgba(18, 183, 101, 0.22) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn::before {
  content: "◔";
  margin-right: 16px;
  font-size: 1.6rem;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card::after {
  content: "Secure. Professional. Trusted.";
  display: block;
  margin-top: 22px;
  color: #667085;
  font-size: 1rem;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 980px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
    padding: 26px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase {
    padding: 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head {
    grid-template-columns: 50px minmax(0, 1fr);
    margin-bottom: 22px;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
    width: 50px;
    height: 50px;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head h3 {
    font-size: 1.45rem;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head p,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) {
    font-size: 0.92rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field {
    margin-bottom: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
    min-height: 58px !important;
    height: 58px !important;
    padding-left: 70px !important;
    font-size: 1rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
    min-height: 58px !important;
    font-size: 1.02rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-title-actions {
    align-items: start !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head strong {
    font-size: 1.85rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    max-width: none !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 0.86rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    gap: 12px;
    min-height: 64px;
    padding: 0 14px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context p,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.95rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    min-height: 72px !important;
    padding: 0 14px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon {
    width: 30px;
    height: 30px;
    transform: scale(0.82);
    transform-origin: center;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-label {
    font-size: 0.86rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-value {
    font-size: 0.98rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
    font-size: 1rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
    font-size: 1.35rem !important;
  }
}

/* Client calculator/quotation icon and spacing refinements. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon::before {
  width: 30px !important;
  height: 36px !important;
  border: 4px solid #2368ff !important;
  border-radius: 6px !important;
  background:
    linear-gradient(#2368ff, #2368ff) 50% 9px / 16px 5px no-repeat,
    radial-gradient(circle, #2368ff 62%, transparent 64%) 7px 22px / 5px 5px no-repeat,
    radial-gradient(circle, #2368ff 62%, transparent 64%) 16px 22px / 5px 5px no-repeat,
    radial-gradient(circle, #2368ff 62%, transparent 64%) 25px 22px / 5px 5px no-repeat,
    radial-gradient(circle, #2368ff 62%, transparent 64%) 7px 31px / 5px 5px no-repeat,
    radial-gradient(circle, #2368ff 62%, transparent 64%) 16px 31px / 5px 5px no-repeat,
    radial-gradient(circle, #2368ff 62%, transparent 64%) 25px 31px / 5px 5px no-repeat;
  box-shadow: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field {
  margin-bottom: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after {
  width: 17px;
  height: 21px;
  left: 28px;
  bottom: 24px;
  border: 2px solid #2351a3;
  border-radius: 3px;
  background:
    linear-gradient(135deg, transparent 0 48%, #2351a3 49% 55%, transparent 56%) right top / 8px 8px no-repeat;
  box-shadow:
    inset 0 -7px 0 -5px rgba(35, 81, 163, 0.72),
    inset 0 -13px 0 -11px rgba(35, 81, 163, 0.72);
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
  width: 20px;
  height: 18px;
  left: 27px;
  bottom: 25px;
  border: 2px solid #2351a3;
  border-top-width: 5px;
  border-radius: 4px;
  background:
    linear-gradient(#2351a3, #2351a3) 4px -7px / 2px 9px no-repeat,
    linear-gradient(#2351a3, #2351a3) 14px -7px / 2px 9px no-repeat,
    linear-gradient(rgba(35, 81, 163, 0.18), rgba(35, 81, 163, 0.18)) 50% 9px / 12px 2px no-repeat;
  box-shadow: none;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
  left: 27px;
  bottom: 23px;
  background: #f0f4ff;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
  padding-left: 96px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-datetime-edit {
  padding-left: 8px;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head strong {
  font-size: clamp(1.9rem, 2.55vw, 2.85rem) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) {
  font-size: clamp(1rem, 1.15vw, 1.18rem) !important;
  line-height: 1.35 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  content: "PDF" !important;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 34px;
  margin-right: 12px;
  border: 2px solid #e11d48;
  border-radius: 4px;
  color: #e11d48 !important;
  font-size: 0.52rem;
  font-weight: 950;
  line-height: 1;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon {
  opacity: 1;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-stamp::before {
  width: 17px;
  height: 24px;
  background: #21b86d;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-stamp::after {
  width: 36px;
  background: #21b86d;
  box-shadow: 0 -9px 0 -2px #21b86d;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-cert::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-clock::before {
  border-color: #667085;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-cert::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::after {
  background: #667085;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-clock::after {
  border-color: #667085;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card::after {
  content: "🔒 Secure. Professional. Trusted." !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field {
    margin-bottom: 14px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
    padding-left: 84px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head strong {
    font-size: 1.62rem !important;
  }
}

/* Client calculator final icon cleanup. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon::before {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none'%3E%3Crect x='5' y='2.5' width='14' height='19' rx='2.2' stroke='%232368ff' stroke-width='2.3'/%3E%3Crect x='8' y='5.4' width='8' height='3.2' rx='.8' fill='%232368ff'/%3E%3Crect x='8' y='11' width='2.2' height='2.2' rx='.45' fill='%232368ff'/%3E%3Crect x='10.9' y='11' width='2.2' height='2.2' rx='.45' fill='%232368ff'/%3E%3Crect x='13.8' y='11' width='2.2' height='2.2' rx='.45' fill='%232368ff'/%3E%3Crect x='8' y='14.2' width='2.2' height='2.2' rx='.45' fill='%232368ff'/%3E%3Crect x='10.9' y='14.2' width='2.2' height='2.2' rx='.45' fill='%232368ff'/%3E%3Crect x='13.8' y='14.2' width='2.2' height='2.2' rx='.45' fill='%232368ff'/%3E%3Crect x='8' y='17.4' width='2.2' height='2.2' rx='.45' fill='%232368ff'/%3E%3Crect x='10.9' y='17.4' width='2.2' height='2.2' rx='.45' fill='%232368ff'/%3E%3Crect x='13.8' y='17.4' width='2.2' height='2.2' rx='.45' fill='%232368ff'/%3E%3C/svg%3E") center / contain no-repeat !important;
  box-shadow: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field {
  margin-bottom: 14px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after {
  left: 27px !important;
  bottom: 24px !important;
  width: 21px !important;
  height: 23px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") center / contain no-repeat !important;
  box-shadow: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
  left: 27px !important;
  bottom: 24px !important;
  width: 22px !important;
  height: 22px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
  width: 22px !important;
  height: 22px !important;
  color: transparent !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10'/%3E%3Cpath d='M15 9.5c-.7-.6-1.6-.9-3-.9-1.7 0-3 .8-3 2.2 0 3.1 6 1.5 6 4.4 0 1.4-1.3 2.2-3 2.2-1.3 0-2.5-.4-3.3-1.2'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
  padding-left: 74px !important;
  text-indent: 0 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-datetime-edit,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-date-and-time-value {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn::before {
  content: "" !important;
  width: 22px !important;
  height: 24px !important;
  margin-right: 14px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 24 24' fill='none'%3E%3Crect x='5' y='2.5' width='14' height='19' rx='2.2' stroke='white' stroke-width='2.3'/%3E%3Crect x='8' y='5.4' width='8' height='3.2' rx='.8' fill='white'/%3E%3Crect x='8' y='11' width='2.2' height='2.2' rx='.45' fill='white'/%3E%3Crect x='10.9' y='11' width='2.2' height='2.2' rx='.45' fill='white'/%3E%3Crect x='13.8' y='11' width='2.2' height='2.2' rx='.45' fill='white'/%3E%3Crect x='8' y='14.2' width='2.2' height='2.2' rx='.45' fill='white'/%3E%3Crect x='10.9' y='14.2' width='2.2' height='2.2' rx='.45' fill='white'/%3E%3Crect x='13.8' y='14.2' width='2.2' height='2.2' rx='.45' fill='white'/%3E%3Crect x='8' y='17.4' width='2.2' height='2.2' rx='.45' fill='white'/%3E%3Crect x='10.9' y='17.4' width='2.2' height='2.2' rx='.45' fill='white'/%3E%3Crect x='13.8' y='17.4' width='2.2' height='2.2' rx='.45' fill='white'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) {
  font-size: clamp(1rem, 1.15vw, 1.18rem) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  width: 21px !important;
  height: 26px !important;
  margin-right: 10px !important;
  font-size: 0.42rem !important;
  border-width: 1.7px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context p,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  font-size: clamp(0.92rem, 1.02vw, 1.04rem) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 34px 34px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon::after {
  content: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-stamp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M15 5.2c-3 0-5.2 2.2-5.2 5.05 0 1.95 1.05 3.6 2.65 4.45v3.05H9c-1.35 0-2.4 1.05-2.4 2.4v1.7h16.8v-1.7c0-1.35-1.05-2.4-2.4-2.4h-3.45V14.7c1.6-.85 2.65-2.5 2.65-4.45 0-2.85-2.2-5.05-5.2-5.05Z' fill='%2321bd73'/%3E%3Crect x='6.6' y='24' width='16.8' height='2.2' rx='.65' fill='%2321bd73'/%3E%3C/svg%3E") !important;
  background-size: 30px 30px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field label {
  font-size: 1.12rem !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field label {
    font-size: 1.05rem !important;
  }
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
  width: 24px !important;
  height: 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before {
  bottom: 10px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
  bottom: 17px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
  display: block !important;
  line-height: 64px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
  padding-left: 112px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-datetime-edit,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-date-and-time-value {
  padding-left: 34px !important;
  margin-left: 0 !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before {
    bottom: 9px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
    bottom: 16px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
    line-height: 58px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
    padding-left: 108px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-datetime-edit,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-date-and-time-value {
    padding-left: 30px !important;
  }
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:nth-last-child(2) {
  border-bottom: 0 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
  margin-top: 4px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-cert {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h10l4 4v14H5z'/%3E%3Cpath d='M15 3v5h4'/%3E%3Cpath d='M8 11h6'/%3E%3Cpath d='M8 15h4'/%3E%3Ccircle cx='17' cy='17' r='2.5' fill='white'/%3E%3Cpath d='m15.5 19.5-1 2.5 2.5-1 2.5 1-1-2.5'/%3E%3C/svg%3E") !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='%23667085'%3E%3Cpath d='M12 4.1a3.15 3.15 0 0 0-1.02 6.13v3.12H8.2a1.65 1.65 0 0 0-1.65 1.65v1.25h10.9V15a1.65 1.65 0 0 0-1.65-1.65h-2.78v-3.12A3.15 3.15 0 0 0 12 4.1z'/%3E%3Crect x='6.05' y='17.45' width='11.9' height='1.55' rx='.35'/%3E%3Crect x='5.3' y='20.2' width='13.4' height='1.45' rx='.35'/%3E%3C/svg%3E") !important;
  background-size: 30px 30px !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
    padding-left: 70px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context p,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.82rem !important;
  }
}

/* Keep the signing date as a native date field with the calendar on the right. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
  content: none !important;
  display: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
  padding-left: 28px !important;
  padding-right: 68px !important;
  text-indent: 0 !important;
  text-align: left !important;
  text-align-last: left !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-datetime-edit,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-date-and-time-value {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-calendar-picker-indicator {
  width: 24px !important;
  height: 24px !important;
  margin-right: 18px !important;
  cursor: pointer;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
    padding-left: 24px !important;
    padding-right: 58px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-calendar-picker-indicator {
    margin-right: 12px !important;
  }
}

/* Restore the left date icon while keeping the native picker on the right. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 18px !important;
  bottom: 10px !important;
  z-index: 1 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 15px !important;
  background: #f0f4ff !important;
  box-shadow: inset 0 0 0 1px rgba(35, 104, 255, 0.06) !important;
  pointer-events: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 27px !important;
  bottom: 17px !important;
  z-index: 2 !important;
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat !important;
  pointer-events: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
  padding-left: 84px !important;
  padding-right: 62px !important;
  font-size: clamp(0.98rem, 1.08vw, 1.08rem) !important;
  letter-spacing: 0 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-datetime-edit,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate::-webkit-date-and-time-value {
  padding-left: 0 !important;
  margin-left: 0 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before {
    bottom: 9px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
    bottom: 16px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
    padding-left: 78px !important;
    padding-right: 54px !important;
    font-size: 0.95rem !important;
  }
}

/* Final quotation text/icon sizing fixes. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) {
  color: #667085 !important;
  font-size: clamp(1rem, 1.15vw, 1.18rem) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  width: 18px !important;
  height: 23px !important;
  margin-right: 9px !important;
  border-width: 1.5px !important;
  border-radius: 3px !important;
  font-size: 0.38rem !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn::before {
  content: "" !important;
  width: 34px !important;
  height: 34px !important;
  margin-right: 16px !important;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20.52 3.48A11.83 11.83 0 0 0 12.08 0C5.5 0 .15 5.35.15 11.93c0 2.1.55 4.16 1.6 5.97L0 24l6.25-1.64a11.91 11.91 0 0 0 5.83 1.49h.01c6.58 0 11.93-5.35 11.93-11.93 0-3.18-1.24-6.18-3.5-8.44ZM12.09 21.83h-.01a9.88 9.88 0 0 1-5.04-1.38l-.36-.21-3.71.97.99-3.62-.23-.37a9.88 9.88 0 0 1-1.51-5.29c0-5.47 4.45-9.92 9.93-9.92a9.85 9.85 0 0 1 7.02 2.91 9.87 9.87 0 0 1 2.91 7.02c0 5.47-4.45 9.91-9.99 9.91Zm5.44-7.42c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.64.07-.3-.15-1.25-.46-2.38-1.47-.88-.78-1.47-1.75-1.64-2.04-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.18.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.61-.92-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48s1.07 2.88 1.22 3.08c.15.2 2.1 3.2 5.08 4.49.71.31 1.27.49 1.7.63.71.23 1.36.2 1.87.12.57-.08 1.76-.72 2.01-1.42.25-.7.25-1.3.17-1.42-.07-.13-.27-.2-.57-.35Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) {
    font-size: 0.92rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn::before {
    width: 26px !important;
    height: 26px !important;
    margin-right: 10px !important;
  }
}

/* TRUE FINAL LHDN calculator/quotation overrides. Keep this at the end. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card::after {
  content: none !important;
  display: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  width: 13px !important;
  height: 17px !important;
  margin-right: 6px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
  gap: 8px !important;
  min-height: 32px !important;
  margin-bottom: 9px !important;
  padding: 3px 8px !important;
  border-radius: 10px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
  width: 23px !important;
  height: 23px !important;
  border-radius: 8px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
  width: 16px !important;
  height: 16px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  font-size: clamp(0.72rem, 0.88vw, 0.86rem) !important;
  line-height: 1.1 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label {
  max-width: 130px !important;
  line-height: 1.08 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
  justify-self: end !important;
  max-width: 100% !important;
  font-size: clamp(0.94rem, 1.1vw, 1.16rem) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
  grid-template-columns: minmax(112px, 0.65fr) minmax(0, 1.35fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
  max-width: none !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
  justify-self: end !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
  font-size: 0.96rem !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='%23667085'%3E%3Cpath d='M12 4.1a3.15 3.15 0 0 0-1.02 6.13v3.12H8.2a1.65 1.65 0 0 0-1.65 1.65v1.25h10.9V15a1.65 1.65 0 0 0-1.65-1.65h-2.78v-3.12A3.15 3.15 0 0 0 12 4.1z'/%3E%3Crect x='6.05' y='17.45' width='11.9' height='1.55' rx='.35'/%3E%3Crect x='5.3' y='20.2' width='13.4' height='1.45' rx='.35'/%3E%3C/svg%3E") !important;
  background-size: 30px 30px !important;
}

@media (min-width: 981px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase {
    width: min(1680px, calc(100% - 64px)) !important;
    margin: 10px auto 24px !important;
    padding: 12px 18px 18px !important;
    border-radius: 22px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading {
    display: none !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-layout {
    gap: 24px !important;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.9fr) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
    padding: 18px 24px !important;
    border-radius: 22px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07) !important;
  }
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase {
    scroll-margin-top: calc(var(--review-promo-height, 0px) + 82px) !important;
    width: min(100% - 18px, 520px) !important;
    margin: 10px auto 20px !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading {
    display: none !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
    padding: 12px !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 7px !important;
    border-radius: 7px !important;
    font-size: 0.66rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
    width: 10px !important;
    height: 14px !important;
    margin-right: 4px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    gap: 5px !important;
    min-height: 26px !important;
    margin-bottom: 7px !important;
    padding: 2px 6px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
    width: 18px !important;
    height: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
    width: 13px !important;
    height: 13px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.58rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label {
    max-width: 86px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
    font-size: clamp(0.84rem, 4.8vw, 1.08rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
    font-size: clamp(1.08rem, 6.2vw, 1.45rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
    font-size: 0.88rem !important;
  }
}

/* TRUE FINAL LHDN overrides. Keep this block at the very end. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card::after {
  content: none !important;
  display: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  width: 13px !important;
  height: 17px !important;
  margin-right: 6px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
  gap: 8px !important;
  min-height: 32px !important;
  margin-bottom: 9px !important;
  padding: 3px 8px !important;
  border-radius: 10px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
  width: 23px !important;
  height: 23px !important;
  border-radius: 8px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
  width: 16px !important;
  height: 16px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  font-size: clamp(0.72rem, 0.88vw, 0.86rem) !important;
  line-height: 1.1 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label {
  max-width: 130px !important;
  line-height: 1.08 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
  justify-self: end !important;
  max-width: 100% !important;
  font-size: clamp(0.94rem, 1.1vw, 1.16rem) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
  grid-template-columns: minmax(112px, 0.65fr) minmax(0, 1.35fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
  max-width: none !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
  justify-self: end !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
  font-size: 0.96rem !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='%23667085'%3E%3Cpath d='M12 4.1a3.15 3.15 0 0 0-1.02 6.13v3.12H8.2a1.65 1.65 0 0 0-1.65 1.65v1.25h10.9V15a1.65 1.65 0 0 0-1.65-1.65h-2.78v-3.12A3.15 3.15 0 0 0 12 4.1z'/%3E%3Crect x='6.05' y='17.45' width='11.9' height='1.55' rx='.35'/%3E%3Crect x='5.3' y='20.2' width='13.4' height='1.45' rx='.35'/%3E%3C/svg%3E") !important;
  background-size: 30px 30px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 7px !important;
    border-radius: 7px !important;
    font-size: 0.66rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
    width: 10px !important;
    height: 14px !important;
    margin-right: 4px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    gap: 5px !important;
    min-height: 26px !important;
    margin-bottom: 7px !important;
    padding: 2px 6px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
    width: 18px !important;
    height: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before {
    width: 13px !important;
    height: 13px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.58rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label {
    max-width: 86px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
    font-size: clamp(0.84rem, 4.8vw, 1.08rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
    font-size: clamp(1.08rem, 6.2vw, 1.45rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
    font-size: 0.88rem !important;
  }
}

/* Keep the date value aligned with the select/input values after the leading icon. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate {
  padding-left: 86px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate::-webkit-datetime-edit,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate::-webkit-date-and-time-value {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate {
    padding-left: 86px !important;
  }
}

.gss-date-picker {
  position: absolute;
  z-index: 2000;
  width: 312px;
  padding: 12px;
  border: 1px solid rgba(234, 112, 114, 0.2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(20, 28, 45, 0.2);
  font-family: inherit;
}

.gss-date-picker[hidden] {
  display: none !important;
}

.gss-date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 10px;
}

.gss-date-month {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.gss-date-nav {
  display: flex;
  gap: 6px;
}

.gss-date-nav button,
.gss-date-month,
.gss-date-footer button,
.gss-date-days button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.gss-date-jump {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 4px 9px;
}

.gss-date-jump[hidden] {
  display: none !important;
}

.gss-date-jump select {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(215, 226, 251, 0.95);
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font: 800 0.8rem/1 inherit;
  outline: none;
}

.gss-date-nav button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #fff3eb;
  color: #fb7b3c;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.gss-date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff9c4d 0%, #fb747c 100%);
}

.gss-date-weekdays span {
  padding: 7px 0;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.gss-date-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding-top: 8px;
}

.gss-date-days button {
  position: relative;
  display: grid;
  min-width: 0;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: #273244;
  font-size: 0.9rem;
  font-weight: 800;
}

.gss-date-days button::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 3px;
  left: 8px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.gss-date-days button.is-muted {
  color: #a3a9b5;
}

.gss-date-days button.is-today {
  color: #fb7b3c;
}

.gss-date-days button.is-selected {
  background: #45c3cc;
  color: #fff;
  box-shadow: 0 8px 18px rgba(69, 195, 204, 0.32);
}

.gss-date-days button.is-selected::after {
  background: rgba(255, 255, 255, 0.72);
}

.gss-date-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px 0;
}

.gss-date-footer button {
  background: transparent;
  color: #2563eb;
  font-size: 0.86rem;
  font-weight: 900;
}

/* LAST compact signing date picker. */
.gss-date-picker {
  width: 264px !important;
  padding: 10px !important;
  border-radius: 15px !important;
  box-shadow: 0 16px 34px rgba(20, 28, 45, 0.16) !important;
}

.gss-date-picker-head {
  gap: 8px !important;
  padding: 0 2px 8px !important;
}

.gss-date-month {
  font-size: 1rem !important;
  letter-spacing: 0 !important;
}

.gss-date-nav {
  gap: 5px !important;
}

.gss-date-nav button {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  font-size: 1.05rem !important;
}

.gss-date-weekdays {
  border-radius: 10px !important;
}

.gss-date-weekdays span {
  padding: 5px 0 !important;
  font-size: 0.54rem !important;
  letter-spacing: 0.04em !important;
}

.gss-date-days {
  gap: 3px !important;
  padding-top: 7px !important;
}

.gss-date-days button {
  height: 23px !important;
  border-radius: 7px !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
}

.gss-date-days button::after {
  right: 9px !important;
  bottom: 2px !important;
  left: 9px !important;
  height: 1.5px !important;
}

.gss-date-footer {
  padding: 8px 2px 0 !important;
}

.gss-date-footer button {
  font-size: 0.76rem !important;
}

@media (max-width: 560px) {
  .gss-date-picker {
    width: 252px !important;
    padding: 9px !important;
    border-radius: 14px !important;
  }

  .gss-date-month {
    font-size: 0.95rem !important;
  }

  .gss-date-days button {
    height: 22px !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 560px) {
  .gss-date-picker {
    padding: 10px;
    border-radius: 16px;
  }

  .gss-date-month {
    font-size: 1.08rem;
  }

  .gss-date-days button {
    height: 26px;
    font-size: 0.82rem;
  }
}

/* Tighten the quotation document row so the stamp duty band starts right after the divider. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
  min-height: 46px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
    min-height: 42px !important;
  }
}

/* Keep the quotation PDF button compact around its label and icon. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  font-size: 0.92rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  width: 16px !important;
  height: 20px !important;
  margin-right: 8px !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    font-size: 0.84rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
    width: 14px !important;
    height: 18px !important;
    margin-right: 7px !important;
  }
}

/* Tighten the quotation summary strip around the rental summary. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
  gap: 14px !important;
  min-height: 54px !important;
  margin-bottom: 8px !important;
  padding: 8px 18px !important;
  border-radius: 12px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
  font-size: clamp(0.98rem, 1.15vw, 1.14rem) !important;
  line-height: 1.2 !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    gap: 10px !important;
    min-height: 46px !important;
    margin-bottom: 6px !important;
    padding: 7px 12px !important;
    border-radius: 11px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
    width: 30px !important;
    height: 30px !important;
  }
}

/* Remove the quotation footer tagline. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card::after {
  content: none !important;
  display: none !important;
}

/* Bring the WhatsApp quotation button a little closer to the result total. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
  margin-top: 22px !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
    margin-top: 16px !important;
  }
}

/* Final calculator field alignment: keep icons and values on the same center line. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
  height: 64px !important;
  min-height: 64px !important;
  line-height: 64px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before {
  bottom: 14px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after {
  bottom: 24px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
  bottom: 23px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
  bottom: 21px !important;
}

@media (max-width: 560px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
    height: 58px !important;
    min-height: 58px !important;
    line-height: 58px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before {
    bottom: 11px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after {
    bottom: 21px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
    bottom: 20px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
    bottom: 18px !important;
  }
}

/* Compact calculator/quotation workspace so both tools fit comfortably in one viewport. */
@media (min-width: 981px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase {
    width: min(1680px, calc(100% - 64px)) !important;
    margin: 10px auto 24px !important;
    padding: 12px 18px 18px !important;
    border-radius: 22px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .section-heading {
    display: none !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-layout {
    gap: 24px !important;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.9fr) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card {
    padding: 18px 24px !important;
    border-radius: 22px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-icon::before {
    transform: scale(0.78) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head h3 {
    font-size: clamp(1.55rem, 2vw, 2.1rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculator-card-head p {
    margin-top: 6px !important;
    font-size: clamp(0.92rem, 1vw, 1.02rem) !important;
    line-height: 1.25 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field {
    margin-bottom: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field label {
    margin-bottom: 6px !important;
    font-size: 0.84rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
    height: 46px !important;
    min-height: 46px !important;
    line-height: 46px !important;
    padding-left: 62px !important;
    padding-right: 42px !important;
    border-radius: 12px !important;
    font-size: 0.94rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before {
    left: 16px !important;
    bottom: 7px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 13px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after {
    left: 26px !important;
    bottom: 17px !important;
    transform: scale(0.84) !important;
    transform-origin: center !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
    left: 26px !important;
    bottom: 14px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
    left: 22px !important;
    bottom: 12px !important;
    width: 20px !important;
    height: 20px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
    padding-left: 62px !important;
    padding-right: 48px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .calculate-btn {
    min-height: 48px !important;
    margin-top: 4px !important;
    border-radius: 12px !important;
    font-size: 0.96rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head {
    padding-bottom: 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head strong {
    font-size: clamp(1.65rem, 2.15vw, 2.35rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) {
    margin-top: 8px !important;
    font-size: 0.96rem !important;
    line-height: 1.25 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context {
    min-height: 40px !important;
    margin-bottom: 6px !important;
    padding: 5px 12px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon {
    width: 30px !important;
    height: 30px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary {
    font-size: 0.92rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 14px !important;
    min-height: 52px !important;
    padding: 0 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
    min-height: 40px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon {
    width: 30px !important;
    height: 30px !important;
    transform: scale(0.86) !important;
    transform-origin: center !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-label {
    font-size: 0.92rem !important;
    line-height: 1.15 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-value {
    font-size: clamp(1rem, 1.18vw, 1.24rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    min-height: 56px !important;
    padding: 0 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
    font-size: 1rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
    font-size: clamp(1.35rem, 1.7vw, 1.9rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn {
    min-height: 48px !important;
    margin-top: 12px !important;
    border-radius: 10px !important;
    font-size: 0.96rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn::before {
    width: 26px !important;
    height: 26px !important;
    margin-right: 10px !important;
  }
}

/* Final quotation key/value balance after compact desktop/mobile rules. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child {
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label {
  max-width: 130px !important;
  line-height: 1.08 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
  justify-self: end !important;
  max-width: 100% !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
  grid-template-columns: minmax(112px, 0.65fr) minmax(0, 1.35fr) !important;
  column-gap: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
  line-height: 1.08 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
  justify-self: end !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total {
    grid-template-columns: minmax(76px, 0.65fr) minmax(0, 1.35fr) !important;
    column-gap: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label {
    max-width: 86px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value {
    font-size: clamp(0.9rem, 5.2vw, 1.18rem) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value {
    font-size: clamp(1.08rem, 6.2vw, 1.45rem) !important;
  }
}

/* LAST LHDN live override - physical EOF. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .results-card::after { content: none !important; display: none !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; height: 34px !important; min-height: 34px !important; padding: 0 10px !important; border-radius: 8px !important; font-size: 0.78rem !important; line-height: 1 !important; white-space: nowrap !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before { width: 13px !important; height: 17px !important; margin-right: 6px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context { gap: 8px !important; min-height: 32px !important; margin-bottom: 9px !important; padding: 3px 8px !important; border-radius: 10px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon { width: 23px !important; height: 23px !important; border-radius: 8px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before { width: 16px !important; height: 16px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary { font-size: clamp(0.72rem, 0.88vw, 0.86rem) !important; line-height: 1.1 !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child { grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr) !important; column-gap: 18px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label { max-width: 130px !important; line-height: 1.08 !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value { justify-self: end !important; max-width: 100% !important; font-size: clamp(0.94rem, 1.1vw, 1.16rem) !important; line-height: 1.05 !important; white-space: nowrap !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total { grid-template-columns: minmax(112px, 0.65fr) minmax(0, 1.35fr) !important; column-gap: 18px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-label { max-width: none !important; line-height: 1.08 !important; white-space: nowrap !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value { justify-self: end !important; white-space: nowrap !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn { font-size: 0.96rem !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service { transform: scale(0.78) !important; transform-origin: center !important; opacity: 0.94 !important; }
@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn { height: 28px !important; min-height: 28px !important; padding: 0 7px !important; border-radius: 7px !important; font-size: 0.66rem !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before { width: 10px !important; height: 14px !important; margin-right: 4px !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context { gap: 5px !important; min-height: 26px !important; margin-bottom: 7px !important; padding: 2px 6px !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon { width: 18px !important; height: 18px !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .summary-icon::before { width: 13px !important; height: 13px !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedInputSummary { font-size: 0.58rem !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child, html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total { grid-template-columns: minmax(104px, auto) minmax(0, 1fr) !important; column-gap: 10px !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-label { max-width: 86px !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-results-grid .result-box:first-child .result-value { font-size: clamp(0.84rem, 4.8vw, 1.08rem) !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-box.total .result-value { font-size: clamp(1.08rem, 6.2vw, 1.45rem) !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-whatsapp-btn { font-size: 0.88rem !important; }
}

/* LAST tiny quotation subtitle polish. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) { font-size: 0.82rem !important; line-height: 1.18 !important; }

/* LAST client PDF button label: make Generate PDF more compact. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 0 9px !important;
  letter-spacing: 0 !important;
}
@media (max-width: 760px) { html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head span:not(.quotation-logo) { font-size: 0.68rem !important; line-height: 1.12 !important; } }

/* LAST quotation top spacing polish. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head { padding-bottom: 14px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context { margin-top: 4px !important; margin-bottom: 13px !important; }
@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-preview-head { padding-bottom: 10px !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .result-context { margin-top: 3px !important; margin-bottom: 10px !important; }
}

/* LAST service fee stamp icon redraw. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service {
  background-image: none !important;
  transform: none !important;
  opacity: 1 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 4px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 999px !important;
  background: #667085 !important;
  transform: translateX(-50%) !important;
  box-shadow:
    0 11px 0 -2px #667085,
    0 17px 0 -3px #667085 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 5px !important;
  width: 27px !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: #667085 !important;
  transform: translateX(-50%) !important;
  box-shadow: 0 7px 0 #667085 !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::before {
    top: 2px !important;
    width: 10px !important;
    height: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::after {
    bottom: 4px !important;
    width: 23px !important;
    height: 3px !important;
    box-shadow: 0 6px 0 #667085 !important;
  }
}

/* LAST exact service fee stamp icon silhouette. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath fill='%23667085' d='M18 4.5c-4.45 0-7.35 3.18-7.35 7.35 0 3.05 1.48 5.3 3.7 6.34v4.05H8.85c-1.72 0-3.1 1.38-3.1 3.1v3.85c0 .8.65 1.45 1.45 1.45h21.6c.8 0 1.45-.65 1.45-1.45v-3.85c0-1.72-1.38-3.1-3.1-3.1h-5.5v-4.05c2.22-1.04 3.7-3.29 3.7-6.34 0-4.17-2.9-7.35-7.35-7.35Z'/%3E%3Crect fill='%23667085' x='7.1' y='32.35' width='21.8' height='2.55' rx='1.25'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 32px 32px !important;
  transform: none !important;
  opacity: 1 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service {
    background-size: 25px 25px !important;
  }
}

/* LAST quotation row icon balance. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon { width: 30px !important; height: 30px !important; transform: none !important; background-position: center !important; background-repeat: no-repeat !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-stamp { transform: scale(1.08) !important; transform-origin: center !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-cert { background-size: 27px 27px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-clock { background-size: 27px 27px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service { background-size: 27px 27px !important; }
@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-row-icon { width: 24px !important; height: 24px !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-stamp { transform: scale(1.04) !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-cert,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-clock,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quote-icon-service { background-size: 22px 22px !important; }
}

/* LAST calculator input icon alignment lock. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before { top: auto !important; bottom: 50% !important; transform: translateY(50%) !important; left: 16px !important; width: 34px !important; height: 34px !important; border-radius: 13px !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after { top: auto !important; bottom: 50% !important; left: 26px !important; transform: translateY(50%) scale(0.86) !important; transform-origin: center !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after { top: auto !important; bottom: 50% !important; left: 26px !important; transform: translateY(50%) scale(0.9) !important; transform-origin: center !important; }
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after { top: auto !important; bottom: 50% !important; left: 22px !important; width: 20px !important; height: 20px !important; transform: translateY(50%) !important; }
@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before { left: 12px !important; width: 28px !important; height: 28px !important; border-radius: 10px !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after { left: 19px !important; transform: translateY(50%) scale(0.72) !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after { left: 19px !important; transform: translateY(50%) scale(0.76) !important; }
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after { left: 17px !important; width: 20px !important; height: 20px !important; transform: translateY(50%) !important; }
}

/* LAST calculator icon recovery: center icons inside the input box, not the whole field. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before {
  top: auto !important;
  bottom: 6px !important;
  left: 16px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 13px !important;
  transform: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after {
  top: auto !important;
  bottom: 15px !important;
  left: 26px !important;
  transform: scale(0.86) !important;
  transform-origin: center !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
  top: auto !important;
  bottom: 13px !important;
  left: 26px !important;
  transform: scale(0.9) !important;
  transform-origin: center !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
  top: auto !important;
  bottom: 12px !important;
  left: 23px !important;
  width: 20px !important;
  height: 20px !important;
  transform: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
  padding-left: 66px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before {
    bottom: 5px !important;
    left: 12px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after {
    bottom: 12px !important;
    left: 19px !important;
    transform: scale(0.72) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
    bottom: 10px !important;
    left: 19px !important;
    transform: scale(0.76) !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
    bottom: 9px !important;
    left: 17px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase #advancedSigningDate {
    padding-left: 48px !important;
  }
}

/* LAST calculator icon restore: explicit badges per field. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
  padding-left: 72px !important;
  background-image: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 16px !important;
  bottom: 10px !important;
  z-index: 1 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 15px !important;
  background: #eef3ff !important;
  box-shadow: inset 0 0 0 1px rgba(35, 104, 255, 0.10) !important;
  pointer-events: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 24px !important;
  bottom: 18px !important;
  z-index: 2 !important;
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  pointer-events: none !important;
  transform: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#documentType)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedCertificateCopies)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"])::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v10'/%3E%3Cpath d='M15 9.5c-.7-.8-1.7-1.1-3-1.1-1.7 0-2.9.8-2.9 2s1 1.7 3 2.1c2 .4 3 .9 3 2.2 0 1.2-1.2 2-3.1 2-1.4 0-2.5-.4-3.2-1.2'/%3E%3C/svg%3E") !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
    padding-left: 54px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before {
    left: 12px !important;
    bottom: 5px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 10px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after {
    left: 17px !important;
    bottom: 10px !important;
    width: 18px !important;
    height: 18px !important;
  }
}

/* LAST calculator icons: field-by-field input backgrounds, centered inside each box. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(select)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(input)::after {
  content: none !important;
  display: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
  padding-left: 86px !important;
  background-color: #fff !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: 28px center, 41px center !important;
  background-size: 48px 48px, 24px 24px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#documentType) select,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedCertificateCopies) select {
  background-image:
    radial-gradient(circle at center, #eef3ff 0 67%, transparent 68%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod) select,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate) input {
  background-image:
    radial-gradient(circle at center, #eef3ff 0 67%, transparent 68%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental) input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"]) input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue) input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount) input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue) input {
  background-image:
    radial-gradient(circle at center, #eef3ff 0 67%, transparent 68%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232351a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v10'/%3E%3Cpath d='M15 9.5c-.7-.8-1.7-1.1-3-1.1-1.7 0-2.9.8-2.9 2s1 1.7 3 2.1c2 .4 3 .9 3 2.2 0 1.2-1.2 2-3.1 2-1.4 0-2.5-.4-3.2-1.2'/%3E%3C/svg%3E") !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field select {
    padding-left: 78px !important;
    background-position: 24px center, 37px center !important;
    background-size: 48px 48px, 24px 24px !important;
  }
}

/* LAST calculator icon structure fix: real icon elements, no pseudo guessing. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell {
  position: relative !important;
  width: 100% !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon {
  position: absolute !important;
  left: 28px !important;
  top: 50% !important;
  z-index: 3 !important;
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  place-items: center !important;
  border-radius: 17px !important;
  background: #eef3ff !important;
  box-shadow: inset 0 0 0 1px rgba(35, 104, 255, 0.10) !important;
  pointer-events: none !important;
  transform: translateY(-50%) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon::before {
  content: "" !important;
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  background: #2351a3 !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-icon-document::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-icon-calendar::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-icon-money::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v10'/%3E%3Cpath d='M15 9.5c-.7-.8-1.7-1.1-3-1.1-1.7 0-2.9.8-2.9 2s1 1.7 3 2.1c2 .4 3 .9 3 2.2 0 1.2-1.2 2-3.1 2-1.4 0-2.5-.4-3.2-1.2'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v10'/%3E%3Cpath d='M15 9.5c-.7-.8-1.7-1.1-3-1.1-1.7 0-2.9.8-2.9 2s1 1.7 3 2.1c2 .4 3 .9 3 2.2 0 1.2-1.2 2-3.1 2-1.4 0-2.5-.4-3.2-1.2'/%3E%3C/svg%3E") !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell select {
  padding-left: 96px !important;
  background-image: none !important;
  background-color: #fff !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell #advancedSigningDate {
  padding-left: 96px !important;
  background-image: none !important;
  background-color: #fff !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(.calc-input-shell)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(.calc-input-shell)::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon {
    left: 22px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 16px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon::before {
    width: 23px !important;
    height: 23px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell select,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell #advancedSigningDate {
    padding-left: 88px !important;
  }
}

/* LAST calculator icon cleanup: one visible icon per field, same size. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#documentType)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#documentType)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate)::after,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedCertificateCopies)::before,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedCertificateCopies)::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell select,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell #advancedSigningDate {
  padding-left: 86px !important;
  background: #fff !important;
  background-image: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon {
  left: 24px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 15px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon::before {
  width: 22px !important;
  height: 22px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-icon-money::before {
  width: 21px !important;
  height: 21px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell select,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell #advancedSigningDate {
    padding-left: 82px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon {
    left: 20px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 15px !important;
  }
}

/* LAST emergency calculator icon reset: remove every old tiled control background. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#documentType) select,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedTenancyPeriod) select,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedCertificateCopies) select,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedMonthlyRental) input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has([id^="advancedMonthlyRentalYear"]) input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#advancedSigningDate) input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#propertyValue) input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#loanAmount) input,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(#serviceValue) input {
  background-color: #fff !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-size: auto !important;
  background-position: initial !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #documentType,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedTenancyPeriod,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedCertificateCopies,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedMonthlyRental,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card [id^="advancedMonthlyRentalYear"],
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #propertyValue,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #loanAmount,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #serviceValue {
  padding-left: 86px !important;
  background: #fff !important;
  background-image: none !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon {
  left: 24px !important;
  top: 50% !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 15px !important;
  background: #eef3ff !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #documentType,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedTenancyPeriod,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedCertificateCopies,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedMonthlyRental,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card [id^="advancedMonthlyRentalYear"],
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #propertyValue,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #loanAmount,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #serviceValue {
    padding-left: 82px !important;
    background: #fff !important;
    background-image: none !important;
  }
}

/* LAST calculator icon proportion: match compact reference sizing. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon {
  left: 25px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 13px !important;
  background: #f0f4ff !important;
  box-shadow: inset 0 0 0 1px rgba(35, 104, 255, 0.08) !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon::before {
  width: 18px !important;
  height: 18px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-icon-money::before {
  width: 17px !important;
  height: 17px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #documentType,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedTenancyPeriod,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedCertificateCopies,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedMonthlyRental,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card [id^="advancedMonthlyRentalYear"],
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #propertyValue,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #loanAmount,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #serviceValue {
  padding-left: 76px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon {
    left: 24px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 13px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon::before {
    width: 18px !important;
    height: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-icon-money::before {
    width: 17px !important;
    height: 17px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #documentType,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedTenancyPeriod,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedCertificateCopies,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedMonthlyRental,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card [id^="advancedMonthlyRentalYear"],
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #propertyValue,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #loanAmount,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #serviceValue {
    padding-left: 74px !important;
  }
}

/* LAST money calculator icon balance. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-icon-money::before {
  width: 20px !important;
  height: 20px !important;
}

/* LAST calculator field spacing tighten. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field {
  margin-bottom: 14px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field label {
  margin-bottom: 7px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(.calc-input-shell) {
  margin-bottom: 16px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(.calc-input-shell) label {
  margin-bottom: 6px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(.calc-input-shell) {
    margin-bottom: 13px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field label,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(.calc-input-shell) label {
    margin-bottom: 5px !important;
  }
}

/* LAST calculator input content nudge left. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon {
  left: 20px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #documentType,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedTenancyPeriod,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedCertificateCopies,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedMonthlyRental,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card [id^="advancedMonthlyRentalYear"],
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #propertyValue,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #loanAmount,
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #serviceValue {
  padding-left: 66px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell .calc-input-icon {
    left: 18px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #documentType,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedTenancyPeriod,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedCertificateCopies,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedMonthlyRental,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card [id^="advancedMonthlyRentalYear"],
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedSigningDate,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #propertyValue,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #loanAmount,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #serviceValue {
    padding-left: 64px !important;
  }
}

/* FINAL PDF button fit: keep the border close to the icon and label. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 7px !important;
  border-radius: 7px !important;
  font-size: 0.64rem !important;
  column-gap: 5px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  width: 11px !important;
  height: 14px !important;
  margin-right: 4px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 6px !important;
    border-radius: 6px !important;
    font-size: 0.6rem !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
    width: 9px !important;
    height: 12px !important;
    margin-right: 3px !important;
  }
}

/* FINAL mobile calculator type scale and PDF button spacing. */
html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
  gap: 3px !important;
  column-gap: 3px !important;
}

html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
  margin-right: 1px !important;
}

@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field label,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .field:has(.calc-input-shell) label {
    font-size: clamp(1rem, 4.25vw, 1.22rem) !important;
    line-height: 1.16 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell input,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell select,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .calc-input-shell #advancedSigningDate,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #documentType,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedTenancyPeriod,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedCertificateCopies,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #advancedMonthlyRental,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card [id^="advancedMonthlyRentalYear"],
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #propertyValue,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #loanAmount,
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card #serviceValue {
    font-size: clamp(1rem, 4vw, 1.18rem) !important;
    line-height: 1.15 !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn {
    gap: 2px !important;
    column-gap: 2px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .quotation-export-btn::before {
    margin-right: 0 !important;
  }
}

/* FINAL admin invoice history. */
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
}

.admin-panel-head h2 {
  margin: 6px 0 0;
  color: var(--new-text);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.accounts-refresh-all {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.admin-copy-card input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--new-line);
  border-radius: 12px;
  padding: 10px 13px;
  color: var(--new-text);
  background: #fff;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.invoice-history-item {
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
  align-items: center;
}

.invoice-history-item .admin-copy-btn {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.invoice-history-item div span {
  display: block;
}

.invoice-history-item strong .invoice-status-text,
.invoice-history-item strong .invoice-status-text + span {
  display: inline;
}

.invoice-status-void {
  color: #8b1e1e;
}

.invoice-status-paid {
  color: #16703a;
}

.invoice-status-partial {
  color: #9a5a13;
}

.invoice-status-unpaid {
  color: #1f4f9f;
}

.invoice-select-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.invoice-select-wrap input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 4px;
  accent-color: #2351a3;
}

.accounts-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.accounts-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
}

.accounts-bulk-actions .admin-copy-btn {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: none;
}

.invoice-history-item .admin-copy-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.account-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.account-payment-dialog {
  width: min(460px, 100%);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  padding: 22px;
  color: #172033;
}

.account-payment-dialog h2 {
  margin: 0 0 6px;
  color: #14345f;
  font-size: 1.35rem;
}

.account-payment-dialog p {
  margin: 0 0 14px;
  color: #62708a;
  font-weight: 750;
}

.account-payment-dialog label {
  display: block;
  margin: 12px 0 6px;
  color: #14345f;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-payment-dialog input,
.account-payment-dialog select,
.account-payment-dialog textarea {
  width: 100%;
  border: 1px solid var(--new-line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 750;
  color: var(--new-text);
  outline: none;
}

.account-payment-dialog textarea {
  resize: vertical;
}

.account-payment-dialog [data-payment-error] {
  min-height: 18px;
  margin: 8px 0 0;
  color: #e0523a;
  font-size: 0.82rem;
  font-weight: 850;
}

.account-payment-dialog > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.account-payment-dialog button {
  min-height: 40px;
  border: 1px solid var(--new-line);
  border-radius: 999px;
  background: #fff;
  color: #172033;
  padding: 8px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-payment-dialog button:last-child {
  border-color: #2351a3;
  background: #2351a3;
  color: #fff;
}

.admin-tabs button[data-admin-tab="accounts"].active {
  background: #14345f;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(20, 52, 95, 0.22);
}

.accounts-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px;
  border: 1px solid var(--new-line);
  border-radius: 14px;
  background: #fff;
}

.accounts-subtabs button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 8px 13px;
  background: transparent;
  color: var(--new-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.accounts-subtabs button.active {
  background: #14345f;
  color: #fff;
}

.accounts-panel:not(.active) {
  display: none;
}

.accounts-panel.active {
  display: block;
}

.accounts-panel .admin-copy-card {
  gap: 10px;
}

.accounts-panel input,
.accounts-panel select,
.accounts-panel textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--new-line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--new-text);
  background: #fff;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.accounts-panel textarea {
  resize: vertical;
}

.accounts-metric-grid,
.accounts-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.accounts-metric-grid div,
.accounts-report-grid article {
  padding: 14px;
  border: 1px solid var(--new-line);
  border-radius: 12px;
  background: #fff;
}

.accounts-metric-grid span,
.accounts-report-grid span {
  display: block;
  color: var(--new-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.accounts-metric-grid strong,
.accounts-report-grid strong {
  display: block;
  margin-top: 6px;
  color: #14345f;
  font-size: 1.35rem;
  line-height: 1;
}

.account-reports-panel [data-report-bank-field],
.account-reports-panel [data-report-bank-field][hidden] {
  display: none !important;
}

.account-reports-panel [data-account-report-downloads][hidden] {
  display: none !important;
}

.account-reports-panel:has([data-account-report-tab="search"].active) [data-account-report-downloads] {
  display: none !important;
}

@media (max-width: 760px) {
  .admin-panel-head {
    display: block;
  }

  .accounts-refresh-all {
    margin-top: 12px;
  }

  .invoice-history-item {
    grid-template-columns: 1fr 1fr auto;
  }

  .invoice-history-item > div,
  .invoice-history-item .agreement-list-total {
    grid-column: 1 / -1;
  }

  .accounts-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Final compact admin header. */
html body .page-shell.admin-page .admin-topbar {
  min-height: 58px !important;
  height: 58px !important;
  padding: 2px clamp(18px, 4vw, 54px) !important;
}

html body .page-shell.admin-page .admin-brand,
html body .page-shell.admin-page .admin-brand img {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
}

html body .page-shell.admin-page .admin-title-actions > strong {
  padding: 7px 14px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
}

html body .page-shell.admin-page .admin-logout-btn {
  min-height: 34px !important;
  padding: 7px 14px !important;
  font-size: 0.76rem !important;
}

/* Added agreement edit action: intentionally small because it is a rare correction tool. */
html body .page-shell.admin-page .agreement-list-item {
  grid-template-columns: minmax(0, 1fr) auto auto auto !important;
}

html body .page-shell.admin-page .agreement-edit-btn {
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  color: #53617c !important;
  box-shadow: none !important;
}

/* ACC invoice list: keep invoice actions compact and prevent agreement-list overrides from stretching controls. */
html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  column-gap: 8px !important;
  row-gap: 8px !important;
  align-items: center !important;
}

html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .admin-copy-btn {
  width: auto !important;
  min-width: 48px !important;
  max-width: 82px !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

html body .page-shell.admin-page #invoiceHistoryCard .invoice-select-wrap {
  width: 24px !important;
  min-width: 24px !important;
  display: inline-flex !important;
}

html body .page-shell.admin-page #invoiceHistoryCard .invoice-select-wrap input {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border-radius: 4px !important;
}

html body .page-shell.admin-page #accountPaymentList .payment-history-item {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  column-gap: 8px !important;
  row-gap: 8px !important;
  align-items: center !important;
}

html body .page-shell.admin-page #accountPaymentList .payment-history-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

html body .page-shell.admin-page #accountPaymentList .payment-history-item .admin-copy-btn {
  width: auto !important;
  min-width: 48px !important;
  max-width: 82px !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

html body .page-shell.admin-page #accountPaymentList .payment-history-item .admin-copy-btn:disabled {
  opacity: 0.46 !important;
  cursor: not-allowed !important;
}

html body .page-shell.admin-page .accounts-panel .accounts-filter-grid input[type="date"],
html body .page-shell.admin-page .accounts-panel .accounts-filter-grid select {
  min-height: 38px !important;
  padding: 8px 11px !important;
  font-size: 0.84rem !important;
  line-height: 1.1 !important;
  font-weight: 750 !important;
}

html body .page-shell.admin-page .accounts-panel .accounts-filter-grid input[type="date"]::-webkit-datetime-edit,
html body .page-shell.admin-page .accounts-panel .accounts-filter-grid input[type="date"]::-webkit-date-and-time-value {
  font-size: 0.84rem !important;
  line-height: 1.1 !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .accounts-panel .admin-copy-card {
    overflow: hidden !important;
  }

  html body .page-shell.admin-page .accounts-panel .accounts-filter-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  html body .page-shell.admin-page .accounts-panel .accounts-filter-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body .page-shell.admin-page .accounts-panel .accounts-filter-grid input[type="date"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    font-size: 0.9rem !important;
    text-align: left !important;
  }

  html body .page-shell.admin-page .accounts-panel .accounts-filter-grid input[type="date"]::-webkit-datetime-edit,
  html body .page-shell.admin-page .accounts-panel .accounts-filter-grid input[type="date"]::-webkit-date-and-time-value {
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }
}

/* Final mobile admin lift: remove the tall empty header space on phone. */
@media (max-width: 760px) {
  html body .page-shell.admin-page {
    width: 100% !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  html body .page-shell.admin-page .admin-topbar {
    position: sticky !important;
    top: 0 !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 82px !important;
    height: auto !important;
    padding: 3px 8px 5px !important;
    gap: 4px 7px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 244, 0.95) !important;
    background: rgba(255, 255, 255, 0.96) !important;
  }

  html body .page-shell.admin-page .admin-brand,
  html body .page-shell.admin-page .admin-brand img {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
  }

  html body .page-shell.admin-page .admin-title-actions {
    grid-column: 2 / 3 !important;
    justify-self: end !important;
    gap: 6px !important;
    max-width: calc(100vw - 62px) !important;
  }

  html body .page-shell.admin-page .admin-title-actions > strong {
    min-height: 28px !important;
    padding: 5px 10px !important;
    font-size: 0.64rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
  }

  html body .page-shell.admin-page .admin-logout-btn {
    min-height: 28px !important;
    padding: 5px 10px !important;
    font-size: 0.64rem !important;
    line-height: 1 !important;
  }

  html body .page-shell.admin-page main {
    width: calc(100% - 14px) !important;
    margin-top: 6px !important;
  }

  html body .page-shell.admin-page .section {
    margin: 6px auto 28px !important;
  }

  html body .page-shell.admin-page .admin-tabs {
    top: auto !important;
    padding: 5px !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
    border-radius: 18px !important;
  }

  html body .page-shell.admin-page .admin-tabs button {
    min-height: 38px !important;
    padding: 8px 9px !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
  }

  html body .page-shell.admin-page .admin-panel {
    padding-top: 6px !important;
    border-radius: 18px !important;
  }
}

/* Client LHDN calculator: keep employment salary radios compact on phones. */
@media (max-width: 760px) {
  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .salary-choice {
    grid-template-columns: 16px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 48px !important;
    padding: 11px 13px !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .salary-choice input[type="radio"] {
    display: block !important;
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    accent-color: #2368ff !important;
    -webkit-appearance: radio !important;
    appearance: radio !important;
  }

  html body.modern-lhdn-page #calculator.lhdn-calculator-showcase .advanced-calculator-card .salary-choice span {
    min-width: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.25 !important;
  }
}

/* Admin quotation export buttons: compact polished pills for LHDN and SSM. */
html body .page-shell.admin-page .results-actions {
  gap: 8px !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-btn {
  isolation: isolate !important;
  position: relative !important;
  min-width: 104px !important;
  min-height: 38px !important;
  padding: 0 14px 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(209, 220, 238, 0.82) !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 22px rgba(25, 48, 83, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-btn::before {
  position: relative !important;
  z-index: 1 !important;
  width: 24px !important;
  height: 24px !important;
  margin-right: 1px !important;
  border-radius: 10px !important;
  font-size: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 12px rgba(17, 38, 72, 0.12) !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-btn::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px 1px auto 1px !important;
  z-index: 0 !important;
  height: 50% !important;
  border-radius: inherit !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)) !important;
  pointer-events: none !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-btn > span {
  position: relative !important;
  z-index: 1 !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-invoice {
  color: #ffffff !important;
  background: linear-gradient(135deg, #f36c21 0%, #ff9b42 58%, #ffc36a 100%) !important;
  border-color: rgba(241, 112, 35, 0.48) !important;
  box-shadow: 0 12px 24px rgba(232, 103, 32, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-invoice::before {
  content: "" !important;
  background:
    linear-gradient(#f36c21, #f36c21) 50% 72% / 10px 2px no-repeat,
    linear-gradient(#f36c21, #f36c21) 50% 53% / 10px 2px no-repeat,
    linear-gradient(#f36c21, #f36c21) 50% 34% / 8px 2px no-repeat,
    linear-gradient(135deg, transparent 0 72%, rgba(243, 108, 33, 0.28) 73% 100%),
    #fff7ef !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-jpeg {
  color: #123861 !important;
  background: linear-gradient(135deg, #ffffff 0%, #edf7ff 54%, #dff0ff 100%) !important;
  border-color: rgba(88, 142, 204, 0.34) !important;
  box-shadow: 0 12px 24px rgba(45, 112, 190, 0.14), inset 0 1px 0 #ffffff !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-jpeg::before {
  content: "" !important;
  background:
    linear-gradient(#ffffff, #ffffff) 50% 35% / 3px 9px no-repeat,
    linear-gradient(135deg, transparent 42%, #ffffff 43% 57%, transparent 58%) 50% 62% / 11px 11px no-repeat,
    linear-gradient(135deg, #256cc8 0%, #58a9f5 100%) !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-btn:hover {
  transform: translateY(-1px) !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-invoice:hover {
  box-shadow: 0 15px 28px rgba(232, 103, 32, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-jpeg:hover {
  box-shadow: 0 15px 28px rgba(45, 112, 190, 0.2), inset 0 1px 0 #ffffff !important;
}

html body .page-shell.admin-page .results-actions .quotation-export-btn:active {
  transform: translateY(0) scale(0.99) !important;
}

@media (max-width: 520px) {
  html body .page-shell.admin-page .results-head {
    align-items: flex-start !important;
  }

  html body .page-shell.admin-page .results-actions {
    width: auto !important;
    justify-content: flex-start !important;
    gap: 7px !important;
  }

  html body .page-shell.admin-page .admin-quotation-unit-control {
    min-height: 32px !important;
    padding: 3px 6px 3px 8px !important;
    border-radius: 12px !important;
  }

  html body .page-shell.admin-page .admin-quotation-unit-control label {
    font-size: 0.66rem !important;
  }

  html body .page-shell.admin-page .admin-quotation-unit-control input {
    width: 46px !important;
    min-height: 24px !important;
    height: 24px !important;
    font-size: 0.72rem !important;
  }

  html body .page-shell.admin-page .results-actions .quotation-export-btn {
    flex: 0 0 auto !important;
    min-width: 78px !important;
    min-height: 32px !important;
    padding: 0 10px 0 8px !important;
    border-radius: 12px !important;
    font-size: 0.72rem !important;
    box-shadow: 0 8px 16px rgba(25, 48, 83, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
  }

  html body .page-shell.admin-page .results-actions .quotation-export-btn::before {
    width: 19px !important;
    height: 19px !important;
    border-radius: 8px !important;
  }

  html body .page-shell.admin-page .results-actions .quotation-export-btn::after {
    height: 42% !important;
  }
}

/* ACC Customers: make the customer form feel like a compact client desk. */
html body .page-shell.admin-page .account-customers-panel .admin-copy-templates {
  gap: 14px !important;
}

html body .page-shell.admin-page .account-customer-form-card,
html body .page-shell.admin-page .account-customer-search-card {
  border-color: rgba(202, 214, 236, 0.82) !important;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.92), rgba(255, 255, 255, 0.98)) !important;
  border-radius: var(--admin-radius-lg, 12px) !important;
  box-shadow: 0 8px 22px rgba(28, 50, 92, 0.05) !important;
}

html body .page-shell.admin-page .account-customer-form-card {
  padding: 18px !important;
}

html body .page-shell.admin-page .account-customer-form-card .admin-copy-head,
html body .page-shell.admin-page .account-customer-search-card .admin-copy-head {
  align-items: center !important;
  margin-bottom: 12px !important;
}

html body .page-shell.admin-page .account-customer-form-card .admin-copy-head span,
html body .page-shell.admin-page .account-customer-search-card .admin-copy-head span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #14345f !important;
  font-size: 0.82rem !important;
  font-weight: var(--admin-weight-label, 700) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .account-customer-form-card .admin-copy-head span::before,
html body .page-shell.admin-page .account-customer-search-card .admin-copy-head span::before {
  content: "" !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: var(--admin-radius-sm, 8px) !important;
  background:
    radial-gradient(circle at 50% 34%, #ffffff 0 4px, transparent 5px),
    radial-gradient(circle at 50% 78%, #ffffff 0 7px, transparent 8px),
    linear-gradient(135deg, #2351a3, #5b8df5) !important;
  box-shadow: 0 8px 16px rgba(35, 81, 163, 0.18) !important;
}

html body .page-shell.admin-page .account-customer-form-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

html body .page-shell.admin-page #cancelAccountCustomerEdit[hidden] {
  display: none !important;
}

html body .page-shell.admin-page .account-customer-search-card .admin-copy-head span::before {
  background:
    radial-gradient(circle at 42% 42%, transparent 0 6px, #ffffff 7px 8px, transparent 9px),
    linear-gradient(45deg, transparent 0 56%, #ffffff 57% 66%, transparent 67%),
    linear-gradient(135deg, #14345f, #4f7fd8) !important;
}

html body .page-shell.admin-page .account-customer-form-card .admin-copy-btn,
html body .page-shell.admin-page .account-customer-search-card .admin-copy-btn {
  min-height: 38px !important;
  padding: 8px 16px !important;
  border-color: rgba(35, 81, 163, 0.18) !important;
  background: #ffffff !important;
  color: #14345f !important;
  border-radius: var(--admin-radius-sm, 8px) !important;
  font-weight: 720 !important;
  box-shadow: none !important;
}

html body .page-shell.admin-page .rental-month-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 98px !important;
  gap: 8px !important;
  align-items: center !important;
}

html body .page-shell.admin-page .rental-month-row input {
  min-width: 0 !important;
}

html body .page-shell.admin-page .rental-month-row input[aria-label*="months"] {
  text-align: center !important;
}

@media (max-width: 560px) {
  html body .page-shell.admin-page .rental-month-row {
    grid-template-columns: minmax(0, 1fr) 82px !important;
    gap: 6px !important;
  }
}

html body .page-shell.admin-page .account-customer-fields {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(150px, 0.8fr) minmax(140px, 0.7fr) minmax(180px, 0.9fr) !important;
  gap: 10px !important;
}

html body .page-shell.admin-page .account-customer-fields input,
html body .page-shell.admin-page .account-customer-fields textarea,
html body .page-shell.admin-page .account-customer-search-card input[type="search"] {
  min-height: 44px !important;
  border-radius: var(--admin-radius-md, 10px) !important;
  border-color: rgba(207, 218, 238, 0.95) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #172033 !important;
  font-size: 0.92rem !important;
  font-weight: 650 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .page-shell.admin-page .account-customer-fields input::placeholder,
html body .page-shell.admin-page .account-customer-fields textarea::placeholder,
html body .page-shell.admin-page .account-customer-search-card input[type="search"]::placeholder {
  color: #7c879b !important;
  opacity: 1 !important;
}

html body .page-shell.admin-page .account-customer-fields input:focus,
html body .page-shell.admin-page .account-customer-fields textarea:focus,
html body .page-shell.admin-page .account-customer-search-card input[type="search"]:focus {
  border-color: rgba(35, 81, 163, 0.42) !important;
  box-shadow: 0 0 0 4px rgba(35, 81, 163, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .page-shell.admin-page .account-customer-fields textarea {
  resize: vertical !important;
}

html body .page-shell.admin-page .account-customer-fields #accountCustomerAddress {
  grid-column: 1 / 3 !important;
  min-height: 104px !important;
}

html body .page-shell.admin-page .account-customer-fields #accountCustomerRemark {
  grid-column: 3 / 5 !important;
  min-height: 104px !important;
}

html body .page-shell.admin-page #accountCustomerStatus {
  min-height: 38px !important;
  margin-top: 12px !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(207, 218, 238, 0.82) !important;
  border-radius: var(--admin-radius-md, 10px) !important;
  background: rgba(244, 248, 255, 0.82) !important;
  color: #536685 !important;
  font-size: 0.86rem !important;
  font-weight: 620 !important;
}

html body .page-shell.admin-page .account-customers-panel > .agreement-list-card {
  margin-top: 14px !important;
  border-color: rgba(202, 214, 236, 0.82) !important;
  background: #ffffff !important;
  border-radius: var(--admin-radius-lg, 12px) !important;
  box-shadow: 0 8px 22px rgba(28, 50, 92, 0.05) !important;
}

html body .page-shell.admin-page #accountCustomerList .account-customer-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

html body .page-shell.admin-page #accountCustomerList .account-customer-actions .admin-copy-btn {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 860px) {
  html body .page-shell.admin-page .account-customer-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  html body .page-shell.admin-page .account-customer-fields .account-customer-name,
  html body .page-shell.admin-page .account-customer-fields #accountCustomerAddress,
  html body .page-shell.admin-page .account-customer-fields #accountCustomerRemark {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 560px) {
  html body .page-shell.admin-page .account-customer-form-card,
  html body .page-shell.admin-page .account-customer-search-card {
    padding: 14px !important;
  }

  html body .page-shell.admin-page .account-customer-form-card .admin-copy-head,
  html body .page-shell.admin-page .account-customer-search-card .admin-copy-head {
    align-items: flex-start !important;
  }

  html body .page-shell.admin-page .account-customer-form-actions {
    width: auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  html body .page-shell.admin-page .account-customer-form-actions .admin-copy-btn {
    min-width: 88px !important;
    min-height: 36px !important;
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
  }

  html body .page-shell.admin-page .account-customer-form-card:not(.is-editing-customer) .account-customer-form-actions {
    flex: 0 0 auto !important;
  }

  html body .page-shell.admin-page .account-customer-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ACC Payments: compact receipt entry and clearer payment totals. */
html body .page-shell.admin-page .account-payments-panel .admin-copy-templates {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

html body .page-shell.admin-page .account-payment-form-card,
html body .page-shell.admin-page .account-payment-summary-card {
  border-color: rgba(202, 214, 236, 0.82) !important;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.94), rgba(255, 255, 255, 0.98)) !important;
  border-radius: var(--admin-radius-lg, 12px) !important;
  box-shadow: 0 8px 22px rgba(28, 50, 92, 0.05) !important;
}

html body .page-shell.admin-page .account-payment-form-card {
  padding: 18px !important;
}

html body .page-shell.admin-page .account-payment-form-card .admin-copy-head,
html body .page-shell.admin-page .account-payment-summary-card .admin-copy-head {
  align-items: center !important;
  margin-bottom: 12px !important;
}

html body .page-shell.admin-page .account-payment-form-card .admin-copy-head span,
html body .page-shell.admin-page .account-payment-summary-card .admin-copy-head span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #14345f !important;
  font-size: 0.82rem !important;
  font-weight: var(--admin-weight-label, 700) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .account-payment-form-card .admin-copy-head span::before,
html body .page-shell.admin-page .account-payment-summary-card .admin-copy-head span::before {
  content: "" !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: var(--admin-radius-sm, 8px) !important;
  background:
    linear-gradient(#ffffff, #ffffff) 50% 35% / 11px 2px no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 52% / 11px 2px no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 69% / 8px 2px no-repeat,
    linear-gradient(135deg, #2351a3, #5b8df5) !important;
  box-shadow: 0 8px 16px rgba(35, 81, 163, 0.18) !important;
}

html body .page-shell.admin-page .account-payment-summary-card .admin-copy-head span::before {
  background:
    linear-gradient(#ffffff, #ffffff) 50% 69% / 12px 2px no-repeat,
    radial-gradient(circle at 50% 39%, #ffffff 0 6px, transparent 7px),
    linear-gradient(135deg, #16703a, #58b47a) !important;
}

html body .page-shell.admin-page .account-payment-form-card .admin-copy-btn {
  min-height: 38px !important;
  padding: 8px 16px !important;
  border-color: rgba(35, 81, 163, 0.18) !important;
  background: #ffffff !important;
  color: #14345f !important;
  border-radius: var(--admin-radius-sm, 8px) !important;
  font-weight: 720 !important;
  box-shadow: none !important;
}

html body .page-shell.admin-page .account-payment-fields {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) !important;
  gap: 10px !important;
}

html body .page-shell.admin-page .account-payment-fields #accountPaymentMethod {
  grid-column: 1 / 2 !important;
}

html body .page-shell.admin-page .account-payment-fields #accountPaymentReference {
  grid-column: 2 / 4 !important;
}

html body .page-shell.admin-page .account-payment-fields input,
html body .page-shell.admin-page .account-payment-fields select {
  min-height: 44px !important;
  border-radius: var(--admin-radius-md, 10px) !important;
  border-color: rgba(207, 218, 238, 0.95) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  color: #172033 !important;
  font-size: 0.92rem !important;
  font-weight: 650 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .page-shell.admin-page .account-payment-fields input::placeholder {
  color: #7c879b !important;
  opacity: 1 !important;
}

html body .page-shell.admin-page .account-payment-fields input:focus,
html body .page-shell.admin-page .account-payment-fields select:focus {
  border-color: rgba(35, 81, 163, 0.42) !important;
  box-shadow: 0 0 0 4px rgba(35, 81, 163, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .page-shell.admin-page #accountPaymentStatus {
  min-height: 38px !important;
  margin-top: 12px !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(207, 218, 238, 0.82) !important;
  border-radius: var(--admin-radius-md, 10px) !important;
  background: rgba(244, 248, 255, 0.82) !important;
  color: #536685 !important;
  font-size: 0.86rem !important;
  font-weight: 620 !important;
}

html body .page-shell.admin-page #accountPaymentStatus:empty {
  display: none !important;
}

html body .page-shell.admin-page .account-payment-summary-card {
  padding: 18px !important;
}

html body .page-shell.admin-page .account-payment-summary-card .accounts-metric-grid {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

html body .page-shell.admin-page .account-payment-summary-card .accounts-metric-grid div {
  border-color: rgba(207, 218, 238, 0.82) !important;
  border-radius: var(--admin-radius-lg, 12px) !important;
  background: #ffffff !important;
  box-shadow: 0 6px 16px rgba(28, 50, 92, 0.045) !important;
}

html body .page-shell.admin-page .account-payment-summary-card .accounts-metric-grid span {
  color: #62708a !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .account-payment-summary-card .accounts-metric-grid strong {
  color: #14345f !important;
  font-size: 1.28rem !important;
}

html body .page-shell.admin-page .account-payments-panel > .agreement-list-card {
  margin-top: 14px !important;
  border-color: rgba(202, 214, 236, 0.82) !important;
  background: #ffffff !important;
  border-radius: var(--admin-radius-lg, 12px) !important;
  box-shadow: 0 8px 22px rgba(28, 50, 92, 0.05) !important;
}

@media (max-width: 960px) {
  html body .page-shell.admin-page .account-payments-panel .admin-copy-templates {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .page-shell.admin-page .account-payment-summary-card .accounts-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  html body .page-shell.admin-page .account-payment-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .page-shell.admin-page .account-payment-fields #accountPaymentMethod,
  html body .page-shell.admin-page .account-payment-fields #accountPaymentReference {
    grid-column: 1 / -1 !important;
  }

  html body .page-shell.admin-page .account-payment-summary-card .accounts-metric-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ACC overall polish: segmented tabs, invoice cards, saved contacts, and reports. */
html body .page-shell.admin-page {
  --admin-radius-sm: 8px;
  --admin-radius-md: 10px;
  --admin-radius-lg: 12px;
  --admin-weight-label: 700;
  --admin-weight-strong: 760;
}

html body .page-shell.admin-page .accounts-subtabs {
  gap: 5px !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
  padding: 5px !important;
  border-color: rgba(202, 214, 236, 0.9) !important;
  border-radius: var(--admin-radius-lg) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 8px 18px rgba(28, 50, 92, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .page-shell.admin-page .accounts-subtabs button {
  min-height: 38px !important;
  border-radius: var(--admin-radius-md) !important;
  padding: 8px 16px !important;
  color: #53617c !important;
  font-size: 0.86rem !important;
  font-weight: 740 !important;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}

html body .page-shell.admin-page .accounts-subtabs button.active {
  background: linear-gradient(135deg, #14345f, #2351a3) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(20, 52, 95, 0.22) !important;
}

html body .page-shell.admin-page .accounts-subtabs button:not(.active):hover {
  background: #f2f6ff !important;
  color: #14345f !important;
}

html body .page-shell.admin-page .account-invoice-filter-card {
  border-color: rgba(202, 214, 236, 0.82) !important;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.94), rgba(255, 255, 255, 0.98)) !important;
  border-radius: var(--admin-radius-lg) !important;
  box-shadow: 0 8px 22px rgba(28, 50, 92, 0.05) !important;
}

html body .page-shell.admin-page .account-invoice-filter-card .admin-copy-head span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #14345f !important;
  font-size: 0.82rem !important;
  font-weight: var(--admin-weight-label) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .account-invoice-filter-card .admin-copy-head span::before {
  content: "" !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: var(--admin-radius-sm) !important;
  background:
    linear-gradient(#ffffff, #ffffff) 50% 35% / 11px 2px no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 52% / 11px 2px no-repeat,
    linear-gradient(#ffffff, #ffffff) 50% 69% / 8px 2px no-repeat,
    linear-gradient(135deg, #14345f, #4f7fd8) !important;
  box-shadow: 0 8px 16px rgba(35, 81, 163, 0.18) !important;
}

html body .page-shell.admin-page .account-invoice-filter-card input,
html body .page-shell.admin-page .account-invoice-filter-card select {
  min-height: 42px !important;
  border-radius: var(--admin-radius-md) !important;
  border-color: rgba(207, 218, 238, 0.95) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
}

html body .page-shell.admin-page .account-date-filter {
  position: relative !important;
  display: block !important;
  min-width: 0 !important;
}

html body .page-shell.admin-page .account-date-filter > span {
  position: absolute !important;
  left: 13px !important;
  top: 6px !important;
  z-index: 1 !important;
  color: #7a869f !important;
  font-size: 0.62rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
}

html body .page-shell.admin-page .account-date-filter input {
  width: 100% !important;
  padding-top: 18px !important;
  padding-bottom: 5px !important;
  color: #172033 !important;
}

html body .page-shell.admin-page .account-date-filter input:placeholder-shown {
  color: #7a869f !important;
}

html body .page-shell.admin-page .invoice-status-dropdown {
  position: relative !important;
  min-width: 0 !important;
  min-height: 42px !important;
}

html body .page-shell.admin-page .invoice-status-dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 9px 13px !important;
  border: 1px solid rgba(207, 218, 238, 0.95) !important;
  border-radius: var(--admin-radius-md, 10px) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #172033 !important;
  font: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 720 !important;
  text-align: left !important;
  cursor: pointer !important;
}

html body .page-shell.admin-page .invoice-status-dropdown-toggle::after {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #53617c !important;
  border-bottom: 2px solid #53617c !important;
  transform: rotate(45deg) translateY(-2px) !important;
  flex: 0 0 auto !important;
}

html body .page-shell.admin-page .invoice-status-checks {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 6px) !important;
  z-index: 40 !important;
  display: grid !important;
  gap: 5px !important;
  padding: 7px !important;
  border: 1px solid rgba(207, 218, 238, 0.95) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 30px rgba(25, 48, 83, 0.16) !important;
}

html body .page-shell.admin-page .invoice-status-checks[hidden] {
  display: none !important;
}

html body .page-shell.admin-page .invoice-status-checks label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #53617c !important;
  font-size: 0.78rem !important;
  font-weight: 720 !important;
  line-height: 1.1 !important;
  cursor: pointer !important;
}

html body .page-shell.admin-page .invoice-status-checks input {
  appearance: auto !important;
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: #2351a3 !important;
}

html body .page-shell.admin-page .invoice-status-checks label:has(input:checked) {
  border-color: rgba(35, 81, 163, 0.28) !important;
  background: #eef5ff !important;
  color: #14345f !important;
}


html body .page-shell.admin-page .account-invoice-filter-card .accounts-bulk-actions {
  margin-top: 2px !important;
}

html body .page-shell.admin-page .account-invoice-filter-card #bulkVoidInvoices {
  border-color: rgba(139, 30, 30, 0.15) !important;
  color: #8b1e1e !important;
  background: #fff8f8 !important;
  box-shadow: none !important;
}

html body .page-shell.admin-page #invoiceHistoryCard,
html body .page-shell.admin-page .account-payments-panel > .agreement-list-card,
html body .page-shell.admin-page .account-customers-panel > .agreement-list-card {
  padding: 12px !important;
}

html body .page-shell.admin-page .invoice-history-item {
  position: relative !important;
  margin: 0 0 10px !important;
  padding: 13px !important;
  border: 1px solid rgba(207, 218, 238, 0.8) !important;
  border-radius: var(--admin-radius-lg) !important;
  background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
  box-shadow: 0 6px 16px rgba(28, 50, 92, 0.045) !important;
}

html body .page-shell.admin-page .invoice-history-item:last-child {
  margin-bottom: 0 !important;
}

html body .page-shell.admin-page .invoice-history-item > div {
  min-width: 0 !important;
}

html body .page-shell.admin-page .invoice-history-item strong {
  color: #172033 !important;
  font-size: 0.92rem !important;
  font-weight: var(--admin-weight-strong) !important;
  line-height: 1.3 !important;
}

html body .page-shell.admin-page .invoice-history-item span {
  color: #62708a !important;
  font-size: 0.8rem !important;
  font-weight: 620 !important;
  line-height: 1.35 !important;
}

html body .page-shell.admin-page .account-customer-contact {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 5px !important;
}

html body .page-shell.admin-page .account-customer-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 22px !important;
  padding: 2px 7px !important;
  border: 1px solid rgba(35, 81, 163, 0.12) !important;
  border-radius: var(--admin-radius-sm, 8px) !important;
  background: #f7faff !important;
  color: #14345f !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

html body .page-shell.admin-page .account-customer-link:hover {
  border-color: rgba(35, 81, 163, 0.28) !important;
  background: #eef5ff !important;
}

html body .page-shell.admin-page .account-customer-link-whatsapp {
  border-color: rgba(22, 112, 58, 0.14) !important;
  background: #eefaf2 !important;
  color: #16703a !important;
}

html body .page-shell.admin-page .admin-phone-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 22px !important;
  padding: 2px 7px !important;
  border: 1px solid rgba(35, 81, 163, 0.12) !important;
  border-radius: var(--admin-radius-sm, 8px) !important;
  background: #f7faff !important;
  color: #14345f !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

html body .page-shell.admin-page .admin-phone-link.account-customer-link-whatsapp {
  border-color: rgba(22, 112, 58, 0.14) !important;
  background: #eefaf2 !important;
  color: #16703a !important;
}

html body .page-shell.admin-page .account-customer-dot {
  color: #a4adbd !important;
  font-size: 0.78rem !important;
}

html body .page-shell.admin-page .invoice-history-item .agreement-list-total {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 8px 12px !important;
  border-radius: var(--admin-radius-md) !important;
  background: #eef5ff !important;
  color: #14345f !important;
  font-size: 0.86rem !important;
  font-weight: var(--admin-weight-strong) !important;
}

html body .page-shell.admin-page .invoice-history-item .admin-copy-btn {
  min-width: 54px !important;
  min-height: 32px !important;
  padding: 7px 11px !important;
  border-color: rgba(35, 81, 163, 0.14) !important;
  background: #ffffff !important;
  color: #14345f !important;
  box-shadow: none !important;
}

html body .page-shell.admin-page #accountPaymentList .payment-history-item {
  column-gap: 6px !important;
}

html body .page-shell.admin-page #accountPaymentList .payment-history-actions {
  gap: 5px !important;
}

html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions {
  gap: 5px !important;
}

html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .admin-copy-btn,
html body .page-shell.admin-page #accountPaymentList .payment-history-item .admin-copy-btn {
  min-width: 46px !important;
  padding-inline: 8px !important;
}

html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .invoice-download-btn,
html body .page-shell.admin-page #accountPaymentList .payment-history-item .invoice-download-btn {
  border-color: #14345f !important;
  background: #14345f !important;
  color: #ffffff !important;
  font-weight: 820 !important;
}

html body .page-shell.admin-page .invoice-status-text {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 22px !important;
  padding: 3px 8px !important;
  border-radius: var(--admin-radius-sm) !important;
  font-size: 0.72rem !important;
  font-weight: 720 !important;
  line-height: 1 !important;
}

html body .page-shell.admin-page .invoice-status-paid {
  background: #eaf8ef !important;
  color: #16703a !important;
}

html body .page-shell.admin-page .invoice-status-partial {
  background: #fff7e8 !important;
  color: #9a5a13 !important;
}

html body .page-shell.admin-page .invoice-status-unpaid {
  background: #eef5ff !important;
  color: #1f4f9f !important;
}

html body .page-shell.admin-page .invoice-status-void {
  background: #fff0f0 !important;
  color: #8b1e1e !important;
}

html body .page-shell.admin-page .invoice-select-wrap input {
  cursor: pointer !important;
}

html body .page-shell.admin-page .account-reports-panel .accounts-report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body .page-shell.admin-page .accounts-report-filter-card {
  margin-bottom: 12px !important;
  padding: 14px !important;
  border-radius: var(--admin-radius-lg) !important;
}

html body .page-shell.admin-page .accounts-report-filter-card .admin-copy-head {
  gap: 10px !important;
  margin-bottom: 10px !important;
}

html body .page-shell.admin-page .accounts-report-quick-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

html body .page-shell.admin-page .accounts-report-quick-actions .admin-copy-btn {
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
}

html body .page-shell.admin-page .accounts-report-filters {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .page-shell.admin-page .accounts-report-filters label {
  display: grid !important;
  gap: 5px !important;
  color: #62708a !important;
  font-size: 0.72rem !important;
  font-weight: var(--admin-weight-label) !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .accounts-report-filters input {
  min-height: 38px !important;
  padding: 8px 11px !important;
  border: 1px solid #d9e3f5 !important;
  border-radius: 10px !important;
  color: #12172b !important;
  font-size: 0.86rem !important;
  font-weight: 750 !important;
  background: #ffffff !important;
}

html body .page-shell.admin-page .account-reports-panel .accounts-report-grid article {
  position: relative !important;
  overflow: hidden !important;
  min-height: 104px !important;
  padding: 18px !important;
  border-color: rgba(202, 214, 236, 0.82) !important;
  border-radius: var(--admin-radius-lg) !important;
  background: linear-gradient(180deg, #ffffff, #f7faff) !important;
  box-shadow: 0 8px 20px rgba(28, 50, 92, 0.055) !important;
}

html body .page-shell.admin-page .account-reports-panel .accounts-report-grid article::after {
  content: "" !important;
  position: absolute !important;
  right: -20px !important;
  top: -28px !important;
  width: 82px !important;
  height: 82px !important;
  border-radius: 50% !important;
  background: rgba(35, 81, 163, 0.08) !important;
}

html body .page-shell.admin-page .account-reports-panel .accounts-report-grid span {
  color: #62708a !important;
  font-size: 0.78rem !important;
  font-weight: var(--admin-weight-label) !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .account-reports-panel .accounts-report-grid strong {
  color: #14345f !important;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem) !important;
}

html body .page-shell.admin-page .accounts-report-page-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
  margin: 0 0 12px !important;
  padding: 8px !important;
  border: 1px solid #d9e3f5 !important;
  border-radius: var(--admin-radius-lg) !important;
  background: #f7faff !important;
}

html body .page-shell.admin-page .accounts-report-downloads {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

html body .page-shell.admin-page .accounts-report-downloads .admin-copy-btn {
  min-width: 64px !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

html body .page-shell.admin-page .accounts-report-page-tabs > button:not(.admin-copy-btn) {
  min-height: 34px !important;
  padding: 7px 13px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #56637a !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

html body .page-shell.admin-page .accounts-report-page-tabs > button.active:not(.admin-copy-btn) {
  border-color: #2351a3 !important;
  background: #2351a3 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(35, 81, 163, 0.16) !important;
}

html body .page-shell.admin-page .accounts-report-downloads {
  display: flex !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
  margin-left: auto !important;
}

html body .page-shell.admin-page .accounts-report-page {
  display: none !important;
}

html body .page-shell.admin-page .accounts-report-page.active {
  display: block !important;
}

html body .page-shell.admin-page .accounts-report-table-card {
  padding: 16px !important;
  border-radius: var(--admin-radius-lg) !important;
  background: #ffffff !important;
}

html body .page-shell.admin-page .accounts-report-table-wrap {
  overflow-x: auto !important;
  margin-top: 12px !important;
  border: 1px solid #d9e3f5 !important;
  border-radius: 12px !important;
}

html body .page-shell.admin-page .accounts-report-table {
  width: 100% !important;
  min-width: 620px !important;
  border-collapse: collapse !important;
  background: #ffffff !important;
}

html body .page-shell.admin-page .accounts-report-table th,
html body .page-shell.admin-page .accounts-report-table td {
  padding: 10px 12px !important;
  border-bottom: 1px solid #e2e9f6 !important;
  color: #172033 !important;
  font-size: 0.86rem !important;
  line-height: 1.28 !important;
  text-align: left !important;
  vertical-align: top !important;
}

html body .page-shell.admin-page .accounts-report-table th {
  background: #eef5ff !important;
  color: #14345f !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .accounts-report-table td:last-child,
html body .page-shell.admin-page .accounts-report-table td:nth-last-child(2),
html body .page-shell.admin-page .accounts-report-table th:last-child,
html body .page-shell.admin-page .accounts-report-table th:nth-last-child(2) {
  text-align: right !important;
  white-space: nowrap !important;
}

html body .page-shell.admin-page .accounts-report-table .report-total-row td {
  background: #f7faff !important;
  color: #14345f !important;
  font-weight: 900 !important;
}

html body .page-shell.admin-page .accounts-report-sections {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 12px !important;
}

html body .page-shell.admin-page .accounts-report-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-height: 100% !important;
  padding: 16px !important;
  border-radius: var(--admin-radius-lg) !important;
  background: #ffffff !important;
}

html body .page-shell.admin-page .accounts-report-section-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e2e9f6 !important;
}

html body .page-shell.admin-page .accounts-report-section-head span {
  color: #14345f !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .accounts-report-section-head strong {
  color: #2351a3 !important;
  font-size: clamp(1.02rem, 1.8vw, 1.24rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

html body .page-shell.admin-page .accounts-report-lines {
  display: grid !important;
  gap: 8px !important;
}

html body .page-shell.admin-page .accounts-report-line {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  color: #56637a !important;
  font-size: 0.84rem !important;
  line-height: 1.25 !important;
}

html body .page-shell.admin-page .accounts-report-line span {
  min-width: 0 !important;
}

html body .page-shell.admin-page .accounts-report-line strong {
  color: #172033 !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

html body .page-shell.admin-page .accounts-report-line-emphasis {
  margin-top: 4px !important;
  padding-top: 10px !important;
  border-top: 1px solid #e2e9f6 !important;
  color: #14345f !important;
  font-weight: 850 !important;
}

html body .page-shell.admin-page .accounts-report-line-emphasis strong {
  color: #2351a3 !important;
}

@media (max-width: 980px) {
  html body .page-shell.admin-page .account-reports-panel .accounts-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .page-shell.admin-page .accounts-report-sections {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .accounts-subtabs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  html body .page-shell.admin-page .accounts-subtabs button {
    padding: 8px 6px !important;
    font-size: 0.74rem !important;
  }
}

@media (max-width: 560px) {
  html body .page-shell.admin-page .account-reports-panel .accounts-report-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .page-shell.admin-page .invoice-history-item {
    grid-template-columns: minmax(0, 1fr) repeat(3, auto) !important;
  }
}

/* Professional admin treatment: structured accents without oversized rounded shapes. */
html body .page-shell.admin-page .accounts-panel .admin-copy-card,
html body .page-shell.admin-page .accounts-panel > .agreement-list-card,
html body .page-shell.admin-page .account-reports-panel .accounts-report-grid article {
  position: relative !important;
}

html body .page-shell.admin-page .accounts-panel .admin-copy-card::before,
html body .page-shell.admin-page .accounts-panel > .agreement-list-card::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 3px !important;
  border-radius: 0 3px 3px 0 !important;
  background: #2351a3 !important;
  opacity: 0.72 !important;
}

html body .page-shell.admin-page .account-payments-panel .admin-copy-card::before,
html body .page-shell.admin-page .account-payments-panel > .agreement-list-card::before {
  background: #16703a !important;
}

html body .page-shell.admin-page .account-customers-panel .admin-copy-card::before,
html body .page-shell.admin-page .account-customers-panel > .agreement-list-card::before {
  background: #5b6f95 !important;
}

html body .page-shell.admin-page .account-reports-panel .accounts-report-grid article::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: #2351a3 !important;
}

html body .page-shell.admin-page .account-reports-panel .accounts-report-grid article:nth-child(2)::before {
  background: #1f4f9f !important;
}

html body .page-shell.admin-page .account-reports-panel .accounts-report-grid article:nth-child(3)::before {
  background: #16703a !important;
}

html body .page-shell.admin-page .account-reports-panel .accounts-report-grid article:nth-child(4)::before {
  background: #9a5a13 !important;
}

html body .page-shell.admin-page .invoice-history-item::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 3px !important;
  border-radius: 0 3px 3px 0 !important;
  background: #2351a3 !important;
}

html body .page-shell.admin-page .payment-history-item::before {
  background: #16703a !important;
}

html body .page-shell.admin-page .account-customers-panel .invoice-history-item::before {
  background: #5b6f95 !important;
}

html body .page-shell.admin-page .accounts-panel .admin-copy-card {
  padding-left: 18px !important;
}

html body .page-shell.admin-page .accounts-panel > .agreement-list-card {
  padding-left: 14px !important;
}

html body .page-shell.admin-page .accounts-panel input,
html body .page-shell.admin-page .accounts-panel select,
html body .page-shell.admin-page .accounts-panel textarea {
  letter-spacing: 0 !important;
}

html body .page-shell.admin-page .accounts-panel .admin-copy-head span,
html body .page-shell.admin-page .accounts-report-grid span {
  letter-spacing: 0.025em !important;
}

html body .page-shell.admin-page .accounts-panel .admin-copy-btn {
  border-radius: var(--admin-radius-sm, 8px) !important;
  font-weight: 720 !important;
}

html body .page-shell.admin-page .accounts-refresh-all {
  border-radius: var(--admin-radius-sm, 8px) !important;
  font-weight: 720 !important;
}

/* ACC header: keep Refresh All with the subtabs and reduce the empty title band. */
html body .page-shell.admin-page [data-admin-panel="accounts"] > .admin-panel-head {
  min-height: 0 !important;
  margin: 0 0 6px !important;
  padding: 0 0 5px !important;
  border-bottom: 1px solid rgba(207, 218, 238, 0.64) !important;
}

html body .page-shell.admin-page [data-admin-panel="accounts"] > .admin-panel-head .section-kicker {
  font-size: 0.74rem !important;
  line-height: 1 !important;
  letter-spacing: 0.07em !important;
}

html body .page-shell.admin-page .accounts-subtabs-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
}

html body .page-shell.admin-page .accounts-subtabs-row .accounts-subtabs {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

html body .page-shell.admin-page .accounts-subtabs-row .accounts-refresh-all {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  box-shadow: 0 6px 16px rgba(20, 52, 95, 0.07) !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page [data-admin-panel="accounts"] > .admin-panel-head {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
  }

  html body .page-shell.admin-page .accounts-subtabs-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px !important;
    margin-bottom: 10px !important;
  }

  html body .page-shell.admin-page .accounts-subtabs-row .accounts-subtabs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  html body .page-shell.admin-page .accounts-subtabs-row .accounts-refresh-all {
    min-height: 32px !important;
    height: 32px !important;
    padding: 6px 9px !important;
    font-size: 0.64rem !important;
    white-space: nowrap !important;
  }
}

html body .page-shell.admin-page .admin-panel-head {
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(207, 218, 238, 0.72) !important;
}

/* ACC cleanup: keep the polished cards, remove repeated vertical accent lines. */
html body .page-shell.admin-page .accounts-panel .admin-copy-card::before,
html body .page-shell.admin-page .accounts-panel > .agreement-list-card::before,
html body .page-shell.admin-page .invoice-history-item::before,
html body .page-shell.admin-page .payment-history-item::before {
  content: none !important;
  display: none !important;
}

html body .page-shell.admin-page .accounts-panel .admin-copy-card,
html body .page-shell.admin-page .accounts-panel > .agreement-list-card {
  padding-left: 12px !important;
}

html body .page-shell.admin-page .invoice-history-item {
  padding-left: 13px !important;
}

html body .page-shell.admin-page .result-box.is-zero-hidden {
  display: none !important;
}

/* Admin desktop shell: prevent the header from overflowing and reduce the first gap. */
html body .page-shell.admin-page .admin-topbar {
  box-sizing: border-box !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 14px !important;
}

html body .page-shell.admin-page .admin-title-actions {
  justify-self: end !important;
  max-width: 100% !important;
}

html body .page-shell.admin-page main > .section {
  margin-top: 0 !important;
}

html body .page-shell.admin-page .section.reveal {
  opacity: 1 !important;
  transform: none !important;
}

html body .page-shell.admin-page .admin-tabs {
  position: static !important;
  top: auto !important;
  justify-self: start !important;
  display: inline-flex !important;
  width: auto !important;
  max-width: min(760px, 58vw) !important;
  margin: 0 !important;
  padding: 5px !important;
  gap: 5px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(25, 30, 60, 0.07) !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

html body .page-shell.admin-page .admin-tabs[hidden] {
  display: none !important;
}

html body .page-shell.admin-page .admin-tabs::-webkit-scrollbar {
  display: none !important;
}

html body .page-shell.admin-page .admin-tabs button {
  flex: 0 0 auto !important;
  min-height: 32px !important;
  padding: 7px 14px !important;
  font-size: 0.76rem !important;
  line-height: 1 !important;
}

/* Admin phone: remove the gap between the topbar and the tab bar. */
@media (max-width: 760px) {
  html body .page-shell.admin-page main[data-admin-content],
  html body .page-shell.admin-page main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  html body .page-shell.admin-page main > .section,
  html body .page-shell.admin-page .section.reveal {
    margin: 0 auto 18px !important;
    padding-top: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html body .page-shell.admin-page .admin-tabs {
    grid-area: tabs !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 4px !important;
    gap: 3px !important;
    border-radius: 12px !important;
  }

  html body .page-shell.admin-page .admin-tabs button {
    flex: 1 0 auto !important;
    min-height: 30px !important;
    padding: 6px 8px !important;
    font-size: 0.64rem !important;
  }

  html body .page-shell.admin-page .admin-panel {
    padding-top: 4px !important;
  }
}

/* ACC invoice filters on phone: keep From/To dates side by side. */
@media (max-width: 760px) {
  html body .page-shell.admin-page .account-invoice-filter-card .accounts-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .page-shell.admin-page .account-invoice-filter-card .account-date-filter {
    grid-column: auto !important;
    min-width: 0 !important;
  }

  html body .page-shell.admin-page .account-invoice-filter-card .invoice-status-dropdown {
    grid-column: 1 / -1 !important;
  }

  html body .page-shell.admin-page .account-invoice-filter-card .account-date-filter > span {
    left: 10px !important;
    top: 5px !important;
    font-size: 0.54rem !important;
  }

  html body .page-shell.admin-page .account-invoice-filter-card .account-date-filter input {
    min-height: 38px !important;
    height: 38px !important;
    padding: 15px 9px 4px !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
  }

  html body .page-shell.admin-page .account-invoice-filter-card .account-date-filter input::-webkit-datetime-edit,
  html body .page-shell.admin-page .account-invoice-filter-card .account-date-filter input::-webkit-date-and-time-value {
    font-size: 0.76rem !important;
    line-height: 1 !important;
  }
}

/* Activity metric values: keep the blue numbers confident but less oversized. */
html body .page-shell.admin-page .admin-metric-card strong {
  font-size: clamp(1.25rem, 2.05vw, 1.95rem) !important;
  line-height: 1 !important;
}

@media (max-width: 640px) {
  html body .page-shell.admin-page .admin-metric-card strong {
    font-size: 1.32rem !important;
  }
}

/* Activity monthly report: reduce the empty white space around the controls. */
html body .page-shell.admin-page .admin-monthly-report {
  margin: 10px 0 14px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 16px rgba(37, 99, 255, 0.045) !important;
}

html body .page-shell.admin-page .admin-monthly-report .admin-support-heading {
  min-height: 36px !important;
  margin-bottom: 0 !important;
  gap: 10px !important;
}

html body .page-shell.admin-page .admin-monthly-report .admin-support-heading span {
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
}

html body .page-shell.admin-page .admin-monthly-controls {
  gap: 8px !important;
}

html body .page-shell.admin-page .admin-monthly-controls select,
html body .page-shell.admin-page .admin-monthly-controls button {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .admin-monthly-report {
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  html body .page-shell.admin-page .admin-monthly-report .admin-support-heading {
    align-items: center !important;
  }

  html body .page-shell.admin-page .admin-monthly-controls {
    width: auto !important;
    flex-wrap: nowrap !important;
  }

  html body .page-shell.admin-page .admin-monthly-controls select,
  html body .page-shell.admin-page .admin-monthly-controls button {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 9px !important;
    font-size: 0.68rem !important;
  }
}

/* JPEG export icon: use a clear image symbol instead of the old abstract mark. */
html body .page-shell.admin-page .results-actions .quotation-export-jpeg::before {
  content: "IMG" !important;
  background:
    linear-gradient(135deg, #2d7bd8, #58a9f5) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 0.42rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

/* Admin mobile top crop: remove the remaining blank space above the header. */
@media (max-width: 760px) {
  html body:has(.page-shell.admin-page),
  html body:has(.page-shell.admin-page) .site-bg {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  html body .page-shell.admin-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: auto !important;
  }

  html body .page-shell.admin-page .admin-topbar {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-areas:
      "brand actions"
      "tabs tabs" !important;
    top: 0 !important;
    min-height: 80px !important;
    height: auto !important;
    padding: 2px 8px 5px !important;
    gap: 3px 6px !important;
  }

  html body .page-shell.admin-page .admin-brand,
  html body .page-shell.admin-page .admin-brand img {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
  }

  html body .page-shell.admin-page .admin-brand {
    grid-area: brand !important;
    align-self: center !important;
  }

  html body .page-shell.admin-page .admin-title-actions {
    grid-area: actions !important;
    justify-self: end !important;
    align-self: center !important;
    gap: 5px !important;
    max-width: calc(100vw - 50px) !important;
  }

  html body .page-shell.admin-page .admin-title-actions > strong,
  html body .page-shell.admin-page .admin-logout-btn {
    min-height: 24px !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    font-size: 0.58rem !important;
    line-height: 1 !important;
  }

  html body .page-shell.admin-page main {
    margin-top: 0 !important;
  }

  html body .page-shell.admin-page .section {
    margin-top: 0 !important;
  }

  html body .page-shell.admin-page .admin-tabs {
    grid-area: tabs !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  html body .page-shell.admin-page .admin-tabs[hidden] {
    display: none !important;
  }

  html body .page-shell.admin-page .admin-topbar:has(.admin-tabs[hidden]) {
    grid-template-areas: "brand actions" !important;
    min-height: 44px !important;
    height: 44px !important;
    padding-bottom: 2px !important;
  }
}

/* Activity privacy switch: keep this internal setting quiet on phone. */
html body .page-shell.admin-page .admin-private-device {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 12px 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(207, 218, 238, 0.78) !important;
  border-radius: var(--admin-radius-lg, 12px) !important;
  background: #ffffff !important;
  box-shadow: 0 6px 16px rgba(28, 50, 92, 0.045) !important;
}

html body .page-shell.admin-page .admin-private-device span {
  display: block !important;
  color: #53617c !important;
  font-size: 0.72rem !important;
  font-weight: 780 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .admin-private-device p {
  max-width: 620px !important;
  margin: 3px 0 0 !important;
  color: #7a869f !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

html body .page-shell.admin-page .admin-private-device button {
  flex: 0 0 auto !important;
  min-height: 32px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(35, 81, 163, 0.14) !important;
  border-radius: var(--admin-radius-sm, 8px) !important;
  background: #f7faff !important;
  color: #14345f !important;
  font-size: 0.76rem !important;
  font-weight: 720 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .admin-private-device {
    gap: 8px !important;
    margin: 8px 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  html body .page-shell.admin-page .admin-private-device span {
    font-size: 0.6rem !important;
    letter-spacing: 0.04em !important;
  }

  html body .page-shell.admin-page .admin-private-device p {
    margin-top: 2px !important;
    font-size: 0.66rem !important;
    line-height: 1.22 !important;
  }

  html body .page-shell.admin-page .admin-private-device button {
    min-height: 26px !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    font-size: 0.62rem !important;
    white-space: nowrap !important;
  }
}

/* ACC phone list layout: keep invoice and receipt amounts on the same row as the title. */
@media (max-width: 760px) {
  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 8px !important;
    row-gap: 10px !important;
    align-items: start !important;
    padding: 12px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item > div,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item > div {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .agreement-list-total,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item .agreement-list-total {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    justify-self: end !important;
    min-width: 82px !important;
    max-width: 118px !important;
    min-height: 30px !important;
    padding: 6px 9px !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .admin-copy-btn,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item .admin-copy-btn {
    justify-self: stretch !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 32px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 0.76rem !important;
  }

  html body .page-shell.admin-page #accountPaymentList .payment-history-actions {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
  }

  html body .page-shell.admin-page #accountPaymentList .payment-history-actions .admin-copy-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions .admin-copy-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-select-wrap {
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: center !important;
    flex: 0 0 auto !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item strong,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item strong {
    display: block !important;
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item span,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item span {
    font-size: 0.74rem !important;
    line-height: 1.25 !important;
  }

  html body .page-shell.admin-page #accountPaymentList .payment-history-item {
    column-gap: 6px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .admin-copy-btn,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item .admin-copy-btn {
    padding-inline: 8px !important;
    font-size: 0.72rem !important;
  }
}

/* ACC invoice phone actions: keep select checkbox on the same row as PDF/Edit/Paid/Void. */
@media (max-width: 760px) {
  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 28px !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions .admin-copy-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 6px 5px !important;
    border-radius: 10px !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-select-wrap {
    width: 28px !important;
    height: 34px !important;
    min-width: 28px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-select-wrap input {
    width: 20px !important;
    height: 20px !important;
  }
}

/* Final Admin LHDN label colors. */
html body .page-shell.admin-page [data-admin-panel="calculator"] .admin-copy-card .admin-copy-btn,
html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-add-btn,
html body .page-shell.admin-page [data-admin-panel="calculator"] #quotationHistoryTitle,
html body .page-shell.admin-page [data-admin-panel="calculator"] #quotationHistoryLast7Days {
  color: #2368ff !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-head .section-kicker {
  color: #fff !important;
}

/* Compact quotation rows for LHDN and SSM admin calculators. */
html body .page-shell.admin-page [data-admin-panel="calculator"] .results-card,
html body .page-shell.admin-page [data-admin-panel="ssm"] .results-card {
  padding: 18px !important;
}

html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .invoice-void-btn,
html body .page-shell.admin-page #accountPaymentList .payment-history-item [data-void-payment] {
  color: #8b1e1e !important;
}

html body .page-shell.admin-page #accountPaymentList .account-payment-detail-line,
html body .page-shell.admin-page #accountPaymentList .account-payment-status-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 7px !important;
}

html body .page-shell.admin-page #accountPaymentList .account-payment-status-line {
  margin-top: 3px !important;
}

html body .page-shell.admin-page #accountPaymentList .account-payment-status-line .invoice-status-text {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 3px 8px !important;
  border-radius: 9px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item {
    column-gap: 7px !important;
    row-gap: 7px !important;
    padding: 9px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .agreement-list-total,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item .agreement-list-total {
    min-height: 28px !important;
    max-width: 112px !important;
    padding: 5px 8px !important;
    border-radius: 9px !important;
    font-size: 0.74rem !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions,
  html body .page-shell.admin-page #accountPaymentList .payment-history-actions {
    gap: 5px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .admin-copy-btn,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item .admin-copy-btn {
    min-height: 28px !important;
    padding: 6px 6px !important;
    border-radius: 9px !important;
    font-size: 0.66rem !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item strong,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item strong {
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item span,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item span {
    font-size: 0.68rem !important;
    line-height: 1.18 !important;
  }

  html body .page-shell.admin-page #accountPaymentList .account-payment-detail-line,
  html body .page-shell.admin-page #accountPaymentList .account-payment-status-line {
    gap: 2px 5px !important;
  }

  html body .page-shell.admin-page #accountPaymentList .account-payment-status-line {
    margin-top: 2px !important;
  }

  html body .page-shell.admin-page #accountPaymentList .account-payment-status-line .invoice-status-text {
    padding: 2px 7px !important;
    border-radius: 8px !important;
  }

  html body .page-shell.admin-page .accounts-report-filter-card {
    padding: 11px !important;
  }

  html body .page-shell.admin-page .accounts-report-filter-card .admin-copy-head {
    display: grid !important;
    gap: 8px !important;
  }

  html body .page-shell.admin-page .accounts-report-quick-actions {
    justify-content: stretch !important;
  }

  html body .page-shell.admin-page .accounts-report-quick-actions .admin-copy-btn {
    flex: 1 1 0 !important;
    padding-inline: 6px !important;
    font-size: 0.66rem !important;
  }
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .results-head,
html body .page-shell.admin-page [data-admin-panel="ssm"] .results-head {
  margin-bottom: 12px !important;
  padding-bottom: 12px !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .result-helper.result-context,
html body .page-shell.admin-page [data-admin-panel="ssm"] .result-helper.result-context {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-bottom: 10px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .result-helper.result-context p,
html body .page-shell.admin-page [data-admin-panel="ssm"] .result-helper.result-context p {
  flex: 1 1 175px !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 0.88rem !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border: 1px solid rgba(35, 104, 255, 0.12) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(35, 104, 255, 0.1) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box:first-child,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box:first-child {
  background: #ffffff !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box:last-child,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box:last-child {
  border-bottom: 0 !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-label,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-label {
  min-width: 0 !important;
  color: #5d6a82 !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-value,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-value {
  justify-self: end !important;
  max-width: min(52vw, 280px) !important;
  color: #14345f !important;
  font-size: 0.94rem !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
  text-align: right !important;
  white-space: normal !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-edit-value {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-edit-value strong {
  color: inherit !important;
  font: inherit !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-edit-btn {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(249, 115, 22, 0.32) !important;
  border-radius: 8px !important;
  background: #fff7ed !important;
  color: #c2410c !important;
  font: 750 0.68rem/1 var(--font-body, "Inter", sans-serif) !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-edit-btn:hover {
  border-color: rgba(249, 115, 22, 0.56) !important;
  background: #ffedd5 !important;
}

html body .page-shell.admin-page [data-edit-stamp-duty-row] {
  cursor: pointer !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box.highlight,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box.highlight {
  background: #f3f7ff !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box.total,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box.total {
  min-height: 48px !important;
  border-top: 1px solid rgba(35, 104, 255, 0.16) !important;
  background: linear-gradient(135deg, #eaf3ff, #f4f9ff) !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box.total .result-label,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box.total .result-label {
  color: #14213d !important;
  font-weight: 800 !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box.total .result-value,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box.total .result-value {
  color: #f97316 !important;
  font-size: 1.06rem !important;
  font-weight: 850 !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box.is-hidden,
html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box.is-zero-hidden,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box.is-hidden,
html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box.is-zero-hidden {
  display: none !important;
}

/* Compact copy cards below LHDN and SSM quotations. */
html body .page-shell.admin-page [data-admin-panel="calculator"] .admin-copy-templates,
html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-templates {
  gap: 10px !important;
  margin-top: 12px !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .admin-copy-card,
html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card {
  padding: 12px !important;
  border-radius: 14px !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .admin-copy-card .admin-copy-head,
html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card .admin-copy-head {
  min-height: 34px !important;
  margin-bottom: 8px !important;
  align-items: center !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .admin-copy-card .admin-copy-head span,
html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card .admin-copy-head span {
  font-size: 0.82rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.035em !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .admin-copy-card .admin-copy-btn,
html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card .admin-copy-btn {
  min-height: 32px !important;
  height: 32px !important;
  min-width: 56px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 760 !important;
  box-shadow: none !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .admin-copy-card textarea,
html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card textarea {
  margin-top: 0 !important;
  min-height: 104px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

html body .page-shell.admin-page .other-service-copy-templates {
  grid-template-columns: minmax(0, 1fr) !important;
  margin-top: 12px !important;
}

html body .page-shell.admin-page .other-service-copy-templates .admin-copy-card {
  padding: 12px !important;
  border-radius: 14px !important;
}

html body .page-shell.admin-page .other-service-copy-templates .admin-copy-head {
  min-height: 34px !important;
  margin-bottom: 8px !important;
}

html body .page-shell.admin-page .other-service-copy-templates .admin-copy-btn {
  min-height: 32px !important;
  height: 32px !important;
  min-width: 56px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 760 !important;
  box-shadow: none !important;
}

html body .page-shell.admin-page .other-service-copy-templates textarea {
  min-height: 118px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
  line-height: 1.38 !important;
}

html body .page-shell.admin-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  html body .page-shell.admin-page .other-service-head {
    gap: 12px !important;
    align-items: flex-start !important;
  }

  html body .page-shell.admin-page .other-service-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    justify-content: stretch !important;
  }

  html body .page-shell.admin-page .other-service-actions .quotation-export-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    border-radius: 11px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(20, 52, 95, 0.08) !important;
  }
}

/* Slimmer quotation export buttons after the compact quotation layout. */
html body .page-shell.admin-page [data-admin-panel="calculator"] .results-actions .quotation-export-btn,
html body .page-shell.admin-page [data-admin-panel="ssm"] .results-actions .quotation-export-btn {
  min-width: 80px !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px 0 7px !important;
  border-radius: 10px !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 12px rgba(25, 48, 83, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .results-actions .quotation-export-btn::before,
html body .page-shell.admin-page [data-admin-panel="ssm"] .results-actions .quotation-export-btn::before {
  width: 17px !important;
  height: 17px !important;
  border-radius: 7px !important;
  margin-right: 0 !important;
  box-shadow: none !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .results-actions .quotation-export-btn::after,
html body .page-shell.admin-page [data-admin-panel="ssm"] .results-actions .quotation-export-btn::after {
  height: 34% !important;
}

html body .page-shell.admin-page .gss-cute-date-input {
  cursor: pointer !important;
  background: #ffffff !important;
  padding-left: 16px !important;
}

.gss-date-picker-admin {
  z-index: 100020 !important;
  width: 224px !important;
  padding: 8px !important;
  border-radius: 12px !important;
  border-color: rgba(255, 141, 112, 0.3) !important;
  box-shadow: 0 14px 30px rgba(25, 48, 83, 0.14) !important;
}

.gss-date-picker-admin .gss-date-picker-head {
  padding-bottom: 7px !important;
}

.gss-date-picker-admin .gss-date-month {
  font-size: 0.84rem !important;
}

.gss-date-picker-admin .gss-date-jump {
  gap: 5px !important;
  padding: 0 1px 6px !important;
}

.gss-date-picker-admin .gss-date-jump select {
  min-height: 24px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
}

.gss-date-picker-admin .gss-date-nav button {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  font-size: 0.9rem !important;
}

.gss-date-picker-admin .gss-date-weekdays {
  border-radius: 9px !important;
}

.gss-date-picker-admin .gss-date-weekdays span {
  padding: 5px 0 !important;
  font-size: 0.5rem !important;
}

.gss-date-picker-admin .gss-date-days {
  gap: 2px !important;
  padding-top: 6px !important;
}

.gss-date-picker-admin .gss-date-days button {
  height: 19px !important;
  border-radius: 7px !important;
  font-size: 0.66rem !important;
}

.gss-date-picker-admin .gss-date-footer {
  padding-top: 7px !important;
}

.gss-date-picker-admin .gss-date-footer button {
  font-size: 0.72rem !important;
}

@media (max-width: 560px) {
  html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-box,
  html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-box {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-value,
  html body .page-shell.admin-page [data-admin-panel="ssm"] .advanced-results-grid .result-value {
    justify-self: start !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-edit-value {
    width: 100% !important;
    justify-content: space-between !important;
  }

  html body .page-shell.admin-page [data-admin-panel="calculator"] .advanced-results-grid .result-edit-btn {
    flex: 0 0 auto !important;
  }
}

/* Final ACC top spacing: title stays slim, Refresh All lives with the tabs. */
html body .page-shell.admin-page [data-admin-panel="accounts"] > .admin-panel-head {
  min-height: 0 !important;
  margin: 0 0 5px !important;
  padding: 0 0 5px !important;
}

html body .page-shell.admin-page .admin-panel[data-admin-panel="accounts"] {
  padding-top: 2px !important;
}

html body .page-shell.admin-page main[data-admin-content] > .section:has(.admin-panel[data-admin-panel="accounts"]) {
  padding-top: 8px !important;
}

html body .page-shell.admin-page .accounts-subtabs-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
}

html body .page-shell.admin-page .accounts-subtabs-row .accounts-subtabs {
  flex: 0 1 auto !important;
  margin: 0 !important;
}

html body .page-shell.admin-page .accounts-subtabs-row .accounts-refresh-all {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .admin-panel[data-admin-panel="accounts"] {
    padding-top: 0 !important;
  }

  html body .page-shell.admin-page main[data-admin-content] > .section:has(.admin-panel[data-admin-panel="accounts"]) {
    padding-top: 5px !important;
  }

  html body .page-shell.admin-page .accounts-subtabs-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px !important;
    margin-bottom: 10px !important;
  }

  html body .page-shell.admin-page .accounts-subtabs-row .accounts-subtabs {
    width: 100% !important;
  }

  html body .page-shell.admin-page .accounts-subtabs-row .accounts-refresh-all {
    min-height: 32px !important;
    height: 32px !important;
    padding: 6px 9px !important;
    font-size: 0.64rem !important;
  }
}

/* Final Activity support inbox alignment. */
html body .page-shell.admin-page .admin-support-requests .admin-activity-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  border-radius: 14px !important;
}

html body .page-shell.admin-page .admin-support-request-table {
  width: 100% !important;
  min-width: 1060px !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

html body .page-shell.admin-page .admin-support-request-table th,
html body .page-shell.admin-page .admin-support-request-table td {
  box-sizing: border-box !important;
  min-width: 0 !important;
  padding: 11px 12px !important;
  vertical-align: middle !important;
  line-height: 1.25 !important;
}

html body .page-shell.admin-page .admin-support-request-table th {
  white-space: nowrap !important;
}

html body .page-shell.admin-page .admin-support-request-table td {
  max-width: 0 !important;
  overflow: hidden !important;
  color: #53617c !important;
  font-size: 0.8rem !important;
  font-weight: 660 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .page-shell.admin-page .admin-support-request-table th:nth-child(1),
html body .page-shell.admin-page .admin-support-request-table td:nth-child(1) {
  width: 105px !important;
}

html body .page-shell.admin-page .admin-support-request-table th:nth-child(2),
html body .page-shell.admin-page .admin-support-request-table td:nth-child(2) {
  width: 190px !important;
}

html body .page-shell.admin-page .admin-support-request-table th:nth-child(3),
html body .page-shell.admin-page .admin-support-request-table td:nth-child(3) {
  width: 210px !important;
}

html body .page-shell.admin-page .admin-support-request-table th:nth-child(4),
html body .page-shell.admin-page .admin-support-request-table td:nth-child(4) {
  width: 250px !important;
}

html body .page-shell.admin-page .admin-support-request-table th:nth-child(5),
html body .page-shell.admin-page .admin-support-request-table td:nth-child(5) {
  width: 230px !important;
}

html body .page-shell.admin-page .admin-support-request-table th:nth-child(6),
html body .page-shell.admin-page .admin-support-request-table td:nth-child(6) {
  width: auto !important;
  white-space: normal !important;
}

html body .page-shell.admin-page .admin-support-request-table td:nth-child(3) {
  overflow: hidden !important;
  max-width: 0 !important;
  white-space: nowrap !important;
}

html body .page-shell.admin-page .admin-support-request-table td:nth-child(3) .account-customer-dot {
  margin: 0 5px !important;
  color: #a7b0c0 !important;
}

html body .page-shell.admin-page .admin-support-request-table td:nth-child(3) a {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-height: 24px !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  font-size: 0.74rem !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .admin-support-request-table {
    min-width: 900px !important;
  }

  html body .page-shell.admin-page .admin-support-request-table th,
  html body .page-shell.admin-page .admin-support-request-table td {
    padding: 9px 10px !important;
    font-size: 0.72rem !important;
  }
}

/* LHDN copy layout test: Card / Tabs / Accordion. */
.mobile-quotation-copy-bar {
  display: none;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .mobile-quotation-copy-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 9px;
  }

  html body .page-shell.admin-page .mobile-quotation-copy-bar > div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  html body .page-shell.admin-page .mobile-quotation-copy-bar button {
    min-width: 0;
    min-height: 42px;
    padding: 8px 4px;
    border: 1px solid #cbd8ec;
    border-radius: 10px;
    background: #ffffff;
    color: #14345f;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
  }

  html body .page-shell.admin-page .mobile-quotation-copy-bar .mobile-copy-view-btn {
    min-height: 24px;
    padding: 3px 2px;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 0.67rem;
    font-weight: 700;
  }

  html body .page-shell.admin-page .mobile-copy-preview {
    grid-column: 1 / -1;
    max-height: 230px;
    margin: 3px 0 0;
    padding: 11px 12px;
    overflow: auto;
    border: 1px solid #d4deed;
    border-radius: 10px;
    background: #f8faff;
    color: #17223a;
    font: inherit;
    font-size: 0.76rem;
    line-height: 1.45;
    white-space: pre-wrap;
  }

  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] {
    display: none !important;
  }
}

html body .page-shell.admin-page .copy-layout-lab {
  margin-top: 14px !important;
}

html body .page-shell.admin-page .copy-layout-toolbar {
  display: none !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 10px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(207, 218, 238, 0.78) !important;
  border-radius: 12px !important;
  background: #f7faff !important;
}

html body .page-shell.admin-page .copy-layout-toolbar > span {
  color: #53617c !important;
  font-size: 0.72rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

html body .page-shell.admin-page .copy-layout-options {
  display: inline-flex !important;
  gap: 4px !important;
  padding: 3px !important;
  border: 1px solid rgba(207, 218, 238, 0.9) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

html body .page-shell.admin-page .copy-layout-options button,
html body .page-shell.admin-page .copy-layout-tabs button {
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #53617c !important;
  font: inherit !important;
  font-size: 0.72rem !important;
  font-weight: 730 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

html body .page-shell.admin-page .copy-layout-options button {
  min-height: 26px !important;
  padding: 6px 9px !important;
}

html body .page-shell.admin-page .copy-layout-options button.active,
html body .page-shell.admin-page .copy-layout-tabs button.active {
  background: #14345f !important;
  color: #ffffff !important;
}

html body .page-shell.admin-page .copy-layout-tabs {
  display: none !important;
  gap: 5px !important;
  margin: 0 0 10px !important;
  padding: 5px !important;
  border: 1px solid rgba(207, 218, 238, 0.82) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

html body .page-shell.admin-page .copy-layout-tabs button {
  flex: 1 1 auto !important;
  min-height: 32px !important;
  padding: 7px 9px !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="tabs"] .copy-layout-tabs {
  display: flex !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="tabs"] .admin-copy-templates,
html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="accordion"] .admin-copy-templates {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="tabs"] .admin-copy-card {
  display: none !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="tabs"] .admin-copy-card.is-copy-active {
  display: block !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="tabs"] .admin-copy-card textarea {
  min-height: 180px !important;
  border-color: rgba(35, 81, 163, 0.22) !important;
  background: #ffffff !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="accordion"] .admin-copy-card {
  padding: 0 !important;
  overflow: hidden !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="accordion"] .admin-copy-head {
  margin: 0 !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="accordion"] .admin-copy-head span::after {
  content: "View" !important;
  margin-left: 8px !important;
  color: #7a869f !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="accordion"] .admin-copy-card.is-copy-active .admin-copy-head span::after {
  content: "Open" !important;
  color: #2351a3 !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="accordion"] .admin-copy-card textarea {
  display: none !important;
  margin: 0 12px 12px !important;
  width: calc(100% - 24px) !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout="accordion"] .admin-copy-card.is-copy-active textarea {
  display: block !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .copy-layout-lab {
    margin-top: 10px !important;
  }
}

/* Final LHDN copy cards: smaller actions and tighter vertical rhythm. */
html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] {
  margin-top: 10px !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] .admin-copy-templates {
  gap: 8px !important;
  margin-top: 8px !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] .admin-copy-card {
  padding: 10px !important;
  border-radius: 12px !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] .admin-copy-head {
  min-height: 28px !important;
  margin-bottom: 7px !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] .admin-copy-head span {
  font-size: 0.78rem !important;
  letter-spacing: 0.035em !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] .admin-copy-btn {
  min-height: 28px !important;
  height: 28px !important;
  min-width: 48px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] textarea {
  min-height: 92px !important;
  padding: 9px 11px !important;
  border-radius: 11px !important;
}

html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] #quotationCopyEnglish,
html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] #quotationCopyChinese {
  min-height: 150px !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"] {
    margin-top: 8px !important;
  }

  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"][data-copy-layout="accordion"] .admin-copy-head {
    padding: 8px 10px !important;
  }

  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"][data-copy-layout="accordion"] .admin-copy-card textarea {
    margin: 0 10px 10px !important;
    width: calc(100% - 20px) !important;
  }
}

/* Final SSM copy cards: match the compact LHDN copy spacing. */
html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-templates {
  gap: 8px !important;
  margin-top: 8px !important;
}

html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card {
  padding: 10px !important;
  border-radius: 12px !important;
}

html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-head {
  min-height: 28px !important;
  margin-bottom: 7px !important;
}

html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-head span {
  font-size: 0.78rem !important;
  letter-spacing: 0.035em !important;
}

html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-btn {
  min-height: 28px !important;
  height: 28px !important;
  min-width: 48px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card textarea {
  min-height: 132px !important;
  padding: 9px 11px !important;
  border-radius: 11px !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"][data-copy-layout="accordion"] .admin-copy-card {
    border-radius: 10px !important;
  }

  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"][data-copy-layout="accordion"] .admin-copy-head {
    min-height: 34px !important;
    padding: 7px 9px !important;
  }

  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"][data-copy-layout="accordion"] .admin-copy-btn {
    min-height: 26px !important;
    height: 26px !important;
    min-width: 46px !important;
    padding: 0 9px !important;
    font-size: 0.7rem !important;
  }

  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"][data-copy-layout="accordion"] .admin-copy-card textarea {
    min-height: 86px !important;
    margin: 0 9px 9px !important;
    width: calc(100% - 18px) !important;
    padding: 8px 10px !important;
  }

  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"][data-copy-layout="accordion"] #quotationCopyEnglish,
  html body .page-shell.admin-page .copy-layout-lab[data-copy-layout-area="lhdn"][data-copy-layout="accordion"] #quotationCopyChinese {
    min-height: 132px !important;
  }

  html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-templates {
    gap: 8px !important;
    margin-top: 8px !important;
  }

  html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card {
    padding: 9px !important;
    border-radius: 10px !important;
  }

  html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-head {
    min-height: 30px !important;
    margin-bottom: 6px !important;
  }

  html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-head span {
    font-size: 0.74rem !important;
  }

  html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-btn {
    min-height: 26px !important;
    height: 26px !important;
    min-width: 46px !important;
    padding: 0 9px !important;
    font-size: 0.7rem !important;
  }

  html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card textarea {
    min-height: 108px !important;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    line-height: 1.34 !important;
  }
}

/* LHDN service phone hero: keep the title visible while trimming the empty header gap. */
@media (max-width: 720px) {
  html body.modern-lhdn-page .page-shell.service-page {
    padding-top: 10px !important;
  }

  html body.modern-lhdn-page.service-has-review-promo .page-shell.service-page {
    padding-top: 10px !important;
  }

  html body.modern-lhdn-page .service-page-hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 14px !important;
    min-height: auto !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding: 8px 0 12px !important;
  }

  html body.modern-lhdn-page .service-hero-copy {
    display: block !important;
    align-self: stretch !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
  }

  html body.modern-lhdn-page .service-hero-copy .eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    color: #2563ff !important;
    font-size: 0.82rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  html body.modern-lhdn-page .service-page-hero h1 {
    margin-top: 10px !important;
  }

  html body.modern-lhdn-page .service-hero-art {
    margin-top: 4px !important;
    min-height: 260px !important;
    transform: none !important;
  }
}

/* ACC phone list final fix: keep invoice/OR details clear of action buttons. */
@media (max-width: 760px) {
  html body .page-shell.admin-page #invoiceHistoryCard,
  html body .page-shell.admin-page .account-payments-panel > .agreement-list-card {
    padding: 10px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
    row-gap: 12px !important;
    align-items: start !important;
    min-height: 0 !important;
    padding: 12px !important;
    overflow: visible !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item > div:first-child,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item > div:first-child {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .agreement-list-total,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item .agreement-list-total {
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
    justify-self: end !important;
    min-width: 88px !important;
    width: auto !important;
    max-width: 132px !important;
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions,
  html body .page-shell.admin-page #accountPaymentList .payment-history-actions {
    position: static !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 1 !important;
    gap: 7px !important;
  }

  html body .page-shell.admin-page #accountPaymentList .payment-history-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 34px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .admin-copy-btn,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item .admin-copy-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 7px 6px !important;
    border-radius: 10px !important;
    font-size: 0.7rem !important;
    line-height: 1 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-select-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-select-wrap input {
    width: 22px !important;
    height: 22px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item strong,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item strong {
    display: block !important;
    margin: 0 0 4px !important;
    color: #172033 !important;
    font-size: 0.82rem !important;
    line-height: 1.22 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item span,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item span {
    display: block !important;
    color: #62708a !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

html body .page-shell.admin-page #accountPaymentList .account-payment-detail-line,
html body .page-shell.admin-page #accountPaymentList .account-payment-status-line {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 6px !important;
}
}

/* ACC phone list hard override: actions must sit below details, never on top of text. */
@media (max-width: 760px) {
  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item > div:first-child,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
    padding-right: 98px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-item .agreement-list-total,
  html body .page-shell.admin-page #accountPaymentList .payment-history-item .agreement-list-total {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: auto !important;
    min-width: 82px !important;
    max-width: 96px !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions,
  html body .page-shell.admin-page #accountPaymentList .payment-history-actions {
    position: static !important;
    width: 100% !important;
    margin-top: 2px !important;
    transform: none !important;
    clear: both !important;
  }
}

/* ACC invoice phone final alignment: PDF/Edit/Paid/Void/select stay in one row. */
@media (max-width: 760px) {
  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 28px !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-history-actions .admin-copy-btn {
    width: auto !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 5px !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-select-wrap {
    grid-column: 5 / 6 !important;
    grid-row: 1 / 2 !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 34px !important;
    margin: 0 !important;
  }

  html body .page-shell.admin-page #invoiceHistoryCard .invoice-select-wrap input {
    width: 20px !important;
    height: 20px !important;
  }
}

/* Final Other Service export button colors: no purple. */
html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-actions .quotation-export-btn {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 14px rgba(20, 52, 95, 0.08) !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-actions .quotation-export-btn:first-child {
  border: 1px solid rgba(242, 111, 61, 0.38) !important;
  background: #fff5ee !important;
  color: #e85d2a !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-actions .quotation-export-btn:last-child {
  border: 1px solid rgba(35, 104, 255, 0.3) !important;
  background: #eef5ff !important;
  color: #2368ff !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-actions .quotation-export-btn:first-child:hover {
  background: #ffeadc !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-actions .quotation-export-btn:last-child:hover {
  background: #dfebff !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-remove-btn {
  color: #171725 !important;
}

html body .page-shell.admin-page [data-admin-panel="ssm"] .results-kicker,
html body .page-shell.admin-page [data-admin-panel="ssm"] .admin-copy-card .admin-copy-btn {
  color: #2368ff !important;
}

html body .page-shell.admin-page .admin-logout-btn {
  color: #667085 !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-add-btn {
  border: 1px solid #14345f !important;
  background: #14345f !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(20, 52, 95, 0.16) !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] .other-service-add-btn:hover {
  border-color: #0f294d !important;
  background: #0f294d !important;
}

html body .page-shell.admin-page [data-admin-panel="calculator"] [data-copy-layout-area="lhdn"] .admin-copy-head span,
html body .page-shell.admin-page [data-admin-panel="calculator"] [data-copy-layout-area="lhdn"] [data-copy-tab-target],
html body .page-shell.admin-page [data-admin-panel="calculator"] #quotationHistoryLast7Days,
html body .page-shell.admin-page [data-admin-panel="ssm"] #ssmQuotationHistoryLast7Days {
  color: #4b5563 !important;
}

html body .page-shell.admin-page .quotation-history-item {
  grid-template-columns: minmax(0, 1fr) auto auto auto auto !important;
  gap: 8px !important;
}

html body .page-shell.admin-page .quotation-history-item > .admin-copy-btn {
  width: auto !important;
  min-width: 58px !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

html body .page-shell.admin-page .quotation-history-item > [data-quotation-invoice] {
  min-width: 76px !important;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .quotation-history-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto !important;
    grid-template-rows: 24px 28px !important;
    gap: 3px 8px !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 9px 10px !important;
  }

  html body .page-shell.admin-page .quotation-history-item > div {
    display: contents !important;
  }

  html body .page-shell.admin-page .quotation-history-item > div strong {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #2351a3 !important;
    font-size: 0.78rem !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .page-shell.admin-page .quotation-history-item > div span {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 0.66rem !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .page-shell.admin-page .quotation-history-item > div small {
    display: none !important;
  }

  html body .page-shell.admin-page .quotation-history-item .agreement-list-total {
    grid-column: 2 !important;
    grid-row: 2 !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .page-shell.admin-page .quotation-history-item > .admin-copy-btn {
    grid-row: 2 !important;
    width: auto !important;
    min-width: 48px !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 7px !important;
    font-size: 0.66rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  html body .page-shell.admin-page .quotation-history-item > [data-quotation-invoice] {
    grid-column: 3 !important;
  }

  html body .page-shell.admin-page .quotation-history-item > [data-view-quotation] {
    grid-column: 5 !important;
  }

  html body .page-shell.admin-page .quotation-history-item > [data-edit-quotation] {
    grid-column: 4 !important;
  }
}

html body .page-shell.admin-page .quotation-history-item .quotation-invoice-btn {
  border-color: rgba(232, 93, 42, 0.32) !important;
  background: #fff5ee !important;
  color: #e85d2a !important;
}

.admin-page .account-payment-search {
  padding: 12px;
  border-bottom: 1px solid #dce4f3;
}

.admin-page .account-payment-search input {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #d7e2fb;
  border-radius: 11px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 700;
}

@media (max-width: 760px) {
  html body .page-shell.admin-page .accounts-report-page-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 5px !important;
    flex-wrap: nowrap !important;
  }

  html body .page-shell.admin-page .accounts-report-page-tabs > button:not(.admin-copy-btn) {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 5px 2px !important;
    border-radius: 8px !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .page-shell.admin-page .accounts-report-downloads {
    grid-column: 1 / -1 !important;
    justify-content: flex-end !important;
    margin-left: 0 !important;
  }

  html body .page-shell.admin-page .account-reports-panel .accounts-report-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 1px 1px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    overscroll-behavior-inline: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .page-shell.admin-page .account-reports-panel .accounts-report-grid article {
    flex: 0 0 142px !important;
    width: 142px !important;
    min-width: 142px !important;
    min-height: 92px !important;
    padding: 12px !important;
    scroll-snap-align: start !important;
  }

  html body .page-shell.admin-page .account-reports-panel .accounts-report-grid span {
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
  }

  html body .page-shell.admin-page .account-reports-panel .accounts-report-grid strong {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
  }

  html body .page-shell.admin-page .account-payment-summary-card .accounts-metric-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .page-shell.admin-page .account-payment-summary-card .accounts-metric-grid div {
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 12px !important;
  }

  html body .page-shell.admin-page .account-payment-summary-card .accounts-metric-grid strong {
    font-size: 1.02rem !important;
    white-space: nowrap !important;
  }

  html body .page-shell.admin-page .account-invoice-filter-card,
  html body .page-shell.admin-page .account-invoices-panel .admin-copy-templates {
    overflow: visible !important;
  }

  html body .page-shell.admin-page .account-invoice-filter-card .invoice-status-checks {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-height: none !important;
    margin-top: 6px !important;
    box-shadow: 0 8px 18px rgba(25, 48, 83, 0.1) !important;
  }
}
